/* ========== 1. WARNA & FONT (ubah di sini kalau mau ganti) ========== */
:root {
  --navy-gelap: #101D36;
  --navy: #243B60;
  --biru-lembut: #7896BD;
  --ivory: #FFF9EF;
  --pink: #F3C9D8;
  --burgundy: #702B43;

  --font-nama: "Pinyon Script", cursive;
  --font-judul: "Cormorant Garamond", serif;
  --font-isi: "Jost", sans-serif;

  /* kurva gerak yang halus (dipakai di banyak animasi) */
  --halus: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ========== 2. DASAR HALAMAN ========== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  background: var(--navy-gelap);
}
body {
  font-family: var(--font-isi);
  font-weight: 300;
  line-height: 1.7;
  color: var(--navy-gelap);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.terkunci { overflow: hidden; height: 100vh; }
/* selama opening, halaman di belakangnya tidak digambar (supaya ringan) */
body.terkunci #undangan { visibility: hidden; }

/* ========== 3. SETIAP BAGIAN ========== */
#undangan section {
  position: relative;
  overflow: hidden;
  padding: 90px 24px;
  text-align: center;
}
#undangan section > *:not(.bunga):not(.kilau) { position: relative; z-index: 2; }

#hero {
  background: radial-gradient(ellipse at 50% 0%, var(--navy) 0%, var(--navy-gelap) 80%);
  color: var(--ivory);
}
#countdown {
  background: radial-gradient(ellipse at 50% 0%, var(--navy) 0%, var(--navy-gelap) 82%);
  color: var(--ivory);
}
#kutipan, #rsvp {
  background: linear-gradient(180deg, var(--navy), var(--navy-gelap));
  color: var(--ivory);
}
#sapaan, #acara, #gift {
  background: linear-gradient(180deg, var(--ivory), #FBEFE9);
}
#mempelai, #turut, #penutup {
  background: radial-gradient(circle at 50% 30%, var(--ivory), #F8E1E8);
}

/* ========== 4. TULISAN ========== */
h1 {
  font-family: var(--font-nama);
  font-weight: 400;
  font-size: clamp(3.4rem, 15vw, 6.5rem);
  line-height: 1.1;
  margin: 12px 0;
}
h1 span { display: block; }
h2 {
  font-family: var(--font-judul);
  font-weight: 500;
  font-size: 2rem;
  color: var(--burgundy);
  margin-bottom: 16px;
}
#kutipan h2, #rsvp h2 { color: var(--pink); }

/* nama lengkap mempelai: serif yang mudah dibaca */
h3 {
  font-family: var(--font-judul);
  font-weight: 500;
  font-size: clamp(1.75rem, 7.2vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--burgundy);
  margin-bottom: 4px;
}
.mempelai-info p { font-size: 0.98rem; }

.dan {
  font-family: var(--font-nama);
  font-size: 2.8rem;
  line-height: 1.2;
  color: var(--burgundy);
  margin: 10px 0 6px;
}
.nama-tamu { font-size: 2.3rem; margin: 6px 0 0; }

/* tulisan kecil di atas judul bagian */
.label-atas {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 6px;
}

#hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
#hero p:first-child { letter-spacing: 0.25em; color: var(--pink); }

/* --- hiasan garis + berlian (dipakai di beberapa bagian) --- */
.hias-kutipan {
  display: flex; align-items: center; justify-content: center;
  gap: 12px;
  max-width: 240px;
  margin: 26px auto 20px;
}
.hias-kutipan i {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink));
}
.hias-kutipan i:last-child { transform: scaleX(-1); }
.hias-kutipan b {
  width: 8px; height: 8px;
  background: var(--pink);
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(243, 201, 216, 0.7);
}
.hias-kutipan.terang i { background: linear-gradient(90deg, transparent, var(--burgundy)); }
.hias-kutipan.terang b { background: var(--burgundy); box-shadow: none; }

/* --- kutipan: ayat Arab, terjemahan, sumber, doa (di dalam satu kartu) --- */
.kartu-kutipan {
  position: relative;
  max-width: 520px;
  margin: 0 auto;
  padding: 42px 24px 38px;
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.13), rgba(255, 249, 239, 0.05));
  border: 1px solid rgba(243, 201, 216, 0.38);
  border-radius: 30px;
  box-shadow: 0 26px 56px rgba(4, 9, 22, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.kartu-kutipan::before {
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid rgba(243, 201, 216, 0.18);
  border-radius: 23px;
  pointer-events: none;
}

/* teks Arab (ayat dan doa) */
.arab {
  font-family: "Amiri", serif;
  direction: rtl;
  font-size: clamp(1.35rem, 5.4vw, 1.8rem);
  font-weight: 400;
  line-height: 2.1;
  max-width: 22em;
  margin: 0 auto 18px;
}

blockquote {
  font-family: var(--font-judul);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 36ch;
  margin: 0 auto;
}
cite {
  display: block;
  margin-top: 14px;
  color: var(--pink);
  font-style: normal;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}
.kutipan-doa {
  font-family: var(--font-judul);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 34ch;
  margin: 0 auto;
  opacity: 0.92;
}

/* ========== 5. BISMILLAH + FOTO PENGANTIN ========== */
.bismillah { max-width: 420px; margin: 0 auto 34px; }
.bismillah-arab {
  font-size: clamp(1.8rem, 8vw, 2.4rem);
  color: var(--burgundy);
  margin: 0 auto 8px;
  line-height: 1.8;
}
.bismillah-arti {
  font-family: var(--font-judul);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 30ch;
  margin: 0 auto;
}
.bismillah-salam {
  margin-top: 14px;
  font-family: var(--font-judul);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--burgundy);
}

.judul-mempelai {
  font-family: var(--font-nama);
  font-weight: 400;
  font-size: clamp(1.9rem, 8vw, 2.7rem);
  line-height: 1.25;
  color: var(--burgundy);
  margin-bottom: 30px;
  text-wrap: balance;
}
.judul-mempelai::after {
  content: "";
  display: block;
  width: 64px; height: 1px;
  margin: 10px auto 0;
  background: var(--burgundy);
  opacity: 0.45;
}

.foto-frame {
  /* warna latar foto (bisa diganti lewat config.js -> latarFoto) */
  --latar: linear-gradient(180deg, #CBD9EC, #9DB4D3);
  position: relative;
  width: min(74vw, 300px);
  aspect-ratio: 3 / 4;
  margin: 0 auto 32px;
  border-radius: 999px 999px 28px 28px;
  background: var(--ivory);
  box-shadow: 0 0 0 8px var(--ivory), 0 0 0 9px var(--pink), 0 24px 48px rgba(16, 29, 54, 0.28);
}
.foto-frame.latar-biru  { --latar: linear-gradient(180deg, #CBD9EC, #9DB4D3); }
.foto-frame.latar-pink  { --latar: linear-gradient(180deg, #FBE4EC, #F3C9D8); }
.foto-frame.latar-ivory { --latar: linear-gradient(180deg, #FFFDF8, #F6E3DA); }
.foto-frame.latar-navy  { --latar: radial-gradient(circle at 50% 30%, #243B60, #101D36 80%); }

/* wadah foto: memotong foto sesuai lengkungan, dan jadi "kanvas" efek warna */
.foto-isi {
  position: absolute; inset: 0;
  border-radius: inherit;
  overflow: hidden;
  isolation: isolate;
  background: var(--latar);
}
.foto-isi img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 52%;
  display: block;
}

/* efek warna tema (matikan lewat config.js -> efekFotoTema: false) */
.foto-tema .foto-isi img {
  filter: grayscale(1) contrast(1.05) brightness(1.15);
  mix-blend-mode: multiply;
}
.foto-tema .foto-isi::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--navy-gelap);
  mix-blend-mode: lighten;
  pointer-events: none;
}
/* kalau file foto tidak ditemukan */
.foto-isi.hilang img { display: none; }
.foto-isi.hilang::before {
  content: "Foto belum ditemukan.\A Cek nama file di assets/images";
  white-space: pre;
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--burgundy);
}

.foto-frame::after {
  content: "";
  position: absolute; inset: -18px;
  border: 1px solid rgba(112, 43, 67, 0.4);
  border-radius: 999px 999px 40px 40px;
  pointer-events: none;
  animation: denyut 5s ease-out infinite;
}
@keyframes denyut {
  from { transform: scale(0.97); opacity: 0.8; }
  to   { transform: scale(1.08); opacity: 0; }
}

/* kartu nama & orang tua mempelai */
.mempelai-info {
  max-width: 400px;
  margin: 0 auto;
  padding: 24px 18px;
  background: rgba(255, 249, 239, 0.8);
  border: 1px solid rgba(112, 43, 67, 0.16);
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(16, 29, 54, 0.13), 0 2px 6px rgba(16, 29, 54, 0.06);
}

/* ========== 6. SAVE THE DATE + COUNTDOWN ========== */
#countdown .label-atas { color: var(--pink); }
.save-judul {
  font-family: var(--font-nama);
  font-weight: 400;
  font-size: clamp(2.8rem, 12vw, 4.2rem);
  line-height: 1.15;
  color: var(--ivory);
  margin: 0;
}
.cd-tanggal {
  font-family: var(--font-judul);
  font-style: italic;
  font-size: 1.25rem;
  margin: 0 0 28px;
}
.cd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}
.cd-kotak {
  position: relative;
  overflow: hidden;
  padding: 16px 2px 12px;
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.14), rgba(255, 249, 239, 0.04));
  border: 1px solid rgba(243, 201, 216, 0.38);
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(4, 9, 22, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.cd-kotak::after {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-200%) skewX(-20deg);
  animation: kilap 6.5s ease-in-out infinite;
  pointer-events: none;
}
.cd-kotak small {
  display: block;
  margin-top: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
}
/* angka: tinggi tetap, bergulir halus saat berganti */
.cd-angka {
  position: relative;
  display: block;
  height: 1.2em;
  overflow: hidden;
  text-align: center;
  line-height: 1.2;
  font-family: var(--font-judul);
  font-weight: 500;
  font-size: clamp(1.7rem, 8.2vw, 2.5rem);
  font-variant-numeric: lining-nums tabular-nums;
}
.cd-angka .roll-lama {
  position: absolute; left: 0; right: 0; top: 0;
  animation: roll-keluar 0.5s var(--halus) forwards;
}
.cd-angka .roll-baru {
  display: block;
  animation: roll-masuk 0.5s var(--halus) both;
}
@keyframes roll-keluar { to   { transform: translateY(-100%); opacity: 0; } }
@keyframes roll-masuk  { from { transform: translateY(100%);  opacity: 0; } to { transform: none; opacity: 1; } }
.cd-catatan {
  margin-top: 26px;
  font-family: var(--font-judul);
  font-style: italic;
  font-size: 1.1rem;
  opacity: 0.92;
}

/* ========== 7. ACARA ========== */
#acara > h2 { margin-bottom: 26px; }
.daftar-acara {
  display: flex; flex-direction: column;
  gap: 22px;
  max-width: 420px;
  margin: 0 auto;
}
.kartu-acara {
  position: relative;
  overflow: hidden;
  padding: 32px 22px 28px;
  background: linear-gradient(160deg, rgba(255, 249, 239, 0.96), rgba(248, 225, 232, 0.92));
  border: 1px solid rgba(112, 43, 67, 0.2);
  border-radius: 28px;
  box-shadow: 0 22px 44px rgba(16, 29, 54, 0.16), 0 2px 8px rgba(16, 29, 54, 0.06);
}
.kartu-acara::before {
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid rgba(112, 43, 67, 0.16);
  border-radius: 21px;
  pointer-events: none;
}
.kartu-acara::after {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: translateX(-200%) skewX(-20deg);
  animation: kilap 7s ease-in-out infinite;
  pointer-events: none;
}
.ikon-acara {
  width: 64px; height: 64px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #A9506E, var(--burgundy) 70%);
  box-shadow: 0 10px 20px rgba(112, 43, 67, 0.35), inset 0 0 0 3px rgba(243, 201, 216, 0.35);
  animation: ikon-melayang 4.5s ease-in-out infinite alternate;
}
.ikon-acara svg { width: 34px; height: 34px; }
@keyframes ikon-melayang {
  from { transform: translateY(0); }
  to   { transform: translateY(-5px); }
}
.kartu-acara h3 { font-size: 1.8rem; margin-bottom: 6px; }
.acara-jam {
  font-family: var(--font-judul);
  font-weight: 500;
  font-size: 1.9rem;
  line-height: 1.2;
  color: var(--navy);
}
.acara-tempat { margin-top: 6px; font-weight: 500; letter-spacing: 0.06em; }
.acara-alamat { max-width: 30ch; margin: 4px auto 0; font-size: 0.95rem; }

/* ========== 7a. TURUT MENGUNDANG ========== */
.kartu-turut {
  position: relative;
  max-width: 420px;
  margin: 24px auto 0;
  padding: 18px 22px;
  background: rgba(255, 249, 239, 0.84);
  border: 1px solid rgba(112, 43, 67, 0.18);
  border-radius: 28px;
  box-shadow: 0 22px 44px rgba(16, 29, 54, 0.14), 0 2px 6px rgba(16, 29, 54, 0.05);
}
.kartu-turut::before {
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid rgba(112, 43, 67, 0.14);
  border-radius: 21px;
  pointer-events: none;
}
#daftar-turut { list-style: none; margin: 8px 0; }
#daftar-turut li {
  padding: 12px 6px;
  font-family: var(--font-judul);
  font-weight: 500;
  font-size: 1.45rem;
  line-height: 1.35;
  color: var(--burgundy);
}
#daftar-turut li + li { border-top: 1px solid rgba(112, 43, 67, 0.16); }

/* ========== 7b. WEDDING GIFT (kartu seperti kartu bank) ========== */
#daftar-rekening { max-width: 420px; margin: 0 auto; }
.gift-intro {
  font-family: var(--font-judul);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 28px;
}
.rek {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 26px 22px 22px;
  text-align: left;
  color: var(--ivory);
  background: linear-gradient(135deg, #243B60 0%, #101D36 58%, #3A1B33 100%);
  border: 1px solid rgba(243, 201, 216, 0.3);
  border-radius: 24px;
  box-shadow: 0 22px 42px rgba(16, 29, 54, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
/* chip kartu */
.rek::before {
  content: "";
  position: absolute; top: 22px; right: 22px;
  width: 44px; height: 32px;
  background: linear-gradient(135deg, #F3C9D8, #C98AA3);
  border-radius: 7px;
  opacity: 0.85;
}
.rek::after {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-200%) skewX(-20deg);
  animation: kilap 8s ease-in-out infinite;
  pointer-events: none;
}
.rek-bank {
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.28em;
  color: var(--pink);
}
.rek-nomor {
  font-family: var(--font-judul);
  font-weight: 500;
  font-size: clamp(1.55rem, 6.6vw, 2rem);
  letter-spacing: 0.1em;
  line-height: 1.3;
  margin: 28px 0 6px;
  overflow-wrap: anywhere;
}
.rek-nama { font-size: 0.95rem; opacity: 0.9; }
.btn-salin {
  display: block;
  width: 100%;
  margin-top: 20px;
  padding: 12px;
  border: 1px solid var(--pink);
  border-radius: 999px;
  background: rgba(243, 201, 216, 0.12);
  color: var(--pink);
  font-family: var(--font-isi);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.5s var(--halus), color 0.5s var(--halus), transform 0.5s var(--halus);
}
.btn-salin:hover { background: var(--pink); color: var(--burgundy); }
.btn-salin:active { transform: scale(0.97); }
.btn-salin.berhasil { background: var(--pink); color: var(--burgundy); }

/* ========== 7c. RSVP ========== */
.rsvp-intro {
  max-width: 30ch;
  margin: 0 auto 30px;
  font-family: var(--font-judul);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.6;
}
#form-rsvp {
  max-width: 440px;
  margin: 0 auto;
  padding: 28px 22px 22px;
  text-align: left;
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.09), rgba(255, 249, 239, 0.03));
  border: 1px solid rgba(243, 201, 216, 0.3);
  border-radius: 26px;
  box-shadow: 0 22px 44px rgba(4, 9, 22, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.f-field { display: block; position: relative; margin-bottom: 24px; }
.f-field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  color: var(--pink);
}
#form-rsvp input[type="text"],
#form-rsvp textarea {
  width: 100%;
  padding: 10px 2px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(243, 201, 216, 0.5);
  border-radius: 0;
  color: var(--ivory);
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.6;
  outline: none;
  transition: border-color 0.5s var(--halus), box-shadow 0.5s var(--halus);
}
#form-rsvp textarea { resize: vertical; min-height: 96px; }
#form-rsvp input[type="text"]:focus,
#form-rsvp textarea:focus {
  border-bottom-color: var(--pink);
  box-shadow: 0 1px 0 0 var(--pink);
}
/* nama yang sudah terisi dari link tamu: terkunci */
#form-rsvp input[readonly] {
  cursor: default;
  border-bottom-style: dotted;
  font-family: var(--font-judul);
  font-weight: 500;
  font-size: 1.4rem;
}
#form-rsvp input[readonly]:focus { box-shadow: none; border-bottom-color: rgba(243, 201, 216, 0.5); }

/* pilihan Insyaallah hadir / Maaf belum bisa hadir: dua kotak sama besar */
.pilih { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; }
.pilih input { position: absolute; opacity: 0; pointer-events: none; }
.pilih label {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 64px;
  padding: 12px 10px;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.3;
  background: rgba(255, 249, 239, 0.04);
  border: 1px solid rgba(243, 201, 216, 0.5);
  border-radius: 18px;
  cursor: pointer;
  transition: background 0.5s var(--halus), color 0.5s var(--halus), border-color 0.5s var(--halus), box-shadow 0.5s var(--halus);
}
.pilih input:checked + label {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--burgundy);
  font-weight: 500;
  box-shadow: 0 10px 22px rgba(4, 9, 22, 0.3);
}
.pilih input:checked + label::before { content: "✓"; font-weight: 700; }
.pilih input:focus-visible + label { outline: 2px solid var(--ivory); outline-offset: 3px; }

.rsvp-catatan {
  margin-top: 16px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}
#status-form {
  min-height: 1.7em;
  margin-top: 12px;
  text-align: center;
  font-size: 0.95rem;
}
#status-form.ok { color: var(--pink); }
#status-form.gagal { color: #FFB4A8; }
/* tautan opsional untuk mengabari mempelai lewat WhatsApp */
.wa-opsional {
  display: block;
  margin-top: 6px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ========== 7d. UCAPAN DI BAWAH FORM ========== */
#daftar-ucapan { max-width: 440px; margin: 44px auto 0; text-align: left; }
#daftar-ucapan:empty { display: none; }
.ucapan-judul {
  text-align: center;
  font-family: var(--font-judul);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--pink);
  margin-bottom: 8px;
}
.ucapan-item {
  padding: 20px 0;
  border-top: 1px solid rgba(243, 201, 216, 0.25);
  animation: muncul-ucapan 0.9s var(--halus) both;
}
.ucapan-nama {
  font-family: var(--font-judul);
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--pink);
}
.ucapan-status {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  vertical-align: middle;
  font-family: var(--font-isi);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--pink);
  background: rgba(243, 201, 216, 0.16);
  border: 1px solid rgba(243, 201, 216, 0.5);
  border-radius: 999px;
}
.ucapan-tanda {
  margin-left: 8px;
  font-family: var(--font-isi);
  font-size: 0.8rem;
  font-weight: 300;
  opacity: 0.75;
}
.ucapan-isi { margin-top: 4px; white-space: pre-line; overflow-wrap: anywhere; }
@keyframes muncul-ucapan {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ========== 7e. PENUTUP ========== */
#penutup { padding-bottom: 100px; }
.penutup-kecil {
  max-width: 32ch;
  margin: 0 auto;
  font-family: var(--font-judul);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.7;
}
.penutup-arab { color: var(--burgundy); font-size: clamp(1.3rem, 5.2vw, 1.7rem); margin-bottom: 6px; }
.penutup-arti {
  max-width: 32ch;
  margin: 0 auto;
  font-family: var(--font-judul);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.65;
}
.penutup-salam {
  margin-top: 26px;
  font-family: var(--font-judul);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--burgundy);
}
.penutup-terima { margin-top: 4px; font-size: 0.95rem; }
#penutup h2 {
  font-family: var(--font-nama);
  font-weight: 400;
  font-size: clamp(3rem, 12vw, 4.5rem);
  line-height: 1.2;
  margin-top: 18px;
  margin-bottom: 0;
}
.hormat { max-width: 440px; margin: 34px auto 0; }
.fam { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.fam p { font-size: 0.9rem; line-height: 1.5; }
.penutup-akhir {
  margin-top: 36px;
  font-family: var(--font-judul);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--burgundy);
  opacity: 0.85;
}
.penutup-akhir::before, .penutup-akhir::after { content: "✦"; margin: 0 10px; font-style: normal; font-size: 0.8rem; }

/* ========== 8. TOMBOL ========== */
#btn-buka, #btn-maps, #btn-kirim {
  position: relative;
  overflow: hidden;
  display: inline-block;
  margin-top: 32px;
  padding: 14px 34px;
  border: 1px solid var(--pink);
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--ivory);
  font-family: var(--font-isi);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.5s var(--halus), box-shadow 0.5s var(--halus), opacity 0.5s ease;
}
#btn-kirim { width: 100%; margin-top: 8px; }
#btn-buka:hover, #btn-maps:hover, #btn-kirim:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(112, 43, 67, 0.45);
}
#btn-buka:active, #btn-maps:active, #btn-kirim:active { transform: translateY(0) scale(0.97); }
#btn-buka:disabled { opacity: 0; pointer-events: none; }
/* tombol baru bisa ditekan setelah amplop muncul sepenuhnya */
#opening:not(.siap) #btn-buka { pointer-events: none; }
#btn-buka::after, #btn-maps::after, #btn-kirim::after {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-200%) skewX(-20deg);
  animation: kilap 5.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes kilap {
  0%, 55% { transform: translateX(-200%) skewX(-20deg); }
  100%    { transform: translateX(450%) skewX(-20deg); }
}

/* ========== 9. OPENING ========== */
#opening {
  position: fixed; inset: 0; z-index: 100;
  overflow: hidden;
  color: var(--ivory);
  text-align: center;
}
#opening.tutup { display: none; }

.latar {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 35%, var(--navy), var(--navy-gelap) 75%);
  pointer-events: none;
}
.isi-opening {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  padding: 24px;
}
#bunga-opening { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

/* --- 9a. Bunga besar yang mekar --- */
#bunga-utama {
  position: absolute;
  left: 50%; top: 50%;
  width: min(120vw, 620px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
#bunga-utama::before {
  content: "";
  position: absolute;
  inset: 10% 10% 0;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.5), transparent 68%);
  transform: translateY(7%);
  animation: bayang 3.6s var(--halus) both;
}
@keyframes bayang {
  from { opacity: 0; transform: translateY(7%) scale(0.6); }
  to   { opacity: 1; transform: translateY(7%) scale(1); }
}
#bunga-utama svg {
  display: block; width: 100%; height: 100%;
  animation: putar-mekar 3.6s var(--halus) both;
  will-change: transform;
}
.kelopak {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: mekar 2.6s var(--halus) both;
  animation-delay: var(--w, 0s);
}
@keyframes mekar {
  from { transform: scale(0.18); opacity: 0.6; }
  to   { transform: scale(1);    opacity: 1; }
}
@keyframes putar-mekar {
  from { transform: rotate(-35deg) scale(0.85); }
  to   { transform: rotate(0deg) scale(1); }
}

/* --- 9b. Amplop (muncul setelah bunga mekar) --- */
#area-amplop {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0;
  transform: translateY(50px);
  animation: naik 1.6s var(--halus) forwards;
  animation-delay: 2.7s;
}
@keyframes naik { to { opacity: 1; transform: none; } }

#amplop {
  position: relative;
  width: min(80vw, 340px);
  aspect-ratio: 10 / 7;
  perspective: 900px;
  animation: melayang 5s ease-in-out 4.5s infinite alternate;
}
@keyframes melayang {
  from { transform: translateY(0); }
  to   { transform: translateY(-8px); }
}
.amplop-belakang, .amplop-depan, .tutup-amplop, .surat, .segel { position: absolute; }

.amplop-belakang {
  inset: 0;
  background: #5B7AA6;
  border-radius: 6px;
  box-shadow: 0 24px 34px rgba(0, 0, 0, 0.45);
  z-index: 0;
}
.surat {
  left: 6%; right: 6%; bottom: 6%;
  height: 82%;
  padding: 22px 14px 0;
  background: linear-gradient(180deg, var(--ivory), #FBEFE9);
  border-radius: 4px;
  color: var(--navy-gelap);
  z-index: 2;
  transition: transform 1.3s var(--halus);
  will-change: transform;
}
.surat p { font-size: 0.9rem; }
#opening .surat .nama-tamu {
  color: var(--burgundy);
  font-size: 1.9rem;
  margin: 4px 0 10px;
  line-height: 1.15;
}
.surat-kecil { font-family: var(--font-judul); font-style: italic; font-size: 1rem !important; }

.amplop-depan {
  inset: 0;
  background: #7896BD;
  clip-path: polygon(0 100%, 0 0, 50% 56%, 100% 0, 100% 100%);
  border-radius: 6px;
  z-index: 3;
}
.tutup-amplop {
  left: 0; right: 0; top: 0;
  height: 56%;
  background: linear-gradient(180deg, #9DB4D3, #86A1C6);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top;
  z-index: 4;
  will-change: transform;
}
.segel {
  left: 50%; top: 56%;
  width: 21%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #A9506E, var(--burgundy) 70%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4), inset 0 0 0 3px rgba(243, 201, 216, 0.35);
  color: var(--pink);
  font-family: var(--font-nama);
  font-size: clamp(1rem, 5vw, 1.4rem);
  z-index: 6;
  transition: opacity 0.5s ease, transform 0.5s var(--halus);
}
.segel::after {
  content: "";
  position: absolute; inset: 0;
  border: 2px solid var(--pink);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: segel-cincin 3s ease-out 4s infinite;
}
@keyframes segel-cincin {
  from { transform: scale(1);   opacity: 0.7; }
  to   { transform: scale(1.8); opacity: 0; }
}

/* --- 9c. Saat tombol ditekan: amplop terbuka --- */
#amplop.buka { animation-play-state: paused; }
#amplop.buka .segel { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
#amplop.buka .tutup-amplop {
  transform: rotateX(180deg);
  z-index: 1;
  transition: transform 1.1s var(--halus), z-index 0s 0.55s;
}
#amplop.buka .surat {
  transform: translateY(-68%);
  transition-delay: 0.9s;
}

/* --- 9d. Kertas sobek (dua belahan saling menimpa, tanpa celah) --- */
.sobek {
  position: absolute; left: 0; right: 0;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 1.7s cubic-bezier(0.7, 0, 0.2, 1);
  will-change: transform, opacity;
}
.sobek-atas {
  top: 0; height: 57%;
  background: linear-gradient(180deg, var(--ivory), #FBEFE9);
  clip-path: polygon(0 0, 100% 0, 100% 96%, 95% 100%, 90% 94%, 84% 99%, 78% 93%, 72% 100%, 66% 95%, 60% 99%, 54% 93%, 48% 100%, 42% 94%, 36% 99%, 30% 93%, 24% 100%, 18% 95%, 12% 99%, 6% 94%, 0 98%);
}
.sobek-bawah {
  bottom: 0; height: 59%;
  background: linear-gradient(180deg, #FBEFE9, #F3C9D8);
  clip-path: polygon(0 2%, 6% 6%, 12% 1%, 18% 5%, 24% 0, 30% 7%, 36% 1%, 42% 6%, 48% 0, 54% 7%, 60% 1%, 66% 5%, 72% 0, 78% 7%, 84% 1%, 90% 6%, 95% 0, 100% 4%, 100% 100%, 0 100%);
}
#opening.kertas .sobek { opacity: 1; }
#opening.pisah .latar,
#opening.pisah .isi-opening { opacity: 0; transition: opacity 0.3s ease; }
#opening.pisah .sobek-atas  { transform: translateY(-105%); }
#opening.pisah .sobek-bawah { transform: translateY(105%); }

/* ========== 10. KELOPAK BERJATUHAN (pelan & halus) ========== */
#kelopak-jatuh {
  position: fixed; inset: 0;
  z-index: 101;
  pointer-events: none;
  overflow: hidden;
}
.kelopak-jatuh {
  position: absolute;
  top: -6vh;
  left: var(--x);
  width: var(--s);
  height: calc(var(--s) * 1.35);
  background: linear-gradient(135deg, var(--c1), var(--c2));
  border-radius: 150% 0 150% 0;
  opacity: 0;
  animation: jatuh var(--d) linear infinite;
  animation-delay: var(--w);
  will-change: transform, opacity;
}
@keyframes jatuh {
  0%   { transform: translate3d(0, -8vh, 0) rotate(0deg);                          opacity: 0; }
  8%   { opacity: 0.85; }
  25%  { transform: translate3d(calc(var(--g) * 0.6), 24vh, 0) rotate(90deg); }
  50%  { transform: translate3d(calc(var(--g) * -0.4), 52vh, 0) rotate(190deg); }
  75%  { transform: translate3d(calc(var(--g) * 0.5), 82vh, 0) rotate(285deg); }
  92%  { opacity: 0.85; }
  100% { transform: translate3d(calc(var(--g) * -0.2), 110vh, 0) rotate(360deg);   opacity: 0; }
}

/* ========== 11. KILAU BINTANG (di bagian gelap) ========== */
.kilau {
  position: absolute; z-index: 1;
  left: var(--x); top: var(--y);
  width: var(--s); height: var(--s);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgba(243, 201, 216, 0.8);
  opacity: 0;
  pointer-events: none;
  animation: kedip var(--d) ease-in-out infinite;
  animation-delay: var(--w);
}
@keyframes kedip {
  0%, 100% { opacity: 0;   transform: scale(0.4); }
  50%      { opacity: 0.9; transform: scale(1); }
}

/* ========== 12. TOMBOL MUSIK MELAYANG ========== */
#btn-musik {
  position: fixed;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 102;
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center; gap: 3px;
  border: 1px solid var(--pink);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #A9506E, var(--burgundy) 70%);
  box-shadow: 0 10px 24px rgba(16, 29, 54, 0.4), inset 0 0 0 3px rgba(243, 201, 216, 0.2);
  cursor: pointer;
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
  transition: opacity 1s var(--halus), transform 1s var(--halus), box-shadow 0.4s ease;
}
#btn-musik.tampil { opacity: 1; transform: none; pointer-events: auto; }
#btn-musik.tampil:hover { transform: scale(1.08); box-shadow: 0 14px 30px rgba(112, 43, 67, 0.55), inset 0 0 0 3px rgba(243, 201, 216, 0.3); }
#btn-musik.tampil:active { transform: scale(0.94); }

#btn-musik::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid var(--pink);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}
#btn-musik:not(.jeda)::after { animation: cincin 2.8s ease-out infinite; }
@keyframes cincin {
  from { transform: scale(1);   opacity: 0.7; }
  to   { transform: scale(1.7); opacity: 0; }
}

#btn-musik span {
  width: 3px; height: 20px;
  border-radius: 3px;
  background: var(--pink);
  transform-origin: center;
  animation: nada 1.1s ease-in-out infinite alternate;
}
#btn-musik span:nth-child(1) { animation-delay: -0.2s; }
#btn-musik span:nth-child(2) { animation-delay: -0.6s; }
#btn-musik span:nth-child(3) { animation-delay: -0.1s; }
#btn-musik span:nth-child(4) { animation-delay: -0.8s; }
@keyframes nada {
  from { transform: scaleY(0.25); }
  to   { transform: scaleY(1); }
}
#btn-musik.jeda span { animation: none; transform: scaleY(0.25); opacity: 0.7; }
#btn-musik.jeda::before {
  content: "";
  position: absolute;
  width: 2px; height: 30px;
  background: var(--ivory);
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow: 0 0 0 1px rgba(112, 43, 67, 0.7);
}

/* ========== 13. BUNGA 3D (buket di pojok tiap bagian) ========== */
.bunga {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  filter: blur(var(--blur, 0px));
  animation: goyang 14s ease-in-out infinite alternate;
  translate: 0 calc(var(--py, 0) * var(--f, 0.1) * 1px);
  will-change: transform;
}
.bunga svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* bunga hanya bergoyang saat bagiannya terlihat di layar (hemat baterai & mulus) */
#undangan section:not(.di-layar) .bunga { animation-play-state: paused; }
@keyframes goyang {
  from { transform: rotate(-4deg) scale(1); }
  to   { transform: rotate(5deg) scale(1.03); }
}
/* bayangan lembut di laptop (di HP dimatikan supaya ringan) */
@media (min-width: 768px) {
  .bunga svg { filter: drop-shadow(0 12px 16px rgba(16, 29, 54, 0.3)); }
}

/* ========== 14. HERO MUNCUL SETELAH UNDANGAN DIBUKA ========== */
#hero > * { opacity: 0; transform: translateY(26px); }
body.terbuka #hero > * { animation: muncul 1.8s var(--halus) forwards; }
body.terbuka #hero > *:nth-child(2) { animation-delay: 0.3s; }
@keyframes muncul { to { opacity: 1; transform: none; } }

#hero h1 span { opacity: 0; filter: blur(14px); transform: translateY(18px); }
body.terbuka #hero h1 span { animation: kabut 2.2s var(--halus) forwards; }
body.terbuka #hero h1 span:nth-child(1) { animation-delay: 0.6s; }
body.terbuka #hero h1 span:nth-child(2) { animation-delay: 1.1s; }
@keyframes kabut { to { opacity: 1; filter: blur(0); transform: none; } }

/* ========== 15. MUNCUL SAAT SCROLL (ringan: hanya opacity & posisi) ========== */
.rv {
  opacity: 0;
  transition:
    opacity 1.3s var(--halus) calc(var(--i, 0) * 0.16s),
    transform 1.3s var(--halus) calc(var(--i, 0) * 0.16s);
}
.rv-naik  { transform: translate3d(0, 38px, 0); }
.rv-kiri  { transform: translate3d(-48px, 0, 0); }
.rv-kanan { transform: translate3d(48px, 0, 0); }
.rv-zoom  { transform: scale(0.86); }
.rv-foto  { transform: translate3d(0, 40px, 0) scale(0.94); }
.rv.tampil { opacity: 1; transform: none; }

/* ========== 16. UNTUK YANG MEMATIKAN ANIMASI DI HP/LAPTOPNYA ========== */
@media (prefers-reduced-motion: reduce) {
  .bunga, .kelopak, #bunga-utama svg, #bunga-utama::before, .kilau, #amplop,
  .segel::after, .foto-frame::after, #btn-buka::after, #btn-maps::after, #btn-kirim::after,
  #btn-musik span, #btn-musik::after, .ucapan-item,
  .kartu-acara::after, .rek::after, .cd-kotak::after, .ikon-acara { animation: none; }
  .roll-lama { display: none; }
  #area-amplop { animation: none; opacity: 1; transform: none; }
  #kelopak-jatuh { display: none; }
  #hero > *, #hero h1 span { opacity: 1; transform: none; filter: none; }
  .rv { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ========== 17. HP KECIL ========== */
@media (max-width: 359px) {
  #undangan section { padding-left: 16px; padding-right: 16px; }
  .pilih label { font-size: 0.88rem; padding: 10px 6px; }
  .cd-grid { gap: 6px; }
}

/* ========== 18. LAPTOP ========== */
@media (min-width: 768px) {
  #undangan section { padding: 120px 40px; }
  h2 { font-size: 2.6rem; }
  .judul-mempelai { font-size: 3.2rem; }
  #btn-musik { right: 28px; bottom: 28px; }
}

/* ========== TAMBAHAN: UPGRADE TAMPILAN ========== */
@keyframes sh-in { from { opacity: 0; } to { opacity: 1; } }

/* A. LATAR BAYANGAN BUNGA (blur) */
.latar-bunga {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
#undangan section > .latar-bunga {
  position: absolute !important;
  z-index: 0 !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
.latar-bunga .lb {
  position: absolute;
  aspect-ratio: 1;
  height: auto;
  filter: blur(24px);
  opacity: 0.22;
}
.latar-bunga.gelap .lb { opacity: 0.27; }
#opening .latar-bunga .lb { opacity: 0.3; }
.latar-bunga::after { content: ""; position: absolute; inset: 0; }
.latar-bunga.gelap::after  { background: radial-gradient(ellipse at 50% 50%, rgba(16, 29, 54, 0.55), transparent 72%); }
.latar-bunga.terang::after { background: radial-gradient(ellipse at 50% 50%, rgba(255, 249, 239, 0.72), transparent 70%); }
@media (max-width: 767px) { .latar-bunga .lb { filter: blur(16px); } }

/* B. HERO */
#hero {
  background:
    radial-gradient(circle at 50% 0%, rgba(120, 150, 189, 0.35), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(112, 43, 67, 0.4), transparent 60%),
    radial-gradient(ellipse at 50% 0%, var(--navy) 0%, var(--navy-gelap) 80%);
}
#hero::before, #hero::after {
  content: "";
  position: absolute; left: 50%;
  transform: translateX(-50%);
  border-radius: 999px 999px 20px 20px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 2.2s ease 0.4s;
}
#hero::before { top: 5%; bottom: 5%; width: min(88vw, 430px); border: 1px solid rgba(243, 201, 216, 0.5); }
#hero::after  { top: calc(5% + 10px); bottom: calc(5% + 10px); width: calc(min(88vw, 430px) - 20px); border: 1px solid rgba(243, 201, 216, 0.22); }
body.terbuka #hero::before, body.terbuka #hero::after { opacity: 1; }

#hero p:first-child { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.42em; }
#hero h1 { filter: drop-shadow(0 8px 22px rgba(243, 201, 216, 0.28)); }
#hero h1 span {
  font-size: clamp(4.2rem, 20vw, 7.4rem);
  line-height: 1.05;
  padding: 0.06em 0.12em;
  background: linear-gradient(180deg, #fff 15%, var(--pink) 62%, #E39BB5 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
#hero .amp {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  width: min(220px, 60vw);
  margin: 2px auto;
  font-family: var(--font-judul);
  font-style: italic;
  font-size: 1.9rem;
  line-height: 1.2;
  color: var(--pink);
}
#hero .amp::before, #hero .amp::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink));
}
#hero .amp::after { transform: scaleX(-1); }
.hero-sub {
  margin-top: 8px;
  font-family: var(--font-judul);
  font-style: italic;
  font-size: 1.3rem;
  opacity: 0.92;
}
#hero .gulir {
  position: absolute !important;
  left: 0; right: 0; bottom: calc(5% + 22px);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--pink);
}
#hero .gulir i {
  width: 1px; height: 34px;
  background: linear-gradient(var(--pink), transparent);
  animation: gulir 2.2s ease-in-out infinite;
}
@keyframes gulir {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* C. OPENING */
.judul-opening { margin-bottom: 22px; text-align: center; }
.jo-atas { font-size: 0.72rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--pink); }
.jo-nama {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-nama);
  font-size: clamp(2.8rem, 13vw, 4.2rem);
  line-height: 1.2;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.45));
}
.jo-nama span {
  padding: 0 0.1em;
  background: linear-gradient(180deg, #fff 10%, var(--pink) 70%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.jo-nama i { font-family: var(--font-judul); font-size: 0.45em; color: var(--pink); }

#opening::before {
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid rgba(243, 201, 216, 0.3);
  border-radius: 26px;
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#opening.pisah::before { opacity: 0; }

.amplop-belakang { background: linear-gradient(160deg, #6F8DB8, #46648F); }
.amplop-depan    { background: linear-gradient(160deg, #8EA9CE, #6B89B5); }
.tutup-amplop    { background: linear-gradient(180deg, #B5C8E2, #8EA9CE); }
.segel {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5), inset 0 -4px 8px rgba(0, 0, 0, 0.35),
              inset 0 3px 6px rgba(255, 255, 255, 0.25), inset 0 0 0 3px rgba(243, 201, 216, 0.35);
}
.segel::before {
  content: "";
  position: absolute; inset: 16%;
  border: 1px dashed rgba(243, 201, 216, 0.6);
  border-radius: 50%;
}
#btn-buka::before { content: "\2709"; margin-right: 10px; }
#btn-buka { animation: glow 2.8s ease-in-out infinite; }
@keyframes glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(243, 201, 216, 0), 0 10px 24px rgba(0, 0, 0, 0.35); }
  50%      { box-shadow: 0 0 0 8px rgba(243, 201, 216, 0.12), 0 10px 30px rgba(112, 43, 67, 0.55); }
}

/* D. UCAPAN (kartu + avatar) */
.ucapan-daftar {
  max-height: 520px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(243, 201, 216, 0.5) transparent;
}
.ucapan-item {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid rgba(243, 201, 216, 0.25);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 249, 239, 0.1), rgba(255, 249, 239, 0.03));
}
.ucapan-avatar {
  flex: none;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #A9506E, var(--burgundy) 70%);
  box-shadow: inset 0 0 0 2px rgba(243, 201, 216, 0.35);
  color: var(--pink);
  font-family: var(--font-judul);
  font-weight: 500;
  font-size: 1.3rem;
}
.ucapan-badan { min-width: 0; }

@media (prefers-reduced-motion: reduce) {
  #btn-buka, #hero .gulir i { animation: none; }
}
/* ===== TAMBAHAN: Di Tempat ===== */
p.di-tempat {
  font-family: var(--font-judul);
  font-style: italic;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  margin-top: 2px;
  color: var(--burgundy);
}
#opening .surat p.di-tempat { font-size: 1rem; margin: 0 0 8px; }
#opening .surat .nama-tamu { margin-bottom: 0; }

/* ===== TAMBAHAN: tanggal lebih besar ===== */
.cd-tanggal {
  font-size: clamp(1.7rem, 7.5vw, 2.6rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin: 6px 0 32px;
  text-shadow: 0 4px 18px rgba(243, 201, 216, 0.35);
}

/* ===== TAMBAHAN: lebih smooth ===== */
/* gerakan berhenti lebih lembut (easing baru, dipakai semua animasi) */
:root { --halus: cubic-bezier(0.16, 1, 0.3, 1); }

/* bagian yang jauh di luar layar tidak ikut digambar & dianimasikan */
#undangan section:not(#hero) {
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

/* filter blur(0px) di tiap bunga itu sia-sia dan memberatkan */
.bunga { filter: none; }
@media (min-width: 768px) { .bunga svg { filter: none; } }

/* blur latar bunga dikecilkan (hasil hampir sama, jauh lebih ringan) */
.latar-bunga .lb { filter: blur(14px); }
@media (max-width: 767px) { .latar-bunga .lb { filter: blur(8px); } }

/* elemen yang sudah muncul tidak perlu lagi "dijaga" browser */
.rv:not(.tampil) { will-change: opacity, transform; }
.rv.tampil { will-change: auto; }
#kelopak-jatuh { contain: strict; }