/* =========================================================================
   Tema Hanami — surat cinta bersegel lilin di bawah pohon sakura.

   Titik tolaknya video pembuka bergaya lukisan cat air: langit merah muda
   di antara dahan sakura yang mekar, amplop merah muda berpita satin dan
   bersegel lilin emas; amplop terbuka, surat krem naik dan membesar
   menjadi panel berbingkai garis emas tipis, amplop tetap di kakinya, dan
   sepasang burung walet membawa pita di atasnya.

   Gagasan utama: SURAT CINTA. Isi = lembar surat krem (dari panel di akhir
   video) dengan garis emas ganda di tepinya, terselip di amplop merah muda
   (::after, lipatan V di bawah) dan bersegel lilin emas bermotif sakura di
   puncaknya (::before); kepala bagian = amplop kecil bersegel; hitung
   mundur = amplop-amplop kecil; penanda cerita = kelopak sakura.

   Huruf memakai batas minimum yang sama dengan Skyward: tidak ada teks
   sampul di bawah ±12px, teks isi 15px.
   Warna: sakura (utama), merah muda amplop, krem surat, emas segel, hijau daun.
   Huruf: Petit Formal Script (nama & judul), Lora (sub judul), Nunito Sans (teks).
   ========================================================================= */

:root {
    --c-paper: #F7EFE6;
    --c-ink: #46303A;
    --c-accent: #B35A66;

    --c-muted: color-mix(in srgb, var(--c-ink) 74%, #fff);
    --c-rule: color-mix(in srgb, var(--hnm-gold) 45%, #fff);
    --c-sunk: color-mix(in srgb, var(--hnm-blush) 32%, #fff);
    --c-action: var(--c-accent);

    --f-names: 'Petit Formal Script', cursive;
    --f-display: 'Lora', Georgia, serif;
    --f-body: 'Nunito Sans', system-ui, sans-serif;
    --f-script: var(--f-names);

    --hnm-blush: #EBB8B8;  /* kelopak sakura */
    --hnm-env: #D99A9B;    /* amplop merah muda */
    --hnm-env-lo: #E9BDBB;
    --hnm-gold: #C69A55;   /* segel & garis emas */
    --hnm-leaf: #8E9A78;   /* daun */
    --hnm-sheet: #F8F1E8;  /* surat krem */
    --hnm-ivory: #FFFCF8;
    /* Video 720 × 1280. Ponsel: menutupi layar. Layar lebar: utuh setinggi layar. */
    --hnm-w: max(100vw, 100dvh * 9 / 16);
}
@media (min-aspect-ratio: 3 / 4) {
    :root { --hnm-w: calc(100dvh * 9 / 16); }
}

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

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

/* Taman sakura dengan amplop di awal video, dilembutkan. */
.hnm-backdrop {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(rgb(250 240 236 / .3), rgb(239 214 210 / .5)), var(--hnm-latar) center 40% / cover no-repeat, #EFD6D2;
}

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

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

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

/* Lembar surat di akhir video: x 17–83%, y 26–117cqw (sudut atas membulat,
   garis emas ganda di tepi); lipatan amplop menutup bagian bawahnya dari
   ±117cqw, segel lilin di 139–150cqw. Kotak teks dijaga di bagian surat
   yang terbuka. */
.hnm-cover__text {
    position: absolute; left: 21cqw; width: 58cqw; top: 31cqw; height: 84cqw;
    display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 1.4cqw;
    text-align: center;
}
.hnm-cover__label { margin: 0; font: italic 400 max(.95rem, 4.2cqw)/1.3 var(--f-display); white-space: nowrap; color: #A27A45; }
.hnm-cover__names {
    display: grid; justify-items: center; width: 100%; margin: 0;
    font: 400 12.5cqw/1.3 var(--f-names); color: #A44F5C; text-wrap: balance;
}
.hnm-cover__names .hnm-amp { font-size: .4em; line-height: 1.2; color: #A8834A; }
.hnm-cover__date {
    margin: .8cqw 0 0; padding-top: 1.8cqw; border-top: 1px solid var(--hnm-gold);
    font: 500 max(1.02rem, 4.3cqw)/1.25 var(--f-display); white-space: nowrap; color: var(--c-ink);
}
.hnm-cover__sched { display: flex; flex-wrap: wrap; justify-content: center; gap: 1cqw 5cqw; margin: .4cqw 0 0; }
.hnm-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; }
.hnm-cover__sched-title { font: 700 max(.74rem, 2.7cqw)/1.4 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--c-accent); }

.hnm-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(--hnm-w) * 16 / 9 - 100dvh) / 2) + 1.6cqw);
    display: grid; justify-items: center; padding: 3cqw 4cqw 3.6cqw; text-align: center;
    background: rgb(250 243 236 / .93); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-radius: 2.4cqw;
    box-shadow: 0 0 0 1px var(--hnm-gold), 0 0 0 1.3cqw rgb(233 189 187 / .75), 0 0 0 calc(1.3cqw + 1px) rgb(198 154 85 / .6), 0 16px 30px -14px rgb(120 60 70 / .45);
}
.hnm-cover__to { margin: 0; font-size: max(.85rem, 3.2cqw); color: var(--c-muted); }
.hnm-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: sakura, berlis emas seperti segel lilin. */
.hnm-open {
    margin-top: max(.65rem, 2.4cqw); padding: .9rem 2rem; border: 0; border-radius: 999px;
    background: var(--c-accent); color: var(--hnm-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 / .25), 0 0 0 3px var(--hnm-ivory), 0 0 0 4px var(--hnm-gold), 0 10px 22px -12px rgb(120 60 70 / .55);
    transition: background .25s ease;
}
.hnm-open:hover { background: #874762; }
.hnm-open:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 6px; }

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

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

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

/* Lembar surat: krem bertekstur (kertas.jpg dari surat di akhir video),
   garis emas ganda di tepi (box-shadow & ::after), segel lilin emas
   bermotif sakura di puncak (::before). Bawahnya diselipkan ke amplop
   merah muda berlipatan V (background lapisan bawah). */
.hnm .inv-section {
    position: relative; margin: 3.6rem 0 13vh; padding: 3.8rem 1.9rem 5.4rem;
    border: 0; border-radius: 1.1rem 1.1rem .5rem .5rem; text-align: center;
    background:
        linear-gradient(to bottom left, transparent calc(50% - .5px), rgb(160 90 95 / .35) 50%, transparent calc(50% + .5px)) left bottom / 50% 3rem no-repeat,
        linear-gradient(to bottom right, transparent calc(50% - .5px), rgb(160 90 95 / .35) 50%, transparent calc(50% + .5px)) right bottom / 50% 3rem no-repeat,
        linear-gradient(var(--hnm-env-lo), var(--hnm-env)) bottom / 100% 3rem no-repeat,
        linear-gradient(rgb(252 247 241 / .78), rgb(252 247 241 / .78)),
        url('kertas.jpg') center / cover,
        var(--hnm-sheet);
    box-shadow:
        0 0 0 1px var(--hnm-gold),
        0 0 0 6px var(--hnm-sheet),
        0 0 0 7px color-mix(in srgb, var(--hnm-gold) 60%, transparent),
        0 28px 44px -26px rgb(120 60 70 / .5);
}
.hnm .inv-section::before,
.hnm .inv-section::after { content: ''; position: absolute; pointer-events: none; }
.hnm .inv-section::before {
    left: 50%; top: -1.9rem; width: 3.6rem; height: 3.6rem; transform: translateX(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath d='M24 2.5c3 0 4 2.2 6.6 2.6 2.7.4 4.5-1 6.6.6s1.4 3.8 2.7 6.2 3.7 2.8 4 5.5-1.9 3.8-1.9 6.6 2 4 1.6 6.6-2.8 3.2-4 5.6-.7 4.7-2.9 6.2-4 0-6.6.6S27 47.5 24 47.5s-4-2.2-6.6-2.6-4.5 1-6.6-.6-1.4-3.8-2.7-6.2-3.7-2.8-4-5.5 1.9-3.8 1.9-6.6-2-4-1.6-6.6 2.8-3.2 4-5.6.7-4.7 2.9-6.2 4 0 6.6-.6S21 2.5 24 2.5z' fill='%23C69A55'/%3E%3Ccircle cx='24' cy='25' r='14.5' fill='%23D2AA66' stroke='%23A57E3E' stroke-width='1.2'/%3E%3Cg fill='%23A57E3E'%3E%3Cellipse cx='24' cy='18.6' rx='2.9' ry='4.2'/%3E%3Cellipse cx='24' cy='18.6' rx='2.9' ry='4.2' transform='rotate(72 24 25)'/%3E%3Cellipse cx='24' cy='18.6' rx='2.9' ry='4.2' transform='rotate(144 24 25)'/%3E%3Cellipse cx='24' cy='18.6' rx='2.9' ry='4.2' transform='rotate(216 24 25)'/%3E%3Cellipse cx='24' cy='18.6' rx='2.9' ry='4.2' transform='rotate(288 24 25)'/%3E%3C/g%3E%3Ccircle cx='24' cy='25' r='2' fill='%23E9C98A'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 3px 4px rgb(120 60 40 / .35));
}
.hnm .inv-section::after { inset: 11px 11px calc(3rem + 6px); border: 1px solid color-mix(in srgb, var(--hnm-gold) 55%, transparent); border-radius: .7rem .7rem .2rem .2rem; }

/* Kepala bagian: amplop kecil bersegel */
.hnm-head { margin-bottom: 1.2rem; text-align: center; }
.hnm-head__letter { display: block; width: 4.8rem; height: auto; margin: 0 auto .35rem; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hnm-head__petal { fill: var(--hnm-blush); }
.hnm-head__paper { fill: var(--hnm-ivory); stroke: var(--hnm-gold); stroke-width: 1; }
.hnm-head__line { stroke: color-mix(in srgb, var(--hnm-gold) 70%, #fff); stroke-width: 1; }
.hnm-head__env { fill: var(--hnm-env-lo); stroke: color-mix(in srgb, var(--c-accent) 70%, #fff); stroke-width: 1.1; }
.hnm-head__flap { stroke: color-mix(in srgb, var(--c-accent) 70%, #fff); stroke-width: 1.1; }
.hnm-head__seal { fill: var(--hnm-gold); }
.hnm-head__mark { stroke: #F3DDAF; stroke-width: 1.1; }
.hnm-head__title { margin: 0; font: 400 clamp(1.7rem, 7.4vw, 1.95rem)/1.4 var(--f-names); color: var(--c-accent); }
.hnm-head__lead { max-width: 24rem; margin: .5rem auto 0; color: var(--c-muted); }

/* Pembuka */
.hnm .inv-bismillah { color: var(--c-accent); }
.hnm-verse { margin: 0 0 1.5rem; }
.hnm-verse__text { margin: 0; font: italic 400 1.12rem/1.7 var(--f-display); color: var(--c-ink); }
.hnm-verse__source { margin-top: .6rem; font: 500 1rem/1.3 var(--f-display); letter-spacing: .06em; color: #A27A45; }
.hnm-lede { max-width: 25rem; margin: 0 auto; color: var(--c-muted); }

/* Mempelai: foto berbingkai garis emas ganda seperti surat */
.hnm-couple__grid { display: grid; gap: .5rem; }
.hnm-couple__amp { margin: .3rem 0; font: italic 400 2.4rem/1 var(--f-display); color: var(--hnm-gold); }
.hnm-person { display: grid; justify-items: center; }
.hnm-photo {
    width: 9.5rem; aspect-ratio: 3 / 4; margin: .6rem 0 1.5rem; padding: 5px; border-radius: 1rem 1rem .4rem .4rem;
    background: var(--hnm-ivory);
    border: 1px solid var(--hnm-gold);
    box-shadow: 0 0 0 5px var(--hnm-env-lo), 0 0 0 6px color-mix(in srgb, var(--hnm-gold) 60%, transparent), 0 14px 26px -16px rgb(120 60 70 / .5);
}
.hnm-photo img, .hnm-photo__initial { width: 100%; height: 100%; object-fit: cover; border-radius: .75rem .75rem .25rem .25rem; }
.hnm-photo__initial { display: grid; place-items: center; background: var(--c-sunk); font: 400 4rem/1 var(--f-names); color: var(--c-accent); }
.hnm-person__text { min-width: 0; overflow-wrap: break-word; }
.hnm-person__name { margin: 0; font: 400 1.65rem/1.45 var(--f-names); color: var(--c-accent); }
.hnm-person__family { margin: .4rem 0 0; font-size: .95rem; color: var(--c-muted); }
.hnm-person__bio { max-width: 22rem; margin: .6rem auto 0; font-size: .95rem; color: var(--c-muted); }
.hnm-person__ig { display: inline-block; margin-top: .6rem; color: var(--c-accent); font-size: .92rem; font-weight: 700; text-decoration: none; }

/* Hitung mundur: amplop-amplop kecil */
.hnm-countdown { display: flex; justify-content: center; gap: .5rem; margin: 0 auto 2.2rem; }
.hnm .hnm-countdown .inv-countdown__cell {
    display: grid; place-content: center; justify-items: center; gap: .15rem; width: 4.2rem; padding: 1.05rem 0 .55rem;
    border: 1px solid color-mix(in srgb, var(--c-accent) 35%, transparent); border-radius: .35rem;
    background:
        linear-gradient(to bottom left, transparent calc(50% - .5px), color-mix(in srgb, var(--c-accent) 40%, transparent) 50%, transparent calc(50% + .5px)) left top / 50% .9rem no-repeat,
        linear-gradient(to bottom right, transparent calc(50% - .5px), color-mix(in srgb, var(--c-accent) 40%, transparent) 50%, transparent calc(50% + .5px)) right top / 50% .9rem no-repeat,
        var(--hnm-ivory);
    box-shadow: 0 8px 14px -10px rgb(120 60 70 / .45);
}
.hnm .hnm-countdown b { font: 600 1.5rem/1 var(--f-display); color: var(--c-accent); }
.hnm .hnm-countdown span { font-size: .74rem; text-transform: none; letter-spacing: .02em; color: var(--c-muted); }

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

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

/* Cerita: kelopak sakura sebagai penanda */
.hnm-story__list { display: grid; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.hnm-story__item { display: grid; justify-items: center; }
.hnm-story__item::before {
    content: ''; width: .85rem; height: 1rem; margin-bottom: .55rem;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: radial-gradient(circle at 50% 0, transparent .14rem, var(--hnm-blush) .16rem);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-accent) 40%, transparent);
}
.hnm-story__period { margin: 0; font: 500 1rem/1.2 var(--f-display); letter-spacing: .06em; color: var(--c-muted); }
.hnm-story__title { margin: .2rem 0 0; font: 500 1.35rem/1.3 var(--f-display); color: var(--c-ink); }
.hnm-story__img { width: 100%; aspect-ratio: 4 / 3; margin-top: .75rem; object-fit: cover; border-radius: .6rem; box-shadow: 0 0 0 1px var(--hnm-gold), 0 0 0 5px var(--hnm-ivory), 0 0 0 6px color-mix(in srgb, var(--hnm-gold) 40%, transparent); }
.hnm-story__text { max-width: 25rem; margin: .5rem 0 0; font-size: .95rem; color: var(--c-muted); }

/* Galeri (markup _base): foto pertama seperti surat berbingkai */
.hnm .inv-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem; }
.hnm .inv-gallery__cell { padding: 0; border: 0; border-radius: .6rem; aspect-ratio: 3 / 4; overflow: hidden; background: var(--c-sunk); cursor: zoom-in; }
.hnm .inv-gallery__cell:first-child { grid-column: 1 / -1; width: 76%; margin: .6rem auto 1.5rem; aspect-ratio: 3 / 4; border-radius: 1rem 1rem .4rem .4rem; box-shadow: 0 0 0 1px var(--hnm-gold), 0 0 0 6px var(--hnm-env-lo), 0 0 0 7px color-mix(in srgb, var(--hnm-gold) 60%, transparent); }
.hnm .inv-gallery__cell img { width: 100%; height: 100%; object-fit: cover; }

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

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

/* Hadiah: amplop merah muda berlipatan V, bersegel emas */
.hnm .inv-gifts { display: grid; gap: 1rem; }
.hnm .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, #C97E82, #A9545F 75%);
    box-shadow: 0 0 0 5px var(--hnm-sheet), 0 0 0 6px color-mix(in srgb, var(--hnm-gold) 60%, transparent);
    outline: 1px solid rgb(243 221 175 / .65); outline-offset: -8px;
}
.hnm .inv-gift::before {
    content: ''; position: absolute; z-index: -1; inset: 0;
    background:
        linear-gradient(to bottom left, transparent calc(50% - .5px), rgb(255 235 230 / .35) 50%, transparent calc(50% + .5px)) left top / 50% 4.5rem no-repeat,
        linear-gradient(to bottom right, transparent calc(50% - .5px), rgb(255 235 230 / .35) 50%, transparent calc(50% + .5px)) right top / 50% 4.5rem no-repeat,
        radial-gradient(60% 40% at 50% 0, rgb(255 240 235 / .2), transparent 70%);
}
.hnm .inv-gift__logo { max-height: 1.6rem; margin-inline: auto; filter: brightness(0) invert(1); opacity: .95; }
.hnm .inv-gift__label { font-size: .95rem; letter-spacing: .01em; text-transform: none; color: rgb(255 255 255 / .88); }
.hnm .inv-gift__account { font: 500 1.7rem/1.3 var(--f-display); letter-spacing: .06em; color: #fff; }
.hnm .inv-gift__holder, .hnm .inv-gift__address { font-size: .95rem; color: rgb(255 255 255 / .92); }
.hnm .inv-gift .inv-btn--ghost { margin-top: 1rem; background: transparent; border-color: rgb(243 221 175 / .8); color: #fff; }
.hnm .inv-gift__qr { display: block; max-width: 12rem; margin: .75rem auto 0; padding: .5rem; background: #fff; border-radius: .5rem; }

/* Penutup */
.hnm .hnm-closing { margin-bottom: 46vh; }
.hnm-closing__text { max-width: 24rem; margin: 0 auto; color: var(--c-muted); }
.hnm-closing__salutation { margin: 1.6rem 0 0; font: italic 400 1.05rem/1.3 var(--f-display); color: var(--c-muted); }
.hnm-closing__names { display: grid; margin: .2rem 0 0; font: 400 clamp(2.5rem, 11vw, 3rem)/1.4 var(--f-names); color: var(--c-accent); }
.hnm-closing__names .hnm-amp { font-size: .45em; line-height: 1.3; }
.hnm-closing__tag { margin: .8rem 0 0; font-size: .95rem; color: var(--c-muted); }

.hnm .hnm-footer {
    position: relative; margin: 0 -1.2rem; padding: 1rem; border-radius: 1rem 1rem 0 0;
    background: rgb(70 48 58 / .84); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: rgb(247 239 230 / .88); font-size: .82rem; text-align: center;
}
.hnm .hnm-footer a { color: #fff; }

/* Musik, tombol QR, navigasi cepat */
.hnm .inv-music { background: var(--c-accent); }
.hnm .inv-checkin-btn { background: var(--c-accent); color: #fff; }
.hnm { --qn-bg: rgb(247 239 230 / .95); --qn-fg: var(--c-muted); --qn-active: var(--c-accent); }

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

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

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