/* Kenanga — pernikahan adat Jawa: cokelat sogan, emas, krem; batik kawung & gunungan. */
@font-face { font-family: "Cinzel"; src: url(fonts/cinzel.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(fonts/cormorant-garamond.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url(fonts/cormorant-garamond-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url(fonts/jost.woff2) format("woff2"); font-weight: 300 500; font-display: swap; }

:root {
  --sogan-950: #1f130a;
  --sogan-900: #2c1a0e;
  --sogan-800: #3b2414;
  --sogan-700: #5a3a22;
  --sogan-600: #74502f;
  --gold: #cfa95f;
  --gold-hi: #ecd49c;
  --gold-lo: #9c7838;
  --cream: #f4ead7;
  --paper: #fbf5ea;
  --ink: #3a2516;
  --muted: #6b4f3a;
  --serif: "Cormorant Garamond", Georgia, serif;
  --caps: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --col: 480px;
}

/* Tone warna (field "tone"): sogan = bawaan di atas; aksen emas & krem tetap. */
:root[data-tone="pupus"] { --sogan-950: #0d1a12; --sogan-900: #13261b; --sogan-800: #1c3526; --sogan-700: #2b4d37; --sogan-600: #3e6a4c; --ink: #1f3324; --muted: #4b6352; }
:root[data-tone="indigo"] { --sogan-950: #0b1022; --sogan-900: #111a33; --sogan-800: #1a2647; --sogan-700: #2a3a66; --sogan-600: #3f5288; --ink: #1c2541; --muted: #4a5579; }
:root[data-tone="marun"] { --sogan-950: #1e0a0d; --sogan-900: #2e1015; --sogan-800: #43171f; --sogan-700: #62222e; --sogan-600: #823444; --ink: #3a1219; --muted: #6e3a44; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sogan-900) url(img/kawung.svg) center / 64px;
  color: var(--ink);
  font: 400 19px/1.6 var(--serif);
  -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; }

/* ---------- Tata letak: kolom HP, di desktop berdampingan dengan panel hiasan ---------- */
.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(207, 169, 95, .35), 0 30px 80px rgba(0, 0, 0, .45);
  overflow: hidden;
}

/* ---------- Komponen umum ---------- */
.eyebrow {
  font: 500 12px/1.4 var(--caps);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-lo);
}
.dark .eyebrow, .cover .eyebrow, .side .eyebrow { color: var(--gold); }
.garis { display: block; width: 210px; height: 20px; margin: 14px auto 22px; color: var(--gold); }
section { position: relative; padding: 72px 28px; text-align: center; }
section h2 {
  font: 600 34px/1.15 var(--serif);
  color: var(--sogan-700);
  margin-top: 8px;
}
.dark {
  background: var(--sogan-800) url(img/kawung.svg) center / 64px;
  color: var(--cream);
}
.dark h2 { color: var(--gold-hi); }

.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: 500 13px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, 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(--sogan-900);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-sogan { background: var(--sogan-700); color: var(--cream); }
.btn-sogan:hover { background: var(--sogan-800); }
.btn-line { background: transparent; color: var(--sogan-700); border-color: rgba(90, 58, 34, .45); }
.btn-line:hover { background: rgba(90, 58, 34, .06); }
.btn.copied { background: var(--cream); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Sampul ---------- */
.cover {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 28px;
  color: var(--cream);
  background:
    radial-gradient(ellipse at 50% 38%, rgba(207, 169, 95, .2), transparent 62%),
    linear-gradient(180deg, rgba(31, 19, 10, .2), rgba(31, 19, 10, .75)),
    var(--sogan-800) url(img/kawung.svg) center / 64px;
  overflow: hidden;
}
.cover[hidden] { display: none; }
.cover::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(207, 169, 95, .55);
  outline: 1px solid rgba(207, 169, 95, .25);
  outline-offset: 5px;
  pointer-events: none;
}
.cover-inner { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; }
.cover .gunungan {
  width: 168px;
  height: 252px;
  margin: 22px 0 18px;
  color: var(--gold);
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .45));
}
.names {
  font: italic 400 54px/1.05 var(--serif);
  color: var(--gold-hi);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  column-gap: 14px;
}
.names .amp { font: 400 32px/1 var(--caps); color: var(--gold); }
.cover-date {
  margin-top: 14px;
  font: 400 13px/1.4 var(--caps);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cream);
}
.guest {
  margin: 30px 0 26px;
  padding: 16px 24px;
  min-width: 260px;
  border-top: 1px solid rgba(207, 169, 95, .45);
  border-bottom: 1px solid rgba(207, 169, 95, .45);
}
.guest-to { font: 400 14px/1.5 var(--sans); color: rgba(244, 234, 215, .82); }
.guest-name { margin-top: 4px; font: 600 24px/1.25 var(--serif); color: var(--cream); }
.cover .open { margin-top: 6px; }
.cover .guest + .open { margin-top: 0; }
.cover-date + .open { margin-top: 34px; }

.janur { position: absolute; width: 120px; height: 120px; color: var(--gold); opacity: .75; pointer-events: none; }
.janur.tl { top: 0; left: 0; }
.janur.tr { top: 0; right: 0; transform: scaleX(-1); }
.janur.bl { bottom: 0; left: 0; transform: scaleY(-1); }
.janur.br { bottom: 0; right: 0; transform: scale(-1, -1); }

/* Dengan JS: sampul menjadi gerbang di atas halaman sampai tamu menekan "Buka undangan". */
.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) ---------- */
.hero { padding: 64px 22px; }
.hero-frame {
  position: relative;
  padding: 58px 22px 46px;
  border: 1px solid rgba(207, 169, 95, .6);
  border-radius: 200px 200px 14px 14px;
  background: radial-gradient(ellipse at 50% 0%, rgba(207, 169, 95, .14), transparent 70%), rgba(31, 19, 10, .35);
}
.hero-frame::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(207, 169, 95, .25);
  border-radius: 194px 194px 10px 10px;
  pointer-events: none;
}
.monogram {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 128px;
  height: 128px;
  margin: 22px auto 22px;
  color: var(--gold-hi);
  font: 400 34px/1 var(--caps);
}
.monogram::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}
.monogram::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(207, 169, 95, .4);
  transform: rotate(45deg);
}
.monogram i { width: 1px; height: 36px; background: var(--gold); transform: rotate(20deg); }
.mono-kawung { position: absolute; inset: -6px; width: 140px; height: 140px; color: rgba(207, 169, 95, .14); }
.hero .names { font-size: 46px; }
.hero-date {
  font: 400 13px/1.5 var(--caps);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cream);
}
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 320px;
  margin: 28px auto 0;
}
.countdown div {
  padding: 12px 0 10px;
  border: 1px solid rgba(207, 169, 95, .5);
  border-radius: 6px;
  background: rgba(31, 19, 10, .45);
}
.countdown b { display: block; font: 500 28px/1 var(--caps); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 6px; font: 400 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 234, 215, .8); }
.link-gold {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 18px;
  font: 500 12px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-hi);
  text-decoration: none;
  border-bottom: 1px solid rgba(207, 169, 95, .5);
}

/* Animasi masuk setelah sampul dibuka. */
@media (prefers-reduced-motion: no-preference) {
  .js.is-open:not(.no-anim) .hero-frame > * { animation: naik .9s both cubic-bezier(.2, .7, .2, 1); }
  .js.is-open:not(.no-anim) .hero-frame > :nth-child(2) { animation-delay: .5s; }
  .js.is-open:not(.no-anim) .hero-frame > :nth-child(3) { animation-delay: .65s; }
  .js.is-open:not(.no-anim) .hero-frame > :nth-child(4) { animation-delay: .8s; }
  .js.is-open:not(.no-anim) .hero-frame > :nth-child(n + 5) { animation-delay: .95s; }
  .cover .gunungan { animation: ayun 7s ease-in-out infinite; transform-origin: 50% 100%; }
  .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(-1.2deg); } 50% { transform: rotate(1.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; }
}

/* ---------- Pitutur ---------- */
.quote { padding: 64px 32px 56px; background: var(--cream) url(img/kawung-light.svg) center / 64px; }
.kawung-mark { width: 36px; height: 36px; color: var(--gold-lo); margin-bottom: 14px; }
.quote blockquote {
  margin: 0;
  font: italic 400 23px/1.5 var(--serif);
  color: var(--sogan-700);
  white-space: pre-line;
}
.quote-src { margin-top: 16px; font: 500 11px/1 var(--caps); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-lo); }

/* ---------- Mempelai ---------- */
.couple { padding-top: 64px; }
.javanese { font: italic 400 20px/1.4 var(--serif); color: var(--gold-lo); }
.dark .javanese { color: var(--gold); }
.couple .opening { margin-top: 10px; font: 600 22px/1.4 var(--serif); color: var(--sogan-700); }
.lead { margin: 14px auto 40px; max-width: 360px; color: var(--muted); }
.person { display: flex; flex-direction: column; align-items: center; }
.portrait {
  position: relative;
  width: 196px;
  height: 252px;
  margin-bottom: 22px;
  padding: 8px;
  border: 1px solid var(--gold);
  border-radius: 100px 100px 10px 10px;
}
.portrait::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 16px;
  height: 16px;
  background: var(--paper);
  border: 1px solid var(--gold);
  transform: translateX(-50%) rotate(45deg);
}
.portrait img, .portrait .initial {
  width: 100%;
  height: 100%;
  border-radius: 92px 92px 6px 6px;
  object-fit: cover;
}
.portrait .initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(207, 169, 95, .25), transparent 70%),
    var(--sogan-700) url(img/kawung.svg) center / 48px;
  font: 400 76px/1 var(--caps);
  color: var(--gold-hi);
}
.person h3 { font: 600 30px/1.2 var(--serif); color: var(--sogan-800); }
.parents { margin-top: 8px; max-width: 320px; color: var(--muted); font-size: 18px; }
.parents span {
  display: block;
  margin-bottom: 2px;
  font: 500 11px/1.6 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: .6; }
.amp-mark span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--gold);
  font: 400 24px/1 var(--caps);
  color: var(--sogan-700);
}

/* ---------- Kisah ---------- */
.story-text { max-width: 380px; margin: 0 auto; font: italic 400 21px/1.6 var(--serif); color: var(--cream); white-space: pre-line; }

/* ---------- Acara ---------- */
.events { background: var(--paper); }
.event {
  position: relative;
  margin-top: 26px;
  padding: 44px 24px 28px;
  border: 1px solid rgba(156, 120, 56, .55);
  border-radius: 6px;
  background: linear-gradient(180deg, #fffaf1, var(--cream));
  box-shadow: 0 10px 30px rgba(58, 37, 22, .08);
}
.event::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(156, 120, 56, .22);
  border-radius: 3px;
  pointer-events: none;
}
.event + .event { margin-top: 44px; }
.event-mark {
  position: absolute;
  top: -21px;
  left: 50%;
  width: 42px;
  height: 42px;
  margin-left: -21px;
  padding: 6px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid rgba(156, 120, 56, .55);
  color: var(--gold-lo);
}
.event h3 { font: 600 20px/1.3 var(--caps); letter-spacing: .12em; text-transform: uppercase; color: var(--sogan-700); }
.when { margin-top: 12px; font: 600 22px/1.3 var(--serif); color: var(--sogan-800); }
.time { margin-top: 4px; font: 400 15px/1.5 var(--sans); letter-spacing: .06em; color: var(--muted); }
.place { margin: 14px auto 0; max-width: 300px; color: var(--ink); }
.actions { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 22px; }
.actions .btn { width: 100%; max-width: 260px; }

/* ---------- Galeri ---------- */
.gallery { background: var(--cream) url(img/kawung-light.svg) center / 64px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; border: 1px solid rgba(156, 120, 56, .35); }
.grid img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; border-radius: 120px 120px 4px 4px; }

/* ---------- Amplop ---------- */
.gifts-lead { max-width: 360px; margin: 0 auto 28px; color: rgba(244, 234, 215, .9); }
.gift-card {
  position: relative;
  padding: 30px 22px 26px;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(236, 212, 156, .35), transparent 55%),
    linear-gradient(135deg, var(--sogan-600), var(--sogan-900));
  border: 1px solid rgba(207, 169, 95, .6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .35);
}
.gift-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: url(img/kawung.svg) center / 40px;
  opacity: .7;
  pointer-events: none;
}
.gift-card > * { position: relative; }
.bank { font: 600 14px/1.3 var(--caps); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.number { margin-top: 10px; font: 500 26px/1.3 var(--sans); letter-spacing: .08em; color: var(--cream); word-break: break-word; }
.holder { margin-top: 4px; font-style: italic; color: rgba(244, 234, 215, .85); }
.gift-card .btn { margin-top: 20px; }

/* ---------- RSVP & ucapan ---------- */
.rsvp { background: var(--paper); }
.note {
  margin: 0 auto 20px;
  max-width: 340px;
  padding: 14px 18px;
  border: 1px dashed rgba(156, 120, 56, .6);
  border-radius: 6px;
  font: 400 15px/1.5 var(--sans);
  color: var(--muted);
  background: var(--cream);
}
.note.ok { border-style: solid; color: var(--sogan-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: 500 12px/1.4 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sogan-700);
}
.field legend { padding: 0; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(90, 58, 34, .35);
  border-radius: 6px;
  background: #fffdf8;
  font: 400 18px/1.4 var(--serif);
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input[type="number"] { font: 400 17px/1.4 var(--sans); max-width: 140px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold-lo); box-shadow: 0 0 0 3px rgba(207, 169, 95, .3); }
.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 rgba(90, 58, 34, .35);
  border-radius: 6px;
  background: #fffdf8;
  font: 400 14px/1.2 var(--sans);
  letter-spacing: .02em;
  text-transform: none;
  text-align: center;
  color: var(--ink);
}
.opt input:checked + span { background: var(--sogan-700); border-color: var(--sogan-700); color: var(--cream); }
.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: 6px; background: var(--cream); border-left: 3px solid var(--gold); }
.wishes li.pinned { background: #f1e2c4; }
.wish-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.wish-head b { font: 600 19px/1.3 var(--serif); color: var(--sogan-800); }
.tag { padding: 3px 8px; border-radius: 99px; background: rgba(90, 58, 34, .1); font: 500 11px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--sogan-700); }
.tag.pin { background: var(--gold); color: var(--sogan-900); }
.wishes p { font-size: 18px; line-height: 1.5; }
.wish-reply { margin-top: 10px; padding: 8px 12px; border-radius: 4px; background: rgba(255, 253, 248, .75); font-style: italic; color: var(--muted); }
.wish-reply::before { content: "Balasan mempelai · "; font: 500 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; font-style: normal; color: var(--gold-lo); }

/* ---------- Penutup ---------- */
.closing { padding: 80px 30px 130px; overflow: hidden; }
.gunungan.small { width: 84px; height: 126px; color: var(--gold); margin-bottom: 26px; }
.closing-text { max-width: 360px; margin: 0 auto; color: rgba(244, 234, 215, .92); }
.closing .opening { margin-top: 18px; font: 600 20px/1.4 var(--serif); color: var(--gold-hi); }
.closing .javanese { margin-top: 26px; }
.closing .eyebrow { margin-top: 8px; }
.closing .names { margin-top: 10px; font-size: 46px; }
.families { margin-top: 18px; font: 400 15px/1.7 var(--sans); color: rgba(244, 234, 215, .78); }
.janur.bl, .janur.br { width: 100px; height: 100px; opacity: .5; }

footer {
  padding: 22px 16px 28px;
  background: var(--sogan-950);
  text-align: center;
  font: 400 13px/1.5 var(--sans);
  letter-spacing: .08em;
  color: rgba(244, 234, 215, .7);
}
footer a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(207, 169, 95, .4); }

/* ---------- Musik ---------- */
.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: rgba(44, 26, 14, .88);
  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);
}

/* ---------- 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(--cream);
    background: radial-gradient(ellipse at 50% 45%, rgba(207, 169, 95, .16), transparent 60%), linear-gradient(90deg, rgba(31, 19, 10, .6), rgba(31, 19, 10, .2));
  }
  .side-inner { text-align: center; padding: 40px; }
  .side-gunungan { width: 200px; height: 300px; color: var(--gold); margin-bottom: 28px; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5)); }
  .side-names { margin-top: 14px; font: italic 400 76px/1.05 var(--serif); color: var(--gold-hi); }
  .side-names span { font: 400 44px/1 var(--caps); color: var(--gold); }
  .side-date { font: 400 15px/1.4 var(--caps); letter-spacing: .24em; text-transform: uppercase; }
  .side .garis { width: 260px; height: 24px; }
  .page { flex: 0 0 var(--col); margin: 0 6vw 0 0; }
  .music-toggle { right: calc(6vw + 18px); }
}

/* Tanpa JS: hitung mundur & tombol musik tidak berfungsi, jadi disembunyikan. */
html:not(.js) .countdown, html:not(.js) .music-toggle { display: none; }

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

/* ---------- Animasi ---------- */
:root { --rv-dur: 1150; }
.rv { opacity: 0; translate: calc(var(--s, 1) * 36px) 18px; rotate: calc(var(--s, 1) * 1.5deg); }
.rv.in { opacity: 1; translate: 0 0; scale: 1; rotate: 0deg; filter: blur(0) brightness(1); clip-path: none; transition: opacity 1.15s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0) * 1ms), translate 1.15s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0) * 1ms), scale 1.15s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0) * 1ms), rotate 1.15s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0) * 1ms), filter 1.15s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0) * 1ms), clip-path 1.15s 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) {
  .event-mark, .kawung-mark { animation: mo-putar 70s linear infinite; }
  .mono-kawung { animation: mo-putar 110s linear infinite; }
  .janur { transform-origin: 0 0; animation: mo-ayun 9s ease-in-out infinite alternate; }
}
@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 Kenanga: segi enam tegak berbingkai emas, seperti motif batik. */
.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, 100% 18%, 100% 82%, 50% 100%, 0 82%, 0 18%); }
.cover-photo img { clip-path: polygon(50% 0, 100% 18%, 100% 82%, 50% 100%, 0 82%, 0 18%); }
@media (max-height: 700px) { .cover-photo { display: none; } } /* layar pendek: sampul seperti semula supaya tombol tetap terlihat */
