/* ==========================================================================
   FOR JESHELLIE ♡ SECRET SURPRISE SYSTEM - STYLES
   Curated Romantic Aesthetic: Midnight Indigo, Rose Gold & Champagne Starlight
   ========================================================================== */

:root {
  --bg-deep: #0b0717;
  --bg-cosmic: #130c24;
  --bg-card: rgba(24, 15, 42, 0.78);
  --bg-card-border: rgba(255, 182, 193, 0.22);
  --primary-rose: #ff4d6d;
  --primary-soft-pink: #ff8fab;
  --accent-blush: #ffe5ec;
  --accent-gold: #ffd166;
  --gold-glow: rgba(255, 209, 102, 0.45);
  --rose-glow: rgba(255, 77, 109, 0.35);
  --text-main: #fbf8ff;
  --text-muted: #d4c7e6;
  --font-script: 'Great Vibes', cursive;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  overflow-x: hidden;
  position: relative;
}

/* Background Canvas for Ambient Sparkles & Cosmic Nebula */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   STRICT VISIBILITY & STAGE SYSTEM
   Rule: Only the active stage can be visible. All other stages are completely
   hidden and inaccessible (display: none !important).
   -------------------------------------------------------------------------- */

.surprise-viewport {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 18px 80px 18px;
}

/* By default, ALL stages are strictly removed from rendering */
.surprise-stage {
  display: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  width: 100%;
  max-width: 780px;
}

/* ONLY the currently active surprise stage is displayed */
.surprise-stage.active-stage {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* Stage Exit Fade Animation */
.surprise-stage.stage-fading-out {
  opacity: 0 !important;
  transform: translateY(-20px) scale(0.96) !important;
  pointer-events: none !important;
}

/* --------------------------------------------------------------------------
   SHARED CARD DESIGN (Glassmorphic Romantic Container)
   -------------------------------------------------------------------------- */

.stage-card {
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--bg-card-border);
  border-radius: 28px;
  padding: 42px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 40px var(--rose-glow);
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (max-width: 600px) {
  .stage-card {
    padding: 30px 18px;
    border-radius: 22px;
  }
  .surprise-viewport {
    padding: 20px 12px 60px 12px;
  }
}

/* Subtle glowing cosmic orb behind card */
.cosmic-glow-orb {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 77, 109, 0.25) 0%, rgba(255, 209, 102, 0.1) 50%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

/* Decorative Pill Stamp */
.stamp-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 143, 171, 0.4);
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent-blush);
  margin-bottom: 20px;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.gold-pill {
  border-color: rgba(255, 209, 102, 0.5);
  color: var(--accent-gold);
}

/* Romantic Headings */
.romantic-title {
  font-family: var(--font-serif);
  font-size: 2.3rem;
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.highlight-script {
  display: block;
  font-family: var(--font-script);
  font-size: 3.2rem;
  font-weight: 400;
  color: var(--primary-soft-pink);
  margin-top: 4px;
  line-height: 1.1;
  text-shadow: 0 0 25px rgba(255, 143, 171, 0.5);
}

@media (max-width: 600px) {
  .romantic-title {
    font-size: 1.85rem;
  }
  .highlight-script {
    font-size: 2.6rem;
  }
}

.stage-subtitle {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 28px auto;
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   TOP CONTROLS & CHAPTER INDICATOR
   Discreet, romantic, does NOT reveal future surprise names!
   -------------------------------------------------------------------------- */

.sound-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 100;
  background: rgba(25, 14, 45, 0.85);
  border: 1px solid rgba(255, 143, 171, 0.35);
  color: var(--accent-blush);
  padding: 8px 16px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.sound-toggle:hover {
  background: rgba(255, 77, 109, 0.25);
  border-color: var(--primary-soft-pink);
  transform: translateY(-2px);
}

.chapter-indicator {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(18, 10, 34, 0.82);
  padding: 8px 20px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  pointer-events: none;
}

.chapter-badge {
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-soft-pink);
  font-weight: 600;
}

.chapter-dots {
  display: flex;
  gap: 8px;
}

.chapter-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
}

.chapter-dots .dot.active {
  background: var(--primary-soft-pink);
  box-shadow: 0 0 10px var(--primary-rose);
  transform: scale(1.3);
}

/* --------------------------------------------------------------------------
   ROMANTIC BUTTONS & CONTINUATION TRIGGERS
   -------------------------------------------------------------------------- */

.romantic-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 36px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin-top: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

.primary-glow-btn {
  background: linear-gradient(135deg, #ff4d6d 0%, #d81159 50%, #8f2d56 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 35px rgba(255, 77, 109, 0.4), 0 0 20px rgba(255, 143, 171, 0.3);
}

.primary-glow-btn:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 45px rgba(255, 77, 109, 0.6), 0 0 30px rgba(255, 209, 102, 0.4);
}

.primary-glow-btn:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
}

.secondary-glow-btn {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-blush);
  border: 1px solid rgba(255, 143, 171, 0.4);
}

.secondary-glow-btn:hover {
  background: rgba(255, 77, 109, 0.2);
  border-color: var(--primary-soft-pink);
  transform: translateY(-2px);
}

/* Locked / Disabled Button State */
.romantic-button:disabled,
.romantic-button.locked-button {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(40%);
}

/* Subtle sparkle animation inside button */
.button-sparkle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50px;
  overflow: hidden;
  pointer-events: none;
}

.button-sparkle::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: rotate(25deg);
  animation: buttonSheen 4s infinite linear;
}

@keyframes buttonSheen {
  0% { transform: translateX(-150%) rotate(25deg); }
  35%, 100% { transform: translateX(150%) rotate(25deg); }
}

/* --------------------------------------------------------------------------
   STAGE 1: OPENING / WELCOME SPECIFIC
   -------------------------------------------------------------------------- */

.welcome-card {
  padding-top: 55px;
  padding-bottom: 50px;
}

.love-quote-box {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid var(--primary-soft-pink);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 15px auto 25px auto;
  max-width: 520px;
  text-align: left;
}

.quote-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: #fff;
  line-height: 1.5;
}

.quote-author {
  display: block;
  font-size: 0.88rem;
  color: var(--primary-soft-pink);
  margin-top: 6px;
  font-weight: 500;
  text-align: right;
}

.interaction-hint {
  font-size: 0.9rem;
  color: var(--accent-gold);
  margin-bottom: 12px;
  animation: pulseHint 2.5s infinite ease-in-out;
}

@keyframes pulseHint {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

/* --------------------------------------------------------------------------
   STAGE 2: CAKE SURPRISE
   -------------------------------------------------------------------------- */

.cake-display-wrapper {
  margin: 25px auto 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cake-container {
  position: relative;
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Candles Row */
.candles-row {
  display: flex;
  justify-content: center;
  gap: 32px;
  position: relative;
  z-index: 5;
  margin-bottom: -4px;
}

.candle {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 8px 6px;
  transition: transform 0.2s ease;
}

.candle:hover {
  transform: scale(1.1);
}

.wick {
  width: 2px;
  height: 8px;
  background: #333;
}

.candle-stick {
  width: 14px;
  height: 48px;
  border-radius: 4px;
  box-shadow: inset 2px 0 4px rgba(255,255,255,0.4), inset -2px 0 4px rgba(0,0,0,0.3);
}

.candle-stick-pink {
  background: linear-gradient(to right, #ff8fab, #ff4d6d);
}

.candle-stick-gold {
  background: linear-gradient(to right, #ffe699, #ffd166);
}

.candle-stick-rose {
  background: linear-gradient(to right, #ffc2d1, #fb6f92);
}

/* Realistic Flame & Animation */
.flame {
  position: relative;
  width: 16px;
  height: 24px;
  margin-bottom: 2px;
  transform-origin: 50% 90%;
  animation: flickerFlame 1.2s infinite alternate ease-in-out;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.flame-core {
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 80%, #ffffff 0%, #ffe600 35%, #ff5e00 70%, transparent 95%);
  border-radius: 50% 50% 35% 35% / 60% 60% 40% 40%;
}

.flame-glow {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 32px;
  height: 38px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.6) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

@keyframes flickerFlame {
  0% { transform: scale(1) rotate(-1deg); }
  25% { transform: scale(1.08, 0.95) rotate(2deg); }
  50% { transform: scale(0.96, 1.05) rotate(-2deg); }
  75% { transform: scale(1.04, 1) rotate(1deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Candle Blown Out State */
.candle.blown-out .flame {
  opacity: 0;
  transform: scale(0) translateY(-10px);
  pointer-events: none;
}

.smoke {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 16px;
  background: radial-gradient(circle, rgba(220, 220, 220, 0.7) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

.candle.blown-out .smoke {
  animation: smokePuff 1.2s ease-out forwards;
}

@keyframes smokePuff {
  0% { opacity: 0.8; transform: translate(-50%, 0) scale(0.6); }
  50% { opacity: 0.5; transform: translate(-30%, -20px) scale(1.5); }
  100% { opacity: 0; transform: translate(-60%, -40px) scale(2.2); }
}

/* Cake Tiers */
.cake-tier {
  position: relative;
  background: linear-gradient(135deg, #442244 0%, #5c2b5c 50%, #3a1a3a 100%);
  border-radius: 12px 12px 6px 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), inset 0 2px 4px rgba(255,255,255,0.25);
}

.tier-top {
  width: 140px;
  height: 48px;
  background: linear-gradient(to bottom, #ffccd5, #ffb3c1);
}

.strawberry-decorations {
  display: flex;
  justify-content: space-around;
  padding-top: 4px;
  font-size: 1.1rem;
}

.tier-middle {
  width: 190px;
  height: 56px;
  background: linear-gradient(to bottom, #ffe5ec, #ffccd5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cake-inscription {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: #c9184a;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.tier-bottom {
  width: 240px;
  height: 60px;
  background: linear-gradient(to bottom, #fff0f3, #ffe5ec);
  position: relative;
}

.pearl-row {
  position: absolute;
  bottom: 4px;
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding: 0 10px;
}

.pearl-row span {
  width: 8px;
  height: 8px;
  background: #ff758f;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.cake-plate {
  width: 270px;
  height: 14px;
  background: linear-gradient(to bottom, #eaeaea, #b5b5b5);
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  margin-top: -2px;
}

.candle-counter {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 15px;
}

.candle-counter strong {
  color: var(--accent-gold);
}

.celebration-message {
  background: rgba(255, 77, 109, 0.15);
  border: 1px solid var(--primary-soft-pink);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 18px auto 8px auto;
  max-width: 540px;
  animation: celebrateFadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes celebrateFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.celebration-badge {
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.celebration-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: #fff;
  line-height: 1.45;
}

.hidden-initial {
  display: none;
}

/* --------------------------------------------------------------------------
   STAGE 3: CHILDHOOD MEMORIES
   -------------------------------------------------------------------------- */

.scrapbook-frame {
  position: relative;
  background: #fffdf9;
  border-radius: 16px;
  padding: 16px;
  max-width: 480px;
  margin: 0 auto 24px auto;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 209, 102, 0.2);
  transform: rotate(-1deg);
  transition: transform 0.4s ease;
}

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

.tape-corner {
  position: absolute;
  width: 65px;
  height: 22px;
  background: rgba(255, 230, 180, 0.7);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 10;
}

.tape-top-left {
  top: -8px;
  left: -12px;
  transform: rotate(-25deg);
}

.tape-top-right {
  top: -8px;
  right: -12px;
  transform: rotate(25deg);
}

.photo-container {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
}

.scrapbook-photo {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.photo-overlay-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 10, 35, 0.85);
  color: var(--accent-blush);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 143, 171, 0.4);
}

.scrapbook-captions {
  margin-top: 14px;
  color: #2b1836;
  text-align: center;
}

.caption-tag {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: #ff4d6d;
  line-height: 1.2;
}

.scrapbook-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: #4b3658;
  margin-top: 4px;
  line-height: 1.4;
}

.story-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 540px;
  margin: 0 auto;
}

@media (max-width: 520px) {
  .story-mini-grid {
    grid-template-columns: 1fr;
  }
}

.story-mini-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 16px;
  text-align: left;
}

.mini-icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.story-mini-card h4 {
  font-size: 1rem;
  color: var(--primary-soft-pink);
  margin-bottom: 6px;
}

.story-mini-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   STAGE 4: OUR PHOTOS (Adult Memories & Interactive Gallery)
   -------------------------------------------------------------------------- */

.adult-gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 680px;
  margin: 0 auto 28px auto;
}

@media (max-width: 620px) {
  .adult-gallery-grid {
    grid-template-columns: 1fr;
  }
}

.polaroid-card {
  background: #fffdfa;
  border-radius: 14px;
  padding: 14px 14px 20px 14px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5);
  position: relative;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.polaroid-card:hover {
  transform: translateY(-6px) scale(1.02) !important;
  box-shadow: 0 20px 45px rgba(255, 77, 109, 0.35);
  z-index: 5;
}

.tilt-left {
  transform: rotate(-2deg);
}

.tilt-right {
  transform: rotate(2deg);
}

.polaroid-pin {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.4rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  z-index: 10;
}

.polaroid-img-wrapper {
  border-radius: 8px;
  overflow: hidden;
  background: #111;
}

.polaroid-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.polaroid-footer {
  margin-top: 14px;
  text-align: center;
}

.tagalog-quote {
  display: block;
  font-family: var(--font-script);
  font-size: 1.65rem;
  color: #ff4d6d;
  line-height: 1.25;
}

.polaroid-subnote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  color: #553d61;
  margin-top: 4px;
  line-height: 1.35;
}

.heart-collector-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(255, 143, 171, 0.4);
  border-radius: 20px;
  padding: 18px 24px;
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}

.collector-title {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.love-tap-btn {
  background: linear-gradient(135deg, #ff4d6d, #ff758f);
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 10px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 15px rgba(255, 77, 109, 0.4);
}

.love-tap-btn:active {
  transform: scale(0.92);
}

.floating-heart-particle {
  position: absolute;
  pointer-events: none;
  font-size: 1.4rem;
  animation: floatHeartUp 1.2s ease-out forwards;
}

@keyframes floatHeartUp {
  0% { opacity: 1; transform: translate(0, 0) scale(0.8); }
  100% { opacity: 0; transform: translate(var(--tx, 0px), -80px) scale(1.6); }
}

/* --------------------------------------------------------------------------
   STAGE 5: DANCING EXPERIENCE
   -------------------------------------------------------------------------- */

.dance-floor-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 380px;
  margin: 0 auto 20px auto;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 30%, #261642 0%, #110924 80%);
  border: 1px solid rgba(255, 182, 193, 0.3);
  overflow: hidden;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.7), 0 15px 45px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
}

.stage-spotlight {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 100%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 240, 200, 0.35) 0%, rgba(255, 143, 171, 0.15) 50%, transparent 80%);
  pointer-events: none;
}

.fairy-lights-garland {
  width: 100%;
  display: flex;
  justify-content: space-around;
  padding: 12px 18px 0 18px;
  position: relative;
  z-index: 2;
}

.f-light {
  width: 8px;
  height: 12px;
  border-radius: 50%;
  background: #ffd166;
  box-shadow: 0 0 12px #ffd166, 0 0 20px #ff4d6d;
  animation: glowFairy 2s infinite alternate ease-in-out;
}

.f-light:nth-child(even) {
  background: #ff8fab;
  box-shadow: 0 0 12px #ff8fab;
  animation-duration: 2.6s;
}

@keyframes glowFairy {
  0% { opacity: 0.5; transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1.15); }
}

.silhouette-couple-wrapper {
  position: relative;
  z-index: 5;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dance-svg {
  width: 190px;
  height: 220px;
  filter: drop-shadow(0 0 15px rgba(255, 143, 171, 0.45));
}

.swaying-couple-group {
  transform-origin: 100px 215px;
  animation: slowDanceSway 4s infinite ease-in-out;
}

@keyframes slowDanceSway {
  0% { transform: rotate(-3deg); }
  50% { transform: rotate(3deg); }
  100% { transform: rotate(-3deg); }
}

/* Stardust Spin Dance Mode */
.spin-mode .swaying-couple-group {
  animation: stardustSpin 2.5s infinite ease-in-out;
}

@keyframes stardustSpin {
  0% { transform: rotate(-6deg) scale(1); }
  50% { transform: rotate(6deg) scale(1.04); }
  100% { transform: rotate(-6deg) scale(1); }
}

.music-note-anim {
  animation: noteFloat 2.8s infinite ease-in-out;
}

.delay-1 { animation-delay: 0.9s; }
.delay-2 { animation-delay: 1.8s; }

@keyframes noteFloat {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-30px); }
}

.floor-ripples {
  position: absolute;
  bottom: 0;
  width: 140px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 143, 171, 0.4) 0%, transparent 70%);
  animation: rippleGlow 3s infinite alternate ease-in-out;
  pointer-events: none;
}

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

.dance-controls-bar {
  display: flex;
  gap: 10px;
  z-index: 10;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0 10px;
}

.dance-action-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 143, 171, 0.4);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.dance-action-btn:hover,
.dance-action-btn.active-dance-mode {
  background: rgba(255, 77, 109, 0.35);
  border-color: var(--primary-soft-pink);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 77, 109, 0.4);
}

.dance-status-banner {
  font-size: 0.9rem;
  color: var(--accent-gold);
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   STAGE 6: LOVE LETTER & WAX SEAL
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   STAGE 6: LOVE LETTER & WAX SEAL
   -------------------------------------------------------------------------- */

.envelope-showcase {
  margin: 25px auto 20px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 800px;
}

.sealed-envelope {
  position: relative;
  width: 100%;
  max-width: 440px;
  min-height: 250px;
  background: linear-gradient(145deg, #e4be9e 0%, #caa080 100%);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(255, 143, 171, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 24px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
  overflow: hidden;
}

.sealed-envelope:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(255, 77, 109, 0.35);
}

.envelope-top-crease {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.18), transparent);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  pointer-events: none;
}

.envelope-address {
  text-align: left;
  position: relative;
  z-index: 2;
}

.to-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #724b33;
  font-weight: 600;
  margin-bottom: 4px;
}

.recipient-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: #3e2213;
  line-height: 1.2;
}

.origin-tag {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #6a462f;
  background: rgba(255, 255, 255, 0.35);
  padding: 3px 10px;
  border-radius: 12px;
}

/* Realistic Wax Seal in Center */
.wax-seal {
  position: relative;
  align-self: center;
  width: 76px;
  height: 76px;
  background: radial-gradient(circle at 35% 35%, #ff4d6d 0%, #c9184a 55%, #800f2f 100%);
  border-radius: 50%;
  border: 3px solid #ff758f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 2px 5px rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 18px 0 10px 0;
  z-index: 5;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: sealPulse 2.8s infinite ease-in-out;
}

@keyframes sealPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45); }
  50% { transform: scale(1.06); box-shadow: 0 10px 30px rgba(255, 77, 109, 0.6); }
}

.wax-seal-inner {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.seal-tap-hint {
  font-size: 0.85rem;
  color: #532f1c;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Unfolding Parchment Container */
.letter-parchment-container {
  width: 100%;
  max-width: 600px;
  margin: 15px auto 20px auto;
  animation: parchmentUnfold 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

.parchment-scroll {
  background: #fffefb;
  border-radius: 18px;
  padding: 36px 30px;
  color: #2b1736;
  text-align: left;
  position: relative;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(230, 205, 175, 0.35);
  border: 1px solid rgba(215, 185, 150, 0.5);
}

@media (max-width: 540px) {
  .parchment-scroll {
    padding: 24px 18px;
  }
}

.parchment-seal-stamp {
  position: absolute;
  top: 18px;
  right: 22px;
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: #ff4d6d;
  opacity: 0.45;
  border: 2px dashed #ff4d6d;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-12deg);
}

.letter-header {
  border-bottom: 1px dashed rgba(255, 77, 109, 0.35);
  padding-bottom: 12px;
  margin-bottom: 22px;
}

.letter-date-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #8c5b74;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.letter-body {
  font-family: var(--font-serif);
  font-size: 1.14rem;
  line-height: 1.75;
  color: #3b2245;
}

.letter-body p {
  margin-bottom: 16px;
}

.letter-body .salutation {
  font-size: 1.35rem;
  font-weight: 700;
  color: #9d174d;
  margin-bottom: 18px;
}

.letter-tagalog-highlight {
  background: rgba(255, 77, 109, 0.08);
  border-left: 3px solid #ff4d6d;
  border-radius: 10px;
  padding: 14px 18px;
  margin: 20px 0;
  font-style: italic;
  font-size: 1.16rem;
  color: #831843;
  line-height: 1.6;
}

.letter-signature-block {
  margin-top: 28px;
  text-align: right;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 14px;
}

.sign-off {
  font-size: 1.05rem;
  font-style: italic;
  color: #701a75;
  margin-bottom: 4px;
}

.sign-name {
  display: block;
  font-family: var(--font-script);
  font-size: 2.2rem;
  color: #be185d;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   STAGE 7: FINAL SURPRISE & CELESTIAL CEREMONY
   -------------------------------------------------------------------------- */

.celestial-sky-box {
  background: radial-gradient(circle at 50% 50%, #1f113a 0%, #0d061c 100%);
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 24px;
  padding: 30px 20px;
  margin: 15px auto 25px auto;
  max-width: 580px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), inset 0 0 35px rgba(255, 209, 102, 0.15);
}

.celestial-globe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 10px 10px;
}

@media (max-width: 540px) {
  .celestial-globe {
    flex-direction: column;
    gap: 30px;
  }
  .golden-ribbon-path {
    transform: rotate(90deg);
    margin: 20px 0;
  }
}

.celestial-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 5;
}

.node-flag {
  font-size: 2.8rem;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}

.node-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-top: 6px;
}

.node-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.pulse-ring {
  position: absolute;
  top: 15px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  animation: pulseNodeRing 2s infinite ease-out;
  pointer-events: none;
}

@keyframes pulseNodeRing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.golden-ribbon-path {
  position: relative;
  width: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ribbon-svg {
  width: 100%;
  height: 60px;
}

.dash-anim {
  animation: dashMove 2s linear infinite;
}

@keyframes dashMove {
  to { stroke-dashoffset: -20; }
}

.pulsing-heart-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 1.5rem;
  filter: drop-shadow(0 0 10px #ff4d6d);
  animation: heartThrob 1.4s infinite ease-in-out;
}

.infinity-symbol {
  font-size: 1.2rem;
  color: var(--accent-gold);
  font-weight: bold;
  margin-top: -8px;
}

@keyframes heartThrob {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
}

.lantern-release-section {
  margin: 20px auto;
  max-width: 480px;
  position: relative;
}

.lantern-instruction {
  font-size: 0.92rem;
  color: var(--accent-blush);
  margin-bottom: 10px;
}

.lantern-btn {
  background: linear-gradient(135deg, #ff9f1c, #e71d36);
  color: #fff;
  border: none;
  padding: 12px 26px;
  border-radius: 30px;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 25px rgba(255, 159, 28, 0.45);
  transition: all 0.3s ease;
}

.lantern-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 30px rgba(255, 159, 28, 0.6);
}

.floating-lantern-sky {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  font-size: 2.2rem;
  animation: floatLanternUp 8s ease-in forwards;
  filter: drop-shadow(0 0 15px #ffd166);
}

@keyframes floatLanternUp {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  70% { opacity: 0.85; transform: translateY(-70vh) scale(0.7) translateX(30px); }
  100% { opacity: 0; transform: translateY(-110vh) scale(0.4) translateX(60px); }
}

.final-oath-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 209, 102, 0.35);
  border-radius: 20px;
  padding: 24px;
  margin: 20px auto;
  max-width: 540px;
}

.oath-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--accent-gold);
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.oath-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.6;
  color: #fff;
}

.oath-signature {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  font-size: 0.9rem;
  color: var(--primary-soft-pink);
}

.oath-names {
  font-family: var(--font-script);
  font-size: 1.6rem;
}

.replay-bar {
  margin-top: 25px;
}
