/* ==========================================================================
   SOUMADIP & SHAMPA ROYAL WEDDING INVITATION
   Mobile-First Living Animated Characters & Regal Reveal Transitions
   ========================================================================== */

:root {
  /* Royal Color Palette */
  --royal-crimson: #6B0E1D;
  --royal-crimson-deep: #480611;
  --royal-maroon: #280208;
  --vermilion: #B81D24;
  --alta-red: #D91E2B;
  
  /* Auspicious Golds & Champagne */
  --gold-primary: #D4AF37;
  --gold-light: #F7E7B4;
  --gold-metallic: linear-gradient(135deg, #FFDF73 0%, #D4AF37 50%, #AA771C 100%);
  --gold-shimmer: linear-gradient(90deg, #D4AF37 0%, #FFF3CC 50%, #D4AF37 100%);
  --gold-glow: 0 0 25px rgba(212, 175, 55, 0.45);
  --gold-border: rgba(212, 175, 55, 0.5);

  /* Weds Distinct Contrast Color */
  --weds-color: #FF1A75;
  --weds-gradient: linear-gradient(135deg, #FF4D79 0%, #FF1A75 50%, #D90050 100%);

  /* Auspicious Festive Accents */
  --haldi-yellow: #F5A623;
  --marigold-orange: #FF7B00;
  --peacock-teal: #086375;
  --silk-ivory: #FFFDF9;
  --parchment: #FDF6E2;
  --cream-card: rgba(255, 253, 249, 0.94);
  --glass-dark: rgba(26, 3, 7, 0.88);
  --glass-blur: blur(14px);

  /* Typography */
  --font-serif: 'Playfair Display', 'Cinzel Decorative', Georgia, serif;
  --font-display: 'Cinzel Decorative', cursive, serif;
  --font-script: 'Great Vibes', cursive;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-bengali: 'Noto Serif Bengali', 'Hind Siliguri', serif;
  --font-bengali-ui: 'Hind Siliguri', sans-serif;

  /* Transitions */
  --ease-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: all 0.5s var(--ease-cinematic);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 75px;
}

body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background-color: var(--royal-maroon);
  color: var(--silk-ivory);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

/* Bengali Mode Typography Override */
body.lang-bn {
  font-family: var(--font-bengali-ui);
}
body.lang-bn .bengali-title,
body.lang-bn h1, 
body.lang-bn h2, 
body.lang-bn h3,
body.lang-bn .script-subtitle,
body.lang-bn .card-couple-names {
  font-family: var(--font-bengali);
}

/* Top Golden Scroll Progress Bar */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3.5px;
  background: linear-gradient(90deg, #FFDF73, #D4AF37, #FF7B00);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.85);
  z-index: 999;
  transition: width 0.1s linear;
}

/* Foreground Interactive Flower Petal Canvas (Rains in front of screen) */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 150;
}

.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  background: radial-gradient(circle at 50% 15%, #7d1323 0%, #440711 50%, #1a0105 100%);
  overflow: hidden;
}

.ambient-lights {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 15%, rgba(245, 166, 35, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 80% 25%, rgba(212, 175, 55, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(184, 29, 36, 0.3) 0%, transparent 50%);
  filter: blur(40px);
  animation: pulseAura 12s ease-in-out infinite alternate;
}

@keyframes pulseAura {
  0% { transform: scale(1) rotate(0deg); opacity: 0.8; }
  100% { transform: scale(1.1) rotate(2deg); opacity: 1; }
}

/* Top Floating Controls Bar */
.floating-dock {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(30, 2, 7, 0.88);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--gold-border);
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), var(--gold-glow);
  z-index: 100;
  max-width: 95vw;
}

.dock-lang-group {
  display: flex;
  gap: 3px;
}

.dock-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: var(--gold-light);
  border: 1px solid transparent;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.dock-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: #fff;
}

.dock-btn.active {
  background: var(--gold-metallic);
  color: var(--royal-maroon);
  font-weight: 700;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.dock-btn-special {
  background: rgba(217, 30, 43, 0.25);
  border-color: rgba(217, 30, 43, 0.6);
  color: #fff;
}

.dock-btn-special:hover {
  background: rgba(217, 30, 43, 0.45);
}

.dock-divider {
  width: 1px;
  height: 18px;
  background: rgba(212, 175, 55, 0.3);
}

@media (max-width: 540px) {
  .floating-dock {
    gap: 5px;
    padding: 5px 10px;
  }
  .dock-btn {
    padding: 5px 9px;
    font-size: 0.78rem;
  }
  .hide-mobile {
    display: none;
  }
}

/* ==========================================================================
   SCENE 0: REDESIGNED BESPOKE ROYAL INVITATION CARD (100% GLITCH-FREE)
   No emojis, pure regal Indian crest, smooth 60fps hardware accelerated
   ========================================================================== */
#envelope-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 120;
  background: radial-gradient(circle at 50% 40%, rgba(85, 11, 24, 0.98) 0%, rgba(35, 3, 9, 0.99) 70%, #120104 100%);
  padding: 16px;
  transition: opacity 0.7s var(--ease-cinematic), transform 0.7s var(--ease-cinematic), visibility 0.7s;
}

#envelope-screen.opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-40px) scale(1.05);
}

.royal-invite-card {
  position: relative;
  width: min(92vw, 440px);
  background: linear-gradient(160deg, #4d0713 0%, #2e020a 100%);
  border: 2px solid var(--gold-primary);
  border-radius: 20px;
  padding: 34px 22px 28px 22px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), 0 0 45px rgba(212, 175, 55, 0.25);
  text-align: center;
  cursor: pointer;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease, opacity 0.4s ease;
  overflow: hidden;
}

.royal-invite-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), var(--gold-glow);
}

/* Inner Filigree Border */
.card-filigree-border {
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(212, 175, 55, 0.45);
  border-radius: 14px;
  pointer-events: none;
}

/* Alpona Corner Ornaments */
.card-ornament {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--gold-primary);
  pointer-events: none;
}
.co-tl { top: 16px; left: 16px; border-right: none; border-bottom: none; }
.co-tr { top: 16px; right: 16px; border-left: none; border-bottom: none; }
.co-bl { bottom: 16px; left: 16px; border-right: none; border-top: none; }
.co-br { bottom: 16px; right: 16px; border-left: none; border-top: none; }

/* Single-Line Card & Hero Mantra */
.card-mantra-line {
  font-family: var(--font-bengali);
  font-size: clamp(0.68rem, 2.9vw, 1.02rem);
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.6px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  max-width: 100%;
}

.single-line-mantra {
  font-size: clamp(0.72rem, 3.1vw, 1.15rem);
  color: var(--gold-primary);
  margin-bottom: 2px;
  letter-spacing: 0.5px;
}

.card-pretitle {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 2.5px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin: 12px 0 6px 0;
}

.card-couple-names {
  font-family: var(--font-script);
  font-size: clamp(2.3rem, 7.5vw, 3.3rem);
  color: #fff;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.15;
  margin-bottom: 18px;
}

.weds-highlight-crest {
  background: var(--weds-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0 6px;
  filter: drop-shadow(0 2px 8px rgba(255, 26, 117, 0.5));
}

/* Center Royal Golden Medallion (No Emojis) */
.wax-seal-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0 22px 0;
}

.seal-glow-aura {
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.45) 0%, transparent 70%);
  animation: sealAuraPulse 2.5s infinite alternate;
}

@keyframes sealAuraPulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.25); opacity: 1; }
}

.royal-insignia-seal {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd700, #b38600, #664900);
  border: 3px solid #ffea88;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 215, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s var(--ease-spring);
  animation: sealGlowMedallion 2.5s infinite alternate;
}

.royal-insignia-seal:hover {
  transform: scale(1.08) rotate(3deg);
}

.seal-inner-circle {
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.royal-crest-svg {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

@keyframes sealGlowMedallion {
  0% { transform: scale(1); }
  100% { transform: scale(1.05); }
}

/* Call to Action Button */
.btn-open-invite {
  background: var(--gold-metallic);
  color: var(--royal-maroon);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
  transition: all 0.3s ease;
}

.btn-open-invite:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 30px rgba(212, 175, 55, 0.6);
}

.tap-hint {
  font-size: 0.82rem;
  color: var(--gold-light);
  margin-top: 10px;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

/* ==========================================================================
   WEDS HIGHLIGHT STYLING (DIFFERENT COLOR FOR BETTER EMPHASIS)
   ========================================================================== */
.partner-name {
  color: #fff;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.weds-highlight {
  font-family: var(--font-script);
  font-size: 1.15em;
  padding: 0 8px;
  background: var(--weds-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(255, 26, 117, 0.7));
  display: inline-block;
  font-style: italic;
  animation: wedsPulseGlow 3s infinite alternate ease-in-out;
}

@keyframes wedsPulseGlow {
  0% {
    filter: drop-shadow(0 2px 8px rgba(255, 26, 117, 0.5));
    transform: scale(1);
  }
  100% {
    filter: drop-shadow(0 2px 15px rgba(255, 26, 117, 0.85));
    transform: scale(1.05);
  }
}

/* ==========================================================================
   CREATIVE ROYAL REVEAL TRANSITIONS & SECTION DIVIDERS
   ========================================================================== */
.royal-section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 440px;
  margin: 10px auto;
  color: var(--gold-primary);
  font-family: var(--font-bengali);
  font-size: 0.95rem;
  letter-spacing: 2px;
}

.royal-section-divider::before,
.royal-section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.divider-knot {
  color: var(--gold-light);
  font-size: 0.85rem;
}

.divider-center {
  background: rgba(35, 3, 9, 0.85);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  color: var(--gold-light);
  font-weight: 600;
}

/* Diagonal Gold Sheen Beam across each Section Frame */
.royal-sheen-beam {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(255, 230, 150, 0.12) 50%, transparent 60%);
  transform: translateX(-100%);
  pointer-events: none;
  animation: royalSheenSweep 8s infinite ease-in-out;
}

@keyframes royalSheenSweep {
  0%, 30% { transform: translateX(-100%); }
  50%, 100% { transform: translateX(100%); }
}

/* Frame arrival animation when entering viewport */
.royal-frame {
  background: linear-gradient(155deg, rgba(74, 9, 21, 0.94) 0%, rgba(35, 3, 9, 0.98) 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1.5px solid var(--gold-primary);
  border-radius: 20px;
  padding: 34px 20px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), inset 0 0 30px rgba(212, 175, 55, 0.12);
  overflow: hidden;
  transition: transform 0.6s var(--ease-cinematic), box-shadow 0.6s ease;
}

.scroll-section.active-target .royal-frame {
  box-shadow: 0 25px 65px rgba(0,0,0,0.85), 0 0 35px rgba(212, 175, 55, 0.45);
  animation: sectionArrivalPulse 1.2s ease-out;
}

@keyframes sectionArrivalPulse {
  0% { transform: scale(0.98); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

@media (min-width: 768px) {
  .royal-frame {
    border-width: 2px;
    padding: 44px 34px;
    border-radius: 24px;
  }
}

/* ==========================================================================
   ANIMATED LIVING CHARACTERS (LOOKING AT EACH OTHER, HEAD MOTION, SPARKLES)
   ========================================================================== */
.character-stage {
  position: relative;
  border-radius: 20px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.45), rgba(212, 175, 55, 0.08));
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), var(--gold-glow);
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto;
}

.character-alive-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  display: block;
}

/* Couple Card Living Animation: Looking at each other, head tilt and gaze */
.couple-img-alive {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  transform-origin: 50% 65%;
  animation: coupleGazeExchange 7s ease-in-out infinite alternate;
}

@keyframes coupleGazeExchange {
  0% {
    transform: scale(1) translateY(0) rotate(0deg);
  }
  25% {
    /* Groom leans slightly towards bride (right), breathing in */
    transform: scale(1.025) translateY(-3px) rotate(0.8deg);
  }
  50% {
    /* Bride tilts head shyly towards groom (left), gentle nod */
    transform: scale(1.02) translateY(-1px) rotate(-0.8deg);
  }
  75% {
    /* Mutual warm gaze together, subtle zoom in */
    transform: scale(1.035) translateY(-4px) rotate(0.4deg);
  }
  100% {
    /* Sweet resting harmony */
    transform: scale(1.01) translateY(0) rotate(-0.4deg);
  }
}

/* Groom Solo Card: Handsome Nod & Welcoming Smile */
.groom-img-alive {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transform-origin: 50% 60%;
  animation: groomHeadMotion 6s ease-in-out infinite alternate;
}

@keyframes groomHeadMotion {
  0% {
    transform: scale(1) translateY(0) rotate(0deg);
  }
  30% {
    transform: scale(1.03) translateY(-3px) rotate(1.2deg);
  }
  70% {
    transform: scale(1.02) translateY(-2px) rotate(-0.8deg);
  }
  100% {
    transform: scale(1.01) translateY(0) rotate(0.6deg);
  }
}

/* Bride Solo Card: Shy Gentle Head Tilt Looking towards Groom */
.bride-img-alive {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transform-origin: 50% 60%;
  animation: brideHeadMotion 6.5s ease-in-out infinite alternate;
}

@keyframes brideHeadMotion {
  0% {
    transform: scale(1) translateY(0) rotate(0deg);
  }
  35% {
    transform: scale(1.03) translateY(-3px) rotate(-1.4deg);
  }
  75% {
    transform: scale(1.02) translateY(-1px) rotate(0.6deg);
  }
  100% {
    transform: scale(1.015) translateY(0) rotate(-0.8deg);
  }
}

/* Haldi Ceremony Card: Joyful Laughing & Bouncing Together */
.haldi-img-alive {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 70%;
  animation: haldiJoyousSway 5s ease-in-out infinite alternate;
}

@keyframes haldiJoyousSway {
  0% {
    transform: scale(1) translateY(0) rotate(0deg);
  }
  25% {
    transform: scale(1.03) translateY(-4px) rotate(1deg);
  }
  50% {
    transform: scale(1.02) translateY(-1px) rotate(-1.2deg);
  }
  75% {
    transform: scale(1.04) translateY(-3px) rotate(0.8deg);
  }
  100% {
    transform: scale(1) translateY(0) rotate(-0.5deg);
  }
}

/* Reception Card: Royal Stage Presence & Romantic Sway */
.reception-img-alive {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 60%;
  animation: receptionStageSway 7s ease-in-out infinite alternate;
}

@keyframes receptionStageSway {
  0% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.03) translateY(-3px); }
  100% { transform: scale(1.01) translateY(-1px); }
}

/* Character Twinkling Sparkles */
.character-sparkle {
  position: absolute;
  pointer-events: none;
  font-size: 1.1rem;
  z-index: 5;
  filter: drop-shadow(0 0 6px #fff);
  animation: twinkleSparkle 3s infinite ease-in-out;
}

@keyframes twinkleSparkle {
  0%, 100% { transform: scale(0.6) rotate(0deg); opacity: 0.2; }
  50% { transform: scale(1.3) rotate(35deg); opacity: 1; filter: drop-shadow(0 0 10px #FFDF73); }
}

.sparkle-eye-groom { top: 38%; left: 34%; animation-delay: 0.2s; }
.sparkle-eye-bride { top: 41%; right: 34%; animation-delay: 1.2s; }
.sparkle-mukut { top: 22%; right: 28%; animation-delay: 0.7s; font-size: 1rem; }
.sparkle-chandan { top: 35%; right: 36%; animation-delay: 1.8s; font-size: 0.8rem; }

.sparkle-eye-groom-solo { top: 33%; left: 47%; animation-delay: 0.5s; }
.sparkle-zari-uttariya { bottom: 25%; right: 20%; animation-delay: 1.5s; }

.sparkle-eye-bride-solo { top: 35%; left: 48%; animation-delay: 0.6s; }
.sparkle-crown-bride { top: 12%; left: 48%; animation-delay: 1.2s; font-size: 1.2rem; }
.sparkle-jhumka { top: 42%; right: 35%; animation-delay: 2s; }

.sparkle-haldi-dust { top: 45%; left: 48%; animation-delay: 0.9s; }
.sparkle-chandelier { top: 15%; left: 50%; transform: translateX(-50%); animation-delay: 1.4s; }

.gaze-halo-sweep {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 245, 200, 0.15) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: gazeSweepLight 6s infinite ease-in-out;
  pointer-events: none;
}

@keyframes gazeSweepLight {
  0%, 40% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* ==========================================================================
   MAIN SCROLLABLE CONTAINER & SECTION LAYOUT
   ========================================================================== */
#main-app.scroll-flow {
  position: relative;
  width: 100%;
  min-height: 100vh;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 75px 14px 110px 14px;
  gap: 28px;
}

@media (min-width: 768px) {
  #main-app.scroll-flow {
    padding: 85px 24px 120px 24px;
    gap: 45px;
  }
}

.scroll-section {
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
}

/* ==========================================================================
   SEQUENTIAL SCROLL-REVEAL ENGINE
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: opacity 0.8s var(--ease-cinematic), transform 0.8s var(--ease-cinematic);
  will-change: opacity, transform;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal-up {
  transform: translateY(30px);
}
.reveal-up.is-revealed {
  transform: translateY(0);
}

.reveal-left {
  transform: translateX(-35px);
}
.reveal-left.is-revealed {
  transform: translateX(0);
}

.reveal-right {
  transform: translateX(35px);
}
.reveal-right.is-revealed {
  transform: translateX(0);
}

.reveal-zoom {
  transform: scale(0.92);
}
.reveal-zoom.is-revealed {
  transform: scale(1);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Traditional Bengali Alpona Corners */
.alpona-corner {
  position: absolute;
  width: 52px;
  height: 52px;
  pointer-events: none;
  opacity: 0.85;
}
.alpona-tl { top: 8px; left: 8px; }
.alpona-tr { top: 8px; right: 8px; transform: scaleX(-1); }
.alpona-bl { bottom: 8px; left: 8px; transform: scaleY(-1); }
.alpona-br { bottom: 8px; right: 8px; transform: scale(-1); }

.mantra-header {
  text-align: center;
  margin-bottom: 20px;
}

.golden-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 10px auto 16px auto;
  max-width: 320px;
}

.golden-divider::before,
.golden-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.golden-divider-icon {
  color: var(--gold-primary);
  font-size: 1.1rem;
}

/* Titles & Typography Styles */
.royal-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5.5vw, 2.6rem);
  text-align: center;
  color: #fff;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  line-height: 1.25;
  margin-bottom: 6px;
}

.script-subtitle {
  font-family: var(--font-script);
  font-size: clamp(2.1rem, 7.5vw, 3.4rem);
  color: var(--gold-light);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.15;
}

.couple-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
}

@media (min-width: 840px) {
  .couple-hero-grid {
    grid-template-columns: 1.1fr 1fr;
    gap: 36px;
  }
}

.invitation-replacement-block {
  text-align: center;
  margin-bottom: 12px;
}

.cartoon-badge {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 2, 7, 0.9);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 5px 16px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  white-space: nowrap;
  box-shadow: 0 6px 15px rgba(0,0,0,0.5);
  z-index: 6;
}

/* Live Countdown Ribbon */
.countdown-container {
  margin-top: 18px;
  background: rgba(38, 4, 10, 0.7);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
}

.countdown-title {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.timer-boxes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 380px;
  margin: 0 auto;
}

.timer-box {
  background: linear-gradient(180deg, rgba(60, 6, 15, 0.9) 0%, rgba(20, 2, 5, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 10px;
  padding: 8px 4px;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
}

.timer-number {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.timer-label {
  font-size: 0.65rem;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-top: 3px;
}

/* Scroll Cue Indicator */
.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
  color: var(--gold-light);
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.scroll-cue:hover {
  opacity: 1;
}

.scroll-cue-text {
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scroll-cue-arrow {
  font-size: 1.3rem;
  color: var(--gold-primary);
  animation: bounceCue 1.8s infinite ease-in-out;
}

@keyframes bounceCue {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ==========================================================================
   SECTIONS 2 & 3: GROOM & BRIDE SPOTLIGHT (FAMILY DETAILS)
   ========================================================================== */
.profile-spotlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
}

@media (min-width: 820px) {
  .profile-spotlight-grid {
    grid-template-columns: 320px 1fr;
    gap: 34px;
  }
}

.profile-portrait-wrap {
  position: relative;
  border-radius: 18px;
  padding: 8px;
  background: radial-gradient(circle at 50% 30%, rgba(212, 175, 55, 0.3), rgba(20, 2, 5, 0.8));
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.75), var(--gold-glow);
  max-width: 340px;
  margin: 0 auto;
}

.family-tree-card {
  background: rgba(30, 2, 7, 0.65);
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: 18px 14px;
}

@media (min-width: 600px) {
  .family-tree-card {
    padding: 24px;
  }
}

.family-role-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 10px 14px;
  background: rgba(20, 2, 5, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 12px;
  margin-bottom: 9px;
  transition: all 0.3s ease;
}

.family-role-row:hover {
  background: rgba(45, 5, 12, 0.75);
  border-color: var(--gold-primary);
  transform: translateX(3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.family-role-row:last-child {
  margin-bottom: 0;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.role-sep {
  color: var(--gold-light);
  font-weight: 700;
  opacity: 0.8;
  user-select: none;
}

.role-person {
  font-size: 1.02rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
  word-break: break-word;
}

.btn-royal-primary {
  background: var(--gold-metallic);
  color: var(--royal-maroon);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35);
  transition: all 0.3s ease;
  min-height: 46px;
}

.btn-royal-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(212, 175, 55, 0.55);
}

/* ==========================================================================
   SECTION 4: CEREMONIES
   ========================================================================== */
.ceremonies-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 16px;
}

@media (min-width: 780px) {
  .ceremonies-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

.ceremony-event-card {
  background: rgba(35, 3, 9, 0.75);
  border: 1px solid var(--gold-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.ceremony-event-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: 0 18px 40px rgba(0,0,0,0.75), var(--gold-glow);
}

.ceremony-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.ceremony-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--gold-metallic);
  color: var(--royal-maroon);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  text-transform: uppercase;
  z-index: 6;
}

.ceremony-body {
  padding: 20px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

@media (min-width: 600px) {
  .ceremony-body {
    padding: 24px;
  }
}

.ceremony-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 4px;
}

.ceremony-bengali-title {
  font-family: var(--font-bengali);
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 8px;
}

/* ==========================================================================
   PROMINENT & DIFFERENTIATED CEREMONY DATES WITH INTERACTIVE SCRATCH-TO-KNOW
   ========================================================================== */
.scratch-date-wrapper {
  position: relative;
  width: 100%;
  height: 82px;
  border-radius: 14px;
  overflow: hidden;
  margin: 12px 0 16px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  user-select: none;
  -webkit-user-select: none;
}

.revealed-date-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
}

/* WEDDING DATE CARD (Auspicious Haldi Saffron & Sindoor Theme) */
.wedding-date-card {
  background: linear-gradient(135deg, rgba(65, 8, 14, 0.98) 0%, rgba(135, 20, 20, 0.96) 50%, rgba(220, 140, 25, 0.45) 100%);
  border: 2px solid #FFB833;
  box-shadow: 0 0 25px rgba(245, 166, 35, 0.4), inset 0 0 18px rgba(255, 215, 0, 0.2);
}

/* RECEPTION DATE CARD (Royal Ruby & Majestic Midnight Maroon Theme) */
.reception-date-card {
  background: linear-gradient(135deg, rgba(42, 4, 12, 0.98) 0%, rgba(145, 12, 45, 0.96) 50%, rgba(255, 26, 117, 0.45) 100%);
  border: 2px solid #FF4D79;
  box-shadow: 0 0 25px rgba(255, 26, 117, 0.45), inset 0 0 18px rgba(255, 77, 121, 0.2);
}

/* Pure, Uncluttered Date Reveal Only */
.scratch-only-date-display {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7.5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: 3px;
  line-height: 1;
  text-align: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wedding-date-text {
  color: #FFF2A8;
  text-shadow: 0 0 22px rgba(255, 215, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.95);
}

.reception-date-text {
  color: #FFCCD8;
  text-shadow: 0 0 22px rgba(255, 77, 121, 0.9), 0 2px 6px rgba(0, 0, 0, 0.95);
}

/* Other Ceremony Details Stored Underneath Scratch Card */
.ceremony-details-underneath {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.ceremony-meta-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.35;
}

.wedding-sub-badge {
  background: rgba(245, 166, 35, 0.16);
  border: 1px solid rgba(255, 184, 51, 0.4);
  color: #FFE6A3;
}

.reception-sub-badge {
  background: rgba(255, 26, 117, 0.16);
  border: 1px solid rgba(255, 107, 139, 0.4);
  color: #FFD4E0;
}

.ceremony-meta-badge .badge-icon {
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* Interactive Gold Scratch Canvas Overlay */
.scratch-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  cursor: grab;
  z-index: 5;
  touch-action: none;
  transition: opacity 0.6s ease;
}

.scratch-canvas:active {
  cursor: grabbing;
}

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

/* Scratch Hint & One-Tap Reveal Control */
.scratch-hint-bar {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(20, 2, 5, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-radius: 30px;
  padding: 3px 10px;
  width: max-content;
  max-width: 92%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.scratch-coin-icon {
  font-size: 0.88rem;
  animation: coinGlowBounce 1.8s infinite ease-in-out;
}

@keyframes coinGlowBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.15); filter: drop-shadow(0 0 6px #FFD700); }
}

.scratch-hint-text {
  font-size: 0.72rem;
  color: var(--gold-light);
  font-weight: 600;
  white-space: nowrap;
}

.btn-quick-scratch-reveal {
  pointer-events: auto;
  background: var(--gold-metallic);
  color: var(--royal-maroon);
  border: none;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.4);
  transition: transform 0.2s ease;
}

.btn-quick-scratch-reveal:hover {
  transform: scale(1.06);
}

.revealed-badge {
  font-size: 0.72rem;
  color: var(--gold-primary);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.scratch-date-wrapper.is-revealed .scratch-hint-bar {
  background: rgba(20, 2, 5, 0.45);
  border-color: transparent;
  pointer-events: none;
}

.ceremony-meta-list {
  list-style: none;
  margin: 12px 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ceremony-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #e6dac6;
}

.ceremony-meta-item .icon {
  color: var(--gold-primary);
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

/* ==========================================================================
   SECTION 5: GRAND RECEPTION VENUE & MAP
   ========================================================================== */
.venue-details-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

@media (min-width: 840px) {
  .venue-details-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.venue-card {
  background: rgba(35, 3, 9, 0.7);
  border: 1px solid var(--gold-border);
  border-radius: 18px;
  padding: 22px 16px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

@media (min-width: 600px) {
  .venue-card {
    padding: 28px;
  }
}

.venue-hotel-name {
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--gold-light);
  margin-bottom: 6px;
  background: var(--gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.venue-address-p {
  font-size: 1rem;
  color: #E2D3B8;
  margin-bottom: 18px;
  line-height: 1.5;
}

.contact-pill-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 14px;
}

@media (min-width: 440px) {
  .contact-pill-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
  min-height: 52px;
}

.contact-pill:hover, .contact-pill:active {
  background: rgba(212, 175, 55, 0.25);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.contact-icon {
  font-size: 1.3rem;
  color: var(--gold-primary);
}

.contact-info .contact-name {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--gold-light);
}

.contact-info .contact-num {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.map-embed-frame {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid var(--gold-primary);
  box-shadow: 0 15px 35px rgba(0,0,0,0.7), var(--gold-glow);
}

@media (min-width: 600px) {
  .map-embed-frame {
    height: 380px;
    border-width: 2px;
  }
}

.map-embed-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: contrast(1.05) saturate(1.1);
}

.map-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(30, 2, 7, 0.9);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.6);
}

/* ==========================================================================
   SECTION 6: BLESSINGS & WISHES (COMPACT FORM - BOARD REMOVED)
   ========================================================================== */
.blessings-compact-wrap {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.wishes-form-card {
  background: rgba(35, 3, 9, 0.7);
  border: 1px solid var(--gold-border);
  border-radius: 18px;
  padding: 24px 18px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

@media (min-width: 600px) {
  .wishes-form-card {
    padding: 30px;
  }
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 6px;
  font-weight: 500;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(20, 2, 5, 0.7);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 10px;
  padding: 12px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

/* Shower Petals Floating Button */
.petal-blast-btn {
  background: linear-gradient(135deg, #FF6B8B, #D91E2B);
  color: #fff;
  border: none;
  padding: 13px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(217, 30, 43, 0.4);
  transition: all 0.3s ease;
  margin: 16px auto 0 auto;
}

.petal-blast-btn:hover, .petal-blast-btn:active {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 28px rgba(217, 30, 43, 0.6);
}

/* ==========================================================================
   BOTTOM SCROLLSPY QUICK-JUMP DOCK (MOBILE-FIRST)
   ========================================================================== */
.scrollspy-dock {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  background: rgba(22, 2, 5, 0.93);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--gold-border);
  border-radius: 50px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), var(--gold-glow);
  z-index: 100;
  max-width: 96vw;
  overflow-x: auto;
}

.spy-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #D6C2A2;
  padding: 6px 11px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.3s var(--ease-spring);
  font-family: inherit;
  white-space: nowrap;
}

.spy-btn:hover {
  color: #fff;
  background: rgba(212, 175, 55, 0.15);
}

.spy-btn.active {
  background: var(--gold-metallic);
  color: var(--royal-maroon);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
  transform: scale(1.04);
}

.spy-icon {
  font-size: 1rem;
}

.spy-label {
  font-size: 0.78rem;
  font-weight: 600;
}

/* ==========================================================================
   SAMSUNG GALAXY S23 & MOBILE ALIGNMENT FINE-TUNING (360px - 412px Viewport)
   ========================================================================== */
@media (max-width: 480px) {
  html, body {
    overflow-x: hidden;
  }

  #main-app.scroll-flow {
    padding: 68px 10px 105px 10px;
    gap: 22px;
  }

  .royal-frame {
    padding: 24px 12px;
    border-radius: 18px;
  }

  .royal-invite-card {
    width: min(94vw, 390px);
    padding: 28px 14px 22px 14px;
    border-radius: 18px;
  }

  .card-couple-names {
    font-size: clamp(2rem, 7.5vw, 2.7rem);
    margin-bottom: 14px;
  }

  .royal-title {
    font-size: clamp(1.4rem, 5vw, 2.1rem);
  }

  .script-subtitle {
    font-size: clamp(1.85rem, 6.8vw, 2.8rem);
  }

  .family-tree-card {
    padding: 12px 9px;
    border-radius: 14px;
  }

  .family-role-row {
    padding: 9px 12px;
    gap: 4px 8px;
    margin-bottom: 8px;
  }

  .role-badge {
    font-size: 0.85rem;
    gap: 5px;
  }

  .role-person {
    font-size: 0.95rem;
  }

  .timer-boxes {
    gap: 5px;
    max-width: 325px;
  }

  .timer-box {
    padding: 7px 2px;
  }

  .timer-number {
    font-size: 1.3rem;
  }

  .timer-label {
    font-size: 0.6rem;
  }

  .venue-card {
    padding: 18px 12px;
    border-radius: 16px;
  }

  .wishes-form-card {
    padding: 20px 12px;
    border-radius: 16px;
  }

  .scrollspy-dock {
    gap: 2px;
    padding: 4px 6px;
    max-width: 98vw;
    bottom: 10px;
  }

  .spy-btn {
    padding: 4px 6px;
    gap: 3px;
  }

  .spy-label {
    font-size: 0.68rem;
  }

  .spy-icon {
    font-size: 0.88rem;
  }

  .floating-dock {
    top: 8px;
    padding: 4px 8px;
    gap: 4px;
  }

  .dock-btn {
    padding: 4px 7px;
    font-size: 0.75rem;
  }

  /* Scratch Card Mobile Alignment (Galaxy S23) */
  .scratch-date-wrapper {
    height: 76px;
    margin: 10px 0 14px 0;
  }

  .revealed-date-card {
    height: 100%;
    padding: 6px 10px;
  }

  .scratch-only-date-display {
    font-size: clamp(1.85rem, 6.8vw, 2.3rem);
    letter-spacing: 2.5px;
  }

  .ceremony-meta-badge {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .scratch-hint-bar {
    padding: 2px 8px;
    bottom: 4px;
  }

  .scratch-hint-text {
    font-size: 0.64rem;
  }

  .btn-quick-scratch-reveal {
    padding: 1px 6px;
    font-size: 0.62rem;
  }
}

@media (max-width: 375px) {
  /* Extra refinement for Galaxy S23 default 360px viewport */
  #main-app.scroll-flow {
    padding: 64px 8px 100px 8px;
  }

  .royal-frame {
    padding: 22px 10px;
  }

  .scrollspy-dock {
    gap: 1px;
    padding: 3px 4px;
    bottom: 8px;
  }

  .spy-btn {
    padding: 4px 4px;
    gap: 2px;
  }

  .spy-label {
    font-size: 0.62rem;
  }

  .spy-icon {
    font-size: 0.8rem;
  }

  .card-mantra-line {
    font-size: 0.68rem;
    letter-spacing: 0.3px;
  }

  .single-line-mantra {
    font-size: 0.72rem;
    letter-spacing: 0.3px;
  }
}

/* Audio Player Floating Widget */
.audio-widget {
  position: fixed;
  bottom: 80px;
  right: 16px;
  z-index: 95;
}

@media (min-width: 768px) {
  .audio-widget {
    bottom: 22px;
    right: 24px;
  }
}

.music-toggle-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd700, #b38600);
  border: 2px solid #fff;
  color: var(--royal-maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6), var(--gold-glow);
  transition: all 0.3s var(--ease-spring);
  font-size: 1.2rem;
}

.music-toggle-circle.playing {
  animation: rotateDisc 10s linear infinite;
}

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

/* Toast Message */
.toast-msg {
  position: fixed;
  top: 75px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(30, 2, 7, 0.95);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-spring);
  z-index: 200;
}

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