/* Nirmala — pernikahan islami: hijau zamrud & emas, pola bintang geometris, bingkai mihrab. */
@font-face {
  font-family: "Amiri"; src: url(fonts/amiri-arabic.woff2) format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Amiri"; src: url(fonts/amiri.woff2) format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face { font-family: "Pinyon Script"; src: url(fonts/pinyon-script.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(fonts/manrope.woff2) format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --em-950: #062a20;
  --em-900: #0a3529;
  --em-800: #0d4434;
  --em-700: #125a45;
  --em-600: #1d7259;
  --gold: #cda552;
  --gold-hi: #ecd492;
  --gold-lo: #9a7a33;
  --ivory: #f7f2e6;
  --paper: #fcf9f2;
  --ink: #17302a;
  --muted: #4d625a;
  --script: "Pinyon Script", "Amiri", cursive;
  --serif: "Amiri", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --col: 480px;
 /* warna hasil tone (dulu ditulis langsung) */ --tn-1: #125a45; --tn-2: #062a20; --tn-3: #1d7259; --tn-4: #0a3529;
}

/* Tone warna (field "tone"): hijau-zamrud = bawaan di atas. */
:root[data-tone="marun"] { --em-950: #2a060b; --em-900: #350a11; --em-800: #440d16; --em-700: #5a121e; --em-600: #721d2b; --ink: #30171a; --muted: #624d52; --tn-1: #5a121e; --tn-2: #2a060b; --tn-3: #721d2b; --tn-4: #350a11; }
:root[data-tone="ungu-tua"] { --em-950: #1a062a; --em-900: #220a35; --em-800: #2a0d44; --em-700: #39125a; --em-600: #4a1d72; --ink: #261730; --muted: #564d62; --tn-1: #39125a; --tn-2: #1a062a; --tn-3: #4a1d72; --tn-4: #220a35; }
:root[data-tone="cokelat-sogan"] { --em-950: #2a1606; --em-900: #351d0a; --em-800: #44240d; --em-700: #5a3012; --em-600: #72401d; --ink: #302317; --muted: #62544d; --tn-1: #5a3012; --tn-2: #2a1606; --tn-3: #72401d; --tn-4: #351d0a; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--em-950) url(img/bintang.svg) center / 64px;
  color: var(--ink);
  font: 400 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { overflow: visible; }
[lang="ar"] { font-family: "Amiri", serif; }

.layout { min-height: 100vh; }
.side { display: none; }
.page {
  position: relative;
  width: 100%;
  max-width: var(--col);
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(205, 165, 82, .4), 0 30px 80px rgba(0, 0, 0, .5);
  overflow: hidden;
}

/* ---------- Umum ---------- */
.eyebrow {
  font: 600 11px/1.4 var(--sans);
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-lo);
}
.dark .eyebrow, .cover .eyebrow, .side .eyebrow { color: var(--gold); }
.garis { display: block; width: 200px; height: 20px; margin: 14px auto 22px; color: var(--gold); }
section { position: relative; padding: 72px 28px; text-align: center; }
section h2 { font: 400 34px/1.2 var(--serif); color: var(--em-700); margin-top: 8px; }
.dark {
  background: radial-gradient(ellipse at 50% 0%, rgba(205, 165, 82, .12), transparent 60%), var(--em-800) url(img/bintang.svg) center / 64px;
  color: var(--ivory);
}
.dark h2 { color: var(--gold-hi); }
.star-mark { width: 34px; height: 34px; color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 13px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-gold {
  background: linear-gradient(180deg, var(--gold-hi), var(--gold) 55%, var(--gold-lo));
  color: var(--em-950);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-em { background: var(--em-700); color: var(--ivory); }
.btn-em:hover { background: var(--em-800); }
.btn-line { background: transparent; color: var(--em-700); border-color: color-mix(in srgb, var(--tn-1) 40%, transparent); }
.btn-line:hover { background: color-mix(in srgb, var(--tn-1) 6%, transparent); }
.btn.copied { background: var(--ivory); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Sampul ---------- */
.cover {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 64px 22px 0;
  color: var(--ivory);
  background:
    radial-gradient(ellipse at 50% 30%, rgba(205, 165, 82, .22), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--tn-2) 0%, transparent), color-mix(in srgb, var(--tn-2) 70%, transparent)),
    var(--em-800) url(img/bintang.svg) center / 64px;
  overflow: hidden;
}
.cover[hidden] { display: none; }
.cover-arch { --arch-fill: color-mix(in srgb, var(--tn-2) 50%, transparent); position: relative; display: flex; flex-direction: column; justify-content: center; width: 100%; max-width: 380px; padding: 100px 26px 48px; }
.arch-fill { fill: var(--arch-fill, none); stroke: none; }
.arch-line { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); pointer-events: none; }
.cover-arch > .arch-line { filter: drop-shadow(0 0 12px rgba(205, 165, 82, .25)); }
.cover-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cover .star-mark { margin-bottom: 14px; }
.bismillah { font-size: 26px; line-height: 1.8; color: var(--gold-hi); }
.cover .eyebrow { margin-top: 12px; }
.names {
  font: 400 60px/1.1 var(--script);
  color: var(--gold-hi);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12px;
}
.names .amp { font: 400 30px/1 var(--serif); color: var(--gold); margin: -4px 0 -2px; }
.cover-date { margin-top: 12px; font: 500 12px/1.5 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.guest { margin: 24px 0 22px; padding: 14px 10px; width: 100%; border-top: 1px solid rgba(205, 165, 82, .4); border-bottom: 1px solid rgba(205, 165, 82, .4); }
.guest-to { font-size: 13px; color: rgba(247, 242, 230, .82); }
.guest-name { margin-top: 2px; font: 400 23px/1.3 var(--serif); color: var(--ivory); }
.cover-date + .open { margin-top: 30px; }
.lentera { position: absolute; top: 0; width: 26px; height: 78px; color: var(--gold); pointer-events: none; }
.lentera.c1 { left: 9%; height: 96px; width: 32px; }
.lentera.c2 { left: 50%; margin-left: -12px; height: 54px; width: 24px; opacity: .7; }
.lentera.c3 { right: 9%; height: 120px; width: 38px; }

.js .cover { position: fixed; inset: 0; z-index: 40; transition: transform 1s cubic-bezier(.7, 0, .2, 1), opacity 1s ease; }
.js:not(.is-open) body { overflow: hidden; }
.js.is-open .cover { transform: translateY(-100%); opacity: .6; }
.js.no-anim .cover { transition: none; }

/* ---------- Pembuka ---------- */
.hero { padding: 56px 24px 0; background: var(--ivory) url(img/bintang-light.svg) center / 64px; }
.hero-arch { --arch-fill: var(--paper); position: relative; padding: 108px 24px 64px; }
.hero-arch > .arch-line { color: var(--gold-lo); }
.hero-arch > * { position: relative; }
.hero-arch > .arch-fill { fill: var(--arch-fill, none); stroke: none; }
.arch-line { position: absolute; }
.hero .names { color: var(--em-700); font-size: 58px; }
.hero .names .amp { color: var(--gold-lo); }
.hero-date { font: 600 12px/1.5 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--em-800); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 320px; margin: 26px auto 0; }
.countdown div { padding: 12px 0 10px; border-radius: 40px 40px 6px 6px; background: var(--em-700); color: var(--ivory); box-shadow: inset 0 0 0 1px rgba(205, 165, 82, .5); }
.countdown b { display: block; font: 400 28px/1.1 var(--serif); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 4px; font: 600 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(247, 242, 230, .85); }
.link-em {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 16px;
  font: 600 12px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--em-700);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--tn-1) 40%, transparent);
}

@media (prefers-reduced-motion: no-preference) {
  .js.is-open:not(.no-anim) .hero-arch > :not(.arch-line) { animation: naik .9s both cubic-bezier(.2, .7, .2, 1); }
  .js.is-open:not(.no-anim) .hero-arch > :nth-child(3) { animation-delay: .45s; }
  .js.is-open:not(.no-anim) .hero-arch > :nth-child(4) { animation-delay: .6s; }
  .js.is-open:not(.no-anim) .hero-arch > :nth-child(n + 5) { animation-delay: .75s; }
  .lentera { animation: ayun 6s ease-in-out infinite; transform-origin: 50% 0; }
  .lentera.c2 { animation-delay: -2s; }
  .lentera.c3 { animation-delay: -4s; }
  .music-toggle[aria-pressed="true"] svg { animation: putar 4s linear infinite; }
}
@keyframes naik { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ayun { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes putar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .js .cover { transition: opacity .3s ease; }
  .js.is-open .cover { transform: none; opacity: 0; }
}

/* ---------- Ayat ---------- */
.ayat { padding: 68px 28px; }
.arabic { margin-top: 16px; font-size: 25px; line-height: 2.1; color: var(--gold-hi); }
.translation { max-width: 380px; margin: 0 auto; font: 400 19px/1.65 var(--serif); font-style: normal; color: rgba(247, 242, 230, .92); }
.source { margin-top: 14px; font: 600 11px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }

/* ---------- Mempelai ---------- */
.couple .opening { font: 400 24px/1.4 var(--serif); color: var(--em-700); }
.lead { margin: 12px auto 44px; max-width: 360px; color: var(--muted); }
.person { display: flex; flex-direction: column; align-items: center; }
.portrait { position: relative; width: 200px; height: 270px; margin-bottom: 26px; padding: 10px 10px 0; }
.portrait::after, .event::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); }
.event::after { background: var(--gold-lo); }
.portrait .arch-line { color: var(--gold); }
.portrait-in {
  position: relative;
  width: 100%;
  height: 100%;
  clip-path: path("M0 260V92C0 50 52 26 90 0c38 26 90 50 90 92v168z");
  background: radial-gradient(ellipse at 50% 30%, rgba(205, 165, 82, .25), transparent 70%), var(--em-700) url(img/bintang.svg) center / 48px;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .initial { display: flex; align-items: center; justify-content: center; height: 100%; padding-top: 34px; font: 400 92px/1 var(--script); color: var(--gold-hi); }
.person h3 { font: 400 29px/1.25 var(--serif); color: var(--em-800); }
.parents { margin-top: 6px; max-width: 320px; color: var(--muted); }
.parents span { display: block; font: 600 11px/1.8 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-lo); }
.amp-mark { position: relative; margin: 34px auto; width: 240px; height: 40px; color: var(--gold); }
.amp-mark svg { position: absolute; left: 0; top: 10px; width: 240px; height: 20px; opacity: .55; }
.amp-mark span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-top: -4px;
  font: 400 24px/1 var(--serif);
  color: var(--em-700);
}
.amp-mark span::before {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: -1;
  background: var(--paper);
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.amp-mark { isolation: isolate; }

/* ---------- Kisah ---------- */
.story-text { max-width: 380px; margin: 0 auto; font: 400 19px/1.7 var(--serif); color: rgba(247, 242, 230, .94); white-space: pre-line; }

/* ---------- Acara ---------- */
.events { background: var(--ivory) url(img/bintang-light.svg) center / 64px; }
.event { --arch-fill: var(--paper); position: relative; margin-top: 18px; padding: 96px 26px 34px; }
.event > * { position: relative; }
.event > .arch-fill { fill: var(--arch-fill, none); stroke: none; }
.arch-line { position: absolute; color: var(--gold-lo); }
.event + .event { margin-top: 30px; }
.event .star-mark { position: absolute; top: 44px; left: 50%; margin-left: -15px; width: 30px; height: 30px; color: var(--gold-lo); }
.event h3 { font: 400 30px/1.2 var(--serif); color: var(--em-700); }
.when { margin-top: 10px; font: 600 17px/1.4 var(--sans); color: var(--em-900); }
.time { margin-top: 2px; font-size: 15px; color: var(--muted); }
.place { margin: 12px auto 0; max-width: 300px; color: var(--ink); }
.actions { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 22px; }
.actions .btn { width: 100%; max-width: 260px; }

/* ---------- Galeri ---------- */
.gallery { background: var(--paper); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.grid img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; border-radius: 140px 140px 4px 4px; }

/* ---------- Amplop ---------- */
.gifts-lead { max-width: 360px; margin: 0 auto 28px; color: rgba(247, 242, 230, .9); }
.gift-card {
  position: relative;
  padding: 32px 22px 26px;
  border-radius: 16px;
  background: radial-gradient(ellipse at 100% 0%, rgba(236, 212, 146, .3), transparent 50%), linear-gradient(135deg, var(--em-600), var(--em-950));
  border: 1px solid rgba(205, 165, 82, .6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.gift-star { position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; color: rgba(236, 212, 146, .2); }
.gift-card > :not(.gift-star) { position: relative; }
.bank { font: 600 13px/1.3 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.number { margin-top: 10px; font: 600 26px/1.3 var(--sans); letter-spacing: .08em; color: var(--ivory); word-break: break-word; }
.holder { margin-top: 2px; color: rgba(247, 242, 230, .85); }
.gift-card .btn { margin-top: 20px; }

/* ---------- RSVP ---------- */
.rsvp { background: var(--paper); }
.note { margin: 0 auto 20px; max-width: 340px; padding: 14px 18px; border: 1px dashed rgba(154, 122, 51, .6); border-radius: 8px; font-size: 15px; color: var(--muted); background: var(--ivory); }
.note.ok { border-style: solid; color: var(--em-700); }
.form { display: flex; flex-direction: column; gap: 18px; text-align: left; }
.field { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; font: 600 12px/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--em-700); }
.field legend { padding: 0; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--tn-1) 30%, transparent);
  border-radius: 8px;
  background: #fff;
  font: 400 16px/1.5 var(--sans);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.field input[type="number"] { max-width: 140px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--em-600); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tn-3) 20%, transparent); }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px; border: 1px solid color-mix(in srgb, var(--tn-1) 30%, transparent); border-radius: 8px; background: #fff; font: 500 14px/1.2 var(--sans); letter-spacing: 0; text-transform: none; text-align: center; color: var(--ink); }
.opt input:checked + span { background: var(--em-700); border-color: var(--em-700); color: var(--ivory); }
.opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.form .btn { align-self: center; min-width: 180px; margin-top: 6px; }
.wishes { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; text-align: left; max-height: 560px; overflow-y: auto; }
.wishes li { padding: 16px 18px; border-radius: 10px; background: var(--ivory); border: 1px solid rgba(205, 165, 82, .35); }
.wishes li.pinned { border-color: var(--gold); background: #f2ead3; }
.wish-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.wish-head b { font: 400 19px/1.3 var(--serif); color: var(--em-800); }
.tag { padding: 3px 8px; border-radius: 99px; background: color-mix(in srgb, var(--tn-1) 10%, transparent); font: 600 10px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--em-700); }
.tag.pin { background: var(--gold); color: var(--em-950); }
.wish-reply { margin-top: 10px; padding: 8px 12px; border-radius: 6px; background: rgba(255, 255, 255, .75); font-size: 15px; color: var(--muted); }
.wish-reply::before { content: "Balasan mempelai · "; font: 600 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-lo); }

/* ---------- Penutup ---------- */
.closing { padding: 120px 30px 84px; overflow: hidden; }
.closing .doa { margin-top: 0; font-size: 23px; }
.doa-id { max-width: 340px; margin: 10px auto 0; font: 400 17px/1.6 var(--serif); color: rgba(247, 242, 230, .85); }
.closing-text { max-width: 360px; margin: 0 auto; color: rgba(247, 242, 230, .92); }
.closing .opening { margin-top: 18px; font: 400 22px/1.4 var(--serif); color: var(--gold-hi); }
.closing .eyebrow { margin-top: 28px; }
.closing .names { margin-top: 6px; font-size: 52px; }
.families { margin-top: 18px; font-size: 14px; line-height: 1.8; color: rgba(247, 242, 230, .78); }

footer { padding: 22px 16px 28px; background: var(--em-950); text-align: center; font-size: 13px; letter-spacing: .06em; color: rgba(247, 242, 230, .72); }
footer a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(205, 165, 82, .4); }

.music-toggle {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: color-mix(in srgb, var(--tn-4) 90%, transparent);
  color: var(--gold-hi);
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}
.music-toggle svg { width: 22px; height: 22px; }
.music-toggle[aria-pressed="false"]::after { content: ""; position: absolute; width: 26px; height: 1.5px; background: var(--gold-hi); transform: rotate(-45deg); }
html:not(.js) .countdown, html:not(.js) .music-toggle { display: none; }

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  .layout { display: flex; }
  .side {
    display: flex;
    position: sticky;
    top: 0;
    flex: 1;
    height: 100vh;
    align-items: center;
    justify-content: center;
    color: var(--ivory);
    background: radial-gradient(ellipse at 50% 40%, rgba(205, 165, 82, .16), transparent 60%);
  }
  .side-arch { position: relative; width: 400px; padding: 130px 30px 60px; text-align: center; }
  .side-arch { --arch-fill: color-mix(in srgb, var(--tn-2) 55%, transparent); }
  .side-arch > * { position: relative; }
  .side-arch > .arch-fill { fill: var(--arch-fill, none); stroke: none; }
.arch-line { position: absolute; }
  .side .lentera { position: absolute; top: -100px; }
  .side .lentera.l1 { left: -60px; width: 40px; height: 180px; }
  .side .lentera.l2 { right: -60px; width: 34px; height: 140px; }
  .side .bismillah { font-size: 30px; }
  .side .eyebrow { margin-top: 10px; }
  .side-names { margin-top: 16px; font: 400 72px/1.1 var(--script); color: var(--gold-hi); }
  .side-names span { display: block; font: 400 34px/1 var(--serif); color: var(--gold); }
  .side-date { font: 500 13px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
  .page { flex: 0 0 var(--col); margin: 0 6vw 0 0; }
  .music-toggle { right: calc(6vw + 18px); }
}

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

/* ---------- Animasi ---------- */
:root { --rv-dur: 1400; }
.rv { opacity: 0; clip-path: inset(0 0 99% 0 round 50% 50% 0 0); translate: 0 12px; }
.rv.in { opacity: 1; translate: 0 0; scale: 1; rotate: 0deg; filter: blur(0) brightness(1); clip-path: inset(0 0 0 0 round 0 0 0 0); transition: opacity 1.4s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0) * 1ms), translate 1.4s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0) * 1ms), scale 1.4s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0) * 1ms), rotate 1.4s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0) * 1ms), filter 1.4s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0) * 1ms), clip-path 1.4s cubic-bezier(.2,.7,.2,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) {
  .gift-star, .star-mark { animation: mo-putar 45s linear infinite; }
  .arch-fill { animation: mo-kilau 6s 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 Nirmala: lengkung mihrab lancip berbingkai emas. */
.cover-photo { aspect-ratio: 3 / 4; border: 0; border-radius: 0; padding: 3px; background: linear-gradient(160deg, var(--gold-hi), var(--gold-lo)); box-shadow: none; clip-path: polygon(50% 0, 70% 10%, 88% 24%, 100% 42%, 100% 100%, 0 100%, 0 42%, 12% 24%, 30% 10%); }
.cover-photo img { clip-path: polygon(50% 0, 70% 10%, 88% 24%, 100% 42%, 100% 100%, 0 100%, 0 42%, 12% 24%, 30% 10%); }
@media (max-height: 700px) { .cover-photo { display: none; } } /* layar pendek: sampul seperti semula supaya tombol tetap terlihat */
