/* ==========================================================================
   Girlfriend's Day - Handcrafted Romantic Design System
   Color Palette: Warm Cream, Soft Blush Pink, Natural Beige, Charcoal & Gold
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

:root {
    /* Color Palette */
    --color-bg-primary: #FAF7F2;
    --color-bg-secondary: #F5EBE6;
    --color-card-bg: rgba(255, 255, 255, 0.88);
    --color-card-solid: #FFFFFF;
    --color-text-main: #2C221E;
    --color-text-muted: #7A6F68;
    --color-accent-blush: #F2D6CE;
    --color-accent-rose: #E5A394;
    --color-accent-gold: #D4AF37;
    --color-accent-gold-soft: rgba(212, 175, 55, 0.2);
    --color-border: rgba(212, 190, 180, 0.35);

    /* Typography */
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing & Layout */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-subtle: 0 10px 30px -10px rgba(44, 34, 30, 0.05);
    --shadow-medium: 0 20px 40px -15px rgba(44, 34, 30, 0.08);
    --shadow-elevated: 0 30px 60px -20px rgba(44, 34, 30, 0.14);
    --shadow-glow: 0 0 25px rgba(229, 163, 148, 0.35);

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Global Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-primary);
    color: var(--color-text-main);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* Ambient Canvas Backgrounds */
#ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

main {
    position: relative;
    z-index: 1;
}

/* Common Section Layout */
.section {
    position: relative;
    padding: 90px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 18px;
    }
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px auto;
}

.section-tag {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent-rose);
    margin-bottom: 12px;
    font-weight: 600;
    display: inline-block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--color-text-main);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    font-weight: 300;
}

/* Glassmorphism Utility */
.glass-panel {
    background: var(--color-card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-medium);
    border-radius: var(--radius-md);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: var(--color-text-main);
    color: var(--color-bg-primary);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevated);
    background: #3E312B;
}

.btn-primary svg {
    transition: transform 0.3s ease;
}

.btn-primary:hover svg {
    transform: translateY(4px);
}

/* -----------------------------------
   1. LANDING HERO SECTION & PHOTO STACK
   ----------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 24px;
    position: relative;
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInScale 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(242, 214, 206, 0.45);
    border: 1px solid rgba(229, 163, 148, 0.35);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--color-text-main);
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 9vw, 6.5rem);
    font-weight: 300;
    line-height: 1.05;
    margin-bottom: 20px;
    color: var(--color-text-main);
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2.8vw, 1.35rem);
    color: var(--color-text-muted);
    font-weight: 300;
    margin-bottom: 36px;
    max-width: 580px;
}

/* 3D Interactive Fan Photo Stack */
.hero-photo-stack {
    position: relative;
    width: 280px;
    height: 190px;
    margin-bottom: 44px;
    cursor: pointer;
    perspective: 1000px;
}

.stack-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(44, 34, 30, 0.12);
    border: 3px solid #FFFFFF;
    transition: var(--transition-bounce);
    background: #FFFFFF;
}

.stack-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stack-card.card-1 { transform: rotate(-9deg) translate(-25px, -5px); z-index: 1; }
.stack-card.card-2 { transform: rotate(7deg) translate(20px, -10px); z-index: 2; }
.stack-card.card-3 { transform: rotate(-3deg) translate(-8px, 8px); z-index: 3; }
.stack-card.card-4 { transform: rotate(1deg) translate(0, 0); z-index: 4; }

/* Fan out on hover */
.hero-photo-stack:hover .stack-card.card-1 { transform: rotate(-18deg) translate(-110px, 10px) scale(1.05); }
.hero-photo-stack:hover .stack-card.card-2 { transform: rotate(-6deg) translate(-38px, -15px) scale(1.05); }
.hero-photo-stack:hover .stack-card.card-3 { transform: rotate(6deg) translate(38px, -15px) scale(1.05); }
.hero-photo-stack:hover .stack-card.card-4 { transform: rotate(18deg) translate(110px, 10px) scale(1.05); }

@media (max-width: 600px) {
    .hero-photo-stack:hover .stack-card.card-1 { transform: rotate(-14deg) translate(-60px, 5px) scale(1.02); }
    .hero-photo-stack:hover .stack-card.card-2 { transform: rotate(-5deg) translate(-20px, -8px) scale(1.02); }
    .hero-photo-stack:hover .stack-card.card-3 { transform: rotate(5deg) translate(20px, -8px) scale(1.02); }
    .hero-photo-stack:hover .stack-card.card-4 { transform: rotate(14deg) translate(60px, 5px) scale(1.02); }
}

.hero-glow {
    position: absolute;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(242, 214, 206, 0.55) 0%, rgba(250, 247, 242, 0) 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
    filter: blur(40px);
    animation: floatGlow 8s ease-in-out infinite alternate;
}

/* -----------------------------------
   21KM TRAIL RUN HIGHLIGHT BANNER
   ----------------------------------- */
.trail-banner {
    padding: 40px 36px;
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(245, 235, 230, 0.85) 100%);
    box-shadow: 0 20px 40px -15px rgba(212, 175, 55, 0.15);
    margin-bottom: 20px;
}

.trail-badge {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--color-accent-gold);
    font-weight: 600;
    margin-bottom: 10px;
}

.trail-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 14px;
}

.trail-desc {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 680px;
    margin: 0 auto 30px auto;
}

.trail-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trail-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1;
    color: var(--color-text-main);
    font-weight: 500;
}

.stat-unit {
    font-size: 0.85rem;
    color: var(--color-accent-rose);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 4px;
}

/* -----------------------------------
   2. PHOTO TIMELINE SECTION
   ----------------------------------- */
.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--color-accent-rose) 15%, var(--color-accent-rose) 85%, transparent);
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .timeline-line { left: 24px; }
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    display: flex;
    justify-content: flex-end;
    width: 50%;
    padding-right: 45px;
    opacity: 0;
    transform: translateY(40px) rotate(-2deg);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    margin-left: auto;
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 45px;
    transform: translateY(40px) rotate(2deg);
}

@media (max-width: 768px) {
    .timeline-item, .timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
        transform: translateY(40px) rotate(0deg) !important;
    }
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0) rotate(0deg) !important;
}

.timeline-dot {
    position: absolute;
    top: 24px;
    right: -7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-card-solid);
    border: 3px solid var(--color-accent-rose);
    box-shadow: 0 0 0 6px var(--color-bg-primary);
    z-index: 2;
}

.timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -7px;
}

@media (max-width: 768px) {
    .timeline-dot, .timeline-item:nth-child(even) .timeline-dot {
        left: 17px;
        right: auto;
    }
}

.timeline-card {
    background: var(--color-card-solid);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
    width: 100%;
    transform-style: preserve-3d;
}

.timeline-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-elevated);
}

.timeline-image-wrap {
    width: 100%;
    height: 260px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 18px;
    position: relative;
    background: var(--color-bg-secondary);
}

.timeline-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.timeline-card:hover .timeline-image-wrap img {
    transform: scale(1.06);
}

.timeline-date {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent-rose);
    font-weight: 600;
    margin-bottom: 6px;
}

.timeline-card-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.timeline-caption {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

/* -----------------------------------
   3. REASONS I LOVE YOU (FLOATING NOTES)
   ----------------------------------- */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    padding: 20px 0;
}

.paper-note {
    background: var(--color-card-solid);
    padding: 28px 24px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-subtle);
    border: 1px solid var(--color-border);
    position: relative;
    transition: var(--transition-bounce);
    cursor: default;
    animation: floatNote 6s ease-in-out infinite alternate;
}

.paper-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: rgba(229, 163, 148, 0.35);
    border-radius: 0 0 4px 4px;
}

.paper-note-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-accent-blush);
    line-height: 1;
    margin-bottom: 12px;
    font-style: italic;
}

.paper-note-text {
    font-size: 0.95rem;
    color: var(--color-text-main);
    font-weight: 400;
}

.paper-note:hover {
    transform: translateY(-8px) scale(1.04) rotate(0deg) !important;
    box-shadow: var(--shadow-elevated);
    z-index: 5;
    border-color: var(--color-accent-rose);
}

/* -----------------------------------
   4. MEMORY GALLERY (PINTEREST MASONRY)
   ----------------------------------- */
.masonry-grid {
    column-count: 2;
    column-gap: 24px;
}

@media (max-width: 600px) {
    .masonry-grid { column-count: 1; }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 24px;
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    background: var(--color-card-solid);
    transition: var(--transition-smooth);
}

.masonry-item img {
    width: 100%;
    display: block;
    border-radius: var(--radius-md);
    transition: transform 0.6s ease;
}

.masonry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(44, 34, 30, 0.75) 0%, rgba(44, 34, 30, 0) 65%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-md);
}

.masonry-item:hover .masonry-overlay { opacity: 1; }
.masonry-item:hover img { transform: scale(1.06); }

.masonry-caption {
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 400;
    font-family: var(--font-heading);
}

/* FULLSCREEN LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 18, 25, 0.92);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 40px;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: var(--color-bg-primary);
    margin-top: 16px;
    font-size: 1.15rem;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: background 0.3s ease;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, 0.3); }

.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* -----------------------------------
   5. POLAROID SECTION
   ----------------------------------- */
.polaroids-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    padding: 30px 0;
}

.polaroid-card {
    background: #FFFFFF;
    padding: 16px 16px 28px 16px;
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(44, 34, 30, 0.08);
    width: 250px;
    transition: var(--transition-bounce);
    cursor: pointer;
    transform: rotate(var(--rot, 0deg));
}

.polaroid-card:hover {
    transform: rotate(0deg) scale(1.08) translateY(-10px) !important;
    box-shadow: var(--shadow-elevated);
    z-index: 10;
}

.polaroid-img-frame {
    width: 100%;
    height: 240px;
    background: #F2EFE9;
    overflow: hidden;
    margin-bottom: 16px;
}

.polaroid-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.polaroid-caption {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    text-align: center;
    color: #4A3E39;
    font-style: italic;
}

/* -----------------------------------
   6. LOVE LETTER SECTION
   ----------------------------------- */
.letter-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

.envelope {
    width: 100%;
    max-width: 580px;
    background: #F4EBE3;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-medium);
    padding: 48px 36px;
    position: relative;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: center;
}

.envelope.open {
    background: var(--color-card-solid);
    cursor: default;
    box-shadow: var(--shadow-elevated);
    padding: 56px 44px;
}

.envelope-seal {
    width: 64px;
    height: 64px;
    background: var(--color-accent-rose);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px auto;
    font-size: 1.6rem;
    box-shadow: 0 8px 20px rgba(229, 163, 148, 0.4);
    transition: transform 0.4s ease;
}

.envelope:hover .envelope-seal { transform: scale(1.1) rotate(10deg); }
.envelope.open .envelope-seal { display: none; }

.envelope-prompt {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-text-main);
    margin-bottom: 8px;
}

.envelope-subtext {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.letter-paper {
    display: none;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    line-height: 1.8;
    color: var(--color-text-main);
    white-space: pre-wrap;
}

.envelope.open .letter-paper {
    display: block;
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.typewriter-cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background: var(--color-accent-rose);
    vertical-align: middle;
    animation: blink 0.8s infinite;
}

/* -----------------------------------
   7. FAVORITE MOMENTS HORIZONTAL TIMELINE
   ----------------------------------- */
.moments-scroll-wrap {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    padding: 20px 4px 40px 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent-rose) transparent;
}

.moments-scroll-wrap::-webkit-scrollbar { height: 6px; }
.moments-scroll-wrap::-webkit-scrollbar-thumb { background: var(--color-accent-rose); border-radius: 3px; }

.moment-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: var(--color-card-solid);
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-smooth);
}

.moment-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
}

.moment-img {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    margin-bottom: 16px;
}

.moment-date {
    font-size: 0.8rem;
    color: var(--color-accent-rose);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.moment-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 6px;
}

.moment-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* -----------------------------------
   8. LITTLE THINGS INTERACTIVE BUTTONS
   ----------------------------------- */
.little-things-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    max-width: 780px;
    margin: 0 auto;
}

.interactive-btn {
    padding: 16px 28px;
    background: var(--color-card-solid);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-main);
    cursor: pointer;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition-bounce);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    user-select: none;
}

.interactive-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-medium);
    border-color: var(--color-accent-rose);
}

.interactive-btn:active { transform: translateY(-1px) scale(0.98); }

/* -----------------------------------
   9. COUNTDOWN SECTION
   ----------------------------------- */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 24px;
    max-width: 650px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .countdown-container { gap: 12px; }
}

.countdown-box {
    flex: 1;
    background: var(--color-card-solid);
    border-radius: var(--radius-md);
    padding: 28px 16px;
    text-align: center;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--color-border);
}

.countdown-number {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 400;
    color: var(--color-text-main);
    line-height: 1;
    margin-bottom: 6px;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-text-muted);
    font-weight: 600;
}

/* -----------------------------------
   10. HIDDEN STARS & TOAST SYSTEM
   ----------------------------------- */
.star-trigger {
    position: absolute;
    width: 20px;
    height: 20px;
    color: var(--color-accent-gold);
    cursor: pointer;
    z-index: 20;
    opacity: 0.4;
    transition: opacity 0.3s ease, transform 0.3s ease;
    animation: starPulse 2.5s ease-in-out infinite alternate;
}

.star-trigger:hover {
    opacity: 1;
    transform: scale(1.4) rotate(45deg);
}

.toast-container {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: none;
}

.toast-message {
    background: rgba(44, 34, 30, 0.92);
    color: #FAF7F2;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    box-shadow: var(--shadow-elevated);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.toast-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* -----------------------------------
   11. ENDING NIGHT SKY SECTION
   ----------------------------------- */
.ending-section {
    background: #0D1017;
    color: #FAF7F2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 100px 24px;
    overflow: hidden;
}

#sky-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.ending-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.moon-element {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: inset -18px 4px 0 0 #F5EBE6, 0 0 40px rgba(245, 235, 230, 0.25);
    margin: 0 auto 50px auto;
    animation: moonGlow 6s ease-in-out infinite alternate;
}

.ending-phrase {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 36px;
    opacity: 0.95;
}

.ending-final {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--color-accent-rose);
    font-style: italic;
}

/* -----------------------------------
   12. FIXED ELEGANT MUSIC PLAYER
   ----------------------------------- */
.music-player {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 10px 18px 10px 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
}

.music-player:hover { box-shadow: var(--shadow-elevated); }

.music-cover {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    animation: rotateCover 12s linear infinite;
    animation-play-state: paused;
}

.music-player.playing .music-cover { animation-play-state: running; }

.music-info { display: flex; flex-direction: column; }

.music-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
    line-height: 1.2;
}

.music-artist {
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.music-control-btn {
    background: none;
    border: none;
    color: var(--color-text-main);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.music-control-btn:hover { background: rgba(44, 34, 30, 0.08); }

.music-waves {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 14px;
}

.music-wave-bar {
    width: 2px;
    background: var(--color-accent-rose);
    border-radius: 1px;
    height: 4px;
}

.music-player.playing .music-wave-bar:nth-child(1) { animation: wave 1.2s ease-in-out infinite alternate; }
.music-player.playing .music-wave-bar:nth-child(2) { animation: wave 0.8s ease-in-out infinite 0.2s alternate; }
.music-player.playing .music-wave-bar:nth-child(3) { animation: wave 1.0s ease-in-out infinite 0.4s alternate; }

/* KEYFRAME ANIMATIONS */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes floatGlow {
    from { transform: translate(-50%, -50%) scale(0.9); opacity: 0.4; }
    to { transform: translate(-50%, -50%) scale(1.15); opacity: 0.8; }
}

@keyframes floatNote {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-8px) rotate(1.5deg); }
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes starPulse {
    0% { transform: scale(0.9); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes moonGlow {
    0% { box-shadow: inset -18px 4px 0 0 #F5EBE6, 0 0 30px rgba(245, 235, 230, 0.25); }
    100% { box-shadow: inset -18px 4px 0 0 #F5EBE6, 0 0 60px rgba(245, 235, 230, 0.45); }
}

@keyframes rotateCover {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes wave {
    0% { height: 3px; }
    100% { height: 14px; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.butterfly {
    position: fixed;
    width: 24px;
    height: 24px;
    pointer-events: none;
    z-index: 99;
    opacity: 0.85;
}
