/* ===========================================================================
   Undangan Pernikahan — Ja'far & Iklimah
   Palet krem & emas, ornamen geometris Islami, tipografi kaligrafi.
   =========================================================================== */

/* --------------------------------- Font --------------------------------- */
@font-face {
  font-family: "Great Vibes";
  src: url("../fonts/great-vibes-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-400-italic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Amiri";
  src: url("../fonts/amiri-arabic-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Amiri";
  src: url("../fonts/amiri-arabic-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: "Amiri";
  src: url("../fonts/amiri-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
}

/* ------------------------------- Variabel -------------------------------- */
:root {
  --cream: #f8f2e6;
  --cream-deep: #f0e6d2;
  --ivory: #fffdf8;
  --gold: #b28a41;
  --gold-deep: #8f6a2b;
  --gold-mid: #c9a55c;
  --gold-soft: #e7d5ad;
  --gold-line: rgba(178, 138, 65, .28);
  --ink: #3a3226;
  --ink-soft: #6d6252;
  --shadow-sm: 0 6px 18px -12px rgba(88, 64, 24, .38);
  --shadow: 0 18px 46px -26px rgba(88, 64, 24, .45);
  --radius: 20px;
  --ease: cubic-bezier(.22, .68, .16, 1);
  --dock-h: 72px;

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='%23b28a41' stroke-width='.7' stroke-opacity='.5'%3E%3Cpath d='M48 4 92 48 48 92 4 48Z'/%3E%3Cpath d='M24 24h48v48H24Z'/%3E%3Ccircle cx='48' cy='48' r='27'/%3E%3Cpath d='M48 21 75 48 48 75 21 48Z'/%3E%3Ccircle cx='48' cy='48' r='9'/%3E%3C/g%3E%3C/svg%3E");
}

/* -------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; overscroll-behavior-x: none; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.ucapan-pull-refresh { overscroll-behavior-y: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ink);
  background:
    radial-gradient(120% 60% at 50% -10%, #fffaef 0%, var(--cream) 42%, var(--cream-deep) 100%);
  background-attachment: fixed;
  overflow-x: clip;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; height: 100%; }

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: var(--gold-deep); text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold-soft); color: var(--brown, #4b3a1c); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Latar geometris halus */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: var(--pattern);
  background-size: 96px 96px;
  opacity: .16;
  pointer-events: none;
  z-index: 0;
}

[hidden] { display: none !important; }

/* ------------------------------- Tipografi -------------------------------- */
.script {
  font-family: "Great Vibes", "Cormorant Garamond", cursive;
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: .01em;
  padding-block: .04em .1em;
}
.arabic {
  font-family: "Amiri", "Traditional Arabic", serif;
  direction: rtl;
  line-height: 2.05;
}
.eyebrow {
  font-size: .68rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}
.muted { color: var(--ink-soft); }
.shine {
  background: linear-gradient(100deg, #a5823c 0%, #e6cd93 26%, #a5823c 52%, #e6cd93 78%, #a5823c 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shineMove 9s linear infinite;
}
@keyframes shineMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 260% 50%; }
}

/* --------------------------------- Utilitas ------------------------------- */
.wrap { width: 100%; max-width: 560px; margin-inline: auto; padding-inline: 22px; position: relative; z-index: 1; }
.main { position: relative; z-index: 1; padding-bottom: calc(var(--dock-h) + 2rem + env(safe-area-inset-bottom)); }
.icon { width: 1.05em; height: 1.05em; flex: 0 0 auto; }

/* Muncul saat digulir */
.reveal { transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------- Tombol ---------------------------------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .78rem 1.35rem;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: var(--btn-bg);
  font-size: .82rem; font-weight: 600; letter-spacing: .06em;
  cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0) scale(.99); }
.btn--gold {
  color: #fffdf6;
  border-color: transparent;
  background: linear-gradient(135deg, #c8a55f, #a8802f 55%, #c9a860);
  box-shadow: 0 14px 30px -16px rgba(140, 104, 34, .85), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--gold::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, .45) 46%, transparent 62%);
  transform: translateX(-120%);
  animation: btnSheen 5.5s ease-in-out infinite;
}
@keyframes btnSheen { 0%, 62% { transform: translateX(-120%); } 88%, 100% { transform: translateX(120%); } }
.btn--outline { color: var(--gold-deep); background: rgba(255, 253, 248, .75); }
.btn--ghost { color: var(--ink-soft); background: rgba(255, 253, 248, .5); }
.btn--sm { padding: .55rem 1rem; font-size: .74rem; }
.btn--block { width: 100%; }
.btn--open { padding: .9rem 1.9rem; font-size: .84rem; margin-top: .35rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.5rem; }

/* ------------------------------- Ornamen --------------------------------- */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
#particles { position: absolute; inset: 0; }
.ambient__petal {
  position: absolute; left: var(--x); top: 100%;
  color: #a66979; font-size: 1.1rem; line-height: 1;
  opacity: .32;
  animation: petal-rise var(--duration) linear var(--delay) infinite;
}
.ambient__petal--flower { color: #ae8143; font-size: 1.45rem; }
@keyframes petal-rise {
  from { transform: translate3d(0, 1rem, 0) rotate(0); }
  50% { transform: translate3d(1.4rem, -52vh, 0) rotate(28deg); }
  to { transform: translate3d(-.7rem, calc(-100vh - 3rem), 0) rotate(-20deg); }
}
@media (prefers-reduced-motion: reduce) { #particles { display: none; } }
.ambient__glow {
  position: absolute; inset: -20% -20% auto -20%; height: 70vh;
  background: radial-gradient(50% 50% at 50% 0%, rgba(255, 246, 224, .95), transparent 70%);
}

.divider { width: min(232px, 68%); margin: 1.1rem auto; color: var(--gold); }
.divider svg { width: 100%; height: auto; display: block; overflow: visible; }
.divider .draw { stroke-dasharray: 340; stroke-dashoffset: 340; opacity: .9; }
.divider.is-in .draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease); }
.divider .orn-star { transform-origin: 50% 50%; transform: scale(.6) rotate(-45deg); opacity: 0; transition: transform 1.2s var(--ease) .25s, opacity .8s ease .25s; }
.divider.is-in .orn-star { transform: none; opacity: 1; }

.spin-slow { animation: spin 150s linear infinite; transform-origin: 50% 50%; }
.spin-slow--rev { animation-duration: 200s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------- Loader -------------------------------- */
.loader {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-content: center; justify-items: center; gap: 1rem;
  background: var(--cream);
  transition: opacity .7s ease, visibility .7s;
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-deep);
}
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__ring { width: 92px; height: 92px; color: var(--gold); }
.loader__ring svg { width: 100%; height: 100%; }
.loader__ring .spin-slow { animation-duration: 6s; }

/* --------------------------------- Sampul -------------------------------- */
.cover {
  position: relative; z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: grid; place-items: center;
  overflow-x: hidden; overflow-y: auto;
  padding: max(1.6rem, env(safe-area-inset-top)) 1.2rem max(1.6rem, env(safe-area-inset-bottom));
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter .9s ease;
}
.cover.is-open { opacity: 0; transform: translateY(-8%) scale(1.02); filter: blur(6px); pointer-events: none; }
.cover__pattern {
  position: absolute; inset: 0;
  background-image: var(--pattern);
  background-size: 120px 120px;
  opacity: .22;
  mask-image: radial-gradient(120% 90% at 50% 45%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 45%, #000 35%, transparent 78%);
}
.cover__halo {
  position: absolute; width: min(150vw, 720px); aspect-ratio: 1; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 252, 242, .95) 0%, rgba(248, 240, 224, .6) 45%, transparent 70%);
  animation: breathe 12s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .85; } 50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } }

.cover__orn { position: absolute; width: min(44vw, 220px); color: var(--gold); opacity: .5; }
.cover__orn--tl { top: -1%; left: -6%; }
.cover__orn--br { bottom: -2%; right: -6%; transform: rotate(180deg); }
.cover__orn svg { width: 100%; height: auto; }

.cover__inner {
  position: relative; z-index: 1;
  margin-block: auto;
  width: min(100%, 470px);
  text-align: center;
  display: grid; justify-items: center; gap: .5rem;
  padding-block: 1rem 2rem;
  animation: coverIn 1.4s var(--ease) both;
}
@keyframes coverIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.cover__crest {
  width: clamp(90px, 27vw, 145px); aspect-ratio: 1;
  display: grid; place-items: center; margin-bottom: .45rem;
  filter: drop-shadow(0 5px 8px #98703230);
}
.cover__medallion { width: 100%; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .cover__crest { animation: crestGlow 10s ease-in-out infinite; }
  .cover__medallion { animation: spin 100s linear infinite; }
}
@keyframes crestGlow {
  0%, 68%, 100% { filter: drop-shadow(0 5px 8px #98703230); }
  78% { filter: brightness(1.13) drop-shadow(0 4px 12px #c4954355); }
  88% { filter: brightness(1.03) drop-shadow(0 5px 8px #98703230); }
}
@keyframes floatY { 0%, 100% { transform: translateY(-3px) rotate(-3deg); } 50% { transform: translateY(5px) rotate(3deg); } }

.cover__names {
  display: grid; gap: .1rem;
  font-size: clamp(2.5rem, min(16vw, 8vh), 4.6rem);
}
.cover .eyebrow { margin-top: .2rem; }
.cover__amp {
  font-family: "Cormorant Garamond", serif;
  font-size: .42em;
  color: var(--gold);
  line-height: 1;
  margin-block: -.12em;
}
.cover__date {
  display: flex; flex-wrap: wrap; gap: .3rem .5rem; justify-content: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.02rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: .2rem;
}
.cover__date .dot { color: var(--gold); }

.cover__guest {
  margin-top: 1.15rem;
  padding: 1.05rem 1.4rem;
  width: min(100%, 360px);
  border: 1px solid var(--gold-line);
  border-radius: 16px;
  background: rgba(255, 253, 247, .72);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
  display: grid; gap: .25rem;
}
.cover__guest-label { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.cover__guest-name { font-family: "Cormorant Garamond", serif; font-size: 1.42rem; font-weight: 600; color: var(--gold-deep); line-height: 1.25; }
.cover__guest-note { font-size: .66rem; color: var(--ink-soft); opacity: .8; }

/* -------------------------------- Section -------------------------------- */
.section { position: relative; overflow-x: clip; scroll-margin-top: 1rem; padding: clamp(3rem, 9vw, 4.6rem) 0; }
.section__glow {
  position: absolute; width: 120%; height: 60%; top: 6%; left: -10%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 251, 240, .9), transparent 72%);
  pointer-events: none;
}
.section__glow--right { left: auto; right: -30%; width: 90%; }
.section__head { text-align: center; margin-bottom: 1.9rem; }
.section__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.85rem, 7vw, 2.35rem);
  font-weight: 600; letter-spacing: .02em;
  color: var(--ink);
  margin-top: .35rem;
}
.section__head .eyebrow { display: block; }
.lead { text-align: center; font-size: .93rem; line-height: 1.9; color: var(--ink-soft); max-width: 44ch; margin: 0 auto; }

/* --------------------------- Salam & ayat --------------------------------- */
.section--salam { padding-top: clamp(3.4rem, 10vw, 5rem); }
.bismillah {
  font-size: clamp(1.55rem, 7.5vw, 2rem);
  color: var(--gold-deep);
  text-align: center;
  margin-bottom: .6rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
}
.salam {
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem; letter-spacing: .04em;
  color: var(--ink-soft);
  font-style: italic;
}
.ayat {
  margin: 1.6rem auto;
  padding: 1.55rem 1.35rem;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 254, 249, .92), rgba(253, 247, 235, .78));
  box-shadow: var(--shadow);
  position: relative;
  max-width: 470px;
}
.ayat::before {
  content: ""; position: absolute; inset: 6px;
  border: 1px solid rgba(178, 138, 65, .18);
  border-radius: 15px; pointer-events: none;
}
.ayat blockquote {
  margin: 0 0 .9rem;
  font-size: clamp(1.12rem, 5.2vw, 1.32rem);
  color: #4a3b23;
  text-align: center;
}
.ayat figcaption p {
  font-size: .86rem; line-height: 1.85; text-align: center; color: var(--ink-soft);
  font-style: italic;
}
.ayat cite {
  display: block; text-align: center; margin-top: .6rem;
  font-style: normal; font-size: .72rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold-deep);
}
.section--salam .lead { margin-top: 1.4rem; }

/* ------------------------------- Mempelai -------------------------------- */
.person { text-align: center; }
.person__photo { display: grid; justify-items: center; position: relative; margin-bottom: 1.1rem; }
.frame {
  position: relative;
  width: clamp(176px, 52vw, 218px);
  aspect-ratio: 3 / 4;
  border-radius: 200px 200px 16px 16px;
  padding: 7px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(231, 213, 173, .8));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.frame::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(178, 138, 65, .45);
  pointer-events: none;
}
.frame img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: 194px 194px 12px 12px;
  /* Tanpa filter/distorsi: wajah tampil persis seperti foto aslinya. */
  filter: none;
  transform-origin: 50% 32%;
  transition: opacity 1.1s ease, transform 1.7s var(--ease);
}
/* Bingkai mengikuti potret yang lebih tinggi agar peci dan gelas terlihat. */
.frame--groom { aspect-ratio: 1053 / 1650; padding-block: 14px 10px; }
.frame--groom img { object-fit: contain; object-position: center; }
.js .frame img { opacity: 0; transform: translateY(11%) scale(1.12); }
.js .person.is-in .frame img {
  opacity: 1; transform: none;
  animation: portraitBreath 22s ease-in-out 1.6s infinite alternate;
}
@keyframes portraitBreath {
  from { transform: scale(1) translateY(0); }
  to { transform: scale(1.03) translateY(-0.8%); }
}
.person__photo { cursor: zoom-in; }
.person__photo:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; border-radius: 24px; }
.frame__shine {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 62%);
  transform: translateX(-130%);
  animation: frameShine 7s ease-in-out infinite;
  border-radius: inherit;
}
@keyframes frameShine { 0%, 65% { transform: translateX(-130%); } 92%, 100% { transform: translateX(130%); } }
.person__badge {
  position: absolute; right: calc(50% - clamp(176px, 52vw, 218px) / 2 - 14px); bottom: 6px;
  width: 34px; color: var(--gold); opacity: .85;
  animation: twinkle 4.5s ease-in-out infinite;
}
.person__badge svg { width: 100%; height: auto; }
@keyframes twinkle { 0%, 100% { opacity: .45; transform: scale(.9) rotate(0); } 50% { opacity: .95; transform: scale(1.06) rotate(8deg); } }

.person__role { font-size: .66rem; letter-spacing: .34em; text-transform: uppercase; color: var(--gold-deep); }
.person__name { font-size: clamp(2.1rem, 9.5vw, 2.7rem); color: var(--gold-deep); margin: .1rem 0 .55rem; }
.person__line { font-size: .87rem; line-height: 1.95; color: var(--ink-soft); }
.person__ig {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .7rem; font-size: .74rem; letter-spacing: .08em;
  padding: .35rem .8rem; border: 1px solid var(--gold-line); border-radius: 999px;
}

.pair { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 2.2rem 0; color: var(--gold); }
.pair__line { height: 1px; width: min(84px, 24vw); background: linear-gradient(90deg, transparent, var(--gold-line), var(--gold)); }
.pair__line:last-child { background: linear-gradient(90deg, var(--gold), var(--gold-line), transparent); }
.pair__amp { font-size: 2.1rem; line-height: 1; color: var(--gold); }

/* --------------------------- Foto kebersamaan --------------------------- */
.section--kebersamaan { padding-top: clamp(2.2rem, 7vw, 3.4rem); }

.split {
  position: relative;
  width: min(100%, 460px);
  margin: 0 auto;
  aspect-ratio: 3 / 2;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  background: var(--cream-deep);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  isolation: isolate;
}
.split::after {
  content: ""; position: absolute; inset: 6px; z-index: 4;
  border: 1px solid rgba(255, 253, 247, .38);
  border-radius: 12px; pointer-events: none;
}

.split__half {
  position: absolute; top: 0; bottom: 0; width: 50.15%;
  background-repeat: no-repeat;
  background-size: 200% 100%;
  will-change: transform;
  transition: transform 1.7s var(--ease), filter 1.2s ease;
}
.split__half--l { left: 0; background-position: left center; transform: translateX(-18%) scale(.97); }
.split__half--r { right: 0; background-position: right center; transform: translateX(18%) scale(.97); }
.split__half::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 30%;
  transition: opacity 1.1s ease;
}
.split__half--l::after { right: 0; background: linear-gradient(90deg, transparent, rgba(48, 36, 14, .3)); }
.split__half--r::after { left: 0; background: linear-gradient(270deg, transparent, rgba(48, 36, 14, .3)); }
.split.is-in .split__half--l,
.split.is-in .split__half--r { transform: none; }
.split.is-in .split__half::after { opacity: 0; }

.split__seam {
  position: absolute; left: 50%; top: 6%; bottom: 6%; width: 1px; z-index: 3;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, var(--gold-soft) 22%, var(--gold-soft) 78%, transparent);
  transition: opacity 1.3s ease .55s;
}
.split.is-in .split__seam { opacity: 0; }

.split__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 1.9rem 1.1rem .95rem;
  text-align: center; color: #fff8ea;
  background: linear-gradient(to top, rgba(44, 33, 13, .74), transparent);
  display: grid; gap: .05rem;
  opacity: 0; transform: translateY(8px);
  transition: opacity 1s ease .8s, transform 1s var(--ease) .8s;
}
.split.is-in .split__cap { opacity: 1; transform: none; }
.split__cap strong { font-size: clamp(1.4rem, 6vw, 1.7rem); color: #fdf3dd; }
.split__cap span { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; opacity: .88; }
.split__note { text-align: center; font-size: .7rem; letter-spacing: .06em; color: var(--ink-soft); margin-top: .85rem; }

/* ------------------------------ Hitung mundur ----------------------------- */
.waktu__date { text-align: center; display: grid; gap: .2rem; margin-bottom: 1.6rem; }
.waktu__date strong {
  font-family: "Cormorant Garamond", serif; font-size: 1.28rem; font-weight: 600;
  letter-spacing: .04em; color: var(--ink);
}
.waktu__date span { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }

.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 430px; margin-inline: auto;
  border: 1px solid var(--gold-line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 254, 249, .95), rgba(250, 242, 228, .8));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.countdown__cell { padding: .95rem .3rem; text-align: center; position: relative; }
.countdown__cell + .countdown__cell::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 1px; background: var(--gold-line);
}
.countdown__cell strong {
  display: block;
  font-family: "Cormorant Garamond", serif; font-weight: 600;
  font-size: clamp(1.75rem, 8vw, 2.2rem);
  line-height: 1.1; color: var(--gold-deep);
  font-variant-numeric: tabular-nums;
}
.countdown__cell span { font-size: .61rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.countdown__note { text-align: center; font-size: .8rem; color: var(--gold-deep); margin-top: .9rem; min-height: 1.2em; }
.countdown.is-live .countdown__cell[data-cd="detik"] strong { animation: pulseNum 1s ease-in-out infinite; }
@keyframes pulseNum { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* --------------------------------- Acara --------------------------------- */
.events { display: grid; gap: 1rem; margin-bottom: 1.6rem; }
.event {
  position: relative;
  padding: 1.4rem 1.3rem 1.35rem;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 254, 249, .95), rgba(250, 242, 228, .76));
  box-shadow: var(--shadow-sm);
  text-align: center;
  overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.event:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.event::before {
  content: ""; position: absolute; inset: 5px;
  border: 1px solid rgba(178, 138, 65, .16);
  border-radius: 16px; pointer-events: none;
}
.event__icon { width: 34px; margin: 0 auto .5rem; color: var(--gold); }
.event__icon svg { width: 100%; height: auto; }
.event__name { font-family: "Cormorant Garamond", serif; font-size: 1.4rem; letter-spacing: .04em; color: var(--ink); }
.event__time {
  font-family: "Cormorant Garamond", serif; font-size: 1.06rem; color: var(--gold-deep);
  letter-spacing: .06em; margin-top: .1rem;
}
.event__time .sep { color: var(--gold-line); margin: 0 .35rem; }
.event__note { font-size: .78rem; color: var(--ink-soft); margin-top: .5rem; }
.event__day {
  display: inline-block; margin-top: .65rem;
  font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-deep);
  padding: .2rem .75rem;
  border: 1px solid var(--gold-line); border-radius: 999px;
}

.venue { text-align: center; padding-top: .4rem; }
.venue__icon { width: min(74px, 20vw); margin: 0 auto .55rem; color: var(--gold); opacity: .8; }
.venue__icon svg { width: 100%; height: auto; }
.venue__name { font-family: "Cormorant Garamond", serif; font-size: 1.45rem; color: var(--ink); letter-spacing: .03em; }
.venue__addr { font-size: .84rem; line-height: 1.8; color: var(--ink-soft); max-width: 38ch; margin: .25rem auto 0; }

/* --------------------------------- Peta ---------------------------------- */
.map {
  position: relative;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 253, 247, .7);
  box-shadow: var(--shadow);
  min-height: 240px;
  display: grid;
}
.map iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; filter: saturate(.92); }
.map__card {
  margin-top: 1rem; padding: 1.1rem 1.25rem;
  border: 1px solid var(--gold-line); border-radius: 16px;
  background: rgba(255, 253, 248, .72); text-align: center;
  box-shadow: var(--shadow-sm);
}
.map__title { font-family: "Cormorant Garamond", serif; font-size: 1.15rem; color: var(--gold-deep); font-weight: 600; }
.map__desc { font-size: .8rem; color: var(--ink-soft); margin-top: .2rem; }

/* -------------------------------- Galeri --------------------------------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.gallery__item {
  position: relative; overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--gold-line);
  background: var(--cream-deep);
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3 / 4;
  padding: 0;
  display: block; width: 100%;
}
.gallery__item:nth-child(1) { grid-column: span 2; aspect-ratio: 4 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(58, 42, 16, .55), transparent 55%);
  opacity: .85; transition: opacity .5s ease;
}
.gallery__caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: .75rem .85rem; text-align: left; color: #fff8ea;
}
.gallery__caption strong { font-family: "Cormorant Garamond", serif; font-size: 1rem; font-weight: 600; letter-spacing: .03em; display: block; }
.gallery__caption span { font-size: .66rem; opacity: .82; letter-spacing: .04em; }

/* ------------------------------ Tanda kasih ------------------------------ */
.trakteer {
  display: flex; align-items: center; gap: .9rem;
  position: relative; overflow: hidden;
  margin: 1.5rem auto 0; padding: 1.05rem 1.15rem;
  border-radius: 18px;
  color: #fffaf0;
  background: linear-gradient(135deg, #c9a55c, #a8802f 52%, #b8903c);
  box-shadow: 0 22px 40px -26px rgba(120, 88, 26, .95), inset 0 1px 0 rgba(255, 255, 255, .3);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  max-width: 430px;
}
.trakteer:hover { transform: translateY(-3px); box-shadow: 0 28px 48px -26px rgba(120, 88, 26, 1); }
.trakteer__glow {
  position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .4), transparent 65%);
  top: -60%; right: -30%;
  animation: breathe 9s ease-in-out infinite;
}
.trakteer__icon {
  width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .14);
}
.trakteer__icon svg { width: 22px; height: 22px; }
.trakteer__body { display: grid; gap: .12rem; text-align: left; position: relative; }
.trakteer__body strong { font-family: "Cormorant Garamond", serif; font-size: 1.12rem; letter-spacing: .03em; font-weight: 600; }
.trakteer__body small { font-size: .68rem; opacity: .9; line-height: 1.5; }
.trakteer__arrow { margin-left: auto; font-size: 1.1rem; opacity: .85; }

.rekening { display: grid; gap: .8rem; margin-top: 1.1rem; }
.rekening__card {
  display: flex; align-items: center; gap: .8rem;
  padding: .95rem 1.05rem;
  border: 1px solid var(--gold-line); border-radius: 14px;
  background: rgba(255, 253, 248, .8);
  box-shadow: var(--shadow-sm);
}
.rekening__bank { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1rem; color: var(--gold-deep); min-width: 62px; }
.rekening__num { font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .04em; font-size: .92rem; }
.rekening__name { font-size: .72rem; color: var(--ink-soft); }
.rekening__copy { margin-left: auto; }

.kado { margin-top: 1.2rem; text-align: center; font-size: .82rem; color: var(--ink-soft); }
.kado__label { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .3rem; }
.kado__name { font-weight: 600; color: var(--ink); margin-top: .2rem; }
.kado .btn { margin-top: .7rem; }

/* --------------------------- Ucapan & kehadiran --------------------------- */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 400px; margin: 1.5rem auto 0;
  border: 1px solid var(--gold-line); border-radius: 16px;
  background: rgba(255, 253, 248, .78);
  overflow: hidden;
}
.stats__item { padding: .8rem .4rem; text-align: center; position: relative; }
.stats__item + .stats__item::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: var(--gold-line); }
.stats__item strong { display: block; font-family: "Cormorant Garamond", serif; font-size: 1.4rem; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.stats__item span { font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

.wish-form {
  margin-top: 1.4rem; padding: 1.25rem 1.15rem;
  border: 1px solid var(--gold-line); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 254, 250, .95), rgba(250, 243, 230, .8));
  box-shadow: var(--shadow);
  display: grid; gap: 1rem;
}
.field { display: grid; gap: .38rem; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; padding: 0; }
.field input[type="text"], #inNama, #inPesan, select {
  width: 100%;
  font: inherit; font-size: .9rem;
  color: var(--ink);
  padding: .7rem .85rem;
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .75);
  transition: border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
#inNama:focus, #inPesan:focus, select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(178, 138, 65, .16);
  background: #fff;
}
textarea { resize: vertical; min-height: 96px; }
.counter { font-size: .68rem; color: var(--ink-soft); text-align: right; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-deep) 50%), linear-gradient(135deg, var(--gold-deep) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

.pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill span {
  display: inline-block; padding: .5rem .95rem;
  font-size: .78rem; letter-spacing: .04em;
  border: 1px solid var(--gold-line); border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.pill input:checked + span {
  color: #fffdf6; border-color: transparent;
  background: linear-gradient(135deg, #c8a55f, #a8802f);
  box-shadow: 0 8px 18px -12px rgba(140, 104, 34, .9);
}
.pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
.form-status { font-size: .78rem; text-align: center; min-height: 1.1em; color: var(--ink-soft); }
.form-status.is-ok { color: #4c7a4a; }
.form-status.is-err { color: #a4432f; }
.btn.is-busy { opacity: .7; pointer-events: none; }

.wishes { margin-top: 2.2rem; }
.wishes__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.wishes__head h3 { font-family: "Cormorant Garamond", serif; font-size: 1.25rem; color: var(--ink); }
.wishes__count { font-size: .72rem; letter-spacing: .1em; color: var(--ink-soft); }
.wish-list { display: grid; gap: 1rem; }
.wish {
  padding: .85rem .95rem;
  border: 1px solid var(--gold-line); border-radius: 14px;
  background: rgba(255, 253, 248, .82);
  display: grid; grid-template-columns: 38px 1fr; gap: .7rem;
}
.wish__avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Cormorant Garamond", serif; font-size: 1.05rem; font-weight: 600;
  color: #fffdf6;
  background: linear-gradient(135deg, #caa864, #a5802f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.wish__body { min-width: 0; }
.wish__top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; }
.wish__name { font-weight: 600; font-size: .88rem; color: var(--ink); }
.wish__badge {
  font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .14rem .5rem; border-radius: 999px; border: 1px solid var(--gold-line);
  color: var(--gold-deep); background: rgba(231, 213, 173, .3);
}
.wish__time { font-size: .65rem; color: var(--ink-soft); opacity: .8; margin-left: auto; }
.wish__msg { font-size: .84rem; line-height: 1.7; color: var(--ink-soft); margin-top: .2rem; overflow-wrap: anywhere; }
.wishes__empty { text-align: center; font-size: .82rem; color: var(--ink-soft); padding: 1.4rem 0; }
.wishes .btn { margin-top: 1rem; display: block; margin-inline: auto; }

/* ---------------------------- Turut mengundang ---------------------------- */
.invited { display: grid; gap: .1rem; max-width: 430px; margin-inline: auto; }
.invited li {
  text-align: center; font-size: .84rem; line-height: 1.7; color: var(--ink-soft);
  padding: .48rem .3rem; border-bottom: 1px dashed rgba(178, 138, 65, .2);
}
.invited li:last-child { border-bottom: 0; }
.invited li::before { content: "❖"; color: var(--gold); margin-right: .45rem; font-size: .6rem; vertical-align: middle; }

/* -------------------------------- Penutup -------------------------------- */
.section--penutup { text-align: center; padding-bottom: 3rem; }
.section--penutup .lead { margin-bottom: 1rem; }
.section--penutup .salam { margin-top: .35rem; }
.closing { margin: 2.2rem 0 1.6rem; display: grid; gap: .3rem; }
.closing__names { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .15rem .35rem; font-size: clamp(2.2rem, 11vw, 3rem); }
.closing__names span { color: var(--gold-deep); }
.closing__names .cover__amp { font-size: 1.05rem; }
.closing__hash { font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.credit { margin-top: 1.4rem; font-size: .68rem; color: var(--ink-soft); letter-spacing: .04em; display: grid; gap: .15rem; }
.credit a { border-bottom: 1px solid var(--gold-line); }

/* ---------------------------------- Dock --------------------------------- */
.dock {
  position: fixed; z-index: 30;
  left: 50%; transform: translateX(-50%) translateY(0);
  bottom: calc(.65rem + env(safe-area-inset-bottom));
  width: min(calc(100% - max(1rem, env(safe-area-inset-left) + env(safe-area-inset-right))), 460px);
  height: var(--dock-h);
  display: flex; align-items: stretch; justify-content: space-around;
  padding: .35rem;
  gap: .25rem;
  border: 1px solid #bb96566b;
  border-radius: 999px;
  background: linear-gradient(168deg, #fffdf8f5, #f7e9cff5);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 1px 0 #fff, 0 9px 25px -12px #58401880;
  transition: transform .6s var(--ease), opacity .6s ease;
}
.dock[hidden] { display: none; }
.dock__item {
  position: relative; isolation: isolate;
  flex: 1 1 0; min-width: 0; min-height: 44px;
  display: grid; place-content: center; justify-items: center; gap: .25rem;
  color: var(--ink-soft);
  border-radius: 999px;
  padding: .18rem 0;
  -webkit-tap-highlight-color: transparent;
  outline-offset: -3px;
}
.dock__item:focus-visible { outline: 2px solid #795625; }
.dock__item::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 40%, #fffaf0b8 50%, transparent 60%) 100% 0 / 250% 100%,
    linear-gradient(155deg, #fff6da, #ebcf95);
  box-shadow: inset 0 0 0 1px #a7753273, 0 2px 8px #80562020;
}
.dock__item.is-active::before { opacity: 1; }
.dock__hint {
  position: absolute; inset-inline-start: 50%; bottom: calc(100% + .65rem);
  transform: translateX(-50%);
  padding: .35rem .65rem; white-space: nowrap; border-radius: 999px;
  background: #fff9eb; border: 1px solid #c49a59; color: #634318;
  font-size: .72rem; pointer-events: none; opacity: 0; visibility: hidden;
}
.dock__item:first-child .dock__hint { inset-inline-start: 0; transform: none; }
.dock__item:last-child .dock__hint { inset-inline-start: auto; inset-inline-end: 0; transform: none; }
.dock__item.show-hint .dock__hint { opacity: 1; visibility: visible; }
@media (min-width: 260px) { .dock__item { min-width: 44px; } }
@media (display-mode: standalone) { .dock { bottom: calc(.85rem + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: no-preference) {
  .dock__item::before, .dock__hint { transition: opacity .24s ease; }
  .dock__item.is-active::before { animation: dockGlint .85s ease-out both; }
  .dock__item.is-active .gold-icon { animation: dockPop .48s var(--ease); }
}
@keyframes dockGlint { from { background-position: 100% 0, 0 0; } to { background-position: 0 0, 0 0; } }
@keyframes dockPop { 0% { transform: scale(.94); } 60% { transform: scale(1.07); } 100% { transform: scale(1); } }

/* ------------------------------ Musik & naik ------------------------------ */
.music-toggle {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .8rem;
  border: 1px solid var(--gold-line); border-radius: 999px;
  background: rgba(255, 252, 245, .82);
  backdrop-filter: blur(10px);
  color: var(--gold-deep);
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer;
  transition: transform .3s var(--ease), background-color .3s ease;
}
.music-toggle:hover { transform: translateY(-2px); }
.music-toggle--cover { position: absolute; top: max(1rem, env(safe-area-inset-top)); right: 1rem; z-index: 3; }
.music-toggle--float {
  position: fixed; z-index: 31;
  top: max(.85rem, env(safe-area-inset-top)); right: .85rem;
  width: 42px; height: 42px; padding: 0; justify-content: center;
  box-shadow: var(--shadow-sm);
  opacity: 0; pointer-events: none;
  transition: opacity .5s ease, transform .3s var(--ease);
}
.music-toggle--float.is-visible { opacity: 1; pointer-events: auto; }
.music-toggle__bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.music-toggle__bars i { width: 2px; height: 4px; background: currentColor; border-radius: 2px; opacity: .55; transition: height .2s ease; }
.music-toggle[aria-pressed="true"] .music-toggle__bars i { animation: eq 1.1s ease-in-out infinite; opacity: 1; }
.music-toggle[aria-pressed="true"] .music-toggle__bars i:nth-child(2) { animation-delay: .18s; }
.music-toggle[aria-pressed="true"] .music-toggle__bars i:nth-child(3) { animation-delay: .36s; }
.music-toggle[aria-pressed="true"] .music-toggle__bars i:nth-child(4) { animation-delay: .54s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }

.to-top {
  position: fixed; z-index: 31; right: .9rem; bottom: calc(var(--dock-h) + 1.4rem + env(safe-area-inset-bottom));
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--gold-line); background: rgba(255, 252, 245, .88);
  color: var(--gold-deep); cursor: pointer;
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .4s ease, transform .4s var(--ease);
  box-shadow: var(--shadow-sm);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 18px; height: 18px; }

/* --------------------------- Progres gulir ------------------------------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 32; background: transparent; }
.progress i {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: left center;
  background: linear-gradient(90deg, #e0c68b, var(--gold-deep));
  box-shadow: 0 0 12px rgba(178, 138, 65, .6);
  transition: transform .12s linear;
}

/* --------------------------- Toast & lightbox ---------------------------- */
.toast {
  position: fixed; z-index: 70; left: 50%; bottom: calc(var(--dock-h) + 1.6rem + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  padding: .6rem 1.1rem; border-radius: 999px;
  background: rgba(58, 45, 22, .92); color: #fff8ea;
  font-size: .76rem; letter-spacing: .03em;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease, transform .45s var(--ease);
  max-width: 88vw; text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.lightbox {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(30, 24, 12, .92);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 3.2rem 1rem;
  opacity: 0; transition: opacity .4s ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox figure { margin: 0; display: grid; gap: .7rem; justify-items: center; max-height: 100%; }
.lightbox img { max-width: min(92vw, 720px); max-height: 72vh; border-radius: 12px; box-shadow: 0 30px 70px -30px #000; }
.lightbox figcaption { color: #f4e8cf; font-size: .78rem; letter-spacing: .06em; text-align: center; }
.lightbox__close, .lightbox__nav {
  position: absolute; border: 1px solid rgba(244, 232, 207, .28);
  background: rgba(255, 248, 233, .1); color: #f8eed9;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; font-size: 1.3rem; line-height: 1;
  transition: background-color .3s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 248, 233, .22); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: .7rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: .7rem; top: 50%; transform: translateY(-50%); }

/* ------------------------------- Noscript -------------------------------- */
.noscript { padding: 2rem 1.4rem; max-width: 520px; margin: 0 auto; font-size: .9rem; line-height: 1.9; }
.noscript h2 { font-family: "Cormorant Garamond", serif; color: var(--gold-deep); }

/* --------------------------- Layar pendek (HP kecil) ---------------------- */
@media (max-height: 720px) {
  .cover { align-items: start; }
  .cover__inner { padding-block: .4rem 1rem; gap: .35rem; }
  .cover__guest { padding: .8rem 1.1rem; margin-top: .8rem; }
  .cover__guest-note { display: none; }
  .cover__names { font-size: clamp(2.3rem, min(15vw, 7vh), 3.6rem); }
  .cover .divider { margin-block: .5rem; }
  .cover__date { font-size: .92rem; }
}

/* ------------------------------- Responsif ------------------------------- */
@media (min-width: 640px) {
  body { font-size: 16px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery__item:nth-child(1) { grid-column: span 2; grid-row: span 2; aspect-ratio: 1; }
  .events { grid-template-columns: 1fr 1fr; }
  .map iframe { min-height: 380px; }
  .cover__orn { width: 260px; }
}
@media (min-width: 900px) {
  .cover__names { font-size: 5rem; }
  .cover__orn--tl { top: 0; left: 2%; }
  .cover__orn--br { bottom: 0; right: 2%; }

  /* Kolom undangan diberi garis tepi emas tipis seperti kartu cetak. */
  .main::before, .main::after {
    content: ""; position: fixed; top: 0; bottom: 0; width: 1px; z-index: 0;
    background: linear-gradient(180deg, transparent, var(--gold-line) 10%, var(--gold-line) 90%, transparent);
  }
  .main::before { left: calc(50% - 322px); }
  .main::after { right: calc(50% - 322px); }
}

/* -------------------------- Gerak minimal -------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .frame img, .frame img { opacity: 1 !important; transform: none !important; }
  .split__cap { opacity: 1; transform: none; }
  .divider .draw { stroke-dashoffset: 0 !important; }
  .divider .orn-star { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Tipografi dan ukuran sentuh untuk layar HP. */
@media (max-width: 639px) {
  body { font-size: 17px; background-attachment: scroll; }
  .lead, .ayat figcaption p, .venue__addr, .event__note, .wish__msg, .invited li { font-size: 1rem; }
  .btn, .pill span { font-size: .92rem; min-height: 44px; letter-spacing: .03em; }
  .field label, .field legend { font-size: .88rem; letter-spacing: .04em; }
  #inNama, #inPesan, .field select { font-size: 1.0625rem; min-width: 0; }
  .countdown { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .countdown__cell span, .stats__item span { font-size: .75rem; letter-spacing: .03em; }
  .wish__name, .map__desc, .trakteer__body small { font-size: .92rem; }
  .dock__item span { font-size: clamp(.65rem, 3.2vw, .8rem); }
  .to-top, .music-toggle--float { min-width: 44px; min-height: 44px; }
}

.section--peta .map { margin-top: 1rem; }
.section--peta .map__card .btn { margin-top: .85rem; }
.map__fallback { margin-top: .75rem; text-align: center; font-size: .9rem; color: var(--ink-soft); }
.ucapan-link { text-align: center; }
.ucapan-link .btn { margin-top: 1.15rem; }
.page-ucapan__back { padding-top: max(1rem, env(safe-area-inset-top)); }
.page-ucapan .section--ucapan { padding-top: 1.75rem; }
.page-ucapan .main { padding-bottom: 2rem; }
.page-ucapan .toast { bottom: max(1rem, env(safe-area-inset-bottom)); }
.dock__item[hidden] { display: none; }

/* Linimasa dan satu balasan bercabang per ucapan. */
.wish { background: var(--ivory); box-shadow: var(--shadow-sm); }
.wish__name { font-size: .96rem; font-weight: 700; }
.wish__msg { font-size: .95rem; white-space: pre-wrap; margin-top: .45rem; }
.wish__reply {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr);
  align-items: start; gap: .45rem; margin-top: .75rem; padding-left: .15rem;
}
.wish__reply::before {
  content: ""; position: absolute; pointer-events: none;
  left: calc(-.7rem - 19px); top: 0; width: calc(.7rem + 19px); height: 13px;
  border: solid var(--gold-line); border-width: 0 0 2px 2px; border-radius: 0 0 0 12px;
}
.wish__reply-avatar {
  display: flex; align-items: center;
}
.wish__reply-avatar img {
  flex: 0 0 26px; width: 26px; height: 26px; object-fit: cover;
  object-position: center 35%; border: 2px solid var(--ivory); border-radius: 50%;
  background: var(--gold-soft);
}
.wish__reply-avatar img + img {
  margin-inline-start: -8px;
}
.wish__reply-bubble { padding: .55rem .7rem; border-radius: 4px 15px 15px; background: #f4ead8; }
.wish__reply-bubble strong { font-size: .85rem; }
.wish__reply-label { display: block; color: var(--ink-soft); font-size: .72rem; }
.wish__reply-bubble p { margin-top: .25rem; font-size: .9rem; line-height: 1.55; }


/* Jenis kiriman dipisahkan dari status RSVP. */
.wish__kind {
  display: table; margin-bottom: .35rem; padding: .16rem .55rem;
  border: 1px solid transparent; border-radius: 999px;
  font-size: .75rem; font-weight: 700; line-height: 1.4;
}
.wish__kind--doa { background: #e8eee7; color: #38563f; }
.wish__kind--hadiah { background: #f2dfb8; color: #694719; }
.wish__kind--uji { background: #eee9e0; color: #5d5549; border-color: #dacfc0; }
.wish--hadiah { border-color: #d8bf88; }

/* Kartu berada pada lingkaran 3D, dengan wajah aktif rata di depan. */
.wish-carousel { min-width: 0; }
.wish-carousel__hint { font-size: .82rem; color: var(--ink-soft); margin-bottom: .6rem; }
.wish-carousel__stage {
  position: relative; perspective: 850px; perspective-origin: center 3.4rem; overflow: clip;
  padding: 3.55rem 0 2rem;
}
.wish-carousel__track {
  display: grid; justify-items: center; align-items: start;
  transform-style: preserve-3d;
  will-change: transform;
}
/* Dua sisi membentuk permukaan gulungan; zona luar tetap bisa menggulir halaman. */
.wish-carousel__drag-zone { width: 92%; margin-inline: auto; touch-action: none; transform-style: preserve-3d; }
.wish-carousel__track > .wish-slot {
  grid-area: 1 / 1; width: min(94%, 480px); min-width: 0;
  display: grid; transform-style: preserve-3d;
  transform: rotateY(var(--card-angle, 0deg)) translateZ(var(--ring-radius, 0px)) rotateX(var(--tilt, 0deg));
}
.wish__front, .wish__back {
  grid-area: 1 / 1; min-width: 0; backface-visibility: hidden;
  border-radius: 1.65rem / 2rem;
  box-shadow: inset 0 2px 1px #fffefa, inset 0 -5px 12px #8f6a2b1b,
    0 14px 22px -10px #51391e66, 0 1px 3px #563b2030;
}
.wish__front {
  transform: translateZ(.5px);
  background: linear-gradient(100deg, #eee0c7 0%, #fffdf8 17%, #fffdf8 80%, #f0e4ce 100%);
}
.wish-slot[aria-hidden="true"] .wish__front {
  background: linear-gradient(100deg, #d8c3a0, #f7eedf 31%, #f5ead9 71%, #d0b891);
}
.wish-slot.wish--hadiah .wish__front { border-color: #d8bf88; }
.wish__back {
  border: 1px solid var(--gold-line);
  background: url("../img/sudut-bunga.svg") right bottom / min(48%, 145px) auto no-repeat,
    var(--pattern), linear-gradient(95deg, #c9ae89, #f8edda 23%, #fff9ed 53%, #d7bb93);
  box-shadow: inset 0 0 0 6px #fff8e980, 0 14px 22px -10px #51391e66;
  transform: rotateY(180deg) translateZ(.5px);
}
.wish-carousel__stage::before {
  content: ""; position: absolute; inset-inline: 12%; bottom: .35rem; height: 1.5rem;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse, #79552b59 0%, #99714232 40%, #b68c5800 73%);
}
.wish-carousel__track > .wish-slot:only-child { width: 100%; }
.wish-carousel__track > .wish-slot[aria-hidden="true"] { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .wish-carousel__track, .wish-carousel__track > .wish-slot { transition: none; }
  .wish-carousel__track > .wish-slot[aria-hidden="true"] { visibility: hidden; }
}
.wish-carousel__controls { display: flex; align-items: center; justify-content: center; gap: .85rem; color: var(--ink-soft); }
.wish-carousel__controls[hidden] { display: none; }
.wish-carousel__controls button {
  width: 44px; height: 44px; border: 1px solid var(--gold-line); border-radius: 50%;
  background: var(--ivory); color: var(--gold-deep); cursor: pointer;
  transition: background-color .25s ease, transform .25s var(--ease);
}
.wish-carousel__controls button:active:not(:disabled) { transform: scale(.9); background: var(--gold-soft); }
.wish-carousel__controls button:disabled { opacity: .4; cursor: default; }
.wish-carousel__controls [data-slide-count] { font-size: .82rem; font-variant-numeric: tabular-nums; }
.wish-slot[data-kehadiran="hadir"] .wish__front { border-inline-start: 3px solid #4b8058; }
.wish-slot[data-kehadiran="tidak_hadir"] .wish__front { border-inline-start: 3px solid #b5575a; }
.wish-slot[data-kehadiran="ragu"] .wish__front { border-inline-start: 3px solid #ad7928; }
.wish__badge--hadir { color: #245135; background: #e1f0e3; border-color: #b0cdb6; }
.wish__badge--tidak { color: #852f36; background: #f8e4e4; border-color: #e5b8b9; }
.wish__badge--ragu { color: #745012; background: #fbefd6; border-color: #e5ce9f; }

.wish__city { color: var(--ink-soft); font-size: .82rem; }
.wish__reaction {
  display: flex; width: fit-content; margin: .55rem 0 0 auto; padding: .12rem .5rem;
  border-radius: 999px; background: #f7ecd4; border: 1px solid #dfc896;
}

/* Mulai ketika kartu benar-benar masuk layar, bukan saat data dimuat. */
.wish--terlihat .wish__reaction > img { animation: ringPop .55s .18s var(--ease) both; }
@keyframes ringPop {
  0% { transform: scale(.78); }
  48% { transform: scale(1.32) rotate(-10deg); }
  75% { transform: scale(.94) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}
@media (prefers-reduced-motion: reduce) {
  .wish--terlihat, .wish--terlihat .wish__reaction > img { animation: none; }
}

/* Ilustrasi botani di ruang tersendiri agar tidak menutupi isi kartu. */
.wish__front { position: relative; padding: 1.05rem .95rem 4rem; overflow: hidden; }
.wish__front::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  width: min(46%, 126px); height: 3.65rem;
  background: url("../img/sudut-bunga.svg") no-repeat right bottom / contain;
  pointer-events: none; transform-origin: right bottom;
}
.wish--terlihat .wish__front::after { animation: floralSway 7s ease-in-out infinite; }
@keyframes floralSway {
  0%, 100% { transform: rotate(0); }
  50% { transform: rotate(2.5deg); }
}
.wish-carousel__controls [data-slide-play] { width: auto; padding-inline: .85rem; border-radius: 999px; font-size: .82rem; }
@media (prefers-reduced-motion: reduce) {
  .wish--terlihat .wish__front::after { animation: none; }
}

/* Potret tetap di tengah, di luar bidang putar agar tidak tertutup kartu. */
.wish-carousel__couple {
  width: max-content; max-width: 100%; margin: .85rem auto .35rem;
  text-align: center;
}
.wish-carousel__portraits { display: flex; justify-content: center; }
.wish-carousel__portraits img {
  width: 56px; height: 56px; object-fit: cover; object-position: center 35%;
  border-radius: 50%; border: 3px solid var(--ivory); box-shadow: 0 0 0 1px var(--gold-soft), var(--shadow-sm);
  background: var(--cream-deep);
}
.wish-carousel__portraits img + img { margin-inline-start: -.45rem; }
.wish-carousel__couple figcaption {
  font: 600 1.25rem/1.15 "Cormorant Garamond", serif; color: var(--gold-deep); margin-top: .35rem;
}

.wish-carousel__stage--dragging { cursor: grabbing; user-select: none; }
.wish-carousel__controls button[hidden] { display: none; }

/* Bingkai khusus Tanda Kasih: ornamen berhadapan, di luar area teks. */
.wish-slot.wish--hadiah .wish__front,
.wish-slot.wish--hadiah .wish__back {
  --sudut-hadiah: 4.45rem;
  position: relative;
  border-color: #c4a268;
  background: linear-gradient(140deg, #fbf5e6, #fffefa 30%, #fffefa 68%, #fbf3e2);
}
.wish-slot.wish--hadiah .wish__front { padding-block: calc(var(--sudut-hadiah) + .4rem); }
/* Ilustrasi berada di lapisan sendiri dan tidak mengubah ukuran carousel. */
.wish__back { position: relative; overflow: hidden; background: #fffaf0; }
.wish__back-art {
  position: absolute; inset: .35rem;
  width: calc(100% - .7rem); height: calc(100% - .7rem);
  object-fit: contain;
  pointer-events: none;
}
.wish-slot.wish--hadiah .wish__front::before,
.wish-slot.wish--hadiah .wish__front::after,
.wish-slot.wish--hadiah .wish__back::before,
.wish-slot.wish--hadiah .wish__back::after {
  content: "";
  position: absolute;
  width: min(51%, 110px);
  height: var(--sudut-hadiah);
  background: url("../img/sudut-emas.svg") left top / contain no-repeat;
  pointer-events: none;
  transform-origin: center;
  animation: none;
}
.wish-slot.wish--hadiah .wish__front::before,
.wish-slot.wish--hadiah .wish__back::before { top: .25rem; left: .25rem; }
.wish-slot.wish--hadiah .wish__front::after,
.wish-slot.wish--hadiah .wish__back::after {
  right: .25rem; bottom: .25rem;
  transform: rotate(180deg);
}
@media (prefers-reduced-motion: no-preference) {
  .wish-slot.wish--hadiah.wish--terlihat .wish__front::before,
  .wish-slot.wish--hadiah.wish--terlihat .wish__back::before { animation: kilauEmas 5.8s ease-in-out infinite; }
  .wish-slot.wish--hadiah.wish--terlihat .wish__front::after,
  .wish-slot.wish--hadiah.wish--terlihat .wish__back::after { animation: kilauEmas 5.8s 1.7s ease-in-out infinite; }
}
@keyframes kilauEmas {
  0%, 64%, 100% { filter: none; }
  76% { filter: brightness(1.22) drop-shadow(0 0 3px #d9ad5899); }
  87% { filter: brightness(1.06); }
}

/* Akses cepat ke ucapan, terpisah dari dock. */
.ucapan-float {
  position: fixed; z-index: 31; right: .9rem;
  bottom: calc(var(--dock-h) + 1.4rem + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 44px; padding: .45rem .9rem; border: 1px solid #a78446;
  border-radius: 999px; background: #765523; color: #fffdf8;
  font-size: .88rem; font-weight: 700; box-shadow: 0 5px 16px #50381e40;
}
.ucapan-float svg { width: 20px; height: 20px; }
.ucapan-float[hidden] { display: none; }
.ucapan-float:not([hidden]) ~ .to-top {
  bottom: calc(var(--dock-h) + 4.65rem + env(safe-area-inset-bottom));
}

/* Sampul ringkas halaman ucapan, tanpa menunda akses ke formulir. */
.wishes-cover {
  position: relative; overflow: hidden; display: grid; justify-items: center;
  margin: 0 0 1.7rem; padding: 1rem .7rem .95rem; text-align: center;
  border: 1px solid var(--gold-line); border-radius: var(--radius);
  background: radial-gradient(ellipse at 50% 5%, #fffef8 12%, #f6e9d3 100%);
  box-shadow: var(--shadow-sm);
}
.wishes-cover__portraits { position: relative; display: flex; justify-content: center; gap: .45rem; }
.wishes-cover__portraits img:not(.wishes-cover__rings) {
  width: clamp(70px, 25vw, 92px); height: auto; aspect-ratio: 92 / 106; object-fit: cover; object-position: center 35%;
  border: 3px solid var(--ivory); border-radius: 50% 50% 43% 43%; box-shadow: 0 0 0 1px var(--gold-soft), var(--shadow-sm);
}
.wishes-cover__rings {
  position: absolute; bottom: -.3rem; left: 50%; transform: translateX(-50%);
  border-radius: 999px; background: var(--ivory); border: 1px solid var(--gold-soft);
  width: 36px; height: 28px; padding: 2px;
}
.wishes-cover figcaption { display: grid; gap: .12rem; margin-top: .75rem; }
.wishes-cover figcaption strong { font: 600 clamp(1.75rem, 7vw, 2.45rem)/1.15 "Cormorant Garamond", serif; color: var(--gold-deep); }
@media (prefers-reduced-motion: no-preference) {
  .wishes-cover__portraits img:first-child { --wishes-enter: -22px; animation: wishesPortraitIn .8s var(--ease) both; }
  .wishes-cover__portraits img:nth-child(2) { --wishes-enter: 22px; animation: wishesPortraitIn .8s .12s var(--ease) both; }
  .wishes-cover__rings { animation: wishesRingGlow 7s 1s ease-in-out infinite; }
}
@keyframes wishesPortraitIn { from { opacity: 0; transform: translateX(var(--wishes-enter)); } to { opacity: 1; transform: none; } }
@keyframes wishesRingGlow { 0%, 72%, 100% { filter: none; } 84% { filter: drop-shadow(0 0 6px #cba45599); } }

/* Rapatkan pengantar agar formulir lebih cepat terjangkau di HP. */
.page-ucapan .section--ucapan { padding-top: 1rem; }
.page-ucapan .section--ucapan .section__head { margin-bottom: .55rem; }
.page-ucapan .section--ucapan .section__head .divider { width: min(126px, 45%); margin-block: .45rem .3rem; }
.page-ucapan .section--ucapan .lead { line-height: 1.58; }
.page-ucapan .wishes-cover { margin-bottom: 1rem; }

.site-footer { padding-block: .6rem; text-align: center; }
.site-footer__credit { color: #80612f; font-size: clamp(.55rem, 2.85vw, .82rem); line-height: 1.5; white-space: nowrap; }
.site-footer__meta {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 0 .45rem; color: #806947; font-size: .65rem; line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.site-footer__meta > * + *::before { content: "·"; margin-inline-end: .45rem; }
.site-footer__meta a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: inherit; text-decoration: underline; text-decoration-color: #80694780;
  text-underline-offset: .18em;
}
.site-footer__meta a::before { text-decoration: none; }

.ayat cite a { text-decoration: underline; text-underline-offset: .22em; }

/* Sorot emas mengitari bingkai kartu, tanpa menutupi isi atau efek reveal. */
@property --event-glow-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@supports (mask-composite: exclude) {
  @media (prefers-reduced-motion: no-preference) {
    .event.is-in::after {
      content: ''; position: absolute; inset: 4px; border-radius: 17px;
      padding: 2px; pointer-events: none;
      background: conic-gradient(from var(--event-glow-angle), transparent 65%, #bc8d3570 78%, #d6a84c 89%, #fff2cd 94%, transparent 100%);
      mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      mask-composite: exclude;
      opacity: .8;
      animation: eventBorderGlow 7s linear infinite;
    }
    .event:nth-child(2).is-in::after { animation-delay: -3.5s; }
  }
}
@keyframes eventBorderGlow {
  to { --event-glow-angle: 360deg; }
}

/* Panel bawah: isi tetap dapat digulir saat papan ketik HP tampil. */
html:has(.bottom-sheet[open]) { overflow: hidden; }
.bottom-sheet {
  position: fixed; inset: auto 0 0; margin: 0 auto;
  width: min(100%, 640px); max-width: 100%; max-height: min(88vh, 88dvh);
  padding: 0; overflow: auto; overscroll-behavior: contain;
  border: 1px solid var(--gold-line); border-radius: 1.55rem 1.55rem 0 0;
  background: #fffaf0; color: var(--ink); box-shadow: 0 -12px 48px #3f2b2040;
}
.bottom-sheet::backdrop { background: #35281980; }
.bottom-sheet__panel { padding: 0 1rem max(1.15rem, env(safe-area-inset-bottom)); }
.bottom-sheet__head {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center;
  justify-content: space-between; gap: .65rem; padding-block: .85rem .5rem;
  background: #fffaf0; border-bottom: 1px solid var(--gold-line);
}
.bottom-sheet__head::before {
  content: ''; position: absolute; top: .35rem; left: 50%; translate: -50% 0;
  width: 2.2rem; height: 3px; border-radius: 3px; background: #b99858;
}
.bottom-sheet__head h2 { font: 700 1.5rem/1.15 'Cormorant Garamond', serif; color: var(--gold-deep); }
.sheet-close {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; cursor: pointer;
}
.gold-icon { width: 30px; height: 30px; object-fit: contain; flex: none; }
.sheet-close .gold-icon, .to-top .gold-icon { width: 34px; height: 34px; }
.dock__item .gold-icon { width: 36px; height: 36px; }
.ucapan-float { width: 48px; height: 48px; padding: 0; justify-content: center; }
.ucapan-float .gold-icon { width: 32px; height: 32px; }
.sheet-trigger { gap: .5rem; white-space: normal; text-align: center; }
.wish-form-entry { position: relative; text-align: center; margin: 1rem 0; padding: .85rem; border-radius: var(--radius); border: 1px solid var(--gold-line); background: #fffaf0; }
.wish-form-entry::before {
  content: "";
  position: absolute;
  inset: .55rem;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 9% 82%, #fffef8 1px, #e9dcc0 3px, transparent 4px),
    radial-gradient(circle at 15% 91%, #fffdf6 1px, #eadcbe 2px, transparent 3px),
    radial-gradient(circle at 6% 93%, #fffdf6 1px, #e8d7b5 2px, transparent 3px),
    radial-gradient(circle at 91% 16%, #fffef8 1px, #e9dcc0 3px, transparent 4px),
    radial-gradient(circle at 84% 9%, #fffdf6 1px, #eadcbe 2px, transparent 3px),
    radial-gradient(circle at 95% 6%, #fffdf6 1px, #e8d7b5 2px, transparent 3px);
}
.wish-form-entry__glints {
  position: absolute;
  inset: .55rem;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 76%, #bd8b35 1px, #f0d68a88 2px, transparent 4px),
    radial-gradient(circle at 95% 24%, #bd8b35 1px, #f0d68a88 2px, transparent 4px);
  opacity: .55;
}
@media (prefers-reduced-motion: no-preference) {
  .wish-form-entry__glints { animation: wish-glints 7s ease-in-out infinite; }
  @keyframes wish-glints { 0%, 55%, 100% { opacity: .25; } 72% { opacity: .95; } }
}
.wish-form-entry .plaque-btn { position: relative; }

.bottom-sheet .wish-form { margin: 0; padding: 1rem 0 0; border: 0; background: transparent; box-shadow: none; }
.bottom-sheet .map__card { margin-top: .75rem; }
.bottom-sheet .map iframe { display: block; width: 100%; }
.gold-glow { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .bottom-sheet[open] { animation: sheetSlideUp .42s var(--ease) both; }
}
@keyframes sheetSlideUp { from { transform: translateY(100%); } to { transform: none; } }
@supports (mask-composite: exclude) {
  @media (prefers-reduced-motion: no-preference) {
    .gold-glow::after, .bottom-sheet[open] .bottom-sheet__head::after {
      content: ''; position: absolute; inset: 3px; padding: 2px; border-radius: inherit;
      pointer-events: none; opacity: .78;
      background: conic-gradient(from var(--event-glow-angle), transparent 70%, #b8872f80 80%, #d5a748 89%, #fff2cd 95%, transparent 100%);
      mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      mask-composite: exclude;
      animation: eventBorderGlow 8s linear infinite;
    }
    .bottom-sheet[open] .bottom-sheet__head::after { inset: 7px 0 0; border-radius: .8rem; }
  }
}

.section--turut__icon { display: block; width: min(190px, 100%); height: auto; margin: 0 auto .5rem; }
.plaque-btn { display: block; width: min(185px, 100%); margin: .6rem auto; padding: 0; border: 0; background: none; color: var(--gold-deep); cursor: pointer; }
.plaque-btn img { display: block; width: 100%; height: auto; }
.plaque-btn:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 1rem; }
.plaque-btn--submit:not(:disabled) #btnKirimLabel { display: none; }
.plaque-btn--submit:disabled img { opacity: .65; }

/* Cokelat hangat untuk judul; emas tetap menjadi aksen. */
:root { --heading-warm: #57391f; }
.section__title, .event__name, .person__name,
.cover__names [data-bind], .closing__names [data-bind],
.wishes-cover figcaption strong, .wishes__head h3, .bottom-sheet__head h2 {
  color: var(--heading-warm);
}
.dock__item[data-nav="peta"] .gold-icon { width: 39px; height: 39px; }
.dock__item[data-nav="turut"] .gold-icon { width: 34px; height: 34px; }
.section--turut__icon { filter: saturate(.82) contrast(.94); }

.hadiah-float { left: .9rem; right: auto; }
.page-ucapan #hadiah { scroll-margin-top: .75rem; }
.tanda-kasih-frame { display: block; width: 100%; height: min(62vh, 62dvh); border: 0; }
[data-gift-fallback] { text-decoration: underline; }

/* Panel Tanda Kasih lebih tinggi, dengan bingkai luar transparan. */
#sheetTandaKasih { background: transparent; border: 0; box-shadow: none; max-height: 95vh; max-height: 95dvh; }
#sheetTandaKasih .bottom-sheet__panel { padding-inline: .5rem; }
#sheetTandaKasih .bottom-sheet__head { background: #fffaf0c9; border-radius: 1rem 1rem 0 0; padding-inline: .8rem; }
#sheetTandaKasih .tanda-kasih-frame { height: calc(95vh - 7.5rem); height: calc(95dvh - 7.5rem - env(safe-area-inset-bottom)); }
#sheetTandaKasih .map__fallback { background: #fffaf0db; margin: 0; padding: .55rem; border-radius: 0 0 .75rem .75rem; }
#sheetTandaKasih .bottom-sheet__head { touch-action: none; }
.gift-refresh-hint { display: block; font-size: .66rem; line-height: 1.3; color: var(--gold-deep); }
.gift-refresh { margin-inline-start: auto; color: var(--gold-deep); font-size: 1.5rem; }
.qris-note { margin: 0; padding: .6rem .75rem; background: #fffaf0eb; color: #57391f; font-size: .78rem; line-height: 1.45; }
#sheetTandaKasih .tanda-kasih-frame { height: calc(95vh - 12.5rem); height: calc(95dvh - 12.5rem - env(safe-area-inset-bottom)); min-height: 14rem; }
/* Kiriman hadiah tetap setinggi isi, dengan balasan selebar kartu. */
.wish-slot.wish--hadiah .wish__front,
.wish-slot.wish--hadiah .wish__back { --sudut-hadiah: clamp(2rem, 8vw, 3rem); }
.wish--hadiah .wish__front > .wish__reply {
  grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr);
  gap: .25rem; margin: 0; padding: 0; min-width: 0;
}
.wish--hadiah .wish__reply-bubble p { line-height: 1.45; overflow-wrap: anywhere; }
#carouselHadiah .wish-carousel__stage { padding-top: 1.75rem; }

/* Linimasa: beri balasan ruang selebar kartu, bukan kolom sempit di kanan. */
#carouselUcapan .wish__front { padding-bottom: clamp(2.75rem, 11vw, 3.5rem); }
#carouselUcapan .wish__front > .wish__reply {
  grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr);
  gap: .25rem; margin: 0; padding: 0; min-width: 0;
}
#carouselUcapan .wish__reply-bubble p { line-height: 1.45; overflow-wrap: anywhere; }
/* Gold Verified Badge — dekorasi pengirim, bukan status verifikasi. */
.wish__sender-check {
  display: inline-grid; place-items: center; vertical-align: .08em;
  width: 1.18em; height: 1.18em; margin-inline-start: .35em;
  border-radius: 50%; border: 1px solid #a47a26;
  background: linear-gradient(120deg, #986720 12%, #D4AF37 34%, #f9e4a0 48%, #D4AF37 62%, #986720 86%);
  background-size: 240% 100%; background-position: right center;
  color: #fff8db; text-shadow: 0 1px 2px #624214;
  font-size: .92em; font-weight: 800; line-height: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .wish--terlihat .wish__sender-check { animation: kilauPengirim 5.5s ease-in-out infinite; }
}
@keyframes kilauPengirim {
  0%, 58% { background-position: right center; transform: scale(1); box-shadow: none; }
  73% { transform: scale(1.06); box-shadow: 0 0 .38rem #d4af3766; }
  88%, 100% { background-position: left center; transform: scale(1); box-shadow: none; }
}
.page-ucapan .hadiah-float { bottom: calc(.85rem + env(safe-area-inset-bottom)); }

.wish-carousel .wish__front > .wish__reply::before {
  content: ""; position: static; grid-column: 1 / -1;
  width: 50%; height: 1px; margin: .12rem auto .35rem;
  border: 0; border-radius: 0;
  background: linear-gradient(90deg, transparent, #c49545, #fff2cd, #c49545, transparent);
  background-size: 200% 100%; background-position: center;
}
@media (prefers-reduced-motion: no-preference) {
  .wish-carousel .wish--terlihat .wish__front > .wish__reply::before {
    animation: kilauGarisBalasan 4s ease-in-out infinite alternate;
  }
}
@keyframes kilauGarisBalasan { from { background-position: left; } to { background-position: right; } }
.ucapan-float, .to-top, .music-toggle--float {
  background: transparent; border-color: transparent; box-shadow: none;
}
.ucapan-float .gold-icon, .to-top .gold-icon { filter: drop-shadow(0 2px 2px #76552340); }
.page-ucapan .share-float {
  bottom: calc(.85rem + env(safe-area-inset-bottom));
  display: inline-flex; flex-direction: column; gap: 0;
  width: auto; min-width: 48px; height: auto; min-height: 48px;
  color: #80612f; font-size: .68rem; line-height: 1.15; cursor: pointer;
}
.page-ucapan .share-float[hidden] { display: none; }
.page-ucapan .share-float {
  left: .9rem; right: auto;
  bottom: calc(4.3rem + env(safe-area-inset-bottom));
}
.page-ucapan :is(.hadiah-float, .share-float) .gold-icon {
  width: 38px;
  height: 38px;
}
@media (prefers-reduced-motion: no-preference) {
  .page-ucapan .hadiah-float .gold-icon { animation: getarKadoUcapan 6s ease-in-out infinite; }
  @keyframes getarKadoUcapan {
    0%, 12%, 100% { transform: translateX(0) rotate(0); }
    2%, 6% { transform: translateX(-1.5px) rotate(-5deg); }
    4%, 8% { transform: translateX(1.5px) rotate(5deg); }
    10% { transform: translateX(-.5px) rotate(-2deg); }
  }
}
.cover .share-float--cover {
  position: absolute; left: max(.9rem, env(safe-area-inset-left)); right: auto;
  bottom: calc(.85rem + env(safe-area-inset-bottom));
  display: inline-flex; flex-direction: column; gap: 0;
  width: auto; min-width: 48px; height: auto; min-height: 48px;
  color: #80612f; font-size: .68rem; line-height: 1.15; cursor: pointer;
}
.cover .share-float--cover[hidden] { display: none; }

.share-sheet__card {
  margin: .75rem auto; padding: .6rem .6rem .85rem; text-align: center;
  border: 1px solid var(--gold-line); border-radius: var(--radius); background: #fff6e3;
}
.share-sheet__photo {
  display: grid; width: min(100%, 49dvh); aspect-ratio: 1400 / 933;
  margin-inline: auto; overflow: hidden; border-radius: .75rem; background: #f1dfb9;
}
.share-sheet__half { grid-area: 1 / 1; width: 100%; height: auto; display: block; }
.share-sheet__half--left { clip-path: inset(0 49.9% 0 0); --split-offset: -18%; }
.share-sheet__half--right { clip-path: inset(0 0 0 50%); --split-offset: 18%; }
@media (prefers-reduced-motion: no-preference) {
  .share-sheet[open] .share-sheet__half { animation: satukanFotoBagikan 1.15s .12s var(--ease) both; }
}
@keyframes satukanFotoBagikan {
  from { transform: translateX(var(--split-offset)); opacity: .72; }
  to { transform: none; opacity: 1; }
}
.share-sheet__card h3 { color: #57391f; font: 700 1.65rem/1.15 'Cormorant Garamond', serif; margin-top: .5rem; }
.share-sheet__message { color: #695131; font-size: .86rem; line-height: 1.45; margin-top: .25rem; }
.share-sheet__status { text-align: center; font-size: .76rem; color: var(--gold-deep); }
.share-sheet__status:empty { display: none; }
.share-sheet__footer { text-align: center; color: #80612f; font-size: .7rem; margin-top: .65rem; }
.share-sheet [data-share-native][hidden] { display: none; }

/* Plakat Kirim Doa lebih ringkas, dengan kilau perlahan saat siap dikirim. */
.plaque-btn--submit { width: min(135px, 100%); min-height: 44px; }
@media (prefers-reduced-motion: no-preference) {
  #sheetUcapan[open] .plaque-btn--submit:not(:disabled) img {
    animation: kilauKirimDoa 5.5s ease-in-out infinite;
  }
}
@keyframes kilauKirimDoa {
  0%, 58%, 100% { transform: scale(1); filter: none; }
  78% { transform: scale(1.045); filter: drop-shadow(0 0 5px #d4af3773); }
}

.site-footer__handle {
  margin: .15rem 0 0; text-align: center;
  color: #806947; font-size: .65rem; line-height: 1.3;
}

.share-social { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .2rem; max-width: 25rem; margin: 1rem auto .45rem; }
.share-social__item {
  display: grid; justify-items: center; align-content: start; gap: .28rem;
  min-height: 48px; padding: .12rem 0; border: 0; border-radius: .6rem;
  background: transparent; color: #6d5128; font-family: inherit; font-weight: 600; line-height: 1.2;
  font-size: clamp(.58rem, 2.3vw, .72rem); cursor: pointer; text-decoration: none;
}
.share-social__item:focus-visible { outline: 2px solid #947032; outline-offset: 2px; }
.share-social__medal {
  display: grid; place-items: center; width: clamp(36px, 12vw, 48px); aspect-ratio: 1;
  border-radius: 50%; border: 1px solid #c59841; color: #684718;
  background: linear-gradient(125deg, #d1a34a 10%, #fff6d7 34%, #e4bb64 57%, #fff1c3 72%, #b7822c 94%);
  background-size: 240% 100%; background-position: right center;
  box-shadow: inset 0 0 0 2px #fff2cf9c;
}
.share-social__medal svg { width: 57%; height: 57%; }
@media (prefers-reduced-motion: no-preference) {
  .share-sheet[open] .share-social__medal { animation: kilauIkonBagikan 5.6s ease-in-out infinite; }
  .share-social__item:nth-child(2n) .share-social__medal { animation-delay: .45s; }
  .share-social__item:nth-child(3n) .share-social__medal { animation-delay: .9s; }
}
@keyframes kilauIkonBagikan {
  0%, 57% { background-position: right center; }
  86%, 100% { background-position: left center; }
}

/* Partikel bergerak di belakang kartu, tanpa menangkap sentuhan. */
.page-ucapan .ambient__petal { opacity: .23; }
.page-ucapan .main { position: relative; }
