/* Ksatria — undangan khitanan: biru malam, emas, bulan sabit, perisai. */
@font-face { font-family: "Cinzel"; src: url("fonts/cinzel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("fonts/nunito-sans.woff2") format("woff2"); font-weight: 200 1000; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("fonts/amiri-bismillah.woff2") format("woff2"); font-display: swap; }

:root {
  --navy: #0b1531;
  --navy-2: #12224a;
  --navy-3: #1a2d5c;
  --gold: #e3c172;
  --gold-soft: #f3dfa6;
  --gold-deep: #b48a3c;
  --ivory: #f5efdf;
  --muted: #c2c9de;
  --line: rgba(227, 193, 114, 0.38);
  --gold-grad: linear-gradient(180deg, #f8e6ad 0%, #e0bc68 50%, #b88e3e 100%);
  --display: "Cinzel", "Times New Roman", serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
 /* warna hasil tone (dulu ditulis langsung) */ --tn-1: #506ec8; --tn-2: #08112a; --tn-3: #0d1a3d; --tn-4: #0a142f; --tn-5: #0d1a3e; --tn-6: #10204a; --tn-7: #0a1532; --tn-8: #5a78d2; --tn-9: #0b1531; --tn-10: #8fb4ff; --tn-11: #1a2d5c; --tn-12: #0f1d40; --tn-13: #2a4486; --tn-14: #13244f; --tn-15: #1e3468; --tn-16: #8d97b5;
}

/* Tone warna (field "tone"): biru-malam = bawaan di atas. */
:root[data-tone="cokelat"] { --navy: #311b0b; --navy-2: #4a2912; --navy-3: #5c341a; --muted: #decec2; --tn-1: #c88550; --tn-2: #2a1608; --tn-3: #3d210d; --tn-4: #2f190a; --tn-5: #3e220d; --tn-6: #4a2810; --tn-7: #321b0a; --tn-8: #d28f5a; --tn-9: #311b0b; --tn-10: #ffb78f; --tn-11: #5c341a; --tn-12: #40230f; --tn-13: #864f2a; --tn-14: #4f2b13; --tn-15: #683b1e; --tn-16: #b59f8d; }
:root[data-tone="hijau-zamrud"] { --navy: #0b311e; --navy-2: #124a2d; --navy-3: #1a5c3a; --muted: #c2ded1; --tn-1: #50c88f; --tn-2: #082a19; --tn-3: #0d3d25; --tn-4: #0a2f1d; --tn-5: #0d3e26; --tn-6: #104a2d; --tn-7: #0a321e; --tn-8: #5ad299; --tn-9: #0b311e; --tn-10: #8fffc0; --tn-11: #1a5c3a; --tn-12: #0f4027; --tn-13: #2a8657; --tn-14: #134f30; --tn-15: #1e6841; --tn-16: #8db5a2; }
:root[data-tone="marun"] { --navy: #310b14; --navy-2: #4a1221; --navy-3: #5c1a2c; --muted: #dec2c8; --tn-1: #c8506b; --tn-2: #2a0810; --tn-3: #3d0d19; --tn-4: #2f0a13; --tn-5: #3e0d19; --tn-6: #4a101f; --tn-7: #320a14; --tn-8: #d25a75; --tn-9: #310b14; --tn-10: #ff8fb2; --tn-11: #5c1a2c; --tn-12: #400f1c; --tn-13: #862a42; --tn-14: #4f1323; --tn-15: #681e32; --tn-16: #b58d96; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--navy); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ivory);
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, color-mix(in srgb, var(--tn-1) 35%, transparent), transparent 70%),
    radial-gradient(ellipse 50% 30% at 15% 70%, rgba(227, 193, 114, 0.08), transparent 70%),
    url("img/bulan.svg") no-repeat calc(50% - 470px) 140px,
    url("img/bulan.svg") no-repeat calc(50% + 520px) 62%,
    url("img/bintang.svg"),
    linear-gradient(180deg, var(--tn-2) 0%, var(--tn-3) 50%, var(--tn-4) 100%);
  background-size: auto, auto, 220px 220px, 120px 120px, 320px 320px, auto;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); }
svg { display: block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

@keyframes kerlip { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
@keyframes terbit { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes cahaya { from { opacity: 0.55; } to { opacity: 1; } }
@keyframes denyut { from { opacity: 0.9; transform: scale(0.95); } to { opacity: 0; transform: scale(1.14); } }

main {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  overflow: hidden;
  background:
    url("img/bintang.svg"),
    linear-gradient(180deg, var(--tn-5) 0%, var(--tn-6) 35%, var(--tn-3) 70%, var(--tn-7) 100%);
  background-size: 320px 320px, auto;
}
@media (min-width: 560px) {
  main { box-shadow: 0 0 0 1px rgba(227, 193, 114, 0.25), 0 40px 100px -20px rgba(0, 0, 0, 0.7); }
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; }
p { margin: 0 0 0.8em; }
.eyebrow { font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin: 0; }

/* ---------- Sampul ---------- */
.cover {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 104px 22px 44px;
  text-align: center;
  background: radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--tn-8) 32%, transparent) 0, color-mix(in srgb, var(--tn-5) 0%, transparent) 58%);
}
.langit { position: absolute; inset: 0; pointer-events: none; }
.langit .bulan {
  position: absolute;
  top: 32px;
  right: 26px;
  width: 66px;
  height: 66px;
  color: var(--gold-soft);
  transform: rotate(-24deg);
  filter: drop-shadow(0 0 14px rgba(243, 223, 166, 0.55));
  animation: cahaya 4s ease-in-out infinite alternate;
}
.kerlip { position: absolute; color: var(--gold-soft); animation: kerlip 3.2s ease-in-out infinite; }
.t1 { width: 16px; height: 16px; top: 52px; left: 30px; }
.t2 { width: 11px; height: 11px; top: 120px; left: 78px; animation-delay: -1.2s; }
.t3 { width: 12px; height: 12px; top: 112px; right: 112px; animation-delay: -2s; }
.t4 { width: 14px; height: 14px; bottom: 120px; left: 34px; animation-delay: -0.6s; }
.t5 { width: 10px; height: 10px; bottom: 170px; right: 40px; animation-delay: -1.8s; }

.cover .eyebrow { margin-bottom: 18px; }
.perisai { position: relative; width: 260px; height: 300px; margin: 0 auto; }
.perisai-bg { width: 100%; height: 100%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 22px rgba(227, 193, 114, 0.18)); }
.daun { position: absolute; width: 132px; height: 66px; bottom: -18px; color: var(--gold); opacity: 0.95; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4)); }
.daun.kiri { left: -4px; transform: scaleX(-1); }
.daun.kanan { right: -4px; }
.perisai-isi {
  position: absolute;
  left: 36px;
  right: 36px;
  top: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.perisai-isi .kecil { font-family: var(--display); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.cover h1 {
  width: 100%;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.05;
  overflow-wrap: anywhere;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35));
  padding: 4px 0;
}
.js-ready .cover h1 { white-space: nowrap; overflow-wrap: normal; }
.tgl { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 34px 0 0; font-family: var(--body); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-soft); line-height: 1.4; }
.tgl::before, .tgl::after { content: ""; flex: none; width: 30px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.tgl::after { transform: scaleX(-1); }

.to {
  margin: 22px auto 0;
  width: 100%;
  max-width: 320px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--tn-9) 60%, transparent);
  backdrop-filter: blur(4px);
}
.to p { margin: 0; font-size: 13px; color: var(--muted); }
.to .guest { font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--ivory); margin-top: 4px; line-height: 1.3; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  color: #1b1405;
  background: var(--gold-grad);
  box-shadow: 0 10px 22px -10px rgba(227, 193, 114, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--tn-10); outline-offset: 2px; }
.btn.ghost { color: var(--gold-soft); background: transparent; box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn.open { position: relative; margin-top: 26px; padding: 12px 30px; font-size: 16px; }
.btn.open::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 1.5px solid rgba(227, 193, 114, 0.6); animation: denyut 2.4s ease-out infinite; pointer-events: none; }

/* Gerbang */
.js body:not(.opened) { overflow: hidden; height: 100vh; height: 100svh; }
.js body:not(.opened) .isi { display: none; }
.opened .isi { animation: terbit 0.9s ease both; }
.opened .btn.open { display: none; }
.opened .cover { min-height: 0; padding-bottom: 24px; }

/* ---------- Isi ---------- */
.isi { padding: 26px 0 0; }
.isi > section { position: relative; margin: 0 16px 28px; text-align: center; }
section h3 { font-size: 23px; letter-spacing: 0.04em; color: var(--gold); margin: 0 0 10px; }
.pembatas { width: 200px; height: 17px; margin: 0 auto 16px; color: var(--gold); opacity: 0.85; }
.panel {
  position: relative;
  padding: 30px 22px 26px;
  border-radius: 6px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tn-11) 75%, transparent), color-mix(in srgb, var(--tn-12) 85%, transparent));
  border: 1px solid var(--line);
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.8);
  outline: 1px solid rgba(227, 193, 114, 0.16);
  outline-offset: -7px;
}
.panel::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--gold);
  transform: rotate(45deg);
  left: 50%;
  margin-left: -6px;
  box-shadow: 0 0 0 4px var(--navy-2);
}
.panel::before { top: -6px; }

.salam { padding: 18px 8px 4px; }
.bismillah { font-family: "Amiri", serif; font-size: 30px; line-height: 1.9; color: var(--gold-soft); margin: 0 0 6px; direction: rtl; }
.opening { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ivory); margin-bottom: 8px; }
.salam p:last-child { color: var(--muted); margin: 0; }

/* Anak */
.potret { position: relative; width: 200px; height: 232px; margin: 4px auto 18px; }
.potret img, .lambang {
  position: absolute;
  inset: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  object-fit: cover;
  clip-path: polygon(50% 0, 100% 12.5%, 100% 48%, 94% 70%, 80% 87%, 50% 100%, 20% 87%, 6% 70%, 0 48%, 0 12.5%);
}
.lambang {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 38%, var(--tn-13) 0, var(--tn-14) 65%, var(--tn-3) 100%);
}
.lambang-bulan { position: absolute; width: 110px; height: 110px; top: 34px; left: 50%; margin-left: -55px; color: rgba(243, 223, 166, 0.16); transform: rotate(-20deg); }
.lambang span { position: relative; font-family: var(--display); font-weight: 800; font-size: 84px; line-height: 1; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-top: 6px; }
.potret-bingkai { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 10px rgba(227, 193, 114, 0.3)); }
.anak h2 { font-size: 26px; line-height: 1.25; color: var(--ivory); margin-bottom: 10px; }
.parents { color: var(--muted); margin: 0; }
.parents b { color: var(--gold-soft); font-weight: 700; font-size: 17px; }

/* Hitung mundur */
.hitung h3 { font-size: 19px; margin-bottom: 16px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown div {
  position: relative;
  padding: 14px 4px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tn-15) 80%, transparent), color-mix(in srgb, var(--tn-3) 90%, transparent));
}
.countdown div::before { content: ""; position: absolute; top: -4px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; background: var(--gold); transform: rotate(45deg); }
.countdown b { display: block; font-family: var(--body); font-size: 28px; font-weight: 800; line-height: 1.1; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Doa */
.story { color: var(--ivory); }
.ayat { margin: 0; padding: 4px 8px 2px; }
.story + .ayat { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.ayat blockquote { margin: 0; }
.ayat .latin { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--gold-soft); margin-bottom: 6px; }
.ayat p { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.ayat figcaption { font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }

/* Acara */
.acara h3 { margin-bottom: 18px; }
.ev { margin-bottom: 22px; }
.ev .tag { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 12px; }
.ev .when { font-family: var(--body); font-weight: 800; font-size: 21px; line-height: 1.25; color: var(--ivory); margin-bottom: 4px; }
.ev .time { color: var(--gold-soft); font-weight: 700; margin-bottom: 10px; }
.ev .place { display: flex; gap: 6px; justify-content: center; align-items: flex-start; color: var(--muted); text-align: left; max-width: 320px; margin: 0 auto 16px; }
.ev .place svg { width: 18px; height: 18px; flex: none; color: var(--gold); margin-top: 3px; }
.aksi { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.aksi .btn { font-size: 14px; padding: 10px 18px; }

/* Galeri */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--line); padding: 3px; background: color-mix(in srgb, var(--tn-9) 80%, transparent); border-radius: 4px; }
.grid img:nth-child(3n + 1) { grid-column: span 2; aspect-ratio: 16 / 10; }

/* Kado */
.kado p { color: var(--muted); }
.rek { margin-top: 16px; padding: 20px 16px; border: 1px dashed var(--gold); border-radius: 6px; background: color-mix(in srgb, var(--tn-2) 50%, transparent); }
.rek p { margin: 0; }
.rek .bank { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: 0.16em; color: var(--gold); }
.rek .number { font-family: var(--body); font-weight: 800; font-size: 25px; letter-spacing: 0.08em; color: var(--ivory); margin: 4px 0 2px; }
.rek .holder { color: var(--muted); margin-bottom: 16px; }
.btn.done { background: linear-gradient(180deg, #9ee0b6, #4fae78); }

/* RSVP */
.rsvp form { text-align: left; }
.field { display: block; font-weight: 700; font-size: 14px; color: var(--gold-soft); margin-bottom: 14px; }
.field input, .field textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  color: var(--ivory);
  background: color-mix(in srgb, var(--tn-2) 65%, transparent);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 14px;
  min-height: 46px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--tn-16); }
.field textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-weight: 700; font-size: 14px; color: var(--gold-soft); margin-bottom: 6px; padding: 0; }
.pilih { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pilih label { position: relative; }
.pilih input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pilih span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 6px; background: color-mix(in srgb, var(--tn-2) 65%, transparent); font-weight: 700; font-size: 14px; line-height: 1.2; text-align: center; color: var(--ivory); }
.pilih input:checked + span { background: var(--gold-grad); color: #1b1405; border-color: var(--gold); }
.pilih input:focus-visible + span { outline: 3px solid var(--tn-10); outline-offset: 2px; }
.btn.wide { width: 100%; }
.note { border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; color: var(--ivory); background: color-mix(in srgb, var(--tn-2) 50%, transparent); font-size: 15px; }
.note.ok { border-color: rgba(120, 210, 160, 0.6); }
.wishes { list-style: none; padding: 0; margin: 20px 0 0; text-align: left; max-height: 460px; overflow-y: auto; }
.wishes li { padding: 12px 14px; margin-bottom: 10px; border-left: 2px solid var(--gold); background: color-mix(in srgb, var(--tn-2) 50%, transparent); border-radius: 0 6px 6px 0; }
.wishes li.pinned { background: rgba(227, 193, 114, 0.1); }
.wishes p { margin: 0; font-size: 15px; color: var(--ivory); }
.wishes .who { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.wishes .who b { color: var(--gold-soft); }
.hadir { font-size: 10px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #9ee0b6; border: 1px solid rgba(158, 224, 182, 0.5); border-radius: 999px; padding: 0 8px; }
.wish-reply { color: var(--muted) !important; font-style: italic; margin-top: 4px !important; }

/* Penutup */
.penutup { padding: 10px 10px 0; }
.penutup-bulan { width: 46px; height: 46px; margin: 0 auto 14px; color: var(--gold-soft); transform: rotate(-24deg); filter: drop-shadow(0 0 10px rgba(243, 223, 166, 0.5)); }
.penutup p { color: var(--muted); }
.penutup .opening { color: var(--ivory); }
.family { margin-top: 14px; }
.family b { display: block; font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.4; color: var(--gold-soft); margin-top: 4px; }
.penutup .nama { font-family: var(--display); font-weight: 800; font-size: 36px; letter-spacing: 0.06em; margin: 20px 0 0; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; overflow-wrap: anywhere; }

footer { text-align: center; font-size: 13px; color: var(--muted); padding: 22px 16px 34px; border-top: 1px solid rgba(227, 193, 114, 0.15); margin: 10px 16px 0; }
footer a { color: var(--gold); font-weight: 800; }

/* Musik */
.music-toggle {
  position: fixed;
  right: max(14px, calc(50% - 240px + 14px));
  bottom: 18px;
  z-index: 20;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: color-mix(in srgb, var(--tn-9) 90%, transparent);
  color: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(227, 193, 114, 0.3);
}
.music-toggle svg { width: 22px; height: 22px; }
.music-toggle[aria-pressed="true"] svg { animation: putar 4s linear infinite; }
@keyframes putar { to { transform: rotate(360deg); } }

@media (min-width: 560px) {
  .cover { min-height: 860px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* Amplop: beberapa rekening/e-wallet */
.gift-list { display: grid; gap: 14px; width: 100%; }

/* ---------- Animasi ---------- */
:root { --rv-dur: 1050; }
.rv { opacity: 0; scale: .88; filter: blur(3px) brightness(1.8); }
.rv.in { opacity: 1; translate: 0 0; scale: 1; rotate: 0deg; filter: blur(0) brightness(1); clip-path: none; transition: opacity 1.05s cubic-bezier(.34,1.2,.5,1) calc(var(--d, 0) * 1ms), translate 1.05s cubic-bezier(.34,1.2,.5,1) calc(var(--d, 0) * 1ms), scale 1.05s cubic-bezier(.34,1.2,.5,1) calc(var(--d, 0) * 1ms), rotate 1.05s cubic-bezier(.34,1.2,.5,1) calc(var(--d, 0) * 1ms), filter 1.05s cubic-bezier(.34,1.2,.5,1) calc(var(--d, 0) * 1ms), clip-path 1.05s cubic-bezier(.34,1.2,.5,1) calc(var(--d, 0) * 1ms); }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; translate: none; scale: none; rotate: none; filter: none; clip-path: none; } }

@media (prefers-reduced-motion: no-preference) {
  .lambang-bulan, .penutup-bulan, .bulan { animation: mo-ambang 8s ease-in-out infinite; }
  .perisai-isi { animation: mo-kilau 5s ease-in-out infinite; }
}
@keyframes mo-denyut { 0%, 100% { scale: 1; } 50% { scale: 1.08; } }
@keyframes mo-ambang { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes mo-ayun { from { rotate: -2.2deg; } to { rotate: 2.2deg; } }
@keyframes mo-putar { to { rotate: 360deg; } }
@keyframes mo-kerlip { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: .35; scale: .72; } }
@keyframes mo-kilau { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes mo-geser { from { translate: -26px 0; } to { translate: 26px 0; } }
@keyframes mo-garis { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes mo-naik { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
@keyframes mo-blur { from { opacity: 0; filter: blur(10px); scale: 1.05; } to { opacity: 1; filter: blur(0); scale: 1; } }
@keyframes mo-pop { from { opacity: 0; scale: .55; rotate: -8deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }
@keyframes mo-nudge { 0%, 100% { translate: 0 0; } 50% { translate: 5px 0; } }
@keyframes mo-hujan { to { background-position: 0 520px, 0 520px, 0 520px, 0 780px, 0 780px; } }

/* Foto sampul (opsional): lengkung seperti jendela; tinggi menyesuaikan layar supaya tombol "Buka undangan" tetap terjangkau. */
.cover-photo { position: relative; z-index: 1; flex: none; display: block; width: auto; height: clamp(96px, 17svh, 150px); aspect-ratio: 4 / 5; margin: 8px auto 6px; border-radius: 999px 999px 16px 16px; overflow: hidden; border: 3px solid rgba(255, 255, 255, 0.85); box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22); }
.cover-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Cover lebih tinggi dari layar (foto sampul + layar pendek): tetap bisa digulir ke tombol "Buka undangan". */
.js body.locked { overflow: visible; }
/* Bentuk foto sampul khas Ksatria: perisai berbingkai emas. */
.cover-photo { aspect-ratio: 5 / 6; border: 0; border-radius: 0; padding: 3px; background: linear-gradient(160deg, var(--gold-soft), var(--gold-deep)); box-shadow: none; clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }
.cover-photo img { clip-path: polygon(0 0, 100% 0, 100% 60%, 50% 100%, 0 60%); }
@media (max-height: 700px) { .cover-photo { display: none; } } /* layar pendek: sampul seperti semula supaya tombol tetap terlihat */
