@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


:root {

    --bg: #0d0a18;

    --card: rgba(28, 20, 45, 0.92);

    --pink: #ff6fae;

    --purple: #a678ff;

    --text: #ffffff;

    --muted: #bdb4ca;

}



/* =====================================================
   BODY
===================================================== */

body {

    min-height: 100vh;

    background:

        radial-gradient(
            circle at 20% 20%,
            rgba(166, 120, 255, 0.20),
            transparent 35%
        ),

        radial-gradient(
            circle at 80% 80%,
            rgba(255, 111, 174, 0.16),
            transparent 35%
        ),

        var(--bg);

    color: var(--text);

    font-family:
        "DM Sans",
        sans-serif;

    overflow-x: hidden;

}



/* =====================================================
   BACKGROUND
===================================================== */

.background {

    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: -1;

}


.glow {

    position: absolute;

    width: 350px;

    height: 350px;

    border-radius: 50%;

    filter: blur(110px);

}


.glow-one {

    top: -120px;

    left: -100px;

    background:
        rgba(166, 120, 255, 0.18);

}


.glow-two {

    right: -120px;

    bottom: -100px;

    background:
        rgba(255, 111, 174, 0.14);

}



/* =====================================================
   SCREENS
===================================================== */

.screen {

    min-height: 100vh;

    display: none;

    justify-content: center;

    align-items: center;

    padding: 25px;

}


.screen.active {

    display: flex;

    animation:
        fadeIn 0.6s ease;

}



/* =====================================================
   CARD
===================================================== */

.card {

    width: min(650px, 100%);

    background:
        var(--card);

    border:
        1px solid rgba(255,255,255,0.1);

    border-radius: 28px;

    padding: 45px 38px;

    text-align: center;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.45);

    backdrop-filter:
        blur(20px);

}



/* =====================================================
   TEXT
===================================================== */

.eyebrow {

    color: #d3bfff;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;

    margin-bottom: 15px;

}


h1 {

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(38px, 7vw, 58px);

    margin-bottom: 12px;

}


h2 {

    font-size: 24px;

    margin: 15px 0;

}


.subtitle {

    color: var(--muted);

    font-size: 18px;

}


.description {

    color: var(--muted);

    line-height: 1.7;

    margin: 15px auto;

    max-width: 430px;

}



/* =====================================================
   BUTTON
===================================================== */

.main-btn {

    border: none;

    border-radius: 14px;

    padding: 15px 25px;

    font-size: 16px;

    font-weight: 700;

    color: white;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            var(--pink),
            var(--purple)
        );

    box-shadow:
        0 10px 30px
        rgba(255,111,174,0.20);

    transition:
        0.25s ease;

}


.main-btn:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 15px 35px
        rgba(255,111,174,0.30);

}



/* =====================================================
   LOCK INFO
===================================================== */

.lock-info {

    display: inline-flex;

    gap: 10px;

    padding: 11px 18px;

    margin:
        15px 0 25px;

    border-radius: 30px;

    background:
        rgba(255,255,255,0.06);

    color:
        #ddd5e8;

}



/* =====================================================
   GIFT
===================================================== */

.gift {

    height: 190px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 15px 0;

}


.gift-box {

    position: relative;

    width: 130px;

    height: 105px;

    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            #ff6fae,
            #b36cff
        );

    box-shadow:
        0 25px 45px
        rgba(255,111,174,0.25);

    animation:
        float 3s ease-in-out infinite;

}


.gift-lid {

    position: absolute;

    width: 145px;

    height: 28px;

    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            #ff86bb,
            #c17cff
        );

    transform:
        translate(-7px, -15px);

    z-index: 2;

}


.ribbon-v {

    position: absolute;

    width: 25px;

    height: 100%;

    left: 52px;

    background:
        rgba(255,255,255,0.35);

}


.ribbon-h {

    position: absolute;

    width: 100%;

    height: 20px;

    top: 42px;

    background:
        rgba(255,255,255,0.25);

}



/* =====================================================
   RIDDLE
===================================================== */

.riddle-header {

    display: flex;

    justify-content: space-between;

    color: #b9a8d2;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1px;

}


.progress {

    width: 100%;

    height: 6px;

    margin:
        18px 0 28px;

    border-radius: 10px;

    background:
        rgba(255,255,255,0.08);

    overflow: hidden;

}


#progress {

    width: 0%;

    height: 100%;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            var(--pink),
            var(--purple)
        );

    transition:
        width 0.5s ease;

}


.riddle-icon {

    font-size: 55px;

    margin-bottom: 15px;

}


.care-badge {

    display: inline-block;

    padding: 8px 13px;

    margin-bottom: 12px;

    border-radius: 20px;

    background:
        rgba(255,111,174,0.10);

    color:
        #ff9bc6;

    font-size: 12px;

}


.hidden {

    display: none;

}


.question {

    color: #e6e0ed;

    font-size: 20px;

    line-height: 1.7;

    margin:
        20px auto 28px;

    max-width: 540px;

}



/* =====================================================
   OPTIONS
===================================================== */

.options {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 13px;

    max-width: 520px;

    margin: auto;

}


.option-btn {

    min-height: 62px;

    padding: 13px 15px;

    border-radius: 14px;

    border:
        1px solid rgba(255,255,255,0.1);

    background:
        rgba(255,255,255,0.055);

    color: #eee8f4;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    transition:
        0.25s ease;

}


.option-btn:hover {

    transform:
        translateY(-3px);

    border-color:
        rgba(255,111,174,0.55);

    background:
        rgba(255,111,174,0.10);

}


.option-btn:disabled {

    cursor:
        default;

}


.correct-option {

    background:
        rgba(100,230,155,0.18)
        !important;

    border-color:
        #6ee7a5
        !important;

    color:
        #8ff0b7
        !important;

}


.wrong-option {

    background:
        rgba(255,90,120,0.16)
        !important;

    border-color:
        #ff7188
        !important;

    color:
        #ff9aaa
        !important;

    animation:
        shake 0.35s ease;

}



/* =====================================================
   FEEDBACK
===================================================== */

#feedback {

    min-height: 25px;

    margin-top: 18px;

    font-weight: 600;

}


.correct {

    color:
        #7ff0b2;

}


.wrong {

    color:
        #ff8b9e;

}


.hint-btn {

    margin-top: 12px;

    border: none;

    background:
        transparent;

    color:
        #bda9d7;

    cursor:
        pointer;

}


.hint-text {

    color:
        #a996bb;

    margin-top: 10px;

    font-size: 14px;

}



/* =====================================================
   MESSAGE SCREEN
===================================================== */

.message-icon {

    font-size: 65px;

    margin-bottom: 10px;

    animation:
        float 2.5s ease-in-out infinite;

}


.message-progress {

    color:
        #b9a8d2;

    font-size: 12px;

    letter-spacing: 2px;

    font-weight: 700;

    margin-bottom: 18px;

}


.after-message {

    color:
        var(--muted);

    font-size: 19px;

    line-height: 1.8;

    margin:
        25px auto;

    max-width: 480px;

}



/* =====================================================
   UNLOCK
===================================================== */

.unlock-icon {

    font-size: 80px;

    margin-bottom: 20px;

    animation:
        unlockPop 0.8s ease;

}


.unlock-card p {

    color:
        var(--muted);

    line-height: 1.8;

    font-size: 18px;

}


.final-note {

    margin:
        25px 0;

    padding: 17px;

    border-radius: 15px;

    background:
        rgba(255,255,255,0.05);

    color:
        #ddd2e9;

}



/* =====================================================
   BIRTHDAY MESSAGE
===================================================== */

.birthday-icon {

    font-size: 70px;

    margin-bottom: 10px;

    animation:
        float 3s ease-in-out infinite;

}


.birthday-card h1 span,
.birthday-title span {

    background:
        linear-gradient(
            90deg,
            #ff80b7,
            #b990ff
        );

    -webkit-background-clip:
        text;

    -webkit-text-fill-color:
        transparent;

}


.letter {

    margin:
        25px auto;

    max-width: 520px;

    text-align:
        left;

    color:
        #d7cfdf;

    line-height:
        1.8;

    font-size:
        16px;

}


.letter p {

    margin-bottom:
        18px;

}


.letter strong {

    color:
        #ff9bc7;

}


.friend-message {

    padding:
        18px;

    border-radius:
        15px;

    background:
        rgba(255,111,174,0.07);

    text-align:
        center;

}


.sorry-line {

    padding:
        15px;

    border-radius:
        14px;

    background:
        rgba(255,255,255,0.05);

    color:
        #e5d9ed;

}



/* =====================================================
   FINAL GIFT
===================================================== */

.final-card {

    position:
        relative;

    overflow:
        hidden;

}


.opened-gift {

    font-size:
        100px;

    margin:
        10px 0 20px;

    animation:
        giftOpen 1s ease;

}


.birthday-message {

    color:
        var(--muted);

    line-height:
        1.8;

    font-size:
        18px;

}


.wish-box {

    margin:
        28px 0;

    padding:
        20px;

    border-radius:
        18px;

    background:
        rgba(255,255,255,0.05);

}


.wish-box p {

    color:
        #c5b9d0;

    margin-bottom:
        15px;

}


.wish-list {

    display:
        flex;

    flex-wrap:
        wrap;

    justify-content:
        center;

    gap:
        10px;

}


.wish-list span {

    padding:
        9px 13px;

    border-radius:
        20px;

    background:
        rgba(255,111,174,0.10);

    color:
        #f2c0d8;

    font-size:
        13px;

}


.final-line {

    color:
        #ff9ac5;

    font-weight:
        700;

}


.made-line {

    color:
        #8e829d;

    font-size:
        13px;

    margin-top:
        18px;

}



/* =====================================================
   CONFETTI
===================================================== */

#confetti {

    position:
        fixed;

    inset:
        0;

    pointer-events:
        none;

    overflow:
        hidden;

    z-index:
        20;

}


.confetti-piece {

    position:
        absolute;

    top:
        -30px;

    font-size:
        22px;

    animation:
        fall linear forwards;

}



/* =====================================================
   ANIMATIONS
===================================================== */

@keyframes fadeIn {

    from {

        opacity:
            0;

        transform:
            translateY(15px);

    }

    to {

        opacity:
            1;

        transform:
            translateY(0);

    }

}


@keyframes float {

    0%, 100% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(-12px);

    }

}


@keyframes shake {

    0%, 100% {

        transform:
            translateX(0);

    }

    25% {

        transform:
            translateX(-7px);

    }

    75% {

        transform:
            translateX(7px);

    }

}


@keyframes unlockPop {

    0% {

        transform:
            scale(0.5);

        opacity:
            0;

    }

    70% {

        transform:
            scale(1.15);

    }

    100% {

        transform:
            scale(1);

        opacity:
            1;

    }

}


@keyframes giftOpen {

    from {

        transform:
            scale(0.5)
            rotate(-10deg);

        opacity:
            0;

    }

    to {

        transform:
            scale(1)
            rotate(0);

        opacity:
            1;

    }

}


@keyframes fall {

    to {

        transform:
            translateY(110vh)
            rotate(720deg);

        opacity:
            0;

    }

}



/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 600px) {

    .screen {

        padding:
            15px;

    }


    .card {

        padding:
            32px 20px;

        border-radius:
            23px;

    }


    h1 {

        font-size:
            40px;

    }


    .question {

        font-size:
            18px;

    }


    .options {

        grid-template-columns:
            1fr;

    }


    .option-btn {

        min-height:
            58px;

    }


    .riddle-header {

        font-size:
            10px;

    }


    .letter {

        font-size:
            15px;

    }

}