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

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    color: #392532;

    background:
        radial-gradient(circle at 20% 20%,
            rgba(255, 170, 205, .35),
            transparent 30%),
        radial-gradient(circle at 80% 30%,
            rgba(190, 170, 255, .3),
            transparent 30%),
        linear-gradient(135deg,
            #fff0f7,
            #f4eaff,
            #ffe8f1);
}

/* ========================================
   DAY / NIGHT CURSOR CONTROL
======================================== */

html,
body {
    cursor: auto;
}

body.night-mode,
body.night-mode * {
    cursor: none !important;
}

.glow-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
    pointer-events: none;
    z-index: 30001;
    will-change: transform;
}

.glow-cursor-tail {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 44px;
    height: 9px;
    margin: -4.5px 0 0 -44px;
    border-radius: 999px;
    background: linear-gradient(90deg,
            rgba(255, 227, 163, 0),
            rgba(232, 176, 75, 0.4),
            rgba(255, 248, 236, 0.6));
    filter: blur(3px);
    transform-origin: right center;
    opacity: 0;
}

.glow-cursor-halo {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(255, 248, 236, 0.95) 0%,
            rgba(255, 227, 163, 0.55) 24%,
            rgba(232, 176, 75, 0.28) 46%,
            rgba(242, 163, 173, 0.12) 66%,
            rgba(242, 163, 173, 0) 78%);
    animation: dotBreathe 2.6s ease-in-out infinite;
}

.glow-cursor-core {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    border-radius: 50%;
    background: #fffdf7;
    box-shadow:
        0 0 6px 2px #fff8ec,
        0 0 16px 6px rgba(255, 227, 163, 0.75),
        0 0 32px 11px rgba(232, 176, 75, 0.35);
}

@keyframes dotBreathe {

    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.82;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.glow-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 74px;
    height: 74px;
    margin: -37px 0 0 -37px;
    pointer-events: none;
    z-index: 30000;
    will-change: transform;
}

.ring-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    animation: ringSpin 16s linear infinite;
    filter: drop-shadow(0 0 5px rgba(232, 176, 75, 0.4));
}

.ring-path {
    fill: none;
    stroke: url(#ringGrad);
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-dasharray: 3 9 14 9;
    opacity: 0.6;
}

.ring-bead {
    fill: #fff8ec;
    filter: drop-shadow(0 0 4px rgba(255, 227, 163, 0.9));
}

@keyframes ringSpin {
    from {
        transform: rotate(0deg);
    }

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

.firefly-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 29999;
}

/* DAY MODE - NORMAL CURSOR */
body:not(.night-mode) .glow-cursor,
body:not(.night-mode) .glow-cursor-ring,
body:not(.night-mode) .firefly-canvas {
    display: none !important;
}

/* NIGHT MODE - FIREFLY CURSOR */
body.night-mode .glow-cursor,
body.night-mode .glow-cursor-ring,
body.night-mode .firefly-canvas {
    display: block;
}

@media (pointer: coarse) {

    html,
    body {
        cursor: auto;
    }

    .glow-cursor,
    .glow-cursor-ring,
    .firefly-canvas {
        display: none !important;
    }
}


.hidden-message {

    display: flex;
    align-items: center;
    justify-content: center;
    width: 600px;
    height: 300px;
    flex-direction: column;
}

body.intro-active {
    overflow: hidden;
}

#musicButton {
    position: fixed;

    top: 20px;
    right: 20px;

    z-index: 20000;
    border: none;
    padding: 10px 18px;

    border-radius: 25px;
    background: #d94f75;
    color: white;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    box-shadow: 0 6px 18px rgba(217, 79, 117, 0.25);
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

#musicButton:hover {
    transform: translateY(-2px);
    background: #c83f65;
}

#musicButton:active {
    transform: scale(0.95);
}

.intro-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    background:
        radial-gradient(circle at 20% 20%, #ffd6e5, transparent 35%),
        radial-gradient(circle at 80% 80%, #ffe6c7, transparent 35%),
        #fff5f8;

    transition: opacity 0.8s ease,
        visibility 0.8s ease;
}

.intro-content {
    width: min(90%, 700px);

    animation: introAppear 1.2s ease;
}

.intro-small {
    color: #b36b7d;
    font-size: 16px;
    margin-bottom: 15px;
}

.intro-content h1 {
    font-family: Georgia, Serif;
    font-size: clamp(50px, 9vw, 90px);
    color: #d94f75;
    margin-bottom: 15px;
}

.intro-question {
    font-size: 18px;
    color: #684b54;
    margin-bottom: 35px;
}

.intro-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.intro-buttons button {
    border: none;
    padding: 14px 30px;

    border-radius: 30px;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    transition: transform 0.25s ease,
        box-shadow 0.25s ease;
}

#yesButton {
    background: #d94f75;
    color: white;
    box-shadow: 0 8px 20px rgba(217, 79, 117, 0.25);
}

#noButton {
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
    white-space: normal;
    background: white;
    color: #70444f;
    border: 1px solid #ead2d9;
    transition:
        left 0.25s ease,
        top 0.25s ease,
        transform 0.2s ease;
}

#noButton.angry {
    animation: angryShake 0.35s ease;
}

@keyframes angryShake {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-8deg);
    }

    50% {
        transform: rotate(8deg);
    }

    75% {
        transform: rotate(-6deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

.intro-buttons button:hover {
    transform: translateY(-4px);
}

.intro-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes introAppear {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.site-profile {
    position: fixed;
    top: 20px;
    left: 20px;

    width: 80px;
    height: 80px;

    padding: 3px;

    border-radius: 50%;
    background: white;

    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);

    z-index: 20001;

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

.site-profile img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    border-radius: 50%;
}

@keyframes profileFloat {

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

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

/* Puzzle Game */
.game-screen {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100vh;

    z-index: 9000;

    display: none;

    overflow-y: auto;
    overflow-x: hidden;
}

.game-screen.show-game {
    display: flex;
}

.game-screen {
    min-height: 100vh;
    width: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    text-align: center;

    background:
        radial-gradient(circle at 15% 20%, #ffdce8, transparent 35%),
        radial-gradient(circle at 85% 80%, #ffe8cf, transparent 35%),
        #fff7fa;
}

.game-screen.show-game {
    display: flex;
}

.game-content {
    width: min(92%, 700px);
    margin: auto;

}

.game-content h1 {
    font-family: Georgia, serif;
    color: #d94f75;
    font-size: clamp(38px, 7vw, 65px);
    line-height: 1.1;
    margin-bottom: 15px;
}

.game-instruction {
    color: #684b54;
    font-size: 16px;
    margin-bottom: 30px;
}

/* puzzle Grid */
.puzzle {
    width: min(100%, 560px);
    margin: 30px auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;

    perspective: 1000px;
}

/* puzzle Card */
.puzzle-card {
    position: relative;

    width: 100%;
    aspect-ratio: 1/1;

    padding: 0;
    border: none;
    border-radius: 16px;

    background: #d94f75;

    cursor: pointer;
    overflow: hidden;
    transform-style: preserve-3d;
    transition:
        transform 0.5s ease,
        box-shadow 0.3s ease;
}

.puzzle-card:hover {
    transform: translateY(-4px);
    box-shadow: 0.3s ease;
}

/* Question Mark?*/
.card-front {
    position: absolute;

    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    color: white;

    font-size: 35px;
    font-weight: 600;

    backface-visibility: hidden;
    z-index: 2;
}

/* Image */
.card-image {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 16px;
    opacity: 0;

    transform: none;
    transition:
        opacity 0.25 ease,
        transform 0.5s ease;
}

/* Flipped card */
.puzzle-card.flipped {
    transform: rotateY(180deg);
}

.puzzle-card.flipped .card-front {
    opacity: 0;
}

.puzzle-card.flipped .card-image {
    opacity: 1;
}

/* Matched card Stay Flipped */
.puzzle-card.matched {
    cursor: default;

    box-shadow:
        0 0 0 3px #d94f75,
        0 10px 25px rgba(217, 79, 117, 0.2);
}

.puzzle-card.matched .card-front {
    opacity: 0;
}

.puzzle-card.matched .card-image {
    opacity: 1;
}

/* Matched Card */
.puzzle-card.matched {
    cursor: default;

    box-shadow:
        0 0 0 3px #d94f75,
        0 10px 25px rgba(217, 79, 117, 0.2);
}

.puzzle-card.matched .card-image {
    opacity: 1;
}

/* Congratulations */
.puzzle-complete {
    margin-top: 30px;

    padding: 25px;

    background:
        rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(100, 50, 65, 0.12);

    animation: puzzleComplete 0.7s ease;

}

.puzzle-complete h2 {
    font-family: Georgia, serif;
    color: #d94f75;
    font-size: 36px;
    margin-bottom: 10px;
}

.puzzle-complete p {
    color: #684b54;
}

/* puzzle Gift */
.game-gift {
    width: 260px;
    height: 260px;

    margin: 25px auto;

    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.game-gift.revealed {
    width: 100%;
    height: auto;
    min-height: 0;

    margin: 25px auto;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: default;
}

.game-gift:hover {
    transform: scale(1.05);
}

.game-gift>img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    display: block;
}

#skipPuzzleButton {
    margin-top: 25px;

    padding: 12px 22px;

    border: none;
    border-radius: 25px;

    background: white;
    color: #d94f75;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    box-shadow: 0 5px 15px rgba(100, 50, 65, 0.12);

    transition: 0.25s ease;
}

#skipPuzzleButton:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(100, 50, 65, 0.18);
}

/* gift Reveal */
.gift-reveal {
    width: 100%;
    max-width: 500px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    animation: revealAppear 0.8s ease;
}

.gift-reveal h2 {
    width: 100%;

    margin: 0 0 20px;

    font-family: Georgia, serif;
    font-size: 32px;
    line-height: 1.2;

    color: #d94f75;
}

.gift-reveal img {
    width: 240px;
    height: 240px;

    object-fit: cover;

    display: block;

    margin: 0 auto;

    border-radius: 20px;

    box-shadow: 0 10px 25px rgba(100, 50, 65, 0.15);
}

.gift-reveal p {
    margin: 18px 0 0;

    font-size: 19px;
    line-height: 1.4;

    color: #684b54;
}

/* Animations */
@keyframes puzzleComplete {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes giftFloat {

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

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

.small-text {
    font-size: 16px;
    color: #a86b7b;
    margin-bottom: 15px;
}

.hero h1 {
    font-family: Georgia, serif;
    font-size: clamp(48px, 5vw, 90px);
    color: #70444f;
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero h2 {
    font-size: 28px;
    color: #70444f;
    margin-bottom: 20px;
}

.intro {
    max-width: 720px;
    font-size: 17px
}

.intro strong {
    color: #d94f75;
    font-size: 22px;
}


/* FORCE SURPRISE BUTTON TO BE VISIBLE */

#surprise-btn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;

    position: relative;
    z-index: 50;

    margin-top: 30px;

    padding: 16px 32px;

    border: none;
    border-radius: 999px;

    color: #ffffff !important;

    background: linear-gradient(135deg,
            #e84f7b,
            #b93767);

    font-size: 17px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 10px 30px rgba(185, 55, 103, 0.35);
}

#surprise-button:hover {
    background-color: #c83f65;
    box-shadow: 0 12px 25px rgba(217, 79, 117, 0.35);
    transform: translateY(-4px);
}

#surprise-button:active {
    transform: scale(0.95);

}


.message {
    padding: 90px 20px;
    text-align: center;
    background: white;
}

.message h2,
.memories h2,
.surprise h2 {
    font-family: Georgia, serif;
    font-size: 38px;
    color: #d94f75;
    margin-bottom: 25px;

}

.message-text {
    max-width: 750px;
    margin: auto;
    font-size: 17px;
    color: #684b54;
    white-space: pre-line;
}




.memories {
    padding: 90px 20px;
    text-align: center;
    background: #fff0f4;

}

.memories-gallery {
    max-width: 1050px;
    margin: 45px auto 0;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.memory {
    background: white;
    padding: 12px;
    border-radius: 18px;

    box-shadow: 0 8px 25px rgba (100, 50, 65, 0.10);

    transition: 0.3s ease;

}

.memory:hover {
    transform: translateY(-8px) rotate(-1deg);
}

.memory img {
    width: 100%;
    height: 280px;

    object-fit: cover;

    border-radius: 12px;

    display: block;
}

.memory-caption {
    padding: 15px 8px 8px;
    font-size: 15px;
    color: #70444f;
}




.surprise {
    min-height: 80vh;
    padding: 90px 20px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;

    background:
        radial-gradient(circle at center, #ffe1ea, #fff5f7);
}

.gift {
    font-size: 90px;
    margin-bottom: 20px;

    animation: giftBounce 2s ease-in-out infinite;
}

.surprise-text {
    max-width: 750px;
    font-size: 17px;
    color: #684b54;

    white-space: pre-line;

    margin-bottom: 30px;
}

.surprise h3 {
    font-family: georgia, serif;
    font-size: 30px;
    color: #d94f75;
}



.footer {
    padding: 25px 20px;
    text-align: center;
    background: #4a3038;
    color: #ffe8ee;
}

.footer-text {
    font-size: 14px;
}



@keyframes float {
    0% {
        transform: translateY(0);
    }

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

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

@keyframes giftBounce {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(3deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* ONE MORE SURPRISE BUTTON */

.cake-button {
    display: block;
    margin: 25px auto 10px;

    padding: 14px 30px;

    border: none;
    border-radius: 30px;

    background: linear-gradient(135deg, #d94f75, #e96b8b);

    color: white;

    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: bold;

    cursor: pointer;

    box-shadow: 0 8px 20px rgba(217, 79, 117, 0.25);

    transition: transform 0.2s ease,
        box-shadow 0.2s ease;
}

.cake-button:hover {
    transform: translateY(-3px) scale(1.03);

    box-shadow: 0 12px 25px rgba(217, 79, 117, 0.35);
}

.cake-button:active {
    transform: scale(0.95);
}

/* ========================================
   CAKE SURPRISE PAGE
======================================== */

.cake-page {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100vh;

    display: none;

    z-index: 15000;

    overflow: hidden;

    background:
        radial-gradient(circle at 20% 20%, #ffd6e5, transparent 35%),
        radial-gradient(circle at 80% 80%, #ffe6c7, transparent 35%),
        #fff5f8;

    text-align: center;
}

.cake-page.cake-page-open {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.cake-page-content {
    width: min(95%, 700px);
    max-height: 100vh;

    padding: 50px 20px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cake-page h1 {
    font-family: Georgia, serif;
    color: #d94f75;
    font-size: clamp(38px, 6vw, 60px);
    margin-bottom: 5px;
}

.cake-small {
    color: #b36b7d;
    font-size: 15px;
}

.cake-instruction {
    color: #684b54;
    margin-bottom: 5px;
}

.cake-close {
    position: absolute;

    top: 20px;
    right: 20px;

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    background: #d94f75;
    color: white;

    font-size: 22px;
    font-weight: bold;

    cursor: pointer;

    z-index: 20;
}

/* ========================================
   REALISTIC MULTI-PIECE CAKE
======================================== */

.cake-area {
    position: relative;

    width: 500px;
    height: 390px;

    margin: 10px auto 0;

    display: flex;
    justify-content: center;
    align-items: flex-end;

    cursor: default;
}


/* ========================================
   MAIN CAKE
======================================== */

.cake {
    position: relative;

    width: 380px;
    height: 300px;

    margin: auto;
}


/* ========================================
   CAKE PLATE
======================================== */

.cake-plate {
    position: absolute;

    left: 50%;
    bottom: 0;

    width: 400px;
    height: 45px;

    transform: translateX(-50%);

    border-radius: 50%;

    background:
        linear-gradient(180deg,
            #ffffff,
            #e5e5e5);

    box-shadow:
        0 12px 20px rgba(80, 50, 60, 0.18);

    z-index: 1;
}


/* ========================================
   CAKE BODY
======================================== */

.cake-body {
    position: absolute;

    left: 40px;
    bottom: 40px;

    width: 300px;
    height: 180px;

    border-radius:
        20px 20px 30px 30px;

    background:
        linear-gradient(90deg,
            #c95773,
            #ed9aae 35%,
            #f3aabd 65%,
            #c95773);

    border: 4px solid #b84766;

    overflow: visible;

    z-index: 4;
}


/* ========================================
   CAKE LAYERS
======================================== */

.cake-layer {
    position: absolute;

    left: 0;

    width: 100%;
    height: 45px;

    background:
        linear-gradient(180deg,
            #fffafa,
            #ffe3ea);

    border-top: 3px solid #ffffff;
    border-bottom: 3px solid #e7a0b1;
}

.cake-layer-1 {
    top: 48px;
}

.cake-layer-2 {
    top: 112px;
}


/* ========================================
   CAKE TOP
======================================== */

.cake-top {
    position: absolute;

    left: 35px;
    bottom: 195px;

    width: 310px;
    height: 85px;

    border-radius: 50%;

    background:
        radial-gradient(ellipse at 45% 35%,
            #ffffff,
            #ffd8e3 55%,
            #e99aad);

    border: 5px solid #b84766;

    z-index: 8;

    box-shadow:
        inset 0 -12px 20px rgba(190, 80, 110, 0.18);
}


/* ========================================
   CREAM DECORATION
======================================== */

.cream {
    position: absolute;

    width: 42px;
    height: 42px;

    border-radius: 50%;

    background:
        radial-gradient(circle at 35% 30%,
            #ffffff,
            #ffe9ef);

    box-shadow:
        0 4px 8px rgba(100, 50, 60, 0.12);
}

.cream-1 {
    left: 50px;
    top: 20px;
}

.cream-2 {
    left: 135px;
    top: 10px;
}

.cream-3 {
    right: 45px;
    top: 22px;
}


/* ========================================
   CAKE PIECES
======================================== */

.cake-piece {
    position: absolute;

    width: 96px;
    height: 160px;

    padding: 0;

    border: 0;

    background:
        linear-gradient(90deg,
            #c65372,
            #e88da3,
            #f1a8ba);

    border-right: 3px solid #b84766;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        opacity 0.35s ease;

    z-index: 15;
}


/* Cream on each piece */

.cake-piece span {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 42px;

    background:
        linear-gradient(180deg,
            #ffffff,
            #ffe1e9);

    border-radius:
        0 0 18px 18px;
}


/* ========================================
   PIECE POSITIONS
======================================== */

.piece-1 {
    left: 0;
    top: 10px;
}

.piece-2 {
    left: 50px;
    top: 10px;
}

.piece-3 {
    left: 100px;
    top: 10px;
}

.piece-4 {
    left: 150px;
    top: 10px;
}

.piece-5 {
    left: 200px;
    top: 10px;
}

.piece-6 {
    left: 250px;
    top: 10px;
}


/* ========================================
   PIECE HOVER
======================================== */

.cake-piece:hover {
    transform: translateY(-8px);

    filter: brightness(1.06);
}


/* ========================================
   EATEN PIECE
======================================== */

.cake-piece.eaten {
    pointer-events: none;

    animation:
        cakePieceBreak 0.65s ease-out forwards;
}


@keyframes cakePieceBreak {

    0% {
        transform:
            translate(0, 0) rotate(0deg) scale(1);

        opacity: 1;
    }

    35% {
        transform:
            translate(10px, -20px) rotate(8deg) scale(1.05);

        opacity: 1;
    }

    100% {
        transform:
            translate(100px, 150px) rotate(35deg) scale(0.6);

        opacity: 0;
    }
}


/* ========================================
   CANDLE
======================================== */

.cake-candle {
    position: absolute;

    left: 50%;
    bottom: 275px;

    width: 22px;
    height: 70px;

    transform: translateX(-50%);

    border-radius: 8px;

    background:
        repeating-linear-gradient(45deg,
            #d94f75 0 8px,
            #ffffff 8px 16px);

    z-index: 12;
}


.candle-flame {
    position: absolute;

    left: 50%;
    top: -35px;

    width: 24px;
    height: 34px;

    transform:
        translateX(-50%) rotate(-45deg);

    border-radius:
        50% 50% 50% 0;

    background:
        linear-gradient(135deg,
            #fff176,
            #ff9800);

    box-shadow:
        0 0 18px #ffc107;

    animation:
        candleFlicker 0.6s infinite alternate;
}


@keyframes candleFlicker {

    from {
        transform:
            translateX(-50%) rotate(-45deg) scale(1);
    }

    to {
        transform:
            translateX(-50%) rotate(-45deg) scale(1.15);
    }
}


/* ========================================
   BREAKING PARTICLES
======================================== */

.cake-particle {
    position: fixed;

    width: 9px;
    height: 9px;

    z-index: 30000;

    pointer-events: none;

    image-rendering: pixelated;

    background: #9b5b35;

    box-shadow:
        inset 2px 2px 0 #c08055,
        inset -2px -2px 0 #704025;

    animation:
        cakeParticleBreak 0.8s cubic-bezier(.15, .8, .25, 1) forwards;
}


@keyframes cakeParticleBreak {

    0% {
        transform:
            translate(0, 0) rotate(0deg) scale(1);

        opacity: 1;
    }

    100% {
        transform:
            translate(var(--x), var(--y)) rotate(var(--rotate)) scale(0.5);

        opacity: 0;
    }
}


/* ========================================
   CAKE MESSAGE
======================================== */

.cake-message {
    margin-top: 5px;

    color: #684b54;

    font-size: 18px;

    font-weight: 600;
}

/* Styling of forward button */
.more-forward-button {
    display: none !important;

    margin: 25px auto 10px;

    padding: none;

    border-radius: 999px;
    background: linear-gradient(135deg,
            #d94f75,
            #ef7895);

    color: #ffffff;

    font-family: inherit;
    font-size: 17px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(217, 79, 117, 0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

/* JavaScript adds .show after all pieces are eaten */

.more-forward-button.show {
    display: block !important;

    animation: moreForwardAppear 0.6s ease forwards;
}

.more-forward-button:hover {
    transform: translateY(-4px) scale(1.04);

    box-shadow:
        0 12px 28px rgba(217, 79, 117, 0.35);
}

.more-forward-button:active {
    transform: scale(0.96);
}

@keyframes moreForwardAppear {

    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


@keyframes floatingStar {

    0%,
    100% {
        transform:
            translateY(0) rotate(0deg);

        opacity: 0.35;
    }

    50% {
        transform:
            translateY(-25px) rotate(15deg);

        opacity: 0.8;
    }
}

/* ================================
   CAKE - MORE FORWARD BUTTON
================================ */

#moreForwardButton {
    display: none;

    margin: 30px auto 0;

    padding: 12px 24px;

    border: 2px solid #d94f75;
    border-radius: 999px;

    background: linear-gradient(135deg,
            #e85b82,
            #d43f6b);

    color: white;

    font-family: inherit;
    font-size: 17px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 8px 25px rgba(217, 79, 117, 0.30);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}


/* When JavaScript adds .show */

#moreForwardButton.show {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    animation:
        moreForwardAppear 0.7s ease forwards;
}


/* Hover */

#moreForwardButton:hover {
    transform:
        translateY(-4px) scale(1.04);

    box-shadow:
        0 14px 35px rgba(217, 79, 117, 0.40);

    filter: brightness(1.05);
}


/* Click */

#moreForwardButton:active {
    transform:
        translateY(0) scale(0.96);
}


/* Entrance */

@keyframes moreForwardAppear {

    from {
        opacity: 0;
        transform:
            translateY(20px) scale(0.85);
    }

    to {
        opacity: 1;
        transform:
            translateY(0) scale(1);
    }
}

/* FINAL MESSAGE REVEAL */

.final-message {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease,
        visibility 0.6s ease;
}

.prank-content.revealed .final-message {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* ==================================================
   ULTIMATE BIRTHDAY PAGE
================================================== */

.birthday-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;

    background:
        radial-gradient(circle at 10% 10%,
            rgba(255, 170, 205, 0.45),
            transparent 30%),
        radial-gradient(circle at 90% 20%,
            rgba(190, 170, 255, 0.35),
            transparent 30%),
        radial-gradient(circle at 50% 90%,
            rgba(255, 210, 160, 0.35),
            transparent 35%),
        #fff7fb;
}

/* ==================================================
   SURPRISE BUTTON
================================================== */

#surprise-button {

    position: relative;

    margin-top: 45px;

    padding: 18px 38px;

    border: none;
    border-radius: 999px;

    background:
        linear-gradient(135deg,
            #d94f75,
            #ff6b9d,
            #8f63ff);

    background-size: 200% 200%;

    color: white;

    font-size: 18px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 15px 35px rgba(217, 79, 117, .25),
        0 0 0 0 rgba(255, 105, 160, .4);

    animation:
        buttonGradient 4s ease infinite,
        buttonPulse 2.5s infinite;

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


@keyframes buttonGradient {

    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


@keyframes buttonPulse {

    0% {
        box-shadow:
            0 15px 35px rgba(217, 79, 117, .25),
            0 0 0 0 rgba(255, 105, 160, .35);
    }

    70% {
        box-shadow:
            0 15px 35px rgba(217, 79, 117, .25),
            0 0 0 18px rgba(255, 105, 160, 0);
    }

    100% {
        box-shadow:
            0 15px 35px rgba(217, 79, 117, .25),
            0 0 0 0 rgba(255, 105, 160, 0);
    }
}


#surprise-button:hover {

    transform:
        translateY(-7px) scale(1.06);

    box-shadow:
        0 22px 45px rgba(217, 79, 117, .35);
}


#surprise-button:active {

    transform:
        translateY(-2px) scale(.96);
}


/* ==================================================
   SECTIONS
================================================== */

.birthday-page .message,
.birthday-page .memories,
.birthday-page .surprise {

    position: relative;

    padding:
        120px 25px;

    text-align: center;

    overflow: hidden;
}


.birthday-page .message {

    background:
        linear-gradient(135deg,
            #fff0f6,
            #f5efff);
}


.birthday-page .memories {

    background:
        linear-gradient(135deg,
            #fff7ed,
            #fff0f7);
}


.birthday-page .surprise {

    min-height: 80vh;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    background:
        radial-gradient(circle at center,
            #ffe0ed,
            #f1e7ff 60%,
            #fff7fb);
}


/* ==================================================
   SECTION TITLES
================================================== */

.birthday-page .message h2,
.birthday-page .memories h2,
.birthday-page .surprise h2 {

    font-size: clamp(32px, 5vw, 58px);

    margin-bottom: 35px;

    color: #d94f75;

    animation:
        titleFloat 4s ease-in-out infinite;
}


.message-text {

    max-width: 800px;

    margin: auto;

    font-size: 19px;

    line-height: 1.9;

    color: #5d4650;
}


/* ==================================================
   MEMORY CARDS
================================================== */

.memories-gallery {

    max-width: 1100px;

    margin: 50px auto 0;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 30px;
}


.memory {

    position: relative;

    overflow: hidden;

    border-radius: 25px;

    background: rgba(255, 255, 255, .7);

    padding: 12px;

    box-shadow:
        0 20px 50px rgba(80, 40, 60, .12);

    transition:
        transform .5s cubic-bezier(.2, .8, .2, 1),
        box-shadow .5s ease;
}


.memory:hover {

    transform:
        translateY(-15px) rotate(-1deg) scale(1.03);

    box-shadow:
        0 30px 70px rgba(80, 40, 60, .2);
}


.memory:nth-child(2):hover {

    transform:
        translateY(-15px) rotate(1deg) scale(1.03);
}


.memory img {

    width: 100%;

    height: 330px;

    object-fit: cover;

    display: block;

    border-radius: 18px;

    transition:
        transform .7s ease;
}


.memory:hover img {

    transform: scale(1.08);
}


.memory-caption {

    padding: 15px 10px 8px;

    font-size: 16px;

    color: #684b54;

    line-height: 1.5;
}


/* ==================================================
   FINAL SURPRISE
================================================== */

.birthday-page .surprise {

    border-top:
        1px solid rgba(217, 79, 117, .12);
}


.birthday-page .surprise .game-gift {

    font-size: 100px;

    animation:
        giftBounce 2s ease-in-out infinite;

    filter:
        drop-shadow(0 20px 20px rgba(217, 79, 117, .2));
}


.birthday-page .surprise h3 {

    font-size: clamp(25px, 4vw, 42px);

    color: #d94f75;

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


.surprise-text {

    max-width: 750px;

    font-size: 19px;

    line-height: 1.8;

    color: #684b54;
}

/* FIX SURPRISE VISIBILITY */

.birthday-page .surprise.show {

    display: flex !important;

    opacity: 1 !important;

    visibility: visible !important;

    transform: translateY(0) !important;

}

/* GALLERY NIGHT MODE */
body.night-mode .reel {
    background: #0c0915;
}

body.night-mode .reel-pin {
    background:
        radial-gradient(circle at 50% 38%, rgba(130, 70, 170, .25), transparent 58%),
        radial-gradient(circle at 82% 78%, rgba(190, 70, 135, .18), transparent 55%),
        linear-gradient(180deg, #0c0915, #171021);
}

body.night-mode .reel-head h2 {
    color: #ff82ad;
}

body.night-mode .reel-sub,
body.night-mode .reel-counter {
    color: #c9b8d2;
}

body.night-mode .frame-card {
    background: #21182b;
    box-shadow: 0 24px 55px rgba(0, 0, 0, .45);
}

body.night-mode .reel-frame figcaption {
    color: #f2e6f5;
}

body.night-mode .dash {
    background: rgba(180, 140, 220, .22);
}

body.night-mode .dash.active {
    background: linear-gradient(90deg, #ff6f9f, #a77cff);
}

/* =========================================================
   FINAL GLOBAL NIGHT MODE
   MUST STAY AT THE VERY END
========================================================= */

body.night-mode {
    background: #0a0812 !important;
    color: #f5edf8 !important;
}

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

body.night-mode h1,
body.night-mode h2,
body.night-mode h3,
body.night-mode h4,
body.night-mode p,
body.night-mode span,
body.night-mode label {
    color: inherit;
}

/* ========================================
   PROFILE MENU
======================================== */

body.night-mode .profile-menu>button {
    background:
        linear-gradient(135deg,
            #24192f,
            #34203d) !important;

    color: #f8edf9 !important;

    border-color:
        rgba(255, 255, 255, .14) !important;

    box-shadow:
        0 10px 28px rgba(0, 0, 0, .35) !important;
}

body.night-mode .profile-menu>button:hover {
    background:
        linear-gradient(135deg,
            #3a2547,
            #48254b) !important;

    color: white !important;
}

/* ========================================
   PUZZLE PAGE
======================================== */

body.night-mode .game-screen {
    background:
        radial-gradient(circle at 15% 20%,
            rgba(130, 70, 170, .25),
            transparent 35%),
        radial-gradient(circle at 85% 80%,
            rgba(190, 70, 135, .18),
            transparent 35%),
        #0c0915 !important;

    color: #f5edf8 !important;
}

body.night-mode .game-content h1 {
    color: #ff82ad !important;
}

body.night-mode .game-instruction {
    color: #cdbbd5 !important;
}

body.night-mode .puzzle-complete {
    background: rgba(31, 24, 44, .92) !important;
    color: #f5edf8 !important;
}

body.night-mode .puzzle-complete h2 {
    color: #ff82ad !important;
}

body.night-mode .puzzle-complete p {
    color: #cdbbd5 !important;
}

body.night-mode #skipPuzzleButton {
    background: #291d35 !important;
    color: #ff82ad !important;
}

/* ========================================
   MONKEY / SURPRISE PAGE
======================================== */

body.night-mode .game-screen .game-content {
    color: #f5edf8 !important;
}

body.night-mode .game-small {
    color: #ff82ad !important;
}

/* ========================================
   CAKE PAGE
======================================== */

body.night-mode .cake-page {
    background:
        radial-gradient(circle at 20% 20%,
            rgba(130, 70, 170, .28),
            transparent 35%),
        radial-gradient(circle at 80% 80%,
            rgba(190, 70, 135, .20),
            transparent 35%),
        #0b0813 !important;

    color: #f5edf8 !important;
}

body.night-mode .cake-page h1 {
    color: #ff82ad !important;
}

body.night-mode .cake-small,
body.night-mode .cake-instruction,
body.night-mode .cake-message {
    color: #cdbbd5 !important;
}

body.night-mode .cake-close {
    background:
        linear-gradient(135deg,
            #8d3e68,
            #713e9d) !important;
}

/* ========================================
   PRANK PAGE
======================================== */

body.night-mode .prank-page {
    background:
        radial-gradient(circle at 20% 20%,
            rgba(130, 70, 170, .25),
            transparent 35%),
        radial-gradient(circle at 80% 80%,
            rgba(190, 70, 135, .18),
            transparent 35%),
        #0b0813 !important;

    color: #f5edf8 !important;
}

body.night-mode .prank-page h1,
body.night-mode .prank-page h2,
body.night-mode .prank-page h3 {
    color: #ff82ad !important;
}

body.night-mode .prank-page p {
    color: #cdbbd5 !important;
}

/* ========================================
   INTRO PAGE
======================================== */

body.night-mode .intro-screen {
    background:
        radial-gradient(circle at 20% 20%,
            rgba(130, 70, 170, .25),
            transparent 35%),
        radial-gradient(circle at 80% 80%,
            rgba(190, 70, 135, .18),
            transparent 35%),
        #0b0813 !important;

    color: #f5edf8 !important;
}

body.night-mode .intro-screen h1,
body.night-mode .intro-screen h2,
body.night-mode .intro-screen h3 {
    color: #ff82ad !important;
}

body.night-mode .intro-screen p {
    color: #cdbbd5 !important;
}

/* ========================================
   BIRTHDAY PAGE
======================================== */

body.night-mode .birthday-page {
    background:
        radial-gradient(circle at 10% 10%,
            rgba(112, 72, 180, .28),
            transparent 30%),
        radial-gradient(circle at 90% 20%,
            rgba(180, 70, 130, .20),
            transparent 30%),
        #0b0914 !important;

    color: #f5edf8 !important;
}

body.night-mode .birthday-page .hero {
    background:
        radial-gradient(circle at top left,
            rgba(120, 70, 170, .30),
            transparent 35%),
        radial-gradient(circle at bottom right,
            rgba(180, 70, 130, .20),
            transparent 35%),
        #0d0a18 !important;
}

body.night-mode .birthday-page .message {
    background:
        linear-gradient(135deg,
            #15101f,
            #1c1429) !important;
}

body.night-mode .birthday-page .memories {
    background:
        linear-gradient(135deg,
            #120e1b,
            #1b1323) !important;
}

body.night-mode .birthday-page .surprise {
    background:
        radial-gradient(circle at center,
            #28172d,
            #17132a 60%,
            #0e0b17) !important;
}

body.night-mode .letter {
    background:
        linear-gradient(135deg,
            #15101f,
            #1d1428) !important;

    color: #f4eaf7 !important;
}

body.night-mode .letter-body .line {
    color: #e8dce9 !important;
}

body.night-mode .message-text,
body.night-mode .surprise-text {
    color: #d8c9df !important;
}

/* ========================================
   BIRTHDAY GALLERY
======================================== */

body.night-mode .reel,
body.night-mode .reel-pin {
    background:
        radial-gradient(circle at 50% 38%,
            rgba(130, 70, 170, .25),
            transparent 58%),
        linear-gradient(180deg,
            #0a0812,
            #171021) !important;
}

body.night-mode .frame-card {
    background: #21182d !important;
}

body.night-mode .reel-frame figcaption {
    color: #f3e7f5 !important;
}

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

body.night-mode #musicButton {
    background:
        linear-gradient(135deg,
            #8d3e68,
            #713e9d) !important;

    color: white !important;
}

/* ========================================
   CURSOR
======================================== */

body:not(.night-mode) .glow-cursor,
body:not(.night-mode) .glow-cursor-ring,
body:not(.night-mode) .firefly-canvas {
    display: none !important;
}

body.night-mode .glow-cursor,
body.night-mode .glow-cursor-ring,
body.night-mode .firefly-canvas {
    display: block !important;
}

/* ========================================
   TOUCH DEVICES
======================================== */

@media (pointer: coarse) {

    body.night-mode,
    body.night-mode * {
        cursor: auto !important;
    }

    .glow-cursor,
    .glow-cursor-ring,
    .firefly-canvas {
        display: none !important;
    }
}

/* ==================================================
   FLOATING EFFECTS
================================================== */

.birthday-effects {

    position: fixed;

    inset: 0;

    pointer-events: none;

    overflow: hidden;

    z-index: 1;
}


.floating-heart {

    position: absolute;

    bottom: -60px;

    font-size: 20px;

    opacity: .7;

    animation:
        heartFloat linear forwards;
}


@keyframes heartFloat {

    from {
        transform:
            translateY(0) rotate(0deg);
        opacity: 0;
    }

    15% {
        opacity: .8;
    }

    to {
        transform:
            translateY(-120vh) rotate(360deg);
        opacity: 0;
    }
}


.floating-star {

    position: absolute;

    color: #d94f75;

    animation:
        starTwinkle 2s ease-in-out infinite;
}


@keyframes starTwinkle {

    0%,
    100% {
        opacity: .2;
        transform: scale(.7);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }
}



/* ==================================================
   SCROLL REVEAL
================================================== */

.message,
.memories,
.surprise {

    opacity: 0;

    transform: translateY(80px);

    transition:
        opacity 1s ease,
        transform 1s cubic-bezier(.2, .8, .2, 1);
}


.message.visible,
.memories.visible,
.surprise.visible {

    opacity: 1;

    transform: translateY(0);
}

.profile-menu button:hover {
    background:
        rgba(232, 176, 75, .14) !important;
}



/* =========================================================
   NIGHT MODE
========================================================= */

body.night-mode {
    background:
        radial-gradient(120% 90% at 50% -10%,
            #1d1728,
            #120e1a 62%) !important;
}


/* =========================================================
   DAY MODE
========================================================= */

body:not(.night-mode) {
    background:
        radial-gradient(120% 90% at 50% -10%,
            #f7e0ca,
            #fbeee0 62%) !important;

    color:
        #2b2333 !important;
}

/* ========================================
   PROFILE + MUSIC CONTROLS
======================================== */

.page-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 9999;
}

.page-control-btn {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(80, 50, 100, .15);
    cursor: pointer;
    font-size: 19px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.page-control-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(80, 50, 100, .22);
}

/* ========================================
    PROFILE MENU
======================================== */

.profile-menu {
    position: fixed;
    top: 118px;
    left: 20px;

    width: 245px;

    display: none;
    flex-direction: column;
    gap: 12px;

    padding: 0;

    background: transparent;

    z-index: 99998;
}

.profile-menu.show {
    display: flex;

    animation: profileMenuEnter 0.35s cubic-bezier(.2, .8, .2, 1);
}



/* ========================================
   MAIN MENU BUTTONS
======================================== */

.profile-menu>button {
    position: relative;

    width: 100%;
    min-height: 64px;

    padding: 15px 18px 15px 22px;

    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 20px;

    color: #43263f;

    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 700;

    text-align: left;

    cursor: pointer;

    overflow: hidden;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        0 12px 28px rgba(91, 39, 78, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}


/* ========================================
   LEVELS CARD
======================================== */

#levelsButton {
    background:
        linear-gradient(135deg,
            rgba(255, 238, 247, 0.98),
            rgba(235, 218, 255, 0.96));
}


/* Purple accent */

#levelsButton::before {
    content: "";

    position: absolute;

    left: 0;
    top: 12px;
    bottom: 12px;

    width: 5px;

    border-radius: 0 8px 8px 0;

    background:
        linear-gradient(180deg,
            #8b5cf6,
            #d946ef);

    box-shadow:
        0 0 14px rgba(139, 92, 246, 0.55);
}


/* ========================================
   CREATE LINK CARD
======================================== */

#createLinkButton {
    background:
        linear-gradient(135deg,
            rgba(255, 244, 224, 0.98),
            rgba(255, 222, 235, 0.97));
}


/* Gold / rose accent */

#createLinkButton::before {
    content: "";

    position: absolute;

    left: 0;
    top: 12px;
    bottom: 12px;

    width: 5px;

    border-radius: 0 8px 8px 0;

    background:
        linear-gradient(180deg,
            #f59e0b,
            #ec4899);

    box-shadow:
        0 0 14px rgba(245, 158, 11, 0.45);
}


/* ========================================
   ICON / TEXT FEEL
======================================== */

#levelsButton {
    text-shadow:
        0 1px 1px rgba(255, 255, 255, 0.8);
}

#createLinkButton {
    text-shadow:
        0 1px 1px rgba(255, 255, 255, 0.8);
}


/* ========================================
   HOVER
======================================== */

.profile-menu>button:hover {
    transform:
        translateX(5px) translateY(-3px);

    filter: brightness(1.03);

    box-shadow:
        0 18px 38px rgba(91, 39, 78, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}


/* Levels hover */

#levelsButton:hover {
    box-shadow:
        0 18px 38px rgba(139, 92, 246, 0.20),
        0 0 22px rgba(217, 70, 239, 0.10);
}


/* Link hover */

#createLinkButton:hover {
    box-shadow:
        0 18px 38px rgba(236, 72, 153, 0.20),
        0 0 22px rgba(245, 158, 11, 0.10);
}


/* ========================================
   CLICK
======================================== */

.profile-menu>button:active {
    transform: scale(0.97);
}


/* ========================================
   LEVELS SUBMENU
======================================== */

.levels-menu {
    display: none;

    flex-direction: column;

    gap: 6px;

    padding: 9px;

    margin-top: -3px;

    border-radius: 17px;

    background:
        linear-gradient(135deg,
            rgba(255, 247, 252, 0.96),
            rgba(244, 237, 255, 0.94));

    border: 1px solid rgba(255, 255, 255, 0.8);

    box-shadow:
        0 12px 30px rgba(75, 35, 75, 0.14);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.levels-menu.show {
    display: flex;

    animation: levelsEnter 0.25s ease;
}


/* ========================================
   LEVEL ITEMS
======================================== */

.levels-menu button {
    position: relative;

    width: 100%;

    padding: 10px 12px;

    border: 0;

    border-radius: 11px;

    background: rgba(255, 255, 255, 0.58);

    color: #51334f;

    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 600;

    text-align: left;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.levels-menu button:hover {
    transform: translateX(4px);

    background:
        linear-gradient(90deg,
            rgba(217, 70, 239, 0.12),
            rgba(236, 72, 153, 0.08));

    color: #8b3f78;
}


/* ========================================
   ANIMATIONS
======================================== */

@keyframes profileMenuEnter {

    0% {
        opacity: 0;
        transform:
            translateY(-14px) scale(0.94);
    }

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

@keyframes levelsEnter {

    0% {
        opacity: 0;
        transform:
            translateY(-8px) scale(0.97);
    }

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

/* ========================================
   BIRTHDAY LINK GENERATOR
======================================== */

.create-link-button {
    margin-top: 18px;
    border: none;
    padding: 12px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .8);
    color: #684e65;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(100, 60, 120, .12);
    transition: .25s ease;
}

.create-link-button:hover {
    transform: translateY(-2px);
}

.link-generator {
    display: none;
    width: min(92%, 450px);
    margin: 25px auto 0;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(15px);
    box-shadow: 0 15px 40px rgba(80, 50, 100, .15);
}

.link-generator.show {
    display: block;
}

.link-generator h2 {
    margin-bottom: 18px;
}

.link-generator input {
    width: 100%;
    padding: 12px 15px;
    margin: 6px 0;
    border: 1px solid #eadbea;
    border-radius: 12px;
    outline: none;
    background: rgba(255, 255, 255, .9);
}

#generateLinkButton,
#copyLinkButton {
    border: none;
    padding: 11px 18px;
    margin-top: 10px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
}

#generateLinkButton {
    background: linear-gradient(135deg, #ff5e9b, #9b6cff);
    color: white;
}

#generatedLinkBox {
    display: flex;
    gap: 7px;
    margin-top: 10px;
}

#generatedLinkBox input {
    margin: 0;
}

#copyLinkButton {
    white-space: nowrap;
}

/* ================================
   PHONE
================================ */

@media (max-width: 550px) {

    /* -------------------------------
       PROFILE
    ------------------------------- */

    .site-profile {
        width: 52px !important;
        height: 52px !important;
        top: 14px !important;
        left: 14px !important;
        z-index: 30000 !important;
    }


    /* -------------------------------
       GAME / PUZZLE
    ------------------------------- */

    .game-screen {
        width: 100% !important;
        min-height: 100dvh !important;
        padding: 75px 15px 35px !important;
        box-sizing: border-box !important;
    }

    .game-content {
        width: min(94%, 420px) !important;
        margin: 0 auto !important;
    }

    .game-content h1 {
        font-size: clamp(32px, 10vw, 40px) !important;
        line-height: 1.1 !important;
    }

    .game-instruction {
        font-size: 14px !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
    }

    .puzzle {
        width: 100% !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 9px !important;
        margin-top: 25px !important;
    }

    .puzzle-card {
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 12px !important;
    }

    .card-image {
        width: 100% !important;
        height: 100% !important;
        border-radius: 12px !important;
        object-fit: cover !important;
    }

    .card-front {
        font-size: 27px !important;
    }

    .puzzle-complete {
        width: min(100%, 360px) !important;
        padding: 20px !important;
        box-sizing: border-box !important;
    }

    .puzzle-complete h2 {
        width: min(210px, 65vw) !important;
        height: min(210px, 65vw) !important;
        margin: 20px auto !important;
    }


    /* -------------------------------
       GIFT REVEAL
    ------------------------------- */

    .gift-reveal {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .gift-reveal h2 {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }

    .gift-reveal img {
        width: 180px !important;
        height: 180px !important;
        object-fit: cover !important;
    }

    .game-gift {
        font-size: 65px !important;
    }


    /* -------------------------------
       CAKE PAGE
    ------------------------------- */

    .cake-area {
        width: 100% !important;
        max-width: 430px !important;

        margin: 0 auto !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        transform: none !important;

        box-sizing: border-box !important;
    }

    .cake {
        margin-left: auto !important;
        margin-right: auto !important;
        transform-origin: center center !important;
    }

    .cake-close {
        position: fixed !important;

        top: 75px !important;
        right: 15px !important;

        z-index: 30001 !important;
    }


    /* -------------------------------
       MUSIC BUTTON
    ------------------------------- */

    #musicButton {
        position: fixed !important;

        top: 14px !important;
        right: 14px !important;

        z-index: 30000 !important;

        max-width: calc(100vw - 90px) !important;

        white-space: nowrap !important;
    }


    /* -------------------------------
       SCRATCH PAGE
    ------------------------------- */

    .scratch-page {
        width: 100% !important;
        min-height: 100dvh !important;

        padding:
            85px 16px 45px !important;

        box-sizing: border-box !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .scratch-content {
        width: 100% !important;
        max-width: 420px !important;

        margin: 0 auto !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .scratch-content h1 {
        width: 100% !important;

        font-size:
            clamp(2.15rem, 11vw, 3rem) !important;

        line-height: 1.05 !important;

        text-align: center !important;
    }

    .scratch-instruction {
        width: 100% !important;

        font-size: 16px !important;
        line-height: 1.5 !important;

        text-align: center !important;

        margin:
            12px auto 24px !important;
    }

    .scratch-card {
        width:
            min(330px, 88vw) !important;

        height:
            min(420px, 112vw) !important;

        margin:
            0 auto !important;

        flex-shrink: 0 !important;

        overflow: hidden !important;

        border-radius: 26px !important;
    }

    #scratchCanvas {
        width: 100% !important;
        height: 100% !important;
    }


    /* -------------------------------
       SCRATCH HIDDEN MESSAGE
    ------------------------------- */

    .hidden-message {
        position: absolute !important;

        inset: 0 !important;

        width: 100% !important;
        height: 100% !important;

        padding:
            30px 22px !important;

        box-sizing: border-box !important;

        display: flex !important;
        flex-direction: column !important;

        align-items: center !important;
        justify-content: center !important;

        text-align: center !important;
    }

    .hidden-message h2 {
        width: 100% !important;

        margin: 0 0 15px !important;

        padding: 0 !important;

        font-size:
            clamp(25px, 8vw, 32px) !important;

        line-height: 1.15 !important;

        text-align: center !important;

        overflow-wrap: anywhere !important;
    }

    .hidden-message p {
        width: 100% !important;

        margin: 0 auto !important;

        padding: 0 !important;

        font-size: 16px !important;

        line-height: 1.65 !important;

        text-align: center !important;

        overflow-wrap: break-word !important;
    }

    .scratch-continue-button {
        width:
            min(100%, 310px) !important;

        margin:
            28px auto 0 !important;

        display: none;

        align-items: center !important;
        justify-content: center !important;

        box-sizing: border-box !important;
    }

    .scratch-continue-button.show {
        display: inline-flex !important;

        animation:
            scratchButtonAppear 0.6s ease !important;
    }

}