/* ==========================================================================
   MAUREEN & SHENDI — UNIFIED SEAMLESS ENVELOPE & PAPER LACE MOTION
   ========================================================================== */

:root {
  --bg-olive: #2e3617;
  --bg-ivory: #f6eedc;
  --bg-silk: #fdf9f0;
  --burgundy: #5b181b;
  --burgundy-dark: #431013;
  --burgundy-hover: #732024;
  --ink-primary: #3b2620;
  --ink-secondary: #5f4b3f;
  --ink-muted: #7f6b5a;
  --gold: #c4a46b;
  --gold-dark: #8c6b3d;
  --gold-light: #efe4cb;

  --font-display: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-lining: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-pill: 999px;
  --closed-shift-y: 0px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  font-size: 16px;
  touch-action: manipulation;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink-primary);
  background-color: var(--bg-olive);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Kunci scroll saat amplop masih tertutup atau sedang animasi pembukaan
   Gunakan 100dvh (dynamic viewport height) agar pas di iOS Safari & Chrome Mobile */
body.state-closed,
body.state-flap,
body.state-rising {
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font-family: inherit;
}

/* Latar kertas tekstur hijau zaitun penuh */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--bg-olive);
  background-image: url("assets/web/hero-bg.jpg");
  background-size: cover;
  background-position: center;
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(16, 20, 7, 0.04) 35%,
    rgba(10, 14, 4, 0.34) 100%
  );
}

/* ==========================================================================
   GERBANG PASSWORD PREVIEW SEMENTARA
   ========================================================================== */
.preview-gate {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: rgba(14, 18, 6, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preview-gate.is-unlocked {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preview-gate-card {
  width: 100%;
  max-width: 340px;
  padding: 32px 26px 28px;
  text-align: center;
  background: rgba(20, 26, 9, 0.86);
  border: 1px solid rgba(239, 228, 203, 0.28);
  box-shadow: inset 0 0 0 6px rgba(20, 26, 9, 0.5), inset 0 0 0 7px rgba(196, 164, 107, 0.22), 0 24px 60px rgba(6, 8, 2, 0.6);
}

.gate-seal {
  width: 62px;
  height: 62px;
  object-fit: contain;
  margin: 0 auto 12px;
  display: block;
  filter: drop-shadow(0 5px 10px rgba(6, 8, 2, 0.55));
}

.gate-eyebrow {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  color: var(--gold);
}

.gate-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.38rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #f4ead2;
}

.gate-desc {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.88rem;
  color: rgba(239, 228, 203, 0.85);
}

.gate-input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 0;
  border-bottom: 1px solid rgba(239, 228, 203, 0.45);
  background: rgba(255, 250, 240, 0.07);
  color: #fdf9f0;
  font-family: var(--font-lining);
  font-size: 1rem;
  letter-spacing: 0.24em;
  text-align: center;
}

.gate-input::placeholder {
  letter-spacing: 0.06em;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.86rem;
  color: rgba(239, 228, 203, 0.5);
}

.gate-input:focus {
  outline: none;
  border-bottom-color: var(--gold-light);
  background: rgba(255, 250, 240, 0.12);
}

.gate-error {
  margin: 0 0 12px;
  font-size: 0.74rem;
  color: #f3b5a8;
}

.gate-btn {
  min-width: 170px;
  padding: 10px 26px;
  margin-top: 6px;
  font-size: 0.78rem;
}

/* ==========================================================================
   PANGGUNG TUNGGAL TERPADU
   ========================================================================== */
.invitation-stage {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  /* Padding bawah lega (96px) agar tombol Tanda Kasih tidak tertutup bar bawah HP / badge */
  padding: 16px 14px 96px;
}

.editorial-column {
  width: 100%;
  max-width: 470px;
  margin: 0 auto;
  will-change: transform;
  /* Saat amplop tertutup, geser kolom sehingga amplop tertutup tepat di tengah layar */
  transform: translate3d(0, var(--closed-shift-y), 0);
  transition: transform 1.48s cubic-bezier(0.32, 0.08, 0.24, 1);
}

/* Fase 2+: Amplop turun mulus ke posisi akhir menyesuaikan ruang kertas yang naik */
body.state-rising .editorial-column,
body.state-accents .editorial-column,
body.state-open .editorial-column {
  transform: translate3d(0, 0, 0);
}

/* Bar kecil Tutup Amplop di atas */
.top-utility-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

body.state-accents .top-utility-bar,
body.state-open .top-utility-bar {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.replay-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(239, 228, 203, 0.32);
  background: rgba(20, 26, 9, 0.48);
  color: rgba(244, 234, 210, 0.88);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.replay-pill:hover {
  background: rgba(82, 20, 24, 0.75);
  border-color: var(--gold-light);
}

/* ==========================================================================
   RAKITAN AMPLOP TUNGGAL + KERTAS LACE (ZERO SCENE SWAP!)
   ========================================================================== */
.opened-assembly {
  position: relative;
  width: 100%;
  padding-top: 20px;
  padding-bottom: 84px;
}

/* Layer 1: Amplop terbuka belakang (flap segitiga atas membuka mulus dari lipatan) */
.opened-env-back {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: auto;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 20px 34px rgba(8, 10, 3, 0.62));
  opacity: 0;
  clip-path: inset(37.6% 0 0 0);
  transition:
    opacity 0.3s ease,
    clip-path 0.78s cubic-bezier(0.32, 0.08, 0.24, 1);
}

body.state-flap .opened-env-back,
body.state-rising .opened-env-back,
body.state-accents .opened-env-back,
body.state-open .opened-env-back {
  opacity: 1;
  clip-path: inset(0% 0 0 0);
}

/* Layer 2: Slot klip kertas — hanya memotong sisi BAWAH tepat di garis bawah amplop,
   membiarkan atas/kiri/kanan bebas agar wax seal & foto lace bulat tidak pernah terpotong! */
.letter-mask-slot {
  position: relative;
  z-index: 2;
  width: 100%;
  /* -120px atas/kiri/kanan = bebas; +78px bawah = terpotong rapi di dalam badan amplop */
  clip-path: inset(-120px -120px 0px -120px);
}

/* Kertas Surat Vintage Paper Lace — background di ::before (z-index: 1) agar SM Laces bisa berada di layer belakang kertas (z-index: 0) */
.lace-letter-sheet {
  position: relative;
  width: 88%;
  margin: 0 auto;
  padding: 44px 28px 174px;
  will-change: transform, opacity;
  /* Terbenam di dalam amplop saat tertutup */
  opacity: 0;
  transform: translate3d(0, 72%, 0) scale(0.94);
  pointer-events: none;
  transition:
    transform 1.48s cubic-bezier(0.32, 0.08, 0.24, 1),
    opacity 0.55s ease;
}

.lace-letter-sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/web/paper-vintage-lace.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 12px 26px rgba(10, 12, 4, 0.45));
}

/* Fase 2+: Kertas naik mulus keluar dari dalam kantong amplop! */
body.state-rising .lace-letter-sheet,
body.state-accents .lace-letter-sheet,
body.state-open .lace-letter-sheet {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

body.state-open .lace-letter-sheet {
  pointer-events: auto;
}

/* --- AKSEN YANG MUNCUL TERAKHIR (SETELAH KERTAS & AMPLOP UTAMA SELESAI) --- */

/* Wax seal realistis miring di pojok kiri atas kertas — diperbesar */
.corner-wax-seal {
  position: absolute;
  top: -26px;
  left: -24px;
  width: 104px;
  height: 104px;
  object-fit: contain;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 6px 12px rgba(18, 6, 6, 0.5));
  opacity: 0;
  transform: rotate(-22deg) scale(0.68);
  transition:
    opacity 0.48s ease,
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
}

body.state-accents .corner-wax-seal,
body.state-open .corner-wax-seal {
  opacity: 1;
  transform: rotate(-11deg) scale(1);
}

/* Ornamen Logo SM Laces 2 di sisi kanan kertas */
.circle-cameo {
  position: absolute;
  right: -34px;
  top: 348px;
  width: 104px;
  height: 104px;
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 8px 16px rgba(12, 10, 6, 0.35));
  opacity: 0;
  transform: translateX(22px) scale(0.8);
  transition:
    opacity 0.5s ease 0.14s,
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1) 0.14s;
}

.circle-cameo.is-lace-crest {
  z-index: 5;
  width: 116px;
  height: auto;
  right: -42px;
  top: 298px;
  transform: translateX(22px) rotate(22deg) scale(0.8);
  filter: drop-shadow(0 6px 12px rgba(10, 12, 4, 0.44)) drop-shadow(0 1px 2px rgba(42, 24, 16, 0.3));
}

body.state-accents .circle-cameo,
body.state-open .circle-cameo {
  opacity: 1;
  transform: translateX(0) scale(1);
}

body.state-accents .circle-cameo.is-lace-crest,
body.state-open .circle-cameo.is-lace-crest {
  opacity: 1;
  transform: translateX(0) rotate(15deg) scale(1);
}

.cameo-lace-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.cameo-photo {
  position: absolute;
  inset: 19%;
  width: 62%;
  height: 62%;
  object-fit: cover;
  border-radius: 50%;
  filter: sepia(16%) contrast(98%);
}

.cameo-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Layer 3: Kantong Depan Amplop Beludru Maroon Menutupi Bagian Bawah Kertas */
.opened-env-front-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

body.state-flap .opened-env-front-wrap,
body.state-rising .opened-env-front-wrap,
body.state-accents .opened-env-front-wrap,
body.state-open .opened-env-front-wrap {
  opacity: 1;
}

.opened-env-front {
  display: block;
  width: 100%;
  height: auto;
}

/* Wax seal di tengah kantong depan (muncul terakhir bersama aksen logo) */
.pocket-wax-seal {
  position: absolute;
  left: 50%;
  bottom: 13.5%;
  width: 22.5%;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(10, 2, 3, 0.72));
  opacity: 0;
  transform: translateX(-50%) scale(0.72);
  transition:
    opacity 0.48s ease 0.06s,
    transform 0.58s cubic-bezier(0.22, 1, 0.36, 1) 0.06s;
}

body.state-accents .pocket-wax-seal,
body.state-open .pocket-wax-seal {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* ==========================================================================
   LAYER 4: JANGKAR SAMPUL TERTUTUP (TERPASANG TEPAT DI BADAN AMPLOP YANG SAMA)
   ========================================================================== */
.closed-cover-anchor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  /* Rasio persis sama dengan amplop-buka-back/front (703x700) */
  aspect-ratio: 703 / 700;
  z-index: 6;
  pointer-events: none;
}

body.state-closed .closed-cover-anchor {
  pointer-events: auto;
}

/* Header Mempelai tepat di atas badan amplop tertutup (badan amplop = 62.43% bawah) */
.cover-header {
  position: absolute;
  left: 50%;
  bottom: calc(62.43% + 22px);
  width: min(520px, 92vw);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: opacity 0.38s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

body:not(.state-closed) .cover-header {
  opacity: 0;
  transform: translateX(-50%) translateY(-18px);
  pointer-events: none;
}

.cover-eyebrow {
  margin: 0 0 7px;
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 1.8vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #efe4cb;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.cover-couple-line {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.32rem, 4.3vw, 2.02rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f4ead2;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

.cover-amp-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(220px, 54vw);
  margin: 5px auto 6px;
  color: #efe4cb;
}

.cover-amp-divider span:first-child,
.cover-amp-divider span:last-child {
  flex: 1;
  height: 1px;
  background: rgba(244, 234, 210, 0.72);
}

.cover-amp {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1;
}

/* Badan amplop tertutup sejajar pixel-by-pixel dengan kantong amplop terbuka */
.env-closed-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62.43%;
  cursor: pointer;
  user-select: none;
  outline: none;
  filter: drop-shadow(0 20px 32px rgba(8, 10, 3, 0.62));
  transition: opacity 0.42s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

body.state-closed .env-closed-body:hover,
body.state-closed .env-closed-body:focus-visible {
  transform: translateY(-3px) scale(1.01);
}

body:not(.state-closed) .env-closed-body {
  opacity: 0;
  pointer-events: none;
}

.env-closed-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.env-closed-seal {
  position: absolute;
  left: 50%;
  top: 51.8%;
  width: 24.5%;
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(0 5px 8px rgba(10, 2, 3, 0.72));
}

/* Blok Kepada & Tombol Buka Undangan tepat di bawah badan amplop tertutup */
.cover-guest-block {
  position: absolute;
  left: 50%;
  top: calc(100% + 18px);
  width: min(520px, 92vw);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: opacity 0.36s ease, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

body:not(.state-closed) .cover-guest-block {
  opacity: 0;
  transform: translateX(-50%) translateY(18px);
  pointer-events: none;
}

.cover-guest-card {
  position: relative;
  width: min(364px, 88vw);
  padding: 13px 22px 14px;
  margin-bottom: 14px;
  text-align: center;
  filter: drop-shadow(0 10px 22px rgba(6, 8, 2, 0.42));
}

.cover-guest-card-inner {
  position: relative;
  z-index: 1;
}

.guest-label {
  margin: 0 0 4px;
  font-size: clamp(0.68rem, 2.1vw, 0.8rem);
  color: #efe5ce;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.guest-name {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 4.1vw, 1.54rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-wrap: balance;
  word-break: break-word;
  color: #f6ecd5;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
}

.guest-disclaimer {
  margin: 0;
  font-size: clamp(0.62rem, 1.85vw, 0.7rem);
  font-weight: 300;
  color: rgba(239, 229, 206, 0.86);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.btn-cover-plaque {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 224px;
  padding: 12px 32px;
  border: 0;
  background:
    radial-gradient(circle at 0 0, transparent 7px, #f4e8d0 7.6px) top left,
    radial-gradient(circle at 100% 0, transparent 7px, #f4e8d0 7.6px) top right,
    radial-gradient(circle at 0 100%, transparent 7px, #f4e8d0 7.6px) bottom left,
    radial-gradient(circle at 100% 100%, transparent 7px, #f4e8d0 7.6px) bottom right;
  background-size: 51% 51%;
  background-repeat: no-repeat;
  color: #6b211e;
  font-family: var(--font-display);
  font-size: clamp(0.84rem, 2.4vw, 0.96rem);
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  cursor: pointer;
  filter: drop-shadow(0 10px 22px rgba(8, 10, 3, 0.46));
  transition: transform 0.22s ease, filter 0.22s ease;
}

.btn-cover-plaque:hover {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 14px 28px rgba(8, 10, 3, 0.56)) brightness(1.03);
}

/* ==========================================================================
   TIPOGRAFI & FORM VINTAGE LETTERPRESS DI DALAM KERTAS CREAM
   ========================================================================== */
.lace-letter-content {
  position: relative;
  z-index: 3;
  text-align: center;
}

/* ==========================================================================
   FOTO UTAMA DI ATAS "THE WEDDING OF" (4 PILIHAN FRAME VINTAGE)
   ========================================================================== */
.hero-photo-box {
  position: relative;
  margin: 0 auto 8px;
  display: inline-block;
}

.hero-photo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  filter: sepia(12%) contrast(98%) saturate(92%);
}

.photo-pin-seal,
.hero-gold-oval-overlay,
.hero-oval-lace-overlay {
  display: none;
  pointer-events: none;
}

/* --- GAYA UTAMA: BINGKAI OVAL EMAS LILY (RINGKAS, KERTAS TIDAK MELAR) --- */
.hero-photo-box.frame-gold-oval {
  width: 174px;
  aspect-ratio: 1024 / 682;
}

.hero-photo-box.frame-gold-oval .hero-photo-frame {
  position: absolute;
  inset: 17% 16%;
  width: 68%;
  height: 66%;
  border-radius: 50%;
  overflow: hidden;
  background: #e9dec9;
}

.hero-photo-box.frame-gold-oval .hero-gold-oval-overlay {
  display: block;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(48, 28, 12, 0.22));
}

/* Saat mode polaroid aktif, wax seal menempel di sudut foto (sembunyikan seal sudut kertas biar tidak dobel) */
.lace-letter-sheet.uses-photo-seal .corner-wax-seal {
  display: none;
}

/* --- GAYA 1: POLAROID / FOTO CETAK VINTAGE DITEMPEL WAX SEAL --- */
.hero-photo-box.frame-polaroid {
  width: 214px;
  transform: rotate(-1.8deg);
}

.hero-photo-box.frame-polaroid .hero-photo-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 7px 7px 18px;
  background: linear-gradient(180deg, #fffdf8 0%, #f7efe0 100%);
  border: 1px solid rgba(140, 107, 61, 0.28);
  box-shadow: 0 8px 18px rgba(42, 24, 16, 0.22), 0 1px 3px rgba(42, 24, 16, 0.14);
}

.hero-photo-box.frame-polaroid .photo-pin-seal {
  display: block;
  position: absolute;
  top: -22px;
  left: -24px;
  width: 78px;
  height: 78px;
  object-fit: contain;
  z-index: 6;
  filter: drop-shadow(0 5px 10px rgba(18, 6, 6, 0.48));
  opacity: 0;
  transform: rotate(-14deg) scale(0.7);
  transition: opacity 0.48s ease, transform 0.58s cubic-bezier(0.22, 1, 0.36, 1);
}

body.state-accents .hero-photo-box.frame-polaroid .photo-pin-seal,
body.state-open .hero-photo-box.frame-polaroid .photo-pin-seal {
  opacity: 1;
  transform: rotate(-9deg) scale(1);
}

/* --- GAYA 2: ARCH VINTAGE GARIS EMAS GANDA --- */
.hero-photo-box.frame-arch {
  width: 152px;
}

.hero-photo-box.frame-arch .hero-photo-frame {
  width: 100%;
  aspect-ratio: 3 / 3.7;
  border-radius: 110px 110px 6px 6px;
  overflow: hidden;
  border: 1.5px solid rgba(140, 107, 61, 0.52);
  outline: 1px solid rgba(140, 107, 61, 0.34);
  outline-offset: 4px;
  box-shadow: 0 8px 18px rgba(42, 24, 16, 0.16);
}

/* --- GAYA 3: PRANGKO VINTAGE (POSTAGE STAMP) --- */
.hero-photo-box.frame-stamp {
  width: 204px;
  padding: 10px;
  background: radial-gradient(circle at 0 50%, transparent 4px, #fbf4e4 4.4px) left / 100% 14px repeat-y;
  background: #fbf4e4;
  -webkit-mask:
    radial-gradient(circle at 7px 0, transparent 4.5px, #000 5px) top / 14px 51% repeat-x,
    radial-gradient(circle at 7px 100%, transparent 4.5px, #000 5px) bottom / 14px 51% repeat-x;
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  filter: drop-shadow(0 5px 12px rgba(42, 24, 16, 0.24));
}

.hero-photo-box.frame-stamp .hero-photo-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(140, 107, 61, 0.32);
  overflow: hidden;
}

/* --- GAYA 4: LILY LACE OVAL --- */
.hero-photo-box.frame-oval {
  width: 210px;
  height: 168px;
}

.hero-photo-box.frame-oval .hero-photo-frame {
  position: absolute;
  inset: 16% 14%;
  width: 72%;
  height: 68%;
  border-radius: 50%;
  overflow: hidden;
}

.hero-photo-box.frame-oval .hero-oval-lace-overlay {
  display: block;
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(42, 24, 16, 0.18));
}

.letter-top-eyebrow {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-secondary);
}

/* Mempelai Tersusun Atas-Bawah agar Besar & Berwibawa */
.couple-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.couple-person {
  max-width: 320px;
}

.couple-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.26rem, 4.3vw, 1.52rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.06em;
  color: var(--burgundy);
}

.couple-parents {
  margin: 1px 0 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.18;
  color: var(--ink-secondary);
}

.couple-stack-amp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 130px;
  margin: 2px auto 3px;
  color: var(--gold-dark);
}

.couple-stack-amp span:first-child,
.couple-stack-amp span:last-child {
  flex: 1;
  height: 1px;
  background: rgba(140, 107, 61, 0.36);
}

.amp-char {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1;
}

.vintage-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 62%;
  margin: 7px auto 6px;
  color: var(--gold-dark);
}

.vintage-divider.compact {
  width: 48%;
  margin: 11px auto 9px;
}

.vintage-divider span {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 107, 61, 0.45), transparent);
}

/* Tanggal, Jam & Lokasi — Lebih Jelas, Rapat & Menyatu */
.event-block {
  padding: 0 8px;
}

.event-date-heading {
  margin: 0 0 4px;
  font-family: var(--font-lining);
  font-size: clamp(0.88rem, 2.9vw, 0.98rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0.03em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink-primary);
}

.sessions-inline {
  display: inline-flex;
  align-items: stretch;
  justify-content: center;
  border-top: 1px solid rgba(140, 107, 61, 0.34);
  border-bottom: 1px solid rgba(140, 107, 61, 0.34);
  padding: 4px 0;
  margin-bottom: 6px;
}

.session-unit {
  padding: 0 13px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.session-unit + .session-unit {
  border-left: 1px solid rgba(140, 107, 61, 0.34);
}

.session-unit-label {
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.session-unit-time {
  font-family: var(--font-lining);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--burgundy);
}

.venue-eyebrow {
  margin: 0 0 1px;
  font-family: var(--font-display);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.venue-title {
  margin: 0 0 1px;
  font-family: var(--font-lining);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: 0.02em;
  color: var(--burgundy);
}

.venue-sub {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.88rem;
  line-height: 1.25;
  color: var(--ink-secondary);
}

.dresscode-wrap {
  margin: 0 auto 2px;
  max-width: 266px;
}

.venue-dresscode-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.dresscode-swatches {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
}

.dresscode-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #faf3e4;
  box-shadow: 0 0 0 1px rgba(140, 107, 61, 0.42), 0 1px 3px rgba(36, 20, 14, 0.18);
}

.dresscode-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 6px;
  border-top: 1px solid rgba(140, 107, 61, 0.24);
  border-bottom: 1px solid rgba(140, 107, 61, 0.24);
  padding: 5px 0;
}

.dresscode-group {
  padding: 0 7px;
}

.dresscode-group + .dresscode-group {
  border-left: 1px solid rgba(140, 107, 61, 0.24);
}

.dresscode-group-label {
  margin: 0 0 1px;
  font-family: var(--font-display);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.dresscode-group-detail {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.72rem;
  line-height: 1.22;
  color: var(--ink-secondary);
}

.venue-dresscode-ps {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 0.74rem;
  line-height: 1.28;
  text-wrap: balance;
  color: var(--ink-primary);
}

.venue-btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.venue-distance-row {
  display: flex;
  justify-content: center;
  margin-bottom: 11px;
}

.btn-distance-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 4px 12px;
  border: 1px solid rgba(140, 107, 61, 0.42);
  border-radius: var(--radius-pill);
  background: rgba(140, 107, 61, 0.08);
  color: var(--burgundy);
  font-family: var(--font-display);
  font-size: 0.54rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-distance-link:hover {
  background: rgba(91, 24, 27, 0.1);
  border-color: var(--burgundy);
  transform: translateY(-1px);
}

/* Tombol Vintage Notched-Corner Plaque (senada tombol Buka Undangan & Tanda Kasih!) */
.btn-plaque-burgundy,
.btn-plaque-parchment {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-plaque-burgundy {
  padding: 9px 18px;
  font-size: 0.62rem;
  color: #f6ecd5;
  background:
    radial-gradient(circle at 0 0, transparent 4.5px, #5b181b 5px) top left,
    radial-gradient(circle at 100% 0, transparent 4.5px, #5b181b 5px) top right,
    radial-gradient(circle at 0 100%, transparent 4.5px, #5b181b 5px) bottom left,
    radial-gradient(circle at 100% 100%, transparent 4.5px, #5b181b 5px) bottom right;
  background-size: 51% 51%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 3px 6px rgba(42, 16, 14, 0.24));
}

.btn-plaque-burgundy:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 5px 10px rgba(42, 16, 14, 0.34)) brightness(1.1);
}

.btn-plaque-parchment {
  padding: 9px 16px;
  font-size: 0.62rem;
  color: var(--burgundy);
  background:
    radial-gradient(circle at 0 0, transparent 4.5px, #e6d8be 5px) top left,
    radial-gradient(circle at 100% 0, transparent 4.5px, #e6d8be 5px) top right,
    radial-gradient(circle at 0 100%, transparent 4.5px, #e6d8be 5px) bottom left,
    radial-gradient(circle at 100% 100%, transparent 4.5px, #e6d8be 5px) bottom right;
  background-size: 51% 51%;
  background-repeat: no-repeat;
}

.btn-plaque-parchment:hover {
  transform: translateY(-1px);
  filter: brightness(0.95);
}

/* Versi mungil khusus Google Maps & Simpan Tanggal */
.btn-mini {
  padding: 6px 12px;
  font-size: 0.54rem;
  letter-spacing: 0.09em;
}

.btn-full {
  width: 100%;
  padding: 9px 16px;
}

/* RSVP Ringkas — Gaya Kartu Surat Vintage (Menyatu dengan Kertas Cream!) */
.paper-rsvp {
  max-width: 266px;
  margin: 0 auto;
}

.rsvp-heading {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--burgundy);
}

.rsvp-quota-note {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--ink-secondary);
}

.rsvp-name-wrap {
  position: relative;
}

.rsvp-lock-tag {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.68rem;
  opacity: 0.65;
  pointer-events: none;
}

.paper-rsvp-form input[type="text"][readonly] {
  background: rgba(140, 107, 61, 0.12);
  border-bottom-style: dashed;
  color: var(--burgundy);
  font-weight: 700;
  cursor: default;
  padding-right: 22px;
}

.paper-rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

/* Input Nama seperti garis cetak RSVP di atas kertas surat */
.paper-rsvp-form input[type="text"] {
  width: 100%;
  padding: 6px 6px 5px;
  border: 0;
  border-bottom: 1px solid rgba(91, 24, 27, 0.38);
  border-radius: 0;
  background: rgba(140, 107, 61, 0.06);
  color: var(--ink-primary);
  font-family: var(--font-lining);
  font-size: 0.74rem;
  text-align: center;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.paper-rsvp-form input[type="text"]::placeholder {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.paper-rsvp-form input[type="text"]:focus {
  outline: none;
  border-bottom-color: var(--burgundy);
  background: rgba(140, 107, 61, 0.11);
}

.paper-guests-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 30px;
}

.paper-rsvp-form select {
  width: 100%;
  height: 30px;
  margin: 0;
  padding: 1px 6px 0;
  border: 1px solid rgba(91, 24, 27, 0.32);
  border-radius: 0;
  background: rgba(140, 107, 61, 0.07);
  color: var(--ink-primary);
  font-family: var(--font-lining);
  font-size: 0.64rem;
  line-height: 28px;
  font-variant-numeric: lining-nums;
  cursor: pointer;
}

.paper-rsvp-form select:focus {
  outline: none;
  border-color: var(--burgundy);
}

.paper-rsvp-form select.is-locked {
  background: rgba(140, 107, 61, 0.12);
  border-style: dashed;
  color: var(--burgundy);
  font-weight: 700;
  opacity: 1;
  -webkit-text-fill-color: var(--burgundy);
  cursor: default;
}

.paper-rsvp-row {
  display: grid;
  grid-template-columns: 1fr 78px;
  gap: 6px;
  align-items: center;
}

.paper-toggle-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.paper-toggle {
  display: block;
  position: relative;
  cursor: pointer;
}

.paper-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Pilihan Hadir / Tidak Hadir gaya stamp/plaque surat vintage — tinggi presisi sama dengan select jumlah orang */
.paper-toggle span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 4px;
  border: 1px solid rgba(91, 24, 27, 0.32);
  border-radius: 0;
  background: rgba(140, 107, 61, 0.07);
  color: var(--ink-secondary);
  font-family: var(--font-display);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1;
  transition: all 0.2s ease;
}

.paper-toggle input:checked + span {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: #f6ecd5;
}

.paper-rsvp-confirmed {
  padding: 10px 8px;
  border: 1px dashed rgba(91, 24, 27, 0.38);
  background: rgba(140, 107, 61, 0.08);
}

.confirmed-badge {
  margin: 0 0 3px;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #365c39;
}

.confirmed-detail {
  margin: 0 0 6px;
  font-family: var(--font-lining);
  font-size: 0.72rem;
  color: var(--ink-primary);
}

.link-vintage {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.76rem;
  color: var(--burgundy);
  text-decoration: underline;
  cursor: pointer;
}

/* ==========================================================================
   BAGIAN BAWAH: FOTO LACE OVAL + KOLOM HIJAU & TOMBOL POPUP QRIS (MUNCUL TERAKHIR)
   ========================================================================== */
.gratitude-section {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 22px;
  padding: 0 4px;
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
  transition:
    opacity 0.62s ease 0.26s,
    transform 0.68s cubic-bezier(0.22, 1, 0.36, 1) 0.26s;
}

body.state-accents .gratitude-section,
body.state-open .gratitude-section {
  opacity: 1;
  transform: translateY(0);
}

body.state-open .gratitude-section {
  pointer-events: auto;
}

.oval-cameo {
  position: relative;
  flex: 0 0 156px;
  width: 156px;
  height: 126px;
  z-index: 3;
  margin-right: -28px;
  filter: drop-shadow(0 10px 18px rgba(8, 10, 3, 0.45));
}

.cameo-oval-photo {
  position: absolute;
  inset: 16% 14%;
  width: 72%;
  height: 68%;
  object-fit: cover;
  border-radius: 50%;
  filter: sepia(14%) contrast(98%);
}

.cameo-oval-frame {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gratitude-card {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 18px 18px 18px 34px;
  text-align: center;
  filter: drop-shadow(0 10px 22px rgba(6, 8, 2, 0.42));
}

.torn-paper-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.gratitude-card-inner {
  position: relative;
  z-index: 1;
}

.gratitude-text {
  margin: 0 0 13px;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  line-height: 1.45;
  color: #f3e9d2;
}

.btn-gift-plaque {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border: 0;
  white-space: nowrap;
  background:
    radial-gradient(circle at 0 0, transparent 5px, #f4e8d0 5.5px) top left,
    radial-gradient(circle at 100% 0, transparent 5px, #f4e8d0 5.5px) top right,
    radial-gradient(circle at 0 100%, transparent 5px, #f4e8d0 5.5px) bottom left,
    radial-gradient(circle at 100% 100%, transparent 5px, #f4e8d0 5.5px) bottom right;
  background-size: 51% 51%;
  background-repeat: no-repeat;
  color: #6b211e;
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  filter: drop-shadow(0 6px 14px rgba(6, 8, 2, 0.42));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-gift-plaque:hover {
  transform: translateY(-1px) scale(1.02);
  filter: drop-shadow(0 9px 18px rgba(6, 8, 2, 0.52)) brightness(1.03);
}

/* ==========================================================================
   MODAL POPUP QRIS & TRANSFER BANK + TOAST (DENGAN ANIMASI FADE & ZOOM HALUS)
   ========================================================================== */
@keyframes modalBackdropIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalCardIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 18, 7, 0.66);
  backdrop-filter: blur(5px);
  animation: modalBackdropIn 0.22s ease both;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 370px;
  padding: 26px 22px 22px;
  border-radius: 4px;
  background: #f8f0df;
  border: 1px solid rgba(140, 107, 61, 0.48);
  box-shadow: inset 0 0 0 6px #f8f0df, inset 0 0 0 7px rgba(140, 107, 61, 0.28), 0 24px 60px rgba(8, 10, 3, 0.52);
  text-align: center;
  animation: modalCardIn 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 0;
  border: 1px solid rgba(140, 107, 61, 0.34);
  background: rgba(255, 252, 244, 0.55);
  color: var(--ink-secondary);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.modal-eyebrow {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  color: var(--gold-dark);
}

.modal-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--burgundy);
}

.modal-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 16px;
}

.modal-tab {
  padding: 8px 12px;
  border: 1px solid rgba(91, 24, 27, 0.3);
  border-radius: 0;
  background: rgba(140, 107, 61, 0.08);
  color: var(--ink-secondary);
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-tab.is-active {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: #f6ecd5;
}

.qris-nmid {
  margin: 0 0 12px;
  font-size: 0.72rem;
  color: var(--ink-muted);
}

.qris-code-box {
  width: 210px;
  height: 210px;
  margin: 0 auto 12px;
  padding: 12px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(140, 107, 61, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qris-code-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qris-hint {
  margin: 0 0 14px;
  font-size: 0.76rem;
  color: var(--ink-secondary);
}

.btn-download-qris {
  padding: 9px 20px;
  font-size: 0.64rem;
}

.modal-card-compact {
  max-width: 330px;
}

.calendar-modal-sub {
  margin: -6px 0 16px;
  font-family: var(--font-lining);
  font-size: 0.74rem;
  font-variant-numeric: lining-nums;
  color: var(--ink-secondary);
}

.calendar-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Modal Hitung Jarak & Langkah */
.distance-modal-sub {
  margin: -6px 0 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--ink-secondary);
}

.distance-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.distance-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(91, 24, 27, 0.34);
  border-radius: 0;
  background: #fffdf8;
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.3;
  text-align: center;
  transition: border-color 0.2s ease;
}

.distance-input::placeholder {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.distance-input:focus {
  outline: none;
  border-color: var(--burgundy);
}

.distance-gps-link {
  align-self: center;
  margin-top: 1px;
  font-size: 0.78rem;
}

.distance-error {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: #8f2222;
}

.distance-result {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px dashed rgba(140, 107, 61, 0.45);
}

.distance-origin-label {
  margin: 0 0 9px;
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.distance-stats-box {
  border-top: 1px solid rgba(140, 107, 61, 0.32);
  border-bottom: 1px solid rgba(140, 107, 61, 0.32);
  padding: 8px 0 9px;
  margin-bottom: 10px;
}

.distance-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 6px;
}

.distance-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 8px;
}

.distance-stat + .distance-stat {
  border-left: 1px solid rgba(140, 107, 61, 0.32);
}

.distance-stat-label {
  font-family: var(--font-display);
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
}

.distance-stat-value {
  font-family: var(--font-sans);
  font-size: 0.98rem;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--burgundy);
}

.distance-quip {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.3;
  color: var(--burgundy);
}

.distance-note {
  margin: 0 0 11px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--ink-secondary);
}

.distance-route-btn {
  text-decoration: none;
}

.bank-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background: #fffdf8;
  border: 1px solid rgba(140, 107, 61, 0.24);
}

.bank-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-dark);
}

.bank-num {
  margin: 3px 0 2px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink-primary);
}

.bank-holder {
  margin: 0;
  font-size: 0.72rem;
  color: var(--ink-secondary);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(14px);
  z-index: 300;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--burgundy-dark);
  border: 1px solid rgba(239, 228, 203, 0.35);
  color: #fdf9f0;
  font-size: 0.78rem;
  box-shadow: 0 12px 26px rgba(8, 10, 3, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

/* ==========================================================================
   RESPONSIVE MOBILE POLISH
   ========================================================================== */
@media (max-width: 480px) {
  .lace-letter-sheet {
    width: 90%;
    padding: 38px 22px 160px;
  }

  .corner-wax-seal {
    width: 84px;
    height: 84px;
    top: -20px;
    left: -18px;
  }

  .circle-cameo {
    width: 86px;
    height: 86px;
    right: -18px;
    top: 332px;
  }

  .circle-cameo.is-lace-crest {
    width: 96px;
    height: auto;
    right: -28px;
    top: 292px;
  }

  .hero-photo-box.frame-gold-oval {
    width: 156px;
  }

  .hero-photo-box.frame-polaroid {
    width: 196px;
  }

  .hero-photo-box.frame-polaroid .photo-pin-seal {
    width: 70px;
    height: 70px;
    top: -19px;
    left: -20px;
  }

  .opened-assembly {
    padding-bottom: 72px;
  }

  .oval-cameo {
    flex: 0 0 132px;
    width: 132px;
    height: 108px;
    margin-right: -22px;
  }

  .gratitude-card {
    padding: 15px 14px 15px 28px;
  }

  .gratitude-text {
    font-size: 0.82rem;
  }

  .btn-gift-plaque {
    gap: 5px;
    padding: 8px 13px;
    font-size: 0.56rem;
    letter-spacing: 0.06em;
  }
}
