* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pastel-green: #dcebd7;
    --soft-green: #b8d4ad;
    --forest-green: #294936;
    --deep-green: #183326;
    --cream: #f7f4eb;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.65), transparent 35%),
        linear-gradient(145deg, var(--pastel-green), #c8dfc1);

    color: var(--deep-green);

    font-family: Georgia, "Times New Roman", serif;
}

.page {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 32px 20px;
}

.intro {
    width: 100%;
    max-width: 520px;

    background: rgba(247, 244, 235, 0.72);

    border: 1px solid rgba(41, 73, 54, 0.12);
    border-radius: 28px;

    padding: 42px 28px;

    text-align: center;

    box-shadow:
        0 20px 50px rgba(24, 51, 38, 0.12);

    backdrop-filter: blur(12px);
}

.small-title {
    color: var(--forest-green);

    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;

    letter-spacing: 0.18em;
    text-transform: uppercase;

    margin-bottom: 20px;
}

h1 {
    font-size: clamp(2.2rem, 8vw, 3.8rem);
    font-weight: 400;

    line-height: 1.02;

    margin-bottom: 28px;
}

.message,
.instructions {
    font-family: Arial, sans-serif;

    font-size: 1rem;
    line-height: 1.7;

    max-width: 390px;

    margin-left: auto;
    margin-right: auto;
}

.message {
    margin-bottom: 18px;
}

.instructions {
    color: rgba(24, 51, 38, 0.72);

    margin-bottom: 32px;
}

.apple-music-button,
#startButton {
    width: 100%;

    display: block;

    padding: 16px 20px;

    border-radius: 100px;

    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.apple-music-button {
    background: var(--forest-green);
    color: var(--cream);

    text-decoration: none;

    margin-bottom: 12px;

    box-shadow:
        0 8px 20px rgba(41, 73, 54, 0.18);
}

#startButton {
    background: transparent;
    color: var(--forest-green);

    border: 1px solid rgba(41, 73, 54, 0.35);
}

.apple-music-button:hover,
#startButton:hover {
    transform: translateY(-2px);
}

.apple-music-button:hover {
    background: var(--deep-green);
}

#startButton:hover {
    background: rgba(184, 212, 173, 0.35);
}

@media (max-width: 500px) {
    .intro {
        padding: 36px 22px;
        border-radius: 24px;
    }

    h1 {
        font-size: 2.6rem;
    }

    .message,
    .instructions {
        font-size: 0.95rem;
    }
}

.playlist-embed {
    width: 100%;
    margin-bottom: 22px;
}

.playlist-embed iframe {
    display: block;
    width: 100%;
}

/* COUNTDOWN SCREEN */

.countdown-screen {
    display: none;

    width: 100%;
    max-width: 520px;

    background: rgba(247, 244, 235, 0.72);

    border: 1px solid rgba(41, 73, 54, 0.12);
    border-radius: 28px;

    padding: 52px 28px;

    text-align: center;

    box-shadow: 0 20px 50px rgba(24, 51, 38, 0.12);

    backdrop-filter: blur(12px);
}

.countdown-screen.active {
    display: block;
    animation: fadeIn 0.7s ease;
}

.countdown-screen h2 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 12px;
}

.countdown-message {
    font-family: Arial, sans-serif;
    color: rgba(24, 51, 38, 0.72);
    margin-bottom: 38px;
}

.timer {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(4rem, 15vw, 6rem);
    color: var(--forest-green);

    margin-bottom: 36px;

    font-variant-numeric: tabular-nums;
}

.locked-button {
    width: 100%;

    padding: 16px 20px;

    border-radius: 100px;
    border: 1px solid rgba(41, 73, 54, 0.18);

    background: rgba(41, 73, 54, 0.08);
    color: rgba(41, 73, 54, 0.45);

    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;

    cursor: not-allowed;
}

.locked-button.unlocked {
    background: var(--forest-green);
    color: var(--cream);

    cursor: pointer;

    box-shadow: 0 8px 20px rgba(41, 73, 54, 0.18);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PUZZLE SCREEN */

.puzzle-screen {
    display: none;

    width: 100%;
    max-width: 620px;

    background: rgba(247, 244, 235, 0.72);

    border: 1px solid rgba(41, 73, 54, 0.12);
    border-radius: 28px;

    padding: 48px 28px;

    text-align: center;

    box-shadow: 0 20px 50px rgba(24, 51, 38, 0.12);

    backdrop-filter: blur(12px);
}

.puzzle-screen.active {
    display: block;
    animation: fadeIn 0.7s ease;
}

.puzzle-screen h2 {
    font-size: clamp(2.2rem, 8vw, 3.3rem);
    font-weight: 400;
    line-height: 1.05;

    margin-bottom: 24px;
}

.puzzle-message {
    max-width: 430px;

    margin: 0 auto 32px;

    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;

    color: rgba(24, 51, 38, 0.72);
}

.letter-boxes {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px;

    margin-bottom: 20px;
}

.letter-box {
    width: 42px;
    height: 52px;

    border: 1px solid rgba(41, 73, 54, 0.3);
    border-radius: 10px;

    background: rgba(255, 255, 255, 0.45);

    color: var(--deep-green);

    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
    text-align: center;
    text-transform: uppercase;

    outline: none;

    transition:
        border 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;
}

.letter-box:focus {
    border-color: var(--forest-green);

    background: rgba(255, 255, 255, 0.8);

    transform: translateY(-2px);
}

.puzzle-hint {
    min-height: 24px;

    font-family: Arial, sans-serif;
    font-size: 0.9rem;

    color: rgba(24, 51, 38, 0.65);
}

@media (max-width: 500px) {

    .puzzle-screen {
        padding: 38px 18px;
    }

    .letter-boxes {
        gap: 6px;
    }

    .letter-box {
        width: 36px;
        height: 46px;

        font-size: 1.25rem;
    }
}

/* FINAL QUESTION */

.final-reveal {
    display: none;
    margin-top: 28px;
}

.final-reveal.show {
    display: block;
    animation: finalFadeIn 1s ease forwards;
}

.decoded-message {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 8px 18px;

    margin-bottom: 30px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.3rem, 5vw, 1.8rem);
    letter-spacing: 0.08em;

    color: var(--forest-green);
}

.decoded-message span {
    opacity: 0;
    transform: translateY(8px);

    animation: wordAppear 0.5s ease forwards;
}

.decoded-message span:nth-child(1) {
    animation-delay: 0.1s;
}

.decoded-message span:nth-child(2) {
    animation-delay: 0.3s;
}

.decoded-message span:nth-child(3) {
    animation-delay: 0.5s;
}

.decoded-message span:nth-child(4) {
    animation-delay: 0.7s;
}

.decoded-message span:nth-child(5) {
    animation-delay: 0.9s;
}

.final-question {
    opacity: 0;

    font-size: clamp(2.5rem, 10vw, 4rem) !important;

    margin-bottom: 30px !important;

    animation: questionAppear 0.8s ease 1.4s forwards;
}

.answer-buttons {
    display: flex;
    gap: 12px;

    opacity: 0;

    animation: questionAppear 0.8s ease 2s forwards;
}

.yes-button,
.no-button {
    flex: 1;

    padding: 16px;

    border-radius: 100px;

    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.yes-button {
    border: none;

    background: var(--forest-green);
    color: var(--cream);
}

.no-button {
    border: 1px solid rgba(41, 73, 54, 0.35);

    background: transparent;
    color: var(--forest-green);
}

.yes-button:hover,
.no-button:hover {
    transform: translateY(-2px);
}

@keyframes wordAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes questionAppear {
    to {
        opacity: 1;
    }
}

@keyframes finalFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}
/* ANSWER RESULT SCREEN */

.result-screen {
    display: none;

    width: 100%;
    max-width: 520px;

    background: rgba(247, 244, 235, 0.72);

    border: 1px solid rgba(41, 73, 54, 0.12);
    border-radius: 28px;

    padding: 52px 28px;

    text-align: center;

    box-shadow: 0 20px 50px rgba(24, 51, 38, 0.12);

    backdrop-filter: blur(12px);
}

.result-screen.active {
    display: block;
    animation: resultAppear 0.9s ease;
}

.result-screen h2 {
    font-size: clamp(2.5rem, 10vw, 4rem);
    font-weight: 400;
    line-height: 1.05;

    margin-bottom: 26px;
}

.result-message {
    max-width: 400px;

    margin: 0 auto;

    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.8;

    color: rgba(24, 51, 38, 0.78);
}

.result-message p {
    margin-bottom: 16px;
}

.little-heart {
    font-size: 2.2rem;

    margin-top: 28px;

    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes resultAppear {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heartbeat {
    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}