/* Pelangi — undangan khitanan pastel: pelangi, awan, bintang. */
@font-face { font-family: "Baloo 2"; src: url("fonts/baloo2.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("fonts/amiri-bismillah.woff2") format("woff2"); font-display: swap; }

:root {
  --ink: #37315f;
  --ink-soft: #5b5680;
  --violet: #5a49c2;
  --violet-deep: #463699;
  --pink: #ffb3b3;
  --peach: #ffd2a6;
  --butter: #fff0a8;
  --mint: #c6efc0;
  --blue: #b5e3ff;
  --lilac: #cdc2ff;
  --card: #ffffff;
  --line: #ece6fb;
  --radius: 28px;
  --shadow: 0 10px 30px -12px rgba(90, 73, 194, 0.28), 0 2px 6px rgba(90, 73, 194, 0.06);
  --display: "Baloo 2", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  position: relative;
  background: linear-gradient(180deg, #d4eaff 0%, #e9f2ff 25%, #fbeef6 55%, #fff3e4 80%, #e6f3ff 100%);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--violet); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { display: block; }

/* Awan latar (terlihat di desktop di kanan-kiri kolom) */
.langit { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.langit .awan { position: absolute; color: #fff; opacity: 0.9; filter: drop-shadow(0 8px 14px rgba(120, 140, 220, 0.12)); }
.langit .a1 { width: 220px; height: 110px; top: 160px; left: 5%; animation: melayang 26s ease-in-out infinite alternate; }
.langit .a2 { width: 160px; height: 80px; top: 34%; left: 11%; animation: melayang 32s ease-in-out -8s infinite alternate; }
.langit .a3 { width: 260px; height: 130px; top: 420px; right: 4%; animation: melayang 30s ease-in-out -4s infinite alternate-reverse; }
.langit .a4 { width: 180px; height: 90px; top: 52%; right: 9%; animation: melayang 24s ease-in-out -12s infinite alternate; }
.langit .a5 { width: 240px; height: 120px; top: 72%; left: 6%; animation: melayang 28s ease-in-out -6s infinite alternate-reverse; }
.langit .a6 { width: 200px; height: 100px; top: 88%; right: 6%; animation: melayang 34s ease-in-out -16s infinite alternate; }
.langit .kilau { width: 22px; height: 22px; color: #ffcf5a; }
.langit .b1 { top: 90px; left: 22%; }
.langit .b2 { top: 28%; right: 20%; color: #ff9fb6; animation-delay: -1s; }
.langit .b3 { top: 63%; left: 20%; color: #a9c8ff; animation-delay: -2s; }
.langit .b4 { top: 80%; right: 22%; animation-delay: -1.6s; }
@media (max-width: 559px) { .langit { display: none; } }
@keyframes melayang { from { transform: translateX(-24px); } to { transform: translateX(28px); } }
@keyframes ayun { from { transform: rotate(-18deg) translateY(0); } to { transform: rotate(-14deg) translateY(-6px); } }
@keyframes kedip { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.45; transform: scale(0.8); } }
@keyframes muncul { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

main {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  background: linear-gradient(180deg, #e4f2ff 0%, #f6f1ff 22%, #fff1f5 55%, #fff8ec 100%);
  min-height: 100vh;
  overflow: hidden;
}
@media (min-width: 560px) {
  main { box-shadow: 0 30px 80px -30px rgba(70, 54, 153, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.7); }
}

section { position: relative; padding: 0 22px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; margin: 0; color: var(--ink); }
p { margin: 0 0 0.8em; }

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--violet);
  margin: 0;
}

/* ---------- Sampul ---------- */
.cover {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 22px 44px;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.95) 0, rgba(255, 255, 255, 0) 55%),
    linear-gradient(180deg, #cfe8ff 0%, #e4f1ff 40%, rgba(253, 238, 246, 0.7) 82%, rgba(246, 241, 255, 0) 100%);
}
.pill {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet-deep);
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid #fff;
  box-shadow: 0 4px 14px -6px rgba(90, 73, 194, 0.35);
  border-radius: 999px;
  padding: 5px 18px 4px;
  margin: 0 0 14px;
}
.arc-wrap { position: relative; width: min(340px, 88vw); aspect-ratio: 400 / 228; margin: 6px auto 4px; }
.arc-wrap .pelangi { width: 100%; height: auto; filter: drop-shadow(0 6px 16px rgba(255, 170, 190, 0.35)); }
.cover-moon { position: absolute; width: 22%; height: auto; aspect-ratio: 1; left: 46%; top: 66%; margin: -11% 0 0 -11%; transform: rotate(-18deg); color: #ffd36b; filter: drop-shadow(0 4px 10px rgba(255, 190, 70, 0.45)); animation: ayun 3.5s ease-in-out infinite alternate; }
.cover-star { position: absolute; width: 8%; height: auto; aspect-ratio: 1; left: 58%; top: 56%; color: #ffc94d; animation: kedip 2.6s ease-in-out infinite; }
.awan.kaki { position: absolute; color: #fff; height: auto; filter: drop-shadow(0 6px 10px rgba(120, 140, 220, 0.18)); }
.awan.kiri { width: 40%; aspect-ratio: 2; left: -10%; bottom: -6%; animation: melayang 7s ease-in-out infinite alternate; }
.awan.kanan { width: 44%; aspect-ratio: 2; right: -12%; bottom: -4%; transform: scaleX(-1); animation: melayang-balik 8s ease-in-out infinite alternate; }
@keyframes melayang-balik { from { transform: scaleX(-1) translateX(-10px); } to { transform: scaleX(-1) translateX(12px); } }
.kilau { position: absolute; color: #fff; opacity: 0.95; animation: kedip 3s ease-in-out infinite; }
.cover .kilau { color: #ffcf5a; }
.k1 { width: 18px; height: 18px; top: 9%; left: 13%; }
.k2 { width: 14px; height: 14px; top: 15%; right: 15%; animation-delay: -1s; color: #ffb3c4 !important; }
.k3 { width: 12px; height: 12px; top: 58%; left: 7%; animation-delay: -2s; color: #a9c8ff !important; }
.k4 { width: 16px; height: 16px; top: 26%; right: 6%; animation-delay: -0.5s; }

.cover .eyebrow { margin-top: 18px; font-size: 14px; }
.cover h1 {
  font-size: clamp(60px, 19vw, 86px);
  font-weight: 800;
  line-height: 1;
  margin: 4px 0 8px;
  color: var(--violet-deep);
  letter-spacing: -0.01em;
  text-shadow: 0 3px 0 #fff, 0 10px 24px rgba(90, 73, 194, 0.22);
  width: 100%;
  overflow-wrap: anywhere;
  padding: 0 4px 6px;
}
.js-ready .cover h1 { white-space: nowrap; overflow-wrap: normal;
}
.date {
  display: inline-block;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  background: linear-gradient(90deg, #ffe0e0, #fff2c6, #dcf5d7, #dcefff, #e7e0ff);
  border-radius: 999px;
  padding: 6px 18px;
  margin: 2px 0 0;
}
.to {
  margin: 22px auto 0;
  width: 100%;
  max-width: 320px;
  background: rgba(255, 255, 255, 0.82);
  border: 1.5px solid #fff;
  border-radius: 22px;
  padding: 14px 18px 12px;
  box-shadow: var(--shadow);
}
.to p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.to .guest { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.25; margin: 4px 0 4px; }
.to .small { font-size: 12px; }

.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(--display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: linear-gradient(180deg, #6a59d6, var(--violet-deep));
  box-shadow: 0 8px 18px -8px rgba(70, 54, 153, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #ffb84d; outline-offset: 2px; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn.ghost { color: var(--violet-deep); background: #fff; box-shadow: inset 0 0 0 2px var(--lilac); }
.btn.open { position: relative; margin-top: 24px; padding: 12px 28px; font-size: 17px; }
.btn.open::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 2px solid rgba(106, 89, 214, 0.45); animation: denyut 2.2s ease-out infinite; pointer-events: none; }
@keyframes denyut { from { opacity: 0.9; transform: scale(0.94); } to { opacity: 0; transform: scale(1.12); } }

/* Gerbang: dengan JS isi disembunyikan sampai "Buka undangan" ditekan */
.js body:not(.opened) { overflow: hidden; height: 100vh; height: 100svh; }
.js body:not(.opened) .isi { display: none; }
.opened .isi { animation: muncul 0.8s ease both; }
.opened .btn.open { display: none; }
.opened .cover { min-height: 0; padding-bottom: 24px; }

/* ---------- Isi ---------- */
.isi { position: relative; padding: 34px 0 0; }
.isi > section { margin: 0 16px 26px; }
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 22px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.card::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -7px;
  transform: translateX(-50%);
  width: 76px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink) 0 20%, var(--peach) 20% 40%, var(--butter) 40% 60%, var(--mint) 60% 80%, var(--blue) 80%);
  box-shadow: 0 0 0 3px #fff;
}
section h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 26px;
  color: var(--violet-deep);
  margin: 0 0 16px;
  text-align: center;
}
section h3 svg { width: 22px; height: 22px; color: #ffbe3d; flex: none; }

.salam { padding-top: 30px; }
.bismillah { font-family: "Amiri", serif; font-size: 27px; line-height: 1.9; color: var(--violet-deep); margin: 0 0 6px; direction: rtl; }
.opening { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); margin-bottom: 8px; }
.salam p:last-child { margin: 0; color: var(--ink-soft); }

/* Anak */
.anak { text-align: center; padding: 6px 22px 4px; }
.foto { position: relative; width: 236px; height: 236px; margin: 0 auto 12px; }
.foto .cincin { position: absolute; inset: 0; width: 100%; height: 100%; }
.foto img, .avatar {
  position: absolute;
  left: 50%;
  top: 56px;
  transform: translateX(-50%);
  width: 166px;
  height: 166px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #fff;
  box-shadow: var(--shadow);
}
.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 25%, #ffffff 0, #f0eaff 40%, #d9ecff 100%);
}
.avatar span { font-family: var(--display); font-weight: 800; font-size: 76px; line-height: 1; color: var(--violet); padding-top: 10px; }
.foto-star { position: absolute; color: #ffc94d; animation: kedip 3s ease-in-out infinite; }
.foto-star.s1 { width: 26px; height: 26px; right: 8px; top: 64px; }
.foto-star.s2 { width: 18px; height: 18px; left: 14px; top: 190px; color: #ff9fb6; animation-delay: -1.4s; }
.anak .eyebrow { margin-bottom: 4px; }
.anak h2 { font-size: 30px; color: var(--violet-deep); margin: 0 0 2px; }
.nick { font-family: var(--display); font-weight: 600; color: #e0789a; font-size: 18px; margin: 0 0 10px; }
.parents { color: var(--ink-soft); font-size: 15px; }
.parents b { color: var(--ink); font-weight: 800; }

/* Hitung mundur */
.hitung { text-align: center; }
.hitung h3 { font-size: 22px; margin-bottom: 14px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown div {
  border-radius: 22px;
  padding: 12px 4px 8px;
  background: #fff;
  box-shadow: var(--shadow);
  border-bottom: 5px solid var(--pink);
}
.countdown div:nth-child(2) { border-color: var(--butter); }
.countdown div:nth-child(3) { border-color: var(--mint); }
.countdown div:nth-child(4) { border-color: var(--blue); }
.countdown b { display: block; font-family: var(--display); font-size: 30px; font-weight: 800; line-height: 1.1; color: var(--violet-deep); font-variant-numeric: tabular-nums; }
.countdown span { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); }

/* Doa */
.story { font-size: 16px; color: var(--ink); }
.ayat { margin: 16px 0 0; padding: 18px 16px 14px; border-radius: 22px; background: linear-gradient(135deg, #f3efff, #e8f5ff); }
.ayat blockquote { margin: 0; }
.ayat .latin { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--violet-deep); margin-bottom: 6px; }
.ayat p { color: var(--ink-soft); font-size: 15px; margin: 0 0 8px; }
.ayat figcaption { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--violet); }

/* Acara */
.acara { padding: 0; }
.ev {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 22px 22px;
  margin: 0 0 18px;
  text-align: center;
  overflow: hidden;
}
.ev::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--pink), var(--peach), var(--butter), var(--mint), var(--blue), var(--lilac));
}
.ev .tag {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: var(--violet-deep);
  background: #efeaff;
  border-radius: 999px;
  padding: 4px 14px 3px;
  margin: 4px 0 10px;
}
.ev2 .tag { background: #ffe9ef; color: #a03a5c; }
.ev .when { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; margin: 0 0 4px; }
.ev .time { color: var(--ink-soft); font-weight: 700; margin-bottom: 10px; }
.ev .place { display: flex; gap: 6px; justify-content: center; align-items: flex-start; color: var(--ink-soft); text-align: left; margin: 0 auto 14px; max-width: 320px; }
.ev .place svg { width: 18px; height: 18px; flex: none; color: #ff8fa8; margin-top: 3px; }
.aksi { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.aksi .btn { font-size: 15px; padding: 10px 18px; }
.aksi .btn svg { width: 17px; height: 17px; }

/* Galeri */
.galeri { padding: 0; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; border: 4px solid #fff; box-shadow: var(--shadow); }
.grid img:nth-child(3n + 1) { grid-column: span 2; aspect-ratio: 16 / 10; }

/* Kado */
.kado p { color: var(--ink-soft); }
.rek {
  margin-top: 14px;
  padding: 18px 16px;
  border-radius: 22px;
  border: 2px dashed var(--lilac);
  background: #faf8ff;
}
.rek p { margin: 0; }
.rek .bank { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: 0.06em; color: var(--violet-deep); }
.rek .number { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: 0.04em; color: var(--ink); margin: 2px 0; }
.rek .holder { color: var(--ink-soft); margin-bottom: 14px; }
.btn.done { background: linear-gradient(180deg, #3fae7a, #2c8a5e); }

/* RSVP */
.rsvp form { text-align: left; margin-top: 4px; }
.field { display: block; font-weight: 800; font-size: 14px; color: var(--ink); margin-bottom: 14px; }
.field input, .field textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  background: #f8f6ff;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 11px 14px;
  min-height: 46px;
}
.field textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; }
legend { font-weight: 800; font-size: 14px; margin-bottom: 6px; padding: 0; }
.pilih { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pilih label { position: relative; }
.pilih input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pilih span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 6px 4px;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: #f8f6ff;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  line-height: 1.2;
}
.pilih input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; }
.pilih input:focus-visible + span { outline: 3px solid #ffb84d; outline-offset: 2px; }
.btn.wide { width: 100%; }
.note { background: #f3efff; border-radius: 16px; padding: 12px 14px; color: var(--ink); font-size: 15px; }
.note.ok { background: #e3f7ea; }
.wishes { list-style: none; padding: 0; margin: 20px 0 0; text-align: left; max-height: 460px; overflow-y: auto; }
.wishes li { background: #faf8ff; border-radius: 18px; padding: 12px 14px; margin-bottom: 10px; border-left: 5px solid var(--blue); }
.wishes li:nth-child(3n + 2) { border-left-color: var(--pink); }
.wishes li:nth-child(3n) { border-left-color: var(--mint); }
.wishes li.pinned { background: #fffbe6; border-left-color: #ffc94d; }
.wishes p { margin: 0; font-size: 15px; }
.wishes .who { display: flex; align-items: center; gap: 8px; margin-bottom: 2px; }
.hadir { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; background: #dff5e6; color: #23784f; border-radius: 999px; padding: 1px 8px; }
.wish-reply { color: var(--ink-soft); font-style: italic; margin-top: 4px !important; }

/* Penutup */
.penutup { text-align: center; padding: 10px 22px 0; }
.penutup p { color: var(--ink-soft); }
.penutup .opening { color: var(--ink); }
.family { margin-top: 14px; }
.family b { display: block; font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--violet-deep); margin-top: 2px; line-height: 1.3; }
.penutup-arc { position: relative; width: 260px; margin: 22px auto 0; }
.penutup-arc svg { width: 100%; height: auto; }
.penutup-arc .nama { position: absolute; left: 0; right: 0; bottom: -2px; margin: 0; font-family: var(--display); font-weight: 800; font-size: 30px; color: var(--violet-deep); }

footer { text-align: center; font-size: 13px; color: var(--ink-soft); padding: 26px 16px 34px; }
footer a { color: var(--violet-deep); 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: 3px solid #fff;
  background: linear-gradient(180deg, #6a59d6, var(--violet-deep));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.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; }
  .js body:not(.opened) { overflow: hidden; }
}

@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: 850; }
.rv { opacity: 0; scale: .7; translate: 0 26px; }
.rv.in { opacity: 1; translate: 0 0; scale: 1; rotate: 0deg; filter: blur(0) brightness(1); clip-path: none; transition: opacity 0.85s cubic-bezier(.34,1.56,.64,1) calc(var(--d, 0) * 1ms), translate 0.85s cubic-bezier(.34,1.56,.64,1) calc(var(--d, 0) * 1ms), scale 0.85s cubic-bezier(.34,1.56,.64,1) calc(var(--d, 0) * 1ms), rotate 0.85s cubic-bezier(.34,1.56,.64,1) calc(var(--d, 0) * 1ms), filter 0.85s cubic-bezier(.34,1.56,.64,1) calc(var(--d, 0) * 1ms), clip-path 0.85s cubic-bezier(.34,1.56,.64,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) {
  .cincin, .avatar { animation: mo-ambang 6s ease-in-out infinite; }
  .avatar:nth-child(2n) { animation-delay: -2s; }
}
@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 Pelangi: lingkaran dengan cincin pelangi. */
.cover-photo { aspect-ratio: 1 / 1; margin: 24px auto 22px; border: 5px solid #fff; border-radius: 50%; box-shadow: 0 0 0 4px var(--pink), 0 0 0 8px var(--butter), 0 0 0 12px var(--mint), 0 0 0 16px var(--blue); }
@media (max-height: 700px) { .cover-photo { display: none; } } /* layar pendek: sampul seperti semula supaya tombol tetap terlihat */
