/* ==========================================================================
   CELESTIAL BLOOM SLIDESHOW — FULL-SCREEN ONE-SECTION-PER-SLIDE EDITION
   Royal Sapphire Blue (#082166) • Pearl White • Champagne Gold
   10 Distinct Per-Slide Entrance Animations • Autoplay + Interactive Control
   ========================================================================== */

:root {
  --sapphire-deep: #051542;
  --sapphire-main: #082166;
  --sapphire-mid: #0c2c82;
  --pearl: #f7f9ff;
  --pearl-soft: rgba(235, 243, 255, 0.88);
  --pearl-muted: rgba(212, 226, 255, 0.7);
  --gold: #f0d698;
  --gold-bright: #f7df9c;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --shell-width: 460px;
}

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

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: radial-gradient(circle at top center, #0d2e88 0%, var(--sapphire-deep) 68%);
  color: var(--pearl);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  display: flex;
  justify-content: center;
  touch-action: none;
}

#starfieldCanvas,
#confettiCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
#starfieldCanvas { z-index: 2; opacity: 0.6; }
#confettiCanvas  { z-index: 98; }

/* ==========================================================================
   INTRO GATE OVERLAY & STAGGERED PRELOADER SHIMMER
   ========================================================================== */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: radial-gradient(circle at 50% 50%, rgba(4, 16, 52, 0.28) 0%, rgba(3, 12, 41, 0.56) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.65s ease, visibility 0.65s ease, background 0.55s ease;
}

.intro-overlay.video-active {
  background: transparent;
  pointer-events: none;
}

.intro-overlay.video-active .skip-pill {
  pointer-events: auto;
}

.intro-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-overlay.video-active .intro-content {
  opacity: 0;
  transform: translateY(-50%) scale(0.94);
  pointer-events: none;
}

.intro-content {
  position: absolute;
  z-index: 104;
  top: 52%;
  transform: translateY(-50%);
  width: 100%;
  max-width: var(--shell-width);
  padding: 36px 24px;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(3, 12, 44, 0.76) 0%, rgba(3, 12, 44, 0.44) 55%, rgba(3, 12, 44, 0) 82%);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

@keyframes introFadeUp {
  0%   { opacity: 0; transform: translateY(16px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes buttonShimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes goldPulseGlow {
  0%, 100% { box-shadow: 0 10px 34px rgba(0, 0, 0, 0.65), 0 0 22px rgba(240, 214, 152, 0.32); }
  50%      { box-shadow: 0 10px 36px rgba(0, 0, 0, 0.7), 0 0 34px rgba(240, 214, 152, 0.65); }
}

@keyframes spinSparkle {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.intro-kicker {
  opacity: 0;
  animation: introFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(2, 8, 30, 0.98);
}

.intro-script {
  opacity: 0;
  animation: introFadeUp 1.05s cubic-bezier(0.22, 1, 0.36, 1) 0.52s forwards;
  font-family: var(--font-script);
  font-size: clamp(3.55rem, 13.5vw, 4.45rem);
  font-weight: 400;
  line-height: 1.06;
  color: #ffffff;
  -webkit-text-stroke: 0.45px rgba(255, 252, 240, 0.75);
  text-shadow: 0 3px 10px rgba(2, 8, 32, 0.98), 0 6px 26px rgba(2, 8, 32, 0.95), 0 0 24px rgba(240, 214, 152, 0.42);
  margin-bottom: 22px;
}

.open-invite-btn {
  opacity: 0;
  position: relative;
  overflow: hidden;
  animation: introFadeUp 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.92s forwards;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  background: rgba(5, 18, 62, 0.82);
  color: #ffffff;
  border: 1.6px solid rgba(246, 220, 151, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.65), 0 0 24px rgba(240, 214, 152, 0.32);
  transition: transform 0.25s ease, background 0.25s ease;
}

.open-invite-btn.is-loading {
  border-color: rgba(246, 220, 151, 0.48);
  cursor: wait;
}

.open-invite-btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(246, 220, 151, 0.24) 50%, transparent 80%);
  background-size: 200% 100%;
  animation: buttonShimmer 1.5s linear infinite;
  pointer-events: none;
}

.open-invite-btn.is-ready {
  animation: introFadeUp 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.92s forwards,
             goldPulseGlow 2.6s ease-in-out 1.9s infinite;
}

.sparkle-icon {
  color: var(--gold);
  font-size: 0.95rem;
  display: inline-block;
}

.open-invite-btn.is-loading .sparkle-icon {
  animation: spinSparkle 1.8s linear infinite;
}

.skip-pill {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  right: max(16px, calc(50% - var(--shell-width) / 2 + 16px));
  z-index: 105;
  background: rgba(8, 25, 78, 0.62);
  color: var(--pearl);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.skip-pill.hidden { opacity: 0; pointer-events: none; }

/* ==========================================================================
   FLOATING TOP BAR (LANGUAGE + AUTOPLAY + MUSIC CONTROLS)
   ========================================================================== */
.floating-topbar {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--shell-width);
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 70;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.floating-topbar.visible { opacity: 1; }

.topbar-right-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-switcher,
.control-pill {
  pointer-events: auto;
  background: rgba(5, 19, 60, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 999px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.lang-switcher {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
  padding: 5px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.active {
  background: rgba(240, 214, 152, 0.28);
  color: var(--gold-bright);
}

.control-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.autoplay-pill.running {
  border-color: rgba(246, 220, 151, 0.75);
  color: var(--gold-bright);
}

.auto-icon {
  font-size: 0.72rem;
  line-height: 1;
}

.music-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
}

.music-bars span {
  display: block;
  width: 2px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
}

.music-pill.playing .music-bars span:nth-child(1) { animation: eqBar 0.85s ease-in-out infinite alternate; }
.music-pill.playing .music-bars span:nth-child(2) { animation: eqBar 0.6s ease-in-out 0.2s infinite alternate; }
.music-pill.playing .music-bars span:nth-child(3) { animation: eqBar 0.75s ease-in-out 0.35s infinite alternate; }

@keyframes eqBar {
  from { height: 3px; }
  to   { height: 10px; }
}

/* ==========================================================================
   MAIN FULL-VIEWPORT SLIDESHOW SHELL
   ========================================================================== */
.deck-shell {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: var(--shell-width);
  height: 100%;
  height: 100dvh;
  background-color: var(--sapphire-main);
  box-shadow: 0 0 90px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* Thin Golden Autoplay Progress Bar at Top */
.autoplay-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 75;
}

.autoplay-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #ffffff, var(--gold-bright));
  box-shadow: 0 0 10px rgba(240, 214, 152, 0.85);
}

/* Vertical Side Dots */
.slide-dots-nav {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 65;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.slide-dots-nav.visible {
  opacity: 1;
  pointer-events: auto;
}

.slide-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  padding: 0;
  transition: height 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.slide-dot.active {
  height: 20px;
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* Compact Bottom Prev / Counter / Next Bar */
.slide-arrows-bar {
  position: absolute;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 65;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(5, 19, 60, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.slide-arrows-bar.visible {
  opacity: 1;
  pointer-events: auto;
}

.slide-arrow-btn {
  background: transparent;
  border: none;
  color: var(--gold-bright);
  font-size: 0.95rem;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.slide-arrow-btn:hover { background: rgba(240, 214, 152, 0.2); }
.slide-arrow-btn:disabled { opacity: 0.3; cursor: default; }

.slide-counter {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--pearl-soft);
}

/* ==========================================================================
   SLIDES STAGE & ONE-FIT-SCREEN SLIDE BASE
   ========================================================================== */
.slides-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.deck-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 25%, #0c2d85 0%, var(--sapphire-main) 65%, var(--sapphire-deep) 100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.72s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.72s ease;
  overflow: hidden;
}

.deck-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 10;
  transform: translate3d(0, 0, 0) scale(1);
}

.deck-slide.exit-up {
  opacity: 0;
  transform: translate3d(0, -8%, 0) scale(0.96);
  z-index: 5;
}

.deck-slide.exit-down {
  opacity: 0;
  transform: translate3d(0, 8%, 0) scale(0.96);
  z-index: 5;
}

.slide-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-bloom-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-bloom-video.fade-to-still { opacity: 0; }

.slide-top-fade {
  position: absolute;
  inset: 0 0 auto 0;
  height: 20%;
  background: linear-gradient(to bottom, rgba(5, 21, 66, 0.65), transparent);
  z-index: 3;
}

.slide-bottom-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 22%;
  background: linear-gradient(to top, rgba(5, 21, 66, 0.85), transparent);
  z-index: 3;
}

.slide-body {
  position: relative;
  z-index: 5;
  width: 100%;
  max-height: calc(100dvh - 112px);
  padding: 0 24px 0 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   10 DISTINCT PER-SLIDE ENTRANCE ANIMATIONS (REPLAY ON EVERY VISIT)
   ========================================================================== */
.anim-item {
  opacity: 0;
  will-change: transform, opacity, filter;
}

.deck-slide.is-active .anim-d1 { animation-delay: 0.12s; }
.deck-slide.is-active .anim-d2 { animation-delay: 0.28s; }
.deck-slide.is-active .anim-d3 { animation-delay: 0.44s; }
.deck-slide.is-active .anim-d4 { animation-delay: 0.60s; }
.deck-slide.is-active .anim-d5 { animation-delay: 0.76s; }

/* 1. Hero: Cinematic Zoom-In */
.deck-slide[data-anim="cinematic-zoom"].is-active .anim-item {
  animation-name: animCinematicZoom;
  animation-duration: 0.95s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
}
@keyframes animCinematicZoom {
  0%   { opacity: 0; transform: scale(0.86) translateY(16px); filter: blur(4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); filter: blur(0); }
}

/* 2. Blessings: Curtain Rise */
.deck-slide[data-anim="curtain-rise"].is-active .anim-item {
  animation-name: animCurtainRise;
  animation-duration: 0.85s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
}
@keyframes animCurtainRise {
  0%   { opacity: 0; transform: translateY(34px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* 3. Scratch & Countdown: Portal Bloom */
.deck-slide[data-anim="portal-bloom"].is-active .anim-item {
  animation-name: animPortalBloom;
  animation-duration: 0.9s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  animation-fill-mode: forwards;
}
@keyframes animPortalBloom {
  0%   { opacity: 0; transform: scale(0.75); filter: brightness(1.3); }
  100% { opacity: 1; transform: scale(1); filter: brightness(1); }
}

/* 4. Day 1 Ceremonies: Glide From Left */
.deck-slide[data-anim="glide-left"].is-active .anim-item {
  animation-name: animGlideLeft;
  animation-duration: 0.82s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
}
@keyframes animGlideLeft {
  0%   { opacity: 0; transform: translateX(-44px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* 5. Day 2 Ceremonies: Glide From Right */
.deck-slide[data-anim="glide-right"].is-active .anim-item {
  animation-name: animGlideRight;
  animation-duration: 0.82s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
}
@keyframes animGlideRight {
  0%   { opacity: 0; transform: translateX(44px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* 6. Grand Reception: Royal Scale & Float */
.deck-slide[data-anim="royal-scale"].is-active .anim-item {
  animation-name: animRoyalScale;
  animation-duration: 0.9s;
  animation-timing-function: cubic-bezier(0.2, 0.9, 0.3, 1);
  animation-fill-mode: forwards;
}
@keyframes animRoyalScale {
  0%   { opacity: 0; transform: scale(1.16) translateY(-14px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* 7. Venue & Map: Horizon Lift */
.deck-slide[data-anim="horizon-lift"].is-active .anim-item {
  animation-name: animHorizonLift;
  animation-duration: 0.88s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
}
@keyframes animHorizonLift {
  0%   { opacity: 0; transform: translateY(38px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* 8. Story Polaroids: Tilted Cascade */
.deck-slide[data-anim="polaroid-cascade"].is-active .anim-item {
  animation-name: animPolaroidCascade;
  animation-duration: 0.86s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
}
@keyframes animPolaroidCascade {
  0%   { opacity: 0; transform: translateY(28px) rotate(-4deg) scale(0.92); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
}

/* 9. Gallery of Love: Arch Spotlight */
.deck-slide[data-anim="arch-spotlight"].is-active .anim-item {
  animation-name: animArchSpotlight;
  animation-duration: 0.9s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
}
@keyframes animArchSpotlight {
  0%   { opacity: 0; transform: scale(0.84) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* 10. Closing Blessings: Starlight Fade */
.deck-slide[data-anim="starlight-fade"].is-active .anim-item {
  animation-name: animStarlightFade;
  animation-duration: 1.0s;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}
@keyframes animStarlightFade {
  0%   { opacity: 0; transform: translateY(18px); filter: blur(5px); }
  100% { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ==========================================================================
   SLIDE 1 — HERO TYPOGRAPHY (HIGH CONTRAST)
   ========================================================================== */
.hero-body {
  padding: 50px 24px;
  background: radial-gradient(ellipse at center, rgba(3, 13, 46, 0.78) 0%, rgba(3, 13, 46, 0.46) 54%, rgba(3, 13, 46, 0) 82%);
}

.hero-await-portal {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 1s ease, transform 1s ease;
}

.hero-await-portal.portal-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.hero-lead {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.4;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(2, 9, 34, 0.98), 0 4px 20px rgba(2, 9, 34, 0.95);
  margin-bottom: 14px;
}

.hero-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
}

.script-line {
  font-family: var(--font-script);
  font-size: clamp(3.8rem, 14.5vw, 4.75rem);
  font-weight: 400;
  line-height: 1.02;
  color: #ffffff;
  -webkit-text-stroke: 0.55px rgba(255, 252, 240, 0.8);
  text-shadow: 0 3px 10px rgba(2, 9, 34, 0.98), 0 6px 26px rgba(2, 9, 34, 0.96), 0 0 24px rgba(240, 214, 152, 0.48);
}

.hero-amp {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--gold-bright);
  margin: 4px 0;
  text-shadow: 0 2px 10px rgba(2, 9, 34, 0.98);
}

.hero-date-pill {
  padding: 7px 18px;
  border-radius: 999px;
  background: rgba(5, 19, 60, 0.7);
  border: 1px solid rgba(246, 220, 151, 0.6);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

/* ==========================================================================
   SHARED SECTION TYPOGRAPHY
   ========================================================================== */
.ornament-top { width: 160px; margin: 0 auto 12px; }

.section-kicker {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 6px;
}

.section-serif-title {
  font-family: var(--font-serif);
  font-size: clamp(1.9rem, 7.2vw, 2.4rem);
  font-weight: 600;
  line-height: 1.12;
  color: #ffffff;
  margin-bottom: 10px;
}

.compact-title {
  font-size: clamp(1.65rem, 6.4vw, 2.1rem);
  margin-bottom: 12px;
}

.section-desc {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--pearl-soft);
  max-width: 320px;
  margin-bottom: 10px;
}

/* ==========================================================================
   SLIDE 2 — BLESSINGS
   ========================================================================== */
.blessings-body {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--pearl-soft);
  max-width: 330px;
  margin-bottom: 8px;
}

.blessings-elders {
  font-family: var(--font-serif);
  font-size: 1.24rem;
  font-weight: 700;
  color: #ffffff;
  margin: 4px 0 8px;
}

.parents-script-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 10px 0 10px;
}

.script-parent {
  font-family: var(--font-script);
  font-size: 2.75rem;
  line-height: 1.02;
  color: var(--gold-bright);
}

.script-amp {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.85);
}

.blessings-subline {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--pearl-soft);
  margin-bottom: 14px;
}

.poetic-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(235, 243, 255, 0.92);
  max-width: 330px;
  padding-top: 12px;
  border-top: 1px solid rgba(240, 214, 152, 0.3);
}

/* ==========================================================================
   SLIDE 3 — SCRATCH TO REVEAL + COUNTDOWN
   ========================================================================== */
.scratch-heading {
  font-family: var(--font-serif);
  font-size: 2.15rem;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 3px 16px rgba(3, 12, 41, 0.95);
  margin-bottom: 6px;
}

.scratch-subtitle {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--pearl-soft);
  max-width: 295px;
  margin-bottom: 16px;
  text-shadow: 0 2px 10px rgba(3, 12, 41, 0.95);
}

.scratch-card-frame {
  position: relative;
  width: min(318px, 88%);
  height: 152px;
  margin-bottom: 10px;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(240, 214, 152, 0.72);
  background: linear-gradient(145deg, rgba(8, 30, 92, 0.95), rgba(14, 46, 134, 0.95));
  box-shadow: 0 14px 40px rgba(2, 10, 36, 0.72);
  user-select: none;
  -webkit-user-select: none;
}

.scratch-reveal-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
}

.reveal-badge {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--gold-bright);
  margin-bottom: 4px;
}

.revealed-headline {
  font-family: var(--font-script);
  font-size: 2rem;
  line-height: 1.1;
  color: #ffffff;
}

.reveal-divider {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 5px 0 6px;
}

.revealed-date { font-family: var(--font-serif); font-size: 1rem; font-weight: 600; color: #ffffff; }
.revealed-venue { font-size: 0.72rem; color: var(--pearl-soft); margin-top: 2px; }

.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  transition: opacity 0.65s ease;
}

.scratch-canvas.revealed { opacity: 0; pointer-events: none; }

.instant-reveal-link {
  background: none;
  border: none;
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 18px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.instant-reveal-link.hidden { opacity: 0; pointer-events: none; }

.countdown-kicker {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
  margin-bottom: 10px;
  text-shadow: 0 2px 10px rgba(3, 12, 41, 0.95);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: min(318px, 88%);
}

.cd-box {
  background: rgba(8, 28, 86, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 9px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cd-num { font-family: var(--font-serif); font-size: 1.55rem; font-weight: 700; line-height: 1; color: #ffffff; }
.cd-lbl { font-size: 0.54rem; font-weight: 700; letter-spacing: 0.14em; color: var(--pearl-muted); margin-top: 3px; }

/* ==========================================================================
   SLIDES 4, 5, 6 — COMPACT FIT-SCREEN CEREMONIES
   ========================================================================== */
.dual-events-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.compact-event-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(240, 214, 152, 0.24);
  text-align: left;
}

.compact-art-wrap {
  width: 112px;
  height: 112px;
  border-radius: 14px;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(circle at center, black 62%, transparent 100%);
  mask-image: radial-gradient(circle at center, black 62%, transparent 100%);
}

.compact-art-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.compact-event-name {
  font-family: var(--font-serif);
  font-size: 1.28rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.12;
}

.compact-event-tag {
  font-family: var(--font-script);
  font-size: 1.18rem;
  color: var(--gold-bright);
  margin: 2px 0 6px;
}

.compact-meta {
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--pearl-soft);
}

.featured-art-wrap {
  width: min(230px, 56vw);
  aspect-ratio: 1 / 1;
  margin-bottom: 6px;
  -webkit-mask-image: radial-gradient(circle at center, black 58%, transparent 98%);
  mask-image: radial-gradient(circle at center, black 58%, transparent 98%);
}

.featured-art-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.featured-script-tag {
  font-family: var(--font-script);
  font-size: 1.55rem;
  color: var(--gold-bright);
  margin-bottom: 10px;
}

.event-meta {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--pearl-soft);
}

/* ==========================================================================
   SLIDE 7 — VENUE + EMBEDDED MAP + PALACE ART
   ========================================================================== */
.venue-address {
  font-family: var(--font-serif);
  font-size: 0.96rem;
  color: var(--pearl-soft);
  max-width: 310px;
  margin-bottom: 12px;
}

.map-card {
  width: 100%;
  height: 158px;
  border-radius: 16px;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  margin-bottom: 12px;
}

.map-card iframe { width: 100%; height: 100%; border: 0; }

.directions-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(240, 214, 152, 0.65);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}

.venue-palace-card {
  width: 100%;
  max-height: 148px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(240, 214, 152, 0.28);
}

.venue-palace-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   SLIDE 8 — COMPACT FIT-SCREEN POLAROID STORY
   ========================================================================== */
.compact-timeline {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c-timeline-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.c-timeline-row.reverse {
  grid-template-columns: 1fr 88px;
  text-align: right;
}

.c-timeline-row.reverse .mini-polaroid { order: 2; }

.mini-polaroid {
  background: #ffffff;
  padding: 5px 5px 14px;
  border-radius: 5px;
  box-shadow: 0 10px 24px rgba(2, 10, 36, 0.55);
}

.mini-polaroid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

.tilt-l { transform: rotate(-3.5deg); }
.tilt-r { transform: rotate(3.5deg); }

.chapter-script {
  font-family: var(--font-script);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold-bright);
  margin-bottom: 3px;
}

.c-timeline-text p {
  font-family: var(--font-serif);
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--pearl-soft);
}

/* ==========================================================================
   SLIDE 9 — 3D ARCHED PHOTO CAROUSEL
   ========================================================================== */
.arch-carousel {
  position: relative;
  width: 100%;
  height: 292px;
  margin: 12px auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-stage { position: relative; width: 100%; height: 100%; }

.arch-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 196px;
  height: 268px;
  border-radius: 110px 110px 14px 14px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.48);
  box-shadow: 0 18px 42px rgba(2, 10, 38, 0.65);
  transition: transform 0.52s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.52s ease, filter 0.52s ease;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.72);
}

.arch-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.arch-slide.active { z-index: 4; opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); border-color: var(--gold-bright); }
.arch-slide.prev { z-index: 2; opacity: 0.62; pointer-events: auto; transform: translate(calc(-50% - 96px), -50%) scale(0.78) rotate(-5deg); filter: brightness(0.72); }
.arch-slide.next { z-index: 2; opacity: 0.62; pointer-events: auto; transform: translate(calc(-50% + 96px), -50%) scale(0.78) rotate(5deg); filter: brightness(0.72); }

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(6, 22, 68, 0.72);
  color: #ffffff;
  font-size: 1.3rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.carousel-nav.prev { left: 2px; }
.carousel-nav.next { right: 2px; }

.carousel-caption {
  font-family: var(--font-script);
  font-size: 1.45rem;
  color: var(--pearl-soft);
  min-height: 30px;
  margin-bottom: 8px;
}

.carousel-dots { display: inline-flex; gap: 8px; }
.dot { width: 7px; height: 7px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.3); cursor: pointer; }
.dot.active { background: var(--gold-bright); transform: scale(1.3); }

/* ==========================================================================
   SLIDE 10 — CLOSING BLESSINGS
   ========================================================================== */
.filigree-divider { width: min(260px, 80%); margin-bottom: 14px; }

.closing-script {
  font-family: var(--font-script);
  font-size: clamp(2.15rem, 8.5vw, 2.7rem);
  color: var(--gold-bright);
  line-height: 1.15;
  margin-bottom: 12px;
}

.closing-note {
  font-family: var(--font-serif);
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--pearl-soft);
  max-width: 320px;
  margin-bottom: 24px;
}

.action-buttons-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.action-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.action-pill:hover {
  background: rgba(240, 214, 152, 0.22);
  border-color: var(--gold-bright);
}

.replay-pill {
  border-color: rgba(246, 220, 151, 0.65);
  color: var(--gold-bright);
}

.footer-signoff {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pearl-muted);
}

.toast-msg {
  position: fixed;
  bottom: 58px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  z-index: 120;
  background: rgba(5, 21, 66, 0.95);
  color: var(--gold-bright);
  border: 1px solid rgba(240, 214, 152, 0.5);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.76rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-msg.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-height: 670px) {
  .compact-event-card { padding: 9px; gap: 10px; grid-template-columns: 92px 1fr; }
  .compact-art-wrap { width: 92px; height: 92px; }
  .map-card { height: 126px; }
  .venue-palace-card { max-height: 112px; }
  .arch-carousel { height: 248px; }
  .arch-slide { width: 170px; height: 230px; }
}


/* ==========================================================================
   FULL-SCREEN SPACE UTILIZATION & LARGE READABLE TYPOGRAPHY UPGRADE
   Eliminates dead top/bottom space & scales cleanly across mobile & desktop
   ========================================================================== */
:root {
  --shell-width: min(560px, 100vw);
}

.deck-shell {
  width: 100%;
  max-width: var(--shell-width);
}

.floating-topbar,
.intro-content {
  max-width: var(--shell-width);
}

.skip-pill {
  right: max(16px, calc(50% - var(--shell-width) / 2 + 16px));
}

/* Fill the full vertical screen height between topbar and bottom counter */
.slide-body {
  height: calc(100dvh - 116px);
  max-height: calc(100dvh - 116px);
  margin-top: 8px;
  padding: 6px 28px 6px 22px;
  justify-content: space-evenly;
}

.hero-body {
  height: auto;
  margin-top: 0;
  justify-content: center;
  padding: 56px 28px;
}

/* Larger, brighter headings everywhere */
.section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  margin-bottom: 4px;
}

.section-serif-title {
  font-size: clamp(2.25rem, 6.8vw, 2.95rem);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.compact-title {
  font-size: clamp(2.05rem, 6.2vw, 2.65rem);
  margin-bottom: 10px;
}

.section-desc {
  font-size: 1.15rem;
  color: #eef4ff;
  max-width: 420px;
}

/* Slide 2: Blessings — Grand & Readable */
.ornament-top { width: 200px; margin: 0 auto 4px; }
.blessings-body { font-size: 1.24rem; line-height: 1.5; color: #eef4ff; max-width: 430px; margin-bottom: 4px; }
.blessings-elders { font-size: 1.55rem; font-weight: 700; margin: 2px 0; }
.parents-script-block { margin: 4px 0; }
.script-parent { font-size: clamp(3.3rem, 11vw, 4.1rem); line-height: 1.02; }
.script-amp { font-size: 1.45rem; }
.blessings-subline { font-size: 1.18rem; color: #eef4ff; margin-bottom: 6px; }
.poetic-quote { font-size: 1.18rem; line-height: 1.55; max-width: 420px; padding-top: 14px; color: #f5f8ff; }

/* Slide 3: Scratch Card & Countdown — Big & Bold */
.scratch-heading { font-size: clamp(2.35rem, 7vw, 2.95rem); }
.scratch-subtitle { font-size: 1.18rem; max-width: 390px; color: #f2f6ff; margin-bottom: 8px; }
.scratch-card-frame { width: min(410px, 94%); height: 190px; margin-bottom: 6px; }
.reveal-badge { font-size: 0.72rem; }
.revealed-headline { font-size: 2.5rem; }
.revealed-date { font-size: 1.2rem; }
.revealed-venue { font-size: 0.88rem; }
.instant-reveal-link { font-size: 0.86rem; margin-bottom: 10px; }
.countdown-kicker { font-size: 0.76rem; margin-bottom: 10px; }
.countdown-grid { width: min(410px, 94%); gap: 12px; }
.cd-box { padding: 14px 6px; border-radius: 14px; }
.cd-num { font-size: 2.15rem; }
.cd-lbl { font-size: 0.66rem; color: #e2ecff; }

/* Slides 4 & 5: Dual Ceremony Cards — Fill Full Screen Height with Big Art & Text */
.dual-events-stack {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 16px;
  padding: 6px 0;
}

.compact-event-card {
  flex: 1;
  max-height: 280px;
  display: grid;
  grid-template-columns: 148px 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.25px solid rgba(240, 214, 152, 0.34);
  box-shadow: 0 12px 32px rgba(2, 10, 38, 0.38);
}

.compact-art-wrap {
  width: 148px;
  height: 148px;
  border-radius: 16px;
}

.compact-event-name {
  font-size: clamp(1.5rem, 4.8vw, 1.85rem);
  font-weight: 700;
  color: #ffffff;
}

.compact-event-tag {
  font-size: clamp(1.35rem, 4.2vw, 1.6rem);
  margin: 4px 0 8px;
}

.compact-meta {
  font-size: clamp(0.86rem, 2.6vw, 0.98rem);
  font-weight: 500;
  line-height: 1.52;
  color: #f2f6ff;
}

/* Slide 6: Grand Reception — Grand Centerpiece */
.featured-art-wrap {
  width: min(310px, 68vw);
  margin-bottom: 4px;
}
.featured-script-tag { font-size: 1.95rem; margin-bottom: 8px; }
.event-meta { font-size: 1.04rem; font-weight: 500; gap: 9px; color: #f2f6ff; }

/* Slide 7: Venue + Map + Palace — Full Screen Fill */
.venue-address { font-size: 1.14rem; color: #eef4ff; max-width: 420px; margin-bottom: 6px; }
.map-card { height: 220px; border-radius: 18px; margin-bottom: 8px; }
.directions-pill { padding: 11px 28px; font-size: 0.82rem; margin-bottom: 8px; }
.venue-palace-card { flex: 1; max-height: 220px; min-height: 140px; border-radius: 18px; }

/* Slide 8: Story Polaroids — Fill Full Screen Height with Big Polaroids & Text */
.compact-timeline {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 14px;
  padding: 6px 0;
}

.c-timeline-row {
  grid-template-columns: 122px 1fr;
  gap: 18px;
}

.c-timeline-row.reverse {
  grid-template-columns: 1fr 122px;
}

.mini-polaroid {
  padding: 7px 7px 18px;
  border-radius: 7px;
}

.chapter-script {
  font-size: clamp(1.85rem, 5.6vw, 2.25rem);
  margin-bottom: 5px;
}

.c-timeline-text p {
  font-size: clamp(1.06rem, 3.2vw, 1.2rem);
  line-height: 1.46;
  color: #f2f6ff;
}

/* Slide 9: 3D Arched Gallery — Tall & Impactful */
.arch-carousel {
  height: min(410px, 50dvh);
  margin: 8px auto 8px;
}

.arch-slide {
  width: min(260px, 58vw);
  height: min(365px, 46dvh);
  border-radius: 140px 140px 18px 18px;
}

.arch-slide.prev { transform: translate(calc(-50% - 122px), -50%) scale(0.78) rotate(-5deg); }
.arch-slide.next { transform: translate(calc(-50% + 122px), -50%) scale(0.78) rotate(5deg); }

.carousel-nav { width: 42px; height: 42px; font-size: 1.55rem; }
.carousel-caption { font-size: clamp(1.7rem, 5.2vw, 2.05rem); min-height: 38px; color: #ffffff; }
.dot { width: 9px; height: 9px; }

/* Slide 10: Closing Blessings — Big & Heartfelt */
.filigree-divider { width: min(320px, 85%); margin-bottom: 6px; }
.closing-script { font-size: clamp(2.65rem, 9vw, 3.35rem); }
.closing-note { font-size: 1.24rem; line-height: 1.6; max-width: 410px; color: #f2f6ff; }
.action-pill { padding: 12px 20px; font-size: 0.86rem; }
.footer-signoff { font-size: 0.82rem; color: #dbe7ff; }

/* Compact height safety for small phones (< 720px tall) */
@media (max-height: 720px) {
  .compact-event-card { grid-template-columns: 110px 1fr; padding: 12px; gap: 12px; }
  .compact-art-wrap { width: 110px; height: 110px; }
  .compact-event-name { font-size: 1.32rem; }
  .compact-event-tag { font-size: 1.2rem; margin: 2px 0 4px; }
  .compact-meta { font-size: 0.78rem; }
  .c-timeline-row { grid-template-columns: 94px 1fr; gap: 14px; }
  .c-timeline-row.reverse { grid-template-columns: 1fr 94px; }
  .chapter-script { font-size: 1.55rem; }
  .c-timeline-text p { font-size: 0.96rem; }
  .map-card { height: 155px; }
  .venue-palace-card { max-height: 140px; min-height: 100px; }
  .featured-art-wrap { width: min(220px, 52vw); }
  .scratch-card-frame { height: 156px; }
}

@media (max-width: 420px) {
  .compact-event-card { grid-template-columns: 118px 1fr; padding: 14px 12px; gap: 12px; }
  .compact-art-wrap { width: 118px; height: 118px; }
  .c-timeline-row { grid-template-columns: 104px 1fr; gap: 14px; }
  .c-timeline-row.reverse { grid-template-columns: 1fr 104px; }
  .arch-slide.prev { transform: translate(calc(-50% - 92px), -50%) scale(0.76) rotate(-5deg); }
  .arch-slide.next { transform: translate(calc(-50% + 92px), -50%) scale(0.76) rotate(5deg); }
}


.speed-pill {
  padding: 6px 10px;
  color: var(--gold-bright);
  border-color: rgba(246, 220, 151, 0.45);
  min-width: 38px;
  justify-content: center;
}
.speed-pill:hover {
  background: rgba(240, 214, 152, 0.22);
}


/* ==========================================================================
   HIGH-CONTRAST & BOLD SMALL-TEXT VISIBILITY UPGRADE (ALL 10 SLIDES)
   ========================================================================== */
:root {
  --pearl: #ffffff;
  --pearl-soft: #f5f8ff;
  --pearl-muted: #e6efff;
  --gold: #f5db94;
  --gold-bright: #ffe6a3;
}

/* Soft dark sapphire contrast veil on Slide 3 (Scratch) so text pops over bright roses & lanterns */
#slide-reveal .slide-bg-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(
    ellipse at center,
    rgba(4, 15, 52, 0.72) 0%,
    rgba(4, 15, 52, 0.56) 56%,
    rgba(4, 15, 52, 0.74) 100%
  );
  pointer-events: none;
}

.scratch-heading {
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(2, 8, 30, 0.98), 0 4px 20px rgba(2, 8, 30, 0.95);
}

.scratch-subtitle {
  font-weight: 700;
  color: #ffffff;
  background: rgba(4, 16, 54, 0.62);
  padding: 8px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 2px 8px rgba(2, 8, 30, 0.95);
}

.instant-reveal-link {
  font-weight: 700;
  color: #ffe6a3;
  background: rgba(4, 16, 54, 0.68);
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 230, 163, 0.45);
  text-shadow: 0 2px 6px rgba(2, 8, 30, 0.95);
}

.countdown-kicker {
  font-weight: 700;
  color: #ffe6a3;
  background: rgba(4, 16, 54, 0.72);
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 230, 163, 0.35);
  text-shadow: 0 2px 6px rgba(2, 8, 30, 0.95);
}

.cd-box {
  background: rgba(4, 16, 56, 0.86);
  border: 1.4px solid rgba(255, 230, 163, 0.55);
  box-shadow: 0 8px 24px rgba(2, 8, 30, 0.65);
}

.cd-num {
  color: #ffffff;
  font-weight: 700;
}

.cd-lbl {
  color: #ffe6a3;
  font-weight: 700;
  font-size: 0.7rem;
}

/* Global bold & bright small text across every slide */
.section-kicker {
  font-weight: 700;
  color: #ffe6a3;
  text-shadow: 0 2px 10px rgba(2, 8, 30, 0.85);
}

.section-desc,
.blessings-body,
.blessings-subline,
.poetic-quote,
.venue-address,
.c-timeline-text p,
.closing-note {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(2, 8, 30, 0.75);
}

.compact-meta,
.event-meta,
.revealed-venue,
.revealed-date,
.footer-signoff,
.slide-counter {
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(2, 8, 30, 0.75);
}

.compact-event-card {
  background: rgba(4, 16, 56, 0.56);
  border-color: rgba(255, 230, 163, 0.42);
}

.lang-btn {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.control-pill,
.slide-arrows-bar {
  background: rgba(4, 16, 54, 0.82);
  border-color: rgba(255, 255, 255, 0.36);
}


/* ==========================================================================
   BIG DETAIL LIGHTBOX POPUP (FOR STORY ROWS, CEREMONY CARDS & PHOTOS)
   ========================================================================== */
.c-timeline-row,
.compact-event-card,
.venue-palace-card {
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.c-timeline-row:hover,
.compact-event-card:hover {
  transform: scale(1.018);
}

.c-timeline-row {
  padding: 6px 8px;
  border-radius: 14px;
}

.c-timeline-row:active,
.compact-event-card:active {
  transform: scale(0.985);
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.detail-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.detail-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 10, 34, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.detail-modal-card {
  position: relative;
  z-index: 2;
  width: min(440px, 94vw);
  max-height: 88dvh;
  overflow-y: auto;
  border-radius: 24px;
  background: linear-gradient(165deg, #0c2c82 0%, #06184c 100%);
  border: 1.6px solid rgba(255, 230, 163, 0.65);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.78), 0 0 36px rgba(240, 214, 152, 0.2);
  transform: scale(0.9) translateY(16px);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  text-align: center;
}

.detail-modal.open .detail-modal-card {
  transform: scale(1) translateY(0);
}

.detail-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  background: rgba(4, 15, 52, 0.82);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.detail-modal-img-wrap {
  width: 100%;
  max-height: 52dvh;
  overflow: hidden;
  background: #06184c;
  border-bottom: 1px solid rgba(255, 230, 163, 0.25);
}

.detail-modal-img-wrap img {
  width: 100%;
  height: 100%;
  max-height: 52dvh;
  object-fit: cover;
  display: block;
}

.detail-modal-body {
  padding: 20px 22px 24px;
}

.detail-modal-title {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  margin-bottom: 6px;
}

.detail-modal-title.script-mode {
  font-family: var(--font-script);
  font-size: 2.55rem;
  font-weight: 400;
  color: #ffe6a3;
}

.detail-modal-subtitle {
  font-family: var(--font-script);
  font-size: 1.65rem;
  color: #ffe6a3;
  margin-bottom: 12px;
}

.detail-modal-subtitle:empty {
  display: none;
}

.detail-modal-text {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.55;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.detail-modal-text p {
  margin: 0;
}
