/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   ROOT
========================================================= */

:root {

    --cream: #fff8ed;

    --soft-white: #fffdf8;

    --gold: #ffd166;

    --orange: #ff9f43;

    --pink: #ff6b9d;

    --purple: #7c4dff;

    --deep-purple: #171029;

    --dark-purple: #0d081b;

}


/* =========================================================
   BODY
========================================================= */

body {

    min-height: 100vh;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    color: var(--soft-white);

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(255, 177, 91, 0.15),
            transparent 30%
        ),
        radial-gradient(
            circle at 15% 80%,
            rgba(255, 94, 161, 0.10),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #120b24,
            #21143a 45%,
            #0b0715
        );

    overflow: hidden;
}


/* =========================================================
   SCENES
========================================================= */

.scene {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100vh;

    display: flex;

    justify-content: center;
    align-items: center;

    overflow: hidden;

    text-align: center;

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;

}


.hidden {

    display: none;

}


/* =========================================================
   AMBIENT LIGHT
========================================================= */

.ambient-glow {

    position: fixed;

    width: 500px;
    height: 500px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(255, 173, 91, 0.10),
            transparent 70%
        );

    filter: blur(30px);

    pointer-events: none;

}


/* =========================================================
   PAGE 1
========================================================= */

.invitation-page {

    flex-direction: column;

    padding: 35px;

}


.floating-stars {

    position: absolute;

    inset: 0;

    pointer-events: none;

}


.floating-stars span {

    position: absolute;

    color: rgba(255, 209, 102, 0.65);

    font-size: 22px;

    animation:
        floatStar 5s ease-in-out infinite;

}


.floating-stars span:nth-child(1) {

    top: 17%;
    left: 14%;

}


.floating-stars span:nth-child(2) {

    top: 30%;
    right: 15%;

    animation-delay: 1s;

}


.floating-stars span:nth-child(3) {

    bottom: 20%;
    left: 21%;

    animation-delay: 2s;

}


.floating-stars span:nth-child(4) {

    bottom: 30%;
    right: 18%;

    animation-delay: 1.5s;

}


.floating-stars span:nth-child(5) {

    top: 14%;
    right: 35%;

    animation-delay: 2.5s;

}


@keyframes floatStar {

    0%,
    100% {

        transform:
            translateY(0)
            rotate(0deg);

        opacity: 0.5;

    }

    50% {

        transform:
            translateY(-14px)
            rotate(15deg);

        opacity: 1;

    }

}


.small-title {

    margin-bottom: 32px;

    color: var(--gold);

    font-size: 22px;

    font-weight: 700;

    letter-spacing: 0.8px;

}


.main-message {

    max-width: 800px;

    color: var(--cream);

    font-size:
        clamp(42px, 7vw, 78px);

    line-height: 1.08;

    font-weight: 800;

    letter-spacing: -2px;

}


.sub-message {

    max-width: 650px;

    margin-top: 30px;

    margin-bottom: 42px;

    color: #d2c9df;

    font-size:
        clamp(17px, 2vw, 22px);

}


.open-button {

    position: relative;

    padding: 18px 42px;

    border: 0;

    border-radius: 100px;

    background:
        linear-gradient(
            135deg,
            #ffd166,
            #ff8c68 55%,
            #ff6b9d
        );

    color: #1a1027;

    font-size: 19px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 15px 35px rgba(255, 107, 157, 0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

}


.open-button:hover {

    transform: translateY(-4px);

    box-shadow:
        0 20px 45px rgba(255, 107, 157, 0.35);

}


.open-button:active {

    transform: scale(0.96);

}


/* =========================================================
   PAGE 2
========================================================= */

.cake-scene {

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(255, 183, 77, 0.15),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #261440,
            #130d29 45%,
            #0a0714
        );

}


/* =========================================================
   STREAMERS
========================================================= */

.streamers {

    position: absolute;

    inset: 0;

    overflow: hidden;

}


.streamers span {

    position: absolute;

    top: -20px;

    width: 12px;
    height: 140px;

    border-radius: 20px;

    opacity: 0.8;

    transform:
        rotate(20deg);

    animation:
        streamerMove 5s ease-in-out infinite;

}


.streamers span:nth-child(1) {

    left: 7%;

    background: #ff6b9d;

}


.streamers span:nth-child(2) {

    left: 20%;

    background: #ffd166;

    transform: rotate(-18deg);

}


.streamers span:nth-child(3) {

    left: 34%;

    background: #7c4dff;

}


.streamers span:nth-child(4) {

    left: 50%;

    background: #ff9f43;

}


.streamers span:nth-child(5) {

    left: 65%;

    background: #ff6b9d;

}


.streamers span:nth-child(6) {

    left: 80%;

    background: #ffd166;

}


.streamers span:nth-child(7) {

    left: 93%;

    background: #7c4dff;

}


@keyframes streamerMove {

    0%,
    100% {

        transform:
            rotate(18deg)
            translateY(0);

    }

    50% {

        transform:
            rotate(28deg)
            translateY(15px);

    }

}


/* =========================================================
   BACKGROUND BALLOONS
========================================================= */

.background-balloons {

    position: absolute;

    inset: 0;

    pointer-events: none;

}


.balloon {

    position: absolute;

    width: 85px;
    height: 105px;

    border-radius:
        50% 50% 45% 45%;

    opacity: 0.4;

    filter: blur(0.2px);

}


.balloon::after {

    content: "";

    position: absolute;

    left: 50%;

    bottom: -100px;

    width: 1px;
    height: 100px;

    background:
        rgba(255,255,255,0.25);

}


.balloon-a {

    left: 4%;
    top: 24%;

    background:
        linear-gradient(
            145deg,
            #ff6b9d,
            #c73870
        );

    transform: rotate(-10deg);

}


.balloon-b {

    right: 4%;
    top: 20%;

    background:
        linear-gradient(
            145deg,
            #ffd166,
            #ff9f43
        );

    transform: rotate(11deg);

}


.balloon-c {

    left: 10%;
    bottom: 12%;

    background:
        linear-gradient(
            145deg,
            #7c4dff,
            #4e2ea0
        );

    transform: rotate(9deg);

}


.balloon-d {

    right: 12%;
    bottom: 14%;

    background:
        linear-gradient(
            145deg,
            #ff6b9d,
            #c73870
        );

    transform: rotate(-10deg);

}


.balloon-e {

    left: 28%;
    top: 5%;

    background:
        linear-gradient(
            145deg,
            #ffd166,
            #ff9f43
        );

}


.balloon-f {

    right: 27%;
    top: 7%;

    background:
        linear-gradient(
            145deg,
            #7c4dff,
            #4e2ea0
        );

}


/* =========================================================
   PAGE 2 CONTENT
========================================================= */

.blow-content {

    position: relative;

    z-index: 10;

    display: flex;

    flex-direction: column;

    align-items: center;

}



.blow-title {

    color: var(--cream);

    font-size:
        clamp(48px, 7vw, 76px);

    font-weight: 850;

    letter-spacing: -2px;

}


.hint-box {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-top: 25px;

    padding: 13px 20px;

    border:
        1px solid
        rgba(255,255,255,0.12);

    border-radius: 18px;

    background:
        rgba(255,255,255,0.055);

    backdrop-filter:
        blur(12px);

    box-shadow:
        0 15px 40px rgba(0,0,0,0.15);

}


.bulb {

    width: 45px;
    height: 45px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        rgba(255, 209, 102, 0.14);

    font-size: 22px;

    animation:
        bulbPulse 1.6s ease-in-out infinite;

}


@keyframes bulbPulse {

    0%,
    100% {

        box-shadow:
            0 0 0 rgba(255,209,102,0);

    }

    50% {

        box-shadow:
            0 0 24px rgba(255,209,102,0.25);

    }

}


.hint-text {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    text-align: left;

}


.hint-text strong {

    color: var(--cream);

    font-size: 14px;

}


.hint-text span {

    margin-top: 3px;

    color: #c9c2d4;

    font-size: 14px;

}


/* =========================================================
   CAKE
========================================================= */

.cake-stage {

    position: relative;

    width: 430px;
    height: 370px;

    margin-top: 10px;

    cursor: pointer;

}


.cake {

    position: absolute;

    left: 50%;

    bottom: 52px;

    width: 330px;
    height: 260px;

    transform:
        translateX(-50%);

    z-index: 5;

}


.cake-shadow {

    position: absolute;

    left: 50%;

    bottom: 34px;

    width: 370px;
    height: 35px;

    border-radius: 50%;

    transform:
        translateX(-50%);

    background:
        rgba(0,0,0,0.38);

    filter: blur(12px);

}


.cake-plate {

    position: absolute;

    left: 50%;

    bottom: 35px;

    width: 420px;
    height: 38px;

    transform:
        translateX(-50%);

    border-radius: 50%;

    background:
        linear-gradient(
            to bottom,
            #ffffff,
            #bebec7
        );

    box-shadow:
        0 12px 35px rgba(0,0,0,0.45);

    z-index: 3;

}


/* =========================================================
   CAKE BODY
========================================================= */

.cake-body {

    position: absolute;

    left: 15px;

    bottom: 20px;

    width: 300px;
    height: 155px;

    overflow: hidden;

    border-radius:
        16px 16px 24px 24px;

    background:
        linear-gradient(
            90deg,
            #873721,
            #c96b3e 35%,
            #b34d2c 68%,
            #702719
        );

    box-shadow:
        inset 0 8px 15px
            rgba(255,255,255,0.16),
        inset -14px 0 22px
            rgba(0,0,0,0.23),
        0 15px 28px
            rgba(0,0,0,0.35);

}


/* Cake cream layers */

.cake-line {

    position: absolute;

    left: 0;

    width: 100%;

    height: 7px;

    background:
        #fff4e3;

    box-shadow:
        0 2px 3px rgba(0,0,0,0.08);

}


.line-one {

    top: 3px;

}


.line-two {

    top: 53px;

}


.line-three {

    top: 105px;

}


/* =========================================================
   FROSTING
========================================================= */

.cake-top {

    position: absolute;

    left: 5px;
    top: 90px;

    width: 320px;
    height: 52px;

    border-radius:
        52% 52% 22px 22px;

    background:
        linear-gradient(
            180deg,
            #fffef8,
            #ffe5d1
        );

    box-shadow:
        0 5px 12px
            rgba(0,0,0,0.2);

    z-index: 8;

}


.frosting-drip {

    position: absolute;

    top: 28px;

    width: 24px;

    border-radius:
        0 0 15px 15px;

    background:
        #fff2df;

}


.drip-one {

    left: 45px;

    height: 22px;

}


.drip-two {

    left: 121px;

    height: 30px;

}


.drip-three {

    left: 202px;

    height: 20px;

}


.drip-four {

    left: 267px;

    height: 28px;

}


/* =========================================================
   SPRINKLES
========================================================= */

.sprinkle {

    position: absolute;

    width: 8px;
    height: 3px;

    border-radius: 10px;

    background:
        #f06c8d;

    transform:
        rotate(25deg);

}


.s1 {
    left: 58px;
    top: 14px;
}


.s2 {
    left: 93px;
    top: 23px;
    transform: rotate(-30deg);
}


.s3 {
    left: 132px;
    top: 12px;
}


.s4 {
    left: 169px;
    top: 22px;
    transform: rotate(-20deg);
}


.s5 {
    left: 212px;
    top: 12px;
}


.s6 {
    left: 245px;
    top: 23px;
    transform: rotate(-35deg);
}


.s7 {
    left: 276px;
    top: 14px;
}


.s8 {
    left: 115px;
    top: 10px;
    background: #7c4dff;
}


/* =========================================================
   CANDLES
========================================================= */

.candles {

    position: absolute;

    top: 4px;
    left: 35px;

    width: 260px;
    height: 100px;

    z-index: 15;

}


.candle {

    position: absolute;

    bottom: 0;

    width: 19px;

    height: 70px;

    border-radius:
        5px 5px 3px 3px;

    background:
        repeating-linear-gradient(
            -45deg,
            #f8e7cf 0px,
            #f8e7cf 6px,
            #e5b487 6px,
            #e5b487 11px
        );

    box-shadow:
        2px 3px 7px
            rgba(0,0,0,0.35);

    transition:
        transform 0.35s ease,
        opacity 0.35s ease;

}


.candle-one {

    left: 20px;

}


.candle-two {

    left: 72px;

    height: 78px;

}


.candle-three {

    left: 120px;

    height: 86px;

}


.candle-four {

    left: 169px;

    height: 77px;

}


.candle-five {

    left: 219px;

}


/* =========================================================
   FLAMES
========================================================= */

.flame {

    position: absolute;

    left: 50%;

    top: -29px;

    width: 18px;
    height: 28px;

    transform:
        translateX(-50%)
        rotate(45deg);

    border-radius:
        50% 50% 50% 0;

    background:
        linear-gradient(
            135deg,
            #fff7a0,
            #ffb347 55%,
            #ff7043
        );

    box-shadow:
        0 0 15px
            rgba(255,187,80,0.8),
        0 0 35px
            rgba(255,140,50,0.45);

    animation:
        flicker 0.65s
        infinite alternate;

}


@keyframes flicker {

    from {

        transform:
            translateX(-50%)
            rotate(42deg)
            scale(1);

    }

    to {

        transform:
            translateX(-50%)
            rotate(49deg)
            scale(1.13);

    }

}


/* =========================================================
   BLOWN STATE
========================================================= */

.cake-stage.blown .candle {

    transform:
        translateY(10px)
        scale(0.94);

    opacity: 0.75;

}


.cake-stage.blown .flame {

    animation:
        flameOut 0.45s
        forwards;

}


@keyframes flameOut {

    0% {

        opacity: 1;

        transform:
            translateX(-50%)
            rotate(45deg)
            scale(1);

    }

    100% {

        opacity: 0;

        transform:
            translateX(-50%)
            translateY(-15px)
            scale(0.1);

    }

}


/* =========================================================
   RIPPLE
========================================================= */

.tap-ripple {

    position: absolute;

    width: 40px;
    height: 40px;

    border-radius: 50%;

    border:
        2px solid
        rgba(255,209,102,0.75);

    opacity: 0;

    pointer-events: none;

}


.tap-ripple.active {

    animation:
        rippleExpand 0.8s ease-out;

}


@keyframes rippleExpand {

    0% {

        opacity: 0.8;

        transform:
            scale(0.5);

    }

    100% {

        opacity: 0;

        transform:
            scale(8);

    }

}


/* =========================================================
   CELEBRATION LAYER
========================================================= */

.celebration-layer {

    position: fixed;

    inset: 0;

    z-index: 100;

    pointer-events: none;

    overflow: hidden;

}


.confetti {

    position: absolute;

    width: 10px;
    height: 16px;

    top: 50%;
    left: 50%;

    opacity: 0;

    animation:
        confettiBlast
        1.8s
        cubic-bezier(.12,.77,.25,1)
        forwards;

}


@keyframes confettiBlast {

    0% {

        opacity: 1;

        transform:
            translate(-50%, -50%)
            rotate(0deg)
            scale(1);

    }

    100% {

        opacity: 0;

        transform:
            translate(
                var(--x),
                var(--y)
            )
            rotate(
                var(--rotation)
            )
            scale(0.7);

    }

}


/* Firework burst */

.firework {

    position: absolute;

    left: 50%;
    top: 50%;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    animation:
        fireworkBurst 1.2s
        ease-out forwards;

}


.firework::before,
.firework::after {

    content: "";

    position: absolute;

    inset: -80px;

    background:
        radial-gradient(
            circle,
            transparent 0 76%,
            rgba(255,255,255,0.8) 77%,
            transparent 79%
        );

    border-radius: 50%;

}


@keyframes fireworkBurst {

    0% {

        transform:
            scale(0.2);

        opacity: 1;

    }

    100% {

        transform:
            scale(3);

        opacity: 0;

    }

}


/* =========================================================
   EMOJI CELEBRATION
========================================================= */

.celebration-emoji {

    position: absolute;

    left: 50%;
    top: 50%;

    font-size: 75px;

    opacity: 0;

    animation:
        emojiBlast
        1.6s
        cubic-bezier(.1,.75,.2,1)
        forwards;

}


@keyframes emojiBlast {

    0% {

        opacity: 0;

        transform:
            translate(-50%, -50%)
            scale(0.1)
            rotate(0deg);

    }

    20% {

        opacity: 1;

    }

    100% {

        opacity: 0;

        transform:
            translate(
                var(--x),
                var(--y)
            )
            scale(1)
            rotate(var(--rotation));

    }

}

/* =========================================================
   PAGE 3
========================================================= */

.birthday-scene {

    overflow-y: auto;

    align-items: flex-start;

    padding:
        90px
        25px
        70px;

    background:

        radial-gradient(
            circle at 50% 20%,
            rgba(255,209,102,0.13),
            transparent 28%
        ),

        radial-gradient(
            circle at 10% 80%,
            rgba(255,107,157,0.10),
            transparent 25%
        ),

        linear-gradient(
            135deg,
            #1b0d30,
            #321346 55%,
            #11081d
        );

}

/* =========================================================
   LIVE NIGHT SKY BACKGROUND
========================================================= */

#fireworksCanvas {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    z-index: 0;

    pointer-events: none;

}


/* =========================================================
   SOFT STAR FIELD
========================================================= */

.sky-stars {

    position: absolute;

    inset: 0;

    z-index: 0;

    pointer-events: none;

    background-image:
        radial-gradient(
            circle at 8% 18%,
            rgba(255,255,255,0.85) 0 1px,
            transparent 2px
        ),
        radial-gradient(
            circle at 18% 42%,
            rgba(255,209,102,0.75) 0 1px,
            transparent 2px
        ),
        radial-gradient(
            circle at 29% 14%,
            rgba(255,255,255,0.65) 0 1px,
            transparent 2px
        ),
        radial-gradient(
            circle at 42% 35%,
            rgba(255,255,255,0.75) 0 1px,
            transparent 2px
        ),
        radial-gradient(
            circle at 55% 16%,
            rgba(255,209,102,0.8) 0 1px,
            transparent 2px
        ),
        radial-gradient(
            circle at 68% 38%,
            rgba(255,255,255,0.7) 0 1px,
            transparent 2px
        ),
        radial-gradient(
            circle at 78% 16%,
            rgba(255,255,255,0.8) 0 1px,
            transparent 2px
        ),
        radial-gradient(
            circle at 91% 28%,
            rgba(255,209,102,0.8) 0 1px,
            transparent 2px
        ),
        radial-gradient(
            circle at 14% 72%,
            rgba(255,255,255,0.65) 0 1px,
            transparent 2px
        ),
        radial-gradient(
            circle at 34% 82%,
            rgba(255,255,255,0.6) 0 1px,
            transparent 2px
        ),
        radial-gradient(
            circle at 61% 75%,
            rgba(255,255,255,0.65) 0 1px,
            transparent 2px
        ),
        radial-gradient(
            circle at 88% 68%,
            rgba(255,255,255,0.7) 0 1px,
            transparent 2px
        );

    animation:
        starTwinkle
        4s
        ease-in-out
        infinite alternate;

}


@keyframes starTwinkle {

    0% {
        opacity: 0.45;
    }

    100% {
        opacity: 0.95;
    }

}


/* =========================================================
   KEEP PAGE CONTENT ABOVE BACKGROUND
========================================================= */

.party-lights,
.balloon-arch,
.birthday-content,
.corner-decoration {

    z-index: 2;

}
/* =========================================================
   HANGING LIGHTS
========================================================= */

.party-lights {

    position: absolute;

    top: 0;
    left: 5%;
    right: 5%;

    height: 75px;

    border-top:
        2px solid
        rgba(255,255,255,0.1);

    display: flex;

    justify-content:
        space-around;

}


.party-lights span {

    position: relative;

    width: 8px;
    height: 8px;

    margin-top: 25px;

    border-radius: 50%;

    background: var(--gold);

    box-shadow:
        0 0 15px
        rgba(255,209,102,0.8);

}


.party-lights span::before {

    content: "";

    position: absolute;

    left: 50%;

    bottom: 100%;

    width: 1px;
    height: 26px;

    background:
        rgba(255,255,255,0.18);

}


/* =========================================================
   BALLOON ARCH
========================================================= */

.balloon-arch {

    position: absolute;

    left: 50%;
    top: 50px;

    width: min(900px, 92vw);
    height: 700px;

    transform:
        translateX(-50%);

    pointer-events: none;

    z-index: 1;

}


.arch-balloon {

    position: absolute;

    width: 75px;
    height: 95px;

    border-radius:
        50% 50% 47% 47%;

    box-shadow:
        inset -12px -8px 15px
        rgba(0,0,0,0.15),

        inset 8px 7px 12px
        rgba(255,255,255,0.18);

}


.arch-balloon::after {

    content: "";

    position: absolute;

    bottom: -70px;

    left: 50%;

    width: 1px;
    height: 70px;

    background:
        rgba(255,255,255,0.2);

}


.b1 {
    left: 2%;
    top: 170px;
    background: #ff6b9d;
    transform: rotate(-14deg);
}

.b2 {
    left: 8%;
    top: 100px;
    background: #ffd166;
    transform: rotate(-9deg);
}

.b3 {
    left: 17%;
    top: 42px;
    background: #7c4dff;
    transform: rotate(-3deg);
}

.b4 {
    left: 27%;
    top: 8px;
    background: #ff9f43;
    transform: rotate(2deg);
}

.b5 {
    left: 38%;
    top: 0;
    background: #ff6b9d;
}

.b6 {
    left: 49%;
    top: 2px;
    background: #ffd166;
}

.b7 {
    right: 38%;
    top: 0;
    background: #7c4dff;
}

.b8 {
    right: 27%;
    top: 12px;
    background: #ff9f43;
}

.b9 {
    right: 17%;
    top: 47px;
    background: #ff6b9d;
}

.b10 {
    right: 8%;
    top: 100px;
    background: #ffd166;
}

.b11 {
    right: 2%;
    top: 172px;
    background: #7c4dff;
    transform: rotate(14deg);
}

.b12 {
    left: 46%;
    top: 95px;
    background: #ff9f43;
    width: 68px;
    height: 88px;
}


/* =========================================================
   BIRTHDAY CONTENT
========================================================= */

.birthday-content {

    position: relative;

    z-index: 10;

    width: min(660px, 100%);

    margin: 0 auto;

    display: flex;

    flex-direction: column;

    align-items: center;

}


.celebration-kicker {

    color:
        var(--gold);

    font-size: 16px;

    font-weight: 800;

    letter-spacing: 1px;

}

.birthday-title {

    margin-top: 10px;

    color: var(--cream);

    font-size:
        clamp(40px, 7vw, 72px);

    line-height: 1;

    font-weight: 900;

    letter-spacing: -2px;

    white-space: nowrap;

    text-shadow:
        0 8px 30px rgba(255,107,157,0.2);

}


.birthday-name {

    margin-top: 12px;

    color: #ffb8cf;

    font-size:
        clamp(27px, 4vw, 40px);

    font-weight: 700;

}


/* =========================================================
   PHOTO FRAME
========================================================= */

.photo-frame-wrapper {

    position: relative;

    margin-top: 32px;

}


.photo-frame {

    position: relative;

    width: 370px;

    max-width: 85vw;

    padding: 13px 13px 16px;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            #fffaf0,
            #f4d8cf
        );

    box-shadow:
        0 35px 70px
        rgba(0,0,0,0.45),

        0 0 0 8px
        rgba(255,209,102,0.12);

    transform:
        rotate(-1deg);

}


.birthday-photo {

    display: block;

    width: 100%;

    height: 410px;

    object-fit: cover;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #39214c,
            #b64b75
        );

}


.photo-caption {

    margin-top: 12px;

    color: #8b5365;

    font-size: 14px;

    font-weight: 700;

}


.photo-decoration {

    position: absolute;

    z-index: 3;

    color: var(--gold);

    font-size: 28px;

}


.top-left {

    left: -21px;
    top: -22px;

}


.top-right {

    right: -19px;
    top: -18px;

}


/* =========================================================
   BIRTHDAY MESSAGE CARD
========================================================= */

.birthday-card {

    width: min(620px, 100%);

    margin-top: 28px;

    padding: 30px 28px;

    border:
        1px solid
        rgba(255,255,255,0.11);

    border-radius: 24px;

    background:
        rgba(255,255,255,0.06);

    backdrop-filter:
        blur(15px);

    box-shadow:
        0 22px 55px
        rgba(0,0,0,0.20);

}


.card-stars {

    color: var(--gold);

    letter-spacing: 6px;

    font-size: 17px;

}


.birthday-message {

    margin-top: 19px;

    color: #ece4ef;

    font-size: 18px;

    line-height: 1.75;

}


.birthday-message-special {

    margin-top: 14px;

    color: #ffb7cb;

    font-size: 19px;

    line-height: 1.6;

    font-weight: 700;

}


.card-footer {

    margin-top: 22px;

    color: var(--gold);

    font-weight: 800;

}


/* =========================================================
   HIDDEN BACKGROUND AUDIO
========================================================= */
#birthdayMusic {

    position: fixed;

    left: -9999px;
    top: -9999px;

    width: 1px;
    height: 1px;

    opacity: 0;

    pointer-events: none;

    visibility: hidden;

}


/* =========================================================
   CORNER EMOJIS
========================================================= */

.corner-decoration {

    position: fixed;

    bottom: 28px;

    font-size: 48px;

    opacity: 0.75;

    animation:
        cornerFloat
        3s
        ease-in-out
        infinite;

}


.corner-left {

    left: 30px;

}


.corner-right {

    right: 30px;

    animation-delay:
        1s;

}


@keyframes cornerFloat {

    0%,
    100% {

        transform:
            translateY(0);

    }

    50% {

        transform:
            translateY(-12px);

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .main-message {

        letter-spacing:
            -1px;

    }


    .blow-title {

        letter-spacing:
            -1px;

    }


    .hint-box {

        max-width: 90vw;

    }


    .cake-stage {

        transform:
            scale(0.78);

        margin-top:
            -10px;

    }


    .background-balloons .balloon {

        opacity:
            0.22;

    }


    .birthday-scene {

        padding:
            75px
            16px
            55px;

    }


    .balloon-arch {

        top:
            35px;

        transform:
            translateX(-50%)
            scale(0.65);

        transform-origin:
            top center;

    }


    .photo-frame {

        width:
            min(350px, 90vw);

    }


    .birthday-photo {

        height:
            390px;

    }


    .birthday-card {

        padding:
            24px 18px;

    }


    .birthday-message {

        font-size:
            16px;

        line-height:
            1.7;

    }


    .corner-decoration {

        font-size:
            35px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .small-title {

        font-size:
            18px;

    }


    .main-message {

        font-size:
            39px;

    }


    .sub-message {

        font-size:
            16px;

    }


    .open-button {

        padding:
            16px 30px;

        font-size:
            17px;

    }


    .cake-stage {

        transform:
            scale(0.66);

        margin-top:
            -35px;

    }


    .birthday-title {

        font-size:
            52px;

    }


    .birthday-name {

        font-size:
            28px;

    }


    .photo-frame {

        width:
            90vw;

    }


    .birthday-photo {

        height:
            340px;

    }


    .music-card {

        padding:
            12px;

    }

}