/* ==========================================================================
   ROYAL JAVANESE WEDDING INVITATION - STYLESHEET
   Awwwards-Tier High-End Visual Design & Cinematic Motion
   ========================================================================== */

/* --- GOOGLE FONTS IMPORT --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=MedievalSharp&family=Montserrat:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Royal Javanese Gold Palette */
  --gold-pure: #ffd700;
  --gold-prada: #e5cf92;
  --gold-deep: #b38b34;
  --gold-light: #fff5cf;
  --gold-glow: rgba(229, 207, 146, 0.45);

  /* Deep Charcoal & Night */
  --bg-darkest: #0a0908;
  --bg-card: rgba(22, 20, 18, 0.88);
  --bg-card-border: rgba(229, 207, 146, 0.28);
  --bg-card-highlight: rgba(255, 255, 255, 0.08);

  /* Typography */
  --text-main: #f5f1e8;
  --text-muted: #b8b1a3;
  --text-gold: #edd79d;

  /* Typography Stacks */
  --font-display: 'MedievalSharp', 'Cinzel Decorative', Georgia, serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Stage Dimensions */
  --stage-width: 440px;
  --stage-height: 860px;
  --radius-stage: 32px;
  --radius-card: 20px;

  color-scheme: dark only;
  forced-color-adjust: none;
}

/* --- RESET & GLOBAL BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  forced-color-adjust: none;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: var(--bg-darkest);
  font-family: var(--font-sans);
  color: var(--text-main);
  user-select: none;
  -webkit-user-select: none;
  color-scheme: dark only;
  forced-color-adjust: none;
  -webkit-print-color-adjust: exact;
}

/* Immunity to unwanted browser auto-dark mode / light mode inversion */
@media (prefers-color-scheme: light) {
  :root, html, body {
    color-scheme: dark only !important;
    background-color: #0a0908 !important;
    color: #f5f1e8 !important;
    forced-color-adjust: none !important;
  }
}

@media (prefers-color-scheme: dark) {
  :root, html, body {
    color-scheme: dark only !important;
    background-color: #0a0908 !important;
    color: #f5f1e8 !important;
    forced-color-adjust: none !important;
  }
}

/* Custom Luxury Dark Gold Scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: rgba(18, 16, 14, 0.9);
}

::-webkit-scrollbar-thumb {
  background: rgba(229, 207, 146, 0.35);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-prada);
}

/* Ambient Theatre Desktop Backdrop */
.desktop-ambient {
  position: fixed;
  inset: -30px;
  background: radial-gradient(circle at center, rgba(38, 33, 27, 0.85) 0%, rgba(10, 9, 8, 0.98) 75%),
              url('../generated_assets/background_kabut_vintage.webp') center/cover no-repeat;
  filter: blur(24px) brightness(0.65);
  transform: scale(1.1);
  z-index: 1;
  pointer-events: none;
}

/* --- APP WRAPPER (VIEWPORT CONTAINER) --- */
.app-container {
  position: relative;
  width: 100vw;
  height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  overflow: hidden;
}

/* --- THE MOBILE STAGE (VERTICAL SCREEN 9:16) --- */
.stage {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: var(--stage-width);
  max-height: 100dvh;
  background: #141312 url('../generated_assets/background_kabut_vintage.webp') center/cover no-repeat;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(229, 207, 146, 0.2);
  display: flex;
  flex-direction: column;
}

@media (min-width: 520px) {
  .stage {
    height: min(var(--stage-height), 96dvh);
    border-radius: var(--radius-stage);
    border: 1px solid rgba(229, 207, 146, 0.25);
  }
}

/* --- PARALLAX COMMON STAGE LAYERS --- */
.stage-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Misty Fog Pan Layer */
.layer-fog {
  z-index: 2;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  animation: fogBreathe 12s ease-in-out infinite alternate;
}

@keyframes fogBreathe {
  0% { opacity: 0.4; transform: scale(1); }
  100% { opacity: 0.75; transform: scale(1.08); }
}

/* Borobudur Temple Silhouette */
.layer-candi {
  z-index: 3;
  width: 100%;
  height: 100%;
  background: url('../generated_assets/candi_borobudur_ilustrasi.webp') center 20%/contain no-repeat;
  opacity: 0.38;
  filter: drop-shadow(0 0 10px rgba(0,0,0,0.5));
  transition: opacity 1.2s ease, transform 1.2s ease;
}

/* Upper Tree Canopy & Framing Branches (Kiri & Kanan Dedaunan) */
.layer-canopy {
  z-index: 6;
  top: 0;
  left: 0;
  width: 100%;
  height: 38%;
  pointer-events: none;
  overflow: hidden;
}

.canopy-branch {
  position: absolute;
  top: 0;
  width: 78%;
  max-width: 410px;
  height: 100%;
  background-size: contain;
  background-repeat: no-repeat;
  will-change: transform;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
}

.canopy-kiri {
  left: -2%;
  background-image: url('../generated_assets/ranting_daun_kiri.webp');
  background-position: top left;
  transform-origin: top left;
  opacity: 0.92;
}

.canopy-kanan {
  right: -2%;
  background-image: url('../generated_assets/ranting_daun_kanan.webp');
  background-position: top right;
  transform-origin: top right;
  opacity: 0.92;
}

/* Rumah Joglo Jawa (Background Pavilion) */
.layer-joglo {
  z-index: 5;
  top: auto;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  height: 48%;
  background: url('../generated_assets/rumah_joglo_jawa.webp') bottom center/contain no-repeat;
  pointer-events: none;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.6));
}

/* Wooden Floor Deck (Slides in smoothly at Scene 4 from right to left) */
.layer-deck {
  z-index: 6;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 175px;
  background: url('../generated_assets/lantai_papan_kayu.webp') bottom center/cover no-repeat;
  pointer-events: none;
  box-shadow: inset 0 20px 25px -10px rgba(0,0,0,0.7);
  transform: translateX(105%);
  opacity: 0;
  will-change: transform, opacity;
}

/* White Roses Foreground Garden */
.layer-roses {
  z-index: 25;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 190px;
  background: url('../generated_assets/taman_bunga_mawar_putih_bottom.webp') bottom center/cover no-repeat;
  pointer-events: none;
  filter: drop-shadow(0 -5px 12px rgba(0,0,0,0.4));
  transform-origin: bottom center;
}

/* Janur Kuning Penjors (Left & Right) - Hidden in Scene 0, slides up into Scene 1 */
.penjor {
  position: absolute;
  bottom: 40px;
  width: 48%;
  height: 82%;
  z-index: 12;
  pointer-events: none;
  background-size: contain;
  background-repeat: no-repeat;
  transform-origin: bottom center;
  transform: translateY(115%);
  opacity: 0;
  
}

.penjor.visible {
  transform: translateY(0);
  opacity: 1;
}

.penjor-kiri {
  left: -4%;
  background-image: url('../generated_assets/penjor_janur_kuning_kiri.webp');
  background-position: bottom left;
}

.penjor-kanan {
  right: -4%;
  background-image: url('../generated_assets/penjor_janur_kuning_kanan.webp');
  background-position: bottom right;
}

/* Butterfly Canvas Layer - pointer-events: none lets clicks pass through to buttons seamlessly */
canvas#butterflyCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 30;
  pointer-events: none;
}

/* --- SCENE CONTAINER & STACK --- */
.scenes-container {
  position: absolute;
  inset: 0;
  z-index: 20;
  overflow: hidden;
}

.wedding-scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px 85px 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(30px) scale(0.97);
  transition: opacity 0.75s cubic-bezier(0.25, 1, 0.5, 1),
              transform 0.75s cubic-bezier(0.25, 1, 0.5, 1),
              visibility 0.75s;
  contain: layout paint;
}

.wedding-scene.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.wedding-scene.exit-left {
  opacity: 0;
  transform: translateX(-35px) scale(0.96);
}

.wedding-scene.exit-right {
  opacity: 0;
  transform: translateX(35px) scale(0.96);
}

/* Inactive Scene Dormancy - Freezes layout & paint computations for hidden scenes */
.wedding-scene:not(.active):not(.exit-left):not(.exit-right) {
  content-visibility: hidden;
  contain-intrinsic-size: 100% 100%;
}

/* Pause Dalang puppet animation when Scene 1 is inactive */
.wedding-scene:not(.active) .dalang-pria,
.wedding-scene:not(.active) .dalang-wanita {
  animation-play-state: paused !important;
}

/* ==========================================================================
   SCENE 0: COVER / PEMBUKA (GUNUNGAN MENUTUP MIRING)
   ========================================================================== */
#scene0 {
  z-index: 40;
}

/* Two full Gunungan closing in slanted from left & right, crossed in an X (matching Reff.mp4 frame 1) */
.opening-gunungan-wrapper {
  position: absolute;
  inset: 0;
  z-index: 45;
  pointer-events: none;
  overflow: hidden;
}

.opening-gunungan {
  position: absolute;
  width: 108%;
  height: 92%;
  max-width: 530px;
  background-image: url('../generated_assets/gunungan_wayang_kulit.webp');
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  will-change: transform, opacity;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.98));
  pointer-events: none;
}

.opening-gunungan.left {
  left: -8%;
  top: 15%;
  transform-origin: 50% 70%;
  transform: rotate(38deg) scale(1.22);
}

.opening-gunungan.right {
  right: -8%;
  top: 15%;
  transform-origin: 50% 70%;
  transform: rotate(-38deg) scale(1.22);
}

.scene-cover-content {
  position: relative;
  z-index: 50;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  box-sizing: border-box;
  padding-top: 25px;
  padding-bottom: 78px; /* Positioned directly over the white roses garden */
  width: 100%;
  pointer-events: none;
}

.cover-header {
  margin-top: 15px;
  pointer-events: auto;
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(30, 26, 23, 0.92);
  border: 1px solid rgba(229, 207, 146, 0.35);
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  color: #fff5cf !important;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.title-the-wedding {
  font-family: var(--font-serif);
  font-size: 15px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #dfd7c5;
  margin-bottom: 6px;
}

.names-cover {
  font-family: var(--font-display);
  font-size: clamp(34px, 8vw, 44px);
  color: #fff9e6;
  text-shadow: 0 2px 15px rgba(229, 207, 146, 0.6), 0 4px 25px rgba(0,0,0,0.9);
  line-height: 1.15;
  margin-bottom: 8px;
}

.date-cover {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 4px;
  color: #f5f1e8 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 15px rgba(229, 207, 146, 0.4);
}

/* Spacer in cover to reveal background Joglo pavilion & white roses between gunungan */
.cover-spacer {
  flex: 1;
  min-height: 40px;
}

.cover-footer {
  position: relative;
  z-index: 70;
  margin-bottom: 0;
  pointer-events: auto;
}

/* Primary "Buka Undangan" CTA Button with Double-Bezel Architecture Layered on Flowers */
.btn-open-envelope {
  position: relative;
  z-index: 75;
  background: linear-gradient(135deg, #fae7a5 0%, #d4af37 50%, #8b6508 100%);
  border: none;
  padding: 14px 34px;
  border-radius: 12px;
  color: #0d172a !important;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.75), 0 0 25px rgba(212, 175, 55, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  animation: pulseButton 2.4s infinite;
}

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

.btn-open-envelope:active {
  transform: scale(0.96);
}

@keyframes pulseButton {
  0%, 100% { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.6), 0 0 0 0 rgba(229, 207, 146, 0.7); }
  50% { box-shadow: 0 12px 34px rgba(0, 0, 0, 0.9), 0 0 30px rgba(212, 175, 55, 0.8), 0 0 0 12px rgba(229, 207, 146, 0); }
}

/* ==========================================================================
   SCENE 1: WAYANG DALANG & SAMBUTAN TAMU (NEW)
   ========================================================================== */
#scene1 {
  justify-content: flex-start;
  padding: 16px 20px 85px 20px;
}

.gunungan-welcome-emblem {
  width: 44px;
  height: 52px;
  background: url('../generated_assets/gunungan_wayang_kulit.webp') center/contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(229, 207, 146, 0.45));
  margin: 0 auto 6px auto;
  pointer-events: none;
}

.welcome-card-wrapper {
  position: relative;
  z-index: 25;
  width: 90%;
  max-width: 350px;
  background: rgba(20, 18, 15, 0.95);
  border: 1px solid rgba(229, 207, 146, 0.45);
  border-radius: 18px;
  padding: 16px 18px 14px 18px;
  text-align: center;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85), inset 0 0 25px rgba(229, 207, 146, 0.08);
  margin: 0 auto;
  margin-top: 0;
}

.welcome-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--gold-prada);
  text-transform: uppercase;
  margin-bottom: 6px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.welcome-to-label {
  font-family: var(--font-serif);
  font-size: 12.5px;
  letter-spacing: 1.5px;
  color: #dfd7c5;
  margin-bottom: 4px;
  font-style: italic;
}

.welcome-guest-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 5.5vw, 25px);
  color: #fff9e6;
  text-shadow: 0 2px 14px rgba(229, 207, 146, 0.75), 0 3px 18px rgba(0, 0, 0, 0.95);
  line-height: 1.25;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.welcome-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-prada), transparent);
  margin: 0 auto 10px auto;
}

.welcome-text {
  font-family: var(--font-serif);
  font-size: 12px;
  line-height: 1.6;
  color: #e6dfce;
  font-style: italic;
}

/* Dalang Puppetry Stage (Pria & Wanita on Wooden Deck) */
.dalang-stage {
  position: absolute;
  bottom: 50px;
  left: 0;
  width: 100%;
  height: 250px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 0 10px;
  pointer-events: none;
  z-index: 22;
}

.dalang-puppet {
  position: relative;
  width: 46%;
  max-width: 175px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform-origin: 50% 96%;
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.85));
  transition: filter 0.3s ease;
}

.dalang-puppet:hover {
  filter: drop-shadow(0 10px 22px rgba(229, 207, 146, 0.6)) brightness(1.08);
}

.dalang-puppet .puppet-img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Authentic Dalang Puppetry Sway and Bobbing Animations */
.dalang-pria {
  animation: dalangDancePria 4.4s ease-in-out infinite;
}

.dalang-wanita {
  animation: dalangDanceWanita 4.8s ease-in-out infinite;
}

@keyframes dalangDancePria {
  0% {
    transform: translateY(0) rotate(-1deg);
  }
  20% {
    transform: translateY(-8px) rotate(2.5deg);
  }
  40% {
    transform: translateY(-3px) rotate(0deg);
  }
  60% {
    transform: translateY(-12px) rotate(3deg);
  }
  80% {
    transform: translateY(-4px) rotate(1deg);
  }
  100% {
    transform: translateY(0) rotate(-1deg);
  }
}

@keyframes dalangDanceWanita {
  0% {
    transform: translateY(0) rotate(1deg);
  }
  25% {
    transform: translateY(-10px) rotate(-3deg);
  }
  50% {
    transform: translateY(-4px) rotate(-0.5deg);
  }
  75% {
    transform: translateY(-13px) rotate(-2.5deg);
  }
  100% {
    transform: translateY(0) rotate(1deg);
  }
}

/* ==========================================================================
   SCENE 2: BISMILLAH & AR-RUM 21
   ========================================================================== */
.sacred-card-wrapper {
  position: relative;
  width: 92%;
  max-width: 370px;
  min-height: 480px;
  background: url('../generated_assets/background_kartu_kaligrafi.webp') center/100% 100% no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 45px 32px;
  filter: drop-shadow(0 15px 35px rgba(0,0,0,0.85));
}

.bismillah-glow-img {
  width: 78%;
  max-width: 250px;
  filter: drop-shadow(0 0 18px rgba(229, 207, 146, 0.75));
  margin-bottom: 22px;
  animation: bismillahGlow 4s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes bismillahGlow {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.025); opacity: 1; }
}

.verse-text {
  font-family: var(--font-serif);
  font-size: 13.5px;
  line-height: 1.75;
  color: #38332c; /* Contrast with cream card */
  font-style: italic;
  margin-bottom: 14px;
}

.verse-ref {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #7d6529;
  text-transform: uppercase;
}

/* ==========================================================================
   SCENE 3: COUPLE TOGETHER (PELABUHAN TERAKHIR KAMI)
   ========================================================================== */
#scene3 {
  justify-content: flex-start;
  padding-top: 35px;
}

.couple-intro-header {
  text-align: center;
  margin-top: 15px;
  z-index: 25;
  background: rgba(18, 16, 14, 0.94);
  border: 1px solid rgba(229, 207, 146, 0.4);
  padding: 8px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.85);
}

.quote-lead {
  font-family: var(--font-serif);
  font-size: 13.5px;
  font-style: italic;
  letter-spacing: 2px;
  color: var(--gold-prada);
  margin-bottom: 2px;
}

.quote-main {
  font-family: var(--font-display);
  font-size: 22px;
  color: #fff8e1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
  letter-spacing: 1px;
}

.couple-characters-stage {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  height: 52%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 15px;
  z-index: 15;
  pointer-events: none;
}

.character-fig {
  height: 100%;
  max-height: 430px;
  max-width: 44%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.8));
  transition: transform 0.4s ease;
}

/* ==========================================================================
   SCENE 4 & 5: SPOTLIGHT MEMPELAI WANITA & PRIA
   ========================================================================== */
.spotlight-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 30px;
}

/* Profile Cloud Smoke Card - Pure Clean Porcelain White Card */
.profile-cloud-card {
  position: relative;
  width: 92%;
  max-width: 360px;
  z-index: 25;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(229, 207, 146, 0.55);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 16px 20px 14px 20px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.7);
  margin-top: 10px;
}

.profile-cloud-card.left-side,
.profile-cloud-card.right-side {
  top: auto;
  left: auto;
  right: auto;
  text-align: center;
}

.profile-role-tag {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #8c6f2d;
  margin-bottom: 4px;
}

.profile-name {
  font-family: var(--font-display);
  font-size: clamp(21px, 5.5vw, 25px);
  color: #1a1714;
  line-height: 1.2;
  margin-bottom: 4px;
}

.profile-parents {
  font-family: var(--font-serif);
  font-size: 12.5px;
  line-height: 1.4;
  color: #3b352d;
  margin-bottom: 6px;
}

.profile-parents strong {
  font-weight: 700;
  color: #1a1714;
}

.profile-social {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #8c6f2d;
  text-decoration: none;
  background: rgba(229, 207, 146, 0.25);
  padding: 4px 14px;
  border-radius: 9999px;
  width: fit-content;
  border: 1px solid rgba(229, 207, 146, 0.4);
}

.profile-cloud-card.right-side .profile-social {
  margin-left: 0;
}

/* Bride Scene 4 Container */
.bride-container {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 45px;
  height: 56%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 16;
  pointer-events: none;
}

.bride-img {
  height: 100%;
  max-height: 470px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.8));
}

/* Groom Scene 5 Container */
.groom-container {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 45px;
  height: 56%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 16;
  pointer-events: none;
}

.groom-img {
  height: 100%;
  max-height: 470px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.8));
}

/* ==========================================================================
   SCENE 6: RANGKAIAN ACARA (AKAD & RESEPSI) - REFF.MP4 STYLE
   ========================================================================== */
.agenda-stage-wrapper {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 22;
}

.agenda-gunungan-bg {
  display: none;
}

.agenda-content-layer {
  position: relative;
  z-index: 2;
  width: 92%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 16px 14px;
  margin-top: 6px;
  background: rgba(16, 14, 11, 0.95);
  border: 1px solid rgba(229, 207, 146, 0.4);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(229, 207, 146, 0.08);
}

.agenda-section-block {
  margin-bottom: 4px;
}

.agenda-title-gold {
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff9e6;
  text-shadow: 0 2px 10px rgba(0,0,0,0.95), 0 0 15px rgba(229, 207, 146, 0.4);
  margin-bottom: 2px;
}

.agenda-day-gold {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--gold-prada);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.agenda-time-text {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.9);
  margin-bottom: 2px;
}

.agenda-place-text {
  font-family: var(--font-serif);
  font-size: 12px;
  font-style: italic;
  color: #ddd4c5;
}

.agenda-divider-gold {
  color: var(--gold-prada);
  font-size: 10px;
  letter-spacing: 4px;
  margin: 4px 0;
  opacity: 0.8;
}

.agenda-actions-row {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.btn-secondary {
  background: rgba(36, 32, 28, 0.95);
  border: 1px solid rgba(229, 207, 146, 0.4);
  color: var(--gold-prada);
  padding: 9px 16px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: var(--gold-prada);
  color: #0d172a !important;
  font-weight: 700;
  box-shadow: 0 0 15px rgba(229, 207, 146, 0.5);
}

.btn-secondary svg,
.btn-icon-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==========================================================================
   SCENE 7: DOA PENGANTIN (HR ABU DAUD)
   ========================================================================== */
.doa-wrapper {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 22;
}

.doa-gunungan-frame {
  display: none;
}

.doa-content-box {
  position: relative;
  z-index: 2;
  width: 92%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 18px 18px;
  margin-top: 15px;
  background: rgba(16, 14, 11, 0.95);
  border: 1px solid rgba(229, 207, 146, 0.4);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9), inset 0 0 20px rgba(229, 207, 146, 0.08);
}

/* Couple standing together in Scene 5 (matching Reff.mp4 thumb 20) */
.agenda-couple-stage {
  position: absolute;
  bottom: 75px;
  left: 0;
  right: 0;
  height: 44%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
  z-index: 15;
}

.agenda-couple-fig {
  height: 92%;
  max-width: 42%;
  object-fit: contain;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.8));
}

.doa-title {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold-light);
  margin-bottom: 2px;
}

.doa-source {
  font-family: var(--font-serif);
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--gold-prada);
  margin-bottom: 20px;
}

.doa-arabic {
  font-family: 'Amiri', 'Traditional Arabic', var(--font-serif);
  font-size: 20px;
  line-height: 1.8;
  color: #ffeed0;
  direction: rtl;
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
  margin-bottom: 16px;
}

.doa-transliteration {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
  color: var(--gold-prada);
  margin-bottom: 14px;
}

.doa-translation {
  font-size: 12px;
  line-height: 1.65;
  color: #cbc3b4;
  padding: 10px 6px 0;
  border-top: 1px solid rgba(229, 207, 146, 0.25);
  margin-top: 6px;
}

/* ==========================================================================
   SCENE 7: MOHON DO'A & RESTU (CLOSING & INTERACTIVE)
   ========================================================================== */
.closing-wrapper {
  position: relative;
  z-index: 25;
  width: 95%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -10px;
}

.gunungan-mini-emblem {
  width: 60px;
  height: 60px;
  background: url('../generated_assets/gunungan_wayang_kulit.webp') center/contain no-repeat;
  filter: drop-shadow(0 0 14px var(--gold-glow));
  margin-bottom: 10px;
  animation: floatMini 3s ease-in-out infinite alternate;
}

@keyframes floatMini {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.closing-title {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.closing-names {
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--gold-prada);
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Countdown Stage Label */
.countdown-stage-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Countdown Timer Grid */
.countdown-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-bottom: 18px;
}

.countdown-box {
  flex: 1;
  background: rgba(24, 21, 18, 0.94);
  border: 1px solid rgba(229, 207, 146, 0.4);
  border-radius: 14px;
  padding: 8px 4px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}

.countdown-num {
  font-size: 19px;
  font-weight: 700;
  font-family: var(--font-sans);
  color: var(--gold-prada);
  display: block;
}

.countdown-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #999;
}

/* Post-Wedding Card Transformation */
.countdown-container.is-post-state {
  display: block;
  margin-bottom: 18px;
}

.post-wedding-card {
  background: linear-gradient(135deg, rgba(32, 28, 24, 0.95), rgba(18, 16, 14, 0.98));
  border: 1px solid rgba(229, 207, 146, 0.5);
  border-radius: 16px;
  padding: 16px 14px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75), inset 0 0 20px rgba(229, 207, 146, 0.08);
  animation: fadeInPost 0.8s ease-out;
}

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

.post-wedding-emblem {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--gold-prada);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.post-wedding-heading {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 12px rgba(229, 207, 146, 0.4);
}

.post-wedding-body {
  font-family: var(--font-serif);
  font-size: 12.5px;
  line-height: 1.6;
  color: #eeddc5;
  font-style: italic;
  margin-bottom: 8px;
}

.post-wedding-subbody {
  font-family: var(--font-sans);
  font-size: 11px;
  line-height: 1.5;
  color: #c4b5a2;
  margin-bottom: 10px;
}

.post-wedding-sign {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold-prada);
  text-transform: uppercase;
}

/* Today Live Badge (Hari H Ongoing) */
.today-wedding-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(30, 26, 22, 0.92);
  border: 1px solid var(--gold-prada);
  border-radius: 12px;
  padding: 10px 16px;
  width: 100%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(229, 207, 146, 0.15);
}

.live-dot-pulse {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 10px #4ade80;
  animation: pulseDot 1.5s infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.today-text {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.5px;
}

/* Closing Action Buttons Grid */
.closing-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
}

.btn-action-tile {
  background: rgba(30, 26, 22, 0.95);
  border: 1px solid rgba(229, 207, 146, 0.35);
  border-radius: 14px;
  padding: 12px 10px;
  color: var(--text-main);
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-action-tile:hover {
  background: rgba(229, 207, 146, 0.2);
  border-color: var(--gold-prada);
  transform: translateY(-2px);
}

.btn-action-tile:active {
  transform: scale(0.96);
}

.btn-action-tile span.icon {
  font-size: 18px;
}

.btn-replay {
  width: auto;
  min-width: 240px;
  background: rgba(24, 21, 18, 0.95);
  border: 1px solid rgba(229, 207, 146, 0.55);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  color: var(--gold-light);
  border-radius: 12px;
  padding: 10px 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  transition: all 0.25s ease;
}

.btn-replay:hover {
  background: var(--gold-prada);
  color: #0d172a !important;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(229, 207, 146, 0.6);
}

/* ==========================================================================
   PERSISTENT HUD: PROGRESS BAR, VINYL DISC, DOTS & HINTS
   ========================================================================== */
/* Top Progress Bar */
.hud-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 60;
}

.hud-progress-bar {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #b38b34, #f5e2a3);
  transform-origin: left center;
  transform: scaleX(0.125);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Floating Music Vinyl Disc */
.hud-music-disc {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #191715;
  border: 2px solid var(--gold-prada);
  box-shadow: 0 4px 15px rgba(0,0,0,0.8), 0 0 10px var(--gold-glow);
  z-index: 60;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.25s ease;
}

.hud-music-disc:hover {
  transform: scale(1.08);
}

.vinyl-grooves {
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1px dashed rgba(229, 207, 146, 0.4);
  pointer-events: none;
}

.vinyl-center-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-prada);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(0,0,0,0.8);
}

.hud-music-disc.playing {
  animation: spinVinyl 3.5s linear infinite;
}

.hud-music-disc.paused {
  animation-play-state: paused;
  opacity: 0.65;
}

@keyframes spinVinyl {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Bottom HUD Floating Navigation Island */
.hud-bottom-nav {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 60;
  pointer-events: none;
}

.tap-hint-pill {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--gold-prada);
  background: rgba(20, 18, 16, 0.92);
  padding: 4px 14px;
  border-radius: 9999px;
  border: 1px solid rgba(229, 207, 146, 0.25);
  animation: pulseHint 2s infinite ease-in-out;
  pointer-events: auto;
}

@keyframes pulseHint {
  0%, 100% { opacity: 0.85; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}

.nav-island-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: rgba(22, 20, 18, 0.95);
  border: 1px solid rgba(229, 207, 146, 0.3);
  border-radius: 16px;
  padding: 5px 10px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.8);
  pointer-events: auto;
}

.btn-nav-arrow {
  background: transparent;
  border: none;
  color: var(--gold-prada);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s, opacity 0.2s;
}

.btn-nav-arrow:hover:not(:disabled) {
  background: rgba(229, 207, 146, 0.2);
}

.btn-nav-arrow:disabled {
  opacity: 0.25;
  cursor: default;
}

.dots-track {
  display: flex;
  align-items: center;
  gap: 6px;
}

.scene-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.scene-dot.active {
  width: 20px;
  background: var(--gold-prada);
  box-shadow: 0 0 8px var(--gold-glow);
}

.btn-autoplay-toggle {
  background: rgba(229, 207, 146, 0.12);
  border: 1px solid rgba(229, 207, 146, 0.3);
  color: var(--gold-prada);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-autoplay-toggle.active {
  background: var(--gold-prada);
  color: #0d172a !important;
  font-weight: 700;
}

/* ==========================================================================
   MODALS: AMPLOP DIGITAL & RSVP GUESTBOOK
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 7, 6, 0.82);
  backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

@media (min-width: 520px) {
  .modal-overlay {
    align-items: center;
  }
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 100%;
  max-width: 440px;
  background: #181614;
  border: 1px solid rgba(229, 207, 146, 0.35);
  border-radius: 28px 28px 0 0;
  padding: 26px 22px;
  box-shadow: 0 -15px 40px rgba(0,0,0,0.9);
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 520px) {
  .modal-container {
    border-radius: 24px;
    transform: scale(0.92);
  }
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

@media (min-width: 520px) {
  .modal-overlay.active .modal-container {
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--gold-light);
}

/* Finding #04 [R-03 Mobile Tap Targets]: Minimum 44px touch bounding area */
.btn-close-modal {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #ddd;
  min-width: 44px;
  min-height: 44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

/* Bank Account Cards inside Amplop Digital */
.bank-card {
  background: rgba(30, 26, 23, 0.9);
  border: 1px solid rgba(229, 207, 146, 0.25);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bank-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bank-brand-badge {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.bank-logo-img {
  height: 20px;
  width: auto;
  display: block;
  object-fit: contain;
}

.bank-badge {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--gold-prada);
}

.rek-number {
  font-size: 17px;
  font-weight: 700;
  font-family: monospace;
  letter-spacing: 2px;
  color: #fff;
}

.rek-owner {
  font-size: 12px;
  color: #aaa;
}

/* Finding #04 [R-03 Mobile Tap Targets] & Finding #07 [R-11 Border Radius] */
.btn-copy-rek {
  background: rgba(229, 207, 146, 0.15);
  border: 1px solid rgba(229, 207, 146, 0.4);
  color: var(--gold-prada);
  border-radius: 8px;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  align-self: flex-start;
  transition: all 0.2s ease;
}

.btn-copy-rek.copied {
  background: #2e7d32;
  color: #fff;
  border-color: #2e7d32;
}

/* Venue Location Cards inside Modal */
.venue-location-card {
  background: rgba(30, 26, 23, 0.95);
  border: 1px solid rgba(229, 207, 146, 0.25);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 14px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.venue-location-card:last-child {
  margin-bottom: 0;
}

.venue-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(229, 207, 146, 0.15);
  border: 1px solid rgba(229, 207, 146, 0.3);
  border-radius: 12px;
  padding: 3px 8px;
  margin-bottom: 6px;
}

.venue-title {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold-light);
  margin-bottom: 2px;
}

.venue-events {
  font-size: 11px;
  color: var(--gold-prada);
  font-weight: 600;
  margin-bottom: 6px;
}

.venue-address {
  font-size: 12px;
  color: #ddd4c5;
  line-height: 1.5;
  margin-bottom: 12px;
}

.venue-btn-group {
  display: flex;
  gap: 8px;
}

.btn-copy-address-action {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  font-size: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(229, 207, 146, 0.25);
  color: #eae1d2;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-address-action:hover {
  background: rgba(229, 207, 146, 0.18);
  border-color: var(--gold-border-bright);
  color: #fff;
}

.btn-gmaps-direct {
  flex: 1.3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(229, 207, 146, 0.2) 0%, rgba(179, 139, 52, 0.35) 100%);
  border: 1px solid var(--gold-border-bright);
  color: var(--gold-light);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-gmaps-direct:hover {
  background: var(--gold-prada);
  color: #0d172a !important;
  font-weight: 700;
  border-color: var(--gold-pure);
}

@media (max-width: 400px) {
  .venue-btn-group {
    flex-direction: column;
  }
}

/* RSVP Form */
.rsvp-form-group {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rsvp-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold-prada);
  text-transform: uppercase;
}

.rsvp-input, .rsvp-select, .rsvp-textarea {
  background: rgba(36, 32, 28, 0.95);
  border: 1px solid rgba(229, 207, 146, 0.3);
  border-radius: 12px;
  padding: 10px 14px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
}

.rsvp-input:focus, .rsvp-textarea:focus {
  border-color: var(--gold-prada);
  box-shadow: 0 0 10px rgba(229, 207, 146, 0.3);
}

/* Finding #02 [R-32 Keyboard A11y]: High-contrast focus-visible ring */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold-light, #d4af37) !important;
  outline-offset: 3px !important;
}

.radio-group {
  display: flex;
  gap: 12px;
}

.radio-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(36, 32, 28, 0.95);
  border: 1px solid rgba(229, 207, 146, 0.25);
  padding: 9px;
  border-radius: 10px;
  font-size: 11.5px;
  cursor: pointer;
}

.radio-pill input {
  accent-color: var(--gold-prada);
}

/* Finding #03 [R-25 Color Contrast] & Finding #07 [R-11 Border Radius] */
.btn-submit-rsvp {
  width: 100%;
  background: linear-gradient(135deg, #f5e2a3 0%, #d4af37 100%);
  border: none;
  color: #0d172a !important;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 8px;
}

/* Wishes Wall List */
.wishes-scroll-box {
  margin-top: 20px;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
}

.wish-card {
  background: rgba(30, 26, 23, 0.85);
  border: 1px solid rgba(229, 207, 146, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
}

.wish-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.wish-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-prada);
  color: #0d172a;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wish-meta {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wish-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.wish-status {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.tag-hadir { background: rgba(46, 125, 50, 0.35); color: #81c784; border: 1px solid #388e3c; }
.tag-tidak { background: rgba(198, 40, 40, 0.35); color: #e57373; border: 1px solid #d32f2f; }
.tag-ragu { background: rgba(245, 124, 0, 0.35); color: #ffb74d; border: 1px solid #f57c00; }
.tag-pinned { background: rgba(212, 175, 55, 0.25); color: #f5d77f; border: 1px solid rgba(212, 175, 55, 0.6); font-size: 9px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.wish-card.pinned { border-color: rgba(212, 175, 55, 0.6) !important; background: rgba(35, 30, 24, 0.95); box-shadow: 0 0 12px rgba(212, 175, 55, 0.15); }

.wish-time {
  font-size: 10px;
  color: #777;
}

.wish-text {
  font-size: 11.5px;
  line-height: 1.45;
  color: #ddd;
}

/* Toast Notification */
.wedding-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-50px);
  background: rgba(25, 22, 19, 0.96);
  border: 1px solid var(--gold-prada);
  color: #fff;
  padding: 10px 22px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0,0,0,0.8), 0 0 15px var(--gold-glow);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* ==========================================================================
   MULTI-DEVICE RESPONSIVE ADAPTATIONS (MOBILE SCREENS)
   ========================================================================== */

/* 1. SHORT MOBILE VIEWPORTS (e.g. iPhone SE, iPhone 8, Compact Android <= 740px height) */
@media (max-height: 740px) {
  /* Foreground Roses - reduced height to give more breathing space to content */
  .layer-roses {
    height: 150px;
  }

  /* Modals on short screens */
  .modal-container {
    padding: 20px 18px;
    max-height: 88vh;
  }

  /* Bottom Navigation Island */
  .hud-bottom-nav {
    bottom: 8px;
  }
  .tap-hint-pill {
    padding: 3px 12px;
    font-size: 10px;
    margin-bottom: 4px;
  }
  .nav-island-bar {
    padding: 4px 10px;
  }

  /* Scene 0: Cover */
  .scene-cover-content {
    padding-top: 25px;
    padding-bottom: 65px;
  }
  .cover-badge {
    padding: 3px 12px;
    font-size: 10px;
    margin-bottom: 6px;
  }
  .cover-pretitle {
    font-size: 10px;
    letter-spacing: 3px;
    margin-bottom: 4px;
  }
  .cover-title {
    font-size: 32px;
    margin-bottom: 4px;
  }
  .cover-date {
    font-size: 12px;
    letter-spacing: 3px;
  }
  .opening-gunungan {
    top: 12%;
    height: 85%;
  }
  .btn-open-envelope {
    padding: 12px 28px;
    font-size: 12.5px;
  }

  /* Scene 1: Sugeng Rawuh & Dalang Wayang */
  #scene1 {
    padding-top: 10px;
  }
  .welcome-card-wrapper {
    padding: 12px 14px 10px;
    width: 90%;
    max-width: 340px;
    margin-top: 0;
  }
  .welcome-badge {
    font-size: 10px;
    margin-bottom: 4px;
  }
  .welcome-to-label {
    font-size: 11px;
    margin-bottom: 4px;
  }
  .welcome-guest-name {
    font-size: 20px;
    margin-bottom: 8px;
  }
  .welcome-message-text {
    font-size: 11px;
    line-height: 1.45;
  }
  .dalang-stage {
    bottom: 60px;
    height: 36%;
    gap: 16px;
  }
  .dalang-puppet-wrapper {
    height: 95%;
  }

  /* Scene 2: Bismillah & Ar-Rum 21 */
  .card-kaligrafi-wrapper {
    padding: 24px 18px 20px;
    max-width: 330px;
  }
  .kaligrafi-bismillah-img {
    max-height: 68px;
    margin-bottom: 10px;
  }
  .ayat-quote-text {
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 10px;
  }
  .ayat-surah-ref {
    font-size: 10.5px;
  }

  /* Scene 3: Mempelai Berdua */
  #scene3 {
    padding-top: 22px;
  }
  .couple-intro-header {
    margin-top: 8px;
    padding: 7px 18px;
  }
  .intro-kicker {
    font-size: 10.5px;
  }
  .intro-main-heading {
    font-size: 18px;
  }
  .couple-characters-stage {
    bottom: 50px;
    height: 48%;
    gap: 20px;
  }

  /* Scene 4 & 5: Mempelai Wanita & Pria */
  .profile-cloud-card {
    margin-top: 6px;
    padding: 14px 16px 12px;
    max-width: 340px;
  }
  .profile-role-tag {
    font-size: 10px;
    margin-bottom: 2px;
  }
  .profile-name {
    font-size: 20px;
    margin-bottom: 2px;
  }
  .profile-parents {
    font-size: 11px;
    line-height: 1.35;
    margin-bottom: 6px;
  }
  .profile-social {
    padding: 3px 12px;
    font-size: 11px;
  }
  .bride-container,
  .groom-container {
    bottom: 45px;
    height: 52%;
  }

  /* Scene 6: Agenda (Akad & Resepsi with Couple) - Critical Compact Adjustment */
  .agenda-stage-wrapper {
    top: 10px;
    max-width: 370px;
  }
  .agenda-content-layer {
    padding: 14px 14px 12px;
  }
  .agenda-section-block {
    margin-bottom: 2px;
  }
  .agenda-title-gold {
    font-size: 16px;
    margin-bottom: 1px;
  }
  .agenda-day-gold {
    font-size: 9px;
    letter-spacing: 2px;
    margin-bottom: 1px;
  }
  .agenda-time-text {
    font-size: 11px;
    margin-bottom: 1px;
  }
  .agenda-place-text {
    font-size: 11px;
  }
  .agenda-divider-gold {
    font-size: 9px;
    margin: 2px 0;
  }
  .agenda-actions-row {
    margin-top: 6px;
    gap: 8px;
  }
  .btn-secondary {
    padding: 6px 12px;
    font-size: 10px;
  }
  .agenda-couple-stage {
    bottom: 50px;
    height: 36%;
    gap: 10px;
  }

  /* Scene 7: Doa Pengantin */
  .doa-wrapper {
    margin-top: 0;
    max-width: 340px;
  }
  .doa-title {
    font-size: 20px;
    margin-bottom: 0;
  }
  .doa-source {
    font-size: 11.5px;
    margin-bottom: 8px;
  }
  .doa-arabic {
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 6px;
  }
  .doa-transliteration {
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 6px;
  }
  .doa-translation {
    font-size: 10.5px;
    line-height: 1.4;
    padding: 8px 12px;
    max-width: 310px;
  }

  /* Scene 8: Closing & Actions */
  .closing-wrapper {
    transform: translateY(-26px);
    max-width: 350px;
  }
  .closing-title {
    font-size: 20px;
    margin-bottom: 2px;
  }
  .closing-names {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .countdown-container {
    gap: 6px;
    margin-bottom: 12px;
  }
  .countdown-box {
    padding: 6px 8px;
    min-width: 58px;
  }
  .countdown-num {
    font-size: 18px;
  }
  .countdown-label {
    font-size: 9px;
  }
  .closing-actions-grid {
    gap: 8px;
    margin-bottom: 8px;
  }
  .btn-action-tile {
    padding: 10px 8px;
    font-size: 11px;
  }
  .btn-action-tile span.icon {
    font-size: 16px;
  }
  .btn-replay {
    margin-top: 10px;
    padding: 8px 20px;
    font-size: 10px;
    min-width: 210px;
  }
}

/* 2. VERY COMPACT OR LANDSCAPE ORIENTATION (height <= 630px) */
@media (max-height: 630px) {
  .layer-roses {
    height: 120px;
  }
  .scene-cover-content {
    padding-top: 20px;
    padding-bottom: 50px;
  }
  .agenda-couple-stage {
    bottom: 45px;
    height: 32%;
  }
  #scene1 {
    padding-top: 6px;
  }
  .welcome-card-wrapper {
    padding: 10px 12px 8px;
    margin-top: 0;
  }
  .dalang-stage {
    bottom: 45px;
    height: 32%;
  }
}

/* 3. NARROW SCREENS (width <= 370px, e.g. Galaxy 360px, small Androids) */
@media (max-width: 370px) {
  .agenda-actions-row {
    gap: 6px;
  }
  .btn-secondary {
    padding: 6px 10px;
    font-size: 9.5px;
    letter-spacing: 0.5px;
  }
  .countdown-container {
    gap: 5px;
  }
  .countdown-box {
    padding: 6px 6px;
    min-width: 52px;
  }
  .countdown-num {
    font-size: 17px;
  }
  .closing-actions-grid {
    gap: 6px;
  }
  .btn-action-tile {
    padding: 10px 6px;
    font-size: 10.5px;
  }
  .welcome-card-wrapper {
    padding-left: 14px;
    padding-right: 14px;
  }
  .profile-cloud-card {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* 4. TALL SCREENS (height >= 850px, e.g. iPhone 14/15/16 Pro Max, modern tall flagships) */
@media (min-height: 850px) {
  .scene-cover-content {
    padding-top: 45px;
    padding-bottom: 85px;
  }
  #scene1 {
    padding-top: 18px;
  }
  .welcome-card-wrapper {
    padding: 18px 20px 16px 20px;
  }
  .agenda-stage-wrapper {
    top: 35px;
  }
  .agenda-couple-stage {
    bottom: 85px;
  }
  .doa-wrapper {
    margin-top: 5px;
  }
  .closing-wrapper {
    transform: translateY(-10px);
  }
}

/* ==========================================================================
   ROYAL JAVANESE GOLD PROGRESSIVE PRELOADER
   ========================================================================== */
.royal-preloader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 42%, #221f1b 0%, #0d0c0b 80%, #060505 100%);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
  transition: opacity 0.6s cubic-bezier(0.65, 0, 0.35, 1), transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.royal-preloader.preloader-hidden {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.royal-preloader-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 207, 146, 0.15) 0%, rgba(212, 175, 55, 0.04) 50%, transparent 70%);
  animation: preloaderAura 3s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes preloaderAura {
  0% { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.18); opacity: 0.95; }
}

.royal-preloader-card {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 20px;
  max-width: 320px;
  width: 88%;
}

.preloader-gunungan {
  width: 68px;
  height: 82px;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 16px rgba(229, 207, 146, 0.7));
  animation: gununganFloat 2.6s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes gununganFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.88;
  }
  50% {
    transform: translateY(-5px) scale(1.04);
    opacity: 1;
  }
}

.preloader-badge {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-prada);
  margin-bottom: 6px;
  font-weight: 600;
  opacity: 0.9;
}

.preloader-title {
  font-family: 'Cinzel Decorative', 'Amiri', serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff2b2 !important;
  text-shadow: 0 2px 14px rgba(229, 207, 146, 0.7), 0 4px 18px rgba(0, 0, 0, 0.9);
  margin-bottom: 22px;
}

.preloader-track {
  width: 220px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
  position: relative;
}

.preloader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #997e3a, #e6ca65, #fff5c0);
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(230, 202, 101, 0.8);
  transition: width 0.3s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.preloader-counter {
  font-family: 'Cinzel', 'Montserrat', monospace;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gold-champagne);
  margin-top: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.preloader-status {
  font-size: 11px;
  letter-spacing: 1px;
  color: #a8a090;
  margin-top: 6px;
  font-style: italic;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

