/* =========================================================================
   Tema Stellaria — atlas bintang & anemon di langit cat air plum.

   Titik tolaknya video pembuka bergaya atlas langit lama: cat air plum tua
   berkabut; bintang-bintang emas menyala, garis konstelasi & lingkaran
   astrolab tergambar, anemon krem & persik berkuncup plum tumbuh di keempat
   sudut, lalu panel krem berlis emas muncul.

   Gagasan utama: ATLAS BINTANG. Halaman isi bernuansa malam (langit plum);
   isi = kartu krem (dari panel di akhir video) berlis emas ganda dengan
   garis konstelasi tipis di pojok atas, bermahkota astrolab — setengah
   lingkaran emas bertitik dengan bintang mata angin (::before); kepala
   bagian = bintang mata angin dalam lingkaran; hitung mundur = lingkaran
   astrolab; penanda cerita = bintang berujung empat.

   Huruf memakai batas minimum yang sama dengan tema video lain: tidak ada
   teks sampul di bawah ±12px, teks isi 15px.
   Warna: plum (utama), langit plum tua, krem, emas, persik anemon.
   Huruf: Italianno (nama & judul), Cormorant Garamond (sub judul), Jost (teks).
   ========================================================================= */

:root {
    --c-paper: #F8F0E3;
    --c-ink: #3A2432;
    --c-accent: #6E2E4E;

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

    --f-names: 'Italianno', cursive;
    --f-display: 'Cormorant Garamond', Georgia, serif;
    --f-body: 'Jost', system-ui, sans-serif;
    --f-script: var(--f-names);

    --stl-night: #3E2235;   /* langit plum tua */
    --stl-night-hi: #5A3149;
    --stl-peach: #EDBFA6;   /* anemon persik */
    --stl-gold: #C9A462;    /* garis & bintang emas */
    --stl-gold-hi: #EED7A0;
    --stl-sheet: #F8F0E3;   /* panel krem */
    --stl-ivory: #FFFBF4;
    /* Video 720 × 1280. Ponsel: menutupi layar. Layar lebar: utuh setinggi layar. */
    --stl-w: max(100vw, 100dvh * 9 / 16);
}
@media (min-aspect-ratio: 3 / 4) {
    :root { --stl-w: calc(100dvh * 9 / 16); }
}

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

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

/* Langit cat air plum di awal video, dengan bintang emas tipis berkelip. */
.stl-backdrop {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(rgb(62 34 53 / .2), rgb(40 20 33 / .5)), var(--stl-latar) center 40% / cover no-repeat, var(--stl-night);
}
.stl-backdrop::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 14% 16%, var(--stl-gold-hi) 0 1.2px, transparent 2px),
        radial-gradient(circle at 82% 24%, var(--stl-gold-hi) 0 1.4px, transparent 2.2px),
        radial-gradient(circle at 30% 58%, var(--stl-gold-hi) 0 1px, transparent 1.8px),
        radial-gradient(circle at 74% 66%, var(--stl-gold-hi) 0 1.3px, transparent 2px),
        radial-gradient(circle at 52% 40%, var(--stl-gold-hi) 0 .9px, transparent 1.6px),
        radial-gradient(circle at 90% 88%, var(--stl-gold-hi) 0 1.1px, transparent 1.9px),
        radial-gradient(circle at 8% 82%, var(--stl-gold-hi) 0 1px, transparent 1.8px);
    animation: stl-twinkle 5s ease-in-out infinite alternate;
}
@keyframes stl-twinkle { from { opacity: .4; } to { opacity: 1; } }

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

.stl .inv-cover.stl-cover { padding: 0; display: block; overflow: hidden; background: var(--stl-night); }
.stl-stage {
    position: absolute; left: 50%; top: 50%;
    width: var(--stl-w); aspect-ratio: 9 / 16; transform: translate(-50%, -50%);
    container-type: inline-size; overflow: hidden;
}
.stl-stage__poster, .stl-stage__start, .stl-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; sapaan & "Lihat undangan" di dasar panel */
.stl-stage__video { opacity: 0; }
.stl-stage.is-playing .stl-stage__video { opacity: 1; }
.stl-stage__start { transition: opacity .3s ease .25s; }
.stl-stage.is-playing .stl-stage__start, .stl-stage.is-ready .stl-stage__start { opacity: 0; }

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

/* Panel krem di akhir video: x 12,5–87,5%, y 29–149cqw (sudut atas
   membulat; anemon menutup sudut bawah dari ±128cqw, hanya sampai x ±25%
   dan dari x ±75%). Panel ini tinggi, jadi di langkah akhir semuanya masuk
   panel: nama & jadwal di atas, sapaan & tombol menempel ke tepi bawah. */
.stl-cover__text {
    position: absolute; left: 19cqw; width: 62cqw; top: 34cqw; height: 66cqw;
    display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 1.4cqw;
    text-align: center;
}
.stl-cover__label { margin: 0; font: italic 500 max(.95rem, 4.3cqw)/1.3 var(--f-display); white-space: nowrap; color: #93733A; }
.stl-cover__names {
    display: grid; justify-items: center; width: 100%; margin: 0;
    font: 400 19cqw/1 var(--f-names); color: var(--c-accent); text-wrap: balance;
}
.stl-cover__names .stl-amp { font-size: .3em; line-height: 1.5; color: #A6843F; }
.stl-cover__date {
    margin: .8cqw 0 0; padding-top: 1.8cqw; border-top: 1px solid var(--stl-gold);
    font: 600 max(1.05rem, 4.5cqw)/1.25 var(--f-display); white-space: nowrap; color: var(--c-ink);
}
.stl-cover__sched { display: flex; flex-wrap: wrap; justify-content: center; gap: 1cqw 5cqw; margin: .4cqw 0 0; }
.stl-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; }
.stl-cover__sched-title { font: 500 max(.74rem, 2.7cqw)/1.4 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--c-accent); }

.stl-cover__foot {
    /* Diam: di bawah layar 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(--stl-w) * 16 / 9 - 100dvh) / 2) + 1.6cqw);
    display: grid; justify-items: center; padding: 3cqw 4cqw 3.6cqw; text-align: center;
    background: rgb(248 240 227 / .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-radius: 2cqw;
    box-shadow: 0 0 0 1px var(--stl-gold), 0 0 0 1.4cqw var(--stl-night), 0 0 0 calc(1.4cqw + 1px) var(--stl-gold), 0 16px 30px -14px rgb(0 0 0 / .55);
}
/* Langkah akhir: sapaan & tombol menyatu di panel, menempel ke tepi bawah
   panel (tombol berakhir di ±142cqw = 35,8cqw dari bawah panggung
   177,8cqw), dipisah dari jadwal oleh garis emas berbintang. */
.stl-stage.is-ready .stl-cover__foot {
    left: 19cqw; width: 62cqw; top: auto; bottom: 35.8cqw; padding: 5cqw 0 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1l1.6 7.4L19 10l-7.4 1.6L10 19l-1.6-7.4L1 10l7.4-1.6z' fill='%23C9A462'/%3E%3C/svg%3E") center top / 2.6cqw 2.6cqw no-repeat;
    -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; box-shadow: none;
}
.stl-stage.is-ready .stl-cover__foot::before {
    content: ''; position: absolute; top: 1.25cqw; left: 3cqw; right: 3cqw; height: 1px;
    background: linear-gradient(90deg, transparent, var(--stl-gold) 18% 43%, transparent 43% 57%, var(--stl-gold) 57% 82%, transparent);
}
.stl-stage.is-ready .stl-cover__guest { font-size: max(1.15rem, 5.2cqw); }
/* Panggung sempit (iPhone SE dkk.): tombol ber-rem relatif lebih lebar —
   naikkan sedikit supaya tidak menyentuh anemon di sudut bawah panel. */
@container (max-width: 420px) {
    .stl-stage.is-ready .stl-cover__foot { bottom: 40cqw; }
}
.stl-cover__to { margin: 0; font-size: max(.85rem, 3.2cqw); color: var(--c-muted); }
.stl-cover__guest { max-width: 100%; margin: .1rem 0 0; font: 600 max(1.3rem, 6cqw)/1.25 var(--f-display); color: var(--c-ink); overflow-wrap: anywhere; }

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

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

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

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

/* Kartu krem atlas: krem bertekstur (kertas.jpg dari panel di akhir video);
   lis emas ganda (box-shadow) dengan pita plum tipis di antaranya; garis
   konstelasi samar di kedua pojok atas (latar); astrolab emas bertitik
   dengan bintang mata angin sebagai mahkota (::before). */
.stl .inv-section {
    position: relative; margin: 4.2rem 0 13vh; padding: 3.8rem 1.8rem 2.8rem;
    border: 0; border-radius: 1.2rem; text-align: center;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cpath d='M4 30l12-10 10 4 12-16' fill='none' stroke='%23C9A462' stroke-width='.7' stroke-opacity='.55' stroke-dasharray='2 2'/%3E%3Cg fill='%23C9A462' fill-opacity='.7'%3E%3Ccircle cx='4' cy='30' r='1.2'/%3E%3Ccircle cx='16' cy='20' r='1.4'/%3E%3Ccircle cx='26' cy='24' r='1.1'/%3E%3Ccircle cx='38' cy='8' r='1.5'/%3E%3C/g%3E%3C/svg%3E") 12px 14px / 70px auto no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 40'%3E%3Cpath d='M56 30L44 20l-10 4-12-16' fill='none' stroke='%23C9A462' stroke-width='.7' stroke-opacity='.55' stroke-dasharray='2 2'/%3E%3Cg fill='%23C9A462' fill-opacity='.7'%3E%3Ccircle cx='56' cy='30' r='1.2'/%3E%3Ccircle cx='44' cy='20' r='1.4'/%3E%3Ccircle cx='34' cy='24' r='1.1'/%3E%3Ccircle cx='22' cy='8' r='1.5'/%3E%3C/g%3E%3C/svg%3E") calc(100% - 12px) 14px / 70px auto no-repeat,
        linear-gradient(rgb(251 246 238 / .8), rgb(251 246 238 / .8)),
        url('kertas.jpg') center / cover,
        var(--stl-sheet);
    box-shadow:
        inset 0 0 0 7px var(--stl-sheet),
        inset 0 0 0 8px color-mix(in srgb, var(--stl-gold) 70%, transparent),
        0 0 0 1.5px var(--stl-gold),
        0 0 0 6px var(--stl-night-hi),
        0 0 0 7px color-mix(in srgb, var(--stl-gold) 70%, transparent),
        0 30px 50px -24px rgb(0 0 0 / .6);
}
.stl .inv-section::before {
    content: ''; position: absolute; pointer-events: none;
    left: 50%; top: -3.6rem; width: 9rem; height: 4.6rem; transform: translateX(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 62'%3E%3Cpath d='M6 61a54 54 0 0 1 108 0z' fill='%233E2235'/%3E%3Cpath d='M6 61a54 54 0 0 1 108 0M18 61a42 42 0 0 1 84 0M32 61a28 28 0 0 1 56 0' fill='none' stroke='%23C9A462' stroke-width='1.1'/%3E%3Cg fill='%23EED7A0'%3E%3Ccircle cx='60' cy='7' r='1.6'/%3E%3Ccircle cx='22' cy='23' r='1.4'/%3E%3Ccircle cx='98' cy='23' r='1.4'/%3E%3Ccircle cx='9' cy='45' r='1.2'/%3E%3Ccircle cx='111' cy='45' r='1.2'/%3E%3Ccircle cx='38' cy='12' r='1'/%3E%3Ccircle cx='82' cy='12' r='1'/%3E%3C/g%3E%3Cpath d='M60 61L39 24M60 61l21-37M60 61L26 40M60 61l34-21' stroke='%23C9A462' stroke-width='.6' stroke-dasharray='1.5 2'/%3E%3Cpath d='M60 20l3.6 21.4L85 45l-21.4 3.6L60 61l-3.6-12.4L35 45l21.4-3.6z' fill='%23E2C47E' stroke='%23B08A45' stroke-width='.8' stroke-linejoin='round'/%3E%3Ccircle cx='60' cy='45' r='2.4' fill='%23FFF6DE'/%3E%3C/svg%3E") center bottom / contain no-repeat;
    filter: drop-shadow(0 -2px 6px rgb(238 215 160 / .25));
}

/* Kepala bagian: bintang mata angin emas di dalam lingkaran astrolab */
.stl-head { margin-bottom: 1.2rem; text-align: center; }
.stl-head__astro { display: block; width: 4.8rem; height: auto; margin: 0 auto .35rem; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.stl-head__line { stroke: var(--stl-gold); stroke-width: .9; stroke-dasharray: 1.6 1.8; }
.stl-head__node { fill: var(--stl-gold); }
.stl-head__ring { stroke: var(--stl-gold); stroke-width: 1; }
.stl-head__ring--in { stroke-dasharray: 1.2 2; }
.stl-head__star { fill: var(--stl-gold-hi); stroke: var(--stl-gold); stroke-width: .9; }
.stl-head__star--small { fill: var(--stl-gold); stroke: none; transform: rotate(45deg); transform-origin: 32px 20px; }
.stl-head__core { fill: var(--stl-ivory); }
.stl-head__title { margin: 0; font: 400 clamp(2.7rem, 12vw, 3.2rem)/1.05 var(--f-names); color: var(--c-accent); word-spacing: .12em; }
.stl-head__lead { max-width: 24rem; margin: .5rem auto 0; color: var(--c-muted); }

/* Pembuka */
.stl .inv-bismillah { color: var(--c-accent); }
.stl-verse { margin: 0 0 1.5rem; }
.stl-verse__text { margin: 0; font: italic 500 1.2rem/1.6 var(--f-display); color: var(--c-ink); }
.stl-verse__source { margin-top: .6rem; font: 600 .98rem/1.3 var(--f-display); letter-spacing: .1em; color: #93733A; }
.stl-lede { max-width: 25rem; margin: 0 auto; color: var(--c-muted); }

/* Mempelai: foto berpuncak lengkung seperti astrolab, berlis emas & plum */
.stl-couple__grid { display: grid; gap: .5rem; }
.stl-couple__amp { margin: .3rem 0; font: italic 400 2.3rem/1 var(--f-display); color: var(--stl-gold); }
.stl-person { display: grid; justify-items: center; }
.stl-photo {
    width: 9.5rem; aspect-ratio: 3 / 4; margin: .6rem 0 1.5rem; padding: 5px; border-radius: 999px 999px .8rem .8rem;
    background: var(--stl-ivory);
    border: 1px solid var(--stl-gold);
    box-shadow: 0 0 0 6px var(--stl-night-hi), 0 0 0 7px var(--stl-gold), 0 14px 26px -14px rgb(0 0 0 / .5);
}
.stl-photo img, .stl-photo__initial { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px .55rem .55rem; }
.stl-photo__initial { display: grid; place-items: center; background: var(--c-sunk); font: 400 5rem/1 var(--f-names); color: var(--c-accent); }
.stl-person__text { min-width: 0; overflow-wrap: break-word; }
.stl-person__name { margin: 0; font: 400 2.7rem/1.05 var(--f-names); color: var(--c-accent); word-spacing: .12em; }
.stl-person__family { margin: .4rem 0 0; font-size: .95rem; color: var(--c-muted); }
.stl-person__bio { max-width: 22rem; margin: .6rem auto 0; font-size: .95rem; color: var(--c-muted); }
.stl-person__ig { display: inline-block; margin-top: .6rem; color: var(--c-accent); font-size: .92rem; font-weight: 500; text-decoration: none; }

/* Hitung mundur: lingkaran astrolab — angka di dalam cincin emas bertitik */
.stl-countdown { display: flex; justify-content: center; gap: .55rem; margin: 0 auto 2.2rem; }
.stl .stl-countdown .inv-countdown__cell {
    display: grid; place-content: center; justify-items: center; gap: .1rem; width: 4.1rem; aspect-ratio: 1; padding: 0;
    border: 1px solid var(--stl-gold); border-radius: 50%;
    background: radial-gradient(circle, var(--stl-ivory) 0 1.5rem, transparent 1.52rem), var(--stl-night-hi);
    box-shadow: inset 0 0 0 3px var(--stl-night-hi), inset 0 0 0 4px color-mix(in srgb, var(--stl-gold) 70%, transparent), 0 8px 14px -10px rgb(0 0 0 / .5);
}
.stl .stl-countdown b { font: 600 1.45rem/1 var(--f-display); color: var(--c-accent); }
.stl .stl-countdown span { font-size: .74rem; text-transform: none; letter-spacing: .02em; color: var(--c-muted); }

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

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

/* Cerita: bintang berujung empat sebagai penanda */
.stl-story__list { display: grid; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.stl-story__item { display: grid; justify-items: center; }
.stl-story__item::before {
    content: ''; width: 1rem; height: 1rem; margin-bottom: .55rem;
    background: var(--stl-gold);
    clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.stl-story__period { margin: 0; font: 600 1rem/1.2 var(--f-display); letter-spacing: .08em; color: var(--c-muted); }
.stl-story__title { margin: .2rem 0 0; font: 600 1.4rem/1.3 var(--f-display); color: var(--c-ink); }
.stl-story__img { width: 100%; aspect-ratio: 4 / 3; margin-top: .75rem; object-fit: cover; border-radius: .7rem; box-shadow: 0 0 0 1px var(--stl-gold), 0 0 0 5px var(--stl-ivory), 0 0 0 6px color-mix(in srgb, var(--stl-gold) 45%, transparent); }
.stl-story__text { max-width: 25rem; margin: .5rem 0 0; font-size: .95rem; color: var(--c-muted); }

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

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

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

/* Hadiah: langit plum berbintang dengan konstelasi emas */
.stl .inv-gifts { display: grid; gap: 1rem; }
.stl .inv-gift {
    position: relative; overflow: hidden; isolation: isolate; padding: 2.2rem 1.5rem 1.9rem; border: 0; border-radius: .9rem; text-align: center; color: #fff;
    background: linear-gradient(175deg, var(--stl-night-hi), var(--stl-night) 70%);
    box-shadow: 0 0 0 1.5px var(--stl-gold), 0 0 0 6px var(--stl-sheet), 0 0 0 7px color-mix(in srgb, var(--stl-gold) 70%, transparent);
    outline: 1px solid rgb(201 164 98 / .6); outline-offset: -8px;
}
.stl .inv-gift::before {
    content: ''; position: absolute; z-index: -1; inset: 0;
    background:
        radial-gradient(circle at 14% 24%, var(--stl-gold-hi) 0 1.3px, transparent 2px),
        radial-gradient(circle at 26% 16%, var(--stl-gold-hi) 0 1px, transparent 1.7px),
        radial-gradient(circle at 84% 22%, var(--stl-gold-hi) 0 1.4px, transparent 2.1px),
        radial-gradient(circle at 78% 80%, var(--stl-gold-hi) 0 1.1px, transparent 1.8px),
        radial-gradient(circle at 20% 76%, var(--stl-gold-hi) 0 1px, transparent 1.7px),
        radial-gradient(70% 45% at 50% -10%, rgb(238 215 160 / .14), transparent 70%);
}
.stl .inv-gift__logo { max-height: 1.6rem; margin-inline: auto; filter: brightness(0) invert(1); opacity: .95; }
.stl .inv-gift__label { font-size: .95rem; letter-spacing: .01em; text-transform: none; color: rgb(255 255 255 / .85); }
.stl .inv-gift__account { font: 600 1.75rem/1.3 var(--f-display); letter-spacing: .06em; color: #fff; }
.stl .inv-gift__holder, .stl .inv-gift__address { font-size: .95rem; color: rgb(255 255 255 / .9); }
.stl .inv-gift .inv-btn--ghost { margin-top: 1rem; background: transparent; border-color: rgb(201 164 98 / .85); color: #fff; }
.stl .inv-gift__qr { display: block; max-width: 12rem; margin: .75rem auto 0; padding: .5rem; background: #fff; border-radius: .5rem; }

/* Penutup */
.stl .stl-closing { margin-bottom: 46vh; }
.stl-closing__text { max-width: 24rem; margin: 0 auto; color: var(--c-muted); }
.stl-closing__salutation { margin: 1.6rem 0 0; font: italic 500 1.05rem/1.3 var(--f-display); color: var(--c-muted); }
.stl-closing__names { display: grid; margin: .2rem 0 0; font: 400 clamp(3.6rem, 16vw, 4.2rem)/1 var(--f-names); color: var(--c-accent); word-spacing: .12em; }
.stl-closing__names .stl-amp { font-size: .34em; line-height: 1.6; }
.stl-closing__tag { margin: .8rem 0 0; font-size: .95rem; color: var(--c-muted); }

.stl .stl-footer {
    position: relative; margin: 0 -1.3rem; padding: 1rem; border-radius: 1rem 1rem 0 0;
    background: rgb(36 18 30 / .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: rgb(248 240 227 / .85); font-size: .82rem; text-align: center;
}
.stl .stl-footer a { color: var(--stl-gold-hi); }

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

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

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

@media (prefers-reduced-motion: reduce) {
    body.stl.is-open .stl-main { animation: none; }
    .stl-cover__text, .stl-cover__foot, .stl-stage__start { transition: none; }
    .stl-backdrop::before { animation: 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. */
.stl-backdrop { bottom: auto; height: 100vh; height: 100lvh; }
