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

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    overflow: hidden;

    font-family: "Poppins", sans-serif;

    color: #fff;

    background:
        radial-gradient(
            circle at 50% 30%,
            #302554 0%,
            transparent 34%
        ),

        radial-gradient(
            circle at 85% 75%,
            #32133b 0%,
            transparent 30%
        ),

        linear-gradient(
            145deg,
            #030513 0%,
            #090a20 48%,
            #160c25 100%
        );
}


/* =========================================================
   SKY
========================================================= */

.sky {
    position: fixed;
    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 0;
}


/* =========================================================
   MOON
========================================================= */

.moon {
    position: absolute;

    top: 8vh;
    right: 9vw;

    width: 92px;
    height: 92px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 30%,
            #fffef0 0%,
            #fff4cf 55%,
            #e8c987 100%
        );

    box-shadow:
        0 0 25px
        rgba(255, 239, 184, .55),

        0 0 90px
        rgba(255, 221, 155, .18);

    animation:
        moonFloat
        6s
        ease-in-out
        infinite;
}


.moon::after {
    content: "";

    position: absolute;

    width: 12px;
    height: 12px;

    left: 25px;
    top: 23px;

    border-radius: 50%;

    background:
        rgba(180, 150, 105, .13);

    box-shadow:
        27px 25px 0
        rgba(180, 150, 105, .11),

        42px 9px 0
        rgba(180, 150, 105, .08);
}


.moon-glow {
    position: absolute;

    top: 0;
    right: 4vw;

    width: 190px;
    height: 190px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 239, 184, .12),
            transparent 68%
        );
}


@keyframes moonFloat {

    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-8px);
    }
}


/* =========================================================
   STARS
========================================================= */

.stars span {
    position: absolute;

    color: #fff7dc;

    font-size: 16px;

    opacity: .45;

    animation:
        twinkle
        3s
        ease-in-out
        infinite;
}


.stars span:nth-child(1) {
    left: 5%;
    top: 15%;
}

.stars span:nth-child(2) {
    left: 13%;
    top: 35%;
    animation-delay: .7s;
}

.stars span:nth-child(3) {
    left: 21%;
    top: 11%;
    animation-delay: 1.2s;
}

.stars span:nth-child(4) {
    left: 31%;
    top: 25%;
    animation-delay: .4s;
}

.stars span:nth-child(5) {
    left: 39%;
    top: 9%;
    animation-delay: 1.5s;
}

.stars span:nth-child(6) {
    left: 48%;
    top: 19%;
    animation-delay: .9s;
}

.stars span:nth-child(7) {
    left: 57%;
    top: 10%;
    animation-delay: 1.8s;
}

.stars span:nth-child(8) {
    left: 68%;
    top: 27%;
    animation-delay: .5s;
}

.stars span:nth-child(9) {
    left: 76%;
    top: 14%;
    animation-delay: 1.1s;
}

.stars span:nth-child(10) {
    left: 88%;
    top: 36%;
    animation-delay: .2s;
}

.stars span:nth-child(11) {
    left: 94%;
    top: 21%;
    animation-delay: 1.6s;
}

.stars span:nth-child(12) {
    left: 8%;
    top: 70%;
    animation-delay: .9s;
}

.stars span:nth-child(13) {
    left: 28%;
    top: 78%;
    animation-delay: 1.4s;
}

.stars span:nth-child(14) {
    left: 75%;
    top: 73%;
    animation-delay: .3s;
}

.stars span:nth-child(15) {
    left: 91%;
    top: 64%;
    animation-delay: 1.9s;
}


@keyframes twinkle {

    0%,
    100% {
        opacity: .12;

        transform:
            scale(.7);
    }

    50% {
        opacity: 1;

        transform:
            scale(1.35);
    }
}


/* =========================================================
   SHOOTING STARS
========================================================= */

.shooting-star {
    position: absolute;

    width: 100px;
    height: 2px;

    opacity: 0;

    background:
        linear-gradient(
            to right,
            rgba(255,255,255,.9),
            transparent
        );

    transform:
        rotate(-35deg);

    animation:
        shooting
        7s
        linear
        infinite;
}


.shooting-one {
    left: 15%;
    top: 20%;

    animation-delay: 2s;
}


.shooting-two {
    left: 68%;
    top: 32%;

    animation-delay: 5s;
}


.shooting-three {
    left: 40%;
    top: 8%;

    animation-delay: 8s;
}


@keyframes shooting {

    0% {
        opacity: 0;

        transform:
            translate(0, 0)
            rotate(-35deg);
    }

    4% {
        opacity: 1;
    }

    16% {
        opacity: 0;

        transform:
            translate(260px, 190px)
            rotate(-35deg);
    }

    100% {
        opacity: 0;
    }
}


/* =========================================================
   FLOATING HEARTS
========================================================= */

.floating-hearts {
    position: absolute;

    inset: 0;
}


.floating-heart {
    position: absolute;

    bottom: -40px;

    color: #ff91bb;

    opacity: 0;

    filter:
        drop-shadow(
            0 0 8px
            rgba(255, 90, 150, .35)
        );

    animation:
        floatHeart
        linear
        forwards;
}


@keyframes floatHeart {

    0% {
        transform:
            translateY(0)
            translateX(0)
            scale(.6)
            rotate(0deg);

        opacity: 0;
    }

    12% {
        opacity: .55;
    }

    100% {
        transform:
            translateY(-115vh)
            translateX(var(--drift))
            scale(1.2)
            rotate(35deg);

        opacity: 0;
    }
}


/* =========================================================
   OPENING
========================================================= */

.opening {
    position: relative;

    min-height: 100vh;

    display: grid;

    place-items: center;

    padding:
        30px 20px;

    z-index: 5;
}


.intro-content {
    width:
        min(
            650px,
            94vw
        );

    text-align: center;

    padding:
        30px 20px;

    animation:
        entrance
        1.5s
        cubic-bezier(
            .2,
            .8,
            .2,
            1
        )
        both;
}


@keyframes entrance {

    from {
        opacity: 0;

        transform:
            translateY(35px)
            scale(.97);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* =========================================================
   TEXT
========================================================= */

.eyebrow {
    color: #e8c989;

    font-size: 11px;

    letter-spacing: 5px;

    font-weight: 500;
}


.hello {
    margin-top: 4px;

    color:
        rgba(255,255,255,.75);

    font-size: 16px;
}


h1 {
    margin-top: 8px;

    font-size:
        clamp(
            42px,
            7vw,
            72px
        );

    line-height: 1.03;

    font-weight: 500;

    letter-spacing: -2px;

    text-shadow:
        0 10px 35px
        rgba(0,0,0,.3);
}


h1 span {
    font-family:
        "Great Vibes",
        cursive;

    color: #ffdca0;

    font-size: 1.08em;

    font-weight: 400;

    letter-spacing: 0;
}


.subtitle {
    margin-top: 18px;

    color:
        rgba(255,255,255,.65);

    font-size: 14px;

    line-height: 1.7;
}


/* =========================================================
   HEART ORBIT
========================================================= */

.heart-orbit {
    position: relative;

    width: 125px;
    height: 125px;

    margin:
        0 auto 15px;

    display: grid;

    place-items: center;
}


.center-heart {
    position: relative;

    z-index: 3;

    color: #ff6f9f;

    font-size: 58px;

    line-height: 1;

    text-shadow:
        0 0 18px
        rgba(255, 74, 137, .8),

        0 0 45px
        rgba(255, 74, 137, .35);

    animation:
        heartbeat
        1.5s
        ease-in-out
        infinite;
}


@keyframes heartbeat {

    0%,
    100% {
        transform:
            scale(1);
    }

    50% {
        transform:
            scale(1.13);
    }
}


.orbit {
    position: absolute;

    inset: 8px;

    border:
        1px solid
        rgba(255, 220, 160, .28);

    border-radius: 50%;
}


.orbit-one {
    animation:
        orbitSpin
        8s
        linear
        infinite;
}


.orbit-two {
    inset: 22px;

    border-color:
        rgba(255, 111, 159, .25);

    animation:
        orbitSpin
        5s
        linear
        infinite
        reverse;
}


.orbit::after {
    content: "✦";

    position: absolute;

    top: -8px;

    left: 50%;

    color: #ffe4a9;

    font-size: 13px;
}


@keyframes orbitSpin {

    to {
        transform:
            rotate(360deg);
    }
}


/* =========================================================
   START BUTTON
========================================================= */

.start-btn {
    position: relative;

    margin-top: 28px;

    min-width: 225px;

    padding:
        15px 24px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 18px;

    border:
        1px solid
        rgba(255, 225, 170, .55);

    border-radius: 999px;

    color: #fff7e4;

    background:
        linear-gradient(
            135deg,
            rgba(255, 111, 159, .24),
            rgba(255, 220, 160, .12)
        );

    backdrop-filter:
        blur(12px);

    box-shadow:
        0 10px 35px
        rgba(0,0,0,.25),

        0 0 28px
        rgba(255, 111, 159, .14);

    font-family:
        "Poppins",
        sans-serif;

    font-size: 15px;

    font-weight: 500;

    cursor: pointer;

    transition:
        transform .3s ease,
        background .3s ease,
        box-shadow .3s ease;
}


.start-btn b {
    color: #ffe0a0;

    font-size: 17px;

    transition:
        transform .3s ease;
}


.start-btn:hover {
    transform:
        translateY(-4px)
        scale(1.03);

    background:
        linear-gradient(
            135deg,
            rgba(255, 111, 159, .38),
            rgba(255, 220, 160, .18)
        );

    box-shadow:
        0 15px 40px
        rgba(0,0,0,.3),

        0 0 40px
        rgba(255, 111, 159, .25);
}


.start-btn:hover b {
    transform:
        rotate(90deg)
        scale(1.2);
}


.start-btn:active {
    transform:
        scale(.98);
}


.start-btn:disabled {
    cursor: default;

    opacity: .85;
}


/* =========================================================
   HINT
========================================================= */

.hint {
    margin-top: 14px;

    color:
        rgba(255,255,255,.32);

    font-size: 11px;

    letter-spacing: 1px;
}


/* =========================================================
   TRANSITION
========================================================= */

.transition {
    position: fixed;

    inset: 0;

    z-index: 100;

    display: grid;

    place-items: center;

    background:
        #060717;

    opacity: 0;

    visibility: hidden;

    transform:
        scale(1.08);

    transition:
        opacity .8s ease,
        visibility .8s ease,
        transform .8s ease;
}


.transition.active {
    opacity: 1;

    visibility: visible;

    transform:
        scale(1);
}


.transition-heart {
    color: #ff6f9f;

    font-size: 75px;

    text-shadow:
        0 0 25px
        rgba(255, 80, 140, .9),

        0 0 70px
        rgba(255, 80, 140, .35);

    animation:
        transitionPulse
        .8s
        ease-in-out
        infinite
        alternate;
}


@keyframes transitionPulse {

    from {
        transform:
            scale(.9);
    }

    to {
        transform:
            scale(1.15);
    }
}


/* =========================================================
   MUSIC BUTTON
========================================================= */

.music-toggle {
    position: fixed;

    right: 20px;
    bottom: 20px;

    z-index: 150;

    width: 44px;
    height: 44px;

    display: grid;

    place-items: center;

    border:
        1px solid
        rgba(255,255,255,.18);

    border-radius: 50%;

    color: white;

    background:
        rgba(20,15,40,.65);

    backdrop-filter:
        blur(12px);

    cursor: pointer;

    box-shadow:
        0 8px 25px
        rgba(0,0,0,.3);

    transition:
        transform .25s ease,
        background .25s ease;
}


.music-toggle:hover {
    transform:
        scale(1.08);

    background:
        rgba(255,100,160,.2);
}


.music-toggle.playing {
    animation:
        musicPulse
        1.4s
        ease-in-out
        infinite;
}


@keyframes musicPulse {

    0%,
    100% {
        box-shadow:
            0 8px 25px
            rgba(0,0,0,.3);
    }

    50% {
        box-shadow:
            0 0 28px
            rgba(255,100,160,.45);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .moon {
        width: 65px;
        height: 65px;

        top: 6vh;
        right: 8vw;
    }


    .moon-glow {
        width: 130px;
        height: 130px;
    }


    .heart-orbit {
        width: 105px;
        height: 105px;

        margin-bottom: 10px;
    }


    .center-heart {
        font-size: 48px;
    }


    .eyebrow {
        font-size: 9px;

        letter-spacing: 3px;
    }


    .hello {
        font-size: 14px;
    }


    .subtitle {
        font-size: 13px;
    }


    .start-btn {
        min-width: 210px;

        padding:
            14px 20px;
    }


    .hint {
        font-size: 10px;
    }


    .music-toggle {
        right: 14px;
        bottom: 14px;

        width: 40px;
        height: 40px;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        scroll-behavior:
            auto !important;
    }
}