
/* =====================================================
   FOR NISH — COMPLETE CLEAN STYLESHEET
   Cinematic purple galaxy experience
===================================================== */

/* ------------------------------
   01. GLOBAL RESET
------------------------------ */

@import url('https://fonts.googleapis.com/css2?family=Allura&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;

    background: linear-gradient(
        135deg,
        #090617,
        #160c2c,
        #24113b,
        #10091e
    );

    color: #ffffff;
    font-family: Arial, sans-serif;
}

[hidden] {
    display: none !important;
}

button {
    font-family: inherit;
    cursor: pointer;
}


/* ------------------------------
   02. GALAXY BACKGROUND
------------------------------ */

body::before,
body::after {
    content: "";
    position: fixed;
    inset: -100%;
    pointer-events: none;
    z-index: 0;

    background-image:
        radial-gradient(2px 2px at 10% 20%, #ffffff 50%, transparent 100%),
        radial-gradient(2px 2px at 30% 70%, #ffd6ff 50%, transparent 100%),
        radial-gradient(3px 3px at 60% 40%, #ffffff 50%, transparent 100%),
        radial-gradient(2px 2px at 80% 80%, #c9a7ff 50%, transparent 100%),
        radial-gradient(2px 2px at 90% 15%, #ffffff 50%, transparent 100%);

    background-size: 350px 350px;
    animation: moveStars 35s linear infinite;
}

body::after {
    background-size: 500px 500px;
    animation-duration: 55s;
    animation-direction: reverse;
    opacity: 0.55;
}

@keyframes moveStars {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(350px, 350px);
    }
}


/* ------------------------------
   03. SHOOTING STARS
------------------------------ */

.shooting-stars {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.shooting-stars span {
    position: absolute;
    top: -10%;
    left: 50%;

    width: 2px;
    height: 110px;

    background: linear-gradient(
        to bottom,
        transparent,
        #ffffff,
        #d9b8ff,
        transparent
    );

    border-radius: 50%;
    opacity: 0;
    transform: rotate(45deg);

    animation: shootingStar 5s linear infinite;
}

.shooting-stars span:nth-child(1) {
    left: 15%;
    animation-delay: 1s;
}

.shooting-stars span:nth-child(2) {
    left: 45%;
    animation-delay: 5s;
}

.shooting-stars span:nth-child(3) {
    left: 75%;
    animation-delay: 9s;
}

.shooting-stars span:nth-child(4) {
    left: 90%;
    animation-delay: 13s;
}

@keyframes shootingStar {
    0% {
        transform: translate(0, 0) rotate(45deg);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    25% {
        transform: translate(350px, 350px) rotate(45deg);
        opacity: 0;
    }

    100% {
        transform: translate(350px, 350px) rotate(45deg);
        opacity: 0;
    }
}


/* ------------------------------
   04. SHARED BUTTONS
------------------------------ */

button {
    padding: 15px 30px;
    border: 1px solid #d9a7ff;
    border-radius: 30px;

    background: linear-gradient(
        135deg,
        #7541a5,
        #a65bc9
    );

    color: #ffffff;
    font-size: 1rem;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

button:hover {
    background: #a65bc9;
    box-shadow: 0 0 25px rgba(199, 125, 255, 0.7);
    transform: scale(1.05);
}


/* ------------------------------
   05. WELCOME SCREEN
------------------------------ */

.welcome-screen {
    min-height: 100vh;
    width: 100%;
    padding: 30px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    position: relative;
    z-index: 2;

    animation: fadeIn 1.5s ease;
}

.welcome-screen h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #f3d5ff;
    text-shadow: 0 0 20px #c77dff;
    margin-bottom: 25px;
}

.subtitle {
    color: #d9a7ff;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.description {
    color: #e8dcf5;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    max-width: 600px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ------------------------------
   06. ENVELOPE SCREEN
------------------------------ */

.next-screen {
    min-height: 100vh;
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    z-index: 2;
}

.envelope-container {
    min-height: 80vh;
    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 35px;
    perspective: 1000px;
}

.envelope {
    position: relative;
    width: 280px;
    height: 180px;

    cursor: pointer;
    transform-style: preserve-3d;

    filter: drop-shadow(
        0 0 25px rgba(190, 130, 255, 0.4)
    );
}

.envelope-back {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        135deg,
        #65419b,
        #32164f
    );

    border: 1px solid #c69cff;
    border-radius: 5px;
}

.envelope-front {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        145deg,
        #9865c9,
        #512879
    );

    clip-path: polygon(
        0 0,
        50% 65%,
        100% 0,
        100% 100%,
        0 100%
    );

    z-index: 3;
}

.envelope-flap {
    position: absolute;
    top: 0;

    width: 100%;
    height: 100%;

    background: linear-gradient(
        145deg,
        #c49aef,
        #7441a5
    );

    clip-path: polygon(
        0 0,
        100% 0,
        50% 55%
    );

    transform-origin: top;
    transition: transform 0.8s ease;
    z-index: 5;
}

.wax-seal {
    position: absolute;

    width: 43px;
    height: 43px;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        #f2a0db,
        #a43b9c
    );

    color: white;

    display: grid;
    place-items: center;

    font-size: 23px;

    left: 50%;
    top: 48%;

    transform: translate(-50%, -50%);
    z-index: 6;

    box-shadow: 0 0 18px #d77bff;
    transition: opacity 0.4s ease;
}

.letter {
    position: absolute;

    width: 85%;
    height: 150px;

    left: 7.5%;
    bottom: 5px;

    padding: 15px;

    text-align: center;
    color: #49265f;
    background: #fff0ff;

    border-radius: 5px;
    z-index: 2;

    opacity: 0;

    transition:
        transform 1s ease,
        opacity 0.6s ease;
}

.letter h2 {
    font-size: 19px;
    margin-bottom: 12px;
}

.letter p {
    font-size: 13px;
    line-height: 1.5;
}

.envelope.open .envelope-flap {
    transform: rotateX(180deg);
    z-index: 1;
}

.envelope.open .wax-seal {
    opacity: 0;
}

.envelope.open .letter {
    opacity: 1;
    transform: translateY(-110px);
    transition-delay: 0.5s;
}

.envelope-hint {
    color: #e7d0ff;
    text-align: center;
    letter-spacing: 1px;
}


/* ------------------------------
   07. BIRTHDAY LETTER PAGE
------------------------------ */

.letter-page {
    min-height: 100vh;
    width: 100%;

    padding: 60px 20px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    position: relative;
    z-index: 2;

    animation: fadeIn 1.2s ease;
}

.birthday-letter {
    width: min(700px, 95%);

    padding: 45px;

    border: 1px solid rgba(205, 160, 255, 0.35);
    border-radius: 22px;

    background: linear-gradient(
        145deg,
        rgba(65, 30, 100, 0.88),
        rgba(35, 14, 60, 0.94)
    );

    color: #f4e6ff;

    box-shadow:
        0 0 25px rgba(180, 110, 255, 0.25),
        0 0 70px rgba(130, 70, 200, 0.15);

    backdrop-filter: blur(12px);
    line-height: 1.9;
}

.birthday-letter h1 {
    color: #e7c5ff;
    text-align: center;
    text-shadow: 0 0 15px rgba(210, 150, 255, 0.6);
    margin-bottom: 15px;
}

.birthday-letter p {
    color: #ead8ff;
    font-size: 17px;
    margin: 18px 0;
}

.letter-divider {
    text-align: center;
    color: #d9a5ff;
    font-size: 24px;
    margin-bottom: 25px;
}

.birthday-letter .letter-ending {
    color: #ead8ff;
}

.birthday-letter .signature {
    text-align: right;
    color: #d9a5ff;
    font-weight: bold;
}


/* ------------------------------
   08. MEMORIES GALLERY
------------------------------ */

.memories-section {
    width: 100%;
    padding: 75px 20px;
    text-align: center;
}

.memories-section h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #e7c5ff;
    text-shadow: 0 0 20px #c77dff;
    margin-bottom: 15px;
}

.memories-subtitle {
    color: #d9b8f5;
    margin-bottom: 45px;
    font-size: 1.05rem;
}

.memory-gallery {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 35px;
    max-width: 1100px;
    margin: auto;
}

.memory-card {
    width: 260px;
    padding: 15px;

    background: rgba(110, 65, 150, 0.22);

    border: 1px solid rgba(220, 180, 255, 0.4);
    border-radius: 12px;

    box-shadow: 0 0 25px rgba(190, 130, 255, 0.15);

    backdrop-filter: blur(8px);

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.memory-card:nth-child(1) {
    transform: rotate(-4deg);
}

.memory-card:nth-child(2) {
    transform: rotate(3deg);
}

.memory-card:nth-child(3) {
    transform: rotate(-2deg);
}

.memory-card:hover {
    transform: translateY(-12px) rotate(0deg) scale(1.04);
    box-shadow: 0 0 30px rgba(190, 130, 255, 0.4);
}

.memory-photo {
    width: 100%;
    height: 230px;

    object-fit: cover;

    border-radius: 5px;
    border: 1px solid rgba(230, 195, 255, 0.4);

    transition: transform 0.4s ease;
}

.memory-card:hover .memory-photo {
    transform: scale(1.03);
}

.memory-card p {
    color: #ead8ff;
    margin-top: 15px;
    font-size: 14px;
}


/* ------------------------------
   09. NEXT PAGE BUTTON
------------------------------ */

.next-page-button {
    text-align: center;
    padding: 45px 20px 70px;

    position: relative;
    z-index: 2;
}

.next-page-button p {
    color: #d9b8f5;
    margin-bottom: 22px;
    font-size: 1.05rem;
}

.next-page-button button {
    background: linear-gradient(
        135deg,
        #7541a5,
        #a65bc9
    );

    box-shadow: 0 0 20px rgba(190, 130, 255, 0.3);
}


/* ------------------------------
   10. CONSTELLATION PAGE
------------------------------ */

.constellation-page {
    width: 100%;
    min-height: 100vh;

    position: relative;
    z-index: 2;

    overflow: hidden;
    background: transparent;
}

.constellation-section {
    width: 100%;
    min-height: 100vh;

    padding: 75px 20px;

    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;

    position: relative;
}

.constellation-section > h2 {
    color: #ead5ff;
    font-size: clamp(2rem, 5vw, 3rem);
    text-shadow: 0 0 25px #c77dff;
    margin-bottom: 15px;
}

.constellation-subtitle {
    color: #d9b8f5;
    line-height: 1.7;
    max-width: 500px;
    margin-bottom: 25px;
}


/* ------------------------------
   11. TEN CELESTIAL STARS
------------------------------ */

.star-universe {
    width: min(900px, 100%);
    height: 680px;

    position: relative;
    margin: 10px auto;
}

/* Large invisible click target, tiny visible star */

.universe-star {
    appearance: none;
    -webkit-appearance: none;

    position: absolute;

    width: 48px;
    height: 48px;

    padding: 0;
    border: none;
    border-radius: 50%;

    background: transparent;
    box-shadow: none;

    color: transparent;
    font-size: 0;

    cursor: pointer;
    z-index: 3;

    transition:
        opacity 0.5s ease,
        filter 0.4s ease;

    animation: celestialTwinkle 3s ease-in-out infinite;
}

/* Sharp star centre */

.universe-star::before {
    content: "";

    position: absolute;

    width: 5px;
    height: 5px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    border-radius: 50%;
    background: #ffffff;

    box-shadow:
        0 0 5px #ffffff,
        0 0 12px #d9c6ff,
        0 0 24px #a98aff;
}

/* Atmospheric glow */

.universe-star::after {
    content: "";

    position: absolute;

    width: 32px;
    height: 32px;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(195, 165, 255, 0.28),
        transparent 70%
    );

    pointer-events: none;
}

.universe-star:hover {
    filter: brightness(1.8);
    transform: scale(1.3);
}

.universe-star.discovered {
    opacity: 0.3;
    pointer-events: none;
    animation: none;
}

.star-universe.completed .universe-star {
    opacity: 0.12;
    pointer-events: none;
    animation: none;
}

@keyframes celestialTwinkle {
    0%, 100% {
        opacity: 0.55;
    }

    50% {
        opacity: 1;
    }
}


/* ------------------------------
   12. STAR POSITIONS
------------------------------ */

.star1 {
    top: 5%;
    left: 12%;
}

.star2 {
    top: 15%;
    left: 70%;
    animation-delay: 0.5s;
}

.star3 {
    top: 35%;
    left: 38%;
    animation-delay: 1s;
}

.star4 {
    top: 48%;
    left: 5%;
    animation-delay: 0.8s;
}

.star5 {
    top: 55%;
    right: 12%;
    animation-delay: 1.4s;
}

.star6 {
    top: 75%;
    left: 22%;
    animation-delay: 0.3s;
}

.star7 {
    top: 82%;
    right: 28%;
    animation-delay: 1.2s;
}

.star8 {
    top: 30%;
    right: 5%;
    animation-delay: 0.7s;
}

.star9 {
    top: 65%;
    left: 53%;
    animation-delay: 1.6s;
}

.star10 {
    top: 5%;
    left: 43%;
    animation-delay: 1.1s;
}


/* ------------------------------
   13. STAR MESSAGE DISPLAY
------------------------------ */

.star-message-box {
    width: min(550px, 92%);
    min-height: 125px;

    padding: 24px;
    margin: 10px auto 20px;

    border: 1px solid rgba(205, 160, 255, 0.4);
    border-radius: 18px;

    background: rgba(65, 30, 100, 0.65);

    box-shadow: 0 0 30px rgba(180, 110, 255, 0.18);

    backdrop-filter: blur(10px);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;

    color: #f1e2ff;
}

.message-symbol {
    font-size: 25px;
    color: #e5baff;
}

.star-message-box p {
    line-height: 1.8;
    font-size: 16px;
    color: #f0e0ff;
}

.star-counter {
    color: #d9b8f5;
    margin-top: 10px;
    letter-spacing: 1px;
}


/* ------------------------------
   14. FIREWORKS
------------------------------ */

.fireworks-layer {
    position: absolute;
    inset: 0;

    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.firework-burst {
    position: absolute;
    width: 4px;
    height: 4px;
    pointer-events: none;
}

.firework-particle {
    position: absolute;
    left: 0;
    top: 0;

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--particle-color);

    box-shadow: 0 0 9px var(--particle-color);

    animation: fireworkExplode 1.2s ease-out forwards;
}

@keyframes fireworkExplode {
    from {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    to {
        transform:
            translate(var(--particle-x), var(--particle-y))
            scale(0);

        opacity: 0;
    }
}


/* ------------------------------
   15. MOON REVEAL CONTAINER
------------------------------ */

.moon-reveal {
    width: 100%;
    min-height: 850px;

    padding: 65px 20px 50px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    position: relative;
    overflow: hidden;

    animation: moonAppear 2s ease both;
}

.moon-reveal[hidden] {
    display: none !important;
}

@keyframes moonAppear {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ------------------------------
   16. 3D MOON STAGE
------------------------------ */

.moon-stage {
    width: min(56vw, 660px);
    aspect-ratio: 1 / 1;

    position: relative;

    display: grid;
    place-items: center;

    isolation: isolate;
}

.moon-aura {
    position: absolute;
    inset: -12%;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(183, 160, 255, 0.24) 0%,
        rgba(125, 105, 190, 0.12) 42%,
        transparent 72%
    );

    filter: blur(35px);

    animation: auraPulse 6s ease-in-out infinite alternate;

    z-index: -1;
}

@keyframes auraPulse {
    from {
        transform: scale(0.94);
        opacity: 0.65;
    }

    to {
        transform: scale(1.08);
        opacity: 1;
    }
}


/* ------------------------------
   17. THREE.JS CANVAS
------------------------------ */

.moon-canvas-wrap {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    border-radius: 50%;
    overflow: hidden;

    z-index: 1;

    filter:
        drop-shadow(0 0 25px rgba(210, 195, 255, 0.35))
        drop-shadow(0 0 70px rgba(150, 125, 230, 0.2));
}

#moonCanvas {
    display: block;
    width: 100%;
    height: 100%;
}


/* ------------------------------
   18. MOON MESSAGE OVERLAY
------------------------------ */

.moon-overlay {
    position: absolute;
    inset: 12%;

    z-index: 3;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    pointer-events: none;

    padding: 5%;
}

.moon-eyebrow {
    font-family: Arial, sans-serif;
    font-size: clamp(8px, 1vw, 11px);

    letter-spacing: 3px;
    text-transform: uppercase;

    color: #f3dfb9;

    margin-bottom: 18px;

    text-shadow:
        0 1px 4px #15111c,
        0 0 12px rgba(255, 214, 155, 0.35);
}

.moon-message {
    width: 100%;
    max-width: 420px;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    padding: 0 !important;
    margin: 0 !important;

    display: flex;
    flex-direction: column;
    align-items: center;

    color: #f5e5c8 !important;

    font-family: Georgia, serif;
    font-size: clamp(12px, 1.45vw, 17px);
    line-height: 1.65;

    text-align: center;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.95),
        0 0 12px rgba(0, 0, 0, 0.8);
}

.moon-message p {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    margin: 7px 0 !important;
    padding: 0 !important;

    color: #f5e5c8 !important;
}

.moon-message .moon-final-line {
    margin-top: 13px !important;

    color: #ffe3aa !important;
    font-style: italic;
    font-size: 1.08em;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.95),
        0 0 16px rgba(255, 207, 130, 0.35);
}


/* ------------------------------
   19. MOON CLOSING HEADING
------------------------------ */

.moon-heading {
    margin-top: 65px;

    text-align: center;
    color: #e9dcff;

    font-family: Georgia, serif;
    font-size: clamp(18px, 2.5vw, 29px);
    font-weight: 400;
    letter-spacing: 1px;

    text-shadow: 0 0 22px rgba(190, 160, 255, 0.5);
}


/* ------------------------------
   20. MOBILE RESPONSIVENESS
------------------------------ */

@media (max-width: 700px) {

    .birthday-letter {
        padding: 28px 22px;
    }

    .birthday-letter p {
        font-size: 15px;
    }

    .memories-section {
        padding: 55px 12px;
    }

    .memory-gallery {
        gap: 30px;
    }

    .memory-card {
        width: min(280px, 90%);
    }

    .constellation-section {
        padding: 55px 12px;
    }

    .star-universe {
        height: 570px;
    }

    .universe-star {
        width: 48px;
        height: 48px;
    }

    .star1 {
        top: 5%;
        left: 5%;
    }

    .star2 {
        top: 16%;
        left: 68%;
    }

    .star3 {
        top: 31%;
        left: 38%;
    }

    .star4 {
        top: 44%;
        left: 3%;
    }

    .star5 {
        top: 52%;
        right: 3%;
    }

    .star6 {
        top: 72%;
        left: 13%;
    }

    .star7 {
        top: 82%;
        right: 12%;
    }

    .star8 {
        top: 30%;
        right: 2%;
    }

    .star9 {
        top: 62%;
        left: 48%;
    }

    .star10 {
        top: 5%;
        left: 42%;
    }

    .moon-reveal {
        min-height: 690px;
        padding: 45px 10px;
    }

    .moon-stage {
        width: min(92vw, 560px);
    }

    .moon-overlay {
        inset: 9%;
        padding: 4%;
    }

    .moon-eyebrow {
        font-size: 7px;
        letter-spacing: 1.5px;
        margin-bottom: 10px;
    }

    .moon-message {
        font-size: clamp(10px, 2.7vw, 14px);
        line-height: 1.5;
    }

    .moon-message p {
        margin: 5px 0 !important;
    }

    .moon-heading {
        margin-top: 40px;
    }
}


/* ------------------------------
   21. EXTRA SMALL SCREENS
------------------------------ */

@media (max-width: 380px) {

    .moon-stage {
        width: 96vw;
    }

    .moon-message {
        font-size: 10px;
        line-height: 1.4;
    }

    .moon-eyebrow {
        font-size: 6px;
        letter-spacing: 1px;
    }

    .birthday-letter {
        padding: 22px 16px;
    }

    .star-universe {
        height: 530px;
    }
}


/* ------------------------------
   22. ACCESSIBILITY
------------------------------ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================
   DARK LUNAR CINEMA — FINAL TYPOGRAPHY
========================================= */

/* Cold silver moon atmosphere */

.moon-aura {
    background: radial-gradient(
        circle,
        rgba(160, 180, 255, 0.25) 0%,
        rgba(115, 100, 205, 0.15) 40%,
        transparent 72%
    ) !important;

    filter: blur(42px);
}

/* Elegant eyebrow */

.moon-eyebrow {
    font-family: "Cormorant Garamond", serif !important;

    font-size: clamp(10px, 1.2vw, 14px) !important;
    font-weight: 600;
    letter-spacing: 4px !important;

    color: #dcdcff !important;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.95),
        0 0 18px rgba(170, 165, 255, 0.6) !important;
}

/* Main message */

.moon-message {
    font-family: "Cormorant Garamond", serif !important;

    font-size: clamp(15px, 1.7vw, 21px) !important;
    font-weight: 500;

    line-height: 1.65 !important;

    color: #f1efff !important;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.95),
        0 0 14px rgba(0, 0, 0, 0.85) !important;
}

/* Individual paragraphs */

.moon-message p {
    color: #f1efff !important;

    font-family: "Cormorant Garamond", serif !important;
    font-weight: 500;

    margin: 9px 0 !important;

    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.95),
        0 0 12px rgba(0, 0, 0, 0.85) !important;
}

/* Final handwritten line */

.moon-message .moon-final-line {
    font-family: "Allura", cursive !important;

    font-size: clamp(24px, 3vw, 36px) !important;
    font-weight: 400;

    color: #e5d9ff !important;

    margin-top: 16px !important;

    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.95),
        0 0 18px rgba(170, 145, 255, 0.7) !important;
}

/* Closing heading */

.moon-heading {
    font-family: "Allura", cursive !important;

    font-size: clamp(27px, 3.5vw, 42px) !important;
    font-weight: 400 !important;

    color: #e7dcff !important;

    letter-spacing: 1px;

    text-shadow:
        0 0 12px rgba(180, 160, 255, 0.5),
        0 0 30px rgba(140, 110, 255, 0.35) !important;
}

/* Mobile typography */

@media (max-width: 700px) {

    .moon-message {
        font-size: clamp(12px, 3.2vw, 17px) !important;
    }

    .moon-message .moon-final-line {
        font-size: clamp(22px, 6vw, 30px) !important;
    }

    .moon-eyebrow {
        letter-spacing: 2px !important;
    }
}

/* =========================================
   PAGE 5 — LITTLE UNIVERSE
========================================= */

.page-five[hidden],
.page-six-entry[hidden] {
    display: none !important;
}

.page-five {
    min-height: 100vh;
    width: 100%;
    padding: 90px 20px;

    position: relative;
    overflow: hidden;
    isolation: isolate;

    background:
        radial-gradient(
            ellipse at 50% 45%,
            rgba(91, 49, 139, 0.28),
            transparent 60%
        );
}

.page-five-content {
    max-width: 1100px;
    margin: auto;
    text-align: center;
    position: relative;
    z-index: 2;

    animation: pageFiveEnter 1.4s ease both;
}

@keyframes pageFiveEnter {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-five-eyebrow {
    color: #cdb6ff;
    font-size: 11px;
    letter-spacing: 5px;
    font-family: "Cormorant Garamond", serif;
}

.page-five-content > h1 {
    margin: 20px 0;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 400;

    color: #f0e5ff;

    text-shadow:
        0 0 20px rgba(180, 140, 255, 0.5);
}

.page-five-intro {
    max-width: 570px;
    margin: 0 auto;

    color: #d7c8ef;
    font-size: 16px;
    line-height: 1.9;
}


/* ORB UNIVERSE */

.heart-universe {
    width: min(850px, 100%);
    height: 570px;

    margin: 35px auto 10px;
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;
}


/* Decorative floating hearts */

.floating-heart {
    position: absolute;

    color: rgba(222, 190, 255, 0.7);
    font-size: 27px;

    text-shadow:
        0 0 10px #b995ff,
        0 0 25px rgba(190, 140, 255, 0.7);

    pointer-events: none;

    animation: heartFloat 5s ease-in-out infinite;
}

.heart-a {
    top: 8%;
    left: 16%;
    animation-delay: 0s;
}

.heart-b {
    top: 23%;
    right: 13%;
    font-size: 19px;
    animation-delay: 1s;
}

.heart-c {
    bottom: 15%;
    left: 12%;
    animation-delay: 2s;
}

.heart-d {
    bottom: 10%;
    right: 20%;
    font-size: 22px;
    animation-delay: 0.5s;
}

.heart-e {
    top: 48%;
    left: 4%;
    font-size: 17px;
    animation-delay: 1.5s;
}

.heart-f {
    top: 55%;
    right: 5%;
    animation-delay: 2.5s;
}

@keyframes heartFloat {
    0%, 100% {
        transform: translateY(0) rotate(-8deg);
        opacity: 0.45;
    }

    50% {
        transform: translateY(-22px) rotate(8deg);
        opacity: 1;
    }
}


/* Interactive glass orbs */

.surprise-orb {
    position: absolute;

    width: 112px;
    height: 112px;

    padding: 0;
    border-radius: 50%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background:
        radial-gradient(
            circle at 30% 25%,
            rgba(255,255,255,0.28),
            rgba(155,110,220,0.12) 35%,
            rgba(35,18,65,0.8) 80%
        );

    border: 1px solid rgba(220,190,255,0.65);

    backdrop-filter: blur(10px);

    color: #f3e8ff;

    box-shadow:
        inset 0 0 20px rgba(255,255,255,0.08),
        0 0 20px rgba(165,120,255,0.25),
        0 0 50px rgba(130,85,220,0.15);

    animation: orbFloat 5s ease-in-out infinite;

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease,
        opacity 0.4s ease;
}

.surprise-orb span {
    font-family: "Cormorant Garamond", serif;
    font-size: 29px;
    font-weight: 500;
}

.surprise-orb small {
    font-size: 15px;
    color: #d9c3ff;
    margin-top: 3px;
}

.surprise-orb:hover {
    transform: scale(1.15) !important;

    box-shadow:
        inset 0 0 25px rgba(255,255,255,0.15),
        0 0 30px rgba(210,180,255,0.65),
        0 0 80px rgba(160,120,255,0.4);
}

.surprise-orb.discovered {
    opacity: 0.35;
    transform: scale(0.9);
    border-color: rgba(220,190,255,0.25);
    animation: none;
}

@keyframes orbFloat {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -13px;
    }
}


/* Six positions */

.orb-one {
    top: 5%;
    left: 20%;
}

.orb-two {
    top: 12%;
    right: 19%;
    animation-delay: 0.8s;
}

.orb-three {
    top: 39%;
    left: 7%;
    animation-delay: 1.4s;
}

.orb-four {
    top: 39%;
    right: 7%;
    animation-delay: 0.5s;
}

.orb-five {
    bottom: 5%;
    left: 25%;
    animation-delay: 1.8s;
}

.orb-six {
    bottom: 5%;
    right: 24%;
    animation-delay: 1.1s;
}


/* Message display */

.surprise-message {
    width: min(580px, 94%);
    min-height: 175px;

    margin: -5px auto 20px;
    padding: 28px;

    border: 1px solid rgba(204,174,255,0.38);
    border-radius: 20px;

    background: rgba(43,24,70,0.68);

    backdrop-filter: blur(14px);

    box-shadow:
        0 0 30px rgba(150,100,220,0.15);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    transition: opacity 0.4s ease;
}

.surprise-message-icon {
    color: #e5c7ff;
    font-size: 24px;
}

.surprise-message h2 {
    color: #eee0ff;
    font-family: "Cormorant Garamond", serif;
    font-size: 27px;
    font-weight: 500;
}

.surprise-message p {
    max-width: 480px;

    color: #d9c9ef;
    font-size: 15px;
    line-height: 1.8;
}

.surprise-counter {
    margin-top: 15px;

    color: #c9b5ec;
    letter-spacing: 1px;
    font-size: 13px;
}


/* Page 6 entrance */

.page-six-entry {
    margin: 65px auto 10px;
    padding: 30px 15px;

    animation: pageFiveEnter 1.2s ease both;
}

.page-six-entry p {
    color: #dfd0f7;
    margin-bottom: 24px;
    line-height: 1.8;
}

.page-six-entry button {
    background: linear-gradient(
        135deg,
        #68439c,
        #a66bc9
    );

    border-color: #d5b2ff;

    box-shadow:
        0 0 20px rgba(190,150,255,0.3);
}


/* Moon to Page 5 button */

.moon-next-button {
    margin-top: 35px;
    text-align: center;
}

.moon-next-button p {
    color: #d6c6f0;
    font-family: "Cormorant Garamond", serif;
    font-size: 18px;
    margin-bottom: 18px;
}

.moon-next-button button {
    background: linear-gradient(
        135deg,
        #60418f,
        #9360bd
    );

    border-color: #cbb0ff;
}


/* Mobile layout */

@media (max-width: 700px) {

    .page-five {
        padding: 65px 14px;
    }

    .heart-universe {
        height: 510px;
    }

    .surprise-orb {
        width: 83px;
        height: 83px;
    }

    .surprise-orb span {
        font-size: 23px;
    }

    .orb-one {
        left: 12%;
    }

    .orb-two {
        right: 12%;
    }

    .orb-three {
        left: 1%;
    }

    .orb-four {
        right: 1%;
    }

    .orb-five {
        left: 15%;
    }

    .orb-six {
        right: 14%;
    }

    .surprise-message {
        padding: 22px 16px;
    }

    .surprise-message h2 {
        font-size: 23px;
    }

    .surprise-message p {
        font-size: 14px;
    }

    .moon-next-button {
        padding: 0 15px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .floating-heart,
    .surprise-orb {
        animation: none !important;
    }
}


/* =========================================
   PAGE 6 — 25 LANGUAGES, ONE FEELING
========================================= */

.page-six[hidden] {
    display: none !important;
}

.page-six {
    width: 100%;
    min-height: 100vh;
    padding: 80px 22px 100px;
    position: relative;
    overflow: hidden;
    isolation: isolate;

    background:
        radial-gradient(
            ellipse at 50% 12%,
            rgba(115, 72, 170, 0.25),
            transparent 55%
        );
}

/* Header */

.page-six-header {
    max-width: 760px;
    margin: 0 auto 85px;
    text-align: center;
    animation: pageSixIntro 1.2s ease both;
}

.page-six-eyebrow {
    color: #c9afff;
    font-family: "Cormorant Garamond", serif;
    font-size: 13px;
    letter-spacing: 4px;
}

.page-six-header h1 {
    margin: 22px 0;

    color: #f1e6ff;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(38px, 6vw, 68px);
    font-weight: 400;

    text-shadow:
        0 0 20px rgba(184, 140, 255, 0.55);
}

.page-six-header > p {
    max-width: 620px;
    margin: auto;

    color: #d9cbed;
    font-size: 16px;
    line-height: 1.9;
}

.page-six-scroll-hint {
    margin-top: 45px;

    color: #c9b3ed;
    font-size: 13px;
    letter-spacing: 2px;

    animation: scrollHint 2s ease-in-out infinite;
}

@keyframes pageSixIntro {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollHint {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }

    50% {
        transform: translateY(9px);
        opacity: 1;
    }
}


/* Language grid */

.language-grid {
    width: min(1050px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

/* Individual cards */

.language-card {
    min-height: 205px;
    padding: 30px 24px;

    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    border: 1px solid rgba(205, 175, 255, 0.25);
    border-radius: 20px;

    background:
        linear-gradient(
            145deg,
            rgba(75, 43, 112, 0.55),
            rgba(28, 17, 52, 0.78)
        );

    backdrop-filter: blur(12px);

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 12px 35px rgba(0,0,0,0.14);

    opacity: 0;
    transform: translateY(45px) scale(0.97);

    transition:
        opacity 0.8s ease,
        transform 0.8s cubic-bezier(.2,.7,.2,1),
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}

/* Reveal when scrolled into view */

.language-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Soft decorative light */

.language-card::before {
    content: "";
    position: absolute;

    width: 180px;
    height: 180px;

    top: -110px;
    right: -80px;

    border-radius: 50%;

    background: rgba(177, 135, 255, 0.12);
    filter: blur(35px);

    pointer-events: none;
}

.language-card:hover {
    border-color: rgba(220, 190, 255, 0.7);

    box-shadow:
        0 0 25px rgba(166, 118, 255, 0.18),
        0 15px 40px rgba(0,0,0,0.22);

    transform: translateY(-5px) scale(1.015);
}

.language-number {
    position: absolute;
    top: 16px;
    left: 19px;

    color: rgba(214, 192, 255, 0.55);
    font-size: 11px;
    letter-spacing: 2px;
}

.language-name {
    margin-bottom: 17px;

    color: #cbb5ee;
    font-family: "Cormorant Garamond", serif;
    font-size: 15px;
    letter-spacing: 2px;
}

.language-card h2 {
    max-width: 100%;

    color: #f2eaff;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(21px, 2.6vw, 31px);
    font-weight: 500;
    line-height: 1.55;

    overflow-wrap: anywhere;

    text-shadow:
        0 0 15px rgba(197, 164, 255, 0.22);
}

.language-emoji {
    margin-top: 16px;
    font-size: 20px;

    filter: drop-shadow(
        0 0 9px rgba(210, 175, 255, 0.35)
    );
}


/* Finale */

.language-finale {
    width: min(780px, 94%);
    margin: 125px auto 0;
    padding: 70px 30px;

    text-align: center;

    border-top: 1px solid rgba(205, 175, 255, 0.35);
    border-bottom: 1px solid rgba(205, 175, 255, 0.35);

    opacity: 0;
    transform: translateY(35px);

    transition:
        opacity 1.2s ease,
        transform 1.2s ease;
}

.language-finale.visible {
    opacity: 1;
    transform: translateY(0);
}

.finale-star {
    color: #e1c9ff;
    font-size: 35px;

    text-shadow:
        0 0 15px #c7a1ff,
        0 0 35px #9563db;
}

.language-finale h2 {
    margin: 25px 0;

    color: #f1e4ff;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(34px, 5vw, 55px);
    font-weight: 400;
    line-height: 1.3;

    text-shadow:
        0 0 25px rgba(185, 145, 255, 0.4);
}

.language-finale > p {
    max-width: 550px;
    margin: auto;

    color: #d9cbed;
    font-size: 16px;
    line-height: 1.9;
}

.finale-signature {
    display: block;
    margin-top: 35px;

    color: #e3ceff;
    font-family: "Allura", cursive;
    font-size: clamp(28px, 4vw, 39px);
}


/* Mobile */

@media (max-width: 650px) {

    .page-six {
        padding: 60px 14px 75px;
    }

    .page-six-header {
        margin-bottom: 55px;
    }

    .page-six-header > p {
        font-size: 14px;
    }

    .language-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .language-card {
        min-height: 175px;
        padding: 28px 18px;
    }

    .language-card h2 {
        font-size: clamp(23px, 6vw, 30px);
    }

    .language-finale {
        margin-top: 85px;
        padding: 55px 15px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    .page-six *,
    .page-six *::before,
    .page-six *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

    .language-card,
    .language-finale {
        opacity: 1;
        transform: none;
    }
}


/* =========================================
   PAGE 7 — NISHI'S 19TH BIRTHDAY
========================================= */

.birthday-finale[hidden] {
    display: none !important;
}

.birthday-finale {
    width: 100%;
    min-height: 100vh;
    background: #080b0d;
    color: #fff;
    overflow: hidden;
}

/* ZORO HERO */

.zoro-hero {
    width: 100%;
    min-height: 100vh;
    position: relative;
    isolation: isolate;

    display: flex;
    justify-content: center;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            ellipse at center,
            #24432c,
            #101c17 48%,
            #07090a 100%
        );
}

.zoro-video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 25%;

    z-index: -2;
    opacity: 0.8;
}

.zoro-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            90deg,
            rgba(3, 8, 5, 0.82),
            rgba(5, 10, 7, 0.35),
            rgba(3, 8, 5, 0.82)
        ),
        linear-gradient(
            0deg,
            rgba(3, 8, 5, 0.8),
            transparent 45%,
            rgba(3, 8, 5, 0.3)
        );
}

/* GREEN PARTICLES */

.zoro-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.zoro-particles span {
    position: absolute;

    color: #baff86;
    font-size: 23px;

    text-shadow:
        0 0 10px #8dff65,
        0 0 25px #48e66a;

    animation: zoroParticle 5s ease-in-out infinite;
}

.zoro-particles span:nth-child(1) {
    left: 12%;
    top: 20%;
}

.zoro-particles span:nth-child(2) {
    left: 80%;
    top: 15%;
    animation-delay: 1s;
}

.zoro-particles span:nth-child(3) {
    left: 25%;
    top: 75%;
    animation-delay: 2s;
}

.zoro-particles span:nth-child(4) {
    left: 88%;
    top: 65%;
    animation-delay: 0.5s;
}

.zoro-particles span:nth-child(5) {
    left: 55%;
    top: 10%;
    animation-delay: 1.5s;
}

.zoro-particles span:nth-child(6) {
    left: 68%;
    top: 85%;
    animation-delay: 2.5s;
}

.zoro-particles span:nth-child(7) {
    left: 7%;
    top: 48%;
    animation-delay: 3s;
}

.zoro-particles span:nth-child(8) {
    left: 95%;
    top: 40%;
    animation-delay: 1.8s;
}

@keyframes zoroParticle {
    0%, 100% {
        opacity: 0.15;
        transform: translateY(15px) scale(0.7) rotate(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-25px) scale(1.2) rotate(90deg);
    }
}


/* BIRTHDAY TYPOGRAPHY */

.birthday-title {
    width: min(1000px, 94%);
    padding: 30px 15px;

    text-align: center;
    position: relative;
    z-index: 2;

    animation: birthdayEntrance 1.6s ease both;
}

@keyframes birthdayEntrance {
    from {
        opacity: 0;
        transform: translateY(35px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.birthday-kicker {
    display: block;
    margin-bottom: 28px;

    color: #c9ffb5;
    font-family: "Cormorant Garamond", serif;

    font-size: 13px;
    letter-spacing: 5px;

    text-shadow: 0 0 15px #63ff75;
}

.birthday-title h1 {
    font-family: Arial, sans-serif;

    font-size: clamp(35px, 6.5vw, 82px);
    font-weight: 900;
    line-height: 1.2;

    letter-spacing: 2px;

    color: #ffffff;

    background: linear-gradient(
        110deg,
        #ffffff 5%,
        #caffad 25%,
        #ffffff 45%,
        #a4ff83 65%,
        #ffffff 85%
    );

    background-size: 250% auto;

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: birthdayShimmer 4s linear infinite;

    filter: drop-shadow(0 0 18px rgba(133,255,113,0.5));
}

.birthday-title h1 span {
    display: block;
    margin-top: 15px;

    font-size: clamp(45px, 8vw, 105px);
}

@keyframes birthdayShimmer {
    from {
        background-position: 100% center;
    }

    to {
        background-position: -150% center;
    }
}

.birthday-age {
    margin-top: 30px;

    color: #d7ffbd;
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(65px, 10vw, 115px);
    line-height: 1;

    text-shadow:
        0 0 15px #76ff62,
        0 0 45px #4ad65b,
        0 0 90px rgba(100,255,100,0.4);

    animation: ageGlow 3s ease-in-out infinite alternate;
}

.birthday-age span {
    font-size: 35px;
    vertical-align: middle;
}

@keyframes ageGlow {
    from {
        filter: brightness(0.85);
    }

    to {
        filter: brightness(1.3);
    }
}

.birthday-title > p {
    margin-top: 25px;

    color: #e4f1df;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(17px, 2vw, 23px);

    letter-spacing: 1px;
}

.birthday-title button {
    margin-top: 45px;

    background: rgba(38, 88, 45, 0.7);
    border: 1px solid #a8f58d;

    color: #edffe8;
    backdrop-filter: blur(10px);

    box-shadow: 0 0 25px rgba(117,255,102,0.2);
}

.birthday-title button:hover {
    background: rgba(65, 135, 67, 0.85);
    box-shadow: 0 0 35px rgba(117,255,102,0.5);
}


/* PERSONAL MESSAGES */

.personal-messages {
    width: 100%;
    max-width: 950px;

    margin: auto;
    padding: 110px 22px;
}

.personal-eyebrow {
    display: block;
    text-align: center;

    color: #c3e8bb;
    font-family: "Cormorant Garamond", serif;

    letter-spacing: 3px;
    font-size: 12px;
}

.personal-messages > h2 {
    margin: 22px 0;

    text-align: center;
    color: #edffe8;

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(35px, 5vw, 55px);
    font-weight: 400;
}

.personal-intro {
    max-width: 600px;
    margin: 0 auto 75px;

    color: #c9d7c6;
    text-align: center;

    line-height: 1.9;
    font-size: 16px;
}

.personal-note {
    margin: 35px auto;
    padding: 38px 35px;

    border: 1px solid rgba(160,220,145,0.25);
    border-radius: 20px;

    background: linear-gradient(
        140deg,
        rgba(35,65,42,0.42),
        rgba(15,25,20,0.75)
    );

    box-shadow: 0 10px 35px rgba(0,0,0,0.18);

    opacity: 0;
    transform: translateY(35px);

    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.personal-note.visible {
    opacity: 1;
    transform: translateY(0);
}

.personal-note > span {
    color: #a9e59c;
    font-family: "Cormorant Garamond", serif;

    font-size: 12px;
    letter-spacing: 3px;
}

.personal-note p {
    margin-top: 20px;

    color: #e7f1e3;
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(19px, 2.5vw, 25px);
    line-height: 1.8;
}


/* FINAL BIRTHDAY NOTE */

.birthday-final-note {
    margin-top: 110px;
    padding: 65px 25px;

    text-align: center;

    border-top: 1px solid rgba(165,230,150,0.3);
    border-bottom: 1px solid rgba(165,230,150,0.3);
}

.birthday-final-note > span {
    color: #b6e8a8;
    font-size: 12px;
    letter-spacing: 4px;
}

.birthday-final-note h2 {
    margin: 25px 0;

    color: #eaffdf;
    font-family: "Cormorant Garamond", serif;

    font-size: clamp(34px, 5vw, 55px);
    font-weight: 400;

    text-shadow: 0 0 20px rgba(143,255,123,0.3);
}

.birthday-final-note p {
    max-width: 600px;
    margin: auto;

    color: #d4e5cf;
    font-size: 16px;
    line-height: 1.9;
}

.birthday-signature {
    margin-top: 35px;

    color: #c7f5b9;
    font-family: "Allura", cursive;
    font-size: 38px;
}


/* MOBILE */

@media (max-width: 650px) {

    .zoro-hero {
        min-height: 100svh;
    }

    .zoro-video {
        object-position: center;
    }

    .birthday-title {
        padding: 25px 10px;
    }

    .birthday-kicker {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .birthday-title h1 {
        font-size: clamp(31px, 8vw, 48px);
    }

    .birthday-title h1 span {
        font-size: clamp(39px, 10vw, 61px);
    }

    .birthday-title button {
        margin-top: 30px;
    }

    .personal-messages {
        padding: 75px 15px;
    }

    .personal-note {
        padding: 28px 20px;
    }
}


/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

    .birthday-finale *,
    .birthday-finale *::before,
    .birthday-finale *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }

}

.page-seven-entry {
    text-align: center;
    margin: 45px auto 20px;
    padding: 20px;
}

.page-seven-entry p {
    color: #d8c9ed;
    margin-bottom: 20px;
}

.page-seven-entry button {
    background: linear-gradient(135deg, #285a35, #498b4b);
    border-color: #a8f58d;
    box-shadow: 0 0 20px rgba(117,255,102,0.2);
}

/* ======================================
   WEBSITE-WIDE BACKGROUND MUSIC CONTROL
====================================== */

.music-toggle {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9999;

    padding: 12px 18px;
    border: 1px solid rgba(220, 190, 255, 0.55);
    border-radius: 999px;

    background: rgba(35, 20, 55, 0.88);
    color: #f5eaff;

    font: inherit;
    font-size: 14px;
    letter-spacing: 0.3px;

    cursor: pointer;

    box-shadow: 0 6px 24px rgba(130, 80, 200, 0.25);
    backdrop-filter: blur(12px);

    transition: transform 0.2s ease,
                background 0.2s ease,
                box-shadow 0.2s ease;
}

.music-toggle:hover {
    transform: translateY(-2px);
    background: rgba(65, 35, 95, 0.95);
    box-shadow: 0 8px 28px rgba(160, 110, 230, 0.35);
}

.music-toggle:focus-visible {
    outline: 2px solid #ead8ff;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .music-toggle {
        right: 14px;
        bottom: 14px;
        padding: 10px 15px;
        font-size: 13px;
    }
}


/* =========================================
   PAGE 7 — CENTRED GRAND FINALE ENTRY
========================================= */

.grand-finale-entry {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 55px 20px 70px;
    margin: 0 auto;
}

.grand-finale-entry p {
    text-align: center;
    margin-bottom: 22px;
    color: #e2d5f5;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(18px, 2vw, 23px);
}

.grand-finale-entry button {
    display: block;
    margin: 0 auto;
    padding: 15px 32px;
    border-radius: 40px;
    background: linear-gradient(135deg, #704a91, #b58b54);
    color: white;
    border: 1px solid #e8c98e;
    box-shadow: 0 0 25px rgba(221, 178, 105, 0.35);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grand-finale-entry button:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 35px rgba(238, 197, 126, 0.55);
}


/* =========================================
   PAGE 8 — CINEMATIC GRAND FINALE
========================================= */

.grand-finale[hidden] {
    display: none !important;
}

.grand-finale {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    padding: 100px 5% 75px;
    color: #fff5e9;
    text-align: center;

    background:
        radial-gradient(ellipse at 50% 12%, rgba(112, 70, 135, 0.32), transparent 48%),
        radial-gradient(ellipse at 10% 70%, rgba(167, 111, 63, 0.12), transparent 40%),
        linear-gradient(180deg, #10091d, #1b1027 55%, #0c0815);
}

.grand-finale-stars {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.grand-finale-stars span {
    position: absolute;
    color: #f7d99b;
    text-shadow: 0 0 12px #f6c878, 0 0 25px #bd8bdb;
    animation: finaleTwinkle 3s ease-in-out infinite;
}

.grand-finale-stars span:nth-child(1) { top: 8%; left: 12%; font-size: 24px; }
.grand-finale-stars span:nth-child(2) { top: 18%; right: 14%; font-size: 19px; animation-delay: .7s; }
.grand-finale-stars span:nth-child(3) { top: 42%; left: 5%; font-size: 26px; animation-delay: 1.2s; }
.grand-finale-stars span:nth-child(4) { top: 57%; right: 8%; font-size: 22px; animation-delay: .4s; }
.grand-finale-stars span:nth-child(5) { top: 75%; left: 17%; font-size: 20px; animation-delay: 1.5s; }
.grand-finale-stars span:nth-child(6) { top: 83%; right: 18%; font-size: 27px; animation-delay: .9s; }
.grand-finale-stars span:nth-child(7) { top: 31%; left: 48%; font-size: 18px; animation-delay: 1.8s; }
.grand-finale-stars span:nth-child(8) { top: 93%; left: 50%; font-size: 22px; animation-delay: .5s; }

@keyframes finaleTwinkle {
    0%, 100% { opacity: .25; transform: scale(.8) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.25) rotate(25deg); }
}


/* HEADING */

.grand-finale-heading {
    max-width: 850px;
    margin: 0 auto 65px;
    animation: finaleHeadingIn 1.3s ease both;
}

.grand-finale-eyebrow,
.grand-finale-letter-label {
    display: block;
    color: #e6c58f;
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.grand-finale-heading h1 {
    font-family: "Cormorant Garamond", serif;
    font-weight: 500;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.12;
    color: #fff3df;
    text-shadow: 0 0 30px rgba(222, 176, 119, .25);
}

.grand-finale-heading h1 span {
    display: block;
    margin-top: 10px;
    color: #e8c28d;
    font-style: italic;
}

.grand-finale-heading p {
    margin-top: 22px;
    color: #d9c9df;
    font-size: 16px;
    line-height: 1.8;
}

@keyframes finaleHeadingIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}


/* FIVE GOLDEN PHOTO FRAMES */

.nishi-photo-gallery {
    width: min(1180px, 100%);
    margin: 0 auto 100px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: start;
    gap: 22px;
}

.nishi-photo-card {
    position: relative;
    margin: 0;
    padding: 9px 9px 17px;
    overflow: hidden;

    background: linear-gradient(145deg, #f4d9a5, #9c713e 45%, #f5dfb6);
    border: 1px solid #f8dfae;
    border-radius: 5px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .4),
        0 0 18px rgba(230, 183, 112, .22),
        inset 0 0 0 2px rgba(255, 255, 255, .2);

    opacity: 0;
    transform: translateY(45px) scale(.92);
    transition:
        opacity .9s ease,
        transform .9s cubic-bezier(.2, .8, .2, 1),
        box-shadow .4s ease;
}

.nishi-photo-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.nishi-photo-card:hover {
    transform: translateY(-10px) scale(1.035);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, .45),
        0 0 32px rgba(246, 205, 139, .45);
}

.nishi-photo-card img {
    display: block;
    width: 100%;
    height: 245px;
    object-fit: cover;
    object-position: center;
    border: 3px solid #fff0d3;
    background: #21152a;
}

.nishi-photo-card figcaption {
    padding-top: 13px;
    color: #3b2518;
    font-family: "Cormorant Garamond", serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}


/* THE LETTER */

.grand-finale-letter {
    width: min(790px, 100%);
    margin: 0 auto;
    padding: clamp(30px, 6vw, 65px);

    background:
        linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .025));

    border: 1px solid rgba(231, 195, 139, .45);
    border-radius: 18px;

    box-shadow:
        0 20px 65px rgba(0, 0, 0, .3),
        0 0 35px rgba(205, 155, 213, .12);

    backdrop-filter: blur(12px);

    opacity: 0;
    transform: translateY(45px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.grand-finale-letter.visible {
    opacity: 1;
    transform: translateY(0);
}

.grand-finale-letter h2 {
    color: #f4d3a0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 500;
    margin-bottom: 35px;
}

.grand-finale-letter > p {
    max-width: 620px;
    margin: 0 auto 23px;
    color: #f0e4f2;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(19px, 2.2vw, 23px);
    line-height: 1.9;
    opacity: 0;
    animation: letterLineIn .9s ease forwards;
}

.grand-finale-letter.visible > p:nth-of-type(1) { animation-delay: .3s; }
.grand-finale-letter.visible > p:nth-of-type(2) { animation-delay: 1s; }
.grand-finale-letter.visible > p:nth-of-type(3) { animation-delay: 1.7s; }
.grand-finale-letter.visible > p:nth-of-type(4) { animation-delay: 2.4s; }
.grand-finale-letter.visible > p:nth-of-type(5) { animation-delay: 3.1s; }
.grand-finale-letter.visible > p:nth-of-type(6) { animation-delay: 3.8s; }
.grand-finale-letter.visible > p:nth-of-type(7) { animation-delay: 4.5s; }

@keyframes letterLineIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.grand-finale-letter .grand-finale-last-line {
    margin-top: 38px;
    color: #f4d09a;
    font-size: clamp(23px, 3vw, 30px);
    font-style: italic;
    text-shadow: 0 0 18px rgba(242, 195, 130, .25);
}

.grand-finale-signature {
    margin-top: 45px;
    color: #eacb9e;
    font-family: "Allura", cursive;
    font-size: clamp(35px, 5vw, 48px);
}

.grand-finale-signature span {
    display: block;
    margin-top: 10px;
    color: #d8c5e6;
    font-family: "Cormorant Garamond", serif;
    font-size: 16px;
}


/* CLOSING MOMENT */

.grand-finale-ending {
    margin: 90px auto 0;
    color: #d9c3e8;
    font-family: "Cormorant Garamond", serif;
    font-size: 21px;
    line-height: 1.8;
}

.grand-finale-ending > span {
    display: block;
    margin: 15px;
    color: #f1ce92;
    font-size: 28px;
    animation: finaleTwinkle 2.5s ease-in-out infinite;
}

.grand-finale-ending .ending-highlight {
    color: #f4d09a;
    font-size: clamp(25px, 4vw, 34px);
    font-style: italic;
}


/* MOBILE */

@media (max-width: 850px) {
    .nishi-photo-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 570px;
        gap: 20px;
    }

    .nishi-photo-card img {
        height: 250px;
    }

    .nishi-photo-card:last-child {
        grid-column: 1 / -1;
        width: min(250px, 80%);
        justify-self: center;
    }
}

@media (max-width: 520px) {
    .grand-finale {
        padding: 75px 17px 55px;
    }

    .grand-finale-heading {
        margin-bottom: 45px;
    }

    .nishi-photo-gallery {
        gap: 14px;
        margin-bottom: 65px;
    }

    .nishi-photo-card {
        padding: 6px 6px 12px;
    }

    .nishi-photo-card img {
        height: 190px;
    }

    .nishi-photo-card figcaption {
        font-size: 14px;
    }

    .grand-finale-letter {
        padding: 32px 21px;
    }

    .grand-finale-ending {
        margin-top: 65px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .grand-finale *,
    .grand-finale *::before,
    .grand-finale *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }

    .nishi-photo-card,
    .grand-finale-letter,
    .grand-finale-letter > p {
        opacity: 1;
        transform: none;
    }
}


/* Slightly larger Nishi photo frames */
.nishi-photo-gallery {
    max-width: 1280px;
    gap: 20px;
}

.nishi-photo-card img {
    height: 275px;
}

@media (max-width: 850px) {
    .nishi-photo-card img {
        height: 270px;
    }
}

@media (max-width: 520px) {
    .nishi-photo-card img {
        height: 210px;
    }
}


/* Grand Finale — 3 + 2 photo layout */

.nishi-photo-gallery {
    max-width: 1000px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 30px;
}

.nishi-photo-card {
    grid-column: span 2;
}

.nishi-photo-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.nishi-photo-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.nishi-photo-card img {
    height: 310px;
}

@media (max-width: 850px) {
    .nishi-photo-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 600px;
        gap: 20px;
    }

    .nishi-photo-card,
    .nishi-photo-card:nth-child(4),
    .nishi-photo-card:nth-child(5) {
        grid-column: auto;
    }

    .nishi-photo-card img {
        height: 260px;
    }
}

@media (max-width: 520px) {
    .nishi-photo-gallery {
        grid-template-columns: 1fr;
        max-width: 320px;
    }

    .nishi-photo-card img {
        height: 350px;
    }
}
