/* ==========================================================================
   MERIAH! — Poster Undangan Ulang Tahun (birthday-id-party-poster) · styles.css
   --------------------------------------------------------------------------
   Estetika: poster pesta yang berani — warna tinggi, tipografi display besar,
   confetti, streamer, badge umur ala stiker. Kustomisasi warna lewat variabel
   CSS (:root) di bawah.

   House UX: SCROLL ALAMI. Semua section adalah "scene" setinggi satu layar
   yang bertumpuk dalam aliran dokumen normal — tanpa app shell, tanpa
   pembajakan wheel/touch. Header tetap (pil desktop · burger mobile), dock
   melayang dan scroll-spy dibangun main.js; seluruh geometri chrome bersumber
   dari token --header-h / --dock-h sehingga tidak pernah meleset.
   --------------------------------------------------------------------------
   Konvensi:
     · Geometri mengalir dari token: --header-h mengunci tinggi header; cover
       cap & semua offset anchor diturunkan darinya.
     · Tanpa JS dokumen terbaca sebagai halaman bertumpuk biasa; dock, burger,
       pil & progress tidak pernah muncul.
     · prefers-reduced-motion dan @media print didukung. Print memulihkan
       semua yang disembunyikan audit empty-state (.is-empty) & cover-fit
       (.fit-hidden).
   ========================================================================== */

/* ---------- Token & palet ---------- */
:root {
  --c-pink: #ff2e63;
  --c-yellow: #ffd60a;
  --c-purple: #7b2ff7;
  --c-purple-deep: #2b0a5e;
  --c-ink: #1d0b33;
  --c-white: #fffdf7;

  --font-display: 'Anton', 'Arial Black', Impact, sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 20px;
  --shadow-pop: 0 10px 30px rgba(29, 11, 51, .28);
  --shadow-soft: 0 6px 18px rgba(29, 11, 51, .14);

  /* Token geometri — tinggi header DIKUNCI di sini dan ditegakkan pada
     header sungguhan di bawah; cover cap dan offset anchor diturunkan
     darinya. Chrome nyata tidak boleh meleset dari token. */
  --header-h: calc(56px + env(safe-area-inset-top, 0px));
  --dock-h: 62px;

  /* Satuan ukur sampul: mengikuti sisi terpendek viewport tapi BEKU begitu
     sisi itu lewat ~650px, sehingga ponsel menengah & desktop berhenti
     menskalakan dan tidak pernah kehilangan konten sampul. */
  --su: min(1vmin, 6.5px);

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
}

/* ---------- Reset & dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth; /* lompatan anchor meluncur; reduced-motion mematikan */
  /* Lompatan anchor / deep-link mendarat tepat di bawah header tetap. */
  scroll-padding-top: calc(var(--header-h) + 10px);
}

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--c-white);
  background: var(--c-purple-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: var(--header-h); /* memberi jalan bagi header tetap */
  overflow-x: hidden;
}

/* Tanpa JS: dokumen polos — header ikut mengalir, tanpa ganti rugi atas. */
html:not(.js) body { padding-top: 0; }

[hidden] { display: none !important; }

/* Utilitas audit empty-state: hanya tersembunyi secara VISUAL — tetap ada di
   DOM dan dipulihkan saat print (lihat blok @media print di akhir). */
.is-empty { display: none !important; }

/* Utilitas pangkas cover-fit: dekorasi yang disembunyikan initCoverFit()
   agar isi sampul selalu muat satu layar. Tidak ada yang dihapus dari DOM;
   print memulihkan tiap lapisan yang dipangkas. */
.fit-hidden { display: none !important; }

/* Squeeze pamungkas saat sampul terpangkas masih meluber sedikit piksel:
   rapatkan napas (margin) alih-alih membiarkan konten terpotong. */
.cover-squeeze .cover-title { margin-top: 0; }
.cover-squeeze .age-badge { margin-top: -.9rem; }
.cover-squeeze .cover-photo { margin-top: .7rem; }
.cover-squeeze .cover-meta { margin-bottom: 1.1rem; }
.cover-squeeze .host-line { margin-top: .9rem; }

h1, h2, h3 { margin: 0 0 .35em; line-height: 1.15; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 5.5vw, 2.1rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 3px; }
::selection { background: rgba(255, 46, 99, .45); }

.skip-link {
  position: fixed;
  top: calc(-64px + var(--safe-t));
  left: 12px;
  z-index: 300;
  padding: 10px 16px;
  background: var(--c-pink);
  color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: var(--safe-t); }

/* Scrollbar kustom untuk area yang mungkin menggulir internal — senada
   palet: bilah ramping pink→kuning. (Firefox memakai shorthand
   scrollbar-color.) */
.panel-cover, .mobile-menu__scroller {
  scrollbar-width: thin;
  scrollbar-color: var(--c-pink) transparent;
}
.panel-cover::-webkit-scrollbar,
.mobile-menu__scroller::-webkit-scrollbar { width: 8px; height: 8px; }
.panel-cover::-webkit-scrollbar-track,
.mobile-menu__scroller::-webkit-scrollbar-track { background: transparent; }
.panel-cover::-webkit-scrollbar-thumb,
.mobile-menu__scroller::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--c-pink), var(--c-yellow));
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* ==========================================================================
   SCENE — tiap section adalah "scene" satu layar penuh dalam aliran normal.
   Konten lebih tinggi? Scene tumbuh dan halaman menggulir secara native.
   ========================================================================== */
.doc { position: relative; }

.panel {
  position: relative;
  /* Scene satu layar penuh: yang lebih pendek bernapas selebar viewport,
     yang lebih tinggi tumbuh — dan section akhir selalu bisa menggulir cukup
     jauh untuk mendarat tepat di bawah header. */
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  flex-direction: column;
  overflow-x: hidden; /* dekorasi yang mencuat tidak boleh menggeser halaman */
}

.panel-inner {
  width: min(720px, 100%);
  margin: auto; /* menengahkan vertikal saat ada ruang sisa */
  padding: clamp(2.5rem, calc(var(--su) * 8), 4.5rem) clamp(1.25rem, 5vw, 2.5rem) clamp(2.5rem, calc(var(--su) * 7), 4rem);
}

/* Sisa ruang dock melayang: konten ujung halaman tak boleh tertutup chrome
   tetap (§nothing-cut-off). */
body.has-dock .panel-inner {
  padding-bottom: calc(clamp(2.5rem, calc(var(--su) * 7), 4rem) + var(--dock-h) + 14px + var(--safe-b));
}

.panel-inner-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .74rem;
  font-weight: 700;
  padding: .4rem .85rem;
  border-radius: 999px;
  background: var(--c-yellow);
  color: var(--c-ink);
  margin: 0 0 1rem;
}

.lead { font-size: 1rem; color: rgba(255, 255, 255, .88); max-width: 56ch; }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 3px; }

.btn-primary { background: var(--c-pink); color: #fff; box-shadow: 0 8px 20px rgba(255, 46, 99, .45); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(255, 46, 99, .55); }

.btn-secondary { background: rgba(255, 255, 255, .12); color: var(--c-white); border: 2px solid rgba(255, 255, 255, .4); }
.btn-secondary:hover { background: rgba(255, 255, 255, .2); }

.btn-cta {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--c-yellow);
  color: var(--c-ink);
  box-shadow: 0 10px 26px rgba(255, 214, 10, .5);
}
.btn-cta:hover { box-shadow: 0 14px 32px rgba(255, 214, 10, .6); }

.btn-block { width: 100%; }

/* ==========================================================================
   HEADER TETAP — brand · pil section (desktop) · cetak · burger · progress
   Tinggi dikunci ke var(--header-h); aman di semua background scene (gelap).
   ========================================================================== */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--header-h);              /* TERKUNCI ke token … */
  padding: var(--safe-t) clamp(14px, 3vw, 28px) 0; /* … safe-area termasuk */
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.app-header.is-scrolled {
  background: rgba(29, 11, 51, .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(255, 255, 255, .14);
  box-shadow: 0 14px 34px -22px rgba(13, 4, 29, .8);
}
html:not(.js) .app-header {
  position: static;
  height: auto;
  padding: 14px 18px;
  background: var(--c-purple-deep);
}

.head-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.head-monogram {
  flex: none;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
}
.head-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-white);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Pil section desktop — dibangun main.js dari DOM yang hidup */
.topnav { display: none; }

.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: none;
}
.head-btn {
  display: none;
  align-items: center; gap: 6px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
  background: rgba(255, 255, 255, .08); color: var(--c-white);
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  padding: 7px 13px; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
html.js .head-btn { display: inline-flex; }
.head-btn svg { width: 15px; height: 15px; }
.head-btn:hover { background: var(--c-pink); border-color: var(--c-pink); color: #fff; }

/* Burger — hanya chrome JS mobile (tersembunyi tanpa JS & di desktop) */
.nav-burger { display: none; }
.nav-burger {
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 4px;
  width: 40px; height: 38px;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: var(--c-white);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.burger-bar {
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s ease, opacity .3s ease;
}
html.js .nav-burger { display: inline-flex; }
.nav-burger[aria-expanded="true"] .burger-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] .burger-bar:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] .burger-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Progress baca — garis kuning→pink tipis mengisi sepanjang tepi bawah
   header saat tamu membaca. Chrome JS: tidak pernah tampil tanpa JS. */
.scroll-progress {
  display: none;
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--c-yellow), var(--c-pink) 70%, var(--c-purple));
  pointer-events: none;
}
html.js .scroll-progress { display: block; }

/* Pil nav desktop (≥820px): tombol berlabel, aktif mengikuti scroll-spy */
@media (min-width: 820px) {
  .topnav {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
    margin-left: auto;
  }
  .topnav::-webkit-scrollbar { display: none; }
  .head-actions { margin-left: 0; }
  .nav-burger, html.js .nav-burger { display: none; }
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, .78);
  font: 700 11px/1 var(--font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.nav-pill svg { width: 14px; height: 14px; flex: none; }
.nav-pill:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.nav-pill.is-active {
  background: linear-gradient(135deg, var(--c-pink), var(--c-purple));
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(255, 46, 99, .55);
}
.nav-pill:focus-visible { outline-offset: 2px; }

/* ── Menu mobile: slide-down sheet di atas backdrop redup (<820px) ──────── */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(13, 4, 29, .62);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.menu-backdrop.is-open { opacity: 1; pointer-events: auto; }

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  z-index: 96;
  background:
    radial-gradient(circle at 85% 0%, rgba(123, 47, 247, .35), transparent 42%),
    #24084f;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 30px 50px -28px rgba(13, 4, 29, .85);
  transform: translateY(-12px);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}
.mobile-menu.is-open { transform: translateY(0); opacity: 1; }
.mobile-menu__scroller {
  max-height: min(62vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px clamp(14px, 4vw, 24px) calc(14px + var(--safe-b));
}
.mobile-menu__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.menu-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  color: var(--c-white);
  font: 600 14px/1.2 var(--font-body);
  letter-spacing: .04em;
  text-align: left;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
.menu-row svg { width: 17px; height: 17px; flex: none; color: var(--c-yellow); }
.menu-row .menu-num {
  margin-left: auto;
  font-size: 10px; font-weight: 700; letter-spacing: .18em;
  color: rgba(255, 255, 255, .55);
  font-variant-numeric: tabular-nums;
}
.menu-row:hover { background: rgba(255, 255, 255, .13); }
.menu-row.is-current {
  background: linear-gradient(135deg, var(--c-pink), var(--c-purple));
  border-color: transparent;
  color: #fff;
}
.menu-row.is-current svg { color: var(--c-yellow); }
.menu-row.is-current .menu-num { color: rgba(255, 255, 255, .78); }

/* ==========================================================================
   HALAMAN 1 — POSTER PEMBUKA (tepat satu layar)
   Dipatok calc(100dvh - var(--header-h)), isi di tengah, terlihat penuh saat
   load. Scroll internal hanya katup darurat untuk viewport ekstrem / huruf
   raksasa. Ukuran fluid memakai --su (beku di atas ~650px sisi terpendek).
   ========================================================================== */
.panel-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;   /* katup pengaman; biasanya tidak aktif */
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 214, 10, .28) 0 8%, transparent 30%),
    radial-gradient(circle at 85% 18%, rgba(255, 46, 99, .45) 0 12%, transparent 34%),
    radial-gradient(circle at 50% 112%, rgba(123, 47, 247, .6) 0 22%, transparent 55%),
    linear-gradient(165deg, #24084f 0%, #4b13a8 48%, #a81d63 100%);
}

/* Lapisan dekorasi: memotong blob/streamer/floaters yang mencuat agar tidak
   pernah menambah area gulir internal pada sampul. */
.cover-decor {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.cover-blob { position: absolute; border-radius: 50%; opacity: .5; }
.cover-blob-a { width: 340px; height: 340px; right: -120px; top: -80px; background: radial-gradient(circle, rgba(255, 46, 99, .85), transparent 70%); }
.cover-blob-b { width: 260px; height: 260px; left: -100px; bottom: 6%; background: radial-gradient(circle, rgba(255, 214, 10, .75), transparent 70%); }
.cover-blob-c { width: 200px; height: 200px; left: 30%; bottom: -90px; background: radial-gradient(circle, rgba(123, 47, 247, .9), transparent 70%); }

.streamers {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(-55deg, rgba(255, 46, 99, .16) 0 14px, transparent 14px 30px),
    repeating-linear-gradient(55deg, rgba(255, 214, 10, .13) 0 10px, transparent 10px 24px);
  mix-blend-mode: screen;
}

.floater {
  position: absolute; font-size: 1.6rem; opacity: .85;
  animation: floaty 5s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .3));
}
.f1 { top: 15%; left: 6%; animation-duration: 5.2s; }
.f2 { top: 30%; right: 7%; animation-delay: .8s; animation-duration: 6s; }
.f3 { bottom: 22%; left: 9%; animation-delay: 1.6s; animation-duration: 4.6s; }
.f4 { bottom: 30%; right: 5%; animation-delay: .4s; animation-duration: 5.8s; }

.cover-head {
  position: relative; z-index: 3;
  display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap;
  width: 100%;
  padding: clamp(.9rem, calc(var(--su) * 3), 1.6rem) clamp(1rem, 4vw, 1.75rem) 0;
}

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: .82rem;
  backdrop-filter: blur(4px);
  max-width: min(90vw, 24rem);
  overflow-wrap: anywhere;
}
.chip strong { font-weight: 700; }

.cover-body {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  width: 100%;
  margin: auto; /* menengah saat muat; nol saat meluber — katup menggulir */
  padding: .75rem clamp(1.25rem, 6vw, 3rem) clamp(1.25rem, calc(var(--su) * 4), 2.5rem);
}
/* Sisa ruang dock agar CTA sampul tidak pernah tertutup chrome melayang. */
body.has-dock .cover-body {
  padding-bottom: calc(clamp(1.25rem, calc(var(--su) * 4), 2.5rem) + var(--dock-h) + 10px + var(--safe-b));
}

.kicker-cover { background: var(--c-pink); color: #fff; }

.cover-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, calc(var(--su) * 10), 6rem);
  line-height: .98;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--c-white);
  text-shadow: 0 .09em 0 var(--c-yellow), 0 .18em 0 rgba(29, 11, 51, .45);
  margin: .15em 0 0;
  text-wrap: balance;
}
.cover-title .bang { color: var(--c-yellow); text-shadow: 0 .09em 0 var(--c-pink), 0 .18em 0 rgba(29, 11, 51, .45); }

.age-badge {
  position: relative;
  z-index: 3;
  margin-top: -1.2rem;
  width: clamp(6.6rem, calc(var(--su) * 15), 10rem);
  height: clamp(6.6rem, calc(var(--su) * 15), 10rem);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff3b0, var(--c-yellow) 60%, #f5b800);
  color: var(--c-ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .35), inset 0 -6px 14px rgba(0, 0, 0, .14);
  transform: rotate(-6deg);
  font-family: var(--font-display);
}
.age-badge::after {
  content: '';
  position: absolute; inset: -11px;
  border: 3px dashed rgba(255, 255, 255, .85);
  border-radius: 50%;
  animation: spin 18s linear infinite;
}
.age-number { font-size: clamp(2.9rem, calc(var(--su) * 11), 4.4rem); line-height: 1; margin-top: .3rem; }
.age-label { font-family: var(--font-body); font-weight: 700; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; margin-top: -.15rem; }

/* Foto sampul (polaroid) — opsional, ganti lewat CONFIG.photos.cover */
.cover-photo {
  margin: 1rem 0 .4rem;
  width: clamp(6.4rem, calc(var(--su) * 13), 9.5rem);
  background: var(--c-white);
  border-radius: 14px;
  padding: .5rem .5rem .35rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .38), 0 0 0 2px rgba(255, 255, 255, .55);
  transform: rotate(-4deg);
  transition: transform .2s ease;
}
.cover-photo:hover, .cover-photo:focus-within { transform: rotate(-4deg) translateY(-3px) scale(1.03); }

/* Bingkai foto dengan rasio tetap — img mengisi penuh di dalamnya
   (object-fit: cover) sehingga foto apa pun tampil rapi tanpa distorsi. */
.photo-frame {
  position: relative;
  overflow: hidden;
  background: var(--c-purple-deep);
}
.cover-photo .photo-frame {
  aspect-ratio: 4 / 5;
  border-radius: 9px;
}
.photo-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .18s ease;
}
.photo-frame img:hover { transform: scale(1.04); }
.cover-photo figcaption {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-align: center;
  color: var(--c-ink);
  padding: .4rem .2rem .15rem;
}

.cover-name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, calc(var(--su) * 7), 3.4rem);
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--c-yellow);
  -webkit-text-stroke: 1px var(--c-ink);
  margin: .7em 0 .2em;
  text-wrap: balance;
  overflow-wrap: anywhere; /* nama panjang tidak akan meluber */
}

.cover-sub {
  color: rgba(255, 255, 255, .92);
  font-size: clamp(.95rem, 3vw, 1.1rem);
  max-width: 36ch;
  margin-bottom: 1.2rem;
}

.cover-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem;
  margin-bottom: 1.5rem;
}
.cover-meta span {
  background: rgba(29, 11, 51, .42);
  border: 1px solid rgba(255, 255, 255, .28);
  padding: .5rem .95rem;
  border-radius: 14px;
  font-size: .86rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.cover-actions { margin-top: .3rem; }

.host-line { margin-top: 1.4rem; font-size: .88rem; color: rgba(255, 255, 255, .75); }
.host-line span { color: var(--c-white); font-weight: 700; }

/* ==========================================================================
   HALAMAN 2 — DETAIL ACARA
   ========================================================================== */
.panel-detail {
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 214, 10, .16), transparent 30%),
    radial-gradient(circle at 8% 30%, rgba(255, 46, 99, .2), transparent 34%),
    linear-gradient(180deg, #3a0f86, #1d0b33 70%);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .9rem;
  margin: 1.4rem 0;
}

.info-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.1rem;
  box-shadow: var(--shadow-soft);
}
.info-icon { font-size: 1.6rem; display: block; margin-bottom: .4rem; }
.info-card h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; color: var(--c-yellow); }
.info-card p { margin: 0; font-size: .95rem; }
.info-card strong { color: #fff; }

.text-link {
  display: inline-block; margin-top: .6rem;
  font-weight: 600; color: var(--c-yellow);
  text-decoration: underline; text-underline-offset: 3px;
}

/* ── Add to Calendar (.ics diekspor oleh main.js) ───────────────────────── */
.calendar-cta {
  margin: 1.5rem auto 1.6rem;
  text-align: center;
}
.cal-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: .95rem 1.7rem;
  font: 800 .95rem/1 var(--font-body);
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--c-ink);
  background: var(--c-yellow);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(255, 214, 10, .45);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.cal-btn svg { width: 17px; height: 17px; }
.cal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 214, 10, .55);
}
.cal-btn:disabled { filter: grayscale(.6) brightness(.9); cursor: default; transform: none; }
.cal-hint {
  margin: .55rem 0 0;
  font-size: .78rem;
  color: rgba(255, 255, 255, .66);
}

.countdown-wrap {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
  margin: 1.5rem 0;
}
.countdown-wrap h3 { font-size: 1rem; letter-spacing: .06em; }

.countdown { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: .6rem; }
.cd-box {
  background: var(--c-yellow); color: var(--c-ink);
  min-width: 3.6rem; padding: .55rem .4rem; border-radius: 14px;
  display: flex; flex-direction: column; align-items: center;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12), 0 6px 14px rgba(0, 0, 0, .22);
}
.cd-num { font-family: var(--font-display); font-size: 1.7rem; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-box small { font-size: .62rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.cd-sep { font-family: var(--font-display); font-size: 1.4rem; color: var(--c-white); }
.countdown-done { display: block; padding: .6rem; font-weight: 700; color: var(--c-yellow); }

/* Agenda */
.timeline {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: calc(3.5rem + .8rem - 2px); /* center of the dot column */
  top: .6rem;
  bottom: .6rem;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--c-pink), var(--c-yellow));
  opacity: .9;
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 3.5rem 1.6rem 1fr; /* time · dot · text */
  align-items: start;
  padding: .2rem 0;
}
.tl-time {
  grid-column: 1;
  justify-self: end;
  padding: .35rem .25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.2;
  color: var(--c-yellow);
  text-align: right;
}
.timeline li::before {
  content: '';
  position: absolute;
  left: calc(3.5rem + .8rem - 10px);
  top: .72rem;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-yellow);
  border: 3px solid var(--c-pink);
  box-shadow: 0 0 0 4px rgba(255, 214, 10, .22), 0 4px 12px rgba(29, 11, 51, .35);
  z-index: 1;
}
.tl-text {
  grid-column: 3;
  margin: 0;
  padding: .6rem .9rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  font-size: .95rem;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}
.timeline li:hover .tl-text {
  transform: translateY(-2px);
  box-shadow: var(--shadow-pop);
}

.agenda-block { margin-top: 1.6rem; }

.detail-cta { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-top: 1.8rem; }

/* ==========================================================================
   GALERI MOMEN PESTA (opsional) — foto kue, tamu, dekorasi, candid
   ========================================================================== */
.gallery-title { margin-top: 1.9rem; }
.gallery-lead { font-size: .92rem; color: rgba(255, 255, 255, .8); margin-bottom: 1rem; }

/* ==========================================================================
   POSTER / FLYER ACARA (opsional) + VIDEO KESERUAN (opsional)
   ========================================================================== */
.flyer-section { margin-top: 1.6rem; }
.flyer-slot { max-width: 340px; margin-left: auto; margin-right: auto; }
.flyer-slot .photo-frame { aspect-ratio: 3 / 4; }

.video-section { margin-top: 1.6rem; }

.video-card {
  display: flex; flex-direction: column; width: 100%;
  margin: 0; padding: 0; border: 0; cursor: pointer; text-align: left;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--c-white); font-family: inherit;
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .15s ease;
}
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-pop); }
.video-card:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 3px; }

.video-card__media {
  position: relative; display: block; aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--c-purple), var(--c-pink));
  overflow: hidden;
}
.video-card__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: transform .2s ease;
}
.video-card:hover .video-card__poster { transform: scale(1.05); }
.video-card__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(29, 11, 51, .55);
  border: 3px solid var(--c-yellow); color: var(--c-yellow);
  font-size: 1.25rem; padding-left: .22rem;
  backdrop-filter: blur(2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.video-card:hover .video-card__play {
  transform: translate(-50%, -50%) scale(1.12);
  background: var(--c-pink); border-color: #fff; color: #fff;
}
.video-card__meta {
  display: flex; flex-direction: column; gap: .15rem;
  padding: .8rem 1rem .9rem;
}
.video-card__meta strong { font-size: 1rem; }
.video-card__meta small { color: rgba(255, 255, 255, .72); font-size: .8rem; }

/* Pemutaran inline (saat MEDIA_LIGHTBOX = false): pemain menggantikan poster */
.video-card__media iframe,
.video-card__media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; background: #000;
}
.video-note {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; text-align: center;
  font-size: .85rem; color: rgba(255, 255, 255, .85);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .9rem;
  margin: 0 0 1.9rem;
}

.photo-slot {
  margin: 0;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  padding: .45rem .45rem .3rem;
  box-shadow: var(--shadow-soft);
}
.photo-slot .photo-frame {
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--radius) - 6px);
}
.photo-slot figcaption {
  font-size: .78rem;
  font-weight: 600;
  text-align: center;
  padding: .5rem .2rem .35rem;
  color: rgba(255, 255, 255, .92);
}
.photo-slot:focus-within .photo-frame,
.cover-photo:focus-within .photo-frame,
.free-figure:focus-within img {
  outline: 3px solid var(--c-yellow); outline-offset: 3px;
}

/* ==========================================================================
   HALAMAN 3 — PESAN DARI KAMI (FREE PAGE, OPSIONAL; bisa digandakan)
   ========================================================================== */
.panel-free {
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 214, 10, .18), transparent 34%),
    radial-gradient(circle at 6% 26%, rgba(255, 46, 99, .22), transparent 32%),
    linear-gradient(180deg, #3a0f86, #1d0b33 70%);
}

.free-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1.4rem;
}

.free-block {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  padding: 1.3rem 1.3rem 1rem;
  box-shadow: var(--shadow-soft);
}

.free-block-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 4.5vw, 1.45rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-yellow);
  margin: 0 0 .5rem;
  overflow-wrap: anywhere;
}
/* Judul halaman free page memakai gaya judul scene standar */
.free-title:focus, .panel-inner h2:focus { outline: none; }

.free-content {
  font-size: .95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .92);
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.free-figure {
  margin: .9rem auto 0;
  max-width: 420px;
}
.free-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: calc(var(--radius) - 8px);
  border: 2px solid rgba(255, 255, 255, .28);
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease;
}
.free-img:hover { transform: scale(1.02); }
.free-cap {
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
  padding: .5rem .2rem .1rem;
  color: rgba(255, 255, 255, .85);
}

/* ==========================================================================
   HALAMAN 4 — RSVP
   ========================================================================== */
.panel-rsvp { background: linear-gradient(180deg, #2b0a5e, #1d0b33 55%, #2b0a5e); }

.rsvp-form { margin-top: 1.3rem; }

.field { margin-bottom: 1.1rem; }
.field label, .field legend {
  display: block; font-weight: 700; font-size: .9rem; margin-bottom: .4rem;
}
.req { color: var(--c-yellow); }

.field input, .field select, .field textarea {
  width: 100%;
  font-family: inherit; font-size: 1rem;
  color: var(--c-ink);
  background: var(--c-white);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: .75rem .95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-pink);
  box-shadow: 0 0 0 4px rgba(255, 46, 99, .25);
}
.field textarea { resize: vertical; min-height: 84px; }

.error-text {
  display: block; min-height: 1.25em; margin-top: .3rem;
  font-size: .82rem; font-weight: 600; color: #ffb3c8;
}

.loading {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  margin-top: 1rem; font-weight: 600; font-size: .92rem; color: var(--c-yellow);
}
.loading[hidden] { display: none; }
.spinner {
  width: 1.1rem; height: 1.1rem; border-radius: 50%;
  border: 3px solid rgba(255, 214, 10, .3); border-top-color: var(--c-yellow);
  animation: spin .8s linear infinite;
}

.form-note { text-align: center; font-size: .8rem; color: rgba(255, 255, 255, .65); margin-top: 1rem; }

/* ==========================================================================
   HALAMAN 5 — BUKU TAMU
   ========================================================================== */
.panel-guestbook { background: linear-gradient(180deg, #1d0b33, #3a0f86 70%, #2b0a5e); }
.guestbook-body { margin-top: 1.4rem; display: flex; flex-direction: column; gap: .9rem; }

/* ==========================================================================
   HALAMAN 6 — PENUTUP
   ========================================================================== */
.panel-closing {
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 214, 10, .2), transparent 42%),
    linear-gradient(180deg, #2b0a5e, #1d0b33);
}
.closing-note {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4.5vw, 1.9rem);
  color: var(--c-yellow);
  text-transform: uppercase;
  letter-spacing: .03em;
  border-left: 4px solid var(--c-pink);
  padding-left: 1rem;
  text-align: left;
  max-width: 20ch;
  margin: 1.2rem 0;
}
.host-sign { margin-top: 1.4rem; font-size: 1rem; color: rgba(255, 255, 255, .85); }
.host-sign strong {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: 1.25rem; letter-spacing: .05em; color: var(--c-white);
}

/* ── Brand footer + powered-by (ujung dokumen, aliran normal) ───────────── */
.app-footer {
  text-align: center; font-size: .76rem;
  color: rgba(255, 255, 255, .55);
  padding: 1rem 1rem calc(max(1.6rem, var(--safe-b)));
  background: var(--c-purple-deep);
}
body.has-dock .app-footer {
  padding-bottom: calc(var(--dock-h) + 52px + var(--safe-b));
}
.footer-brand {
  margin: .3rem 0 0;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em;
  color: rgba(255, 255, 255, .78);
}

/* Powered-by: garis merek selebar penuh di footer penutup. Teks diisi platform
   lewat morph "Free Powered By"; bila kosong, teks bawaan "Powered by
   Kundangi" tetap tampil. */
.powered-by {
  width: 100%;
  text-align: center;
  margin: .45rem 0 0;
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, .6);
}

/* ==========================================================================
   DOCK MELAYANG — pil ikon section; dibangun main.js dari section yang ada,
   sehingga section yang dihapus kehilangan entrinya. Bisa digulir horizontal
   (scrollbar tersembunyi) bila halamannya banyak.
   ========================================================================== */
.dock {
  position: fixed;
  left: 50%;
  bottom: calc(12px + var(--safe-b));
  transform: translateX(-50%);
  z-index: 85;
  display: flex;
  align-items: stretch;
  gap: 2px;
  max-width: calc(100vw - 20px);
  padding: 6px 8px;
  background: rgba(29, 11, 51, .88);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-pop), inset 0 1px 0 rgba(255, 255, 255, .08);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.dock::-webkit-scrollbar { display: none; }
body:not(.has-dock) .dock { display: none; }
.dock button {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 52px;
  height: 46px;
  padding: 5px 7px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  cursor: pointer;
  transition: color .22s ease, background-color .22s ease, transform .22s ease;
  -webkit-tap-highlight-color: transparent;
}
.dock button svg { width: 19px; height: 19px; flex: none; }
.dock button:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.dock button:active { transform: scale(.94); }
.dock button.is-current {
  color: #fff;
  background: linear-gradient(135deg, var(--c-pink), var(--c-purple));
  box-shadow: 0 8px 18px -8px rgba(255, 46, 99, .6);
}
.dock button:focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 1px; }
.dock__label {
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Layar sangat sempit: rapatkan dock agar tetap muat (≤390px) */
@media (max-width: 390px) {
  .dock { gap: 1px; padding: 5px 6px; }
  .dock button { min-width: 47px; padding: 5px 5px; }
  .dock__label { font-size: 7.8px; }
}

/* ==========================================================================
   TOAST — konfirmasi senyap (Add to Calendar, …)
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(88px + var(--safe-b));
  transform: translateX(-50%) translateY(14px);
  z-index: 150;
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--c-pink);
  color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  box-shadow: 0 14px 30px -12px rgba(255, 46, 99, .7);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ==========================================================================
   CONFETTI (JS)
   ========================================================================== */
.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.confetti-piece { position: absolute; top: -3vh; opacity: .95; animation: confetti-fall linear forwards; }

/* ==========================================================================
   LIGHTBOX — klik untuk membuka media asli dengan zoom & pan.
   SEMUA foto konten DAN video terbuka di sini: gambar zoom (roda, pinch,
   ketuk dua kali, ±) dan digeser saat diperbesar; video diputar sebagai
   embed / pemain native dengan tautan "buka asli". Tutup via Escape /
   backdrop / ×. Markup dibangun main.js hanya bila ada media yang bisa
   diklik. html.lb-off (MEDIA_LIGHTBOX = false) menghapus semua afordansi.
   ========================================================================== */

/* Afordansi klik — hanya saat fitur lightbox ON */
html.js:not(.lb-off) .photo-frame img,
html.js:not(.lb-off) .free-img { cursor: zoom-in; }

html.js:not(.lb-off) .photo-frame,
html.js:not(.lb-off) .free-figure { position: relative; }
html.js:not(.lb-off) .photo-frame::after,
html.js:not(.lb-off) .free-figure::after {
  content: "";
  position: absolute;
  top: 8px; right: 8px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255, 214, 10, .94)
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d0b33' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5L21 21'/%3E%3Cpath d='M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E")
    center / 15px no-repeat;
  box-shadow: 0 4px 12px -4px rgba(13, 4, 29, .55);
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
html.js:not(.lb-off) .photo-slot .photo-frame::after,
html.js:not(.lb-off) .free-figure::after { opacity: .92; transform: none; }
html.js:not(.lb-off) .cover-photo .photo-frame::after { opacity: .92; transform: none; }
html.js:not(.lb-off) .photo-slot:hover .photo-frame::after,
html.js:not(.lb-off) .photo-slot:focus-within .photo-frame::after,
html.js:not(.lb-off) .free-figure:hover::after,
html.js:not(.lb-off) .free-figure:focus-within::after {
  opacity: 1;
  transform: translateY(-2px);
}

.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex;
  align-items: center; justify-content: center;
  padding: calc(14px + var(--safe-t)) 14px calc(14px + var(--safe-b));
  background: rgba(13, 4, 29, .94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.lightbox[hidden] { display: none; }
body.lb-open { overflow: hidden; } /* kunci dokumen di balik lightbox terbuka */

.lightbox-stage {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: lb-zoom-in .28s ease;
}
@keyframes lb-zoom-in {
  from { transform: scale(.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.lightbox-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  touch-action: none;
  overflow: hidden;
  border-radius: 10px;
}
.lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 68vh; max-height: 68dvh;
  width: auto; height: auto;
  border: 6px solid var(--c-white);
  border-radius: 10px;
  background: var(--c-purple-deep); /* alas saat memuat / file hilang */
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
  cursor: zoom-in;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
  transition: transform .18s ease;
}
.lightbox-frame.is-zoomed .lightbox-img { cursor: grab; }
.lightbox-frame.is-zoomed .lightbox-img:active { cursor: grabbing; }
.lightbox-frame.is-panning .lightbox-img { transition: none; }
.lightbox-video {
  width: min(880px, 92vw);
  aspect-ratio: 16 / 9;
  max-height: 68vh; max-height: 68dvh;
}
.lightbox-video iframe,
.lightbox-video video {
  width: 100%; height: 100%;
  border: 0;
  border-radius: 12px;
  background: #000;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9);
}
.lightbox-caption {
  margin: 0;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--c-white);
  text-align: center;
  overflow-wrap: anywhere;
}
.lightbox-counter {
  margin: 0;
  font-size: 10px; font-weight: 700; letter-spacing: .26em;
  color: rgba(255, 253, 247, .6);
  font-variant-numeric: tabular-nums;
}

.lb-btn {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--c-yellow);
  color: var(--c-ink);
  cursor: pointer;
  font-size: 1.5rem; line-height: 1;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .65);
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.lb-btn:hover { transform: scale(1.07); background: var(--c-pink); color: #fff; }
.lb-close { top: calc(10px + var(--safe-t)); right: calc(10px + var(--safe-r)); }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.07); }

/* Alat zoom + tautan "buka asli" (gambar) */
.lightbox-tools {
  position: absolute;
  left: calc(10px + var(--safe-l));
  bottom: calc(10px + var(--safe-b));
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lightbox-tools[hidden] { display: none; }
.lb-tool {
  min-width: 42px; height: 42px;
  padding: 0 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 253, 247, .94);
  color: var(--c-ink);
  font: 700 12px/1 var(--font-body);
  letter-spacing: .04em;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6);
  transition: transform .2s ease, background-color .2s ease;
}
.lb-tool svg { width: 17px; height: 17px; }
.lb-tool:hover { transform: scale(1.05); background: #fff; }
.lb-tool[disabled] { opacity: .4; cursor: default; }
.lb-original {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 253, 247, .94);
  color: var(--c-ink);
  font: 700 11px/1 var(--font-body);
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .6);
}
.lb-original:hover { background: #fff; }
.lightbox-original-row {
  position: absolute;
  right: calc(10px + var(--safe-r));
  bottom: calc(10px + var(--safe-b));
  z-index: 3;
}
.lightbox-original-row[hidden] { display: none; }

.lightbox :focus-visible { outline: 3px solid var(--c-yellow); outline-offset: 2px; }

/* Layar sempit: prev/next turun di bawah foto agar tidak menutupinya */
@media (max-width: 520px) {
  .lightbox { padding-left: 10px; padding-right: 10px; }
  .lightbox-img { max-height: 58vh; max-height: 58dvh; }
  .lightbox-video { width: 94vw; max-height: 58vh; max-height: 58dvh; }
  .lb-prev, .lb-next { position: static; transform: none; width: 42px; height: 42px; }
  .lb-prev:hover, .lb-next:hover { transform: scale(1.06); }
  .lightbox-stage { gap: 10px; justify-content: center; }
  .lightbox-tools { left: 8px; bottom: calc(8px + var(--safe-b)); }
  .lightbox-original-row { right: 8px; bottom: calc(8px + var(--safe-b)); }
}

/* ── Guestbook (form + daftar ucapan hasil injeksi platform) ─────────────── */
.guestbook-form {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1.3rem;
}

#guestbookForm .form-group { margin-bottom: 1.1rem; }

#guestbookForm .form-group label {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  color: var(--c-white);
  margin-bottom: .4rem;
}

#guestbookForm .form-control {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--c-ink);
  background: var(--c-white);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: .75rem .95rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
#guestbookForm .form-control::placeholder { color: rgba(29, 11, 51, .55); }
#guestbookForm .form-control:focus {
  outline: none;
  border-color: var(--c-pink);
  box-shadow: 0 0 0 4px rgba(255, 46, 99, .25);
}
#guestbookForm textarea.form-control { resize: vertical; min-height: 84px; }

#guestbookForm .error {
  display: block;
  margin-top: .3rem;
  font-size: .82rem;
  font-weight: 600;
  color: #ffb3c8; /* matches template .error-text on dark */
}

/* !important beats Bootstrap .bg-kundangan / .text-white / .px-3 */
#guestbookForm button[type="submit"] {
  padding: .9rem 1.8rem !important;
  border: 0;
  border-radius: 999px;
  background: var(--c-yellow) !important;
  color: var(--c-ink) !important;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.1;
  box-shadow: 0 10px 26px rgba(255, 214, 10, .5);
}
#guestbookForm button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 214, 10, .6);
}

.guestbook-chapta { margin: .2rem 0 .8rem; }

.loading-guestbook {
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--c-yellow);
}

#comments-container.guestbook-wrap {
  border-top: 1px solid rgba(255, 255, 255, .16) !important; /* overrides inline border-top */
  padding-top: 1rem;
}

.guestbook-entry {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 1rem 1.1rem;
  margin-bottom: .9rem;
}
.guestbook-entry:last-child { margin-bottom: 0; }

.guestbook-entry h5 {
  margin: 0 0 .3rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--c-yellow);
}

.guestbook-entry p {
  margin: 0 0 .45rem;
  font-size: .95rem;
  line-height: 1.55;
  color: var(--c-white);
}

.guestbook-entry small {
  font-size: .78rem;
  color: rgba(255, 255, 255, .6);
}

.more-guestbook-wrap { text-align: center; margin-top: 1.1rem; }

#load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .12);
  color: var(--c-white);
  font-weight: 700;
  font-size: .9rem;
  line-height: 1;
  padding: .65rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
#load-more:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }

/* ==========================================================================
   KEYFRAMES
   ========================================================================== */
@keyframes confetti-fall { to { transform: translateY(112vh) rotate(720deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty {
  from { transform: translateY(-8px) rotate(-6deg); }
  to { transform: translateY(10px) rotate(8deg); }
}

/* ==========================================================================
   PREFERS-REDUCED-MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .floater { animation: none; }
}

/* ==========================================================================
   FALLBACK TANPA JS — dokumen bertumpuk terbaca penuh; dock, burger, pil &
   progress tidak pernah muncul (semuanya dibangun JS atau digate html.js).
   ========================================================================== */
html:not(.js) .head-btn,
html:not(.js) .nav-burger,
html:not(.js) .scroll-progress,
html:not(.js) .menu-backdrop,
html:not(.js) .mobile-menu,
html:not(.js) .dock,
html:not(.js) .toast,
html:not(.js) .confetti-layer,
html:not(.js) .countdown-wrap,
html:not(.js) .video-section,
html:not(.js) .floater,
html:not(.js) .calendar-cta { display: none !important; }

/* ==========================================================================
   LAYAR LEBAR
   ========================================================================== */
@media (min-width: 720px) {
  .cover-title { font-size: clamp(4rem, calc(var(--su) * 9), 6.4rem); }
  .cover-meta span { font-size: .92rem; }
  .info-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
}

/* ==========================================================================
   CETAK (PRINT) — undangan bertumpuk lengkap; SEMUA yang hanya disembunyikan
   secara visual (.is-empty / .fit-hidden) dipulihkan.
   ========================================================================== */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .app-header, .nav-burger, .scroll-progress, .dock, .mobile-menu, .menu-backdrop,
  .toast, .skip-link, .confetti-layer, .lightbox, .head-btn,
  .floater, .streamers, .cover-blob, .cover-decor, .powered-by { display: none !important; }

  body { padding-top: 0; background: #fff; }
  .doc { position: static; }
  .panel { min-height: 0; overflow: visible; break-before: page; background: #fff !important; color: #1a1a1a; }
  .panel-cover { break-before: auto; max-height: none; overflow: visible; }
  .panel-hidden { display: none !important; }

  /* Formulir & interaktif tidak berguna di kertas */
  .rsvp-form, .video-card, .cal-btn, .text-link { display: none !important; }

  /* Audit empty-state & pangkas cover-fit hanya menyembunyikan SECARA VISUAL:
     print memulihkan semuanya. */
  .is-empty, .fit-hidden { display: revert !important; }

  .photo-slot, .cover-photo { box-shadow: none; border: 1px solid #ddd; }
  .photo-slot figcaption { color: #333; }

  .panel-inner { width: 100%; max-width: none; padding: 1.6rem 1.2rem; }

  .kicker { background: #ffe28a; color: #111; }
  .cover-title { color: #111; text-shadow: none; }
  .cover-title .bang { color: #c2185b; text-shadow: none; }
  .cover-name { color: #c2185b; -webkit-text-stroke: 0; }
  .cover-sub, .host-line, .lead, .form-note { color: #333; }
  .cover-meta span, .chip { background: #f2f2f2; border-color: #ccc; color: #111; }
  .info-card, .countdown-wrap, .free-block { background: #f7f7f7; border-color: #ddd; color: #111; box-shadow: none; }
  .info-card strong, .countdown-wrap h3, .timeline strong, .host-sign strong, .cd-num { color: #111; }
  .cd-box { background: #ffe28a; color: #111; box-shadow: none; }
  .tl-time, .text-link, .countdown-done, .error-text { color: #c2185b; }
  .timeline::before { background: #c2185b; }
  .timeline li::before { background: #ffe28a; border-color: #c2185b; box-shadow: none; }
  .tl-text { background: #fff; border-color: #ddd; box-shadow: none; }
  .field input, .field select, .field textarea { border: 1px solid #999; color: #111; background: #fff; }
  .age-badge { background: #ffe28a; color: #111; box-shadow: none; }
  .closing-note { color: #c2185b; border-color: #c2185b; }
  .app-footer { color: #666; background: #fff; }
  .footer-brand { color: #666; }
  .free-block-title { color: #a3560f; }
  .gallery-title, .cal-hint { color: #333; }
  .gallery-lead, .free-content, .free-cap { color: #444; }
}
