/* ==========================================================================
   🐼🌻 DISHA — A SECRET LITTLE UNIVERSE BUILT FOR ONE PERSON (V3)
   MASTER DESIGN SYSTEM & LIVING ECOSYSTEM STYLESHEET
   ========================================================================== */

:root {
  /* ── Deep Obsidian & Stardust Color Tokens ── */
  --space-void:        #05020B;
  --space-abyss:       #0A0517;
  --space-card:        rgba(18, 9, 36, 0.72);
  --space-card-hover:  rgba(30, 15, 58, 0.85);
  --space-border:      rgba(200, 168, 255, 0.16);
  --space-border-glow: rgba(255, 226, 138, 0.45);

  /* ── Precious Metallic & Starlight Accents ── */
  --stardust-gold:     #FFE28A;
  --sunflower-amber:   #FFB347;
  --sakura-pink:       #FF6B9D;
  --sakura-light:      #FFA8C5;
  --aurora-cyan:       #4EECD5;
  --cosmic-lavender:   #C8A8FF;
  --text-pure:         #FAF8FF;
  --text-muted:        #A594C9;
  --text-whisper:      #6F5E8E;

  /* ── Typography Stack ── */
  --font-serif:        'Playfair Display', Georgia, serif;
  --font-sans:         'DM Sans', system-ui, -apple-system, sans-serif;
  --font-handwritten:  'Caveat', cursive, sans-serif;

  /* ── Glassmorphism & Elevation ── */
  --glass-blur:        blur(24px);
  --radius-card:       24px;
  --radius-sm:         12px;
  --radius-pill:       999px;
  --glow-subtle:       0 0 25px rgba(200, 168, 255, 0.12);
  --glow-gold:         0 0 35px rgba(255, 226, 138, 0.35);
  --glow-sunflower:    0 0 30px rgba(255, 179, 71, 0.4);
  --glow-heart:        0 0 50px rgba(255, 107, 157, 0.5);

  /* ── Physics Curves ── */
  --ease-cinematic:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:       cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset & Baseline (Zero Browser-Default Artifacts) ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--space-void);
  color: var(--text-pure);
  font-family: var(--font-sans);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Master Button & Form Element Reset (Eradicates native browser UI) */
button, input, select, textarea, a {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

button:focus, button:focus-visible,
input:focus, input:focus-visible {
  outline: none;
}

/* ── Celestial Canvas ── */
#universe-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   DESKTOP ANIMATED PANDA CURSOR
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  body, button, a, input, [role="button"] {
    cursor: none !important;
  }
}

.cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  pointer-events: none !important;
  z-index: 9998;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s var(--ease-spring), height 0.3s var(--ease-spring), filter 0.25s;
}

.cursor-ring * {
  pointer-events: none !important;
}

.cursor-sunflower {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition: opacity 0.2s ease, transform 0.22s var(--ease-spring), filter 0.25s;
  filter: drop-shadow(0 2px 10px rgba(255, 179, 71, 0.45));
}

.cursor-panda-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(0.35) rotate(-8deg);
  transition: opacity 0.2s ease, transform 0.22s var(--ease-spring);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

/* Sunflower -> Panda transformation on click */
.cursor-ring.is-clicking .cursor-sunflower {
  opacity: 0;
  transform: scale(0.3) rotate(25deg);
}

.cursor-ring.is-clicking .cursor-panda-face {
  opacity: 1;
  transform: scale(1.12) rotate(0deg);
}

/* Sunflower reacts subtly near secret star */
.cursor-ring.hover-secret-star .cursor-sunflower {
  transform: scale(1.2) rotate(18deg);
  filter: drop-shadow(0 0 16px var(--stardust-gold)) brightness(1.25);
}

/* Hover on Panda companion also summons mini Panda */
.cursor-ring.hover-panda .cursor-sunflower {
  opacity: 0;
  transform: scale(0.35);
}

.cursor-ring.hover-panda .cursor-panda-face {
  opacity: 1;
  transform: scale(1.05);
}

.cursor-badge {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--stardust-gold);
  background: rgba(18, 9, 36, 0.95);
  border: 1px solid var(--space-border-glow);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s var(--ease-spring);
}

/* Cursor Hover Variations */
.cursor-ring.hover-view {
  width: 58px; height: 58px;
}
.cursor-ring.hover-view .cursor-badge {
  color: var(--stardust-gold);
  border-color: var(--stardust-gold);
  box-shadow: 0 0 10px rgba(255, 226, 138, 0.4);
}

.cursor-ring.hover-discover {
  width: 56px; height: 56px;
}
.cursor-ring.hover-discover .cursor-badge {
  color: var(--aurora-cyan);
  border-color: var(--aurora-cyan);
  box-shadow: 0 0 10px rgba(78, 236, 213, 0.4);
}

.cursor-ring.hover-heart {
  width: 56px; height: 56px;
}
.cursor-ring.hover-heart .cursor-badge {
  color: var(--sakura-pink);
  border-color: var(--sakura-pink);
  box-shadow: 0 0 10px rgba(255, 107, 157, 0.5);
}

.cursor-ring.hover-panda {
  width: 54px; height: 54px;
}

.cursor-ring.hover-btn {
  width: 50px; height: 50px;
}

/* ==========================================================================
   AUDIO HUD
   ========================================================================== */
.audio-hud {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100;
}

.audio-hud-btn {
  background: var(--space-card);
  border: 1px solid var(--space-border);
  backdrop-filter: var(--glass-blur);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  color: var(--text-pure);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--glow-subtle);
  transition: border-color 0.2s, transform 0.2s;
}

.audio-hud-btn:hover {
  border-color: var(--stardust-gold);
  transform: scale(1.05);
}

.audio-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 14px;
}

.audio-wave span {
  width: 2.5px;
  height: 100%;
  background: var(--stardust-gold);
  border-radius: 2px;
  animation: audio-wave-anim 0.8s ease-in-out infinite alternate;
}

.audio-wave span:nth-child(1) { animation-delay: 0.1s; }
.audio-wave span:nth-child(2) { animation-delay: 0.3s; }
.audio-wave span:nth-child(3) { animation-delay: 0.2s; }
.audio-wave span:nth-child(4) { animation-delay: 0.4s; }

.audio-wave.paused span {
  animation: none;
  height: 3px;
}

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

/* ==========================================================================
   PERMANENT PANDA COMPANION STAGE ("Hoshi")
   ========================================================================== */
.panda-stage {
  position: fixed;
  bottom: 24px;
  right: 28px;
  width: 180px;
  height: 180px;
  z-index: 95;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.6s var(--ease-cinematic);
}

.panda-ambient-glow {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 138, 0.12) 0%, rgba(255, 107, 157, 0.06) 50%, transparent 75%);
  pointer-events: none;
  filter: blur(10px);
  animation: panda-aura-pulse 4s ease-in-out infinite alternate;
}

@keyframes panda-aura-pulse {
  from { opacity: 0.4; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1.1); }
}

.panda-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
  transform-origin: bottom center;
  transition: filter 0.3s;
}

.panda-wrapper:hover {
  filter: drop-shadow(0 0 18px rgba(255, 226, 138, 0.55));
}

.panda-speech-bubble {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(18, 9, 36, 0.95);
  border: 1px solid var(--space-border-glow);
  backdrop-filter: var(--glass-blur);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--stardust-gold);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-spring), transform 0.3s var(--ease-spring);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6), var(--glow-gold);
}

.panda-speech-bubble.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   00. LOCK SCREEN & COUNTDOWN
   ========================================================================== */
.lock-screen {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #0F0720 0%, var(--space-void) 100%);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  transition: opacity 1.2s var(--ease-cinematic), transform 1.2s var(--ease-cinematic);
  overflow: hidden;
}

.lock-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.mystery-dust {
  position: absolute;
  inset: -100px;
  background-image: 
    radial-gradient(1px 1px at 30px 40px, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1.5px 1.5px at 150px 95px, rgba(255, 226, 138, 0.6), transparent),
    radial-gradient(1px 1px at 280px 190px, rgba(200, 168, 255, 0.5), transparent),
    radial-gradient(1px 1px at 460px 80px, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1.5px 1.5px at 620px 230px, rgba(255, 226, 138, 0.55), transparent);
  background-size: 640px 320px;
  opacity: 0.45;
  animation: celestialGlowDrift 40s linear infinite;
}

@keyframes celestialGlowDrift {
  0% { transform: translateY(0); }
  100% { transform: translateY(-320px); }
}

.lock-screen.unlock-bloom {
  opacity: 0;
  transform: scale(1.08);
  pointer-events: none;
}

.lock-content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.lock-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cosmic-lavender);
}

.lock-signature {
  font-size: 0.72rem;
  color: rgba(200, 168, 255, 0.42);
  letter-spacing: 0.04em;
  font-style: italic;
  margin-top: -10px;
  margin-bottom: 2px;
  font-weight: 300;
  user-select: none;
}

.secret-hotspot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  margin: -14px 0 -14px -4px;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
  outline: none;
  transition: transform 0.35s var(--ease-spring), color 0.3s, filter 0.3s;
}

/* Invisible ~52px Hitbox ensuring reliable clickability with custom cursor */
.secret-hotspot::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  z-index: 10;
}

.secret-hotspot:focus-visible {
  outline: 1px solid rgba(255, 226, 138, 0.5);
  outline-offset: 3px;
}

.secret-hotspot:hover {
  transform: scale(1.45) rotate(45deg);
  color: var(--stardust-gold);
  filter: drop-shadow(0 0 12px var(--stardust-gold));
}

.lock-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  line-height: 1.2;
}

.lock-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.countdown-grid {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 12px 0;
}

.countdown-item {
  background: var(--space-card);
  border: 1px solid var(--space-border);
  backdrop-filter: var(--glass-blur);
  padding: 16px 20px;
  border-radius: var(--radius-card);
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-val {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--stardust-gold);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.2s ease;
}

.countdown-val.sec-tick {
  text-shadow: 0 0 10px rgba(255, 226, 138, 0.55);
}

.countdown-lbl {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.countdown-sep {
  font-size: 1.8rem;
  color: var(--text-whisper);
  font-weight: 300;
}

.lock-arrival-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.lock-hint {
  font-size: 0.85rem;
  color: var(--text-whisper);
}

.lock-date-sub {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: rgba(255, 226, 138, 0.45);
  font-weight: 400;
  user-select: none;
}

.lock-ps-note {
  font-size: 0.78rem;
  color: rgba(255, 168, 197, 0.52);
  letter-spacing: 0.02em;
  margin-top: 6px;
  font-weight: 300;
  user-select: none;
}

/* ==========================================================================
   SECRET PASSWORD MODAL
   ========================================================================== */
.password-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 11, 0.85);
  backdrop-filter: var(--glass-blur);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.password-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.password-card {
  background: linear-gradient(145deg, #1C0B35, #0D051C);
  border: 1px solid var(--space-border-glow);
  padding: 36px 32px;
  border-radius: var(--radius-card);
  max-width: 400px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), var(--glow-gold);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.password-icon {
  font-size: 2rem;
}

.password-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--stardust-gold);
}

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

.password-input {
  background: rgba(5, 2, 11, 0.7);
  border: 1px solid var(--space-border);
  border-radius: var(--radius-pill);
  padding: 12px 20px;
  color: var(--text-pure);
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 0.2em;
  outline: none;
  transition: border-color 0.2s;
}

.password-input:focus {
  border-color: var(--sakura-pink);
}

.password-error {
  font-size: 0.8rem;
  min-height: 18px;
}

.password-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-primary, .btn-secondary {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sakura-pink), var(--stardust-gold));
  border: none;
  color: var(--space-void);
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: var(--glow-gold);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--space-border);
  color: var(--text-muted);
}

/* ==========================================================================
   MAIN UNIVERSE CONTAINER & SECTIONS
   ========================================================================== */
.universe-container {
  position: relative;
  z-index: 10;
  max-width: 920px;
  margin: 0 auto;
  padding: 60px 24px 140px;
}

/* ── SCENE: THE AWAKENING ── */
.scene-opening {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  transition: opacity 1s var(--ease-cinematic), transform 1s var(--ease-cinematic);
}

.scene-opening.fade-out-scene {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

.opening-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 5;
}

.opening-star-sparkle {
  color: var(--stardust-gold);
  font-size: 1.5rem;
  animation: pulse-sparkle 2s ease-in-out infinite alternate;
}

@keyframes pulse-sparkle {
  from { transform: scale(0.8); opacity: 0.5; }
  to   { transform: scale(1.3); opacity: 1; filter: drop-shadow(0 0 10px var(--stardust-gold)); }
}

.opening-whisper {
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--cosmic-lavender);
}

.opening-main-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--stardust-gold) 60%, var(--sakura-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-enter-universe {
  margin-top: 15px;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.25), rgba(255, 226, 138, 0.25));
  border: 1px solid var(--space-border-glow);
  backdrop-filter: var(--glass-blur);
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  color: var(--text-pure);
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--glow-gold);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.btn-enter-universe:hover {
  transform: scale(1.06);
  box-shadow: 0 0 45px rgba(255, 226, 138, 0.6);
}

/* ==========================================================================
   SPATIAL RHYTHM & SCENE SYSTEM
   ========================================================================== */
.universe-chapter {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 0;
  margin-bottom: 100px;
  scroll-margin-top: 50px;
  position: relative;
}

.chapter-header {
  text-align: center;
  margin-bottom: 40px;
  max-width: 680px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.chapter-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--stardust-gold);
  background: rgba(255, 226, 138, 0.1);
  padding: 5px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 226, 138, 0.25);
  backdrop-filter: var(--glass-blur);
}

.chapter-title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-pure);
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.chapter-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.6;
}

/* ==========================================================================
   CHAPTER 01: HOW WE MET (TIMELINE CARD)
   ========================================================================== */
.timeline-card {
  position: relative;
  background: var(--space-card);
  border: 1px solid var(--space-border);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--glow-subtle);
  overflow: hidden;
}

.meta-row {
  display: flex;
  gap: 18px;
  font-size: 0.85rem;
  color: var(--cosmic-lavender);
}

.story-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #E2DCF0;
}

.story-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--stardust-gold);
  border-left: 2px solid var(--stardust-gold);
  padding-left: 18px;
  margin: 10px 0;
}

.memory-star-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--stardust-gold);
  background: rgba(255, 226, 138, 0.12);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

/* ==========================================================================
   CHAPTER 02: THE FIRST MEMORIES (VERTICAL STARLIGHT TIMELINE)
   ========================================================================== */
.memories-timeline-container {
  position: relative;
  width: 100%;
  max-width: 820px;
  margin: 40px auto 20px;
  padding: 20px 0;
}

.timeline-glowing-thread {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 226, 138, 0.45) 15%, rgba(255, 107, 157, 0.45) 85%, transparent 100%);
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(255, 226, 138, 0.5);
  pointer-events: none;
}

.memory-milestone-card {
  position: relative;
  width: calc(50% - 36px);
  margin-bottom: 38px;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring);
}

.memory-milestone-card.pos-left {
  margin-left: 0;
  margin-right: auto;
}

.memory-milestone-card.pos-right {
  margin-left: auto;
  margin-right: 0;
}

.timeline-node-pin {
  position: absolute;
  top: 24px;
  color: var(--stardust-gold);
  font-size: 1.2rem;
  text-shadow: 0 0 12px var(--stardust-gold);
  z-index: 5;
  transition: transform 0.3s var(--ease-spring);
}

.pos-left .timeline-node-pin { right: -42px; }
.pos-right .timeline-node-pin { left: -42px; }

.milestone-card-inner {
  background: var(--space-card);
  border: 1px solid var(--space-border);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-card);
  padding: 26px 22px;
  box-shadow: var(--glow-subtle);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s, transform 0.3s;
}

.memory-milestone-card:hover .milestone-card-inner {
  border-color: var(--stardust-gold);
  box-shadow: var(--glow-gold);
  transform: translateY(-4px);
}

.memory-milestone-card.is-expanded .milestone-card-inner {
  border-color: var(--stardust-gold);
  box-shadow: 0 0 35px rgba(255, 226, 138, 0.4), inset 0 0 20px rgba(255, 226, 138, 0.08);
  background: var(--space-card-hover);
}

.milestone-header {
  margin-bottom: 8px;
}

.milestone-date {
  font-size: 0.72rem;
  color: var(--cosmic-lavender);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.milestone-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--text-pure);
  margin-top: 4px;
}

.milestone-preview {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.milestone-expanded-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.45s ease-in-out, opacity 0.45s ease-in-out, margin 0.3s;
}

.memory-milestone-card.is-expanded .milestone-expanded-content {
  max-height: 600px;
  opacity: 1;
  margin-top: 16px;
}

.milestone-divider {
  text-align: center;
  color: var(--stardust-gold);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  margin: 10px 0;
  opacity: 0.6;
}

.milestone-story {
  font-size: 0.95rem;
  color: #E2DCF0;
  line-height: 1.6;
  font-family: var(--font-sans);
}

.milestone-media-placeholder {
  margin-top: 14px;
  background: rgba(5, 2, 11, 0.6);
  border: 1px dashed rgba(255, 226, 138, 0.25);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  color: var(--stardust-gold);
  font-size: 0.85rem;
}

.milestone-footer-hint {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--cosmic-lavender);
}

.milestone-footer-hint .hint-close { display: none; }
.memory-milestone-card.is-expanded .milestone-footer-hint .hint-open { display: none; }
.memory-milestone-card.is-expanded .milestone-footer-hint .hint-close { display: inline-block; color: var(--stardust-gold); }

/* ==========================================================================
   CHAPTER 03: SCRAPBOOK (PLAYFUL TIMELINE & DETAILS)
   ========================================================================== */
.scrapbook-stage {
  position: relative;
  width: 100%;
  max-width: 740px;
  margin: 40px auto 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.scrapbook-timeline-thread {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent 0%, rgba(200, 168, 255, 0.35) 20%, rgba(255, 179, 71, 0.35) 80%, transparent 100%);
  transform: translateX(-50%);
  pointer-events: none;
}

.scrapbook-item {
  width: 100%;
  max-width: 480px;
  position: relative;
  background: linear-gradient(145deg, #1C0B35, #120724);
  border: 1px solid var(--space-border);
  padding: 24px;
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s, border-color 0.3s;
}

.scrapbook-item.rot-left   { transform: rotate(-2deg); }
.scrapbook-item.rot-right  { transform: rotate(2deg); }
.scrapbook-item.rot-left-sm { transform: rotate(-1deg); }
.scrapbook-item.rot-right-sm { transform: rotate(2deg); }

.scrapbook-item:hover {
  transform: scale(1.05) rotate(0deg) !important;
  border-color: var(--sakura-pink);
  box-shadow: var(--glow-heart);
  z-index: 10;
}

.scrapbook-item.is-expanded {
  transform: rotate(0deg) scale(1.04) !important;
  border-color: var(--sakura-pink);
  box-shadow: var(--glow-heart);
  z-index: 10;
}

.scrapbook-pin {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: var(--space-abyss);
  border: 1px solid var(--stardust-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stardust-gold);
  font-size: 0.8rem;
  box-shadow: 0 0 10px rgba(255, 226, 138, 0.5);
  z-index: 4;
}

.scrapbook-thumb {
  background: rgba(5, 2, 11, 0.6);
  border-radius: var(--radius-sm);
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.scrapbook-time {
  font-size: 0.72rem;
  color: var(--stardust-gold);
  font-family: monospace;
}

.scrapbook-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 4px 0;
}

.scrapbook-snippet {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.scrapbook-expanded-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.3s;
}

.scrapbook-item.is-expanded .scrapbook-expanded-content {
  max-height: 400px;
  opacity: 1;
  margin-top: 14px;
}

.scrapbook-chat-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.chat-bubble {
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  max-width: 80%;
}

.chat-bubble.left {
  background: rgba(255, 255, 255, 0.08);
  align-self: flex-start;
  color: #FAF8FF;
}

.chat-bubble.right {
  background: rgba(255, 107, 157, 0.25);
  border: 1px solid rgba(255, 107, 157, 0.4);
  align-self: flex-end;
  color: var(--stardust-gold);
}

.scrapbook-joke-box {
  background: rgba(255, 179, 71, 0.12);
  border: 1px dashed rgba(255, 179, 71, 0.4);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.joke-quote {
  font-family: var(--font-handwritten);
  font-size: 1.25rem;
  color: var(--stardust-gold);
}

.scrapbook-panda-badge {
  background: rgba(200, 168, 255, 0.12);
  border: 1px solid rgba(200, 168, 255, 0.3);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  color: var(--stardust-gold);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.scrapbook-audio-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 28px;
  margin-bottom: 10px;
}

.scrapbook-audio-wave span {
  width: 4px;
  height: 60%;
  background: linear-gradient(to top, var(--sakura-pink), var(--stardust-gold));
  border-radius: 2px;
  animation: mw-wave-dance 1.2s ease-in-out infinite alternate;
}

.scrapbook-audio-wave span:nth-child(2) { animation-delay: 0.2s; }
.scrapbook-audio-wave span:nth-child(3) { animation-delay: 0.4s; }
.scrapbook-audio-wave span:nth-child(4) { animation-delay: 0.1s; }
.scrapbook-audio-wave span:nth-child(5) { animation-delay: 0.3s; }
.scrapbook-audio-wave span:nth-child(6) { animation-delay: 0.5s; }

.scrapbook-full-text {
  font-size: 0.9rem;
  color: #E2DCF0;
  line-height: 1.5;
}

.scrapbook-tap-hint {
  display: block;
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--cosmic-lavender);
}

/* ── Nostalgic Childhood Sub-Section (Physical Keepsake Framing) ── */
.childhood-sub-section {
  width: 100%;
  max-width: 760px;
  background: linear-gradient(150deg, rgba(28, 12, 52, 0.5) 0%, rgba(15, 6, 28, 0.6) 100%);
  border: 1px solid var(--space-border);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  margin-bottom: 30px;
}

.childhood-header {
  text-align: center;
  margin-bottom: 28px;
}

.childhood-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--stardust-gold);
  margin-bottom: 4px;
}

.childhood-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.childhood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  justify-items: center;
}

.childhood-card {
  width: 100%;
  max-width: 240px;
  background: #FCFBF7;
  border-radius: 6px;
  padding: 14px 14px 22px 14px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85);
  position: relative;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s;
}

.childhood-card[data-child-id="child-01"] { transform: rotate(-2.5deg); }
.childhood-card[data-child-id="child-02"] { transform: rotate(2.5deg); }

.childhood-card:hover {
  transform: scale(1.08) rotate(0deg) !important;
  box-shadow: 0 20px 55px rgba(255, 226, 138, 0.45);
  z-index: 10;
}

.childhood-frame {
  height: 145px;
  width: 100%;
  box-sizing: border-box;
  background: rgba(10, 4, 20, 0.95);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 226, 138, 0.2);
}

.childhood-age {
  font-size: 0.75rem;
  color: #7B6894;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  display: block;
}

.childhood-caption {
  font-family: var(--font-handwritten);
  font-size: 1.1rem;
  color: #2D1254;
  margin-top: 4px;
  line-height: 1.25;
}

.childhood-frame img.childhood-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 4px;
  display: block;
}

/* ── Chronological Growing-Up Journey Grid (All 6 Stages) ── */
.growing-up-journey-wrap {
  margin-top: 36px;
  width: 100%;
  border-top: 1px dashed rgba(255, 226, 138, 0.25);
  padding-top: 28px;
}

.growing-up-journey-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--stardust-gold);
  text-align: center;
  margin-bottom: 22px;
}

.growing-up-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  justify-items: center;
}

.growing-card {
  width: 100%;
  max-width: 210px;
  background: #FCFBF7;
  border-radius: 6px;
  padding: 12px 12px 18px 12px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85);
  position: relative;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.growing-card:nth-child(1) { transform: rotate(-2deg); }
.growing-card:nth-child(2) { transform: rotate(1.5deg); }
.growing-card:nth-child(3) { transform: rotate(-1.5deg); }
.growing-card:nth-child(4) { transform: rotate(2deg); }
.growing-card:nth-child(5) { transform: rotate(-2deg); }
.growing-card:nth-child(6) { transform: rotate(1.5deg); }

.growing-card:hover {
  transform: scale(1.08) rotate(0deg) !important;
  box-shadow: 0 18px 45px rgba(255, 226, 138, 0.45);
  z-index: 10;
}

.growing-frame {
  height: 145px;
  width: 100%;
  box-sizing: border-box;
  background: rgba(10, 4, 20, 0.95);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 226, 138, 0.2);
}

.growing-frame img.growing-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

/* Ensure View button stays pinned consistently at the bottom of the photo frame */
.growing-frame .btn-preview-photo,
.childhood-frame .btn-preview-photo {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  z-index: 4;
}

.growing-frame:hover .btn-preview-photo,
.childhood-frame:hover .btn-preview-photo {
  transform: translateX(-50%) scale(1.08) translateY(-1px);
}

.growing-stage-tag {
  font-size: 0.72rem;
  color: #7B6894;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  display: block;
}

.growing-caption {
  font-family: var(--font-handwritten);
  font-size: 1.05rem;
  color: #2D1254;
  margin-top: 4px;
  line-height: 1.2;
  flex-grow: 1;
}

.timeline-media-wrap {
  margin: 14px 0 6px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--space-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  background: #0D0A14;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 8px;
}

.timeline-screenshot-img {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  display: block;
}

.milestone-media-wrap {
  margin-top: 14px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 226, 138, 0.25);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
  background: #0D0A14;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 8px;
}

.milestone-screenshot-img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  display: block;
}

.clickable-photo {
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), filter 0.3s ease;
}

.clickable-photo:hover {
  transform: scale(1.02);
  filter: brightness(1.08);
}

.btn-preview-photo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 8px auto 2px;
  padding: 4px 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stardust-gold);
  background: rgba(30, 15, 58, 0.75);
  border: 1px solid rgba(255, 226, 138, 0.4);
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: all 0.25s var(--ease-spring);
  width: fit-content;
}

.btn-preview-photo:hover {
  background: rgba(255, 107, 157, 0.35);
  border-color: var(--stardust-gold);
  transform: scale(1.08) translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 226, 138, 0.45);
}

.featured-photo-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scrapbook-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.scrapbook-thumb img.scrapbook-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

.mw-view-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--stardust-gold);
  background: rgba(18, 9, 36, 0.85);
  border: 1px solid rgba(255, 226, 138, 0.4);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-top: 4px;
  transition: all 0.2s ease;
}

.mw-artifact:hover .mw-view-badge {
  background: rgba(255, 107, 157, 0.35);
  border-color: var(--stardust-gold);
  transform: scale(1.05);
}

.eyes-placeholder-badge {
  font-size: 0.75rem;
  color: var(--stardust-gold);
  opacity: 0.8;
  margin-top: 6px;
  display: block;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   CHAPTER 04: REASONS & CENTRAL HEART
   ========================================================================== */
.reasons-cloud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.reason-card {
  background: var(--space-card);
  border: 1px solid var(--space-border);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.3s var(--ease-spring), border-color 0.2s;
}

.reason-card:hover {
  transform: translateY(-4px);
  border-color: var(--sakura-pink);
}

.reason-card.expanded {
  border-color: var(--stardust-gold);
  background: var(--space-card-hover);
}

.reason-card.expanded .reason-full-text {
  display: block;
}

.reason-icon {
  font-size: 1.4rem;
}

.reason-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.reason-snippet {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.reason-full-text {
  display: none;
  margin-top: 8px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #FAF8FF;
  border-top: 1px dashed var(--space-border);
  padding-top: 8px;
}

/* ── Central Glowing Heart (Luminous Spatial Anchor) ── */
.central-heart-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-top: 50px;
  position: relative;
}

.central-glowing-heart {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring);
}

.central-glowing-heart::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.35) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse-halo 2.4s ease-in-out infinite alternate;
}

@keyframes pulse-halo {
  0%   { transform: scale(0.85); opacity: 0.5; }
  100% { transform: scale(1.25); opacity: 0.9; }
}

.central-glowing-heart:hover {
  transform: scale(1.2);
}

.heart-shape {
  font-size: 3.8rem;
  filter: drop-shadow(0 0 25px rgba(255, 107, 157, 0.9));
  animation: heart-beat 1.6s ease-in-out infinite;
  z-index: 2;
}

@keyframes heart-beat {
  0%   { transform: scale(1); }
  14%  { transform: scale(1.12); }
  28%  { transform: scale(1); }
  42%  { transform: scale(1.08); }
  70%  { transform: scale(1); }
}

.heart-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  max-width: 580px;
  color: var(--stardust-gold);
  line-height: 1.6;
  text-shadow: 0 0 20px rgba(255, 226, 138, 0.35);
}

/* ==========================================================================
   CHAPTER 05: MAKE A WISH (CAKE & CANDLES)
   ========================================================================== */
.cake-ritual-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 40px 0;
}

.cake-candles-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: -4px;
  z-index: 2;
}

.cake-candle {
  width: 10px;
  height: 48px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cake-candle.tall {
  height: 60px;
}

.candle-stick {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(45deg, #FF6B9D, #FF6B9D 4px, #FFE28A 4px, #FFE28A 8px);
  border-radius: 4px;
}

.candle-flame {
  width: 14px;
  height: 22px;
  background: radial-gradient(circle at bottom, #FFE28A 0%, #FF6B9D 70%, transparent 100%);
  border-radius: 50% 50% 20% 20%;
  filter: drop-shadow(0 0 10px #FFE28A);
  animation: flame-dance 0.2s ease-in-out infinite alternate;
  margin-bottom: -2px;
}

@keyframes flame-dance {
  0%   { transform: scale(1) rotate(-2deg); }
  100% { transform: scale(1.08) rotate(3deg); }
}

.cake-candle.extinguished .candle-flame {
  display: none;
}

.cake-candle.extinguished .candle-smoke {
  width: 4px;
  height: 30px;
  background: rgba(255, 226, 138, 0.4);
  border-radius: 50%;
  filter: blur(2px);
  animation: smoke-rise 1.5s forwards;
}

@keyframes smoke-rise {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-30px) scale(2.5); }
}

/* ── Cake Pastry Body ── */
.cake-pastry-body {
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cake-tier.top {
  width: 160px;
  height: 46px;
  background: linear-gradient(180deg, #3A1666 0%, #200D3D 100%);
  border: 1px solid var(--space-border);
  border-radius: 14px 14px 0 0;
  position: relative;
}

.frosting-pearls {
  position: absolute;
  top: -4px;
  left: 0; right: 0;
  display: flex;
  justify-content: space-around;
}

.frosting-pearls span {
  width: 12px; height: 12px;
  background: var(--sakura-pink);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--sakura-pink);
}

.cake-tier.middle {
  width: 210px;
  height: 52px;
  background: linear-gradient(180deg, #2D1254 0%, #17082E 100%);
  border: 1px solid var(--space-border);
  border-radius: 12px 12px 0 0;
}

.cake-tier.bottom {
  width: 260px;
  height: 58px;
  background: linear-gradient(180deg, #220B42 0%, #100420 100%);
  border: 1px solid var(--space-border);
  border-radius: 12px 12px 0 0;
}

.cake-pedestal {
  width: 300px;
  height: 12px;
  background: linear-gradient(90deg, #FFE28A, #FFB347, #FFE28A);
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.cake-controls {
  text-align: center;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn-blow-candles {
  background: linear-gradient(135deg, var(--sakura-pink), var(--stardust-gold));
  border: none;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  color: var(--space-void);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--glow-gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-blow-candles:hover {
  transform: scale(1.05);
  box-shadow: 0 0 45px rgba(255, 226, 138, 0.6);
}

/* Active Mic Listening Indicator */
.mic-listening-indicator {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(25, 12, 48, 0.85);
  border: 1px solid var(--space-border-glow);
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 0 25px rgba(255, 107, 157, 0.4);
  position: relative;
}

.mic-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 107, 157, 0.5);
  animation: mic-breath-pulse 1.6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes mic-breath-pulse {
  0% { transform: scale(0.96); opacity: 0.4; }
  100% { transform: scale(1.08); opacity: 0.9; box-shadow: 0 0 20px rgba(255, 107, 157, 0.7); }
}

.mic-listen-icon {
  font-size: 1.3rem;
  animation: mic-icon-float 2s ease-in-out infinite alternate;
}

@keyframes mic-icon-float {
  from { transform: translateY(-2px); }
  to { transform: translateY(2px); }
}

.mic-listen-txt {
  font-size: 0.95rem;
  color: var(--stardust-gold);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Mic Denied / Fallback Block */
.mic-fallback-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.mic-fallback-hint {
  font-size: 0.92rem;
  color: var(--sakura-light);
  font-family: var(--font-handwritten);
  font-size: 1.2rem;
}

.btn-blow-fallback {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--space-border-glow);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  color: var(--stardust-gold);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s var(--ease-spring), background 0.25s, box-shadow 0.25s;
}

.btn-blow-fallback:hover {
  transform: scale(1.06);
  background: rgba(45, 18, 84, 0.85);
  box-shadow: 0 0 30px rgba(255, 226, 138, 0.5);
}

/* Celebration & Wish Writing Card */
.cake-celebration-block {
  text-align: center;
  margin-top: 36px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.8s, transform 0.8s;
  pointer-events: none;
  width: 100%;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.cake-celebration-block.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.celebration-heading {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--stardust-gold);
}

.celebration-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Magical Wish Writing Card */
.wish-writing-card {
  position: relative;
  margin-top: 28px;
  background: linear-gradient(150deg, rgba(28, 12, 52, 0.75) 0%, rgba(14, 5, 26, 0.85) 100%);
  border: 1px solid var(--space-border-glow);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), var(--glow-gold);
  backdrop-filter: var(--glass-blur);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s;
}

.wish-card-sparkle {
  color: var(--stardust-gold);
  font-size: 1.3rem;
  text-shadow: 0 0 10px var(--stardust-gold);
}

.wish-card-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--stardust-gold);
}

.wish-card-prompt {
  font-size: 0.95rem;
  color: #E2DCF0;
  line-height: 1.4;
}

.wish-input-textarea {
  width: 100%;
  background: rgba(5, 2, 11, 0.7);
  border: 1px solid var(--space-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  color: var(--text-pure);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 90px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  user-select: text !important;
}

.wish-input-textarea:focus {
  border-color: var(--sakura-pink);
  box-shadow: 0 0 20px rgba(255, 107, 157, 0.35);
}

.btn-send-wish {
  background: linear-gradient(135deg, var(--sakura-pink), var(--stardust-gold));
  border: none;
  padding: 12px 30px;
  border-radius: var(--radius-pill);
  color: var(--space-void);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--glow-gold);
  transition: transform 0.25s var(--ease-spring), opacity 0.25s, box-shadow 0.25s;
  margin-top: 4px;
}

.btn-send-wish:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.btn-send-wish:not(:disabled):hover {
  transform: scale(1.06);
  box-shadow: 0 0 35px rgba(255, 226, 138, 0.65);
}

.wish-sent-confirmation {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: wish-confirm-appear 0.8s var(--ease-cinematic) forwards;
}

@keyframes wish-confirm-appear {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.wish-sent-star {
  font-size: 1.5rem;
  color: var(--stardust-gold);
  text-shadow: 0 0 15px var(--stardust-gold);
  animation: wish-star-ascend 1.8s ease-out forwards;
}

@keyframes wish-star-ascend {
  0% { transform: scale(0.6) translateY(0); opacity: 1; }
  60% { transform: scale(1.4) translateY(-30px); opacity: 0.9; }
  100% { transform: scale(1) translateY(-60px); opacity: 0; }
}

.wish-sent-msg {
  font-family: var(--font-handwritten);
  font-size: 1.4rem;
  color: var(--stardust-gold);
  text-shadow: 0 0 15px rgba(255, 226, 138, 0.5);
}

/* ==========================================================================
   INTERLUDE: LUXURY LETTER & VOICE NOTE
   ========================================================================== */
.voice-note-card {
  background: var(--space-card);
  border: 1px solid var(--space-border);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.voice-play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--stardust-gold);
  border: none;
  color: var(--space-void);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.voice-play-btn:hover {
  transform: scale(1.1);
}

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

.voice-title {
  font-size: 0.9rem;
  font-weight: 500;
}

.voice-dur {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.letter-parchment {
  position: relative;
  background: linear-gradient(145deg, #1C0A35, #110524);
  border: 1px solid rgba(255, 226, 138, 0.3);
  border-radius: var(--radius-card);
  padding: 50px 42px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), var(--glow-gold);
}

.letter-seal-stamp {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 48px;
  height: 48px;
  background: rgba(255, 107, 157, 0.2);
  border: 1px solid var(--sakura-pink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.letter-salutation {
  font-family: var(--font-handwritten);
  font-size: 2.2rem;
  color: var(--stardust-gold);
  margin-bottom: 20px;
}

.letter-body {
  font-family: var(--font-handwritten);
  font-size: 1.6rem;
  line-height: 1.8;
  color: #FAF8FF;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.letter-signature-block {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-handwritten);
  font-size: 1.8rem;
  color: var(--stardust-gold);
}

.btn-reveal-letter {
  margin-top: 24px;
  background: transparent;
  border: 1px solid var(--space-border);
  color: var(--cosmic-lavender);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-reveal-letter:hover {
  border-color: var(--stardust-gold);
  color: var(--stardust-gold);
}

/* ==========================================================================
   FINAL SCENE: CONSTELLATION METAMORPHOSIS & CLOSING MIRROR
   ========================================================================== */
.finale-frame {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.featured-photo-placeholder {
  width: 100%;
  max-width: 520px;
  height: 300px;
  background: rgba(18, 9, 36, 0.6);
  border: 1px solid var(--space-border-glow);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stardust-gold);
  font-size: 1.1rem;
}

.finale-frame {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.finale-frame.fading-out-frame {
  opacity: 0;
  transform: translateY(-20px) scale(0.96);
  transition: opacity 0.8s var(--ease-cinematic), transform 0.8s var(--ease-cinematic);
}

.featured-photo-placeholder {
  width: 100%;
  max-width: 480px;
  height: 280px;
  background: var(--space-card);
  border: 1px dashed var(--space-border-glow);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stardust-gold);
  font-size: 1.1rem;
}

.finale-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.finale-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.btn-trigger-finale {
  margin-top: 15px;
  background: linear-gradient(135deg, var(--sakura-pink), var(--stardust-gold));
  border: none;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  color: var(--space-void);
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--glow-gold);
  transition: transform 0.2s;
}

.btn-trigger-finale:hover {
  transform: scale(1.05);
}

/* ── V7 Starlight Sky Stage & Prose ── */
.starlight-sky-stage {
  min-height: 480px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1.2s var(--ease-cinematic), transform 1.2s var(--ease-cinematic);
}

.starlight-sky-stage.visible {
  opacity: 1;
  transform: translateY(0);
}

.starlight-prose-container {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  pointer-events: none;
  z-index: 10;
}

.weave-prose-line {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  font-style: italic;
  font-weight: 400;
  color: var(--stardust-gold);
  text-shadow: 0 0 25px rgba(255, 226, 138, 0.45);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1.4s var(--ease-cinematic), transform 1.4s var(--ease-cinematic);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.weave-prose-line.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Floating interactive memory tooltip on star hover/click */
.star-memory-tooltip {
  position: fixed;
  z-index: 150;
  background: rgba(18, 9, 36, 0.92);
  border: 1px solid var(--space-border-glow);
  backdrop-filter: var(--glass-blur);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--stardust-gold);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), var(--glow-gold);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px) scale(0.95);
  transition: opacity 0.3s var(--ease-cinematic), transform 0.3s var(--ease-spring);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.star-memory-tooltip.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.star-tooltip-sparkle {
  color: var(--stardust-gold);
  font-size: 0.9rem;
}

/* Subtle Sunflower Moment */
.starlight-sunflower-moment {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  background: rgba(25, 12, 48, 0.7);
  border: 1px solid rgba(255, 226, 138, 0.25);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-pill);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.2s var(--ease-cinematic), transform 1.2s var(--ease-spring);
  z-index: 10;
}

.starlight-sunflower-moment.visible {
  opacity: 1;
  transform: translateY(0);
}

.starlight-sunflower-icon {
  animation: sf-gentle-breathe 3s ease-in-out infinite alternate;
}

@keyframes sf-gentle-breathe {
  0% { transform: rotate(0deg) scale(0.95); }
  100% { transform: rotate(10deg) scale(1.08); filter: drop-shadow(0 0 10px rgba(255, 226, 138, 0.6)); }
}

.starlight-sunflower-note {
  font-family: var(--font-handwritten);
  font-size: 1.25rem;
  color: var(--stardust-gold);
}

/* Starlight Interlude Section */
.chapter-starlight {
  text-align: center;
  margin-bottom: 90px;
}

.starlight-intro-frame {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.starlight-heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--stardust-gold);
}

.starlight-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Interactive Constellation Cluster Centerpiece */
.starlight-constellation-cluster {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 240px;
  margin: 24px auto;
}

.starlight-cluster-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.starlight-cluster-line {
  stroke: rgba(255, 226, 138, 0.25);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  transition: stroke 0.3s, stroke-width 0.3s, filter 0.3s;
}

.starlight-cluster-line.active {
  stroke: var(--stardust-gold);
  stroke-width: 2.5;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 8px var(--stardust-gold));
}

.starlight-node-star {
  position: absolute;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.3s var(--ease-spring);
}

.starlight-node-star:hover,
.starlight-node-star.active {
  transform: translate(-50%, -50%) scale(1.4);
}

.starlight-node-star .star-core {
  color: var(--stardust-gold);
  font-size: 1.25rem;
  text-shadow: 0 0 10px var(--stardust-gold);
  z-index: 2;
}

.starlight-node-star .star-halo {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: rgba(255, 226, 138, 0.2);
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

.starlight-node-star:hover .star-halo,
.starlight-node-star.active .star-halo {
  opacity: 1;
  transform: scale(1.3);
}

.btn-trigger-starlight {
  background: linear-gradient(135deg, rgba(200, 168, 255, 0.2), rgba(255, 226, 138, 0.25));
  border: 1px solid var(--space-border-glow);
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  color: var(--stardust-gold);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(255, 226, 138, 0.25);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, background 0.3s;
  margin-top: 10px;
}

.btn-trigger-starlight:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, rgba(200, 168, 255, 0.35), rgba(255, 226, 138, 0.4));
  box-shadow: 0 0 45px rgba(255, 226, 138, 0.5);
}

/* Starlight Sky Stage (In-Environment Night Sky) */
.starlight-sky-stage {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* Continue Our Journey Button */
.starlight-continue-block {
  margin-top: 40px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s var(--ease-cinematic), transform 1s var(--ease-spring);
  z-index: 10;
}

.starlight-continue-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.btn-continue-journey {
  background: linear-gradient(135deg, rgba(255, 226, 138, 0.25), rgba(255, 107, 157, 0.2));
  border: 1px solid var(--space-border-glow);
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  color: var(--stardust-gold);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(255, 226, 138, 0.3);
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
}

.btn-continue-journey:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(255, 226, 138, 0.55);
}

/* Floating Mini Hearts for Heart Click */
.floating-mini-heart {
  position: fixed;
  pointer-events: none;
  font-size: 1.3rem;
  z-index: 500;
  animation: float-mini-heart 1.8s ease-out forwards;
}

@keyframes float-mini-heart {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(0.6);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx, 0px), var(--ty, -60px)) scale(1.3);
    filter: drop-shadow(0 0 10px #FF6B9D);
  }
}

/* Final True Climax Section (Recomposed Centered Scene with Cupid) */
.chapter-finale {
  min-height: 95vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-panda-scene {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.final-panda-scene.visible {
  opacity: 1;
}

.final-scene-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  position: relative;
}

@media (min-width: 900px) {
  .final-scene-layout {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 48px;
  }
}

.final-constellation-stage {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.final-heart-canvas {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-card);
  filter: drop-shadow(0 0 25px rgba(255, 107, 157, 0.4));
}

/* Subtle Elegant Glowing Cupid Element */
.final-cupid-element {
  position: absolute;
  right: -8px;
  top: 14px;
  z-index: 10;
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transition: opacity 1.2s var(--ease-cinematic), transform 1.2s var(--ease-spring);
  pointer-events: none;
}

.final-cupid-element.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cupid-svg {
  filter: drop-shadow(0 0 14px rgba(255, 226, 138, 0.65));
}

/* Cupid Glowing Arrow */
.cupid-arrow {
  position: absolute;
  right: 54px;
  top: 42px;
  transform-origin: right center;
  opacity: 0;
  transition: transform 0.85s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.35s ease;
  pointer-events: none;
}

.cupid-arrow.flying {
  opacity: 1;
  transform: translate(-145px, 42px) rotate(16deg);
}

.cupid-arrow.landed {
  opacity: 0.9;
  transform: translate(-145px, 42px) rotate(16deg);
}

.cupid-arrow-sparkle {
  position: absolute;
  right: -6px;
  top: -8px;
  font-size: 1.2rem;
  color: var(--stardust-gold);
  text-shadow: 0 0 16px var(--stardust-gold);
  animation: arrow-sparkle-burst 0.7s ease-out forwards;
}

@keyframes arrow-sparkle-burst {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.6); opacity: 1; filter: drop-shadow(0 0 18px #FFE28A); }
  100% { transform: scale(1); opacity: 0.9; }
}

.final-text-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 440px;
}

@media (min-width: 900px) {
  .final-text-reveal {
    align-items: flex-start;
    text-align: left;
  }
}

.final-lead-line {
  font-family: var(--font-handwritten);
  font-size: 1.5rem;
  color: var(--cosmic-lavender);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.4s var(--ease-cinematic), transform 1.4s var(--ease-cinematic);
}

.final-lead-line.revealed {
  opacity: 1;
  transform: translateY(0);
}

.final-dishu-line {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--stardust-gold);
  text-shadow: 0 0 30px rgba(255, 226, 138, 0.6);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.4s var(--ease-cinematic), transform 1.4s var(--ease-cinematic);
}

.final-dishu-line.revealed {
  opacity: 1;
  transform: translateY(0);
}

.final-love-line {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  color: var(--sakura-pink);
  text-shadow: 0 0 35px rgba(255, 107, 157, 0.7);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.4s var(--ease-cinematic), transform 1.4s var(--ease-cinematic);
}

.final-love-line.revealed {
  opacity: 1;
  transform: translateY(0);
}

.final-future-line {
  font-size: 1.3rem;
  color: var(--stardust-gold);
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.4s var(--ease-cinematic), transform 1.4s var(--ease-cinematic);
}

.final-future-line.revealed {
  opacity: 1;
  transform: translateY(0);
}

.universe-footer {
  text-align: center;
  margin-top: 80px;
  font-size: 0.8rem;
  color: var(--text-whisper);
}

/* ==========================================================================
   FULLSCREEN MEMORY KEEPSAKE MODAL
   ========================================================================== */
.memory-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 11, 0.9);
  backdrop-filter: var(--glass-blur);
  z-index: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.memory-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.memory-modal-card {
  position: relative;
  background: linear-gradient(145deg, #1C0A35, #0E0520);
  border: 1px solid var(--space-border-glow);
  border-radius: var(--radius-card);
  max-width: 580px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  padding: 36px;
  box-shadow: 0 20px 80px rgba(0,0,0,0.9), var(--glow-gold);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255,255,255,0.1);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--text-pure);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  z-index: 10;
}

.modal-photobomb {
  position: absolute;
  top: -24px;
  left: 24px;
  font-size: 2.2rem;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s var(--ease-spring), transform 0.4s var(--ease-spring);
}

.modal-photobomb.peeking {
  opacity: 1;
  transform: translateY(0);
}

.modal-photo-area {
  width: 100%;
  min-height: 220px;
  background: rgba(5, 2, 11, 0.8);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#modal-photo-img {
  max-width: 100%;
  max-height: 52vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  display: block;
  margin: 0 auto;
}

.modal-photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.placeholder-icon {
  font-size: 2rem;
}

.placeholder-label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--stardust-gold);
}

.placeholder-hint {
  font-size: 0.9rem;
}

.modal-text-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-date {
  font-size: 0.75rem;
  color: var(--sakura-pink);
  text-transform: uppercase;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
}

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

.modal-story-divider {
  color: var(--stardust-gold);
  font-size: 0.8rem;
  margin: 6px 0;
}

.modal-story {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #E2DCF0;
}

/* ==========================================================================
   V6 — HIDDEN SUNFLOWER DISCOVERIES
   ========================================================================== */

.hidden-sunflower {
  position: absolute;
  opacity: 0.18;
  cursor: pointer;
  transition: opacity 0.5s, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.4s;
  z-index: 5;
  pointer-events: auto;
  user-select: none;
  border-radius: 50%;
}

/* Default placements — overridden per-chapter below */
.hidden-sunflower {
  bottom: 12px;
  right: 14px;
}

/* Chapter 1: bottom-right corner of timeline card */
.timeline-card > .hidden-sunflower {
  bottom: 10px;
  right: 12px;
}

/* Chapter 2: bottom-left of memory card */
.memory-star-card > .hidden-sunflower {
  bottom: 6px;
  left: 8px;
  right: auto;
}

/* Chapter 3: scrapbook corner */
.scrapbook-hidden-sf {
  bottom: 16px;
  left: 12px;
  right: auto;
}

/* Chapter 4: beside heart quote */
.heart-hidden-sf {
  top: -14px;
  left: 8px;
  bottom: auto;
  right: auto;
}

/* Chapter 5: beside cake */
.cake-hidden-sf {
  bottom: 8px;
  left: 16px;
  right: auto;
}

/* Letter margin */
.letter-hidden-sf {
  top: 18px;
  right: 18px;
  bottom: auto;
}

/* Beside Panda companion corner stage */
.panda-hidden-sf {
  top: 10px;
  left: 6px;
  bottom: auto;
  right: auto;
  z-index: 92;
}

/* Hover: slightly more visible */
.hidden-sunflower:hover {
  opacity: 0.5;
  transform: scale(1.2) rotate(10deg);
}

/* Discovered state: permanently slightly visible */
.hidden-sunflower.discovered {
  opacity: 0.38;
  pointer-events: none; /* No need to interact again */
}

/* Bloom animation: triggered on click */
.hidden-sunflower.blooming {
  animation: sf-bloom 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes sf-bloom {
  0%   { transform: scale(1) rotate(0deg); filter: brightness(1); }
  40%  { transform: scale(1.8) rotate(15deg); filter: brightness(2) drop-shadow(0 0 12px rgba(255,226,138,0.9)); }
  70%  { transform: scale(1.4) rotate(-5deg); filter: brightness(1.5) drop-shadow(0 0 8px rgba(255,226,138,0.6)); }
  100% { transform: scale(1.1) rotate(0deg); filter: brightness(1); opacity: 0.38; }
}

/* ==========================================================================
   V6 — HANDWRITTEN MARGIN NOTES
   ========================================================================== */

.handwritten-note {
  position: fixed;
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 226, 138, 0.88);
  pointer-events: none;
  z-index: 200;
  opacity: 0;
  transform: rotate(-4deg) translateY(8px);
  transition: opacity 0.6s var(--ease-cinematic), transform 0.6s var(--ease-spring);
  text-shadow: 0 0 16px rgba(255, 226, 138, 0.5);
  white-space: nowrap;
  /* Make it feel like ink on paper, not a UI element */
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.handwritten-note.visible {
  opacity: 1;
  transform: rotate(-3deg) translateY(0);
}

.handwritten-note.fading {
  opacity: 0;
  transform: rotate(-2deg) translateY(-12px);
}

/* ==========================================================================
   V8 — SUBTLE MEMORY WORLD PUZZLE LAYER
   ========================================================================== */

/* ── 1. Constellation Sequence Discovery Puzzle (Chapter 02) ── */
.constellation-puzzle-cluster {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 90px;
  margin: 10px auto 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 40px;
  user-select: none;
}

.puzzle-line-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.puzzle-line-draw {
  stroke: rgba(255, 226, 138, 0.7);
  stroke-width: 2;
  stroke-dasharray: 6 3;
  animation: line-glow-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes line-glow-pulse {
  from { stroke: rgba(255, 226, 138, 0.5); filter: drop-shadow(0 0 2px var(--stardust-gold)); }
  to   { stroke: rgba(255, 226, 138, 0.95); filter: drop-shadow(0 0 8px var(--stardust-gold)); }
}

.puzzle-star-node {
  position: relative;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(25, 12, 48, 0.55);
  border: 1px solid rgba(200, 168, 255, 0.28);
  backdrop-filter: var(--glass-blur);
  transition: transform 0.3s var(--ease-spring), border-color 0.3s, box-shadow 0.3s;
}

.puzzle-star-glyph {
  color: var(--cosmic-lavender);
  font-size: 1.15rem;
  opacity: 0.65;
  transition: color 0.3s, transform 0.3s var(--ease-spring), opacity 0.3s;
}

.puzzle-star-node:hover {
  transform: scale(1.25);
  border-color: var(--stardust-gold);
  box-shadow: 0 0 18px rgba(255, 226, 138, 0.45);
}

.puzzle-star-node:hover .puzzle-star-glyph {
  color: var(--stardust-gold);
  opacity: 1;
}

/* Clue Twinkle (Subtle rhythmic cue) */
.puzzle-star-node.clue-twinkle .puzzle-star-glyph {
  color: var(--stardust-gold);
  opacity: 1;
  transform: scale(1.35);
  text-shadow: 0 0 14px var(--stardust-gold);
}

/* Active Sequence Step */
.puzzle-star-node.active-seq {
  border-color: var(--stardust-gold);
  box-shadow: 0 0 22px rgba(255, 226, 138, 0.65);
  background: rgba(255, 226, 138, 0.18);
}

.puzzle-star-node.active-seq .puzzle-star-glyph {
  color: var(--stardust-gold);
  opacity: 1;
  transform: scale(1.25);
}

/* Permanent Lit State on Solve */
.puzzle-star-node.permanently-lit {
  border-color: var(--stardust-gold);
  box-shadow: 0 0 25px rgba(255, 226, 138, 0.7);
  pointer-events: none;
}

.puzzle-star-node.permanently-lit .puzzle-star-glyph {
  color: var(--stardust-gold);
  opacity: 1;
  text-shadow: 0 0 16px var(--stardust-gold);
}

.puzzle-star-node.hint-pulse {
  animation: hint-star-pulse 1.2s ease-in-out 2;
}

@keyframes hint-star-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.35); border-color: var(--stardust-gold); box-shadow: 0 0 18px var(--stardust-gold); }
}

/* ── 2. Sunflower Compass Clue Objects (Chapter 03) ── */
.compass-sunflower {
  position: absolute;
  cursor: pointer;
  opacity: 0.35;
  transition: transform 0.5s var(--ease-spring), opacity 0.4s, filter 0.4s;
  z-index: 6;
}

/* Orientations pointing toward focal intersection point */
.compass-sf-1 {
  top: -12px;
  left: 28px;
  transform: rotate(48deg);
}

.compass-sf-2 {
  bottom: 18px;
  left: 80px;
  transform: rotate(-32deg);
}

.compass-sf-3 {
  top: 45%;
  right: 18px;
  transform: rotate(175deg);
}

.compass-sunflower:hover,
.compass-sunflower.focusing {
  opacity: 0.85;
  filter: drop-shadow(0 0 10px rgba(255, 179, 71, 0.7));
}

.compass-sunflower.bloomed-in-unison {
  opacity: 0.75;
  filter: drop-shadow(0 0 12px rgba(255, 226, 138, 0.8));
  pointer-events: none;
}

/* Hidden Focal Target Blossom */
.sunflower-compass-secret {
  position: absolute;
  top: 50%;
  left: 48%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.15;
  transition: opacity 0.4s, transform 0.4s var(--ease-spring);
  z-index: 8;
}

.compass-target-glyph {
  color: var(--stardust-gold);
  font-size: 1.05rem;
}

.sunflower-compass-secret:hover {
  opacity: 0.65;
  transform: translate(-50%, -50%) scale(1.3);
}

.sunflower-compass-secret.discovered {
  opacity: 0.85;
  pointer-events: none;
  animation: target-bloom-flourish 0.8s var(--ease-spring) forwards;
}

@keyframes target-bloom-flourish {
  0% { transform: translate(-50%, -50%) scale(0.5); }
  60% { transform: translate(-50%, -50%) scale(1.6); filter: drop-shadow(0 0 16px var(--stardust-gold)); }
  100% { transform: translate(-50%, -50%) scale(1.2); }
}

/* ── 3. Panda-Guided Discovery Node (Chapter 04) ── */
.panda-guided-node {
  position: absolute;
  top: 24px;
  left: 32px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.14;
  transition: opacity 0.4s, transform 0.4s var(--ease-spring);
  z-index: 10;
}

.panda-node-glyph {
  color: var(--stardust-gold);
  font-size: 1.1rem;
}

.panda-guided-node:hover {
  opacity: 0.7;
  transform: scale(1.3);
}

.panda-guided-node.subtle-shimmer {
  opacity: 0.55;
  transform: scale(1.25);
  filter: drop-shadow(0 0 12px var(--stardust-gold));
}

.panda-guided-node.discovered {
  opacity: 0.85;
  pointer-events: none;
  filter: drop-shadow(0 0 14px rgba(255, 107, 157, 0.8));
}

/* ==========================================================================
   MAKE A WISH CONSENT MODAL
   ========================================================================== */
.wish-consent-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 11, 0.88);
  backdrop-filter: var(--glass-blur);
  z-index: 650;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-cinematic);
}

.wish-consent-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.wish-consent-card {
  background: linear-gradient(150deg, #200D3D 0%, #100622 100%);
  border: 1px solid var(--space-border-glow);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  max-width: 480px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  text-align: center;
  box-shadow: 0 25px 70px rgba(0,0,0,0.9), var(--glow-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: scale(0.92);
  transition: transform 0.35s var(--ease-spring);
}

.wish-consent-modal.visible .wish-consent-card {
  transform: scale(1);
}

.wish-icon-glow {
  font-size: 2.8rem;
  filter: drop-shadow(0 0 16px var(--stardust-gold));
  animation: float-slow 3s ease-in-out infinite alternate;
}

@keyframes float-slow {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}

.wish-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--stardust-gold);
}

.wish-desc {
  font-size: 0.95rem;
  color: #E2DCF0;
  line-height: 1.6;
}

.wish-choice-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
}

.btn-wish-primary, .btn-wish-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}

.btn-wish-primary {
  background: linear-gradient(135deg, var(--sakura-pink), var(--stardust-gold));
  border: none;
  color: var(--space-void);
  box-shadow: var(--glow-gold);
}

.btn-wish-primary:hover {
  transform: scale(1.04);
  box-shadow: 0 0 35px rgba(255, 226, 138, 0.6);
}

.btn-wish-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--space-border);
  color: var(--text-pure);
}

.btn-wish-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--stardust-gold);
  transform: scale(1.03);
}

.btn-wish-cancel {
  background: transparent;
  border: none;
  color: var(--text-whisper);
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 6px;
  transition: color 0.2s;
}

.btn-wish-cancel:hover {
  color: var(--text-muted);
}

#mic-status-hint.listening {
  color: var(--aurora-cyan);
  font-weight: 500;
  animation: pulse-mic 1.5s ease-in-out infinite;
}

@keyframes pulse-mic {
  0%   { opacity: 0.7; transform: scale(0.98); }
  50%  { opacity: 1; transform: scale(1.02); filter: drop-shadow(0 0 10px var(--aurora-cyan)); }
  100% { opacity: 0.7; transform: scale(0.98); }
}

/* ==========================================================================
   🌌 THE MEMORY WORLD (EXPLORABLE SPATIAL ENVIRONMENT)
   ========================================================================== */

/* Portal Button inside Chapter 03 */
.memory-world-portal-block {
  text-align: center;
  margin: 40px auto 10px;
}

.btn-enter-memory-world {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(107, 33, 168, 0.4), rgba(255, 179, 71, 0.35));
  border: 1px solid var(--space-border-glow);
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  color: var(--stardust-gold);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 0 35px rgba(107, 33, 168, 0.5), var(--glow-gold);
  backdrop-filter: var(--glass-blur);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, background 0.3s;
}

.btn-enter-memory-world:hover {
  transform: scale(1.06);
  box-shadow: 0 0 55px rgba(255, 226, 138, 0.65);
  background: linear-gradient(135deg, rgba(107, 33, 168, 0.6), rgba(255, 179, 71, 0.5));
}

.mw-portal-icon {
  font-size: 1.4rem;
  animation: mw-pulse-spin 6s linear infinite;
}

@keyframes mw-pulse-spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.15); filter: drop-shadow(0 0 8px var(--stardust-gold)); }
  100% { transform: rotate(360deg) scale(1); }
}

/* Fullscreen Spatial Viewport */
.memory-world-container {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, #15082E 0%, #06020D 100%);
  z-index: 600;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s var(--ease-cinematic);
  cursor: grab;
}

.memory-world-container.visible {
  opacity: 1;
  pointer-events: auto;
}

.memory-world-container:active {
  cursor: grabbing;
}

.memory-world-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.memory-world-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 1800px;
  height: 2200px;
  transform-origin: 0 0;
  will-change: transform;
  z-index: 2;
}

/* Floating Return Button */
.btn-return-world {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 20;
  background: rgba(25, 12, 48, 0.75);
  border: 1px solid var(--space-border-glow);
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  color: var(--stardust-gold);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: var(--glass-blur);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s var(--ease-spring), background 0.25s, box-shadow 0.25s;
}

.btn-return-world:hover {
  transform: scale(1.06);
  background: rgba(45, 18, 84, 0.9);
  box-shadow: 0 0 25px rgba(255, 226, 138, 0.4);
}

/* Celestial Tree SVG Background */
.life-tree-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 1800px;
  height: 2200px;
  pointer-events: none;
  z-index: 1;
}

/* Celestial Memory Life Tree Nodes (Leaves / Blooms) */
.tree-memory-node {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  user-select: none;
  z-index: 5;
  transition: transform 0.35s var(--ease-spring), filter 0.35s ease;
}

.tree-node-leaf {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 8, 36, 0.88);
  border: 1px solid rgba(255, 226, 138, 0.3);
  backdrop-filter: var(--glass-blur);
  padding: 8px 14px 8px 10px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 15px rgba(255, 226, 138, 0.12);
  max-width: 280px;
  box-sizing: border-box;
  transition: all 0.3s var(--ease-spring);
}

.tree-node-halo {
  position: absolute;
  inset: -4px;
  border-radius: 24px;
  background: radial-gradient(circle, rgba(255, 226, 138, 0.3) 0%, rgba(255, 107, 157, 0.15) 50%, transparent 75%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tree-node-pin {
  color: var(--stardust-gold);
  font-size: 0.85rem;
  text-shadow: 0 0 8px var(--stardust-gold);
  flex-shrink: 0;
}

.tree-node-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 226, 138, 0.45);
  background: #080312;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tree-node-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tree-node-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.tree-node-tag {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sakura-pink);
  font-weight: 600;
  white-space: nowrap;
}

.tree-node-title {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  color: #FFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  line-height: 1.2;
}

.tree-node-caption {
  font-family: var(--font-handwritten);
  font-size: 0.86rem;
  color: var(--stardust-gold);
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tree-memory-node:hover {
  transform: translate(-50%, -50%) scale(1.05);
  z-index: 15;
}

.tree-memory-node:hover .tree-node-leaf {
  border-color: var(--stardust-gold);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9), 0 0 25px rgba(255, 226, 138, 0.35);
}

.tree-memory-node:hover .tree-node-halo {
  opacity: 1;
}

/* Subtle Click Feedback Pulse (NO MODAL / NO ZOOM) */
.tree-memory-node.tree-leaf-pulse {
  animation: tree-leaf-glow 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 20;
}

@keyframes tree-leaf-glow {
  0% {
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1);
  }
  40% {
    transform: translate(-50%, -50%) scale(1.08);
    filter: brightness(1.3) drop-shadow(0 0 22px rgba(255, 226, 138, 0.95));
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1);
  }
}

/* Bard Easter Egg Landmark in Canopy */
.mw-bard-landmark {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  z-index: 8;
  padding: 8px 16px;
  background: rgba(20, 8, 40, 0.7);
  border: 1px solid rgba(255, 226, 138, 0.3);
  border-radius: var(--radius-pill);
  backdrop-filter: var(--glass-blur);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.mw-bard-landmark:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 0 25px rgba(255, 226, 138, 0.6);
}

.mw-bard-glyph {
  font-size: 1.4rem;
  color: var(--stardust-gold);
  animation: cosmic-star-breathe 2.4s ease-in-out infinite alternate;
}

.mw-bard-label {
  font-family: var(--font-handwritten);
  font-size: 0.85rem;
  color: var(--cosmic-lavender);
  white-space: nowrap;
}

/* Landmark Sunflowers */
.mw-sunflower-landmark {
  position: absolute;
  cursor: pointer;
  z-index: 4;
  transition: transform 0.4s var(--ease-spring);
}

.mw-sunflower-landmark:hover {
  transform: scale(1.3) rotate(15deg);
  filter: drop-shadow(0 0 16px var(--stardust-gold));
}

.mw-sunflower-landmark.blooming {
  animation: mw-sf-bloom 0.8s var(--ease-spring) forwards;
}

@keyframes mw-sf-bloom {
  0% { transform: scale(1); }
  50% { transform: scale(1.6) rotate(25deg); filter: drop-shadow(0 0 25px var(--stardust-gold)); }
  100% { transform: scale(1.15); }
}

/* VC Memory Haven ("The hours we lost" 🎧) */
.mw-vc-haven {
  position: absolute;
  width: 320px;
  background: rgba(22, 10, 44, 0.85);
  border: 1px solid var(--space-border-glow);
  backdrop-filter: var(--glass-blur);
  padding: 20px;
  border-radius: var(--radius-card);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.85), 0 0 30px rgba(107, 33, 168, 0.4);
  cursor: pointer;
  z-index: 6;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.mw-vc-haven:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 45px rgba(192, 132, 252, 0.6);
}

.mw-vc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mw-vc-icon { font-size: 1.8rem; }
.mw-vc-title { font-family: var(--font-serif); font-size: 1.15rem; color: var(--stardust-gold); }
.mw-vc-time { font-size: 0.75rem; color: var(--cosmic-lavender); display: block; }

.mw-vc-waveform {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  margin: 10px 0;
}

.mw-wave-bar {
  flex: 1;
  background: linear-gradient(to top, var(--sakura-pink), var(--stardust-gold));
  border-radius: 4px;
  height: 30%;
  animation: mw-wave-dance 1.4s ease-in-out infinite alternate;
}

@keyframes mw-wave-dance {
  from { height: 20%; }
  to   { height: 95%; }
}

.mw-vc-note {
  font-family: var(--font-handwritten);
  font-size: 1.15rem;
  color: #E2DCF0;
  line-height: 1.3;
}

/* Secret Reyna Anomaly */
.mw-reyna-anomaly {
  position: absolute;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 7;
}

.mw-reyna-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(192, 132, 252, 0.35);
  animation: mw-reyna-aura 2.2s ease-in-out infinite;
}

@keyframes mw-reyna-aura {
  0% { transform: scale(0.8); opacity: 0.4; }
  50% { transform: scale(1.6); opacity: 0.9; box-shadow: 0 0 25px rgba(192, 132, 252, 0.8); }
  100% { transform: scale(0.8); opacity: 0.4; }
}

.mw-reyna-sparkle {
  color: #C084FC;
  font-size: 1.3rem;
  z-index: 2;
  filter: drop-shadow(0 0 10px #C084FC);
}

/* Secret DISHU Runes */
.mw-dishu-rune {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(25, 12, 48, 0.6);
  border: 1px solid rgba(255, 226, 138, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  transition: transform 0.3s var(--ease-spring), border-color 0.3s, box-shadow 0.3s;
}

.mw-dishu-rune:hover {
  transform: scale(1.3);
  border-color: var(--stardust-gold);
  box-shadow: 0 0 20px rgba(255, 226, 138, 0.5);
}

.mw-dishu-rune .mw-rune-glyph {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--stardust-gold);
  opacity: 0.7;
}

.mw-dishu-rune .mw-rune-star { display: none; }

.mw-dishu-rune.ignited {
  background: rgba(255, 226, 138, 0.2);
  border-color: var(--stardust-gold);
  box-shadow: 0 0 25px rgba(255, 226, 138, 0.8);
  pointer-events: none;
}

.mw-dishu-rune.ignited .mw-rune-glyph {
  opacity: 1;
  text-shadow: 0 0 15px var(--stardust-gold);
}

/* Assembled Dishu Banner */
.mw-dishu-banner {
  position: absolute;
  top: 900px;
  left: 1300px;
  transform: translate(-50%, -50%) scale(0.85);
  text-align: center;
  background: rgba(25, 12, 48, 0.9);
  border: 1px solid var(--space-border-glow);
  padding: 30px 48px;
  border-radius: var(--radius-card);
  box-shadow: 0 25px 70px rgba(0,0,0,0.9), var(--glow-gold);
  opacity: 0;
  transition: opacity 1.2s ease, transform 1.2s var(--ease-spring);
  z-index: 25;
}

.mw-dishu-banner.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.mw-dishu-text {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--stardust-gold);
  text-shadow: 0 0 25px rgba(255, 226, 138, 0.7);
}

.mw-dishu-sub {
  font-family: var(--font-handwritten);
  font-size: 1.3rem;
  color: var(--sakura-pink);
  margin-top: 6px;
}

/* Fullscreen Physical Keepsake Viewer */
.memory-world-keepsake-modal {
  position: fixed;
  inset: 0;
  z-index: 750;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-cinematic);
}

.memory-world-keepsake-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.mw-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 2, 13, 0.88);
  backdrop-filter: var(--glass-blur);
}

.mw-keepsake-card {
  position: relative;
  z-index: 2;
  background: linear-gradient(150deg, #200D3D 0%, #100622 100%);
  border: 1px solid var(--space-border-glow);
  border-radius: var(--radius-card);
  padding: 36px;
  max-width: 520px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  box-shadow: 0 25px 70px rgba(0,0,0,0.9), var(--glow-gold);
  transform: scale(0.92);
  transition: transform 0.35s var(--ease-spring);
}

.memory-world-keepsake-modal.visible .mw-keepsake-card {
  transform: scale(1);
}

.mw-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--space-border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  z-index: 10;
}

.mw-modal-photo-placeholder {
  width: 100%;
  height: 200px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 226, 138, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stardust-gold);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.mw-modal-date {
  font-size: 0.78rem;
  color: var(--cosmic-lavender);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mw-modal-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--stardust-gold);
  margin: 6px 0 10px;
}

.mw-modal-caption {
  font-style: italic;
  color: #FFA8C5;
  margin-bottom: 12px;
}

.mw-modal-story {
  font-size: 0.98rem;
  color: #E2DCF0;
  line-height: 1.6;
}

.mw-floating-note {
  position: absolute;
  font-family: var(--font-handwritten);
  font-size: 1.25rem;
  color: #C084FC;
  text-shadow: 0 0 15px rgba(192, 132, 252, 0.7);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  z-index: 30;
}

.mw-floating-note.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   VIDEO CTA & VIDEO MODAL (First Step Optional Invitation)
   ========================================================================== */
.video-cta-container {
  margin: 18px 0 24px;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.9s var(--ease-cinematic), transform 0.9s var(--ease-spring);
}

.video-cta-container.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.btn-watch-video {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 26px;
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.22), rgba(255, 226, 138, 0.28));
  border: 1px solid rgba(255, 226, 138, 0.5);
  border-radius: var(--radius-pill);
  color: var(--stardust-gold);
  font-family: var(--font-main);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(255, 107, 157, 0.25), 0 0 16px rgba(255, 226, 138, 0.35);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, background 0.3s ease;
}

.btn-watch-video:hover {
  transform: scale(1.05) translateY(-2px);
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.35), rgba(255, 226, 138, 0.42));
  box-shadow: 0 8px 32px rgba(255, 107, 157, 0.45), 0 0 24px rgba(255, 226, 138, 0.6);
}

.btn-video-badge {
  display: inline-block;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(255, 107, 157, 0.35);
  border: 1px solid rgba(255, 107, 157, 0.6);
  border-radius: 12px;
  color: #FFF;
  text-shadow: 0 0 8px #FF6B9D;
}

.btn-video-text {
  font-size: 0.96rem;
  letter-spacing: 0.02em;
}

.btn-video-icon {
  font-size: 0.85rem;
  color: var(--stardust-gold);
}

/* Video Modal Overlay */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.video-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 4, 22, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.video-modal-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, rgba(32, 16, 60, 0.95), rgba(18, 9, 36, 0.98));
  border: 1px solid rgba(255, 226, 138, 0.35);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(255, 107, 157, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: scale(0.94) translateY(12px) translateZ(0);
  will-change: transform, opacity;
  transition: transform 0.45s var(--ease-spring);
  z-index: 2;
}

.video-modal.visible .video-modal-card {
  transform: scale(1) translateY(0) translateZ(0);
}

.video-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--stardust-gold);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  transition: background 0.2s, transform 0.2s;
  z-index: 10;
}

.video-modal-close:hover {
  background: rgba(255, 107, 157, 0.3);
  transform: scale(1.1);
}

.video-modal-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.video-modal-tag {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--stardust-gold);
  letter-spacing: 0.1em;
}

.video-modal-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #FFF;
}

.video-player-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.disha-birthday-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-modal-footer {
  text-align: center;
}

.video-modal-note {
  font-size: 0.86rem;
  color: var(--text-muted);
  font-style: italic;
}

/* Featured Favorite Photo in Finale Frame */
.featured-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.featured-favorite-img {
  max-width: 320px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card);
  border: 2px solid rgba(255, 226, 138, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 107, 157, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.featured-favorite-img:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 226, 138, 0.45);
}

.featured-photo-caption {
  font-family: var(--font-handwritten);
  font-size: 1.35rem;
  color: var(--stardust-gold);
  text-shadow: 0 0 10px rgba(255, 226, 138, 0.4);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 768px) {
  .universe-container {
    padding: 40px 18px 120px;
  }

  .panda-stage {
    width: 130px;
    height: 130px;
    bottom: 16px;
    right: 16px;
  }

  .panda-speech-bubble {
    font-size: 0.72rem;
    padding: 5px 12px;
    top: -26px;
  }

  .wish-consent-card {
    padding: 28px 20px;
  }

  .lock-title {
    font-size: 1.8rem;
  }

  .countdown-item {
    min-width: 60px;
    padding: 10px 12px;
  }

  .countdown-val {
    font-size: 1.6rem;
  }

  .cake-tier.top { width: 130px; }
  .cake-tier.middle { width: 170px; }
  .cake-tier.bottom { width: 210px; }
  .cake-pedestal { width: 240px; }

  .letter-parchment {
    padding: 32px 24px;
  }

  .letter-salutation { font-size: 1.8rem; }
  .letter-body { font-size: 1.3rem; }
  .letter-signature-block { font-size: 1.5rem; }

  .btn-enter-memory-world {
    padding: 12px 24px;
    font-size: 0.92rem;
  }

  .mw-artifact-polaroid .mw-photo-frame {
    width: 160px;
  }

  .mw-vc-haven {
    width: 260px;
  }

  .video-modal-card {
    padding: 18px;
    gap: 12px;
  }

  .featured-favorite-img {
    max-width: 260px;
  }

  .final-cupid-element {
    right: -2px;
    top: 4px;
  }
}

/* Small mobile devices (<480px) */
@media (max-width: 480px) {
  .chapter-title {
    font-size: 1.85rem;
  }
  .opening-main-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }
  .reasons-cloud {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .childhood-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .memories-timeline-container {
    padding: 0 4px;
  }
  .memory-milestone-card {
    max-width: 100%;
  }
  .memory-modal-card,
  .video-modal-card,
  .wish-consent-card,
  .password-card,
  .mw-keepsake-card {
    padding: 20px 16px;
  }
  .btn-watch-video {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  .btn-enter-universe {
    padding: 14px 28px;
    font-size: 1rem;
  }
}

/* Landscape orientation on mobile/tablets */
@media (max-height: 520px) and (orientation: landscape) {
  .universe-container {
    padding: 24px 16px 80px;
  }
  .lock-title {
    font-size: 1.6rem;
  }
  .countdown-grid {
    gap: 6px;
  }
  .countdown-item {
    min-width: 48px;
    padding: 6px 8px;
  }
  .countdown-val {
    font-size: 1.25rem;
  }
  .password-card,
  .memory-modal-card,
  .video-modal-card,
  .wish-consent-card,
  .mw-keepsake-card {
    max-height: 94vh;
    max-height: 94dvh;
    padding: 16px;
  }
  #modal-photo-img {
    max-height: 38vh;
  }
  .cake-ritual-scene {
    transform: scale(0.8);
    margin: 8px auto;
  }
}

/* ==========================================================================
   CHAPTER 03: FAVORITE SONG MUSIC PLAYER & SYNTHETIC AUDIO VISUALIZER
   ========================================================================== */
.scrapbook-song-item {
  cursor: default;
  background: linear-gradient(150deg, rgba(28, 12, 54, 0.9) 0%, rgba(16, 7, 32, 0.95) 100%);
  border: 1px solid rgba(255, 107, 157, 0.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 107, 157, 0.15);
}

.scrapbook-song-item:hover {
  border-color: var(--stardust-gold);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 226, 138, 0.25);
}

.favorite-song-player {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.song-player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.song-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.song-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--stardust-gold);
  text-transform: uppercase;
}

.song-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: #FAF8FF;
  margin: 0;
}

.song-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.btn-song-play-toggle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sakura-pink), #B12A66);
  border: 1px solid var(--stardust-gold);
  color: #FFF;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 107, 157, 0.45);
  transition: all 0.25s var(--ease-spring);
  flex-shrink: 0;
}

.btn-song-play-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(255, 226, 138, 0.6);
}

.btn-song-play-toggle.playing {
  background: linear-gradient(135deg, #FFE28A, #FFB347);
  color: #2D1254;
  border-color: #FFF;
  box-shadow: 0 0 25px rgba(255, 226, 138, 0.7);
}

.song-visualizer-container {
  width: 100%;
  height: 42px;
  background: rgba(8, 3, 16, 0.7);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 226, 138, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.favorite-song-visualizer {
  width: 100%;
  height: 100%;
  display: block;
}

.song-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.song-time {
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--cosmic-lavender);
  min-width: 32px;
}

.song-progress-track {
  flex-grow: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}

.song-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sakura-pink), var(--stardust-gold));
  border-radius: 3px;
  transition: width 0.1s linear;
}

.song-progress-scrubber {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FFF;
  border: 2px solid var(--sakura-pink);
  transform: translate(-50%, -50%);
  pointer-events: none;
  box-shadow: 0 0 8px rgba(255, 107, 157, 0.8);
  transition: left 0.1s linear;
}

.song-volume-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  padding: 0 2px;
}

.btn-song-mute {
  background: transparent;
  border: none;
  color: var(--stardust-gold);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 2px 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: transform 0.2s, opacity 0.2s;
  flex-shrink: 0;
}

.btn-song-mute:hover {
  transform: scale(1.15);
  opacity: 0.9;
}

.song-volume-slider-wrap {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.song-volume-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}

.song-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--stardust-gold);
  cursor: pointer;
  box-shadow: 0 0 6px rgba(255, 226, 138, 0.7);
  transition: transform 0.15s;
}

.song-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--stardust-gold);
  cursor: pointer;
  border: none;
  box-shadow: 0 0 6px rgba(255, 226, 138, 0.7);
  transition: transform 0.15s;
}

.song-volume-slider:hover::-webkit-slider-thumb {
  transform: scale(1.25);
}

.song-volume-slider:hover::-moz-range-thumb {
  transform: scale(1.25);
}

/* ==========================================================================
   CHAPTER: TRUE FINAL ENDING & CELESTIAL PROPOSAL CLIMAX
   ========================================================================== */
.chapter-true-ending {
  min-height: 85vh;
  min-height: 85dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 60px 20px 100px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.chapter-true-ending.visible {
  opacity: 1;
  transform: translateY(0);
}

.true-ending-backdrop-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 157, 0.18) 0%, rgba(107, 33, 168, 0.12) 45%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.final-letter-card {
  position: relative;
  z-index: 2;
  max-width: 620px;
  width: 100%;
  background: linear-gradient(150deg, rgba(26, 11, 48, 0.8) 0%, rgba(14, 5, 28, 0.9) 100%);
  border: 1px solid rgba(255, 226, 138, 0.35);
  backdrop-filter: var(--glass-blur);
  padding: 48px 36px;
  border-radius: 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(255, 107, 157, 0.2);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.final-letter-sparkle {
  font-size: 1.6rem;
  color: var(--stardust-gold);
  display: block;
  margin-bottom: 16px;
  animation: cosmic-star-breathe 2s ease-in-out infinite alternate;
}

.final-letter-intro-line1 {
  font-family: var(--font-handwritten);
  font-size: 1.7rem;
  color: var(--stardust-gold);
  margin-bottom: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.final-letter-intro-line1.revealed {
  opacity: 1;
  transform: translateY(0);
}

.final-letter-intro-line2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #FFF;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  text-shadow: 0 0 20px rgba(255, 107, 157, 0.4);
}

.final-letter-intro-line2.revealed {
  opacity: 1;
  transform: translateY(0);
}

.final-letter-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.final-letter-p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #E2DCF0;
  margin: 0;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.final-letter-p.revealed {
  opacity: 1;
  transform: translateY(0);
}

.final-letter-sign {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--sakura-pink);
  margin-top: 12px;
  line-height: 1.6;
  text-shadow: 0 0 25px rgba(255, 107, 157, 0.6);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.final-letter-sign.revealed {
  opacity: 1;
  transform: translateY(0);
}

.final-author {
  font-family: var(--font-handwritten);
  font-size: 1.4rem;
  color: var(--stardust-gold);
  display: inline-block;
  margin-top: 4px;
}



/* ==========================================================================
   PERSONAL BIRTHDAY VIDEO PRESENTATION (Sharp, Natural Aspect Ratio)
   ========================================================================== */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 2, 11, 0.9);
  backdrop-filter: var(--glass-blur);
  z-index: 750;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.video-modal.visible {
  opacity: 1;
  pointer-events: auto;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
}

.video-modal-card {
  position: relative;
  z-index: 2;
  background: linear-gradient(150deg, #1C0A35, #0E0520);
  border: 1px solid rgba(255, 226, 138, 0.3);
  border-radius: var(--radius-card);
  max-width: 620px;
  width: 100%;
  padding: 28px 24px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 107, 157, 0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
}

.video-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-pure);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
  z-index: 5;
}

.video-modal-close:hover {
  background: rgba(255, 107, 157, 0.3);
  transform: scale(1.1);
}

.video-modal-header {
  text-align: center;
}

.video-modal-tag {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--stardust-gold);
  font-weight: 600;
  text-transform: uppercase;
}

.video-modal-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #FFF;
  margin-top: 4px;
}

.video-player-container {
  width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 226, 138, 0.15);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  max-height: 65vh;
  max-height: 65dvh;
}

.disha-birthday-video {
  width: 100%;
  height: auto;
  max-height: 65vh;
  max-height: 65dvh;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 8px;
  background: #000;
}

.video-modal-footer {
  text-align: center;
}

.video-modal-note {
  font-size: 0.85rem;
  color: var(--cosmic-lavender);
}

/* ==========================================================================
   CELEBRATION BIRTHDAY BALLOONS (One-Time Subtle & Cinematic)
   ========================================================================== */
.celebration-balloon-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 650;
  overflow: hidden;
}

.celebration-balloon {
  position: absolute;
  bottom: -140px;
  border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%;
  opacity: 0.85;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
  animation: float-balloon-up var(--balloon-duration, 8s) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.celebration-balloon::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  height: 42px;
  background: rgba(255, 255, 255, 0.4);
}

.celebration-balloon::before {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 5px;
  border-radius: 2px;
  background: inherit;
  filter: brightness(0.8);
}

@keyframes float-balloon-up {
  0% {
    transform: translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.85;
  }
  75% {
    opacity: 0.85;
  }
  100% {
    transform: translate(var(--balloon-sway, 35px), -118vh) rotate(var(--balloon-rot, 10deg));
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .btn-return-world {
    top: 16px;
    left: 16px;
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  .tree-node-leaf {
    max-width: 230px;
    padding: 6px 10px 6px 8px;
    border-radius: 16px;
    gap: 8px;
  }

  .tree-node-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }

  .tree-node-title {
    font-size: 0.8rem;
  }

  .tree-node-caption {
    font-size: 0.78rem;
  }

  .tree-node-tag {
    font-size: 0.58rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
