/* =========================================================================
   Tema Nawasena — taman anggrek malam bermotif batik.

   Titik tolaknya video pembuka bergaya lukisan batik tulis: hutan tropis
   biru nila di malam hari dengan kunang-kunang keemasan; seutas garis emas
   menggambar lengkung bermotif kawung & parang, anggrek ungu & krem tumbuh
   merambati bingkai, lalu panel krem muncul di dalam lengkung.

   Gagasan utama: BATIK KAWUNG & ANGGREK. Halaman isi bernuansa malam (latar
   hutan nila); isi = kartu krem (dari panel di akhir video) berpuncak
   lengkung, dikelilingi PITA BATIK KAWUNG emas di atas nila (latar di area
   border), bermahkota kuntum anggrek (::before); kepala bagian =
   kawung emas diapit anggrek; hitung mundur = ubin kawung; penanda cerita =
   belah ketupat kawung.

   Huruf memakai batas minimum yang sama dengan Skyward: tidak ada teks
   sampul di bawah ±12px, teks isi 15px.
   Warna: ungu anggrek (utama), nila malam, krem, emas, hijau daun.
   Huruf: Pinyon Script (nama & judul), Cinzel (label), Lora (sub judul), Mulish (teks).
   ========================================================================= */

:root {
    --c-paper: #FAF1E4;
    --c-ink: #2A2B45;
    --c-accent: #6E4E8E;

    --c-muted: color-mix(in srgb, var(--c-ink) 72%, #fff);
    --c-rule: color-mix(in srgb, var(--nws-gold) 45%, #fff);
    --c-sunk: color-mix(in srgb, var(--nws-orchid) 22%, #fff);
    --c-action: var(--c-accent);

    --f-names: 'Pinyon Script', cursive;
    --f-label: 'Cinzel', Georgia, serif;
    --f-display: 'Lora', Georgia, serif;
    --f-body: 'Mulish', system-ui, sans-serif;
    --f-script: var(--f-names);

    --nws-indigo: #1B2440;  /* nila malam */
    --nws-indigo-hi: #2C3A63;
    --nws-orchid: #B79BD3;  /* anggrek ungu */
    --nws-cream: #F3E6D2;   /* anggrek krem */
    --nws-gold: #C9A55E;    /* garis & motif emas */
    --nws-leaf: #7E8A55;
    --nws-sheet: #FAF2E6;   /* panel krem */
    --nws-ivory: #FFFCF7;
    /* Motif kawung emas di atas nila — dipakai pita bingkai & ubin. */
    --nws-kawung: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect width='20' height='20' fill='%231B2440'/%3E%3Cg fill='none' stroke='%23C9A55E' stroke-width='1'%3E%3Cellipse cx='10' cy='4.6' rx='2.6' ry='4.2'/%3E%3Cellipse cx='10' cy='15.4' rx='2.6' ry='4.2'/%3E%3Cellipse cx='4.6' cy='10' rx='4.2' ry='2.6'/%3E%3Cellipse cx='15.4' cy='10' rx='4.2' ry='2.6'/%3E%3C/g%3E%3Ccircle cx='10' cy='10' r='1' fill='%23C9A55E'/%3E%3C/svg%3E");
    /* Video 720 × 1280. Ponsel: menutupi layar. Layar lebar: utuh setinggi layar. */
    --nws-w: max(100vw, 100dvh * 9 / 16);
}
@media (min-aspect-ratio: 3 / 4) {
    :root { --nws-w: calc(100dvh * 9 / 16); }
}

body.inv.nws {
    background: var(--nws-indigo); color: var(--c-ink);
    font-family: var(--f-body); font-size: .95rem; line-height: 1.75;
}
.nws-amp { font-family: var(--f-display); font-style: italic; color: var(--nws-gold); }

/* ---------------------------------------------------------- latar isi */

/* Hutan nila malam di awal video, sedikit digelapkan. */
.nws-backdrop {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(rgb(27 36 64 / .25), rgb(20 26 48 / .55)), var(--nws-latar) center 40% / cover no-repeat, var(--nws-indigo);
}

/* ---------------------------------------------------------------- sampul */

.nws .inv-cover.nws-cover { padding: 0; display: block; overflow: hidden; background: var(--nws-indigo); }
.nws-stage {
    position: absolute; left: 50%; top: 50%;
    width: var(--nws-w); aspect-ratio: 9 / 16; transform: translate(-50%, -50%);
    container-type: inline-size; overflow: hidden;
}
.nws-stage__poster, .nws-stage__start, .nws-stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* --- Sampul dua langkah (kelas dari theme.js) -------------------------
   diam       : bingkai pertama video + sapaan + tombol "Buka undangan"
   .is-playing: video berjalan, sapaan memudar
   .is-ready  : nama, tanggal & jadwal di panel krem; "Lihat undangan" di bawah */
.nws-stage__video { opacity: 0; }
.nws-stage.is-playing .nws-stage__video { opacity: 1; }
.nws-stage__start { transition: opacity .3s ease .25s; }
.nws-stage.is-playing .nws-stage__start, .nws-stage.is-ready .nws-stage__start { opacity: 0; }

.nws-cover__text, .nws-cover__foot { transition: opacity 1.1s ease, transform 1.1s var(--ease), visibility 0s linear 0s; }
.nws-stage:not(.is-ready) .nws-cover__text { opacity: 0; visibility: hidden; transform: translateY(12px); transition-duration: .3s, .3s, 0s; transition-delay: 0s, 0s, .3s; }
.nws-stage.is-playing:not(.is-ready) .nws-cover__foot { opacity: 0; visibility: hidden; transform: translateY(10px); transition-duration: .5s, .5s, 0s; transition-delay: 0s, 0s, .5s; }
.nws-stage.is-ready .nws-cover__foot { transition-delay: .7s, .7s, 0s; }
.nws-stage:not(.is-ready) #inv-open, .nws-stage.is-ready .nws-play, .nws-cover__foot [hidden] { display: none; }

/* Panel krem di akhir video: x 16–84%, puncak lengkung ±22cqw, lurus
   38–133cqw, lalu anggrek menyempitkan sudut bawah. Panel ini tinggi, jadi
   di langkah akhir semuanya masuk panel: nama & jadwal di atas, sapaan &
   tombol tepat di bawah jadwal. */
.nws-cover__text {
    position: absolute; left: 21cqw; width: 58cqw; top: 35cqw; height: 62cqw;
    display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 1.4cqw;
    text-align: center;
}
.nws-cover__label { margin: 0; font: 500 max(.78rem, 3.1cqw)/1.3 var(--f-label); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; color: #9A7A3A; }
.nws-cover__names {
    display: grid; justify-items: center; width: 100%; margin: 0;
    font: 400 14cqw/1.2 var(--f-names); color: #5E3F7E; text-wrap: balance;
}
.nws-cover__names .nws-amp { font-size: .38em; line-height: 1.2; color: #A6833F; }
.nws-cover__date {
    margin: .8cqw 0 0; padding-top: 1.8cqw; border-top: 1px solid var(--nws-gold);
    font: 500 max(1.02rem, 4.3cqw)/1.25 var(--f-display); white-space: nowrap; color: var(--c-ink);
}
.nws-cover__sched { display: flex; flex-wrap: wrap; justify-content: center; gap: 1cqw 5cqw; margin: .4cqw 0 0; }
.nws-cover__sched p { display: grid; justify-items: center; margin: 0; font: 400 max(.82rem, 3.1cqw)/1.35 var(--f-body); color: var(--c-muted); text-align: center; }
.nws-cover__sched-title { font: 700 max(.74rem, 2.7cqw)/1.4 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent); }

.nws-cover__foot {
    /* Di bawah layar (sebelum & sesudah video) supaya tombol mudah dijangkau
       ibu jari. Diukur dari bawah karena tinggi tombol dalam rem. Bila
       panggung 9:16 lebih tinggi dari layar (tablet potret), bagian bawahnya
       terpotong — geser naik sebesar potongan itu supaya tombol terlihat. */
    position: absolute; left: 17cqw; width: 66cqw;
    bottom: calc(max(0px, (var(--nws-w) * 16 / 9 - 100dvh) / 2) + 1.6cqw);
    display: grid; justify-items: center; padding: 3cqw 4cqw 3.6cqw; text-align: center;
    background: rgb(250 242 230 / .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-radius: 2cqw;
    box-shadow: 0 0 0 1px var(--nws-gold), 0 0 0 1.4cqw var(--nws-indigo), 0 0 0 calc(1.4cqw + 1px) var(--nws-gold), 0 16px 30px -14px rgb(0 0 0 / .55);
}
/* Langkah akhir: sapaan & tombol menyatu di panel, menempel ke tepi bawah
   panel. Bagian tengah panel tetap krem sampai ±150cqw (anggrek hanya
   menutup sudutnya); tombol berakhir di ±143cqw = 35cqw dari bawah panggung
   (177,8cqw). Garis emas berpermata memisahkannya dari jadwal. */
.nws-stage.is-ready .nws-cover__foot {
    left: 21cqw; width: 58cqw; top: auto; bottom: 35cqw; padding: 5cqw 0 0;
    background: linear-gradient(45deg, transparent 30%, var(--nws-gold) 30% 70%, transparent 70%) center top / 1.9cqw 1.9cqw no-repeat, linear-gradient(-45deg, transparent 30%, var(--nws-gold) 30% 70%, transparent 70%) center top / 1.9cqw 1.9cqw no-repeat;
    -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; box-shadow: none;
}
.nws-stage.is-ready .nws-cover__foot::before {
    content: ''; position: absolute; top: .9cqw; left: 2cqw; right: 2cqw; height: 1px;
    background: linear-gradient(90deg, transparent, var(--nws-gold) 20% 44%, transparent 44% 56%, var(--nws-gold) 56% 80%, transparent);
}
.nws-stage.is-ready .nws-cover__guest { font-size: max(1.15rem, 5.2cqw); }
/* Panggung sempit (iPhone SE dkk.): tombol ber-rem relatif lebih lebar dan
   menyentuh anggrek di sudut bawah — naikkan sedikit. */
@container (max-width: 420px) {
    .nws-stage.is-ready .nws-cover__foot { bottom: 40cqw; }
}
.nws-cover__to { margin: 0; font-size: max(.85rem, 3.2cqw); color: var(--c-muted); }
.nws-cover__guest { max-width: 100%; margin: .1rem 0 0; font: 500 max(1.3rem, 6cqw)/1.25 var(--f-display); color: var(--c-ink); overflow-wrap: anywhere; }

/* Tombol sampul: ungu anggrek, berlis emas. */
.nws-open {
    margin-top: max(.65rem, 2.4cqw); padding: .9rem 2rem; border: 0; border-radius: 999px;
    background: var(--c-accent); color: var(--nws-ivory);
    font: 700 .95rem/1 var(--f-body); letter-spacing: .02em; white-space: nowrap; cursor: pointer;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22), 0 0 0 3px var(--nws-ivory), 0 0 0 4px var(--nws-gold), 0 10px 22px -12px rgb(0 0 0 / .55);
    transition: background .25s ease;
}
.nws-open:hover { background: var(--nws-indigo-hi); }
.nws-open:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 6px; }

/* ---------------------------------------------------------------- isi */

body.nws:not(.is-open) .nws-main { visibility: hidden; opacity: 0; }
body.nws.is-open .nws-main { animation: nws-fade 1s ease both .3s; }
@keyframes nws-fade { from { opacity: 0; } }

.nws .inv__main.nws-main {
    position: relative; z-index: 1;
    width: min(100% - 2.8rem, 30rem); max-width: none; margin: 0 auto; padding: 28vh 0 0;
}

/* Kartu berlengkung berpita kawung: krem bertekstur (kertas.jpg dari panel
   di akhir video) berpuncak lengkung; pita batik kawung = latar di area
   border (background-clip), garis emas di luar & di dalam pita
   (box-shadow); kuntum anggrek sebagai mahkota (::before). */
.nws .inv-section {
    position: relative; margin: 4.2rem 0 13vh; padding: 4.2rem 1.6rem 2.8rem;
    border: 11px solid transparent; border-radius: 50% 50% 1rem 1rem / 6.6rem 6.6rem 1rem 1rem; text-align: center;
    background:
        linear-gradient(rgb(252 246 237 / .8), rgb(252 246 237 / .8)) padding-box,
        url('kertas.jpg') center / cover padding-box,
        linear-gradient(var(--nws-sheet), var(--nws-sheet)) padding-box,
        var(--nws-kawung) 0 0 / 14px 14px border-box;
    box-shadow: 0 0 0 1.5px var(--nws-gold), inset 0 0 0 1.5px var(--nws-gold), 0 30px 50px -24px rgb(0 0 0 / .6);
}
.nws .inv-section::before {
    content: ''; position: absolute; pointer-events: none;
    left: 50%; top: -3.3rem; width: 4.4rem; height: 3.6rem; transform: translateX(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 48'%3E%3Cpath d='M30 46c-4-6-10-8-17-6M30 46c4-6 10-8 17-6' fill='none' stroke='%237E8A55' stroke-width='1.6' stroke-linecap='round'/%3E%3Cpath d='M30 26c-5-9-3-20 0-23 3 3 5 14 0 23z' fill='%23F3E6D2' stroke='%23C9A55E' stroke-width='1'/%3E%3Cpath d='M30 26c-10-1-17-8-17-14 7-1 15 5 17 14zM30 26c10-1 17-8 17-14-7-1-15 5-17 14z' fill='%23B79BD3' stroke='%23C9A55E' stroke-width='1'/%3E%3Cpath d='M30 26c-7 3-13 10-12 15 5 0 11-6 12-15zM30 26c7 3 13 10 12 15-5 0-11-6-12-15z' fill='%23F3E6D2' stroke='%23C9A55E' stroke-width='1'/%3E%3Cpath d='M30 22c-3 2-4 6-2 8h4c2-2 1-6-2-8z' fill='%236E4E8E'/%3E%3Ccircle cx='30' cy='27' r='1.4' fill='%23E8C46A'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 3px 4px rgb(0 0 0 / .3));
}

/* Kepala bagian: kawung emas diapit anggrek */
.nws-head { margin-bottom: 1.2rem; text-align: center; }
.nws-head__kawung { display: block; width: 4.8rem; height: auto; margin: 0 auto .35rem; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nws-head__line { stroke: var(--nws-gold); stroke-width: 1; }
.nws-head__orchid { fill: var(--nws-orchid); stroke: color-mix(in srgb, var(--c-accent) 60%, #fff); stroke-width: .6; }
.nws-head__diamond { fill: var(--nws-indigo); stroke: var(--nws-gold); stroke-width: 1.2; }
.nws-head__petal { fill: none; stroke: var(--nws-gold); stroke-width: 1.1; }
.nws-head__dot { fill: var(--nws-gold); }
.nws-head__title { margin: 0; font: 400 clamp(2.2rem, 9.6vw, 2.6rem)/1.3 var(--f-names); color: var(--c-accent); word-spacing: .12em; }
.nws-head__lead { max-width: 24rem; margin: .5rem auto 0; color: var(--c-muted); }

/* Pembuka */
.nws .inv-bismillah { color: var(--c-accent); }
.nws-verse { margin: 0 0 1.5rem; }
.nws-verse__text { margin: 0; font: italic 400 1.1rem/1.7 var(--f-display); color: var(--c-ink); }
.nws-verse__source { margin-top: .6rem; font: 500 .82rem/1.3 var(--f-label); letter-spacing: .12em; color: #9A7A3A; }
.nws-lede { max-width: 25rem; margin: 0 auto; color: var(--c-muted); }

/* Mempelai: foto berpuncak lengkung, berpita kawung */
.nws-couple__grid { display: grid; gap: .5rem; }
.nws-couple__amp { margin: .3rem 0; font: italic 400 2.2rem/1 var(--f-display); color: var(--nws-gold); }
.nws-person { display: grid; justify-items: center; }
.nws-photo {
    width: 9.5rem; aspect-ratio: 3 / 4; margin: .6rem 0 1.5rem; padding: 4px; border: 9px solid transparent; border-radius: 999px 999px .8rem .8rem;
    background: linear-gradient(var(--nws-ivory), var(--nws-ivory)) padding-box, var(--nws-kawung) 0 0 / 12px 12px border-box;
    box-shadow: 0 0 0 1px var(--nws-gold), inset 0 0 0 1px var(--nws-gold), 0 14px 26px -12px rgb(0 0 0 / .5);
}
.nws-photo img, .nws-photo__initial { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px .35rem .35rem; }
.nws-photo__initial { display: grid; place-items: center; background: var(--c-sunk); font: 400 4.4rem/1 var(--f-names); color: var(--c-accent); }
.nws-person__text { min-width: 0; overflow-wrap: break-word; }
.nws-person__name { margin: 0; font: 400 2.1rem/1.35 var(--f-names); color: var(--c-accent); word-spacing: .12em; }
.nws-person__family { margin: .4rem 0 0; font-size: .95rem; color: var(--c-muted); }
.nws-person__bio { max-width: 22rem; margin: .6rem auto 0; font-size: .95rem; color: var(--c-muted); }
.nws-person__ig { display: inline-block; margin-top: .6rem; color: var(--c-accent); font-size: .92rem; font-weight: 700; text-decoration: none; }

/* Hitung mundur: ubin kawung — angka di medali krem di atas pita kawung */
.nws-countdown { display: flex; justify-content: center; gap: .5rem; margin: 0 auto 2.2rem; }
.nws .nws-countdown .inv-countdown__cell {
    display: grid; place-content: center; justify-items: center; gap: .15rem; width: 4.1rem; aspect-ratio: 1; padding: 0;
    border: 0; border-radius: .5rem;
    background: radial-gradient(circle, var(--nws-ivory) 0 1.6rem, var(--nws-gold) 1.62rem 1.7rem, transparent 1.72rem), var(--nws-kawung) 0 0 / 12px 12px;
    box-shadow: 0 0 0 1px var(--nws-gold), 0 8px 14px -10px rgb(0 0 0 / .5);
}
.nws .nws-countdown b { font: 500 1.4rem/1 var(--f-display); color: var(--c-accent); }
.nws .nws-countdown span { font-size: .74rem; text-transform: none; letter-spacing: .02em; color: var(--c-muted); }

/* Acara */
.nws-events__list { display: grid; gap: 0; }
.nws-event { padding: 1.35rem 0; }
.nws-event + .nws-event { border-top: 1px solid var(--c-rule); }
.nws-event.is-past { opacity: .55; }
.nws-event__title { margin: 0 0 .2rem; font: 400 2.1rem/1.35 var(--f-names); color: var(--c-accent); word-spacing: .12em; }
.nws-event__date { margin: 0; font: 500 1.15rem/1.4 var(--f-display); }
.nws-event__time { margin: 0; font-size: 1rem; color: var(--c-muted); }
.nws-event__venue { margin: .85rem 0 0; font-size: 1rem; font-weight: 700; }
.nws-event__address { margin: .1rem 0 0; font-size: .95rem; color: var(--c-muted); }
.nws-event__meta { margin: .35rem 0 0; font-size: .92rem; color: var(--c-muted); }
.nws-event__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.1rem; }
.nws-event__actions .inv-btn { flex: 1 1 8.5rem; text-align: center; }

/* Tombol */
.nws .inv-btn { border-radius: 999px; padding: .8rem 1.25rem; font: 700 .9rem/1.2 var(--f-body); letter-spacing: .01em; text-transform: none; }
.nws .inv-btn--solid { background: var(--c-accent); border-color: var(--c-accent); color: var(--nws-ivory); box-shadow: none; }
.nws .inv-btn--ghost { background: rgb(255 255 255 / .6); border-color: var(--nws-gold); color: var(--c-ink); }
.nws .inv-btn:hover { filter: none; background: var(--nws-indigo-hi); border-color: var(--nws-indigo-hi); color: #fff; }

/* Cerita: belah ketupat kawung sebagai penanda */
.nws-story__list { display: grid; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.nws-story__item { display: grid; justify-items: center; }
.nws-story__item::before {
    content: ''; width: .75rem; height: .75rem; margin-bottom: .7rem; transform: rotate(45deg);
    background: radial-gradient(circle, var(--nws-gold) 0 .12rem, transparent .14rem), var(--nws-indigo);
    box-shadow: 0 0 0 1.5px var(--nws-gold);
}
.nws-story__period { margin: 0; font: 500 .85rem/1.2 var(--f-label); letter-spacing: .12em; color: var(--c-muted); }
.nws-story__title { margin: .25rem 0 0; font: 500 1.3rem/1.35 var(--f-display); color: var(--c-ink); }
.nws-story__img { width: 100%; aspect-ratio: 4 / 3; margin-top: .75rem; object-fit: cover; border-radius: .5rem; box-shadow: 0 0 0 1px var(--nws-gold), 0 0 0 5px var(--nws-ivory), 0 0 0 6px color-mix(in srgb, var(--nws-gold) 45%, transparent); }
.nws-story__text { max-width: 25rem; margin: .5rem 0 0; font-size: .95rem; color: var(--c-muted); }

/* Galeri (markup _base): foto pertama berpuncak lengkung */
.nws .inv-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem; }
.nws .inv-gallery__cell { padding: 0; border: 0; border-radius: .5rem; aspect-ratio: 3 / 4; overflow: hidden; background: var(--c-sunk); cursor: zoom-in; }
.nws .inv-gallery__cell:first-child { grid-column: 1 / -1; width: 76%; margin: .6rem auto 1.5rem; aspect-ratio: 3 / 4; border-radius: 999px 999px .5rem .5rem; box-shadow: 0 0 0 1.5px var(--nws-gold), 0 0 0 7px var(--nws-indigo), 0 0 0 8.5px var(--nws-gold); }
.nws .inv-gallery__cell img { width: 100%; height: 100%; object-fit: cover; }

/* Video & siaran langsung */
.nws .inv-video { padding: 0; border: 0; border-radius: .5rem; overflow: hidden; background: #000; }
.nws .inv-video iframe { position: static; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* Form RSVP & ucapan (markup _base) */
.nws .inv-form { gap: 1.3rem; text-align: left; }
.nws .inv-label { font-size: .92rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--c-ink); }
.nws .inv-input { padding: .85rem 1rem; border: 1px solid var(--nws-gold); border-radius: .7rem; background: rgb(255 255 255 / .85); font-size: 1rem; }
.nws .inv-input:focus, .nws .inv-input:focus-visible { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 18%, transparent); }
.nws .inv-choice { border-color: var(--nws-gold); border-radius: .7rem; background: rgb(255 255 255 / .85); font-size: .95rem; }
.nws .inv-choice:has(:checked) { border-color: var(--c-accent); background: color-mix(in srgb, var(--c-accent) 8%, #fff); color: var(--c-accent); }
.nws .inv-choice input { accent-color: var(--c-accent); }
.nws .inv-form .inv-btn--solid { width: 100%; padding-block: 1rem; }
.nws .inv-tally div { border: 1px solid var(--nws-gold); border-radius: .7rem; background: rgb(255 255 255 / .8); }
.nws .inv-tally dd { font-family: var(--f-display); font-size: 1.8rem; color: var(--c-accent); }
.nws .inv-tally dt { font-size: .82rem; }
.nws .inv-wish { padding: 1rem 1.1rem; border: 0; border-left: 3px solid var(--nws-orchid); border-radius: 0 .7rem .7rem 0; background: rgb(255 255 255 / .75); text-align: left; font-size: .95rem; }
.nws .inv-wish__name { font-weight: 700; color: var(--c-accent); }

/* Hadiah: nila malam bertepi kawung, berkunang-kunang */
.nws .inv-gifts { display: grid; gap: 1rem; }
.nws .inv-gift {
    position: relative; overflow: hidden; isolation: isolate; padding: 2.2rem 1.5rem 1.9rem; border: 0; border-radius: .7rem; text-align: center; color: #fff;
    background: linear-gradient(175deg, var(--nws-indigo-hi), var(--nws-indigo) 70%);
    box-shadow: 0 0 0 1.5px var(--nws-gold), 0 0 0 7px var(--nws-sheet), 0 0 0 8.5px var(--nws-gold);
    outline: 1px solid rgb(201 165 94 / .7); outline-offset: -9px;
}
.nws .inv-gift::before {
    content: ''; position: absolute; z-index: -1; inset: 0;
    background:
        var(--nws-kawung) 0 0 / 14px 14px repeat-x,
        var(--nws-kawung) 0 100% / 14px 14px repeat-x,
        radial-gradient(circle at 16% 30%, #F3D58A 0 1.2px, rgb(243 213 138 / .3) 2px, transparent 5px),
        radial-gradient(circle at 84% 26%, #F3D58A 0 1.2px, rgb(243 213 138 / .3) 2px, transparent 5px),
        radial-gradient(circle at 76% 76%, #F3D58A 0 1px, rgb(243 213 138 / .3) 2px, transparent 4px),
        radial-gradient(circle at 22% 72%, #F3D58A 0 1px, rgb(243 213 138 / .3) 2px, transparent 4px);
}
.nws .inv-gift__logo { max-height: 1.6rem; margin-inline: auto; filter: brightness(0) invert(1); opacity: .95; }
.nws .inv-gift__label { font-size: .95rem; letter-spacing: .01em; text-transform: none; color: rgb(255 255 255 / .85); }
.nws .inv-gift__account { font: 500 1.7rem/1.3 var(--f-display); letter-spacing: .06em; color: #fff; }
.nws .inv-gift__holder, .nws .inv-gift__address { font-size: .95rem; color: rgb(255 255 255 / .9); }
.nws .inv-gift .inv-btn--ghost { margin-top: 1rem; background: transparent; border-color: rgb(201 165 94 / .85); color: #fff; }
.nws .inv-gift__qr { display: block; max-width: 12rem; margin: .75rem auto 0; padding: .5rem; background: #fff; border-radius: .5rem; }

/* Penutup */
.nws .nws-closing { margin-bottom: 46vh; }
.nws-closing__text { max-width: 24rem; margin: 0 auto; color: var(--c-muted); }
.nws-closing__salutation { margin: 1.6rem 0 0; font: 500 .88rem/1.3 var(--f-label); letter-spacing: .12em; color: var(--c-muted); }
.nws-closing__names { display: grid; margin: .2rem 0 0; font: 400 clamp(2.8rem, 12vw, 3.3rem)/1.25 var(--f-names); color: var(--c-accent); }
.nws-closing__names .nws-amp { font-size: .42em; line-height: 1.4; }
.nws-closing__tag { margin: .8rem 0 0; font-size: .95rem; color: var(--c-muted); }

.nws .nws-footer {
    position: relative; margin: 0 -1.4rem; padding: 1rem; border-radius: 1rem 1rem 0 0;
    background: rgb(15 20 38 / .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: rgb(250 241 228 / .85); font-size: .82rem; text-align: center;
}
.nws .nws-footer a { color: #F0D79A; }

/* Musik, tombol QR, navigasi cepat */
.nws .inv-music { background: var(--c-accent); box-shadow: 0 0 0 2px var(--nws-gold); }
.nws .inv-checkin-btn { background: var(--c-accent); color: #fff; }
.nws { --qn-bg: rgb(250 241 228 / .95); --qn-fg: var(--c-muted); --qn-active: var(--c-accent); }

/* ------------------------------------------------------------ layar lebar */

@media (min-aspect-ratio: 3 / 4) {
    .nws .inv-cover.nws-cover { isolation: isolate; }
    .nws .inv-cover.nws-cover::before {
        content: ''; position: absolute; inset: -40px; z-index: -1;
        background: var(--nws-blur) center / cover; filter: blur(24px) brightness(.8);
    }
    .nws-stage { box-shadow: 0 0 80px -10px rgb(0 0 0 / .6); }
}
@media (min-width: 900px) {
    .nws .inv-cover.nws-cover { left: 0; right: 0; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
    body.nws.is-open .nws-main { animation: none; }
    .nws-cover__text, .nws-cover__foot, .nws-stage__start { transition: none; }
}

/* ------------------------------------------------- HP: bilah alamat menyusut
   Di HP, bilah alamat menutup sendiri saat digulir → tinggi layar berubah →
   latar fixed ikut berubah ukuran ("melompat"). Latar memakai tinggi layar
   TERBESAR (lvh) yang tetap, jadi tidak berubah saat bilah alamat muncul/hilang. */
.nws-backdrop { bottom: auto; height: 100vh; height: 100lvh; }
