/* =========================================================
   Undangan Ryandi & Maria — Tema 2
   Tata letak kolom seukuran HP (latar luar maroon), sampul berpanel lengkung,
   latar emas ber-bokeh, kartu acara hijau & maroon, kartu rekening perak.
   ========================================================= */
:root {
  --maroon: #490204;
  --maroon-2: #5e0a10;
  --green: #1c2f05;
  --gold: #d79f52;
  --gold-2: #c58b3c;
  --gold-line: #b98a3c;
  --gold-deep: #7c5a1c;
  --ink: #2f2a25;
  --ink-soft: #5b5248;
  --cream: #fbf4e4;
  --col: 480px;
  --col-w: min(100vw, var(--col));
  --font-title: "Aboreto", "Cinzel", Georgia, serif;
  --font-body: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-script: "Great Vibes", "Brush Script MT", cursive;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Dasar ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--maroon); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.is-locked, html.sheet-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--maroon);
  color: var(--ink);
  font: 400 14.5px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }
p, h1, h2, h3, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Kolom undangan (seukuran HP; di layar lebar tampil di tengah dengan latar maroon) */
.page {
  position: relative;
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  overflow: hidden;
  background: #0b0b0b;
  box-shadow: 0 0 70px rgba(0, 0, 0, .5);
}

/* ---------- Tipografi ---------- */
.title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(24px, 7vw, 30px);
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-align: center;
  color: #3b2a10;
}
.title--xl { font-size: clamp(30px, 9.4vw, 42px); color: #6e5621; }
.nowrap { white-space: nowrap; }
.title--light { color: #fff; }
.title--gold { color: var(--gold); }
.eyebrow {
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(255, 255, 255, .9);
}
.eyebrow--dark { color: var(--gold-deep); }

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: 600 13.5px/1 var(--font-body);
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
  transition: transform .2s var(--ease), filter .2s, background-color .2s;
}
.btn:active { transform: scale(.97); }
.btn .icon { width: 17px; height: 17px; }
.btn--gold { background: var(--gold); color: #fff; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .55); }
.btn--gold:hover { filter: brightness(1.06); }
.btn--outline { background: transparent; color: var(--gold-deep); border: 1px solid var(--gold-line); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 12.5px; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }

/* ---------- Latar emas ber-bokeh ---------- */
.bg-gold {
  background-color: #e6c98c;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 72px),
    radial-gradient(circle at 82% 28%, rgba(255, 250, 235, .42), rgba(255, 250, 235, 0) 96px),
    radial-gradient(circle at 36% 52%, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 62px),
    radial-gradient(circle at 72% 74%, rgba(255, 248, 225, .4), rgba(255, 248, 225, 0) 112px),
    radial-gradient(circle at 8% 90%, rgba(255, 255, 255, .34), rgba(255, 255, 255, 0) 82px),
    linear-gradient(170deg, #f6e8c1 0%, #eacf92 45%, #d9b46d 100%);
  background-size: 100% 640px, 100% 640px, 100% 640px, 100% 640px, 100% 640px, 100% 100%;
  background-repeat: repeat-y, repeat-y, repeat-y, repeat-y, repeat-y, no-repeat;
}

/* ---------- SAMPUL ---------- */
.cover {
  position: fixed;
  top: 0; bottom: 0; left: 50%;
  z-index: 60;
  width: min(100%, var(--col));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: #cfc9c2; /* cadangan sebelum foto tampil */
  transform: translateX(-50%);
  transition: transform 1.1s cubic-bezier(.77, 0, .18, 1);
  touch-action: none;
  overscroll-behavior: contain;
}
.cover.is-leaving { transform: translate(-50%, -100%); }
/* Foto Gaun merah memenuhi sampul. Wajah ada di tengah foto (±48–56%): panel lengkung di area langit,
   tombol di area gaun → wajah tidak tertutup */
.cover__photo { position: absolute; inset: 0; }
.cover__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.cover::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 32%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .5));
  pointer-events: none;
}
.cover__arch {
  position: relative;
  z-index: 1;
  width: min(80%, 340px);
  margin: max(14px, 3vh) auto 0;
  padding: clamp(20px, 4.2vh, 36px) 18px clamp(14px, 2.6vh, 24px);
  border: 1.5px solid rgba(255, 255, 255, .95);
  border-radius: 999px 999px 16px 16px;
  background: rgba(255, 255, 255, .62);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  text-align: center;
  color: #333;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .35);
}
.cover__to { font-size: 13px; }
.cover__title { font-size: 12.5px; color: #555; }
.cover__guest { margin-top: 2px; font-weight: 700; font-size: 16px; line-height: 1.3; color: #2b2b2b; overflow-wrap: anywhere; }
.cover__lead { margin-top: 10px; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #6b5a3a; }
.cover__names {
  margin-top: 2px;
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(34px, 10.5vw, 46px);
  line-height: 1.15;
  color: #3a2a14;
}
.cover__bottom {
  position: relative;
  z-index: 1;
  padding: 0 16px calc(env(safe-area-inset-bottom, 0px) + max(18px, 3.4vh));
  text-align: center;
}
.cover__note { margin-top: 10px; font-size: 10.5px; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
/* Diketuk sebelum skrip selesai dimuat (sinyal lemah) → putaran kecil sampai undangan terbuka otomatis */
#openInvitation.is-waiting { cursor: progress; }
#openInvitation.is-waiting .icon { display: none; }
#openInvitation.is-waiting::before {
  content: '';
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@media (max-height: 680px) {
  .cover__arch { padding-top: 16px; padding-bottom: 12px; }
  .cover__names { font-size: 32px; }
  .cover__note { display: none; }
}

/* ---------- AYAT & HITUNG MUNDUR ---------- */
.verse { position: relative; padding-bottom: 42px; text-align: center; color: #fff; background: #0b0b0b; }
.verse__text { padding: 52px 26px 10px; font-size: 13.5px; line-height: 1.75; color: rgba(255, 255, 255, .92); }
.verse__text p + p { margin-top: .5em; }
.verse__ref { margin-top: 12px; font-style: italic; font-weight: 600; }
.verse__message {
  max-width: 34ch;
  margin: 18px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(215, 159, 82, .45);
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, .86);
}
.verse__photo { position: relative; }
.verse__photo img {
  width: 100%;
  filter: brightness(.8) contrast(1.05);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%);
}
/* kotak hitung mundur di area badan (±86–93% tinggi foto) → wajah tidak tertutup */
.countdown {
  position: absolute; left: 0; right: 0; bottom: 7%;
  display: flex; justify-content: center; gap: 8px;
  padding: 0 14px;
}
.countdown__box {
  width: 68px;
  padding: 8px 0 6px;
  border-radius: 8px;
  background: var(--gold);
  color: #fff;
  text-align: center;
  box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .7);
}
.countdown__box span { display: block; font-weight: 700; font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown__box small { display: block; margin-top: 2px; font-size: 11px; }
.verse__status { margin: 4px 22px 0; font-size: 12.5px; font-style: italic; color: rgba(255, 255, 255, .78); }
.verse .btn { margin-top: 14px; }

/* ---------- MEMPELAI (zig-zag, bingkai lengkung emas) ---------- */
.couple { padding: 58px 20px 64px; }
.couple__intro { max-width: 36ch; margin: 12px auto 40px; text-align: center; font-size: 13.5px; color: var(--ink-soft); }
.profile { display: grid; grid-template-columns: 46% 1fr; gap: 20px; align-items: center; }
.profile + .profile { margin-top: 44px; }
.profile--reverse { grid-template-columns: 1fr 46%; }
.profile--reverse .frame { order: 2; }
.profile--reverse .profile__text { text-align: right; }
.frame { position: relative; padding: 8px; border: 1.5px solid var(--gold-line); border-radius: 999px 999px 12px 12px; }
.frame::before {
  content: "";
  position: absolute; inset: -7px;
  border: 1px solid rgba(185, 138, 60, .6);
  border-radius: 999px 999px 16px 16px;
  pointer-events: none;
}
.frame picture, .frame img { border-radius: 999px 999px 7px 7px; }
.frame img { width: 100%; aspect-ratio: 3 / 4.4; object-fit: cover; object-position: 50% 18%; }
.frame__orn {
  position: absolute; left: 50%; bottom: -12px;
  width: 64px; height: 18px;
  transform: translateX(-50%);
  color: var(--gold-line);
  fill: none; stroke: currentColor; stroke-width: 1.3;
}
.frame__orn circle { fill: currentColor; stroke: none; }
.profile__name { font-family: var(--font-title); font-size: 18px; line-height: 1.3; letter-spacing: .02em; text-transform: uppercase; color: #2f2413; }
.profile__order { margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); }
.profile__parents { margin-top: 3px; font-size: 12.5px; line-height: 1.55; color: #3d352c; }

/* ---------- CATAT TANGGALNYA ---------- */
.date { padding: 58px 22px 70px; text-align: center; }
.date__day { margin-top: 2px; font-size: 16px; letter-spacing: .04em; color: #6e5621; }
.events { display: grid; gap: 58px; margin-top: 56px; }
.event {
  position: relative;
  width: min(100%, 300px);
  margin: 0 auto;
  padding: 44px 18px 18px;
  border-radius: 4px;
  color: #f3ead7;
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .65);
}
.event--green { background: var(--green); }
.event--maroon { background: var(--maroon); }
.event__icon {
  position: absolute; left: 50%; top: 0;
  display: grid; place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 5px rgba(215, 159, 82, .28);
}
.event__icon .icon { width: 24px; height: 24px; }
.event__title { font-family: var(--font-title); font-weight: 400; font-size: 21px; letter-spacing: .04em; color: var(--gold); }
.event__time { margin-top: 10px; font-family: var(--font-title); font-size: 13.5px; letter-spacing: .06em; }
.event__place { margin-top: 10px; font-weight: 700; font-size: 13.5px; line-height: 1.45; }
.event__address { font-size: 12px; line-height: 1.5; opacity: .85; }
.event .btn { width: 100%; margin-top: 16px; border-radius: 6px; background: #a8783a; }

/* ---------- GALERI SUKACITA ---------- */
.gallery { padding: 58px 14px 62px; text-align: center; background: var(--gold); }
.gallery .title { margin-bottom: 26px; }
.masonry { columns: 2; column-gap: 10px; text-align: left; }
.masonry__item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--tone, #e9d6b0);
  box-shadow: 0 12px 22px -14px rgba(0, 0, 0, .6);
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  cursor: zoom-in;
  touch-action: manipulation;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.masonry__item img { width: 100%; transition: transform .9s var(--ease); }
.masonry__item:active img { transform: scale(1.03); }
.masonry__item--feature { column-span: all; }

/* ---------- Bagian foto penuh ---------- */
.photo-section { position: relative; overflow: hidden; isolation: isolate; color: #fff; text-align: center; }
.photo-section__img { position: absolute; inset: 0; z-index: -2; }
.photo-section__img img { width: 100%; height: 100%; object-fit: cover; }

/* KONFIRMASI KEHADIRAN (foto vespa): judul di pepohonan, tombol di jalan → wajah (tinggi ±37–41%) bebas */
.rsvp .photo-section__img img { object-position: 52% 50%; }
.rsvp {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 4480 / 6446;
  padding: 40px 22px 34px;
}
.rsvp::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 26%, rgba(0, 0, 0, 0) 72%, rgba(0, 0, 0, .5) 100%);
}
.rsvp__head p { max-width: 32ch; margin: 8px auto 0; font-size: 13px; }
.rsvp__open { align-self: center; }

/* Foto peralihan yang larut ke maroon (foto 14, tegak: gunung di atas, wajah ±59–64% sebelum larut, perahu larut ke maroon) */
.band { background: var(--maroon); }
.band img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 96%;
  -webkit-mask-image: linear-gradient(to bottom, #000 50%, transparent);
  mask-image: linear-gradient(to bottom, #000 50%, transparent);
}

/* ---------- TURUT MENGUNDANG ---------- */
.coinvite { padding: 26px 22px 66px; text-align: center; color: #f5ecdc; background: var(--maroon); }
.coinvite .title { margin-bottom: 26px; }
.coinvite__group + .coinvite__group { margin-top: 34px; }
.coinvite__label { font-weight: 700; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.coinvite__list { display: grid; gap: 3px; margin-top: 8px; font-size: 13px; color: rgba(245, 236, 220, .88); }

/* ---------- TANDA KASIH ---------- */
.gift { padding: 62px 22px 72px; text-align: center; }
.gift__text { max-width: 34ch; margin: 12px auto 28px; font-size: 13.5px; color: var(--ink-soft); }
.bank {
  width: min(100%, 320px);
  margin: 0 auto;
  padding: 18px 18px 16px;
  border-radius: 14px;
  text-align: left;
  color: #2c2c2c;
  background: linear-gradient(120deg, #efefef 0%, #ffffff 26%, #d6d6d6 50%, #f7f7f7 72%, #cdcdcd 100%);
  box-shadow: 0 20px 38px -18px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.bank + .bank { margin-top: 18px; }
.bank__label, .bank__number, .bank__holder { font-family: ui-monospace, "SFMono-Regular", Consolas, "Courier New", monospace; }
.bank__label { font-size: 12.5px; letter-spacing: .06em; }
.bank__row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.bank__chip {
  width: 50px; height: 38px;
  border-radius: 7px;
  background:
    linear-gradient(90deg, transparent 31%, rgba(110, 78, 24, .45) 31% 33%, transparent 33% 67%, rgba(110, 78, 24, .45) 67% 69%, transparent 69%),
    linear-gradient(0deg, transparent 30%, rgba(110, 78, 24, .45) 30% 33%, transparent 33% 67%, rgba(110, 78, 24, .45) 67% 70%, transparent 70%),
    linear-gradient(135deg, #f5dc9a, #d6aa55 55%, #f0d08c);
  box-shadow: inset 0 0 0 1px rgba(110, 78, 24, .4);
}
.bank__name { padding: 6px 12px; border-radius: 6px; background: #fff; font: italic 800 19px/1 var(--font-body); letter-spacing: .02em; color: #1f3558; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.bank__number { margin-top: 14px; font-weight: 700; font-size: 17px; letter-spacing: .08em; }
.bank__copy { margin-top: 10px; min-height: 34px; padding: 0 14px; border-radius: 6px; font-size: 12.5px; }
.bank__holder { margin-top: 10px; font-size: 13px; letter-spacing: .04em; }

/* ---------- PENUTUP: foto di atas (wajah bebas), teks mulai di area gaun ---------- */
.closing { padding: 0 22px 44px; background: var(--maroon); }
.closing .photo-section__img { bottom: auto; }
.closing .photo-section__img img { height: auto; aspect-ratio: 2 / 3; object-position: 50% 30%; }
.closing::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; z-index: -1;
  aspect-ratio: 2 / 3;
  /* bening di area wajah (±27–40%), pekat di area teks (mulai ±53%) */
  background: linear-gradient(180deg, rgba(73, 2, 4, 0) 40%, rgba(73, 2, 4, .75) 54%, rgba(73, 2, 4, .92) 72%, var(--maroon) 100%);
}
.closing__content { padding-top: calc(var(--col-w) * .8); }
.closing__text { font-size: 13.5px; line-height: 1.75; text-shadow: 0 1px 4px rgba(0, 0, 0, .55); }
.closing__blessing { margin-top: 12px; font-style: italic; font-weight: 600; color: var(--gold); }
.closing__sign { margin-top: 26px; font-style: italic; font-size: 13px; color: rgba(255, 255, 255, .85); }
.closing__families { display: grid; gap: 2px; margin-top: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .82); }
.closing__names { margin-top: 12px; font-family: var(--font-title); font-size: 26px; letter-spacing: .05em; text-transform: uppercase; color: #fff; }
.credit { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(215, 159, 82, .3); }
.credit p { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.credit__brand { font-weight: 700; font-size: 16px; text-decoration: none; color: #fff; }
.credit__wa { display: grid; place-items: center; width: 40px; height: 40px; margin-top: 6px; border-radius: 50%; background: #25d366; color: #fff; }
.credit__wa .icon { width: 22px; height: 22px; }

/* ---------- Tombol musik ---------- */
.music {
  position: fixed;
  right: max(14px, calc((100vw - var(--col)) / 2 + 14px));
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
  z-index: 40;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .6);
}
.music .icon { width: 22px; height: 22px; }
.music__off { display: none; }
.music[aria-pressed="false"] .music__on { display: none; }
.music[aria-pressed="false"] .music__off { display: block; }
.music.is-playing .music__on { animation: spin 6s linear infinite; }
.music.needs-tap { animation: pulse 1.6s ease-out infinite; }

/* ---------- Tombol gulir otomatis (di atas tombol musik) ---------- */
.fab-scroll {
  position: fixed;
  right: max(14px, calc((100vw - var(--col)) / 2 + 14px));
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px + 46px + 10px);
  z-index: 40;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .6);
  transition: background-color .3s;
}
.fab-scroll .icon { width: 22px; height: 22px; }
.fab-scroll[aria-pressed="false"] { background: rgba(60, 40, 20, .78); }
.fab-scroll[aria-pressed="false"]::after {
  content: "";
  position: absolute;
  width: 24px; height: 2px;
  border-radius: 1px;
  background: #fff;
  transform: rotate(-45deg);
}
.fab-scroll.is-running .icon { animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* ---------- Lembar konfirmasi (bottom sheet) ---------- */
.sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); animation: fade .3s ease both; }
.sheet__panel {
  position: relative;
  width: min(100%, var(--col));
  max-height: 90vh;
  overflow: auto;
  padding: 26px 20px calc(env(safe-area-inset-bottom, 0px) + 26px);
  border-radius: 18px 18px 0 0;
  background: var(--cream);
  animation: sheet-in .4s var(--ease) both;
}
.sheet__title { margin-bottom: 18px; font-family: var(--font-title); font-weight: 400; font-size: 20px; text-align: center; color: #3b2a10; }
.sheet__close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .06); }

/* Formulir (dipakai rsvp.js) */
.field { display: grid; gap: 7px; margin-bottom: 1.2rem; text-align: left; }
.field__label { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.field__input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid rgba(166, 124, 46, .4);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}
textarea.field__input { min-height: 90px; resize: vertical; }
.field__input:focus { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(215, 159, 82, .25); }
.field__input[aria-invalid="true"] { border-color: #b3261e; }
.field__error { font-size: 12.5px; color: #b3261e; }
.field__hint, .field__optional { font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink-soft); }
.choice-group { min-width: 0; margin: 0 0 1.2rem; padding: 0; border: 0; }
.choice-group legend { margin-bottom: 7px; padding: 0; }
.choice-group.is-disabled { opacity: .5; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; flex: 1 1 0; min-width: 0; }
.choice--num { flex: 0 0 auto; }
.choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 46px; min-height: 46px;
  padding: 8px 12px;
  border: 1px solid rgba(166, 124, 46, .4);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background-color .2s, border-color .2s, color .2s;
}
.choice input:checked + span { border-color: var(--gold-2); background: var(--gold); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.choice input:disabled + span { opacity: .45; }
.rsvp__actions { display: flex; flex-direction: column; align-items: center; margin-top: 1.4rem; }
.rsvp__actions .btn { width: 100%; max-width: 320px; }
.rsvp__send-label { margin-bottom: .7rem; font-size: 12.5px; text-align: center; color: var(--ink-soft); }
.rsvp__send-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; width: 100%; max-width: 340px; }
.rsvp__send-row .btn { padding: 0 1em; }
.rsvp__status { min-height: 1.5em; margin-top: .8rem; font-size: 13px; text-align: center; color: var(--ink-soft); }
.rsvp__status.is-error { color: #b3261e; }
.rsvp__done { padding: .6rem 0; text-align: center; }
.rsvp__done > .icon { width: 54px; height: 54px; margin: 0 auto .8rem; padding: 13px; border-radius: 50%; background: var(--gold); color: #fff; }
.rsvp__done h3 { font-family: var(--font-title); font-weight: 400; font-size: 19px; color: #3b2a10; }
.rsvp__done p { margin-top: .5rem; font-size: 13.5px; color: var(--ink-soft); }
.rsvp__note { font-size: 12.5px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; color: #fff; background: rgba(12, 2, 3, .95); touch-action: none; overscroll-behavior: contain; opacity: 0; transition: opacity .35s var(--ease); }
.lightbox.is-open { opacity: 1; }
.lightbox__stage { position: absolute; inset: calc(env(safe-area-inset-top, 0px) + 60px) 0 calc(env(safe-area-inset-bottom, 0px) + 110px); display: grid; place-items: center; padding: 0 12px; cursor: grab; }
.lightbox__picture { display: contents; }
.lightbox__stage.is-loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 32px; height: 32px; margin: -16px 0 0 -16px; border: 1px solid rgba(215, 159, 82, .25); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 8px; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; will-change: transform, opacity; }
.lightbox__caption { position: absolute; left: 20px; right: 20px; bottom: calc(env(safe-area-inset-bottom, 0px) + 72px); font-size: 13px; line-height: 1.4; text-align: center; color: rgba(255, 255, 255, .8); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lightbox__counter { position: absolute; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 26px); transform: translateX(-50%); font-size: 11px; letter-spacing: .3em; color: var(--gold); }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid rgba(215, 159, 82, .4); border-radius: 50%; background: rgba(255, 255, 255, .06); color: #fff; touch-action: manipulation; }
.lightbox__close { top: calc(env(safe-area-inset-top, 0px) + 12px); right: 12px; }
.lightbox__prev { left: 18px; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); }
.lightbox__next { right: 18px; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 14px);
  z-index: 90;
  max-width: min(88vw, 420px);
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(30, 20, 10, .9);
  color: #fff;
  font-size: 12.5px;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -12px);
  transition: opacity .35s, transform .45s var(--ease);
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Gambar gagal dimuat → latar polos (tanpa ikon rusak) */
.img-failed { background: linear-gradient(135deg, #efe2c4, #d9b46d) !important; }
.img-failed img { opacity: 0 !important; }

/* ---------- Animasi ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }
@keyframes sheet-in { from { transform: translate3d(0, 100%, 0); } to { transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(215, 159, 82, .7); } 100% { box-shadow: 0 0 0 16px rgba(215, 159, 82, 0); } }
.cover__arch { animation: rise 1s var(--ease) .15s both; }
.cover__bottom { animation: rise 1s var(--ease) .45s both; }
.js [data-reveal] { opacity: 0; transform: translate3d(0, 22px, 0); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.countdown[data-reveal] { transform: translate3d(0, 14px, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
