:root {
    --ready-blue: #09395f;
    --ready-blue-2: #0b5f95;
    --ready-orange: #f28c18;
    --paper: #fff7e8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    font-family: "Fredoka", "Nunito", "Segoe UI", sans-serif;
    overflow: hidden;
}

.landing-page {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper);
}

.background-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.background-container picture,
.background-image {
    display: block;
    width: 100%;
    height: 100%;
}

.background-image {
    object-fit: cover;
}

.landing-actions {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 270px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 300px;
    min-height: 66px;
    padding: 16px 34px;
    border: none;
    border-radius: 22px;
    color: white;
    background: linear-gradient(135deg, var(--ready-blue) 0%, var(--ready-blue-2) 100%);
    box-shadow: 0 14px 30px rgba(9, 57, 95, 0.28);
    cursor: pointer;
    font-size: 23px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: fadeInUp 0.6s ease-out 0.3s both, idlePulse 2.4s ease-in-out 1.2s infinite;
}

.resume-world-button {
    min-width: 240px;
    min-height: 52px;
    padding: 12px 28px;
    border: 3px solid white;
    border-radius: 20px;
    color: var(--ready-blue);
    background: rgba(255, 247, 232, 0.95);
    box-shadow: 0 10px 24px rgba(9, 57, 95, 0.2);
    cursor: pointer;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: fadeInUp 0.6s ease-out 0.45s both;
}

.resume-world-button[hidden] {
    display: none;
}

.resume-world-button:hover,
.resume-world-button:focus-visible {
    outline: none;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 30px rgba(9, 57, 95, 0.28);
}

.cta-button:hover,
.cta-button:focus-visible {
    outline: none;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 36px rgba(9, 57, 95, 0.36);
}

.cta-button:focus-visible {
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.9),
        0 0 0 8px rgba(242, 140, 24, 0.75),
        0 18px 36px rgba(9, 57, 95, 0.36);
}

.cta-button:active {
    transform: translateY(0) scale(0.99);
}

.cta-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: var(--ready-blue);
    background: var(--paper);
    font-size: 15px;
    line-height: 1;
    transform: translateY(1px);
}

.landing-sound-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.6s ease-out 0.6s both;
    letter-spacing: 0.02em;
}

.sound-note {
    font-size: 16px;
    animation: noteBounce 1.8s ease-in-out infinite;
    display: inline-block;
}

@keyframes noteBounce {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    50%       { transform: translateY(-5px) rotate(8deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes idlePulse {
    0%,
    100% {
        box-shadow: 0 14px 30px rgba(9, 57, 95, 0.28);
    }
    50% {
        box-shadow: 0 18px 38px rgba(9, 57, 95, 0.38);
    }
}

@media (max-width: 768px) {
    html,
    body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
    }

    .landing-page {
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 16px;
    }

    .landing-actions {
        margin-top: 0;
    }

    .cta-button {
        min-width: 250px;
        min-height: 58px;
        padding: 14px 28px;
        border-radius: 20px;
        font-size: 20px;
    }

    .resume-world-button {
        min-width: 220px;
        min-height: 48px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .landing-page {
        padding-bottom: 14px;
    }

    .cta-button {
        width: min(78%, 300px);
        min-width: 0;
        min-height: 58px;
        padding: 14px 20px;
        font-size: 18px;
    }

    .resume-world-button {
        width: min(72%, 280px);
        min-width: 0;
    }
}

@media (max-width: 360px) {
    .landing-page {
        padding-bottom: 12px;
    }

    .cta-button {
        width: min(82%, 280px);
        min-height: 54px;
        font-size: 16px;
    }

    .cta-icon {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
}
