/* ==========================================================================
   ROMANTIC 3D SCRAPBOOK DESIGN SYSTEM (AWWWARDS / LUXURY MOTION STYLE)
   ========================================================================== */

:root {
    /* Color Palette */
    --c-primary: #ff5e87;
    --c-primary-deep: #e0245e;
    --c-blush: #ffeaf0;
    --c-cream: #fffbf9;
    --c-gold: #e5b972;
    --c-gold-glow: rgba(229, 185, 114, 0.4);
    --c-rose-shadow: rgba(224, 36, 94, 0.15);
    --c-text-dark: #2a1b24;
    --c-text-muted: #7d6572;
    --c-emerald: #2e7d32;
    
    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-display: 'Cinzel', serif;
    --font-handwriting: 'Caveat', cursive;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Layout Variables */
    --nav-height: 74px;
    --max-content-w: 1240px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   RESET & CORE BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--c-cream);
    color: var(--c-text-dark);
}

body {
    font-family: var(--font-sans);
    overflow-x: hidden;
    line-height: 1.6;
    background: radial-gradient(circle at 50% 0%, #fff0f5 0%, #fffbf8 50%, #fef3f6 100%);
    min-height: 100vh;
}

/* --------------------------------------------------------------------------
   CUSTOM MOUSE CURSOR
   -------------------------------------------------------------------------- */
.custom-cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--c-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.custom-cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255, 94, 135, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease-out, border-color 0.3s ease, width 0.3s ease, height 0.3s ease;
    backdrop-filter: blur(1px);
}

@media (pointer: coarse) {
    .custom-cursor-dot, .custom-cursor-ring { display: none; }
}

/* --------------------------------------------------------------------------
   AMBIENT DYNAMIC BACKGROUND GLOW & NOISE
   -------------------------------------------------------------------------- */
.ambient-glow-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -2;
    background: 
        radial-gradient(circle at 15% 20%, rgba(255, 182, 193, 0.4) 0%, transparent 45%),
        radial-gradient(circle at 85% 35%, rgba(255, 223, 230, 0.45) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(255, 209, 220, 0.3) 0%, transparent 60%);
    filter: blur(50px);
    animation: ambientPulse 14s ease-in-out infinite alternate;
}

@keyframes ambientPulse {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.08) translate(-20px, 20px); }
    100% { transform: scale(0.96) translate(20px, -15px); }
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    opacity: 0.03;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
}

/* --------------------------------------------------------------------------
   FLOATING GLASS NAVBAR
   -------------------------------------------------------------------------- */
.floating-nav-container {
    position: fixed;
    top: 18px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 1000;
    padding: 0 1rem;
}

.glass-pill-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.65rem 1.3rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 12px 35px rgba(224, 36, 94, 0.08), 0 2px 8px rgba(0,0,0,0.02);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--c-primary-deep);
}

.heart-pulse {
    display: inline-block;
    animation: heartBeat 1.8s ease infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    15% { transform: scale(1.25); }
    30% { transform: scale(1); }
    45% { transform: scale(1.18); }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.nav-link {
    color: var(--c-text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--c-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.icon-pill-btn {
    border: none;
    outline: none;
    cursor: pointer;
    background: rgba(255, 235, 240, 0.75);
    color: var(--c-primary-deep);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s var(--ease-spring);
    border: 1px solid rgba(255, 200, 215, 0.5);
    white-space: nowrap;
}

.icon-pill-btn:hover {
    background: var(--c-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px var(--c-rose-shadow);
}

.highlight-btn {
    background: linear-gradient(135deg, var(--c-primary), #ff758c);
    color: white;
    border: none;
    box-shadow: 0 4px 14px var(--c-rose-shadow);
}

.highlight-btn:hover {
    transform: translateY(-2px) scale(1.04);
}

/* --------------------------------------------------------------------------
   HERO 3D STAGE (CLEAN, SPACIOUS, ZERO OVERLAP)
   -------------------------------------------------------------------------- */
.hero-3d-stage {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + 25px);
    padding-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
}

.hero-text-header {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 960px;
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 182, 193, 0.6);
    padding: 0.4rem 1.3rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: var(--c-primary);
    box-shadow: 0 4px 15px rgba(255, 94, 135, 0.1);
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.hero-main-title {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.4rem;
}

.title-sub {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 5px;
    font-weight: 800;
    color: var(--c-text-muted);
}

.title-main {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 5.8vw, 4.8rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #2b111e 0%, #e0245e 50%, #ff758c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Metric Chips in a Clean Horizontal Strip */
.hero-metrics-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.metric-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 180, 200, 0.5);
    padding: 0.5rem 1.15rem;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(224, 36, 94, 0.06);
    backdrop-filter: blur(10px);
    font-size: 0.82rem;
    color: var(--c-text-dark);
}

.metric-chip strong {
    color: var(--c-primary-deep);
}

.spin-hint-chip {
    background: linear-gradient(135deg, rgba(255, 240, 245, 0.95), rgba(255, 225, 235, 0.95));
    border-color: var(--c-primary);
    color: var(--c-primary-deep);
}

/* Centered 3D Viewport Wrapper */
.three-stage-wrapper {
    position: relative;
    width: 100%;
    max-width: 850px;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    margin: 0.5rem 0;
}

.three-viewport {
    width: 100%;
    height: 100%;
    cursor: grab;
    position: relative;
    z-index: 2;
}

.three-viewport:active {
    cursor: grabbing;
}

.three-stage-glow {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255, 182, 193, 0.35) 0%, rgba(255, 223, 230, 0.15) 50%, transparent 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

/* Scroll Prompt */
.scroll-prompt-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
}

.prompt-label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--c-text-muted);
}

.mouse-scroll-icon {
    width: 22px;
    height: 36px;
    border: 2px solid rgba(224, 36, 94, 0.4);
    border-radius: 12px;
    position: relative;
    display: flex;
    justify-content: center;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--c-primary);
    border-radius: 2px;
    margin-top: 6px;
    animation: mouseScroll 1.6s ease infinite;
}

@keyframes mouseScroll {
    0% { transform: translateY(0); opacity: 1; }
    80% { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* --------------------------------------------------------------------------
   QUICK CHAPTER JUMP BAR
   -------------------------------------------------------------------------- */
.chapter-quick-bar {
    max-width: var(--max-content-w);
    margin: 1rem auto 3rem;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 10;
}

.quick-title {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--c-primary-deep);
    white-space: nowrap;
}

.pills-scroll-track {
    display: flex;
    gap: 0.7rem;
    overflow-x: auto;
    padding: 0.4rem 0.2rem;
    scrollbar-width: none;
}

.pills-scroll-track::-webkit-scrollbar {
    display: none;
}

.story-pill {
    text-decoration: none;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 180, 200, 0.4);
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--c-text-dark);
    white-space: nowrap;
    transition: all 0.3s var(--ease-spring);
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.story-pill:hover, .story-pill.active {
    background: var(--c-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--c-rose-shadow);
}

/* --------------------------------------------------------------------------
   SHARED SECTION STYLES
   -------------------------------------------------------------------------- */
.scrapbook-section {
    position: relative;
    padding: 7rem 2rem 5rem;
    max-width: var(--max-content-w);
    margin: 0 auto;
}

.section-watermark {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: clamp(4rem, 14vw, 11rem);
    font-weight: 900;
    color: rgba(224, 36, 94, 0.035);
    letter-spacing: 12px;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.section-header {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 3.8rem;
}

.chapter-number {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 4px;
    font-weight: 800;
    color: var(--c-primary);
    display: block;
    margin-bottom: 0.3rem;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    color: var(--c-text-dark);
    margin-bottom: 0.5rem;
}

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

/* Featured Story Banner */
.featured-story-banner {
    background: rgba(255, 255, 255, 0.7);
    border-left: 4px solid var(--c-primary);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    max-width: 800px;
    margin: 0 auto 3.5rem;
    box-shadow: 0 10px 25px rgba(224, 36, 94, 0.05);
}

.story-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--c-primary);
    margin-bottom: 0.3rem;
}

.featured-story-banner h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--c-text-dark);
    margin-bottom: 0.3rem;
}

.featured-story-banner p {
    font-family: var(--font-handwriting);
    font-size: 1.65rem;
    color: var(--c-text-muted);
}

/* --------------------------------------------------------------------------
   POLAROID 3D FLIP CARDS (CHAPTER 1)
   -------------------------------------------------------------------------- */
.polaroids-canvas-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3.5rem 2.2rem;
    position: relative;
    z-index: 1;
}

.polaroid-3d-wrapper {
    position: relative;
    width: 320px;
    height: 430px;
    perspective: 1200px;
    transition: transform 0.5s var(--ease-out-expo);
}

.rotate-tilt-left { transform: rotate(-3deg); }
.rotate-tilt-right { transform: rotate(3deg); }
.rotate-tilt-slight { transform: rotate(-1deg); }

.polaroid-3d-wrapper:hover {
    transform: rotate(0deg) scale(1.03) translateY(-8px);
    z-index: 15;
}

.polaroid-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.3, 1, 0.4, 1);
    cursor: pointer;
}

.polaroid-flipper.flipped {
    transform: rotateY(180deg);
}

.polaroid-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 4px;
    background: #ffffff;
    padding: 16px 16px 42px 16px;
    box-shadow: 0 16px 36px rgba(130, 40, 70, 0.12), 0 2px 6px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.polaroid-front { z-index: 2; }

.polaroid-back {
    transform: rotateY(180deg);
    background: #fffdf8;
    padding: 2.2rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(224, 36, 94, 0.2);
}

.photo-viewport {
    width: 100%;
    height: 295px;
    background: #f4ecf0;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: inset 0 0 12px rgba(0,0,0,0.06);
}

.scrapbook-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.6s ease;
}

.polaroid-3d-wrapper:hover .scrapbook-img {
    transform: scale(1.05);
}

.polaroid-meta {
    margin-top: 14px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.handwritten-caption {
    font-family: var(--font-handwriting);
    font-size: 1.85rem;
    color: #3b2832;
    line-height: 1;
}

.film-stamp {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: rgba(130, 40, 70, 0.4);
}

.flip-hint-badge {
    position: absolute;
    bottom: 12px;
    right: 14px;
    font-size: 0.68rem;
    color: var(--c-primary);
    font-weight: 700;
    opacity: 0.8;
}

.memory-note {
    text-align: center;
    position: relative;
    width: 100%;
}

.memory-note h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--c-primary-deep);
    margin-bottom: 0.8rem;
}

.memory-note p {
    font-family: var(--font-handwriting);
    font-size: 1.65rem;
    line-height: 1.4;
    color: #4a343f;
    margin-bottom: 1.2rem;
}

.note-date {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--c-text-muted);
}

.heart-stamp {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.5rem;
    color: var(--c-primary);
}

/* Washi Tape and Clips */
.washi-tape-accent {
    position: absolute;
    width: 110px;
    height: 32px;
    background: rgba(255, 230, 235, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-left: 2px dashed rgba(255, 180, 200, 0.6);
    border-right: 2px dashed rgba(255, 180, 200, 0.6);
}

.tape-angle-1 { top: -14px; left: 25%; transform: rotate(-5deg); }
.tape-angle-2 { top: -14px; right: 20%; transform: rotate(6deg); }
.tape-angle-3 { top: -12px; left: 30%; transform: rotate(-2deg); }

.gold-paperclip {
    position: absolute;
    top: -12px;
    left: 20px;
    width: 14px;
    height: 42px;
    border: 3px solid #d4af37;
    border-radius: 8px;
    z-index: 12;
    box-shadow: 2px 3px 6px rgba(0,0,0,0.15);
}

.pin-gold {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffd700, #b8860b);
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
    z-index: 12;
}

/* --------------------------------------------------------------------------
   SPOTLIGHT LOVE CARDS (EDITORIAL HIGHLIGHTS)
   -------------------------------------------------------------------------- */
.spotlight-love-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 200, 215, 0.6);
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 4rem;
    box-shadow: 0 24px 60px rgba(130, 40, 70, 0.1);
    backdrop-filter: blur(14px);
    position: relative;
    z-index: 2;
}

.spotlight-love-card.green-theme {
    border-color: rgba(46, 125, 50, 0.2);
    background: rgba(255, 255, 255, 0.88);
}

.spotlight-love-card.cute-pink-theme {
    border-color: rgba(255, 105, 180, 0.3);
}

.spotlight-frame {
    position: relative;
    border-radius: 16px;
    background: white;
    padding: 16px 16px 36px 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    transform: rotate(-2deg);
    transition: transform 0.4s var(--ease-spring);
}

.spotlight-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

.spotlight-tape {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 32px;
    background: rgba(255, 255, 255, 0.85);
    border-left: 2px dashed rgba(255, 180, 200, 0.8);
    border-right: 2px dashed rgba(255, 180, 200, 0.8);
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.spotlight-img-box {
    width: 100%;
    height: 460px;
    overflow: hidden;
    border-radius: 6px;
}

.spotlight-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    cursor: pointer;
    transition: transform 0.5s ease;
}

.spotlight-photo:hover {
    transform: scale(1.04);
}

.spotlight-badge {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--c-primary-deep);
}

.spotlight-text-block {
    display: flex;
    flex-direction: column;
}

.spotlight-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--c-primary);
    margin-bottom: 0.5rem;
}

.spotlight-text-block h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--c-text-dark);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.handwritten-lead {
    font-family: var(--font-handwriting);
    font-size: 2.05rem;
    line-height: 1.45;
    color: #4a343f;
    margin-bottom: 1.8rem;
}

.spotlight-stats {
    display: flex;
    gap: 1.5rem;
}

.s-stat {
    background: rgba(255, 235, 240, 0.6);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.85rem;
}

.s-stat span { color: var(--c-text-muted); }
.s-stat strong { color: var(--c-primary-deep); margin-left: 4px; }

.spotlight-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--c-emerald);
    border-left: 3px solid var(--c-emerald);
    padding-left: 1rem;
    margin-top: 1rem;
}

.sticker-tag-row {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.pill-badge {
    background: #ffe4e9;
    color: var(--c-primary-deep);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
}

/* --------------------------------------------------------------------------
   SCRAPBOOK MASONRY GALLERIES (CHAPTERS 2, 3, 4, 5)
   -------------------------------------------------------------------------- */
.scrapbook-masonry-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3.5rem 2.2rem;
    position: relative;
    z-index: 1;
}

.scrapbook-masonry-gallery.four-columns {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.scrapbook-masonry-gallery.three-columns {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.scrapbook-card {
    position: relative;
    background: #ffffff;
    padding: 14px 14px 28px 14px;
    border-radius: 4px;
    box-shadow: 0 16px 36px rgba(130, 40, 70, 0.12), 0 2px 6px rgba(0,0,0,0.03);
    transition: transform 0.4s var(--ease-spring), box-shadow 0.3s ease;
    cursor: pointer;
}

.scrapbook-card:hover {
    transform: rotate(0deg) scale(1.04) translateY(-8px) !important;
    box-shadow: 0 24px 50px rgba(130, 40, 70, 0.2);
    z-index: 15;
}

.card-img-holder {
    width: 100%;
    height: 340px;
    overflow: hidden;
    border-radius: 2px;
    background: #f7eff3;
}

.card-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.6s ease;
}

.scrapbook-card:hover .card-img-holder img {
    transform: scale(1.06);
}

.card-caption {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.handwritten-title {
    font-family: var(--font-handwriting);
    font-size: 1.85rem;
    color: #3b2832;
    line-height: 1;
}

.card-tag {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--c-primary);
}

/* --------------------------------------------------------------------------
   CHAPTER 6: INTERACTIVE WAX-SEALED LOVE LETTER
   -------------------------------------------------------------------------- */
.wax-envelope-station {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.envelope-box {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 260px;
    background: linear-gradient(135deg, #f9edf1, #f3dce4);
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(130, 40, 70, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.envelope-box.opened {
    transform: scale(0.9) translateY(40px);
    opacity: 0;
    pointer-events: none;
    height: 0;
    margin: 0;
    overflow: hidden;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 240px solid transparent;
    border-right: 240px solid transparent;
    border-top: 130px solid #ecd3dc;
    transform-origin: top;
    transition: transform 0.6s var(--ease-spring);
}

.wax-seal-button {
    position: relative;
    z-index: 10;
    width: 82px;
    height: 82px;
    background: radial-gradient(circle at 35% 35%, #e63956 0%, #b81432 60%, #700619 100%);
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(140, 10, 35, 0.4), inset 0 2px 4px rgba(255,255,255,0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
    border: 2px dashed rgba(255, 255, 255, 0.2);
}

.wax-seal-button:hover {
    transform: scale(1.12);
    box-shadow: 0 14px 30px rgba(140, 10, 35, 0.55);
}

.seal-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.seal-stamp-icon { font-size: 1.4rem; }
.seal-prompt { font-size: 0.65rem; font-weight: 900; letter-spacing: 1px; }

.parchment-sheet {
    position: relative;
    width: 100%;
    background: #fffdfa;
    border-radius: 12px;
    padding: 4.5rem 3.5rem;
    box-shadow: 0 25px 60px rgba(130, 40, 70, 0.12);
    border: 1px solid rgba(230, 200, 210, 0.6);
    display: none;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 0.8s var(--ease-out-expo);
}

.parchment-sheet.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.letter-texture-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.35;
    background-image: repeating-linear-gradient(transparent, transparent 39px, rgba(255, 182, 193, 0.3) 40px);
}

.letter-inner-content {
    position: relative;
    z-index: 2;
}

.letter-header-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2.2rem;
    border-bottom: 2px solid rgba(255, 182, 193, 0.3);
    padding-bottom: 0.8rem;
}

.letter-salutation {
    font-family: var(--font-handwriting);
    font-size: 3rem;
    font-weight: 700;
    color: var(--c-primary-deep);
}

.letter-vintage-date {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--c-text-muted);
}

.handwritten-p {
    font-family: var(--font-handwriting);
    font-size: 2.1rem;
    line-height: 1.5;
    color: #38242f;
    margin-bottom: 1.8rem;
}

.letter-signoff {
    margin-top: 3.5rem;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.signoff-words {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--c-text-muted);
}

.handwritten-signature {
    font-family: var(--font-handwriting);
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--c-primary-deep);
    margin-top: -0.4rem;
}

/* --------------------------------------------------------------------------
   CHAPTER 7: THE CINEMA FINALE (VIDEO & CELEBRATION)
   -------------------------------------------------------------------------- */
.cinema-stage-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 4.5rem;
}

.cinema-frame-bezel {
    width: 100%;
    max-width: 440px;
    background: #181014;
    border-radius: 28px;
    padding: 1.2rem;
    box-shadow: 
        0 30px 70px rgba(40, 10, 20, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 40px rgba(255, 94, 135, 0.2);
    border: 3px solid rgba(255, 200, 215, 0.2);
}

.cinema-header-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0.6rem 0.8rem;
    font-family: var(--font-sans);
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

.rec-dot {
    color: #ff3344;
    animation: blinkRec 1.2s infinite;
}

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

.video-display-box {
    width: 100%;
    aspect-ratio: 9/16;
    background: #000000;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cinema-video-tag {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    display: block;
    background: #000;
}

.video-mock-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(43, 18, 30, 0.88) 0%, rgba(21, 9, 16, 0.95) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    z-index: 5;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    cursor: pointer;
}

.video-mock-poster.playing {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-pulse-ring {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(255, 94, 135, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: transform 0.4s var(--ease-spring);
    animation: pulseRing 2s infinite;
}

.play-pulse-ring:hover {
    transform: scale(1.15);
}

@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(255, 94, 135, 0.6); }
    70% { box-shadow: 0 0 0 20px rgba(255, 94, 135, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 94, 135, 0); }
}

.play-triangle {
    font-size: 1.6rem;
    color: white;
    margin-left: 4px;
}

.video-prompt-text h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: white;
    margin-bottom: 0.4rem;
}

.video-prompt-text p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.75);
}

/* --------------------------------------------------------------------------
   INTERACTIVE 21ST BIRTHDAY CAKE & CANDLES CEREMONY (OPTION 1)
   -------------------------------------------------------------------------- */
.chapter-cake {
    position: relative;
    padding-bottom: 5rem;
}

.cake-ceremony-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    max-width: 680px;
    margin: 0 auto;
}

.candle-counter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 182, 193, 0.7);
    padding: 0.5rem 1.4rem;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(224, 36, 94, 0.08);
    font-size: 0.85rem;
    margin-bottom: 2.2rem;
    backdrop-filter: blur(10px);
}

.candle-counter-pill strong {
    color: var(--c-primary-deep);
}

.birthday-cake-structure {
    position: relative;
    width: 380px;
    height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 2.8rem;
}

/* Base Plate */
.cake-plate {
    position: relative;
    width: 370px;
    height: 24px;
    background: linear-gradient(180deg, #f7eff3 0%, #e8d9e2 100%);
    border-radius: 50%;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14), inset 0 2px 4px rgba(255, 255, 255, 0.9);
    z-index: 1;
    margin-top: -8px;
}

.cake-plate-shadow {
    position: absolute;
    bottom: -10px;
    width: 400px;
    height: 32px;
    background: radial-gradient(ellipse at center, rgba(130, 40, 70, 0.22) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(8px);
    z-index: 0;
}

/* Bottom Tier (Large Base) */
.cake-tier-bottom {
    position: relative;
    width: 310px;
    height: 95px;
    background: linear-gradient(180deg, #ffeef2 0%, #fcdbe4 100%);
    border-radius: 18px 18px 10px 10px;
    box-shadow: 0 10px 25px rgba(130, 40, 70, 0.12), inset 0 -4px 8px rgba(224, 36, 94, 0.08);
    z-index: 2;
    margin-top: -12px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.cake-top-surface-bottom {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 22px;
    background: radial-gradient(ellipse at center, #ffffff 0%, #ffeaf0 85%);
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.9);
}

.frosting-strawberries {
    position: absolute;
    top: -16px;
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding: 0 16px;
    font-size: 1.25rem;
    pointer-events: none;
    z-index: 4;
}

/* Top Tier (Smaller Top Layer) */
.cake-tier-top {
    position: relative;
    width: 230px;
    height: 85px;
    background: linear-gradient(180deg, #ffffff 0%, #ffebf1 100%);
    border-radius: 16px 16px 8px 8px;
    box-shadow: 0 8px 20px rgba(130, 40, 70, 0.1);
    z-index: 5;
}

.cake-top-surface {
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 24px;
    background: radial-gradient(ellipse at center, #ffffff 0%, #ffeaf0 85%);
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.95);
    z-index: 1;
}

.cake-ribbon-gold {
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 7px;
    background: linear-gradient(90deg, #d4af37, #ffd700, #d4af37);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

/* 21 Interactive Candles Array */
.candles-array {
    position: absolute;
    bottom: calc(100% - 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    z-index: 15;
    pointer-events: auto;
}

.candles-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.candles-row-back {
    gap: 8px;
    transform: scale(0.94);
}

.candles-row-front {
    gap: 10px;
    margin-top: -6px;
    transform: scale(1);
}

.candle {
    position: relative;
    width: 12px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    cursor: pointer;
    transition: transform 0.2s ease;
    user-select: none;
}

.candle:hover {
    transform: scale(1.25) translateY(-3px);
}

.candle-stick {
    width: 8px;
    height: 25px;
    border-radius: 3px;
    background: linear-gradient(180deg, #ff8da1 0%, #ff5e87 100%);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}

.candle-stick.gold-candle {
    background: linear-gradient(180deg, #ffe082 0%, #ffb300 100%);
}

.candle-stick.lavender-candle {
    background: linear-gradient(180deg, #e1bee7 0%, #ba68c8 100%);
}

.candle-stick.cyan-candle {
    background: linear-gradient(180deg, #80deea 0%, #00acc1 100%);
}

.wick {
    width: 2px;
    height: 5px;
    background: #444;
    border-radius: 1px;
}

.flame {
    position: relative;
    width: 11px;
    height: 16px;
    background: radial-gradient(ellipse at bottom, #ffea78 0%, #ff9800 60%, #ff5722 100%);
    border-radius: 50% 50% 35% 35% / 70% 70% 30% 30%;
    animation: flameFlicker 1.4s ease-in-out infinite alternate;
    transform-origin: bottom center;
    transition: transform 0.35s var(--ease-spring), opacity 0.35s ease;
    margin-bottom: 1px;
}

.flame-core {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
}

.flame-glow {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.75) 0%, rgba(255, 140, 0, 0.25) 50%, transparent 75%);
    border-radius: 50%;
    filter: blur(4px);
    pointer-events: none;
    transition: opacity 0.35s ease;
}

@keyframes flameFlicker {
    0%, 100% { transform: scale(1) rotate(-2deg); }
    25% { transform: scale(1.08, 0.94) rotate(3deg); }
    50% { transform: scale(0.95, 1.06) rotate(-3deg); }
    75% { transform: scale(1.05, 1.02) rotate(2deg); }
}

/* Blown Out State */
.candle.blown-out .flame {
    transform: scale(0);
    opacity: 0;
}

.candle.blown-out .flame-glow {
    opacity: 0;
}

.smoke-wisp {
    position: absolute;
    top: 2px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: rgba(160, 160, 160, 0.6);
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
    animation: smokeRise 1.2s ease-out forwards;
}

@keyframes smokeRise {
    0% { transform: translate(-50%, 0) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -24px) scale(3.5); opacity: 0; }
}

/* Action Controls */
.cake-actions-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cake-action-btn {
    border: 1px solid rgba(255, 180, 200, 0.5);
    background: rgba(255, 255, 255, 0.85);
    color: var(--c-text-dark);
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s var(--ease-spring);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.cake-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--c-rose-shadow);
}

.cake-action-btn.highlight-btn {
    background: linear-gradient(135deg, var(--c-primary), #ff758c);
    color: white;
    border: none;
    box-shadow: 0 6px 18px var(--c-rose-shadow);
}

.cake-action-btn.highlight-btn:hover {
    transform: translateY(-2px) scale(1.03);
}

/* Wish Granted Banner */
.wish-granted-banner {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 240, 245, 0.95));
    border: 2px solid var(--c-gold);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(229, 185, 114, 0.25);
    backdrop-filter: blur(14px);
    display: none;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.wish-granted-banner.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: bannerPopIn 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bannerPopIn {
    0% { transform: translateY(30px) scale(0.9); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.wish-banner-sparkle {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.wish-granted-banner h3 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    color: var(--c-primary-deep);
    margin-bottom: 0.8rem;
}

.wish-granted-banner p {
    font-family: var(--font-handwriting);
    font-size: 1.85rem;
    line-height: 1.4;
    color: #442a38;
    margin-bottom: 1.2rem;
}

.wish-banner-heart {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--c-primary);
}

/* --------------------------------------------------------------------------
   THEATER MODE & AMBILIGHT GLOW (OPTION 1)
   -------------------------------------------------------------------------- */
.cinema-theater-dimmer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 50%, rgba(18, 8, 14, 0.94) 0%, rgba(5, 2, 4, 0.98) 100%);
    backdrop-filter: blur(16px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    justify-content: flex-end;
    padding: 24px;
}

.cinema-theater-dimmer.active {
    opacity: 1;
    pointer-events: auto;
}

.exit-theater-btn {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.exit-theater-btn:hover {
    background: var(--c-primary);
    transform: scale(1.05);
}

.cinema-stage-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 4.5rem;
    transition: z-index 0.3s ease;
}

body.theater-mode-active .cinema-stage-wrapper {
    z-index: 1000;
}

.cinema-ambilight-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 110%;
    background: radial-gradient(ellipse at center, rgba(255, 94, 135, 0.5) 0%, rgba(229, 185, 114, 0.3) 45%, transparent 75%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

body.theater-mode-active .cinema-ambilight-glow {
    opacity: 1;
    animation: ambilightPulse 6s ease-in-out infinite alternate;
}

@keyframes ambilightPulse {
    0% { transform: translate(-50%, -50%) scale(1); filter: blur(50px); }
    50% { transform: translate(-50%, -50%) scale(1.08); filter: blur(65px); }
    100% { transform: translate(-50%, -50%) scale(0.96); filter: blur(55px); }
}

.cinema-frame-bezel {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 440px;
    background: #181014;
    border-radius: 28px;
    padding: 1.2rem;
    box-shadow: 
        0 30px 70px rgba(40, 10, 20, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 0 40px rgba(255, 94, 135, 0.2);
    border: 3px solid rgba(255, 200, 215, 0.2);
    transition: box-shadow 0.6s ease, border-color 0.6s ease;
}

body.theater-mode-active .cinema-frame-bezel {
    border-color: rgba(255, 182, 193, 0.5);
    box-shadow: 
        0 40px 100px rgba(0, 0, 0, 0.9),
        0 0 60px rgba(255, 94, 135, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.25);
}

.header-left-chips, .header-right-chips {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cinema-mini-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.cinema-mini-pill:hover, .cinema-mini-pill.active {
    background: rgba(255, 94, 135, 0.35);
    border-color: var(--c-primary);
    color: #fff;
}

/* --------------------------------------------------------------------------
   GRAND SURPRISE FINALE CARD (OPTION 5)
   -------------------------------------------------------------------------- */
.cinema-finale-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(28, 10, 18, 0.96) 0%, rgba(12, 4, 8, 0.98) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.8rem;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.92);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}

.cinema-finale-card.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.finale-card-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.finale-badge {
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--c-gold);
    margin-bottom: 0.5rem;
}

.finale-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #fff 0%, #ffc0cb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.finale-photo-frame {
    position: relative;
    width: 170px;
    height: 220px;
    background: white;
    padding: 8px 8px 24px 8px;
    border-radius: 4px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6);
    transform: rotate(-2deg);
    margin-bottom: 1.2rem;
    animation: gentleWiggle 4s ease-in-out infinite alternate;
}

@keyframes gentleWiggle {
    0% { transform: rotate(-2deg) scale(1); }
    100% { transform: rotate(2deg) scale(1.02); }
}

.finale-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 2px;
    display: block;
}

.finale-photo-tag {
    position: absolute;
    bottom: 6px;
    left: 0;
    right: 0;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #555;
    text-align: center;
}

.finale-romantic-quote {
    font-family: var(--font-handwriting);
    font-size: 1.7rem;
    line-height: 1.35;
    color: #ffdae3;
    margin-bottom: 0.6rem;
}

.finale-signoff {
    font-family: var(--font-handwriting);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--c-gold);
    display: block;
    margin-bottom: 1.4rem;
}

.finale-btn-group {
    display: flex;
    gap: 0.6rem;
    width: 100%;
}

.cinema-footer-strip {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
}

.cinema-action-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.cinema-action-btn.highlight-btn {
    background: linear-gradient(135deg, var(--c-primary), #ff758c);
    border: none;
    box-shadow: 0 4px 14px var(--c-rose-shadow);
}

.cinema-action-btn:hover {
    background: var(--c-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--c-rose-shadow);
}

.grand-outro {
    text-align: center;
    padding: 4rem 1rem 3rem;
}

.outro-wish {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 5px;
    font-weight: 800;
    color: var(--c-primary-deep);
    margin-bottom: 1rem;
}

.outro-heart-row {
    font-size: 2.2rem;
    letter-spacing: 12px;
    margin-bottom: 1.2rem;
}

.outro-credit {
    font-size: 0.85rem;
    color: var(--c-text-muted);
}

/* --------------------------------------------------------------------------
   FULLSCREEN PHOTO LIGHTBOX MODAL
   -------------------------------------------------------------------------- */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 8, 14, 0.88);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

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

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

.lightbox-polaroid-frame {
    background: white;
    padding: 16px 16px 36px 16px;
    border-radius: 6px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
    text-align: center;
    max-width: 540px;
    animation: lightboxPop 0.4s var(--ease-spring);
}

@keyframes lightboxPop {
    from { transform: scale(0.85) translateY(30px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.lightbox-polaroid-frame img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 2px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.lightbox-caption-box {
    margin-top: 16px;
}

.lightbox-caption-box h3 {
    font-family: var(--font-handwriting);
    font-size: 2.2rem;
    color: var(--c-text-dark);
}

.lightbox-date {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--c-text-muted);
}

.lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   REVEAL SCROLL ANIMATIONS (INTERSECTION OBSERVER)
   -------------------------------------------------------------------------- */
.reveal-item {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
    will-change: opacity, transform;
}

.reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.delay-4 { transition-delay: 0.6s; }

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (MOBILE & LAPTOP)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .spotlight-love-card { grid-template-columns: 1fr; gap: 2rem; padding: 2rem; }
    .spotlight-img-box { height: 380px; }
    .three-stage-wrapper { height: 460px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .glass-pill-nav { width: 92vw; justify-content: space-between; }
    
    .hero-main-title .title-main { font-size: 2.6rem; }
    .three-stage-wrapper { height: 420px; }
    
    .polaroid-3d-wrapper { width: 290px; height: 400px; }
    .photo-viewport { height: 260px; }
    
    .card-img-holder { height: 290px; }
    
    .parchment-sheet { padding: 3rem 1.6rem; }
    .letter-salutation { font-size: 2.4rem; }
    .handwritten-p { font-size: 1.65rem; line-height: 1.4; }
    
    .envelope-box { max-width: 90vw; height: 220px; }
    .envelope-flap {
        border-left: 45vw solid transparent;
        border-right: 45vw solid transparent;
        border-top: 110px solid #ecd3dc;
    }
}
