/* =========================================================================
   Tema Mahligai — istana di atas awan saat matahari terbit.

   Titik tolaknya video pembuka: kamera menembus awan merah muda menuju
   tangga marmer bertabur mawar putih, melewati gapura bertirai sutra, lalu
   tiba di bingkai oval gading berlis emas & mutiara di antara pilar
   bermawar, dengan istana di atas awan & matahari terbit di belakangnya.

   Gagasan utama: MAHLIGAI MUTIARA. Sampul dua langkah: setelah video, SEMUA
   isi sampul (label, nama, tanggal, jadwal, sapaan tamu & tombol) ada di
   dalam bingkai oval. Latar isi = tangga istana yang dilembutkan; isi =
   kartu gading berlis emas ganda bermahkota hiasan mutiara (seperti puncak
   bingkai oval), penanda judul = mutiara dalam bunga emas diapit sulur.
   Warna: mawar tua (utama), gading, emas, merah muda awan, lilac.
   Huruf: Pinyon Script (nama & judul), Cinzel (label), Cormorant Garamond
   (sub judul), Mulish (teks).
   Ukuran huruf memakai batas minimum yang sama dengan tema lain: tidak ada
   teks sampul di bawah ±12px, teks isi 15px.
   ========================================================================= */

:root {
    --c-paper: #FBF5EF;
    --c-ink: #48363A;
    --c-accent: #A86B66;

    --c-muted: color-mix(in srgb, var(--c-ink) 72%, #fff);
    --c-rule: color-mix(in srgb, var(--mhg-silver) 50%, #fff);
    --c-sunk: color-mix(in srgb, var(--c-accent) 8%, #fff);
    --c-action: var(--c-accent);

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

    /* "silver" = emas lis bingkai oval (kosakata kartu bersama). */
    --mhg-silver: #C9A260;
    --mhg-ivory: #FFFCF7;
    --mhg-card: #FDF8F2;
    --mhg-night: #5B4650;
    --mhg-glow: rgb(255 214 190 / .5);
    /* Video 720 × 1280. Ponsel: menutupi layar. Layar lebar: utuh setinggi layar. */
    --mhg-w: max(100vw, 100dvh * 9 / 16);
}
@media (min-aspect-ratio: 3 / 4) {
    :root { --mhg-w: calc(100dvh * 9 / 16); }
}

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

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

/* Tangga istana di atas awan (tengah video), dilembutkan dengan kabut merah muda supaya kartu menonjol. */
.mhg-sky {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(rgb(251 240 236 / .25), rgb(251 240 236 / .55)), var(--mhg-latar) center 40% / cover no-repeat, #EED9D6;
}

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

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

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

/* Bingkai oval (bingkai akhir video): dalam lis x 11–88%, y 36–141cqw
   (pusat 49,5 / 88,6cqw). Mawar di pilar menutup kedua sisi bawah mulai
   ±128cqw. Label, nama, tanggal & jadwal berada di TENGAH oval (kotak
   simetris terhadap pusat oval, isi dirapatkan ke tengah). */
.mhg-cover__text {
    position: absolute; left: 19cqw; width: 61cqw; top: 47cqw; height: 83cqw;
    display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: .8cqw;
    text-align: center;
}
/* Sapaan tamu + tombol: selalu di bagian BAWAH layar, sedikit berjarak dari
   tepinya — di langkah diam maupun akhir, jadi tidak ada lompatan posisi.
   Panggung bisa lebih tinggi daripada layar (terpotong atas-bawah), jadi
   jaraknya dihitung dari tepi bawah yang TERLIHAT: (tinggi panggung − tinggi
   layar) / 2 + jarak. */
.mhg-cover__foot {
    position: absolute; left: 18cqw; width: 64cqw; top: auto;
    bottom: calc((100% - 100dvh) / 2 + 1.4rem + env(safe-area-inset-bottom));
    display: grid; justify-items: center; padding: 2.4cqw 3cqw 3cqw; border-radius: 6cqw; text-align: center;
    background: rgb(255 250 246 / .86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--mhg-silver) 70%, transparent), 0 10px 26px -14px rgb(90 55 60 / .45);
}
@keyframes mhg-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.mhg-cover__label { max-width: 100%; margin: 0; font: 600 max(.8rem, 3.2cqw)/1.35 var(--f-label); letter-spacing: .14em; text-wrap: balance; color: #9A7536; }
.mhg-cover__names {
    display: grid; justify-items: center; width: 100%; margin: .5cqw 0 0;
    font: 400 13.5cqw/1.05 var(--f-names); color: var(--c-accent); text-wrap: balance;
}
.mhg-cover__names .mhg-amp { font-size: .5em; line-height: 1.1; }
.mhg-cover__date {
    margin: 1cqw 0 0; padding: 1.4cqw 3cqw 0; border-top: 1px solid var(--mhg-silver);
    font: 600 max(.95rem, 4.4cqw)/1.2 var(--f-display); letter-spacing: .04em; white-space: nowrap; color: var(--c-ink);
}
.mhg-cover__sched { display: flex; flex-wrap: wrap; justify-content: center; gap: .8cqw 4cqw; max-width: 54cqw; margin: .6cqw 0 0; }
.mhg-cover__sched p { display: grid; justify-items: center; margin: 0; font: 500 max(.74rem, 2.9cqw)/1.35 var(--f-body); color: var(--c-muted); text-align: center; }
.mhg-cover__sched-title { font: 400 max(1.05rem, 5cqw)/1.2 var(--f-names); color: var(--c-accent); }
.mhg-cover__to { margin: 0; font-size: max(.8rem, 3.1cqw); line-height: 1.3; white-space: nowrap; color: var(--c-muted); }
.mhg-cover__guest { max-width: 100%; margin: .1rem 0 0; font: 600 max(1.1rem, 4.7cqw)/1.2 var(--f-display); color: var(--c-ink); overflow-wrap: anywhere; text-wrap: balance; }
/* Panggung sempit (iPhone SE dkk.): huruf ber-rem relatif lebih besar —
   lebarkan kapsul supaya "Kepada Bapak/Ibu/Saudara/i" tetap satu baris. */
@container (max-width: 420px) {
    .mhg-cover__foot { left: 13cqw; width: 74cqw; }
}
.mhg-open {
    margin-top: max(.6rem, 2.4cqw); padding: .8rem 1.8rem; border: 0; border-radius: 999px;
    background: var(--c-accent); color: #fff;
    font: 500 .95rem/1 var(--f-body); letter-spacing: .04em; white-space: nowrap; cursor: pointer;
    box-shadow: 0 0 0 3px rgb(255 250 246 / .9), 0 0 0 4px var(--mhg-silver), 0 10px 22px -10px rgb(120 70 70 / .5);
    transition: background .25s ease;
}
.mhg-open:hover { background: var(--c-ink); }
.mhg-open:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 6px; }

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

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

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

/* Kartu gading: lis emas ganda di dalam tepi (bingkai oval di video),
   bermahkota hiasan mutiara dalam bunga emas (::before) seperti puncak
   bingkai oval. */
.mhg .inv-section {
    position: relative; margin: 2.4rem 0 14vh; padding: 3.4rem 1.7rem 2.9rem;
    border: 0; border-radius: 1.6rem; text-align: center;
    background: radial-gradient(90% 60% at 50% 40%, #FFFFFF, transparent 75%), var(--mhg-card);
    box-shadow:
        inset 0 0 0 8px var(--mhg-card), inset 0 0 0 9px var(--mhg-silver),
        inset 0 0 0 12px var(--mhg-card), inset 0 0 0 12.6px color-mix(in srgb, var(--mhg-silver) 60%, transparent),
        0 0 0 1px rgb(255 255 255 / .6),
        0 0 40px -6px var(--mhg-glow), 0 26px 50px -26px rgb(90 55 60 / .45);
}
.mhg .inv-section::before {
    content: ''; position: absolute; z-index: 1; left: 50%; top: -1.35rem; width: 6.6rem; height: 2.7rem; transform: translateX(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 33'%3E%3Cpath d='M2 26c7-8 17-9 26-4M78 26c-7-8-17-9-26-4M13 21c-2-3.4-.4-6.8 3-7.4M67 21c2-3.4.4-6.8-3-7.4' fill='none' stroke='%23C9A260' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M28 17c2.6-5 7-7 12-7s9.4 2 12 7c-4-2-8-2.8-12-2.8S32 15 28 17zM40 2l3.6 5.4L40 10l-3.6-2.6z' fill='%23E2C58A' stroke='%23B48A45' stroke-width='.7'/%3E%3Cellipse cx='40' cy='20' rx='9.6' ry='8.6' fill='%23F6E9D2' stroke='%23C9A260' stroke-width='.9'/%3E%3Ccircle cx='40' cy='20' r='5.6' fill='%23FFFEFB' stroke='%23D8C8B2' stroke-width='.7'/%3E%3Ccircle cx='38.2' cy='18.2' r='1.6' fill='%23fff'/%3E%3Ccircle cx='22' cy='24.6' r='2.2' fill='%23FFFEFB' stroke='%23D8C8B2' stroke-width='.6'/%3E%3Ccircle cx='58' cy='24.6' r='2.2' fill='%23FFFEFB' stroke='%23D8C8B2' stroke-width='.6'/%3E%3Ccircle cx='6.6' cy='23.6' r='1.7' fill='%23FFFEFB' stroke='%23D8C8B2' stroke-width='.6'/%3E%3Ccircle cx='73.4' cy='23.6' r='1.7' fill='%23FFFEFB' stroke='%23D8C8B2' stroke-width='.6'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 2px 3px rgb(90 55 60 / .2));
}

.mhg-head { margin-bottom: 1.5rem; text-align: center; }
.mhg-head__crest { display: block; width: 5.4rem; height: auto; margin: 0 auto .5rem; overflow: visible; stroke-linecap: round; stroke-linejoin: round; }
.mhg-head__scroll { fill: none; stroke: var(--mhg-silver); stroke-width: 1.3; }
.mhg-head__leaf { fill: #E2C58A; stroke: #B48A45; stroke-width: .6; }
.mhg-head__petal { fill: #F6E9D2; stroke: var(--mhg-silver); stroke-width: .8; }
.mhg-head__pearl { fill: #FFFEFB; stroke: #D3C1A9; stroke-width: .7; }
.mhg-head__title { margin: 0; font: 400 clamp(2.5rem, 11vw, 3rem)/1.3 var(--f-names); color: var(--c-accent); }
.mhg-head__lead { max-width: 24rem; margin: .5rem auto 0; color: var(--c-muted); }

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

/* Mempelai: foto bulat bercincin perak ganda */
.mhg-couple__grid { display: grid; gap: .5rem; }
.mhg-couple__amp { margin: .25rem 0; font: italic 500 2.2rem/1 var(--f-display); color: var(--mhg-silver); }
.mhg-person { display: grid; justify-items: center; }
.mhg-photo {
    width: 10rem; aspect-ratio: 1; margin: 0 0 1.3rem; padding: 5px; border-radius: 50%;
    border: 1px solid var(--mhg-silver); outline: 1px solid rgb(255 255 255 / .9); outline-offset: 5px;
    box-shadow: 0 0 30px rgb(255 255 255 / .6);
}
.mhg-photo img, .mhg-photo__initial { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.mhg-photo__initial { display: grid; place-items: center; background: var(--c-sunk); font: 400 4.5rem/1 var(--f-names); color: var(--c-accent); }
.mhg-person__text { min-width: 0; overflow-wrap: break-word; }
.mhg-person__name { margin: 0; font: 400 2.5rem/1.3 var(--f-names); color: var(--c-accent); }
.mhg-person__family { margin: .35rem 0 0; font-size: .95rem; color: var(--c-muted); }
.mhg-person__bio { max-width: 22rem; margin: .6rem auto 0; font-size: .95rem; color: var(--c-muted); }
.mhg-person__ig { display: inline-block; margin-top: .6rem; color: var(--c-accent); font-size: .92rem; font-weight: 500; text-decoration: none; }

/* Hitung mundur: tiap angka dalam oval kecil berlis emas (bingkai video). */
.mhg-countdown { display: flex; justify-content: center; gap: .7rem; margin: 0 auto 2rem; }
.mhg .mhg-countdown .inv-countdown__cell {
    display: grid; justify-items: center; gap: .15rem; min-width: 3.6rem; padding: 0;
    border: 0; border-radius: 0; background: none;
}
.mhg .mhg-countdown b { font: 600 1.8rem/1 var(--f-display); color: var(--c-accent); }
.mhg .mhg-countdown span { font-size: .74rem; text-transform: none; letter-spacing: .04em; color: var(--c-muted); }

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

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

/* Cerita: butir mutiara kecil sebagai penanda */
.mhg-story__list { display: grid; gap: 1.75rem; margin: 0; padding: 0; list-style: none; }
.mhg-story__item { display: grid; justify-items: center; }
.mhg-story__item::before {
    content: ''; width: 1rem; height: 1rem; margin-bottom: .5rem; border-radius: 50%;
    background: radial-gradient(circle at 70% 35%, transparent .36rem, var(--c-accent) .4rem);
}
.mhg-story__period { margin: 0; font: 600 1rem/1.2 var(--f-display); letter-spacing: .12em; color: var(--c-muted); }
.mhg-story__title { margin: .15rem 0 0; font: 600 1.4rem/1.3 var(--f-display); color: var(--c-ink); }
.mhg-story__img { width: 100%; aspect-ratio: 4 / 3; margin-top: .75rem; object-fit: cover; border-radius: 1rem; }
.mhg-story__text { max-width: 25rem; margin: .4rem 0 0; font-size: .95rem; color: var(--c-muted); }

/* Galeri (markup _base): pertama bulat */
.mhg .inv-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem; }
.mhg .inv-gallery__cell { padding: 0; border: 0; border-radius: 1rem; aspect-ratio: 3 / 4; overflow: hidden; background: var(--c-sunk); cursor: zoom-in; }
.mhg .inv-gallery__cell:first-child { grid-column: 1 / -1; width: 82%; margin: 0 auto .6rem; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 1px var(--mhg-silver), 0 0 0 8px rgb(255 255 255 / .5); }
.mhg .inv-gallery__cell img { width: 100%; height: 100%; object-fit: cover; }

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

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

/* Hadiah: kartu mawar tua berlis emas dengan kilau mutiara samar */
.mhg .inv-gifts { display: grid; gap: 1rem; }
.mhg .inv-gift {
    position: relative; overflow: hidden; isolation: isolate; padding: 1.9rem 1.5rem; border: 0; border-radius: 1.2rem; text-align: center; color: var(--mhg-ivory);
    background: linear-gradient(160deg, var(--c-accent), color-mix(in srgb, var(--c-accent) 70%, #0d1120));
}
.mhg .inv-gift::before {
    content: ''; position: absolute; z-index: -1; width: 11rem; aspect-ratio: 1; right: -3.5rem; top: -3.5rem; border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgb(242 239 223 / .35), rgb(242 239 223 / .08) 70%);
    box-shadow: 0 0 40px rgb(242 239 223 / .2);
}
.mhg .inv-gift__logo { max-height: 1.6rem; margin-inline: auto; filter: brightness(0) invert(1); opacity: .9; }
.mhg .inv-gift__label { font-size: .95rem; letter-spacing: .02em; text-transform: none; color: rgb(242 239 223 / .75); }
.mhg .inv-gift__account { font: 600 1.75rem/1.3 var(--f-display); letter-spacing: .08em; color: #fff; }
.mhg .inv-gift__holder, .mhg .inv-gift__address { color: rgb(242 239 223 / .85); }
.mhg .inv-gift .inv-btn--ghost { margin-top: 1rem; background: transparent; border-color: rgb(242 239 223 / .5); color: #fff; }
.mhg .inv-gift__qr { display: block; max-width: 12rem; margin: .75rem auto 0; padding: .5rem; background: #fff; border-radius: .5rem; }

/* Penutup */
.mhg .mhg-closing { margin-bottom: 50vh; }
.mhg-closing__text { max-width: 24rem; margin: 0 auto; color: var(--c-muted); }
.mhg-closing__salutation { margin: 1.6rem 0 0; font: italic 500 1.1rem/1.3 var(--f-display); letter-spacing: .04em; color: var(--c-muted); }
.mhg-closing__names { display: grid; margin: .2rem 0 0; font: 400 clamp(2.8rem, 12vw, 3.4rem)/1.3 var(--f-names); color: var(--c-accent); }
.mhg-closing__names .mhg-amp { font-size: .46em; line-height: 1.6; letter-spacing: .1em; }
.mhg-closing__tag { margin: .8rem 0 0; font-size: .95rem; color: var(--c-muted); }
/* Penyesuaian */
.mhg-story__item::before { width: 9px; height: 9px; background: radial-gradient(circle at 35% 35%, #fff, #EFE3D3); box-shadow: 0 0 0 1px #D3C1A9, 0 0 0 4px rgb(201 162 96 / .2); }
.mhg-photo { box-shadow: 0 10px 24px -14px rgb(60 40 20 / .5); }
.mhg .mhg-countdown .inv-countdown__cell {
    min-width: 3.7rem; padding: .7rem .2rem .55rem; border: 1.5px solid var(--mhg-silver); border-radius: 50%;
    background: #fff; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px color-mix(in srgb, var(--mhg-silver) 55%, transparent);
}
.mhg .inv-gift { background: linear-gradient(170deg, color-mix(in srgb, var(--c-accent) 88%, #fff), color-mix(in srgb, var(--c-accent) 72%, #2a1416)); box-shadow: inset 0 0 0 1px var(--mhg-silver), inset 0 0 0 6px color-mix(in srgb, var(--c-accent) 80%, #2a1416), inset 0 0 0 7px rgb(255 226 190 / .45), 0 0 40px -6px var(--mhg-glow); }
.mhg .inv-gift::before { background: radial-gradient(circle at 40% 40%, rgb(255 246 214 / .55), rgb(255 246 214 / .05) 70%); box-shadow: none; }
.mhg .inv-gift__account { color: #fff; }
.mhg .mhg-closing { margin-bottom: 46vh; }

.mhg .mhg-footer {
    position: relative; margin: 0 -1rem; padding: 1rem; border-radius: 1.25rem 1.25rem 0 0;
    background: rgb(72 54 58 / .85); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: rgb(255 251 244 / .85); font-size: .82rem; text-align: center;
}
.mhg .mhg-footer a { color: #fff; }

/* Musik, tombol QR, navigasi cepat */
.mhg .inv-music { background: var(--c-accent); }
.mhg .inv-checkin-btn { background: var(--c-accent); color: #fff; }
.mhg { --qn-bg: rgb(253 248 242 / .94); --qn-fg: var(--c-muted); --qn-active: var(--c-accent); }

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

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

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