/* =========================================================================
   Tema Sandrose — jam pasir emas berisi bunga di taman damask marun.

   Titik tolaknya video pembuka bergaya lukisan klasik: latar damask merah
   marun, jam pasir emas berukir dengan pasir emas berkilau yang jatuh ke
   tabung bawah berisi mawar & magnolia; jam pasir mengecil menjadi mahkota
   di puncak, sulur emas menggambar bingkai berhias magnolia & mawar
   dengan panel krem.

   Gagasan utama: WAKTU YANG BERBUNGA. Halaman isi tetap bernuansa marun
   (latar damask); isi = kartu krem (dari panel di akhir video) berbingkai
   garis emas ganda dengan sudut sulur, bermahkota jam pasir emas kecil
   berisi mawar (::before); kepala bagian = jam pasir; hitung mundur = sel
   bertutup emas seperti rangka jam pasir; penanda cerita = jam pasir mini.
   Warna: marun (utama), krem, emas, merah muda mawar & magnolia.
   Huruf: Parisienne (nama & judul), Cormorant Garamond (sub judul), Lato (teks).
   ========================================================================= */

:root {
    --c-paper: #F7EEE2;
    --c-ink: #3A1E24;
    --c-accent: #7A2433;

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

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

    --snd-wine: #4A121D;   /* damask marun tua */
    --snd-rose: #B9606F;   /* mawar */
    --snd-blush: #F0CBC7;  /* magnolia */
    --snd-gold: #C9A15A;   /* emas berukir */
    --snd-gold-hi: #EBD29A;
    --snd-sheet: #F7EEE2;  /* panel krem */
    --snd-ivory: #FFFBF5;
    /* Video 720 × 1280. Ponsel: menutupi layar. Layar lebar: utuh setinggi layar. */
    --snd-w: max(100vw, 100dvh * 9 / 16);
}
@media (min-aspect-ratio: 3 / 4) {
    :root { --snd-w: calc(100dvh * 9 / 16); }
}

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

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

/* Damask marun dengan jam pasir di awal video, digelapkan. */
.snd-backdrop {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(rgb(74 18 29 / .35), rgb(50 10 18 / .6)), var(--snd-latar) center 40% / cover no-repeat, var(--snd-wine);
}

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

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

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

/* Panel krem di akhir video: x 12–88%, y 30–148cqw (jam pasir mahkota di
   atas ±0–28cqw, magnolia menggigit sudut bawah dari ±140cqw). Panel ini
   lapang, jadi semuanya masuk: nama di atas, sapaan & tombol di bawah —
   bunga di kaki bingkai tetap terlihat. */
.snd-cover__text {
    position: absolute; left: 20cqw; width: 60cqw; top: 36cqw; height: 64cqw;
    display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: 1.4cqw;
    text-align: center;
}
.snd-cover__label { margin: 0; font: italic 500 4.2cqw/1.3 var(--f-display); letter-spacing: .02em; white-space: nowrap; color: #9B7A3C; }
.snd-cover__names {
    display: grid; justify-items: center; width: 100%; margin: 0;
    font: 400 15cqw/1.15 var(--f-names); color: #7A2433; text-wrap: balance;
}
.snd-cover__names .snd-amp { font-size: .36em; line-height: 1.3; color: #A6823D; }
.snd-cover__date {
    margin: .8cqw 0 0; padding-top: 1.8cqw; border-top: 1px solid var(--snd-gold);
    font: 600 4.3cqw/1.2 var(--f-display); letter-spacing: .03em; white-space: nowrap; color: var(--c-ink);
}
/* Panel lapang: jadwal boleh dua kolom. */
.snd-cover__sched { display: flex; flex-wrap: wrap; justify-content: center; gap: 1cqw 4cqw; max-width: 54cqw; margin: .4cqw 0 0; }
.snd-cover__sched p { display: grid; justify-items: center; margin: 0; font: 400 2.6cqw/1.35 var(--f-body); color: var(--c-muted); text-align: center; }
.snd-cover__sched-title { font: 700 2.1cqw/1.4 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--snd-rose); }

/* Langkah akhir: bagian bawah panel, di bawah garis emas berpermata. */
.snd-cover__foot {
    position: absolute; left: 22cqw; width: 56cqw; top: 103cqw;
    display: grid; justify-items: center; padding-top: 4cqw; text-align: center;
    background:
        linear-gradient(45deg, transparent 38%, var(--snd-gold) 38% 62%, transparent 62%) center top / 2cqw 2cqw no-repeat,
        linear-gradient(-45deg, transparent 38%, var(--snd-gold) 38% 62%, transparent 62%) center top / 2cqw 2cqw no-repeat;
}
.snd-cover__foot::before {
    content: ''; position: absolute; top: 1cqw; left: 5cqw; right: 5cqw; height: 1px;
    background: linear-gradient(90deg, transparent, var(--snd-gold) 20% 44%, transparent 44% 56%, var(--snd-gold) 56% 80%, transparent);
}
/* Diam: kartu krem di bawah layar, di atas semak mawar — jam pasir di
   tengah layar (24–140cqw) tetap terlihat utuh. */
.snd-stage:not(.is-ready) .snd-cover__foot {
    left: 19cqw; width: 62cqw; top: auto;
    bottom: calc(max(0px, (var(--snd-w) * 16 / 9 - 100dvh) / 2) + 1.6cqw);
    padding: 2.8cqw 4cqw 3.4cqw;
    background: rgb(247 238 226 / .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-radius: 1.2cqw;
    box-shadow: 0 0 0 1px var(--snd-gold), 0 0 0 1.2cqw rgb(74 18 29 / .55), 0 0 0 calc(1.2cqw + 1px) var(--snd-gold), 0 18px 30px -16px rgb(0 0 0 / .6);
}
.snd-stage:not(.is-ready) .snd-cover__foot::before { content: none; }
.snd-cover__to { margin: 0; font-size: max(.72rem, 2.8cqw); color: var(--c-muted); }
.snd-cover__guest { max-width: 100%; margin: .1rem 0 0; font: 500 max(1.2rem, 5.6cqw)/1.25 var(--f-display); color: var(--c-ink); overflow-wrap: anywhere; }

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

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

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

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

/* Kartu krem bersulur emas: krem bertekstur (kertas.jpg dari panel di akhir
   video); garis emas + pita marun + garis emas (box-shadow), seperti
   bingkai di video; jam pasir emas kecil berisi mawar sebagai mahkota
   (::before); garis emas tipis di dalam tepi ganda (::after). */
.snd .inv-section {
    position: relative; margin: 3.6rem 0 13vh; padding: 4rem 1.9rem 3rem;
    border: 0; border-radius: .5rem; text-align: center;
    background:
        linear-gradient(rgb(250 244 235 / .74), rgb(250 244 235 / .74)),
        url('kertas.jpg') center / cover,
        var(--snd-sheet);
    box-shadow:
        0 0 0 1.5px var(--snd-gold),
        0 0 0 7px #5E1825,
        0 0 0 8.5px var(--snd-gold),
        0 30px 50px -24px rgb(0 0 0 / .65);
}
.snd .inv-section::before,
.snd .inv-section::after { content: ''; position: absolute; pointer-events: none; }
.snd .inv-section::before {
    left: 50%; top: -3.9rem; width: 4.8rem; height: 5rem; transform: translateX(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 50'%3E%3Cpath d='M4 40c4-4 8-4 11-1M44 40c-4-4-8-4-11-1' fill='none' stroke='%23C9A15A' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M13 4h22l-2 3H15zM13 46h22l-2-3H15z' fill='%23E2C47E' stroke='%23A9813C' stroke-width='1'/%3E%3Cpath d='M15.5 7v36M32.5 7v36' stroke='%23C9A15A' stroke-width='2'/%3E%3Cpath d='M18 7c0 9 5 12 6 18-1 6-6 9-6 18h12c0-9-5-12-6-18 1-6 6-9 6-18z' fill='%23FFF8EE' fill-opacity='.92' stroke='%23C9A15A' stroke-width='1.2'/%3E%3Cpath d='M20 11h8c-.6 4.4-4 7.4-4 10 0-2.6-3.4-5.6-4-10z' fill='%23E2BF6E'/%3E%3Cpath d='M24 21v12' stroke='%23E2BF6E' stroke-width='.8'/%3E%3Ccircle cx='24' cy='37.5' r='3.6' fill='%23B9606F'/%3E%3Ccircle cx='20.6' cy='39.5' r='2.4' fill='%23F0CBC7'/%3E%3Ccircle cx='27.4' cy='39.5' r='2.4' fill='%23F0CBC7'/%3E%3Cpath d='M24 35.4c-1.6.6-1.8 2.8 0 3.2 1.8-.4 1.6-2.6 0-3.2' fill='none' stroke='%237A2433' stroke-width='.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.snd .inv-section::after {
    inset: 10px; border: 1px solid color-mix(in srgb, var(--snd-gold) 60%, transparent); border-radius: .3rem;
    outline: 1px solid color-mix(in srgb, var(--snd-gold) 30%, transparent); outline-offset: -4px;
}

/* Kepala bagian: jam pasir emas kecil berisi mawar */
.snd-head { margin-bottom: 1.2rem; text-align: center; }
.snd-head__glass { display: block; width: 4.6rem; height: auto; margin: 0 auto .35rem; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.snd-head__vine { stroke: var(--snd-gold); stroke-width: 1.1; }
.snd-head__cap { stroke: var(--snd-gold); stroke-width: 2.4; }
.snd-head__post { stroke: var(--snd-gold); stroke-width: 1.4; }
.snd-head__bulb { fill: var(--snd-ivory); stroke: var(--snd-gold); stroke-width: 1.2; }
.snd-head__sand { fill: var(--snd-gold-hi); }
.snd-head__rose { fill: var(--snd-rose); }
.snd-head__petal { stroke: var(--c-accent); stroke-width: .8; }
.snd-head__title { margin: 0; font: 400 clamp(2.3rem, 9.5vw, 2.7rem)/1.25 var(--f-names); color: var(--c-accent); word-spacing: .12em; }
.snd-head__lead { max-width: 24rem; margin: .5rem auto 0; color: var(--c-muted); }

/* Pembuka */
.snd .inv-bismillah { color: var(--c-accent); }
.snd-verse { margin: 0 0 1.5rem; }
.snd-verse__text { margin: 0; font: italic 500 1.25rem/1.6 var(--f-display); color: var(--c-ink); }
.snd-verse__source { margin-top: .6rem; font: 600 .95rem/1.3 var(--f-display); letter-spacing: .12em; color: #9B7A3C; }
.snd-lede { max-width: 25rem; margin: 0 auto; color: var(--c-muted); }

/* Mempelai: foto bersudut berlekuk emas, berpita marun */
.snd-couple__grid { display: grid; gap: .5rem; }
.snd-couple__amp { margin: .3rem 0; font: italic 400 2.4rem/1 var(--f-display); color: var(--snd-gold); }
.snd-person { display: grid; justify-items: center; }
.snd-photo {
    width: 9rem; aspect-ratio: 3 / 4.1; margin: .6rem 0 1.5rem; padding: 5px; border-radius: 4.5rem 4.5rem .4rem .4rem;
    background: var(--snd-ivory);
    border: 1px solid var(--snd-gold);
    box-shadow: 0 0 0 6px #5E1825, 0 0 0 7.5px var(--snd-gold), 0 14px 26px -16px rgb(0 0 0 / .55);
}
.snd-photo img, .snd-photo__initial { width: 100%; height: 100%; object-fit: cover; border-radius: 4.2rem 4.2rem .25rem .25rem; }
.snd-photo__initial { display: grid; place-items: center; background: var(--c-sunk); font: 400 4.6rem/1 var(--f-names); color: var(--c-accent); }
.snd-person__text { min-width: 0; overflow-wrap: break-word; }
.snd-person__name { margin: 0; font: 400 2.3rem/1.25 var(--f-names); color: var(--c-accent); word-spacing: .12em; }
.snd-person__family { margin: .35rem 0 0; font-size: .88rem; color: var(--c-muted); }
.snd-person__bio { max-width: 22rem; margin: .6rem auto 0; font-size: .88rem; color: var(--c-muted); }
.snd-person__ig { display: inline-block; margin-top: .6rem; color: var(--snd-rose); font-size: .84rem; font-weight: 700; text-decoration: none; }

/* Hitung mundur: sel bertutup emas seperti rangka jam pasir */
.snd-countdown { display: flex; justify-content: center; gap: .55rem; margin: 0 auto 2.2rem; }
.snd .snd-countdown .inv-countdown__cell {
    display: grid; place-content: center; justify-items: center; gap: .15rem; width: 3.7rem; padding: .7rem 0 .6rem;
    border: 0; border-block: 4px solid var(--snd-gold); border-radius: 3px;
    background: linear-gradient(90deg, transparent 3px, var(--snd-ivory) 3px calc(100% - 3px), transparent calc(100% - 3px)),
                linear-gradient(90deg, var(--snd-gold) 1.5px, transparent 1.5px calc(100% - 1.5px), var(--snd-gold) calc(100% - 1.5px));
    box-shadow: 0 8px 14px -10px rgb(0 0 0 / .4);
}
.snd .snd-countdown b { font: 600 1.55rem/1 var(--f-display); color: var(--c-accent); }
.snd .snd-countdown span { font-size: .62rem; text-transform: none; letter-spacing: .04em; color: var(--c-muted); }

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

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

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

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

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

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

/* Hadiah: damask marun berkilau pasir emas, berbingkai emas */
.snd .inv-gifts { display: grid; gap: 1rem; }
.snd .inv-gift {
    position: relative; overflow: hidden; isolation: isolate; padding: 2rem 1.5rem 1.9rem; border: 0; border-radius: .5rem; text-align: center; color: var(--snd-ivory);
    background: linear-gradient(170deg, #8A2D3D, #5E1825 55%, #3E0F18);
    box-shadow: 0 0 0 5px var(--snd-sheet), 0 0 0 6.5px var(--snd-gold);
    outline: 1px solid rgb(201 161 90 / .75); outline-offset: -8px;
}
.snd .inv-gift::before {
    content: ''; position: absolute; z-index: -1; inset: 0;
    background:
        radial-gradient(60% 45% at 50% -5%, rgb(235 210 154 / .22), transparent 70%),
        radial-gradient(circle at 18% 26%, #EBD29A 0 1px, transparent 1.6px),
        radial-gradient(circle at 82% 20%, #EBD29A 0 1px, transparent 1.6px),
        radial-gradient(circle at 74% 80%, #EBD29A 0 1px, transparent 1.6px),
        radial-gradient(circle at 26% 76%, #EBD29A 0 1px, transparent 1.6px);
}
.snd .inv-gift__logo { max-height: 1.6rem; margin-inline: auto; filter: brightness(0) invert(1); opacity: .9; }
.snd .inv-gift__label { font-size: .85rem; letter-spacing: .02em; text-transform: none; color: rgb(247 238 226 / .78); }
.snd .inv-gift__account { font: 600 1.75rem/1.3 var(--f-display); letter-spacing: .08em; color: #fff; }
.snd .inv-gift__holder, .snd .inv-gift__address { color: rgb(247 238 226 / .9); }
.snd .inv-gift .inv-btn--ghost { margin-top: 1rem; background: transparent; border-color: rgb(201 161 90 / .8); color: #fff; }
.snd .inv-gift__qr { display: block; max-width: 12rem; margin: .75rem auto 0; padding: .5rem; background: #fff; border-radius: .4rem; }

/* Penutup */
.snd .snd-closing { margin-bottom: 46vh; }
.snd-closing__text { max-width: 24rem; margin: 0 auto; color: var(--c-muted); }
.snd-closing__salutation { margin: 1.6rem 0 0; font: 600 1rem/1.3 var(--f-display); letter-spacing: .12em; color: var(--c-muted); }
.snd-closing__names { display: grid; margin: .2rem 0 0; font: 400 clamp(3rem, 13vw, 3.6rem)/1.2 var(--f-names); color: var(--c-accent); }
.snd-closing__names .snd-amp { font-size: .42em; line-height: 1.5; }
.snd-closing__tag { margin: .8rem 0 0; font-size: .88rem; color: var(--c-muted); }

.snd .snd-footer {
    position: relative; margin: 0 -1.2rem; padding: 1rem; border-radius: 1rem 1rem 0 0;
    background: rgb(40 8 14 / .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: rgb(247 238 226 / .8); font-size: .75rem; text-align: center;
}
.snd .snd-footer a { color: var(--snd-gold-hi); }

/* Musik, tombol QR, navigasi cepat */
.snd .inv-music { background: var(--c-accent); box-shadow: 0 0 0 2px var(--snd-gold); }
.snd .inv-checkin-btn { background: var(--c-accent); color: #fff; }
.snd { --qn-bg: rgb(247 238 226 / .94); --qn-fg: var(--c-muted); --qn-active: var(--c-accent); }

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

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

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

/* ------------------------------------------------ Ukuran huruf minimum
   Teks kecil di sampul memakai cqw (ikut lebar panggung), jadi di HP kecil
   bisa menyusut di bawah 10px. Batas bawah di sini menjaga semuanya tetap
   terbaca: jadwal >=13px, judul jadwal & label hitung mundur ~12px,
   sapaan >=21px, teks isi 15px. Di layar lebar ukuran asli tetap dipakai. */
body.inv.snd { font-size: .95rem; }
.snd-cover__label { font-size: max(.95rem, 4.2cqw); }
.snd-cover__date { font-size: max(1.02rem, 4.3cqw); }
.snd-cover__sched p { font-size: max(.82rem, 2.6cqw); }
.snd-cover__sched-title { font-size: max(.74rem, 2.1cqw); }
.snd-cover__to { font-size: max(.85rem, 3.1cqw); }
.snd-cover__guest { font-size: max(1.3rem, 5.8cqw); }
.snd-open { font-size: .94rem; }
.snd .snd-countdown span { font-size: .74rem; }
.snd-person__family, .snd-person__bio, .snd-event__address, .snd-story__text { font-size: .95rem; }
.snd-event__meta { font-size: .92rem; }
.snd .inv-btn { font-size: .88rem; }
.snd .inv-label { font-size: .92rem; }
.snd .inv-input { font-size: 1rem; }
.snd .inv-gift__label, .snd .inv-gift__holder, .snd .inv-gift__address { font-size: .95rem; }
.snd .snd-footer { font-size: .82rem; }
.snd-cover__sched { max-width: none; column-gap: 5cqw; }
