/* ============================================================================
   MAYANG & ADI — ROYAL MAROON & GOLD JAVANESE HERITAGE STYLES
   Mengikuti persis estetika referensi cetak:
   - Latar Merah Maroon Kraton (#7A0000 / #660000)
   - Ornamen Ukiran Acanthus Emas, Gunungan Wayang & Awan Mega Mendung
   - Tipografi Allura + Instrument Serif + Cinzel + Montserrat
   - Koreografi Animasi Hidup: Portal Gunungan, Ornamen Melambai, Scroll Parallax
   ============================================================================ */

:root {
  --maroon-deep: #5C0000;
  --maroon-royal: #7A0000;
  --maroon-rich: #870404;
  --gold-bright: #FCE588;
  --gold-mid: #DFB048;
  --gold-deep: #A8741C;
  --gold-soft: #EED492;
  --cream-gold: #F8E8BC;
}

html {
  scroll-behavior: smooth;
  background-color: var(--maroon-deep);
  color: var(--cream-gold);
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--maroon-royal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.cover-locked {
  overflow: hidden;
  height: 100vh;
}

.font-script-gold {
  font-family: 'Allura', cursive;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.35 !important;
  padding-top: 0.1em;
  padding-bottom: 0.3em;
  padding-inline: 0.2em;
  display: inline-block;
  overflow: visible;
}

.font-serif-classic {
  font-family: 'Instrument Serif', Georgia, serif;
  letter-spacing: 0.02em;
}

.font-royal-caps {
  font-family: 'Cinzel', Georgia, serif;
}

.font-ui {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

.font-arabic {
  font-family: 'Scheherazade New', serif;
}

/* Ultra-HD Crisp Gold Ornament Polish */
.ornament-hd {
  image-rendering: -webkit-optimize-contrast;
  filter: contrast(1.04) saturate(1.04) drop-shadow(0 6px 14px rgba(26, 0, 0, 0.46));
}

/* Color-matched corner & flourish gold (selaras persis dengan warna foil emas font) */
.ornament-corner-hd {
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 5px 12px rgba(26, 0, 0, 0.45));
}

/* Custom Maroon & Gold Scrollbar */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #480103;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fce588, #b57e20);
  border-radius: 999px;
}

/* ============================================================================
   ROYAL MAROON BACKGROUNDS (EXACT MATCH TO PDF)
   ============================================================================ */
.bg-royal-maroon {
  background-color: #7A0000;
  background-image:
    radial-gradient(circle at 50% 22%, rgba(154, 14, 14, 0.28) 0%, transparent 56%),
    radial-gradient(circle at 10% 90%, rgba(72, 0, 0, 0.5) 0%, transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(72, 0, 0, 0.5) 0%, transparent 50%);
}

.bg-royal-maroon-alt {
  background-color: #700000;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(138, 10, 10, 0.3) 0%, transparent 60%),
    linear-gradient(180deg, #7A0000 0%, #660000 50%, #7A0000 100%);
}

/* Metallic Lustrous Gold Text Gradient (Like Embossed Gold Foil Print) */
.text-gold-foil {
  background: linear-gradient(
    135deg,
    #FFF2B2 0%,
    #E7BD52 28%,
    #C68D24 52%,
    #FCE68B 76%,
    #B47B19 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: foilShimmer 5.5s linear infinite;
}

@keyframes foilShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 220% center; }
}

/* Maroon-Gold Translucent Frame Cards */
.card-maroon-gold {
  background: rgba(84, 3, 5, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(235, 195, 102, 0.42);
  box-shadow:
    0 22px 55px -16px rgba(28, 0, 1, 0.65),
    inset 0 1px 0 rgba(252, 229, 136, 0.16);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.card-maroon-gold:hover {
  border-color: rgba(252, 229, 136, 0.65);
  box-shadow:
    0 26px 60px -16px rgba(28, 0, 1, 0.72),
    0 0 22px rgba(252, 229, 136, 0.12),
    inset 0 1px 0 rgba(252, 229, 136, 0.28);
}

.box-outline-gold {
  background: rgba(94, 4, 6, 0.48);
  border: 1px solid rgba(238, 206, 132, 0.52);
  border-radius: 14px;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.box-outline-gold:hover {
  border-color: rgba(252, 229, 136, 0.8);
  box-shadow: 0 0 20px rgba(252, 229, 136, 0.16);
}

/* ============================================================================
   3D ROYAL MAROON & GOLD FOLDING GATE COVER + GUNUNGAN PORTAL ZOOM
   ============================================================================ */
#invitation-cover {
  perspective: 1800px;
  transition: opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.95s;
}

#invitation-cover.is-opening .gate-panel-left {
  transform: rotateY(-106deg) translateX(-22%);
  opacity: 0.08;
}

#invitation-cover.is-opening .gate-panel-right {
  transform: rotateY(106deg) translateX(22%);
  opacity: 0.08;
}

#invitation-cover.is-opening .cover-center-card {
  transform: scale(1.12) translateY(-16px);
  opacity: 0;
}

/* Dramatic Golden Gunungan Portal Zoom on Opening (Inspired by Javanese Gate Transition) */
#cover-gunungan-portal {
  opacity: 0;
  transform: scale(0.68);
  pointer-events: none;
  transition: transform 1.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
  will-change: transform, opacity;
}

#invitation-cover.is-opening #cover-gunungan-portal {
  animation: gununganPortalZoom 1.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes gununganPortalZoom {
  0% {
    opacity: 0;
    transform: scale(0.72);
    filter: drop-shadow(0 0 12px rgba(252, 229, 136, 0.3));
  }
  28% {
    opacity: 0.95;
    transform: scale(1.06);
    filter: drop-shadow(0 0 38px rgba(252, 229, 136, 0.72));
  }
  100% {
    opacity: 0;
    transform: scale(2.55);
    filter: drop-shadow(0 0 60px rgba(252, 229, 136, 0.9));
  }
}

#invitation-cover.is-opened {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.gate-panel-left,
.gate-panel-right {
  transition: transform 1.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.3s ease;
  backface-visibility: hidden;
  will-change: transform, opacity;
}
.gate-panel-left { transform-origin: left center; }
.gate-panel-right { transform-origin: right center; }

.cover-center-card {
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.65s ease;
}

/* Cover Ambient Idle Life */
.cover-float-slow {
  animation: coverBreath 5.2s ease-in-out 1.6s infinite;
}
@keyframes coverBreath {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

/* ============================================================================
   COVER ALL-DIRECTIONS ENTRANCE (PLAYS AUTOMATICALLY ON INITIAL PAGE LOAD!)
   ============================================================================ */
@keyframes coverInTL {
  0% { opacity: 0; transform: translate3d(-72px, -72px, 0) scale(0.84) rotate(-8deg); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
}
@keyframes coverInTR {
  0% { opacity: 0; transform: translate3d(72px, -72px, 0) scale(0.84) rotate(8deg); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
}
@keyframes coverInBL {
  0% { opacity: 0; transform: translate3d(-72px, 72px, 0) scale(0.84) rotate(8deg); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
}
@keyframes coverInBR {
  0% { opacity: 0; transform: translate3d(72px, 72px, 0) scale(0.84) rotate(-8deg); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
}
@keyframes coverInTop {
  0% { opacity: 0; transform: translate3d(0, -44px, 0) scale(0.95); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes coverInBottom {
  0% { opacity: 0; transform: translate3d(0, 52px, 0) scale(0.92); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes coverInLeft {
  0% { opacity: 0; transform: translate3d(-64px, 0, 0) scale(0.94); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes coverInRight {
  0% { opacity: 0; transform: translate3d(64px, 0, 0) scale(0.94); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}
@keyframes coverInZoom {
  0% { opacity: 0; transform: scale(0.72); }
  100% { opacity: 1; transform: scale(1); }
}

.cover-in-tl { animation: coverInTL 1.35s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both; }
.cover-in-tr { animation: coverInTR 1.35s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both; }
.cover-in-bl { animation: coverInBL 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both; }
.cover-in-br { animation: coverInBR 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both; }
.cover-in-top { animation: coverInTop 1.25s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both; }
.cover-in-left { animation: coverInLeft 1.35s cubic-bezier(0.22, 1, 0.36, 1) 0.38s both; }
.cover-in-right { animation: coverInRight 1.35s cubic-bezier(0.22, 1, 0.36, 1) 0.38s both; }
.cover-in-amp { animation: coverInZoom 1.2s cubic-bezier(0.25, 1.25, 0.5, 1) 0.52s both; }
.cover-in-date { animation: coverInRight 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.58s both; }
.cover-in-logo { animation: coverInZoom 1.45s cubic-bezier(0.22, 1, 0.36, 1) 0.68s both; }
.cover-in-guest { animation: coverInLeft 1.35s cubic-bezier(0.22, 1, 0.36, 1) 0.85s both; }
.cover-in-cta { animation: coverInBottom 1.35s cubic-bezier(0.22, 1, 0.36, 1) 1.0s both; }

/* ============================================================================
   HERO ALL-DIRECTIONS STAGGERED ENTRANCE (PLAYS RIGHT AS COVER OPENS!)
   ============================================================================ */
.hero-stagger,
.hero-stagger-zoom,
.hero-from-top,
.hero-from-bottom,
.hero-from-left,
.hero-from-right,
.hero-from-tl,
.hero-from-tr,
.hero-from-bl,
.hero-from-br {
  opacity: 0;
  transition: opacity 1.35s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.hero-stagger { transform: translate3d(0, 36px, 0) scale(0.95); }
.hero-stagger-zoom { transform: scale(0.76); }
.hero-from-top { transform: translate3d(0, -48px, 0) scale(0.95); }
.hero-from-bottom { transform: translate3d(0, 54px, 0) scale(0.94); }
.hero-from-left { transform: translate3d(-68px, 0, 0) scale(0.94); }
.hero-from-right { transform: translate3d(68px, 0, 0) scale(0.94); }
.hero-from-tl { transform: translate3d(-76px, -76px, 0) scale(0.84) rotate(-7deg); }
.hero-from-tr { transform: translate3d(76px, -76px, 0) scale(0.84) rotate(7deg); }
.hero-from-bl { transform: translate3d(-76px, 76px, 0) scale(0.84) rotate(7deg); }
.hero-from-br { transform: translate3d(76px, 76px, 0) scale(0.84) rotate(-7deg); }

body.invitation-opened .hero-stagger,
body.invitation-opened .hero-stagger-zoom,
body.invitation-opened .hero-from-top,
body.invitation-opened .hero-from-bottom,
body.invitation-opened .hero-from-left,
body.invitation-opened .hero-from-right,
body.invitation-opened .hero-from-tl,
body.invitation-opened .hero-from-tr,
body.invitation-opened .hero-from-bl,
body.invitation-opened .hero-from-br {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
}

.hero-d0 { transition-delay: 0.08s; }
.hero-d1 { transition-delay: 0.2s; }
.hero-d2 { transition-delay: 0.38s; }
.hero-d3 { transition-delay: 0.54s; }
.hero-d4 { transition-delay: 0.68s; }
.hero-d5 { transition-delay: 0.86s; }
.hero-d6 { transition-delay: 0.98s; }
.hero-d7 { transition-delay: 1.1s; }

/* ============================================================================
   LIVELY ANIMATED JAVANESE & GOLD FILIGREE MOTIFS
   (More expressive organic breeze sway + luminous gold breathing)
   ============================================================================ */
@keyframes cornerSwayTL {
  0%, 100% { transform: rotate(0deg) translate(0px, 0px) scale(1); }
  35% { transform: rotate(3.4deg) translate(4px, 2px) scale(1.03); }
  70% { transform: rotate(-1.6deg) translate(-2px, 3px) scale(0.99); }
}
@keyframes cornerSwayTR {
  0%, 100% { transform: rotate(0deg) translate(0px, 0px) scale(1); }
  35% { transform: rotate(-3.4deg) translate(-4px, 2px) scale(1.03); }
  70% { transform: rotate(1.6deg) translate(2px, 3px) scale(0.99); }
}
@keyframes cornerSwayBL {
  0%, 100% { transform: rotate(0deg) translate(0px, 0px) scale(1); }
  40% { transform: rotate(-3.2deg) translate(4px, -3px) scale(1.03); }
  75% { transform: rotate(1.5deg) translate(-2px, -1px) scale(0.99); }
}
@keyframes cornerSwayBR {
  0%, 100% { transform: rotate(0deg) translate(0px, 0px) scale(1); }
  40% { transform: rotate(3.2deg) translate(-4px, -3px) scale(1.03); }
  75% { transform: rotate(-1.5deg) translate(2px, -1px) scale(0.99); }
}

@keyframes gununganGlow {
  0%, 100% {
    transform: translateY(0px) scale(1) rotate(0deg);
    filter: drop-shadow(0 8px 20px rgba(252, 229, 136, 0.30));
  }
  50% {
    transform: translateY(-9px) scale(1.028) rotate(0.45deg);
    filter: drop-shadow(0 16px 34px rgba(252, 229, 136, 0.56));
  }
}

@keyframes flourishBreath {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 4px 10px rgba(252, 229, 136, 0.18));
  }
  50% {
    transform: scale(1.045);
    filter: drop-shadow(0 6px 20px rgba(252, 229, 136, 0.46));
  }
}

@keyframes bismillahGlow {
  0%, 100% {
    transform: translateY(0px) scale(1);
    filter: drop-shadow(0 4px 12px rgba(252, 229, 136, 0.25));
  }
  50% {
    transform: translateY(-4px) scale(1.035);
    filter: drop-shadow(0 8px 24px rgba(252, 229, 136, 0.55));
  }
}

@keyframes watermarkFloat {
  0%, 100% { transform: translateY(0px) scale(1); opacity: 0.72; }
  50% { transform: translateY(-7px) scale(1.04); opacity: 0.92; }
}

.ornament-tl { transform-origin: 0% 0%; animation: cornerSwayTL 6.2s ease-in-out infinite; }
.ornament-tr { transform-origin: 100% 0%; animation: cornerSwayTR 6.6s ease-in-out infinite; }
.ornament-bl { transform-origin: 0% 100%; animation: cornerSwayBL 6.4s ease-in-out infinite; }
.ornament-br { transform-origin: 100% 100%; animation: cornerSwayBR 6.8s ease-in-out infinite; }
.gunungan-alive { animation: gununganGlow 5s ease-in-out infinite; }
@keyframes gununganBottomBreath {
  0%, 100% {
    transform: translateY(0px) scale(1) rotate(0deg);
    filter: drop-shadow(0 6px 18px rgba(252, 229, 136, 0.28));
  }
  50% {
    transform: translateY(-5px) scale(1.03) rotate(0.4deg);
    filter: drop-shadow(0 12px 30px rgba(252, 229, 136, 0.56));
  }
}
.gunungan-bottom-alive {
  transform-origin: center bottom;
  animation: gununganBottomBreath 5.2s ease-in-out infinite;
}
.flourish-alive { animation: flourishBreath 4.8s ease-in-out infinite; }
.bismillah-alive { animation: bismillahGlow 4.6s ease-in-out infinite; }
.watermark-alive { animation: watermarkFloat 6.5s ease-in-out infinite; }

/* Section Corner Entrance Bloom (corners glide in smoothly when section enters view!) */
.corner-bloom {
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), opacity 1s ease;
}

/* ============================================================================
   MULTI-DIRECTIONAL SCROLL REVEAL CHOREOGRAPHY (SLOW & GRACEFUL ROYAL GLIDE)
   ============================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(42px) scale(0.96);
  transition: opacity 1.35s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.reveal-left {
  transform: translateX(-56px) translateY(14px) scale(0.96);
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.reveal-right {
  transform: translateX(56px) translateY(14px) scale(0.96);
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.reveal-zoom {
  transform: scale(0.86) translateY(20px);
  transition: opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
              transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.reveal-pop {
  transform: scale(0.78) translateY(18px);
  transition: opacity 1.15s cubic-bezier(0.25, 1.25, 0.5, 1),
              transform 1.3s cubic-bezier(0.25, 1.25, 0.5, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Smooth Damped Parallax */
[data-parallax] {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Staggered Cascade Delays (Unhurried Royal Tempo) */
.delay-100 { transition-delay: 0.18s; }
.delay-200 { transition-delay: 0.36s; }
.delay-300 { transition-delay: 0.54s; }
.delay-400 { transition-delay: 0.72s; }
.delay-500 { transition-delay: 0.9s; }

/* Smooth Tab Panel Bloom (Amplop Bank <-> DANA) */
@keyframes panelBloom {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.panel-bloom {
  animation: panelBloom 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Countdown Seconds Live Pulse */
@keyframes tickPop {
  0% { transform: scale(1.22); color: #FFF8D6; text-shadow: 0 0 14px rgba(252, 229, 136, 0.85); }
  100% { transform: scale(1); text-shadow: none; }
}
.tick-pop {
  display: inline-block;
  animation: tickPop 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Iconic 3-Column Gold Horizontal Date Table */
.date-lockup-grid {
  border-top: 1px solid rgba(239, 206, 128, 0.65);
  border-bottom: 1px solid rgba(239, 206, 128, 0.65);
}

/* ============================================================================
   GOLD LUXURY BUTTON WITH PERIODIC FOIL LIGHT SWEEP
   ============================================================================ */
.btn-gold-royal {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #d7a539 0%, #fae38b 48%, #c79025 100%);
  color: #4D0203;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
}
.btn-gold-royal::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg, transparent 18%, rgba(255, 255, 255, 0.58) 50%, transparent 82%);
  animation: periodicBtnSheen 4.8s ease-in-out infinite;
}
@keyframes periodicBtnSheen {
  0%, 68% { left: -120%; }
  88%, 100% { left: 150%; }
}
.btn-gold-royal:hover {
  transform: translateY(-2.5px) scale(1.025);
  box-shadow: 0 14px 30px -6px rgba(250, 227, 139, 0.50);
}
.btn-gold-royal:active {
  transform: scale(0.97);
}

/* Gentle Pulsing Ring on Primary Cover Button */
.btn-pulse-gold {
  animation: goldRingPulse 2.8s ease-in-out infinite;
}
@keyframes goldRingPulse {
  0%, 100% { box-shadow: 0 10px 26px -6px rgba(250, 227, 139, 0.38), 0 0 0 0 rgba(252, 229, 136, 0.42); }
  50% { box-shadow: 0 14px 34px -6px rgba(250, 227, 139, 0.56), 0 0 0 11px rgba(252, 229, 136, 0); }
}

/* Floating Dark Maroon Dock */
.glass-maroon-dock {
  background: rgba(63, 2, 4, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(238, 201, 114, 0.48);
}

.nav-pill-btn.active {
  background-color: rgba(238, 201, 114, 0.25);
  color: #FCE588;
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin-playing { animation: slowSpin 7s linear infinite; }

/* Clean Horizontal Scroll without Scrollbar */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ============================================================================
   LIVELY ANIMATED CHIBI CHARACTERS (GREETING SWAY + BREATHING + AURA PULSE)
   ============================================================================ */
@keyframes chibiGreetingBride {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1, 1);
  }
  25% {
    transform: translateY(-8px) rotate(-1.8deg) scale(1.012, 1.018);
  }
  50% {
    transform: translateY(-3px) rotate(0.9deg) scale(1.005, 0.996);
  }
  75% {
    transform: translateY(-9px) rotate(1.6deg) scale(1.012, 1.016);
  }
}

@keyframes chibiGreetingGroom {
  0%, 100% {
    transform: translateY(0px) rotate(0deg) scale(1, 1);
  }
  25% {
    transform: translateY(-8px) rotate(1.8deg) scale(1.012, 1.018);
  }
  50% {
    transform: translateY(-3px) rotate(-0.9deg) scale(1.005, 0.996);
  }
  75% {
    transform: translateY(-9px) rotate(-1.6deg) scale(1.012, 1.016);
  }
}

@keyframes chibiAuraPulse {
  0%, 100% {
    transform: scale(0.95);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.09);
    opacity: 1;
  }
}

@keyframes chibiShadowSync {
  0%, 100% {
    transform: scaleX(1);
    opacity: 0.62;
  }
  25%, 75% {
    transform: scaleX(0.84);
    opacity: 0.38;
  }
  50% {
    transform: scaleX(0.95);
    opacity: 0.54;
  }
}

.chibi-character {
  transform-origin: center bottom;
  filter: drop-shadow(0 0 14px rgba(252, 229, 136, 0.28))
          drop-shadow(0 16px 22px rgba(32, 0, 0, 0.55));
  transition: filter 0.45s ease;
  will-change: transform;
}
.chibi-character:hover {
  filter: drop-shadow(0 0 24px rgba(252, 229, 136, 0.46))
          drop-shadow(0 20px 28px rgba(32, 0, 0, 0.62));
}
.chibi-float-bride {
  animation: chibiGreetingBride 5.4s ease-in-out infinite;
}
.chibi-float-groom {
  animation: chibiGreetingGroom 5.4s ease-in-out 0.75s infinite;
}
.chibi-aura {
  animation: chibiAuraPulse 4.6s ease-in-out infinite;
}
.chibi-shadow-bride {
  animation: chibiShadowSync 5.4s ease-in-out infinite;
}
.chibi-shadow-groom {
  animation: chibiShadowSync 5.4s ease-in-out 0.75s infinite;
}

/* Gentle Separators & Badges Breathing */
@keyframes softFloatTag {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}
.float-gentle {
  animation: softFloatTag 4.2s ease-in-out infinite;
}

/* ============================================================================
   BLUSH ROSE (#F3B6B6) THEME LAYER — HARMONIOUS CONTRAST & ROYAL ACCENTS
   ============================================================================ */
html:has(body.theme-blush-rose) {
  background-color: #F3B6B6;
  color: #5E0B14;
}

body.theme-blush-rose {
  background-color: #F3B6B6 !important;
  color: #5E0B14 !important;
}

body.theme-blush-rose::-webkit-scrollbar-track {
  background: #E8A2A2;
}
body.theme-blush-rose::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #9C5E14, #6E0E18);
}

/* Primary & Alternating #F3B6B6 Blush Rose Surfaces */
body.theme-blush-rose #invitation-cover,
body.theme-blush-rose .bg-royal-maroon {
  background-color: #F3B6B6 !important;
  background-image:
    radial-gradient(circle at 50% 20%, rgba(255, 236, 236, 0.45) 0%, transparent 58%),
    radial-gradient(circle at 10% 90%, rgba(214, 130, 136, 0.34) 0%, transparent 52%),
    radial-gradient(circle at 90% 90%, rgba(214, 130, 136, 0.34) 0%, transparent 52%) !important;
}

body.theme-blush-rose .bg-royal-maroon-alt {
  background-color: #EFAFAF !important;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(255, 238, 238, 0.4) 0%, transparent 62%),
    linear-gradient(180deg, #F3B6B6 0%, #ECAAAA 50%, #F3B6B6 100%) !important;
}

body.theme-blush-rose main > div.bg-\[\#5D0204\] {
  background-color: #ECA8A8 !important;
  border-color: rgba(138, 72, 24, 0.25) !important;
}

/* Metallic Burnished Burgundy-Gold Script Foil (High Contrast on #F3B6B6) */
body.theme-blush-rose .text-gold-foil {
  background: linear-gradient(
    135deg,
    #640A14 0%,
    #9C5B10 26%,
    #C4851E 50%,
    #7A101C 74%,
    #94530C 100%
  ) !important;
  background-size: 220% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  filter: drop-shadow(0 2px 6px rgba(102, 16, 26, 0.14));
}

/* Burnished Antique Gold Ornaments & Gunungan (Crisp on Light Blush Rose) */
body.theme-blush-rose .ornament-corner-hd {
  filter: brightness(0.62) contrast(1.28) saturate(1.22) drop-shadow(0 3px 8px rgba(96, 12, 22, 0.18)) !important;
}
body.theme-blush-rose .ornament-hd {
  filter: brightness(0.84) contrast(1.16) saturate(1.12) drop-shadow(0 6px 14px rgba(96, 12, 22, 0.22)) !important;
}
body.theme-blush-rose [data-gunungan="watermark"] img {
  opacity: 0.22 !important;
  filter: brightness(0.75) saturate(1.1);
}

/* Chibi Characters on Blush Rose (Soft Ivory Aura & Subtle Rose-Maroon Shadow) */
body.theme-blush-rose .chibi-character {
  filter: drop-shadow(0 0 14px rgba(255, 248, 240, 0.62))
          drop-shadow(0 14px 20px rgba(102, 16, 26, 0.26)) !important;
}
body.theme-blush-rose .chibi-aura {
  background: radial-gradient(circle, rgba(255, 248, 242, 0.65) 0%, rgba(255, 236, 232, 0.25) 48%, transparent 74%) !important;
}
body.theme-blush-rose .chibi-shadow-bride,
body.theme-blush-rose .chibi-shadow-groom {
  background-color: rgba(110, 18, 28, 0.26) !important;
}

/* Frosted Blush-Ivory Stationery Cards & Outlined Boxes */
body.theme-blush-rose .card-maroon-gold {
  background: rgba(255, 246, 246, 0.76) !important;
  border: 1px solid rgba(148, 92, 24, 0.36) !important;
  box-shadow:
    0 18px 42px -14px rgba(114, 22, 32, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}
body.theme-blush-rose .card-maroon-gold:hover {
  border-color: rgba(122, 16, 28, 0.55) !important;
  box-shadow:
    0 22px 48px -14px rgba(114, 22, 32, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

body.theme-blush-rose .box-outline-gold {
  background: rgba(255, 246, 246, 0.58) !important;
  border: 1px solid rgba(138, 26, 38, 0.32) !important;
  box-shadow: 0 10px 26px -12px rgba(110, 18, 28, 0.16);
}

body.theme-blush-rose .date-lockup-grid,
body.theme-blush-rose .date-lockup-grid > div {
  border-color: rgba(142, 86, 24, 0.42) !important;
}

/* Section Borders & Divider Lines */
body.theme-blush-rose section,
body.theme-blush-rose footer,
body.theme-blush-rose #kisah-wrap,
body.theme-blush-rose #lokasi-wrap {
  border-color: rgba(138, 30, 42, 0.22) !important;
}

/* Crisp Deep Maroon & Warm Burgundy Typography on #F3B6B6 */
body.theme-blush-rose .text-\[\#FCE588\],
body.theme-blush-rose .text-\[\#FFF4D1\],
body.theme-blush-rose .text-\[\#FFF3B8\],
body.theme-blush-rose .text-\[\#FFF7DF\] {
  color: #5E0B14 !important;
}

body.theme-blush-rose .text-\[\#F8E8BC\],
body.theme-blush-rose .text-\[\#F8E7BD\],
body.theme-blush-rose .text-\[\#F5DE9E\],
body.theme-blush-rose .text-\[\#F4DDA1\],
body.theme-blush-rose .text-\[\#F4DDA1\]\/95,
body.theme-blush-rose .text-\[\#F4D98E\],
body.theme-blush-rose .text-\[\#F3D895\],
body.theme-blush-rose .text-\[\#F2D58C\],
body.theme-blush-rose .text-\[\#F1D288\],
body.theme-blush-rose .text-\[\#F6DF9C\],
body.theme-blush-rose .text-\[\#FAF0D4\],
body.theme-blush-rose .text-\[\#EBC878\],
body.theme-blush-rose .text-\[\#EBC263\],
body.theme-blush-rose .text-\[\#E5C67E\],
body.theme-blush-rose .text-\[\#E5C67E\]\/80 {
  color: #6E141E !important;
}

body.theme-blush-rose .text-\[\#F2A6A8\] {
  color: #9A1E2A !important;
}

/* Primary Luxury Buttons on Blush Rose: Rich Royal Maroon with Cream-Gold Text */
body.theme-blush-rose .btn-gold-royal {
  background: linear-gradient(135deg, #6E0A14 0%, #981622 50%, #5B060E 100%) !important;
  color: #FFF3D4 !important;
  border: 1px solid rgba(214, 166, 72, 0.72) !important;
  box-shadow: 0 12px 26px -8px rgba(102, 12, 22, 0.45);
}
body.theme-blush-rose .btn-gold-royal:hover {
  box-shadow: 0 16px 32px -8px rgba(102, 12, 22, 0.58) !important;
}
body.theme-blush-rose .btn-pulse-gold {
  animation: roseRingPulse 2.8s ease-in-out infinite !important;
}
@keyframes roseRingPulse {
  0%, 100% { box-shadow: 0 10px 24px -6px rgba(110, 12, 22, 0.42), 0 0 0 0 rgba(122, 16, 28, 0.38); }
  50% { box-shadow: 0 14px 30px -6px rgba(110, 12, 22, 0.56), 0 0 0 11px rgba(122, 16, 28, 0); }
}

/* Secondary Calendar Button, Active Tabs & Pills */
body.theme-blush-rose [data-calendar-idx] {
  background: rgba(255, 248, 248, 0.85) !important;
  border-color: rgba(114, 14, 24, 0.45) !important;
  color: #6A0C16 !important;
}
body.theme-blush-rose [data-calendar-idx]:hover {
  background: #720B16 !important;
  color: #FFF3D4 !important;
}

body.theme-blush-rose .bg-\[\#E6B84C\] {
  background-color: #720B16 !important;
  color: #FFF3D4 !important;
}
body.theme-blush-rose .bg-\[\#520204\]\/75 {
  background-color: rgba(255, 246, 246, 0.75) !important;
  border-color: rgba(142, 86, 24, 0.35) !important;
}
body.theme-blush-rose .bg-\[\#FCE588\]\/15 {
  background-color: rgba(114, 14, 24, 0.1) !important;
  border-color: rgba(142, 86, 24, 0.42) !important;
}

/* RSVP Inputs, Radio Controls & Guestbook Cards */
body.theme-blush-rose #rsvp-form input[type="text"],
body.theme-blush-rose #rsvp-form select,
body.theme-blush-rose #rsvp-form textarea,
body.theme-blush-rose #guest-link-modal input {
  background-color: rgba(255, 252, 252, 0.92) !important;
  border-color: rgba(142, 86, 24, 0.42) !important;
  color: #5E0B14 !important;
}
body.theme-blush-rose #rsvp-form input::placeholder,
body.theme-blush-rose #rsvp-form textarea::placeholder,
body.theme-blush-rose #guest-link-modal input::placeholder {
  color: rgba(122, 34, 44, 0.52) !important;
}
body.theme-blush-rose #rsvp-form input[type="radio"] + span {
  background-color: rgba(255, 250, 250, 0.85) !important;
  border-color: rgba(142, 86, 24, 0.38) !important;
  color: #680E18 !important;
}
body.theme-blush-rose #rsvp-form input[type="radio"]:checked + span {
  background-color: #720B16 !important;
  border-color: #720B16 !important;
  color: #FFF3D4 !important;
}

body.theme-blush-rose [data-wish-filter].bg-white\/10 {
  background-color: rgba(114, 14, 24, 0.1) !important;
  color: #6A0C16 !important;
}

body.theme-blush-rose #wishes-list > div {
  background-color: rgba(255, 250, 250, 0.82) !important;
  border-color: rgba(148, 92, 24, 0.32) !important;
}
body.theme-blush-rose #wishes-list span.bg-\[\#FCE588\]\/20 {
  background-color: rgba(180, 120, 24, 0.16) !important;
  border-color: rgba(154, 98, 22, 0.45) !important;
  color: #784608 !important;
}
body.theme-blush-rose #wishes-list span.bg-white\/15 {
  background-color: rgba(114, 14, 24, 0.1) !important;
  border-color: rgba(114, 14, 24, 0.28) !important;
  color: #6E141E !important;
}
body.theme-blush-rose #wishes-list span.bg-\[\#3D0102\] {
  background-color: rgba(154, 30, 42, 0.14) !important;
  border-color: rgba(154, 30, 42, 0.35) !important;
  color: #8C1A24 !important;
}

/* Countdown Seconds Pulse Adapted for Blush Rose */
body.theme-blush-rose .tick-pop {
  animation: tickPopRose 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes tickPopRose {
  0% { transform: scale(1.22); color: #9C5B10; text-shadow: 0 0 12px rgba(180, 122, 24, 0.45); }
  100% { transform: scale(1); text-shadow: none; }
}

/* PRESERVE RICH DARK MAROON SURFACES & LIGHT GOLD TEXT WHERE INTENTIONAL */
/* 1. Floating Bottom Dock, Utility Buttons, Music Button & Toast */
body.theme-blush-rose .glass-maroon-dock,
body.theme-blush-rose #btn-music-toggle {
  color: #FCE588 !important;
}
body.theme-blush-rose .glass-maroon-dock {
  background: rgba(94, 10, 18, 0.92) !important;
  border-color: rgba(226, 182, 92, 0.58) !important;
}
body.theme-blush-rose .glass-maroon-dock .text-\[\#FCE588\],
body.theme-blush-rose .glass-maroon-dock .text-\[\#FAF0D4\],
body.theme-blush-rose .glass-maroon-dock .text-\[\#F8E8BC\],
body.theme-blush-rose .glass-maroon-dock .nav-pill-btn,
body.theme-blush-rose #btn-music-toggle .text-\[\#FCE588\],
body.theme-blush-rose #btn-music-toggle svg {
  color: #FCE588 !important;
}
body.theme-blush-rose .glass-maroon-dock .nav-pill-btn:not(.active) {
  color: #F6DFB0 !important;
}

/* 2. BCA & Mandiri Luxury Maroon-Gold Bank Cards */
body.theme-blush-rose #gift-banks-list > div {
  background-image: linear-gradient(135deg, #680A12 0%, #87121C 52%, #52060D 100%) !important;
  border-color: rgba(235, 194, 99, 0.65) !important;
}
body.theme-blush-rose #gift-banks-list > div .text-\[\#FCE588\],
body.theme-blush-rose #gift-banks-list > div .text-\[\#FFF7DF\] {
  color: #FCE588 !important;
}
body.theme-blush-rose #gift-banks-list > div .text-\[\#F2D58C\] {
  color: #F4DDA1 !important;
}
body.theme-blush-rose #gift-banks-list > div .btn-gold-royal {
  background: linear-gradient(135deg, #d7a539 0%, #fae38b 48%, #c79025 100%) !important;
  color: #4D0203 !important;
  border-color: transparent !important;
}

/* 3. Desktop Timeline Center Year Medallions */
body.theme-blush-rose #love-story-list .from-\[\#6B0305\] {
  background-image: linear-gradient(135deg, #740C16, #52060D) !important;
  border-color: #D8A23A !important;
}
body.theme-blush-rose #love-story-list .from-\[\#6B0305\] span {
  color: #FCE588 !important;
}

/* 4. Guest Link Generator Modal (Blush-Ivory Stationery Card with Crisp Contrast) */
body.theme-blush-rose #guest-link-modal {
  background-color: rgba(82, 12, 20, 0.56) !important;
}
body.theme-blush-rose #guest-link-modal > div {
  background: linear-gradient(180deg, #FFF8F8 0%, #FCE7E7 100%) !important;
  border: 1.5px solid rgba(180, 124, 34, 0.58) !important;
  color: #5E0B14 !important;
  box-shadow: 0 28px 65px -16px rgba(74, 8, 16, 0.42) !important;
}
body.theme-blush-rose #guest-link-modal #generator-close {
  background-color: rgba(114, 14, 24, 0.1) !important;
  color: #680E18 !important;
}
body.theme-blush-rose #guest-link-modal #generator-close:hover {
  background-color: rgba(114, 14, 24, 0.2) !important;
}
body.theme-blush-rose #guest-link-modal p.font-royal-caps {
  color: #9A5C12 !important;
}
body.theme-blush-rose #guest-link-modal h3 {
  color: #5E0B14 !important;
}
body.theme-blush-rose #guest-link-modal label {
  color: #6E141E !important;
}
body.theme-blush-rose #guest-link-modal #generator-url-preview {
  background-color: rgba(255, 255, 255, 0.94) !important;
  border-color: rgba(154, 98, 28, 0.4) !important;
  color: #74101C !important;
}
body.theme-blush-rose #guest-link-modal #generator-copy-btn {
  background: linear-gradient(135deg, #6E0A14 0%, #981622 50%, #5B060E 100%) !important;
  color: #FFF3D4 !important;
}
body.theme-blush-rose #guest-link-modal #generator-wa-btn {
  color: #FFFFFF !important;
}

/* 5. VIP QR E-Pass Code Pill (Preserve Bright Gold on Maroon Badge) */
body.theme-blush-rose #epass-modal #epass-code {
  background-color: #6B0305 !important;
  color: #FCE588 !important;
}

/* ============================================================================
   ACCESSIBILITY: RESPECT REDUCED MOTION
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  .ornament-tl, .ornament-tr, .ornament-bl, .ornament-br,
  .gunungan-alive, .gunungan-bottom-alive, .flourish-alive, .bismillah-alive, .watermark-alive,
  .chibi-float-bride, .chibi-float-groom, .chibi-aura,
  .chibi-shadow-bride, .chibi-shadow-groom,
  .cover-float-slow, .float-gentle, .btn-pulse-gold, .text-gold-foil,
  .btn-gold-royal::after,
  .cover-in-tl, .cover-in-tr, .cover-in-bl, .cover-in-br,
  .cover-in-top, .cover-in-left, .cover-in-right, .cover-in-amp,
  .cover-in-date, .cover-in-logo, .cover-in-guest, .cover-in-cta {
    animation: none !important;
  }
  .reveal, .hero-stagger, .hero-stagger-zoom,
  .hero-from-top, .hero-from-bottom, .hero-from-left, .hero-from-right,
  .hero-from-tl, .hero-from-tr, .hero-from-bl, .hero-from-br {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
