/* =========================================================
   Undangan — putih gading, mocha brown & soft gold
   ========================================================= */
:root {
  --ivory: #FBF7F1;
  --paper: #FFFCF8;
  --cream: #F1E7DA;
  --sand:  #E8DACB;          /* latte */
  --gold:  #C4A46B;          /* soft gold */
  --gold-light: #E2CFA4;
  --gold-deep:  #7A5A38;     /* teks emas kecil — kontras ≥ 4.5:1 */
  --mocha: #6B4F3F;          /* mocha brown */
  --mocha-deep: #4A3428;
  --mocha-soft: #A38671;
  --ink:   #3B2A20;
  --muted: #76625A;
  --line:  #E6D8C4;
  --ok:    #4F7A55;
  --bad:   #A1463B;
  --shadow: 0 1px 2px rgba(80, 60, 30, .05), 0 12px 32px -12px rgba(80, 60, 30, .18);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Pinyon Script", "Cormorant Garamond", cursive;
  --arabic: "Amiri", "Traditional Arabic", serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.45, 0, .2, 1);
  --col: 480px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, #FFFFFF 0%, transparent 60%),
    var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; height: 100dvh; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.ico { width: 20px; height: 20px; flex: none; }
.eyebrow {
  margin: 0 0 .5rem;
  font: 400 .72rem/1.4 var(--sans);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.script { font-family: var(--script); font-style: normal; font-weight: 400; color: var(--gold); }
.title {
  margin: 0 0 1.25rem;
  font: 400 clamp(1.7rem, 6.4vw, 2.1rem)/1.15 var(--serif);
  letter-spacing: .01em;
}
.sub, .lead { color: var(--muted); margin: 0 auto 1.5rem; max-width: 34ch; }
.lead { font-size: 1.02rem; }
.hint { display: inline-flex; gap: .4rem; align-items: center; color: var(--muted); font-size: .85rem; margin: -.5rem 0 1.25rem; }
.hint .ico { width: 16px; height: 16px; color: var(--gold); }

/* Canvas efek kelopak */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* ---------------- Bunga ---------------- */
.bloom {
  transform-box: fill-box;
  transform-origin: center;
  animation: bloom 1.4s var(--ease-out) both;
  animation-delay: var(--d, 0s);
  animation-play-state: paused;
}
.is-blooming .bloom { animation-play-state: running; }
@keyframes bloom {
  0%   { transform: scale(.2) rotate(-60deg); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.corner, .frame { position: absolute; width: clamp(150px, 46vw, 230px); height: auto; z-index: 2; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.corner.wiggle, .frame.wiggle { animation: wiggle .7s var(--ease-out); }
@keyframes wiggle {
  0%,100% { rotate: 0deg; } 30% { rotate: -3deg; } 60% { rotate: 2deg; }
}

/* ===================== COVER ===================== */
.cover {
  position: fixed; inset: 0; z-index: 50;
  display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center; align-items: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
  background:
    radial-gradient(900px 500px at 50% 40%, #FFFFFF 0%, rgba(255,255,255,0) 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .45  0 0 0 0 .3  0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    var(--ivory);
  overflow: hidden;
  transition: opacity 1s var(--ease-soft), transform 1.2s var(--ease-soft), filter 1s;
}
.cover.is-leaving { opacity: 0; transform: scale(1.06); filter: blur(2px); pointer-events: none; }
.corner--tr { top: -18px; right: -22px; transform: scaleX(-1); }
.corner--bl { bottom: -18px; left: -22px; transform: scaleY(-1); }

.cover__head { align-self: end; text-align: center; padding-bottom: 1.5rem; position: relative; z-index: 3; }
.cover__names { margin: 0; font: 300 clamp(2.4rem, 11vw, 3.4rem)/1 var(--serif); letter-spacing: .04em; }
.cover__names i { font-family: var(--script); font-style: normal; color: var(--gold); font-size: .9em; padding: 0 .1em; }
.cover__hint {
  align-self: start; justify-self: center; margin: 1.75rem 0 0; display: inline-flex; gap: .55rem; align-items: center;
  min-height: 48px; padding: .7rem 1.35rem; border-radius: 999px; cursor: pointer; position: relative; z-index: 3;
  font: 400 .92rem/1 var(--sans); letter-spacing: .06em; color: var(--mocha-deep);
  background: rgba(255, 252, 246, .92); border: 1px solid var(--gold);
  box-shadow: 0 10px 24px -14px rgba(90, 70, 40, .55);
  animation: hintPulse 2.4s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.cover__hint .ico { color: var(--gold); width: 20px; height: 20px; animation: hintTap 2.4s ease-in-out infinite; }
.cover__hint:active { transform: scale(.97); }
.cover__hint:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.cover__hint.is-gone { opacity: 0; pointer-events: none; transition: opacity .3s; animation: none; }
@keyframes hintPulse { 0%, 100% { box-shadow: 0 10px 24px -14px rgba(90,70,40,.55), 0 0 0 0 rgba(176,141,87,.35); } 50% { box-shadow: 0 10px 24px -14px rgba(90,70,40,.55), 0 0 0 9px rgba(176,141,87,0); } }
@keyframes hintTap { 0%, 60%, 100% { transform: none; } 70% { transform: translateY(2px) scale(.9); } 80% { transform: none; } }
.envelope { cursor: pointer; }
@keyframes breathe { 50% { opacity: .45; } }

/* Amplop */
.envelope {
  --w: min(82vw, 340px);
  position: relative; width: var(--w); height: calc(var(--w) * .68);
  perspective: 1400px; z-index: 3;
  filter: drop-shadow(0 18px 30px rgba(90, 70, 40, .18));
}
.envelope__back, .envelope__pocket, .envelope__flap { position: absolute; inset: 0; border-radius: 6px; }
.envelope__back { background: linear-gradient(180deg, #EFE6D6, #F6F0E5); }
.envelope__letter {
  position: absolute; left: 7%; right: 7%; top: 6%; height: 88%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem;
  text-align: center; padding: 1rem;
  box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--gold-light);
  transition: transform 1s var(--ease-out);
}
.letter__divider { width: 70%; margin-bottom: .5rem; }
.letter__to { margin: 0; font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.letter__guest { margin: .15rem 0; font: 500 1.35rem/1.2 var(--serif); color: var(--ink); max-width: 100%; overflow-wrap: anywhere; }
.letter__note { margin: 0; font-size: .72rem; color: var(--muted); font-style: italic; }
.envelope__pocket {
  background: linear-gradient(170deg, #F8F3EA 0%, #EFE5D3 100%);
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 -1px 0 var(--line);
}
.envelope__pocket::after { /* garis lipatan tipis */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top right, transparent calc(50% - .6px), rgba(176,141,87,.35) 50%, transparent calc(50% + .6px)) left bottom / 50% 100% no-repeat,
    linear-gradient(to top left,  transparent calc(50% - .6px), rgba(176,141,87,.35) 50%, transparent calc(50% + .6px)) right bottom / 50% 100% no-repeat;
}
.envelope__flap {
  background: linear-gradient(180deg, #F3EBDD 0%, #E8DCC6 100%);
  clip-path: polygon(0 0, 100% 0, 50% 60%);
  transform-origin: 50% 0;
  transition: transform .9s var(--ease-soft);
  z-index: 2;
}
.envelope.is-open .envelope__flap { transform: rotateX(180deg); }
.envelope.is-flapped .envelope__flap { z-index: 0; }
.envelope.is-flapped .envelope__letter { transform: translateY(-46%); z-index: 1; }
.envelope.is-flapped .envelope__pocket { z-index: 2; }

/* Segel lilin */
.seal {
  position: absolute; left: 50%; top: 58%; z-index: 4;
  width: 76px; height: 76px; margin: -38px 0 0 -38px;
  border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease-out);
}
.seal:hover { transform: scale(1.05); }
.seal:active { transform: scale(.96); }
.seal__wax {
  position: absolute; inset: 0; display: grid; place-items: center;
  border-radius: 46% 54% 50% 50% / 52% 48% 52% 48%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255,248,226,.9) 0 6%, transparent 30%),
    radial-gradient(circle at 50% 50%, #CFAE73 0%, #B08D57 55%, #8C6B3A 100%);
  box-shadow: inset 0 0 0 5px rgba(140,107,58,.35), inset 0 -4px 8px rgba(80,55,20,.35), 0 4px 10px rgba(80,55,20,.3);
}
.seal__mono {
  font: 500 1.35rem/1 var(--serif); letter-spacing: .02em; color: #6E5229;
  text-shadow: 0 1px 0 rgba(255,240,210,.6), 0 -1px 0 rgba(70,45,15,.35);
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(110,82,41,.45);
}
.seal__ring {
  position: absolute; inset: -10px; border-radius: 50%;
  border: 1px solid var(--gold-light);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.seal.is-broken { animation: sealPop .55s var(--ease-out) forwards; pointer-events: none; }
.seal.is-broken .seal__ring { display: none; }
@keyframes sealPop {
  0% { transform: scale(1); } 35% { transform: scale(1.18) rotate(-8deg); }
  100% { transform: scale(0) rotate(40deg); opacity: 0; }
}

/* ===================== MAIN ===================== */
.main {
  position: relative; max-width: var(--col); margin: 0 auto; background: var(--ivory);
  box-shadow: 0 0 0 1px rgba(176,141,87,.12), 0 30px 80px -30px rgba(80,60,30,.25);
  overflow: hidden; min-height: 100dvh;
}
.sec { position: relative; padding: 88px 24px; text-align: center; }
.sec__divider { width: 220px; margin: 0 auto 1.5rem; }

/* Hero */
.hero { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding-top: 120px; padding-bottom: 120px; }
.frame--top { top: -24px; left: -26px; }
.frame--top.frame--mirror { left: auto; right: -26px; transform: scaleX(-1); }
.frame--bottom { bottom: -24px; left: -26px; transform: scaleY(-1); }
.frame--bottom.frame--mirror { left: auto; right: -26px; transform: scale(-1, -1); }
.hero__inner { position: relative; z-index: 3; }
.mono {
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.25rem;
  font: 400 1.1rem/1 var(--serif); letter-spacing: .1em; color: var(--gold-deep);
  padding: .55rem .9rem; border: 1px solid var(--gold-light); border-radius: 999px;
}
.mono i { width: 1px; height: 1em; background: var(--gold); }
.mono--tag { margin-top: 0; font-size: 1rem; letter-spacing: .06em; }   /* hashtag di atas nama (pengganti monogram) */
/* "Organised by Sarimbit Academy": label hitam-emas yang melayang di atas menu bawah,
   tetap terlihat walau halaman digulir. Hanya transform & opacity yang dianimasikan (ringan, tidak berkedip). */
.organiser {
  position: fixed; left: 0; right: 0; margin: 0 auto; width: max-content; max-width: calc(100% - 32px);
  bottom: calc(max(12px, env(safe-area-inset-bottom)) + 70px); z-index: 39;
  display: flex; align-items: center; gap: .5rem; padding: .4rem 1rem .4rem .85rem; border-radius: 999px;
  background: linear-gradient(135deg, #2B221C 0%, #14100D 100%); border: 1px solid #C9A86A;
  box-shadow: 0 0 0 3px rgba(201,168,106,.2), 0 12px 24px -10px rgba(20,16,13,.8);
  pointer-events: none; user-select: none; overflow: hidden;
  animation: orgIn .7s var(--ease-out) backwards, orgFloat 4s ease-in-out .7s infinite;
  will-change: transform; transition: opacity .3s;
}
.organiser i { font-style: normal; font-size: .75rem; color: #F3DDA2; animation: orgTwinkle 2s ease-in-out infinite; }
.organiser span { font: 600 .55rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: #D8B46A; }
.organiser b {
  font: 600 .95rem/1 var(--serif); letter-spacing: .06em; color: #F3DDA2;
  background: linear-gradient(90deg, #E2BE72 0%, #FFF3CF 25%, #D4A24C 50%, #FFF3CF 75%, #E2BE72 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: orgShine 3.5s linear infinite;
}
.organiser::after {                    /* kilau yang lewat pelan */
  content: ""; position: absolute; top: 0; bottom: 0; width: 35%; left: -50%;
  background: linear-gradient(100deg, transparent, rgba(255,236,180,.35), transparent); animation: vipShine 4s ease-in-out infinite;
}
.dock[hidden] ~ .organiser { display: none; }          /* muncul bersamaan dengan menu, setelah amplop dibuka */
body.is-typing .organiser, body:has(#rsvpForm :is(input, textarea, select):focus) .organiser { opacity: 0; }               /* tidak menutupi formulir saat mengetik */
@keyframes orgIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes orgFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes orgShine { to { background-position: -200% 0; } }
@keyframes orgTwinkle { 0%, 100% { opacity: .55; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .organiser, .organiser i, .organiser b, .organiser::after { animation: none; } }
.hero__names { margin: 0; font: 300 clamp(3rem, 15vw, 4.2rem)/.95 var(--serif); letter-spacing: .06em; text-transform: uppercase; }
.hero__names span { display: block; }
.hero__names .script { display: flex; align-items: center; justify-content: center; gap: .6rem; font-size: .5em; text-transform: none; letter-spacing: 0; margin: .35rem 0; }
.hero__names .script::before, .hero__names .script::after { content: ""; width: 42px; height: 1px; background: var(--gold-light); }
.hero__date { margin: 1.5rem 0 0; font: 400 1rem/1 var(--sans); letter-spacing: .4em; color: var(--muted); }

.scrollcue {
  position: absolute; left: 50%; bottom: calc(132px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: .5rem; text-decoration: none;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
  padding: 8px 12px; min-height: 44px;
}
.scrollcue i { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scrollcue i::after { content: ""; position: absolute; left: -1px; width: 3px; height: 10px; background: var(--gold); border-radius: 2px; animation: drip 1.8s var(--ease-soft) infinite; }
@keyframes drip { 0% { top: -10px; } 100% { top: 38px; } }

/* You are invited */
.invited { padding-top: 64px; }
.mandala-wrap { width: min(78vw, 300px); margin: 0 auto; position: relative; }
.mandala { width: 100%; height: auto; color: var(--gold); }
.mandala .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--ease-soft); transition-delay: var(--d, 0s); }
.invited.in .mandala .draw { stroke-dashoffset: 0; }
.mandala .dot { opacity: 0; transition: opacity .8s ease var(--d, 0s); }
.invited.in .mandala .dot { opacity: 1; }
.mandala-wrap { animation: spin 120s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.invited__title {
  margin: -200px auto 0; position: relative; z-index: 2; height: 200px;
  display: flex; flex-direction: column; justify-content: center;
  font: 400 clamp(1.45rem, 6.4vw, 1.85rem)/1.3 var(--serif); letter-spacing: .22em; text-transform: uppercase; color: var(--ink);
}
@media (min-width: 400px) { .invited__title { margin-top: -230px; height: 230px; } }
.invited__title::before { content: ""; position: absolute; inset: 18% 4%; z-index: -1; background: radial-gradient(closest-side, var(--ivory) 62%, rgba(251,248,242,0)); }
.invited__title .split { display: block; }
.invited__title .ch { display: inline-block; opacity: 0; transform: translateY(.6em); filter: blur(4px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out), filter .7s; }
.invited.in .invited__title .ch { opacity: 1; transform: none; filter: none; }
.invited__body { margin-top: 3rem; }
.bismillah { font: 400 1.7rem/1.6 var(--arabic); color: var(--gold-deep); margin: 0 0 .75rem; }
.salam { font: italic 400 1.1rem/1.4 var(--serif); color: var(--ink); margin: 0 0 1rem; }

/* Ayat */
.verse { padding-top: 24px; }
.verse__ar { font: 400 1.35rem/2 var(--arabic); color: var(--ink); margin: 0 0 1rem; direction: rtl; }
.verse__id { font: italic 400 1.08rem/1.6 var(--serif); color: var(--muted); max-width: 34ch; margin: 0 auto .75rem; }
.verse__src { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-deep); margin: 0; }

/* Kartu */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }

/* Mempelai — flip card */
.couple__grid { display: grid; gap: .75rem; justify-items: center; }
.flip { width: 100%; max-width: 340px; height: auto; border: 0; padding: 0; background: none; cursor: pointer; perspective: 1200px; -webkit-tap-highlight-color: transparent; }
.flip__inner { position: relative; display: grid; width: 100%; min-height: 250px; transform-style: preserve-3d; transition: transform .8s var(--ease-out); }
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face {
  position: relative; grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  padding: 1.5rem 1.35rem; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.flip__face::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(176,141,87,.25); border-radius: 12px; pointer-events: none; }
.flip__back { transform: rotateY(180deg); background: linear-gradient(160deg, #FFFDF9, #F6EEDF); }
.flip:hover .flip__front { border-color: var(--gold-light); }
.avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin-bottom: .35rem;
  background: radial-gradient(circle at 35% 30%, #FFFFFF, #F1E6D2); border: 1px solid var(--gold-light);
  font: 400 2rem/1 var(--serif); color: var(--gold-deep); }
.role { font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-deep); }
.pname { font: 500 1.45rem/1.2 var(--serif); }
.parents { font-size: .88rem; color: var(--muted); }
.fact { font: italic 400 1.2rem/1.45 var(--serif); max-width: 26ch; }
.flip__back .fact { font: 400 1.02rem/1.55 var(--serif); max-width: 34ch; margin-top: .3rem; }
.quote { font: italic 500 1.05rem/1.45 var(--serif); max-width: 30ch; margin-top: .55rem; padding-top: .7rem; border-top: 1px solid rgba(226,207,164,.4); color: var(--gold-light, #E2CFA4); }
.quote::before { content: "“"; } .quote::after { content: "”"; }
.quote:empty { display: none; }
.flip__again { font-size: .75rem; color: var(--muted); margin-top: .5rem; }
.amp { font-size: 3rem; line-height: 1; }

/* Quiz */
.quiz__card { padding: 1.5rem 1.25rem; text-align: left; min-height: 320px; display: flex; flex-direction: column; }
.quiz__intro { text-align: center; margin: auto 0; }
.quiz__intro p { color: var(--muted); margin: 0 auto 1.25rem; max-width: 30ch; }
.quiz__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.quiz__bar { height: 3px; background: var(--sand); border-radius: 3px; overflow: hidden; margin-bottom: 1.25rem; }
.quiz__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-light), var(--gold)); transition: width .5s var(--ease-out); }
.quiz__q { font: 500 1.35rem/1.3 var(--serif); margin: 0 0 1rem; }
.quiz__opts { display: grid; gap: .6rem; }
.opt {
  display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 52px; padding: .75rem 1rem;
  border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; cursor: pointer; text-align: left;
  font-size: .98rem; transition: border-color .2s, background-color .2s, transform .15s;
}
.opt:hover { border-color: var(--gold-light); }
.opt:active { transform: scale(.98); }
.opt b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 500 .8rem/1 var(--sans); border: 1px solid var(--line); color: var(--gold-deep); }
.opt.is-right { border-color: var(--ok); background: #F1F6EF; }
.opt.is-right b { background: var(--ok); border-color: var(--ok); color: #fff; }
.opt.is-wrong { border-color: var(--bad); background: #FBF0EE; animation: shake .4s; }
.opt.is-wrong b { background: var(--bad); border-color: var(--bad); color: #fff; }
.opt[disabled] { cursor: default; }
@keyframes shake { 25% { translate: -4px 0; } 75% { translate: 4px 0; } }
.quiz__reveal { margin: 1rem 0 0; padding: .85rem 1rem; border-left: 2px solid var(--gold); background: #FAF5EC; border-radius: 0 10px 10px 0; font: italic 400 1.05rem/1.5 var(--serif); color: var(--ink); animation: rise .5s var(--ease-out); }
.quiz__next { margin-top: auto; padding-top: 1.25rem; display: flex; justify-content: flex-end; }
.quiz__result { text-align: center; margin: auto 0; animation: rise .6s var(--ease-out); }
.quiz__score { font: 300 4rem/1 var(--serif); font-variant-numeric: lining-nums; color: var(--gold); margin: .25rem 0; }
.quiz__badge { font: 500 1.4rem/1.3 var(--serif); margin: 0 0 .5rem; }
.quiz__result p { color: var(--muted); margin: 0 auto 1.25rem; max-width: 30ch; }
.quiz__row { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Countdown & acara */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; max-width: 360px; margin: 0 auto 2.5rem; }
.countdown div { padding: .9rem .25rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.countdown b { display: block; font: 400 1.9rem/1 var(--serif); font-variant-numeric: lining-nums tabular-nums; }
.countdown span { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.countdown b.tick { animation: tick .45s var(--ease-out); }
@keyframes tick { 0% { transform: translateY(-6px); opacity: .3; } 100% { transform: none; opacity: 1; } }
.events { display: grid; gap: 1rem; }
.ev[hidden], .field[hidden] { display: none; }
.sess-note { display: flex; align-items: center; gap: .5rem; margin: 0 0 1.1rem; padding: .7rem .9rem; border-radius: 12px;
  background: var(--gold-soft, #F3EAD8); color: var(--ink, #3B2F27); font-size: .9rem; line-height: 1.4; }
.sess-note .ico { flex: none; width: 18px; height: 18px; color: var(--gold-deep, #8A6A3A); }
.sess-note[hidden] { display: none; }
/* Pemberitahuan untuk tamu yang berhalangan: ikuti akad & taujih secara online */
.online-note { margin: -.35rem 0 1.1rem; padding: .9rem 1rem; border-radius: 14px; background: #FAF5EC; border: 1px solid #E6D3AA;
  font-size: .88rem; line-height: 1.5; color: var(--ink, #3B2F27); animation: rise .4s var(--ease-out); }
.online-note[hidden] { display: none; }
.online-note p { margin: 0 0 .4rem; }
.online-note p:last-child { margin-bottom: 0; }
.online-note b { font-weight: 500; color: var(--mocha-deep, #4A3428); }
.online-note__title { font: 500 1.08rem/1.3 var(--serif); color: var(--mocha-deep, #4A3428); }
.online-note a { color: var(--gold-deep, #8A6A3A); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.online-note--card { margin: 0 0 1.25rem; text-align: left; }
.online-note__save-hint { font-size: .84rem; }
.online-note__save { margin-top: .55rem; width: 100%; min-height: 44px; font-size: .9rem; }
.online-note__save .ico { width: 18px; height: 18px; }
.ev { padding: 1.75rem 1.25rem; position: relative; }
.ev__ico { width: 52px; height: 52px; margin: 0 auto .75rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold-light); color: var(--gold); }
.ev__ico .ico { width: 26px; height: 26px; }
.ev h3 { margin: 0 0 .5rem; font: 500 1.6rem/1.2 var(--serif); }
.ev__meta { display: grid; gap: .35rem; justify-items: center; margin: 0 0 1.25rem; color: var(--muted); font-size: .95rem; }
.ev__meta span { display: inline-flex; gap: .4rem; align-items: center; }
.ev__meta .ico { width: 16px; height: 16px; color: var(--gold); }
.ev__place { font: 500 1.1rem/1.3 var(--serif); color: var(--ink); }
.ev__actions { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.venue { margin-top: 1rem; padding: 0; overflow: hidden; color: var(--ink); text-align: center; }
.venue[hidden] { display: none; }
.venue__map { position: relative; aspect-ratio: 4 / 3; background: #EFE6D8; border-bottom: 1px solid var(--gold-light); }
.venue__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: sepia(.18) saturate(.9); }
.venue__body { padding: 1.4rem 1.25rem 1.6rem; }
.band .venue .eyebrow, .venue__body .eyebrow { margin: 0 0 .35rem; color: var(--gold); }
.venue__name { margin: 0; font: 500 1.6rem/1.2 var(--serif); color: var(--mocha-deep); }
.venue__area { margin: .2rem 0 .6rem; font: 500 1rem/1.3 var(--serif); color: var(--ink); }
.venue__addr { margin: 0 auto 1.2rem; max-width: 34ch; color: var(--muted); font-size: .9rem; line-height: 1.5; }
@media (min-width: 720px) { .venue__map { aspect-ratio: 16 / 9; } }

/* Tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .65rem 1.25rem; border-radius: 999px; cursor: pointer; text-decoration: none;
  font: 400 .88rem/1 var(--sans); letter-spacing: .08em; border: 1px solid var(--gold);
  transition: background-color .2s, color .2s, transform .15s, box-shadow .2s;
}
.btn .ico { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn--gold { background: linear-gradient(180deg, #BC9A63, #A07E4A); color: #FFFFFF; border-color: #9A7843; box-shadow: 0 6px 18px -8px rgba(140,107,58,.6); }
.btn--gold:hover { background: linear-gradient(180deg, #B08D57, #8C6B3A); }
.btn--ghost { background: transparent; color: var(--gold-deep); }
.btn--ghost:hover { background: #FAF3E6; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn.is-loading .btn__label::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: .6rem; vertical-align: -2px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spinner .8s linear infinite; }
@keyframes spinner { to { transform: rotate(360deg); } }
.linkbtn { background: none; border: 0; padding: .5rem; min-height: 44px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: .88rem; }

/* Form RSVP */
.form { padding: 1.5rem 1.25rem; text-align: left; }
.field { margin: 0 0 1.1rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend, .field .label { display: block; margin-bottom: .4rem; font-size: .86rem; font-weight: 400; color: var(--ink); padding: 0; }
.field small { color: var(--muted); font-weight: 300; }
input[type=text], input[type=tel], textarea, .field select {
  width: 100%; padding: .8rem .95rem; min-height: 48px; border-radius: 12px;
  border: 1px solid var(--line); background: #FFFFFF; font: 400 16px/1.4 var(--sans); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 92px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.4rem;
  background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23B08D57' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right .95rem center;
}
.field select:invalid { color: var(--muted); }
input:focus, textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,141,87,.18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad); }
.err { margin: .35rem 0 0; font-size: .8rem; color: var(--bad); min-height: 0; }
.err:empty { display: none; }
.err--form { text-align: center; }
.counter { margin: .25rem 0 0; text-align: right; font-size: .72rem; color: var(--muted); }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: .4rem; }
.seg label { margin: 0; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span {
  display: grid; place-items: center; text-align: center; min-height: 48px; padding: .4rem; border-radius: 12px;
  border: 1px solid var(--line); background: #FFFFFF; font-size: .84rem; line-height: 1.25; transition: all .2s;
}
.seg input:checked + span { border-color: var(--gold); background: #FAF3E6; color: var(--gold-deep); font-weight: 400; box-shadow: inset 0 0 0 1px var(--gold); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.when-coming { transition: opacity .3s; }
.when-coming.is-off { opacity: .35; pointer-events: none; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: #FFFFFF; }
.stepper button { width: 48px; height: 48px; border: 0; background: none; cursor: pointer; font-size: 1.3rem; color: var(--gold-deep); border-radius: 50%; }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper output { min-width: 2.5rem; text-align: center; font: 500 1.25rem/1 var(--sans); font-variant-numeric: lining-nums tabular-nums; }

/* Tiket */
.ticket-wrap { animation: rise .7s var(--ease-out); }
.ticket { position: relative; padding: 1.75rem 1.25rem 1.5rem; overflow: hidden; }
.ticket::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(176,141,87,.35); border-radius: 12px; pointer-events: none; }
.ticket__names { font: 400 1.5rem/1.2 var(--serif); margin: .25rem 0 1rem; }
.ticket__qr { width: 210px; height: 210px; margin: 0 auto; padding: 12px; background: #FFFFFF; border-radius: 12px; border: 1px solid var(--line); }
.ticket__qr img, .ticket__qr canvas { width: 100% !important; height: 100% !important; }
.ticket__code { font: 500 1.1rem/1 var(--sans); letter-spacing: .25em; margin: .85rem 0 .2rem; color: var(--gold-deep); }
.ticket__guest { font: 500 1.3rem/1.3 var(--serif); margin: .75rem 0 .25rem; }
.ticket__meta { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin: 0 0 1rem; }
.ticket__note { font-size: .85rem; color: var(--muted); margin: 0 auto 1.25rem; max-width: 30ch; }
.ticket__cut { border-top: 1px dashed var(--gold-light); margin: 1.25rem -1.25rem; position: relative; }
.ticket__cut::before, .ticket__cut::after { content: ""; position: absolute; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: var(--ivory); border: 1px solid var(--line); }
.ticket__cut::before { left: -12px; } .ticket__cut::after { right: -12px; }
.ticket__actions { display: grid; gap: .5rem; }
.badge-in { display: inline-flex; gap: .35rem; align-items: center; padding: .35rem .75rem; border-radius: 999px; background: #EEF5EC; color: var(--ok); font-size: .8rem; }
.badge-in .ico { width: 14px; height: 14px; }

/* Ucapan */
.wishes__list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .75rem; text-align: left; max-height: 520px; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.wish { padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; animation: rise .5s var(--ease-out) both; }
.wish__head { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; margin-bottom: .25rem; }
.wish__name { font: 500 1.1rem/1.2 var(--serif); }
.wish__tag { font-size: .7rem; letter-spacing: .08em; color: var(--gold-deep); white-space: nowrap; }
.wish p { margin: 0; color: var(--muted); font-size: .94rem; overflow-wrap: anywhere; }
.wish time { display: block; margin-top: .35rem; font-size: .72rem; color: #9A9086; }
.wishes__empty { text-align: center; color: var(--muted); font-style: italic; padding: 1rem; }

/* Penutup */
.closing { padding-top: 64px; padding-bottom: 300px; }
.closing__names { font: 300 2.6rem/1.1 var(--serif); margin: .25rem 0 .5rem; letter-spacing: .04em; }
.closing__families { margin: 1.4rem auto 1.6rem; max-width: 30rem; }
.closing__fam-label { margin: 0 0 .7rem; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.closing__fam { margin: 0; font: 400 1.12rem/1.45 var(--serif); color: #F6EEE2; text-wrap: balance; }
.closing__fam-amp { display: block; margin: .35rem 0; font: 400 1.5rem/1 var(--script); color: var(--gold-light); }
.hashtag { font-size: .82rem; letter-spacing: .14em; color: var(--gold-deep); margin: 0; }
.foot { text-align: center; font-size: .72rem; color: #9A9086; letter-spacing: .1em; padding: 0 16px calc(150px + env(safe-area-inset-bottom)); }
.foot p { margin: 0 0 .5rem; }
.foot__credit { margin-top: 1.1rem !important; padding-top: 1rem; border-top: 1px solid rgba(191,169,147,.25); }
.foot__credit b { font-weight: 500; color: #E2CFA4; }
.foot__team span { display: block; line-height: 1.7; }
.foot__team i { font-style: normal; opacity: .7; }
.foot__team i::before { content: "· "; }

/* Dock & musik */
.dock {
  position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translate3d(-50%, 0, 0); z-index: 40;
  will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  display: flex; gap: 2px; padding: 5px; border-radius: 999px;
  /* latar padat tanpa blur: efek kaca buram di atas bunga 3D yang terus bergerak membuat menu berkedip di laptop */
  background: rgba(255, 253, 249, .97);
  border: 1px solid rgba(176,141,87,.25); box-shadow: 0 10px 30px -10px rgba(80,60,30,.35);
  animation: dockRise .6s var(--ease-out);
}
@keyframes dockRise { from { opacity: 0; transform: translate3d(-50%, 10px, 0); } to { opacity: 1; transform: translate3d(-50%, 0, 0); } }
.dock a { display: grid; justify-items: center; gap: 1px; min-width: 56px; min-height: 48px; padding: 6px 8px 4px; border-radius: 999px; text-decoration: none; color: var(--muted); transition: background-color .25s, color .25s; }
.dock a { -webkit-tap-highlight-color: transparent; }   /* HP: tanpa kilatan kotak abu-abu saat ikon disentuh */
.dock a:active, .dock .music:active { transform: scale(.94); }
.dock a span { font-size: .6rem; letter-spacing: .06em; }
.dock a .ico { width: 20px; height: 20px; }
.dock a.is-active { background: #F5ECDC; color: var(--gold-deep); }
/* Tombol musik ada di dalam menu bawah, bentuknya sama dengan item menu */
.dock .music {
  display: grid; justify-items: center; align-content: center; gap: 1px; min-width: 56px; min-height: 48px; padding: 6px 8px 4px;
  border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; cursor: pointer;
  transition: background-color .25s, color .25s; -webkit-tap-highlight-color: transparent;
}
.dock .music[hidden] { display: none; }
.dock .music span { font-size: .6rem; letter-spacing: .06em; }
.dock .music .ico { width: 20px; height: 20px; }
.dock .music.is-playing { color: var(--gold-deep); }
.dock .music:focus-visible, .dock a:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
@media (min-width: 700px) { .event__bg { height: 560px; } }
@media (max-width: 400px) {
  .dock { gap: 0; padding: 4px; }
  .dock a, .dock .music { min-width: 0; width: 52px; padding: 6px 2px 4px; }
}
@media (max-width: 350px) {
  .dock a, .dock .music { width: 47px; }
  .dock a span, .dock .music span { font-size: .55rem; letter-spacing: .02em; }
}
.music.is-playing .ico { animation: spin 4s linear infinite; will-change: rotate; }

.toast {
  position: fixed; left: 50%; top: max(16px, env(safe-area-inset-top)); transform: translate(-50%, -150%); z-index: 70;
  max-width: calc(100vw - 32px); padding: .7rem 1.1rem; border-radius: 12px; font-size: .88rem;
  background: var(--ink); color: #FFFDF9; box-shadow: var(--shadow); transition: transform .4s var(--ease-out);
}
.toast.is-show { transform: translate(-50%, 0); }

/* Reveal saat scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

@media (min-width: 560px) {
  body { padding: 0; }
  .sec { padding-left: 40px; padding-right: 40px; }
}

/* ===================== AKSEN MOCHA ===================== */
.envelope__back { background: linear-gradient(180deg, #5A4134 0%, #6B4F3F 60%, #7A5D4B 100%); }
.envelope.is-flapped .envelope__flap { background: linear-gradient(0deg, #5A4134, #765847); }
.envelope__letter { box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--gold-light), 0 -6px 20px -8px rgba(40,25,15,.4); }
.cover__names, .hero__names, .closing__names { color: var(--mocha-deep); }
.mono { color: var(--mocha); border-color: var(--gold); background: rgba(255,255,255,.5); }
.title { color: var(--mocha-deep); }

/* Pita mocha: acara & penutup */
.band {
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(226,207,164,.14), transparent 70%),
    linear-gradient(180deg, #5E4537 0%, #4A3428 100%);
  color: #F6EEE2;
}
.band .eyebrow { color: var(--gold-light); }
.band .title, .band .closing__names { color: #FBF3E6; }
.band .lead, .band .sub, .band .salam { color: #E6D8C8; }
.band .hashtag { color: var(--gold-light); }
.band .script { color: var(--gold-light); }
.band .countdown div { background: rgba(255,248,236,.06); border-color: rgba(226,207,164,.28); }
.band .countdown b { color: var(--gold-light); }
.band .countdown span { color: #D9C8B5; }
.band .ev { color: var(--ink); }
.band::before, .band::after { content: ""; position: absolute; left: 0; right: 0; height: 28px; pointer-events: none; }
.band::before { top: 0; background: linear-gradient(var(--ivory), rgba(251,247,241,0)); opacity: .0; }
.event.band { padding-top: 96px; }
.ev__ico { color: var(--mocha); border-color: var(--gold); background: #FBF4E8; }
.ev h3 { color: var(--mocha-deep); }
.closing.band { color: #F6EEE2; }
.closing.band + .foot { background: #4A3428; color: #BFA993; padding-top: 0; }
.main:has(.closing.band) { background: var(--ivory); }

/* Tombol mocha */
.btn--gold { background: linear-gradient(180deg, #D2B37A, #B8955C); border-color: #AE8B53; color: #FFFFFF; text-shadow: 0 1px 0 rgba(90,60,25,.25); }
.btn--gold:hover { background: linear-gradient(180deg, #C4A46B, #A9864F); }
.btn--mocha { background: linear-gradient(180deg, #765847, #5A4134); border-color: #4A3428; color: #FBF3E6; box-shadow: 0 8px 20px -10px rgba(74,52,40,.7); }
.btn--mocha:hover { background: linear-gradient(180deg, #6B4F3F, #4A3428); }
.btn--ghost { color: var(--mocha); border-color: var(--mocha-soft); }
.btn--ghost:hover { background: #F6EDE2; }
.band .btn--ghost { color: var(--gold-light); border-color: rgba(226,207,164,.55); }
.band .btn--ghost:hover { background: rgba(255,248,236,.08); }
.band .ev .btn--ghost { color: var(--mocha); border-color: var(--mocha-soft); }
.band .ev .btn--ghost:hover { background: #F6EDE2; }

.seg input:checked + span { border-color: var(--mocha); background: #F4EAE0; color: var(--mocha-deep); box-shadow: inset 0 0 0 1px var(--mocha); }
.stepper button { color: var(--mocha); }
.avatar { color: var(--mocha); background: radial-gradient(circle at 35% 30%, #FFFFFF, #EFE2D2); }
.flip__back { background: linear-gradient(160deg, #6B4F3F, #4A3428); border-color: #4A3428; color: #F6EEE2; }
.flip__back::before { border-color: rgba(226,207,164,.35); }
.flip__back .role { color: var(--gold-light); }
.flip__back .flip__again { color: #D9C8B5; }
.amp { color: var(--gold); }
.quiz__bar i { background: linear-gradient(90deg, var(--gold-light), var(--mocha)); }
.opt b { color: var(--mocha); }
.quiz__reveal { border-left-color: var(--mocha); background: #F6EDE3; }
.quiz__score { color: var(--mocha); }
.ticket { padding-top: 0; }
.ticket::after { content: ""; display: block; }
.ticket__band { margin: 0 -1.25rem 1.5rem; padding: 1.1rem 1rem .9rem; background: linear-gradient(180deg, #6B4F3F, #4A3428); color: #FBF3E6; border-radius: 17px 17px 0 0; }
.ticket__band .eyebrow { color: var(--gold-light); margin: 0; }
.ticket__band .ticket__names { color: #FBF3E6; margin: .2rem 0 0; }
.ticket::before { top: auto; height: calc(100% - 92px); }
.ticket__code { color: var(--mocha); }
.dock a.is-active { background: var(--mocha); color: #FBF3E6; }
.wish { border-left: 3px solid var(--gold-light); }
.wish__name { color: var(--mocha-deep); }
.verse__src, .eyebrow { color: var(--gold-deep); }
.letter__guest { color: var(--mocha-deep); }

/* ===================== BUNGA 3D ===================== */
.flora3d { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: hidden; }
.flora3d > canvas { position: absolute; display: block; }
.flora3d.spill { overflow: visible; clip-path: inset(-60vh 0 -60vh 0); }
.cover .flora3d { z-index: 1; }
.closing .flora3d { top: auto; bottom: 0; }
.has-3d > svg.corner, .has-3d > svg.frame { display: none; }
.closing > .reveal { position: relative; z-index: 3; }
/* bunga di belakang konten bagian (kartu menutupi sebagian → efek berlapis) */
.flora-bg { isolation: isolate; }
.flora-bg > .flora3d { z-index: -1; }
/* hujan kelopak 3D di atas konten, di bawah menu */
.flora-rain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 35; display: block; transition: opacity .4s ease; }
body.is-typing .flora-rain { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .mandala-wrap { animation: none; }
}

/* HP: efek yang mahal digambar ulang tiap scroll diganti versi ringan */
@media (pointer: coarse), (max-width: 819px) {
  .dock { background: rgba(255, 253, 249, .97); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .cover.is-leaving { filter: none; }
}

/* Kartu status kehadiran (pengganti tiket QR) */
.status { display: flex; gap: .75rem; align-items: flex-start; text-align: left; margin: 1rem 0 .9rem; padding: .9rem 1rem; border-radius: 14px; }
.status__ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.status__ico .ico { width: 20px; height: 20px; }
.status__txt b { display: block; font: 500 1rem/1.3 var(--sans); }
.status__txt small { display: block; margin-top: .2rem; font-size: .83rem; line-height: 1.45; color: var(--muted); }
.status--wait { background: #FAF3E6; border: 1px solid #EADBBD; }
.status--wait .status__ico { background: #F1E3C6; color: var(--gold-deep, #8A6A3A); animation: breathe 2.6s ease-in-out infinite; }
.status--wait b { color: var(--mocha-deep); }
.status--in { background: #EAF4EC; border: 1px solid #B9D8BF; }
.status--in .status__ico { background: #3F7A4A; color: #fff; }
.status--in b { color: #2F5E38; }
.ticket__meta-line { margin: 0; font-size: .88rem; color: var(--muted); text-wrap: balance; }
.ticket__code-sm { margin: 0 0 1rem; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.ticket__code-sm b { font-weight: 500; letter-spacing: .12em; color: var(--mocha); }
@media (prefers-reduced-motion: reduce) { .cover__hint, .cover__hint .ico, .status--wait .status__ico { animation: none; } }

/* Susunan acara (rundown) */
.rundown { margin-top: 1rem; padding: 1.6rem 1.25rem 1.4rem; color: var(--ink); text-align: left; }
.rundown[hidden] { display: none; }
.rundown .eyebrow, .band .rundown .eyebrow { margin: 0 0 .3rem; text-align: center; color: var(--gold); }
.rundown__title { margin: 0 0 1.2rem; text-align: center; font: 500 1.6rem/1.2 var(--serif); color: var(--mocha-deep); }
.rundown__list { list-style: none; margin: 0 auto; padding: 0; max-width: 30rem; position: relative; }
.rundown__list::before { content: ""; position: absolute; left: 7px; top: .55rem; bottom: .55rem; width: 1px; background: linear-gradient(var(--gold-light), var(--gold), var(--gold-light)); }
.rundown__list li { position: relative; display: grid; gap: .15rem; padding: 0 0 1.05rem 1.9rem; }
.rundown__list li:last-child { padding-bottom: 0; }
.rundown__list li::before { content: ""; position: absolute; left: 1px; top: .3rem; width: 13px; height: 13px; border-radius: 50%; background: #FBF4E8; border: 2px solid var(--gold); box-sizing: border-box; }
.rundown__time { font: 500 .74rem/1.2 var(--sans); letter-spacing: .14em; color: var(--gold-deep, #8A6A3A); font-variant-numeric: lining-nums tabular-nums; }
.rundown__what b { display: block; margin-top: .1rem; font: 500 1.28rem/1.25 var(--serif); letter-spacing: .005em; color: var(--mocha-deep); }
.rundown__what small { display: block; margin-top: .15rem; font: italic 400 1.04rem/1.35 var(--serif); color: var(--gold-deep, #8A6A3A); }

/* QR di kartu status */
.ticket__qr { margin: 1rem auto .25rem; }

/* Tulisan di atas bunga latar tetap terbaca: diberi cahaya lembut sewarna latar */
.sec:not(.band) > .eyebrow, .sec:not(.band) > .title, .sec:not(.band) > .sub, .sec:not(.band) > .lead, .sec:not(.band) > .hint {
  text-shadow: 0 0 4px var(--ivory, #FBF7F1), 0 0 10px var(--ivory, #FBF7F1), 0 0 18px var(--ivory, #FBF7F1);
}
.band > .eyebrow, .band > .title, .band > .sub, .band > .lead, .closing .reveal > p, .closing .closing__families p {
  text-shadow: 0 0 4px #4A3428, 0 0 12px #4A3428, 0 0 20px rgba(74,52,40,.85);
}

/* Foto pengisi acara di rundown (setengah badan, bingkai lengkung) */
.rundown__who { display: flex; align-items: flex-end; gap: .75rem; margin-top: .65rem; }
.rundown__speaker { display: grid; gap: .25rem; padding-bottom: .55rem; min-width: 0; }
.rundown__speaker-label { font: 500 .6rem/1.35 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.rundown__speaker-name { font: 600 clamp(1.12rem, 4.4vw, 1.42rem)/1.15 var(--serif); color: var(--mocha-deep); overflow-wrap: anywhere; }
.rundown__speaker-name::after { content: ""; display: block; width: 36px; height: 1px; margin-top: .45rem; background: var(--gold); }
.rundown__photo {
  flex: none; width: clamp(104px, 31vw, 150px); height: auto; aspect-ratio: 1; object-fit: contain; object-position: 50% 100%;
  border-radius: 999px 999px 16px 16px; padding: 8px 4px 0;
  background: radial-gradient(120% 90% at 50% 20%, #FFFDF8 0%, #F3E8D4 70%, #E9D9BC 100%);
  border: 1px solid var(--gold-light); box-shadow: 0 10px 22px -14px rgba(90,60,30,.7);
}

/* Foto Anaya Hotel di belakang Save the Date & hitung mundur, memudar ke warna cokelat */
.event.band { position: relative; isolation: isolate; }
.event__bg {
  position: absolute; left: 0; right: 0; top: 0; height: 470px; z-index: -2; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(50,34,25,.5) 0%, rgba(58,40,30,.42) 45%, rgba(78,55,43,.85) 82%, #57402F 100%),
    url("../img/hotel-anaya.jpg") center 62% / cover no-repeat;
}
.event__credit { position: absolute; top: 14px; right: 16px; margin: 0; z-index: 1; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(246,238,226,.6); }
.event.band .countdown div { background: rgba(40,28,20,.35); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Foto ballroom di atas peta lokasi */
.venue__photo { position: relative; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: #E9DFCF; }
.venue__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.venue__photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1rem .7rem; text-align: left;
  font: 500 1rem/1.2 var(--serif); letter-spacing: .02em; color: #FFF8EC;
  background: linear-gradient(transparent, rgba(40,28,20,.78));
}

/* ---------- Tamu VIP: hitam-emas supaya terlihat istimewa ---------- */
.vip-badge {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .9rem; padding: .42rem 1.1rem; border-radius: 999px;
  font: 600 .72rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase;
  color: #F3DDA2; background: linear-gradient(135deg, #2B221C 0%, #14100D 100%);
  border: 1px solid #C9A86A; box-shadow: 0 0 0 3px rgba(201,168,106,.18), 0 10px 24px -12px rgba(20,16,13,.8);
  position: relative; overflow: hidden;
}
.vip-badge[hidden] { display: none; }
.vip-badge--hero { display: flex; width: max-content; max-width: 100%; margin: 1rem auto .6rem; }
.vip-badge--hero[hidden] { display: none; }
.vip-badge span { color: #D8B46A; letter-spacing: 0; }
.vip-badge::after {                    /* kilau emas yang lewat pelan */
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%;
  background: linear-gradient(100deg, transparent, rgba(255,236,180,.45), transparent); animation: vipShine 3.2s ease-in-out infinite;
}
@keyframes vipShine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.letter__vip { margin: .15rem 0 .1rem; font: 600 .62rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #8A6A3A; }
.letter__vip[hidden] { display: none; }
body.is-vip .envelope__letter { box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 8px #C9A86A, 0 -6px 20px -8px rgba(40,25,15,.4); }
body.is-vip .seal__wax { box-shadow: 0 0 0 3px #14100D, 0 0 0 5px #C9A86A, 0 10px 24px -8px rgba(20,16,13,.7); }

/* Kartu status tamu VIP */
.ticket--vip { border: 1px solid #C9A86A; box-shadow: 0 0 0 4px rgba(201,168,106,.15), var(--shadow); }
.ticket--vip .ticket__band { background: linear-gradient(160deg, #2B221C 0%, #14100D 100%); border-bottom: 1px solid #C9A86A; }
.ticket--vip .ticket__band .eyebrow { color: #D8B46A; }
.ticket__vip { display: inline-block; margin: 0 0 .45rem; padding: .25rem .8rem; border-radius: 999px; border: 1px solid #C9A86A;
  font: 600 .66rem/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: #F3DDA2; }
.ticket--vip .ticket__qr { border-color: #C9A86A; box-shadow: 0 0 0 3px rgba(201,168,106,.2); }
@media (prefers-reduced-motion: reduce) { .vip-badge::after { animation: none; display: none; } }

/* ---------- RSVP: kendaraan & pasangan ---------- */
.when-hadir[hidden], .partner-name[hidden], .vehicle-other[hidden] { display: none; }
.vehicle-other { padding: .9rem .9rem .75rem; margin-top: -.35rem; border-radius: 14px; background: #FAF5EC; border: 1px dashed #DCC89E; animation: rise .4s var(--ease-out); }
.field legend small, .field label small { color: var(--muted); font-weight: 300; }
.fhint { display: block; margin: .4rem 0 0; font-size: .78rem; line-height: 1.45; color: var(--muted); }
.partner-name { padding: .9rem .9rem .75rem; margin-top: -.35rem; border-radius: 14px; background: #FAF5EC; border: 1px dashed #DCC89E; animation: rise .4s var(--ease-out); }
.seg span { text-align: center; }

/* Dua kartu QR (suami & istri) */
.ticket-pair { display: grid; gap: 1rem; }
.ticket__desk { display: inline-flex; align-items: center; gap: .4rem; margin: .55rem 0 0; padding: .3rem .85rem; border-radius: 999px;
  font: 500 .7rem/1.2 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.ticket__desk--L { background: #E8EEF3; color: #2F4A5E; border: 1px solid #B9CAD8; }
.ticket__desk--P { background: #F6E9EC; color: #7A3E4D; border: 1px solid #E0BCC5; }
.ticket__shared { display: grid; gap: .5rem; margin-top: .25rem; }
.ticket__shared .linkbtn { justify-self: center; }
