/* ==========================================================
   BIRTHDAY SURPRISE — CORE STYLES
   ========================================================== */

:root {
  /* Palette */
  --rich-black: #08050a;
  --midnight-purple: #1a0f2e;
  --deep-burgundy: #2b0b18;
  --dark-red: #3d0f1f;
  --rose-gold: #b76e79;
  --soft-pink: #e8b4bc;
  --warm-gold: #d4af7a;
  --cream: #fff3d6;

  --ink: #f3e9e4;
  --ink-dim: rgba(243, 233, 228, 0.68);

  /* Type */
  --font-script: 'Great Vibes', cursive;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;

  /* Layout */
  --radius-lg: 28px;
  --radius-md: 16px;
  --glass-bg: rgba(43, 11, 24, 0.35);
  --glass-border: rgba(212, 175, 122, 0.28);

  --ease-out: cubic-bezier(.19,1,.22,1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: radial-gradient(ellipse at 50% 0%, var(--midnight-purple) 0%, var(--rich-black) 55%, #030203 100%);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

::selection { background: var(--rose-gold); color: #fff; }

:focus-visible {
  outline: 2px solid var(--warm-gold);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Ambient background layers ---------- */
#star-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

#film-grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; background: var(--rich-black);
}
.preloader-heart {
  width: 46px; height: 46px; position: relative;
  background: var(--rose-gold);
  transform: rotate(-45deg) !important;
  animation: heartbeat 1.1s ease-in-out infinite;
  box-shadow: 0 0 40px rgba(183,110,121,0.7);
}
.preloader-heart::before, .preloader-heart::after {
  content: ""; position: absolute; width: 46px; height: 46px; background: var(--rose-gold); border-radius: 50%;
}
.preloader-heart::before { top: -23px; left: 0; }
.preloader-heart::after { left: 23px; top: 0; }
.preloader-text { font-family: var(--font-display); font-style: italic; color: var(--ink-dim); letter-spacing: .04em; }
.preloader-pct { font-size: 0.8rem; letter-spacing: .2em; color: var(--warm-gold); }

/* ---------- Welcome overlay ---------- */
#welcome {
  position: fixed; inset: 0; z-index: 150;
  display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 22px; padding: 24px;
  background: radial-gradient(ellipse at 50% 40%, rgba(61,15,31,0.55), var(--rich-black) 70%);
  opacity: 0;
}
#welcome.visible { display: flex; animation: fadeIn 1s var(--ease-out) forwards; }

.welcome-heart {
  width: 54px; height: 54px; position: relative;
  background: var(--rose-gold);
  transform: rotate(-45deg) !important;
  animation: heartbeat 1.6s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(183,110,121,0.55);
}
.welcome-heart::before, .welcome-heart::after {
  content: ""; position: absolute; width: 54px; height: 54px; background: var(--rose-gold); border-radius: 50%;
}
.welcome-heart::before { top: -27px; left: 0; }
.welcome-heart::after { left: 27px; top: 0; }

.welcome-eyebrow {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.2rem, 3vw, 1.7rem); letter-spacing: .03em; color: var(--ink);
  max-width: 20ch;
}
.welcome-note { font-size: 0.8rem; color: var(--ink-dim); letter-spacing: .05em; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  padding: 16px 38px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: .03em;
  color: var(--ink);
  background: var(--glass-bg);
  backdrop-filter: blur(14px);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-120%) skewX(-15deg);
  transition: transform .7s var(--ease-out);
}
.btn:hover::before { transform: translateX(120%) skewX(-15deg); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(183,110,121,0.35); }
.btn:active { transform: translateY(-1px) scale(0.98); }

.btn-primary { background: linear-gradient(135deg, rgba(183,110,121,0.35), rgba(212,175,122,0.25)); border-color: var(--warm-gold); }
.btn-secondary { background: linear-gradient(135deg, rgba(61,15,31,0.55), rgba(43,11,24,0.55)); border-color: var(--warm-gold); }

.btn-text {
  background: none; border: none; color: var(--warm-gold);
  font-family: var(--font-body); font-size: 0.85rem; letter-spacing: .05em;
  padding: 8px 4px; margin-top: 10px; text-decoration: underline; text-underline-offset: 4px;
}

.dev-skip {
  margin-top: 18px; background: rgba(255,255,255,0.05); border: 1px dashed rgba(255,255,255,0.25);
  color: var(--ink-dim); font-size: 0.75rem; padding: 8px 16px; border-radius: 8px;
}

/* ---------- Music toggle & Controls ---------- */
.music-controls {
  position: fixed; top: 18px; right: 18px; z-index: 140;
  display: flex; align-items: center; gap: 6px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px); border-radius: 100px; padding: 6px 10px;
}
.mc-btn {
  background: transparent; border: none; color: var(--cream);
  font-size: 1.1rem; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; gap: 2px;
  transition: background 0.2s; font-family: var(--font-body);
}
.mc-btn:hover { background: rgba(255,255,255,0.1); }
#music-toggle .eq-bar { width: 3px; background: var(--warm-gold); border-radius: 2px; animation: eq 0.9s ease-in-out infinite; }
#music-toggle .eq-bar:nth-child(1) { height: 10px; animation-delay: 0s; }
#music-toggle .eq-bar:nth-child(2) { height: 18px; animation-delay: .15s; }
#music-toggle .eq-bar:nth-child(3) { height: 12px; animation-delay: .3s; }
#music-toggle .eq-bar:nth-child(4) { height: 16px; animation-delay: .45s; }
#music-toggle.muted .eq-bar { animation-play-state: paused; height: 4px !important; opacity: .4; }

/* ---------- Scene machine ---------- */
.scene {
  position: relative; z-index: 1;
  min-height: 100svh; width: 100%;
  display: none; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 90px 20px 60px;
}
.scene.active { display: flex; }
.scene.scene-scroll { display: none; min-height: 100svh; height: auto; padding-bottom: 100px; }
.scene.scene-scroll.active { display: flex; }

.eyebrow {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1rem, 2.4vw, 1.35rem); color: var(--ink-dim); margin-bottom: 34px; letter-spacing: .03em;
}

.subline { font-size: 0.95rem; color: var(--ink-dim); margin-top: 22px; letter-spacing: .02em; }

/* ---------- Scene 1: Countdown ---------- */
.countdown-grid { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.cd-card {
  width: 108px; padding: 22px 0;
  background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  backdrop-filter: blur(12px); box-shadow: 0 0 40px rgba(183,110,121,0.12), inset 0 0 30px rgba(212,175,122,0.06);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.cd-number {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 2.6rem);
  color: var(--cream); text-shadow: 0 0 22px rgba(212,175,122,0.55);
}
.cd-number.flip { animation: numberPop .5s var(--ease-out); }
.cd-label { font-size: 0.7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-dim); }

/* ---------- Scene 2: Fireworks + reveal ---------- */
#scene-fireworks { padding: 0; overflow: hidden; }
#fireworks-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.headline {
  position: relative; z-index: 2; opacity: 0;
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 5.2rem);
  color: var(--cream);
  text-shadow: 0 0 30px rgba(212,175,122,0.65), 0 0 70px rgba(183,110,121,0.4);
  padding: 0 16px;
}
.letter-reveal {
  display: inline-block; opacity: 0; filter: blur(6px); transform: translateY(14px);
  animation: letterIn .6s var(--ease-out) forwards;
}
#scene-fireworks .btn { position: relative; z-index: 2; margin-top: 30px; }

/* ---------- Scene 3: Cake + balloons ---------- */
#scene-cake { overflow: hidden; }
.cake-stage { position: relative; z-index: 2; }
.cake-mount { width: min(340px, 70vw); height: min(340px, 70vw); position: relative; }

.css-cake { position: relative; width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.cake-glow {
  position: absolute; bottom: 6%; width: 80%; height: 40px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(212,175,122,0.55), transparent 70%);
  filter: blur(6px); animation: pulseGlow 2.4s ease-in-out infinite;
}
.cake-plate { position: absolute; bottom: 8%; width: 74%; height: 14px; border-radius: 50%; background: linear-gradient(180deg, var(--warm-gold), #7a5a2e); box-shadow: 0 8px 20px rgba(0,0,0,0.5); }
.cake-tier { position: absolute; left: 50%; transform: translateX(-50%); border-radius: 14px 14px 6px 6px; }
.tier-bottom { bottom: 14%; width: 62%; height: 78px; background: linear-gradient(180deg, var(--dark-red), var(--deep-burgundy)); }
.tier-top { bottom: 30%; width: 42%; height: 60px; background: linear-gradient(180deg, #8a2b45, var(--dark-red)); }
.icing { position: absolute; top: -8px; left: 0; width: 100%; height: 16px; background: var(--cream); border-radius: 40% 40% 0 0/100% 100% 0 0; opacity: .92; }
.candle-row { position: absolute; bottom: 62%; display: flex; gap: 14px; z-index: 3; }
.candle { width: 6px; height: 34px; background: linear-gradient(180deg, var(--soft-pink), var(--rose-gold)); border-radius: 3px; position: relative; }
.wick { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 2px; height: 8px; background: #3a2a1a; }
.flame { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: 12px; height: 20px; }
.flame-core {
  width: 100%; height: 100%; border-radius: 50% 50% 50% 50%/60% 60% 40% 40%;
  background: radial-gradient(ellipse at 50% 70%, #fff3d6, #ffb64c 55%, #ff6b3d 90%);
  box-shadow: 0 0 16px 4px rgba(255,180,80,0.8);
  animation: flicker 0.5s ease-in-out infinite alternate;
  transform-origin: bottom center;
}
.sparkle { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 8px 2px var(--warm-gold); animation: sparkleFloat 3s ease-in-out infinite; }
.s1 { top: 15%; left: 12%; animation-delay: 0s; }
.s2 { top: 30%; right: 10%; animation-delay: 1s; }
.s3 { top: 55%; left: 4%; animation-delay: 2s; }

#balloon-layer { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.balloon {
  position: absolute; bottom: -160px; left: var(--left);
  width: var(--size); height: calc(var(--size) * 1.2);
  animation: floatUp var(--duration) linear forwards;
  z-index: 3;
}
.balloon.behind { z-index: 1; filter: brightness(0.7) blur(0.4px); }
.balloon-body {
  width: 100%; height: 100%; border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.5), var(--color) 45%, color-mix(in srgb, var(--color) 70%, black) 100%);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  position: relative;
}
.balloon-shine { position: absolute; top: 18%; left: 24%; width: 22%; height: 30%; background: rgba(255,255,255,0.45); border-radius: 50%; filter: blur(2px); }
.balloon-knot { width: 8px; height: 8px; background: var(--color); margin: -2px auto 0; clip-path: polygon(50% 100%, 0 0, 100% 0); }
.balloon-string { width: 1px; height: 70px; background: rgba(255,255,255,0.35); margin: 0 auto; }
.balloon-photo {
  width: 54px; height: 54px; border-radius: 50%; overflow: hidden; margin: -4px auto 0;
  border: 3px solid var(--cream); box-shadow: 0 6px 16px rgba(0,0,0,0.45);
  transform: rotate(var(--rot, -4deg));
}
.balloon-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Scene 4: Envelope ---------- */
.envelope-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; perspective: 1600px; margin-top: 250px; }
.envelope {
  position: relative; width: min(360px, 80vw); height: min(240px, 54vw);
  transform-style: preserve-3d; cursor: pointer;
}
.envelope-back {
  position: absolute; inset: 0; border-radius: 10px;
  background: linear-gradient(160deg, var(--dark-red), var(--deep-burgundy));
  box-shadow: 0 30px 60px rgba(0,0,0,0.55), inset 0 0 40px rgba(212,175,122,0.08);
  border: 1px solid rgba(212,175,122,0.35);
}
.envelope-front-pocket {
  position: absolute; left: 0; right: 0; bottom: 0; height: 55%;
  background: linear-gradient(160deg, #4a1526, var(--deep-burgundy));
  clip-path: polygon(0 0, 50% 38%, 100% 0, 100% 100%, 0 100%);
  border-radius: 0 0 10px 10px;
  z-index: 3;
}
.envelope-letter-paper {
  position: absolute; left: 6%; right: 6%; top: 8%; height: 84%;
  background-color: #fdf6ec;
  background-image: 
    linear-gradient(rgba(200, 160, 120, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 160, 120, 0.1) 1px, transparent 1px),
    radial-gradient(#fbf0df 20%, transparent 20%),
    radial-gradient(#fbf0df 20%, transparent 20%);
  background-size: 20px 20px, 20px 20px, 6px 6px, 6px 6px;
  background-position: 0 0, 0 0, 0 0, 3px 3px;
  border-radius: 6px; 
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), inset 0 0 40px rgba(138,43,69,0.04);
  color: #2b0b18; padding: 30px 24px; overflow-y: auto;
  font-family: var(--font-script); font-size: 1.45rem; line-height: 1.6; text-align: left;
  z-index: 1; white-space: pre-wrap;
  border: 1px solid rgba(212,175,122,0.3);
  scrollbar-width: thin; scrollbar-color: var(--warm-gold) transparent;
}
.envelope-letter-paper::-webkit-scrollbar { width: 6px; }
.envelope-letter-paper::-webkit-scrollbar-thumb { background-color: rgba(212,175,122,0.5); border-radius: 4px; }
.envelope-letter-paper::before {
  content: ""; position: absolute; top: 0; left: 50%; bottom: 0; width: 2px;
  background: linear-gradient(to right, rgba(0,0,0,0.02), rgba(255,255,255,0.4), rgba(0,0,0,0.02));
  transform: translateX(-50%); pointer-events: none;
}
.envelope-letter-paper::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(45deg, var(--dark-red), var(--dark-red) 10px, var(--cream) 10px, var(--cream) 20px);
  border-radius: 6px 6px 0 0;
}
.type-cursor { display: inline-block; animation: blink 0.9s steps(1) infinite; color: var(--dark-red); }
.type-cursor.hidden { display: none; }
.envelope-flap {
  position: absolute; left: 0; right: 0; top: 0; height: 55%;
  background: linear-gradient(200deg, #5c1a2b, var(--dark-red));
  clip-path: polygon(0 0, 100% 0, 50% 62%);
  transform-origin: top center; transform: rotateX(0deg);
  border-radius: 10px 10px 0 0;
  z-index: 4; backface-visibility: hidden;
  box-shadow: inset 0 -10px 20px rgba(0,0,0,0.25);
}
.envelope-flap-shadow {
  position: absolute; inset: 0; border-radius: 10px; z-index: 2;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.5); pointer-events: none;
}
.stamp {
  position: absolute; top: 10px; right: 14px; width: 40px; height: 46px; z-index: 5;
  background: var(--cream); border: 2px dashed var(--warm-gold); border-radius: 4px;
  display: flex; align-items: center; justify-content: center; color: var(--dark-red); font-size: 1.1rem;
  opacity: 0;
}
.envelope-seal {
  position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%; z-index: 6;
  background: radial-gradient(circle at 35% 30%, #8a2b45, var(--dark-red) 70%);
  border: none; color: var(--cream); font-size: 1.3rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5), inset 0 0 12px rgba(0,0,0,0.4);
}
.envelope-hint { font-size: 0.78rem; color: var(--ink-dim); letter-spacing: .05em; }

#skip-typing-btn, #flashback-btn {
  margin-top: 35px;
}

/* ---------- Scene 5: Gallery ---------- */
.gallery-title { margin-bottom: 6px; }
.gallery-grid { width: 100%; margin-top: 40px; display: flex; flex-direction: column; gap: 46px; z-index: 1; }
/* ---------- Heart Gallery ---------- */
:root {
  --hg-size: clamp(40px, 10vw, 110px);
  --hg-gap: 8px;
  --hg-step: calc(var(--hg-size) + var(--hg-gap));
}

.heart-gallery {
  display: flex; gap: var(--hg-gap); justify-content: center; align-items: flex-start;
  margin: 40px auto 0; align-self: center;
}

.hg-col {
  width: var(--hg-size);
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 8px;
}

/* Heart shaping using heights and margin-top */
.hg-col-1 { height: calc(var(--hg-step) * 2 - var(--hg-gap)); margin-top: var(--hg-step); }
.hg-col-2 { height: calc(var(--hg-step) * 4 - var(--hg-gap)); margin-top: 0; }
.hg-col-3 { height: calc(var(--hg-step) * 5 - var(--hg-gap)); margin-top: 0; }
.hg-col-4 { height: calc(var(--hg-step) * 5 - var(--hg-gap)); margin-top: var(--hg-step); }
.hg-col-5 { height: calc(var(--hg-step) * 5 - var(--hg-gap)); margin-top: 0; }
.hg-col-6 { height: calc(var(--hg-step) * 4 - var(--hg-gap)); margin-top: 0; }
.hg-col-7 { height: calc(var(--hg-step) * 2 - var(--hg-gap)); margin-top: var(--hg-step); }

.hg-track {
  display: flex; flex-direction: column; gap: var(--hg-gap); width: 100%;
}

.track-down { animation: scrollDown var(--duration, 20s) linear infinite; }
.track-up { animation: scrollUp var(--duration, 20s) linear infinite; }

/* Pause on hover */
.hg-col:hover .hg-track { animation-play-state: paused; }

.hg-card {
  margin: 0; /* Reset figure default margin! */
  width: var(--hg-size); height: var(--hg-size); flex-shrink: 0;
  border-radius: 8px; overflow: hidden; position: relative; cursor: pointer;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  animation: boxGlow 3s ease-in-out infinite alternate;
}

@keyframes boxGlow {
  0% { box-shadow: 0 0 8px rgba(183,110,121,0.2); }
  100% { box-shadow: 0 0 18px rgba(212,175,122,0.6); }
}
.hg-card img { 
  width: 100%; height: 100%; object-fit: cover; 
  transition: transform 0.4s var(--ease-out), filter 0.4s var(--ease-out);
}
.hg-card:hover img { 
  transform: scale(1.15); filter: brightness(1.1); 
}
.hg-card:hover::after {
  content: ""; position: absolute; inset: 0;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5); pointer-events: none;
}

.hg-card.skeleton { background: linear-gradient(100deg, rgba(255,255,255,0.03) 20%, rgba(255,255,255,0.08) 40%, rgba(255,255,255,0.03) 60%); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
.hg-card.broken { display: flex; align-items: center; justify-content: center; font-size: 0.75rem; color: var(--ink-dim); }

@keyframes scrollDown {
  from { transform: translateY(calc(-1 * var(--hg-step) * var(--set-count))); }
  to { transform: translateY(0); }
}
@keyframes scrollUp {
  from { transform: translateY(0); }
  to { transform: translateY(calc(-1 * var(--hg-step) * var(--set-count))); }
}

.play-badge {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%; background: rgba(8,5,10,0.55);
  display: flex; align-items: center; justify-content: center; color: var(--cream); font-size: 0.9rem;
  border: 1px solid var(--glass-border);
}
.gallery-end-btn { margin-top: 50px; }

/* ---------- Bunting Banner ---------- */
.bunting-container {
  position: absolute;
  top: 0; left: 0; right: 0;
  width: 100%;
  height: clamp(60px, 15vw, 250px);
  z-index: -1;
  pointer-events: none;
}
.bunting-svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}
.flag-c1 { fill: var(--rose-gold); }
.flag-c2 { fill: var(--warm-gold); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 250; display: none;
  align-items: center; justify-content: center; flex-direction: column;
  background: rgba(4,2,6,0.94); backdrop-filter: blur(6px);
}
.lightbox.open { display: flex; }
.lightbox-stage { max-width: 88vw; max-height: 76vh; display: flex; align-items: center; justify-content: center; }
.lightbox-media { max-width: 88vw; max-height: 76vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.lightbox-caption { margin-top: 16px; color: var(--ink-dim); font-size: 0.85rem; }
.lightbox-btn {
  background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--ink);
  border-radius: 50%; width: 46px; height: 46px; font-size: 1.2rem;
}
.lightbox-close { position: absolute; top: 20px; right: 20px; }
.lightbox-prev { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
.media-fallback { color: var(--ink-dim); font-size: 0.85rem; max-width: 60ch; padding: 20px; }

/* ---------- Final scene ---------- */
.handwritten-headline {
  font-family: var(--font-script); font-size: clamp(3.2rem, 10vw, 6.5rem); color: var(--cream);
  margin-bottom: -20px;
  text-shadow: 0 0 40px rgba(212,175,122,0.6);
}

/* ---------- Mini heart burst (button click) ---------- */
.mini-heart {
  position: fixed; z-index: 300; color: var(--rose-gold); font-size: 1rem; pointer-events: none;
  animation: heartBurst 1s var(--ease-out) forwards;
}

/* ---------- Film transition flash ---------- */
.film-flash { position: fixed; inset: 0; z-index: 260; background: #fff; opacity: 0; pointer-events: none; }

/* ---------- Message Modal ---------- */
.message-modal-content {
  position: relative;
  width: 90%;
  max-width: 400px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.message-textarea {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 16px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  resize: none;
  outline: none;
  transition: border-color 0.3s;
}

.message-textarea:focus {
  border-color: var(--warm-gold);
}