/* =========================================================
   VISHII BIRTHDAY — DESIGN SYSTEM
   ========================================================= */
:root {
  /* Colors */
  --wine: #3D0B14;
  --wine-deep: #260710;
  --burgundy: #6B1E2E;
  --plum: #2B1220;
  --rose: #C97B87;
  --blush: #F3D6DC;
  --peach: #FBE2CF;
  --cream: #FBF5EC;
  --white: #FFFDF9;
  --gold: #C6A15B;
  --ink: #2A1620;
  --ink-soft: #6E5560;

  /* Typography */
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-accent: "Segoe Script", "Bradley Hand", "Brush Script MT", cursive;

  --step-0: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --step-3: clamp(2.25rem, 1.8rem + 2vw, 3.5rem);
  --step-4: clamp(2.75rem, 2rem + 3.2vw, 4.75rem);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;

  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --ease-soft: cubic-bezier(.22,.9,.32,1);
  --ease-snap: cubic-bezier(.5,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }

button, input {
  font: inherit;
  appearance: none;
  -webkit-appearance: none; /* stops Safari from applying its own default button/input chrome over our custom styles */
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: env(safe-area-inset-top, 0px);
  -webkit-text-size-adjust: 100%; /* stops iOS Safari from auto-inflating text size on rotation */
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent; /* removes the gray flash Safari/Android show on tap */
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

img { max-width: 100%; display: block; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}
.container--narrow { width: min(720px, 92%); }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--wine);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: 999;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

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

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0,0,0,0.06);
  z-index: 500;
}
.scroll-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--rose));
}

/* Custom cursor (desktop only) */
.cursor-dot, .cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: none;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--gold);
}
.cursor-ring {
  width: 32px; height: 32px;
  border: 1px solid var(--rose);
  transition: width .25s var(--ease-soft), height .25s var(--ease-soft), opacity .25s;
}
body.has-fine-pointer .cursor-dot,
body.has-fine-pointer .cursor-ring { display: block; }
body.has-fine-pointer, body.has-fine-pointer a, body.has-fine-pointer button { cursor: none; }
.cursor-ring.is-active { width: 52px; height: 52px; border-color: var(--gold); }

/* =========================================================
   SHARED CONTENT UTILITIES — prose, bullet lists, two-column
   layout. Reused across the announcement, CEO, princess,
   freeze-moment, notice, and extra-love sections so new
   content matches the existing design language exactly.
   ========================================================= */
.prose {
  font-size: var(--step-0);
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
  max-width: 46ch;
}
.prose--emphasis {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--burgundy);
  font-style: italic;
}
.section--dark .prose { color: rgba(255,255,255,0.82); }
.section--dark .prose--emphasis { color: var(--gold); }

.content-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-md);
}
.content-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(107,30,46,0.1);
  font-size: var(--step-0);
}
.content-list li:last-child { border-bottom: none; }
.section--dark .content-list li { border-bottom-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.88); }

.content-list--plain li {
  font-family: var(--font-display);
  font-size: var(--step-1);
  border-bottom: none;
  padding: 0.35rem 0;
}

.content-list--receipt {
  background: rgba(107,30,46,0.06);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: var(--space-md);
}
.section--dark .content-list--receipt { background: rgba(255,255,255,0.06); }
.content-list--receipt li { border-bottom: none; padding: 0.3rem 0; }

.content-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin: var(--space-md) 0;
}
.content-column h3 {
  font-family: var(--font-display);
  color: var(--burgundy);
  font-size: var(--step-1);
  margin: 0 0 0.5rem;
}

/* =========================================================
   BADGE GRID (Girlfriend Achievement Badges)
   ========================================================= */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.badge {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease-soft), transform .5s var(--ease-soft), border-color .3s var(--ease-soft);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
}
.badge.is-visible { opacity: 1; transform: translateY(0); }
.badge.is-open { border-color: var(--gold); }
.badge__header { display: flex; align-items: center; gap: 0.6rem; }
.badge__icon { font-size: 1.4rem; flex-shrink: 0; }
.badge__text { color: rgba(255,255,255,0.9); font-size: 0.92rem; font-weight: 600; }
.badge__reveal {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.5;
  transition: max-height .4s var(--ease-soft), opacity .4s var(--ease-soft), margin-top .4s var(--ease-soft);
}
.badge.is-open .badge__reveal { max-height: 200px; opacity: 1; margin-top: 0.3rem; }
.badge--final {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(198,161,91,0.2), rgba(201,123,135,0.15));
  border-color: var(--gold);
  align-items: center;
  text-align: center;
}
.badge--final .badge__reveal { color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.badge--final .badge__text { color: var(--gold); font-family: var(--font-display); font-size: 1.05rem; }

/* =========================================================
   MUSEUM ROOMS (The VISHII Museum)
   ========================================================= */
.museum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.museum-room {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(198,161,91,0.3);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity .6s var(--ease-soft), transform .6s var(--ease-soft);
}
.museum-room.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.museum-room__number {
  display: inline-block;
  font-family: var(--font-accent);
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.museum-room h3 { font-family: var(--font-display); color: var(--blush); margin: 0 0 0.4rem; font-size: var(--step-1); }
.museum-room p { color: rgba(255,255,255,0.75); margin: 0; font-size: 0.92rem; }
.museum-room--final {
  border-color: var(--rose);
  background: linear-gradient(135deg, rgba(201,123,135,0.18), rgba(198,161,91,0.12));
}
.museum-room--final h3 { color: var(--gold); }

/* =========================================================
   LET'S CELEBRATE — animated avatar, cake-cutting, confetti cannon
   ========================================================= */
.section--avatar-party { text-align: center; }
.avatar-stage {
  position: relative;
  margin-top: var(--space-md);
  padding-bottom: var(--space-sm);
  overflow: hidden; /* keeps every animation in this block contained to this section */
}
.avatar-confetti-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.avatar-scene {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(0.75rem, 4vw, 2rem);
  min-height: clamp(230px, 38vw, 330px);
  perspective: 900px;
}
.avatar-figure {
  width: clamp(120px, 22vw, 180px);
  transform-style: preserve-3d;
  transform-origin: bottom center;
  animation: avatarIdle 4.5s ease-in-out infinite;
}
.avatar-figure__svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 16px rgba(0,0,0,0.35));
}
@keyframes avatarIdle {
  0%, 100% { transform: rotateY(-6deg) translateY(0); }
  50% { transform: rotateY(6deg) translateY(-6px); }
}
.avatar-figure.is-celebrating { animation: avatarCelebrate 0.9s ease-in-out 2; }
@keyframes avatarCelebrate {
  0%, 100% { transform: rotateY(0deg) translateY(0) scale(1); }
  25% { transform: rotateY(-10deg) translateY(-16px) scale(1.04); }
  50% { transform: rotateY(0deg) translateY(-4px) scale(1); }
  75% { transform: rotateY(10deg) translateY(-16px) scale(1.04); }
}
.avatar-arm--left { transform-origin: 84px 150px; }
.avatar-arm--right { transform-origin: 140px 150px; }
.avatar-figure.is-celebrating .avatar-arm--left { animation: armWaveLeft 0.9s ease-in-out 2; }
.avatar-figure.is-celebrating .avatar-arm--right { animation: armWaveRight 0.9s ease-in-out 2; }
@keyframes armWaveLeft { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-14deg); } }
@keyframes armWaveRight { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(14deg); } }

/* Gentle continuous glow at the sparkler tip she holds up */
.avatar-sparkler-tip { transform-origin: 182px 66px; }
.avatar-figure.is-celebrating .avatar-sparkler-tip {
  animation: sparklerGlow 0.5s ease-in-out infinite alternate;
}
@keyframes sparklerGlow {
  0% { filter: drop-shadow(0 0 2px rgba(246,199,122,0.6)); transform: scale(1); }
  100% { filter: drop-shadow(0 0 9px rgba(246,199,122,0.95)); transform: scale(1.18); }
}

/* Slow ambient background drift behind the whole scene — purely
   decorative depth, scoped to this section only. */
.avatar-ambient {
  position: absolute;
  inset: -20% -10%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 28% 32%, rgba(246,199,122,0.16), transparent 60%),
    radial-gradient(circle at 76% 68%, rgba(201,123,135,0.16), transparent 55%);
  filter: blur(3px);
  animation: avatarAmbientDrift 14s ease-in-out infinite alternate;
}
@keyframes avatarAmbientDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2%, -2%) scale(1.05); }
}

/* Soft warm glow pulse behind the cake at the moment of cutting */
.avatar-cake__glow { opacity: 0; transition: opacity .6s ease; }
.avatar-cake.is-cutting .avatar-cake__glow {
  animation: avatarCakeGlowPulse 1.6s ease-out forwards;
}
@keyframes avatarCakeGlowPulse {
  0% { opacity: 0; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 0.35; transform: scale(1); }
}

/* Tiny floating hearts + soft glowing sparkle particles, spawned near
   the cake at the cutting moment — independent from the confetti
   cannon, kept in their own layer/classes so nothing here can ever
   affect any other section on the page. */
.avatar-particle-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 3;
}
.avatar-heart {
  position: absolute;
  left: var(--ahx, 50%);
  top: var(--ahy, 55%);
  font-size: var(--ahs, 16px);
  opacity: 0;
  animation: avatarHeartRise var(--ahdur, 2.2s) ease-out forwards;
  animation-delay: var(--ahdelay, 0s);
}
@keyframes avatarHeartRise {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--ahdx, 0px), -110px) scale(1); }
}
.avatar-glow-particle {
  position: absolute;
  left: var(--agx, 50%);
  top: var(--agy, 50%);
  width: var(--ags, 6px);
  height: var(--ags, 6px);
  border-radius: 50%;
  background: radial-gradient(circle, #FFF3D6 0%, var(--gold) 60%, transparent 100%);
  box-shadow: 0 0 8px 2px rgba(246,199,122,0.55);
  opacity: 0;
  animation: avatarGlowFloat var(--agdur, 2s) ease-out forwards;
  animation-delay: var(--agdelay, 0s);
}
@keyframes avatarGlowFloat {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
  22% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--agdx, 0px), -90px) scale(1.2); }
}

.avatar-cake {
  width: clamp(110px, 20vw, 165px);
  transform-style: preserve-3d;
}
.avatar-cake__svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,0.3));
}
.avatar-candle-flame { opacity: 0; transform-origin: 50% 100%; transition: opacity .4s ease; }
.avatar-cake.is-lit .avatar-candle-flame { opacity: 1; animation: flameFlicker 0.5s ease-in-out infinite alternate; }
@keyframes flameFlicker {
  0% { transform: scaleY(1) rotate(-3deg); }
  100% { transform: scaleY(1.18) rotate(3deg); }
}
.avatar-cake.is-cutting .avatar-candle-flame { animation: none; opacity: 0.15; }

.avatar-knife { opacity: 0; }
.avatar-cake.is-cutting .avatar-knife { animation: knifeSwipe 1.1s ease-in-out forwards; }
@keyframes knifeSwipe {
  0% { opacity: 0; transform: translate(-16px, -18px) rotate(-14deg); }
  25% { opacity: 1; }
  55% { transform: translate(6px, 10px) rotate(6deg); }
  100% { opacity: 1; transform: translate(0, 4px) rotate(0deg); }
}
.avatar-cake__slice { opacity: 0; transition: opacity .4s ease .55s; }
.avatar-cake.is-cutting .avatar-cake__slice { opacity: 1; }

.avatar-party__btn { margin-top: var(--space-md); }
.avatar-message {
  margin-top: var(--space-md);
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--gold);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s var(--ease-soft), transform .5s var(--ease-soft);
}
.avatar-message.is-visible { opacity: 1; transform: translateY(0); }

/* Confetti cannon blast — lightweight DOM+CSS pieces (transform and
   opacity only), spawned from two points near the avatar's raised
   hands, capped in count and auto-removed on animationend, exactly
   like the finale sparkles elsewhere on the page. Contained entirely
   within .avatar-stage via overflow: hidden above. */
.avatar-confetti {
  position: absolute;
  top: var(--cy, 30%);
  left: var(--cx, 50%);
  width: var(--cw, 8px);
  height: var(--ch, 14px);
  background: var(--cc, var(--gold));
  opacity: 0;
  border-radius: 1px;
  animation: confettiBlast var(--cdur, 1.7s) ease-out forwards;
  animation-delay: var(--cdelay, 0s);
}
@keyframes confettiBlast {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  45% { transform: translate(var(--ctx, 0px), calc(-1 * var(--cpeak, 80px))) rotate(var(--crot, 180deg)); }
  100% { transform: translate(var(--ctx-end, 0px), var(--cfall, 160px)) rotate(var(--crot2, 420deg)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-figure, .avatar-figure.is-celebrating, .avatar-arm, .avatar-candle-flame, .avatar-knife, .avatar-confetti,
  .avatar-ambient, .avatar-sparkler-tip, .avatar-cake__glow, .avatar-heart, .avatar-glow-particle {
    animation: none !important;
  }
}

/* =========================================================
   IMPORTANT QUESTION (funny interactive moment)
   ========================================================= */
.section--important-question { text-align: center; }
.iq__prompt {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--burgundy);
  margin: 0 0 var(--space-md);
}
.iq__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Considerably more room than before so the dodging button has real
     space to move in and can always find a spot that's clear of both
     the pointer and the other button. */
  min-height: clamp(280px, 46vw, 400px);
  overflow: hidden; /* keeps the dodging button fully inside the section on every screen size */
  padding: 1rem;
}
.iq__btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step-0);
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  color: var(--white);
  background: linear-gradient(135deg, var(--burgundy), var(--wine));
  box-shadow: 0 10px 26px -10px rgba(107,30,46,0.55);
  transition: transform .25s var(--ease-soft), box-shadow .25s var(--ease-soft);
  animation: iqFloat 3.4s ease-in-out infinite;
  max-width: 80%;
  white-space: nowrap;
}
.iq__btn:hover, .iq__btn:focus-visible { transform: translateY(-3px) scale(1.03); }
/* Button B is positioned (and repositioned) purely via left/top in
   px, computed in JS with a collision check against Button A's rect
   — so the two can never land on top of each other, on any screen
   size. transform stays free for the float/wiggle animations only. */
.iq__btn--b {
  position: absolute;
  left: 60%;
  top: 68%;
  background: linear-gradient(135deg, var(--rose), var(--burgundy));
  animation-delay: 1s;
  transition: left .35s var(--ease-soft), top .35s var(--ease-soft), transform .25s var(--ease-soft), box-shadow .25s var(--ease-soft);
}
.iq__btn--wiggle { animation: iqWiggle .4s ease-in-out; }
@keyframes iqWiggle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-8deg) scale(1.05); }
  75% { transform: rotate(8deg) scale(1.05); }
}
@keyframes iqFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.iq__result {
  position: relative;
  margin-top: var(--space-md);
  opacity: 0;
  transform: scale(0.85) translateY(10px);
  transition: opacity .5s var(--ease-soft), transform .5s var(--ease-soft);
}
.iq__result.is-visible { opacity: 1; transform: scale(1) translateY(0); }
.iq__result-text {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--burgundy);
  margin: 0;
}
.iq__heart-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .iq__btn { animation: none; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 600;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
  min-height: 48px;
}
.btn--primary {
  background: linear-gradient(135deg, var(--burgundy), var(--wine));
  color: var(--white);
  box-shadow: 0 10px 30px -10px rgba(107,30,46,0.6);
}
.btn--primary:hover, .btn--primary:focus-visible { transform: translateY(-2px) scale(1.02); box-shadow: 0 16px 34px -10px rgba(107,30,46,0.7); }
.btn--outline {
  background: transparent;
  border: 1.5px solid var(--burgundy);
  color: var(--burgundy);
}
.btn--outline:hover, .btn--outline:focus-visible { background: var(--burgundy); color: var(--white); }
.section--dark .btn--outline { border-color: var(--gold); color: var(--gold); }
.section--dark .btn--outline:hover { background: var(--gold); color: var(--wine-deep); }

/* =========================================================
   SECTIONS — SHARED
   ========================================================= */
.section {
  min-height: 100vh;
  min-height: 100dvh; /* dynamic viewport height keeps sections truly full-screen on mobile as browser chrome shows/hides */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) 0;
  position: relative;
}
.section--light { background: var(--cream); color: var(--ink); }
.section--dark {
  background: radial-gradient(ellipse at 30% 20%, var(--burgundy) 0%, var(--wine) 45%, var(--wine-deep) 100%);
  color: var(--blush);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.15;
  margin: 0 0 1rem;
  max-width: 16ch;
}

.section-subtitle {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 40ch;
  margin: 0 0 var(--space-md);
}
.section-subtitle--light { color: rgba(255,255,255,0.75); }
.eyebrow-free-heading {
  font-family: var(--font-accent);
  font-size: var(--step-1);
  color: var(--gold);
  margin: 0 0 0.25rem;
}
.disclaimer {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: var(--space-md);
}
.section--dark .disclaimer { color: rgba(255,255,255,0.7); }

/* Generic lightweight fade-up reveal for simple prose sections */
.reveal-fade > .container {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft);
}
.reveal-fade.is-visible > .container { opacity: 1; transform: translateY(0); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--wine-deep);
  color: var(--white);
  text-align: center;
  padding: var(--space-lg) var(--space-sm);
}
.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__glow {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201,123,135,0.35), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}
.hero__sequence {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  /* Reserves clearance so the CTA/warning text never collides with the
     absolutely-positioned scroll indicator near the bottom of the
     viewport, even on short/mobile screens. */
  padding-bottom: clamp(3rem, 9vh, 4.5rem);
}
.hero__line {
  font-family: var(--font-accent);
  font-size: var(--step-2);
  max-width: 18ch;
  opacity: 0;
  transition: opacity 1.4s var(--ease-soft);
  color: var(--blush);
}
.hero__line.is-visible { opacity: 1; }
.hero__line.is-hidden { opacity: 0; }

/* Every hero element below reserves its final layout space from the
   very start and only ever animates opacity/transform — never height,
   margin, or display — so nothing in the sequence shifts position as
   later elements fade in or earlier ones fade out. */
.hero__heart-wrap {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 1.2s var(--ease-soft), transform 1.2s var(--ease-soft);
}
.hero__heart-wrap.is-visible { opacity: 1; transform: scale(1); }
.hero__heart { width: 60px; height: 54px; fill: var(--rose); }
.hero__heart.is-pulsing { animation: heartPulse 1.4s ease-in-out infinite; }

.hero__title {
  font-family: var(--font-display);
  font-size: var(--step-4);
  margin: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: all 1.2s var(--ease-soft);
}
.hero__title.is-visible { opacity: 1; transform: translateY(0); }
.hero__title-name { color: var(--gold); }

.hero__sub, .hero__date, .hero__cta-wrap {
  opacity: 0;
  transform: translateY(16px);
  transition: all 1s var(--ease-soft);
}
.hero__sub.is-visible, .hero__date.is-visible, .hero__cta-wrap.is-visible { opacity: 1; transform: translateY(0); }

.hero__sub { font-size: var(--step-1); color: rgba(255,255,255,0.85); }
.hero__date {
  font-family: var(--font-display);
  letter-spacing: 0.15em;
  font-size: var(--step-1);
  color: var(--gold);
}
.hero__cta-wrap { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; margin-top: 1rem; }
.hero__warning { font-size: 0.9rem; color: rgba(255,255,255,0.6); margin: 0; }

.scroll-indicator {
  position: absolute;
  bottom: max(2rem, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  padding: 0.5rem;
}
.scroll-indicator__mouse {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 14px;
}
.scroll-indicator__wheel {
  display: block;
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  margin: 6px auto 0;
  animation: scrollWheel 1.8s ease-in-out infinite;
}

/* =========================================================
   SECTION 2 — TODAY IS ALL ABOUT YOU
   ========================================================= */
.reveal-heading {
  font-family: var(--font-display);
  font-size: var(--step-3);
  max-width: 18ch;
  margin-bottom: var(--space-md);
}
.word-stack { list-style: none; margin: 0; padding: 0; }
.word-stack__item {
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--ink-soft);
  opacity: 0.15;
  transform: translateX(-16px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft), color .8s var(--ease-soft);
  padding: 0.15em 0;
}
.word-stack__item.is-visible { opacity: 1; transform: translateX(0); color: var(--wine); }
.word-stack__item--final.is-visible { color: var(--burgundy); font-style: italic; }

/* =========================================================
   SECTION 3 — VISHII EFFECT
   ========================================================= */
.effect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.effect-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: left;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform .4s var(--ease-soft), border-color .4s;
  will-change: transform;
}
.effect-card h3 {
  font-family: var(--font-display);
  font-size: var(--step-1);
  margin: 0 0 0.75rem;
  color: var(--gold);
}
.effect-card__reveal {
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease-soft), opacity .5s var(--ease-soft);
}
.effect-card.is-open .effect-card__reveal { max-height: 200px; opacity: 1; margin-top: 0.25rem; }
.effect-card.is-open { border-color: var(--gold); }

/* =========================================================
   SECTION 4 — RESEARCH
   ========================================================= */
.research-grid {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-md);
}
.research-stat {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  align-items: center;
  gap: 1rem;
}
.research-stat__label { font-weight: 600; }
.research-stat__bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(107,30,46,0.12);
  overflow: hidden;
}
.research-stat__fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--burgundy));
  box-shadow: 0 0 12px rgba(201,123,135,0.6);
  transition: width 1.6s var(--ease-soft);
}

.research-stat__value {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--rose);
  min-width: 4.5ch;
  text-align: right;
}

/* =========================================================
   SECTION 5 — LOVE METER
   ========================================================= */
.section--love-meter { text-align: center; }
.love-meter {
  position: relative;
  width: min(320px, 70vw);
  aspect-ratio: 1/1;
  margin: var(--space-md) auto 0;
}
/* overflow: visible keeps the ring's drop-shadow from being clipped
   to the SVG's own viewBox — without it, the glow was cut off into
   an oval shape instead of spreading evenly around the circle. */
.love-meter__svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.love-meter__track { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 10; }
.love-meter__progress {
  fill: none;
  stroke: url(#loveGradient);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 534;
  stroke-dashoffset: 534;
  transition: stroke-dashoffset 2.6s var(--ease-soft);
  filter: drop-shadow(0 0 10px rgba(201,123,135,0.7));
}
.love-meter__center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.love-meter__value {
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--gold);
}
.love-meter__error {
  margin-top: var(--space-md);
  opacity: 0;
  transition: opacity .8s var(--ease-soft);
  color: var(--rose);
  font-weight: 600;
}
.love-meter__error.is-visible { opacity: 1; }

/* =========================================================
   SECTION 6 — TIMELINE
   ========================================================= */
.timeline {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
  border-left: 2px solid var(--rose);
  max-width: 480px;
}
.timeline__item {
  position: relative;
  padding: 0 0 var(--space-md) var(--space-md);
  opacity: 0.2;
  transform: translateX(-10px);
  transition: opacity .6s var(--ease-soft), transform .6s var(--ease-soft);
}
.timeline__item.is-visible { opacity: 1; transform: translateX(0); }
.timeline__marker {
  position: absolute;
  left: -7px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 4px var(--cream);
}
.timeline__item--final .timeline__marker { background: var(--gold); }
.timeline__text { font-family: var(--font-display); font-size: var(--step-1); }
.timeline__item--final .timeline__text { color: var(--burgundy); font-weight: 700; }

/* =========================================================
   SECTION 7 — GALLERY
   ========================================================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}
.gallery-item {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.15);
  opacity: 0;
  transform: scale(1.08) rotate(-2deg);
  filter: blur(10px);
  transition: opacity .8s var(--ease-soft), transform .8s var(--ease-soft), filter .8s var(--ease-soft);
}
.gallery-item.is-visible { opacity: 1; transform: scale(1) rotate(0deg); filter: blur(0); }
/* A gentle continuous bob, added only once the reveal transition above
   has settled (see gallery motion init in animations.js) so there's
   no visual jump between the one-time reveal and the ongoing float. */
.gallery-item.is-floating { animation: galleryFloat var(--float-duration, 5s) ease-in-out infinite; animation-delay: var(--float-delay, 0s); }
@keyframes galleryFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
/* The frame clips a slow, continuous Ken Burns zoom so the gallery
   feels alive rather than a grid of static photos; the frame and the
   img each own their own transform, so this never fights with the
   card's reveal/float animation above or the hover zoom below. */
.gallery-item__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  animation: galleryKenBurns var(--kb-duration, 14s) ease-in-out infinite alternate;
  animation-delay: var(--kb-delay, 0s);
}
@keyframes galleryKenBurns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-1.5%, -1.5%); }
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease-soft); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.06); }
.gallery-item__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  color: var(--white);
  background: linear-gradient(0deg, rgba(0,0,0,0.55), transparent);
}
.gallery-item__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 1rem;
  font-family: var(--font-display);
  color: var(--blush);
  font-size: 0.95rem;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,5,10,0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top,1rem) 1rem env(safe-area-inset-bottom,1rem);
}
.lightbox[hidden] { display: none; }
.lightbox__figure { max-width: min(90vw, 560px); text-align: center; margin: 0; }
.lightbox__img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-md); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7); }
.lightbox__caption { color: var(--blush); margin-top: 1rem; font-family: var(--font-display); }
.lightbox__close {
  position: absolute; top: max(1rem, env(safe-area-inset-top,0px)); right: 1rem;
  background: rgba(255,255,255,0.1); border: none; color: var(--white);
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.5rem; cursor: pointer;
}
.lightbox__nav {
  background: rgba(255,255,255,0.1); border: none; color: var(--white);
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; cursor: pointer;
  position: absolute; top: 50%; transform: translateY(-50%);
}
.lightbox__nav--prev { left: max(1rem, env(safe-area-inset-left,0px)); }
.lightbox__nav--next { right: max(1rem, env(safe-area-inset-right,0px)); }

/* =========================================================
   SECTION 8 — LOVE LIST
   ========================================================= */
.love-list { list-style: none; margin: var(--space-md) 0 0; padding: 0; }
.love-list li {
  font-family: var(--font-display);
  font-size: var(--step-2);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(107,30,46,0.12);
  opacity: 0.2;
  transform: translateY(10px);
  transition: opacity .6s var(--ease-soft), transform .6s var(--ease-soft);
}
.love-list li.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   SECTION 9 — CINEMATIC STORY
   ========================================================= */
/* This section runs its own bespoke full-height scroll-driven layout
   (a tall track + a sticky pinned viewport), so it opts out of the
   shared .section flex-centering: as a flex item, .story__track had
   no explicit width, and since every .story__scene inside it is
   absolutely positioned (contributing no intrinsic width), it was
   shrinking to near-zero width — which is why only the first scene
   (barely) rendered and every scene after it appeared empty while
   scrolling. */
.section--story {
  display: block;
  min-height: 0;
  background: var(--wine-deep);
  position: relative;
  padding: 0;
}
/* A tall scroll "track" drives progress; a sticky "pin" holds one
   full-viewport window in place while scenes crossfade inside it.
   Only one .story__scene is ever visible at a time (single source of
   truth: JS toggles is-active on exactly one), so scenes can never
   visually overlap regardless of scroll speed or browser quirks. */
.story__track {
  position: relative;
  width: 100%;
  /* height is also set in JS as (scene count * 100vh); this is a safe fallback */
  height: 500vh;
}
.story__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.story__scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s var(--ease-soft);
}
.story__scene.is-active { opacity: 1; pointer-events: auto; }
.story__text {
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--blush);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease-soft), transform 1s var(--ease-soft);
  max-width: 18ch;
}
.story__scene.is-active .story__text { opacity: 1; transform: translateY(0); }
.story__text--final { color: var(--gold); }
.story__heart {
  width: 70px; height: 63px;
  fill: var(--rose);
  opacity: 0;
  transform: scale(0.5);
  transition: all 1s var(--ease-soft);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(201,123,135,0.7));
}
.story__scene.is-active .story__heart { opacity: 1; transform: scale(1); }
.story__scene--words { flex-wrap: wrap; flex-direction: row; gap: 1rem 1.5rem; }
.story__scene--words span {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--rose);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease-soft), transform .6s var(--ease-soft);
}
.story__scene--words.is-active span { opacity: 1; transform: translateY(0); }
.story__scene--words.is-active span:nth-child(1){transition-delay:.05s}
.story__scene--words.is-active span:nth-child(2){transition-delay:.15s}
.story__scene--words.is-active span:nth-child(3){transition-delay:.25s}
.story__scene--words.is-active span:nth-child(4){transition-delay:.35s}
.story__scene--words.is-active span:nth-child(5){transition-delay:.45s}
.story__scene--words.is-active span:nth-child(6){transition-delay:.55s}

/* =========================================================
   SECTION 10 — SURVIVAL GUIDE
   ========================================================= */
.guide-list { padding-left: 0; list-style: none; margin: var(--space-md) 0; }
.guide-list li {
  padding: 1rem 0;
  border-bottom: 1px dashed rgba(107,30,46,0.2);
  font-size: var(--step-0);
}
.guide-list__rule {
  display: block;
  font-family: var(--font-display);
  color: var(--burgundy);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.emergency-steps {
  list-style: decimal;
  padding-left: 1.2rem;
  margin-top: var(--space-md);
  background: var(--blush);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.5rem 1.5rem 2.2rem;
}
.emergency-steps li { margin-bottom: 0.5rem; opacity: 0; transform: translateX(-8px); animation: stepIn .5s var(--ease-soft) forwards; }
.emergency-steps li:nth-child(1){animation-delay:.1s}
.emergency-steps li:nth-child(2){animation-delay:.4s}
.emergency-steps li:nth-child(3){animation-delay:.7s}
.emergency-steps li:nth-child(4){animation-delay:1s}

/* =========================================================
   SECTION 11 — CONSTELLATION
   ========================================================= */
.constellation {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 300px;
  max-height: 480px;
  margin-top: var(--space-md);
}
/* Stars are positioned with left/top percentages set in JS using an
   evenly-spaced, jittered grid, so distribution stays balanced at
   every container size instead of clustering in one area. */
.star {
  position: absolute;
  width: clamp(34px, 6vw, 46px);
  height: clamp(34px, 6vw, 46px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transform: translate(-50%, -50%);
}
.star::before {
  content: "";
  width: 46%;
  height: 46%;
  background: var(--gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: twinkle 2.8s ease-in-out infinite;
}
.star__card {
  position: absolute;
  top: 100%;
  margin-top: 0.65rem;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(230px, 62vw);
  background: var(--cream);
  border: 1px solid rgba(198,161,91,0.5);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--wine);
  text-align: center;
  box-shadow: 0 18px 36px -12px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease-soft), transform .3s var(--ease-soft);
  z-index: 20;
}
.star__card::before {
  content: "❤️";
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}
.star.is-open .star__card { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }

/* Stars near the left/right edges flip their card so it stays fully
   on screen instead of spilling past the edge. */
.star--align-left .star__card { left: 0; transform: translate(0, 6px); }
.star--align-left.is-open .star__card { transform: translate(0, 0); }
.star--align-right .star__card { left: auto; right: 0; transform: translate(0, 6px); }
.star--align-right.is-open .star__card { transform: translate(0, 0); }

/* Stars in the lower half flip their card upward so it never runs
   past the bottom of the constellation into the next section. */
.star--flip-up .star__card { top: auto; bottom: 100%; margin-top: 0; margin-bottom: 0.65rem; }

/* =========================================================
   SECTION 12 — HEARTBEAT
   ========================================================= */
.section--heartbeat { text-align: center; }
.heartbeat__text { font-size: var(--step-1); color: rgba(255,255,255,0.85); }
.heartbeat__line {
  width: 100%;
  max-width: 560px;
  /* Matches the viewBox's own 600:100 ratio exactly, so the wave
     scales uniformly on every device instead of stretching unevenly
     (a fixed pixel height combined with a fluid width was distorting
     the QRS spike differently on every screen size — narrower on
     phones, flatter on wide desktops). */
  aspect-ratio: 6 / 1;
  height: auto;
  fill: none;
  stroke: var(--rose);
  stroke-width: 2.5;
  margin: var(--space-md) auto;
  opacity: 0;
  transition: opacity .8s var(--ease-soft);
}
.heartbeat__line.is-visible { opacity: 1; }
/* The line draws itself in fully, holds visible for a beat, fades
   out as a complete line, then resets invisibly before drawing again
   — a continuous "redraw" loop rather than a small dash traveling
   along the path. --hb-length is set in JS from the path's own
   getTotalLength(), so this stays correct regardless of path shape;
   800 is only a fallback for the rare case JS hasn't run yet. */
.heartbeat__line path {
  stroke-dasharray: var(--hb-length, 800);
  stroke-dashoffset: var(--hb-length, 800);
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(201,123,135,0.8));
}
.heartbeat__line.is-visible path {
  animation: heartbeatDraw 3.2s ease-in-out infinite;
}
@keyframes heartbeatDraw {
  0%   { stroke-dashoffset: var(--hb-length, 800); opacity: 0; }
  6%   { opacity: 1; }
  50%  { stroke-dashoffset: 0; opacity: 1; }
  62%  { stroke-dashoffset: 0; opacity: 1; }
  72%  { stroke-dashoffset: 0; opacity: 0; }
  73%  { stroke-dashoffset: var(--hb-length, 800); opacity: 0; }
  100% { stroke-dashoffset: var(--hb-length, 800); opacity: 0; }
}
.heartbeat__final { font-family: var(--font-display); font-size: var(--step-2); color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  .heartbeat__line path {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    opacity: 1;
    animation: none;
  }
}

/* =========================================================
   SECTION 13 — GAME
   ========================================================= */
.game { margin-top: var(--space-md); }
.game__hud {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding: 0 0.25rem;
}
.game__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  max-height: 620px;
  background: linear-gradient(180deg, var(--blush), var(--peach));
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(107,30,46,0.15);
  touch-action: none;
}
.game__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.game__basket {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2.4rem;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.25));
  pointer-events: none;
}
.game__toast {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.85);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity .3s;
  color: var(--burgundy);
  pointer-events: none;
}
.game__toast.is-visible { opacity: 1; }
.game__overlay {
  position: absolute;
  inset: 0;
  background: rgba(59,11,20,0.55);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  padding: 1rem;
}
.game__overlay[hidden] { display: none; }
.game__overlay-text { font-family: var(--font-display); font-size: var(--step-1); max-width: 20ch; }
.game__hint { text-align: center; color: var(--ink-soft); font-size: 0.85rem; margin-top: 0.75rem; }
.game__code {
  text-align: center;
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--burgundy);
}

/* =========================================================
   NOTE CTA / MODALS
   ========================================================= */
.section--note-cta { text-align: center; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top,0px)) 1rem max(1rem, env(safe-area-inset-bottom,0px));
  overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(38,7,16,0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.modal__panel {
  position: relative;
  background: rgba(255,253,249,0.95);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md) var(--space-md);
  width: min(420px, calc(100vw - 2rem));
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5);
  margin: auto;
}
.modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: rgba(107,30,46,0.1);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--burgundy);
}
.modal__lock { display: flex; justify-content: center; margin-bottom: 1rem; }
.lock-icon { width: 50px; height: 50px; fill: var(--burgundy); stroke: var(--burgundy); transition: all .5s var(--ease-soft); }
.lock-icon.is-unlocked path { transform: translateX(-4px) rotate(-20deg); transform-origin: 35px 27px; }
.lock-icon.is-unlocked { fill: var(--gold); stroke: var(--gold); }

/* =========================================================
   PAGE GATE — whole-page password lock for manita.html
   ========================================================= */
.page-gate {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 20%, var(--burgundy) 0%, var(--wine) 45%, var(--wine-deep) 100%);
  padding: var(--space-lg) var(--space-sm);
  text-align: center;
  transition: opacity .5s ease;
}
.page-gate.is-unlocking { opacity: 0; }
.page-gate__glow {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201,123,135,0.3), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}
.page-gate__panel {
  position: relative;
  z-index: 1;
  background: rgba(255,253,249,0.96);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  width: min(420px, calc(100vw - 2rem));
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
}
.page-gate__panel--shake { animation: modalShake .4s; }
.page-gate__lock { display: flex; justify-content: center; margin-bottom: 1rem; }
.page-gate h1 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--wine);
  margin: 0 0 0.5rem;
}
.page-gate p { color: var(--ink-soft); margin: 0; }
#pageGateForm { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; justify-content: center; }

@media (max-width: 420px) {
  #pageGateForm { flex-direction: column; align-items: stretch; }
  #pageGateForm .modal__input { width: 100%; letter-spacing: 0.35em; }
  #pageGateForm .btn { width: 100%; justify-content: center; }
}

/* =========================================================
   BIRTHDAY INTRO — top of manita.html
   Built only from existing tokens (--wine, --burgundy, --rose,
   --blush, --gold, --font-*, --radius-lg, --ease-soft) and the
   existing twinkle / heartPulse / floatY / scrollWheel keyframes.
   Motion is transform + opacity only. The section reserves its full
   size from the first frame, so nothing shifts when it plays.
   Timeline (after the 0.5s start delay): card .5s ->
   heart 1s -> "Happy Birthday" 1.3s -> name 1.55s -> notes 2.2s.
   ========================================================= */
.b-intro {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  padding: var(--space-lg) max(var(--space-sm), env(safe-area-inset-right, 0px)) var(--space-lg) max(var(--space-sm), env(safe-area-inset-left, 0px));
  background: radial-gradient(ellipse at 30% 20%, var(--burgundy) 0%, var(--wine) 45%, var(--wine-deep) 100%);
  color: var(--white);
  text-align: center;
}

/* ---- Soft ambient orbs (plain radial gradients, no blur filter) ---- */
.b-intro__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  animation: bIntroOrb 9s ease-in-out 0.5s infinite both;
}
.b-intro__orb--rose {
  width: min(78vw, 640px); height: min(78vw, 640px);
  top: 50%; left: 50%;
  margin: calc(min(78vw, 640px) / -2) 0 0 calc(min(78vw, 640px) / -2);
  background: radial-gradient(circle, rgba(201,123,135,0.34), transparent 65%);
}
.b-intro__orb--gold {
  width: min(46vw, 380px); height: min(46vw, 380px);
  right: -8%; bottom: 6%;
  background: radial-gradient(circle, rgba(198,161,91,0.2), transparent 68%);
  animation-delay: 2.5s;
}

/* ---- Glass card: big, soft radius ---- */
.b-intro__card {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  padding: clamp(1.5rem, 5vw, 2.5rem) clamp(1.25rem, 5vw, 2.5rem) clamp(1.5rem, 5vw, 2.25rem);
  border-radius: clamp(32px, 7vw, 48px);
  background: linear-gradient(160deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  border: 1px solid rgba(243,214,220,0.24);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px -25px rgba(0,0,0,0.6), 0 0 40px -12px rgba(201,123,135,0.35), inset 0 1px 0 rgba(255,255,255,0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: scale(0.92) translateY(14px);
  animation: bIntroCard 1.2s var(--ease-soft) 0.5s forwards, floatY 7s ease-in-out 1.9s infinite;
  transition: border-color .4s var(--ease-soft), box-shadow .4s var(--ease-soft);
}
.b-intro__card:hover { border-color: rgba(198,161,91,0.5); }

/* ---- Heart orb (a button: tap for sparkles) ---- */
.b-intro__heart {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 0 1rem;
  padding: 0;
  border: 1px solid rgba(243,214,220,0.3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(243,214,220,0.3), rgba(201,123,135,0.12) 60%, rgba(255,255,255,0.03));
  box-shadow: 0 0 22px rgba(201,123,135,0.45), inset 0 0 14px rgba(255,255,255,0.1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  opacity: 0;
  transform: scale(0.8);
  animation: bIntroPop 0.9s var(--ease-soft) 1s forwards;
}
.b-intro__heart svg {
  width: 38px; height: 34px;
  fill: var(--rose);
  filter: drop-shadow(0 0 8px rgba(201,123,135,0.8));
  animation: heartPulse 1.8s ease-in-out 1.9s infinite;
}
.b-intro__heart.is-tapped { animation: bIntroTap .45s var(--ease-soft); opacity: 1; transform: scale(1); }
/* Expanding neon rings */
.b-intro__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--rose);
  pointer-events: none;
  opacity: 0;
  animation: bIntroRing 3.2s ease-out 1.8s infinite;
}
.b-intro__ring--2 { animation-delay: 3.4s; border-color: var(--gold); }
/* Orbiting dot */
.b-intro__orbit {
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px dashed rgba(243,214,220,0.22);
  pointer-events: none;
  animation: bIntroSpin 14s linear infinite;
}
.b-intro__orbit::after {
  content: "";
  position: absolute;
  top: -3px; left: 50%;
  width: 6px; height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px 2px rgba(198,161,91,0.8);
}

/* ---- Title ---- */
.b-intro__title { margin: 0; font-family: var(--font-display); line-height: 1.15; font-weight: 400; }
.b-intro__line {
  display: block;
  font-size: var(--step-2);
  color: var(--blush);
  opacity: 0;
  transform: translateY(10px);
  animation: bIntroFade 1s var(--ease-soft) 1.3s forwards;
}
.b-intro__name {
  display: block;
  margin-top: 0.1em;
  font-size: var(--step-4);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold); /* fallback if gradient text isn't supported */
  opacity: 0;
  transform: scale(0.92);
  animation: bIntroFade 1.1s var(--ease-soft) 1.55s forwards;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .b-intro__name {
    background: linear-gradient(110deg, var(--gold) 20%, var(--blush) 50%, var(--rose) 80%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: bIntroFade 1.1s var(--ease-soft) 1.55s forwards, bIntroShine 7s linear 2.8s infinite;
  }
}

/* ---- Romantic lines: one visible at a time, 4s each, 16s loop ---- */
.b-intro__notes {
  position: relative;
  width: 100%;
  margin: 1.25rem 0 0;
  min-height: 4.4rem; /* reserved so cycling never shifts layout */
  display: grid;
  place-items: center;
  padding: 0.6rem 1.1rem;
  border-radius: 1.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(243,214,220,0.16);
  font-size: var(--step-0);
  line-height: 1.45;
  color: rgba(255,255,255,0.88);
  opacity: 0;
  animation: bIntroFade 0.9s var(--ease-soft) 2.1s forwards;
}
/* "You're my [word].." — only the bold word (dots included) is typed/deleted by the
   small script at the bottom of manita.html. The slot is as wide as the
   longest string (EVERYTHING., via a hidden ghost), so "You're my" never
   moves while words of different lengths come and go. */
.b-intro__type {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}
.b-intro__static { margin-right: 0.3em; }
.b-intro__slot { display: inline-grid; }
.b-intro__slot > * { grid-area: 1 / 1; }
.b-intro__ghost { font-weight: 700; visibility: hidden; } /* widest string: EVERYTHING. */
.b-intro__word { font-weight: 700; text-align: left; }
.b-intro__char { opacity: 0; transition: opacity 0.1s ease-out; }
.b-intro__char.is-in { opacity: 1; }
.b-intro__sr {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Light trails, dust, emoji sparkles ---- */
.b-intro__trails { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.b-intro__trails i {
  position: absolute;
  left: -40%;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rose), var(--gold), transparent);
  opacity: 0;
  animation: bIntroTrail 7s linear infinite;
}
.b-intro__trails i:nth-child(1) { top: 24%; animation-delay: 0.8s; }
.b-intro__trails i:nth-child(2) { top: 64%; animation-delay: 3.2s; width: 30%; }
.b-intro__trails i:nth-child(3) { top: 84%; animation-delay: 5.2s; width: 35%; }

.b-intro__dust { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.b-intro__dust i {
  position: absolute;
  bottom: -10px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--blush);
  box-shadow: 0 0 8px rgba(243,214,220,0.8);
  opacity: 0;
  animation: bIntroRise 9s ease-in infinite;
}
.b-intro__dust i:nth-child(1) { left: 8%;  animation-delay: 0.9s; }
.b-intro__dust i:nth-child(2) { left: 22%; animation-delay: 3.4s; background: var(--gold); }
.b-intro__dust i:nth-child(3) { left: 36%; animation-delay: 1.8s; }
.b-intro__dust i:nth-child(4) { left: 52%; animation-delay: 5.1s; background: var(--rose); }
.b-intro__dust i:nth-child(5) { left: 66%; animation-delay: 2.6s; }
.b-intro__dust i:nth-child(6) { left: 78%; animation-delay: 6.2s; background: var(--gold); }
.b-intro__dust i:nth-child(7) { left: 90%; animation-delay: 4.2s; }
.b-intro__dust i:nth-child(8) { left: 45%; animation-delay: 7.3s; }

.b-intro__spark {
  position: absolute;
  z-index: 1;
  font-size: 1rem;
  opacity: 0;
  pointer-events: none;
  animation: twinkle 2.8s ease-in-out infinite both;
}
.b-intro__spark--1 { top: 14%; left: 12%; animation-delay: 1.6s; }
.b-intro__spark--2 { top: 18%; right: 12%; animation-delay: 2.1s; font-size: 0.85rem; }
.b-intro__spark--3 { bottom: 20%; left: 14%; animation-delay: 2.5s; font-size: 0.85rem; }
.b-intro__spark--4 { bottom: 24%; right: 13%; animation-delay: 1.9s; font-size: 0.9rem; }

/* Heart-tap sparkles reuse .finale__sparkle (see below); this layer
   just anchors their launch point at the heart instead of the floor. */
.b-intro__burst {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}
.b-intro__burst .finale__sparkle { bottom: 52%; }

/* Scroll cue */
.b-intro__cue {
  position: absolute;
  left: 50%;
  bottom: max(1.25rem, calc(env(safe-area-inset-bottom, 0px) + 0.75rem));
  transform: translateX(-50%);
  opacity: 0;
  animation: bIntroFade 1s var(--ease-soft) 3.4s forwards;
}

/* ---- Keyframes (own names; existing ones are reused above) ---- */
@keyframes bIntroCard { 0% { opacity: 0; transform: scale(0.92) translateY(14px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes bIntroFade { to { opacity: 1; transform: none; } }
@keyframes bIntroPop {
  0%   { opacity: 0; transform: scale(0.8); }
  60%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes bIntroTap { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes bIntroOrb { 0%, 100% { opacity: 0.55; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes bIntroRing { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(1.9); } }
@keyframes bIntroSpin { to { transform: rotate(360deg); } }
@keyframes bIntroShine { from { background-position: 0% 0; } to { background-position: -200% 0; } }
@keyframes bIntroTrail { 0% { opacity: 0; transform: translateX(0); } 10% { opacity: 0.8; } 40% { opacity: 0; transform: translateX(380%); } 100% { opacity: 0; transform: translateX(380%); } }
@keyframes bIntroRise { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 0.9; } 100% { opacity: 0; transform: translateY(-85vh); } }

/* ---- Browsers without backdrop-filter: slightly denser glass ---- */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .b-intro__card { background: linear-gradient(160deg, rgba(107,30,46,0.88), rgba(61,11,20,0.9)); }
}

/* ---- Small phones / landscape ---- */
@media (max-width: 380px) {
  .b-intro__type { font-size: 0.92em; }
  .b-intro__heart { width: 72px; height: 72px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .b-intro { padding-block: var(--space-sm); }
  .b-intro__card { padding: 0.9rem 1.5rem; }
  .b-intro__heart { width: 52px; height: 52px; margin: 0.5rem 0; }
  .b-intro__heart svg { width: 24px; height: 22px; }
  .b-intro__name { font-size: var(--step-3); }
  .b-intro__notes { margin-top: 0.6rem; min-height: 3rem; padding: 0.4rem 1rem; }
  .b-intro__cue { display: none; }
}

/* ---- Reduced motion: calm, static, still lovely and readable ---- */
@media (prefers-reduced-motion: reduce) {
  .b-intro__orb { animation: none; opacity: 0.8; }
  .b-intro__card, .b-intro__heart, .b-intro__line, .b-intro__name,
  .b-intro__notes, .b-intro__cue {
    animation: none; opacity: 1; transform: none;
  }
  .b-intro__heart svg, .b-intro__ring, .b-intro__orbit { animation: none; }
  .b-intro__ring { display: none; }
  .b-intro__name { animation: none; }
  .b-intro__char { transition: none; }
  .b-intro__trails, .b-intro__dust, .b-intro__burst, .b-intro__cue { display: none; }
  .b-intro__spark { animation: none; opacity: 0.8; }
}

/* =========================================================
   BRIDGE TO PRIVATE VIEW (end of the public page)
   ========================================================= */
.section--bridge { text-align: center; }
.bridge__heart {
  display: block;
  width: 72px;
  height: 65px;
  margin: var(--space-md) auto 0;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  touch-action: none; /* keeps a press-and-hold from also scrolling the page on touch */
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.bridge__heart svg {
  width: 100%;
  height: 100%;
  fill: var(--rose);
  filter: drop-shadow(0 0 12px rgba(201,123,135,0.6));
  transition: transform .25s var(--ease-soft), fill .25s var(--ease-soft);
  animation: heartPulse 1.6s ease-in-out infinite;
}
.bridge__heart.is-pressing svg {
  transform: scale(1.15);
  fill: var(--gold);
  filter: drop-shadow(0 0 18px rgba(198,161,91,0.8));
  animation-play-state: paused;
}
.bridge__heart.is-complete svg {
  transform: scale(1.3);
  fill: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  .bridge__heart svg { animation: none; }
  .bridge__heart.is-pressing svg, .bridge__heart.is-complete svg { transform: none; }
}

/* Password window opened by the heart hold above — reuses
   .page-gate__panel's own styling exactly, just wrapped as a
   modal with a blurred backdrop instead of a full page. */
.bridge-gate {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top,0px)) 1rem max(1rem, env(safe-area-inset-bottom,0px));
  overflow-y: auto;
}
.bridge-gate[hidden] { display: none; }
.bridge-gate__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(38,7,16,0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
#passwordForm { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; justify-content: center; }
.modal__input {
  font-size: 1.4rem;
  letter-spacing: 0.5em;
  text-align: center;
  width: 140px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.5rem;
  border: 1.5px solid var(--rose);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
}
/* type="tel" (not type="password") is used for the secret code so
   that touch devices without a physical keyboard reliably open a
   numeric keypad — iOS in particular ignores inputmode="numeric" on
   password fields. -webkit-text-security keeps it visually masked. */
.modal__input--masked {
  -webkit-text-security: disc;
}
.modal__feedback { min-height: 1.5em; color: var(--burgundy); font-weight: 600; margin-top: 0.75rem; }
.modal--shake .modal__panel { animation: modalShake .4s; }

/* Letter modal */
.modal__panel--letter {
  width: min(640px, calc(100vw - 2rem));
  max-height: min(88vh, 88svh);
  display: flex;
  flex-direction: column;
}
.letter__heading { font-family: var(--font-accent); font-size: var(--step-2); color: var(--burgundy); margin-top: 0; flex-shrink: 0; }
.letter__paper {
  background: var(--white);
  background-image: radial-gradient(rgba(107,30,46,0.03) 1px, transparent 1px);
  background-size: 8px 8px;
  border: 1px solid rgba(201,123,135,0.3);
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 40px rgba(201,123,135,0.12);
  padding: var(--space-md);
  text-align: left;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0; /* allow the flex item to shrink below content size so it scrolls instead of overflowing the modal */
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.8;
}
.letter__progress, .letter__end { flex-shrink: 0; }
.letter__paper p { margin: 0 0 1.1em; opacity: 0; transform: translateY(8px); animation: letterReveal .7s var(--ease-soft) forwards; }
.letter__progress, .letter__end { text-align: center; font-size: 0.9rem; color: var(--ink-soft); margin: 0.75rem 0 0; }
.letter__end { color: var(--burgundy); font-weight: 600; }

/* =========================================================
   FINALE
   ========================================================= */
.section--finale { text-align: center; overflow: hidden; }
.finale__sparkle-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
/* Lightweight DOM+CSS sparkles (transform/opacity only) replace the
   old canvas particle burst — far cheaper to animate and capped in
   count by JS, so repeated clicks can never cause a slowdown. */
.finale__sparkle {
  position: absolute;
  left: var(--sx, 50%);
  bottom: 8%;
  font-size: var(--sf, 20px);
  opacity: 0;
  will-change: transform, opacity;
  animation: finaleSparkleRise var(--sd, 2.2s) ease-out forwards;
}
@keyframes finaleSparkleRise {
  0% { opacity: 0; transform: translate(0, 0) scale(0.6) rotate(0deg); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--sx-drift, 0px), -160px) scale(1) rotate(var(--sr, 60deg)); }
}
.finale__content { position: relative; z-index: 2; }
.finale__line { font-size: var(--step-1); color: rgba(255,255,255,0.9); margin: 1rem 0; }
.finale__heart {
  background: none; border: none; cursor: pointer;
  width: 90px; height: 80px;
  margin: var(--space-md) auto;
  display: block;
}
.finale__heart svg { width: 100%; height: 100%; fill: var(--rose); filter: drop-shadow(0 0 14px rgba(201,123,135,0.7)); transition: transform .3s var(--ease-snap); }
.finale__heart:hover svg, .finale__heart:focus-visible svg { transform: scale(1.08); }

/* =========================================================
   FOOTER — static, single-line, compact
   ========================================================= */
.footer {
  background: var(--wine-deep);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 1rem var(--space-sm);
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}
.footer__text {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.4;
  white-space: normal;
}

/* =========================================================
   EGG TOAST
   ========================================================= */
.egg-toast {
  position: fixed;
  bottom: max(1.5rem, env(safe-area-inset-bottom,0px));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--wine);
  color: var(--white);
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  z-index: 2000;
  opacity: 0;
  transition: opacity .4s var(--ease-soft), transform .4s var(--ease-soft);
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}
.egg-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .gallery-item__frame, .gallery-item.is-floating { animation: none !important; }
}
