/* =========================================================================
   Tema Antariksa — khitan: petualangan luar angkasa dari kertas.

   Titik tolaknya ilustrasi kertas bertekstur: langit malam biru tua
   bertabur bintang, planet bercincin & bulan sabit emas tergantung tali di
   bawah garis orbit, bingkai oval gading berlis emas ganda dikelilingi
   cincin orbit berbintang (diisi foto ananda), awan di kedua sisi, langit
   biru muda, roket putih-biru di permukaan bulan berkawah.

   Gagasan utama: ORBIT. Video lukisan (berulang) dipasang sebagai latar tetap; foto ananda
   mengisi bingkai oval; label, nama & tanggal di langit biru muda di
   bawahnya, lalu kapsul sapaan + tombol di atas permukaan bulan. Di isi:
   kartu gading berlis emas ganda, bermahkota medali oval bulan sabit yang
   dikelilingi orbit berbintang (::before); foto ananda & foto galeri pertama
   dalam oval tegak berlis emas; penanda judul = planet bercincin, bulan
   sabit & bintang tergantung di bawah garis orbit.

   Huruf memakai batas minimum yang sama dengan tema lain: tidak ada teks
   sampul di bawah ±12px, teks isi 15px.
   Warna: biru angkasa (utama), gading, emas, biru langit, biru tua malam.
   Huruf: Fredoka (nama), Fraunces (judul), Nunito (teks).
   ========================================================================= */

:root {
    --c-paper: #DCE5EE;
    --c-ink: #22344F;
    --c-accent: #2C4670;

    --c-muted: color-mix(in srgb, var(--c-ink) 74%, #fff);
    --c-rule: color-mix(in srgb, var(--atk-gold) 40%, #fff);
    --c-sunk: color-mix(in srgb, var(--atk-sky) 35%, #fff);
    --c-action: var(--c-accent);

    --f-names: 'Fredoka', system-ui, sans-serif;
    --f-display: 'Fraunces', Georgia, serif;
    --f-body: 'Nunito', system-ui, sans-serif;
    --f-script: var(--f-names);

    --atk-gold: #C49A55;     /* lis emas bingkai */
    --atk-gold-hi: #E3C27E;
    --atk-sky: #A9C1D9;      /* langit biru muda */
    --atk-night: #1E2F49;    /* langit malam */
    --atk-ivory: #FFFAF1;
    --atk-card: rgb(255 250 241 / .94);
    /* Rasio video 768 × 1366. Ponsel: video menutupi layar (sisi kiri-
       kanan terpotong sedikit). Layar lebar: utuh setinggi layar. */
    --atk-w: max(100vw, 100dvh * 0.5622);
    /* Sudut kartu: membulat lembut. */
    --atk-arch: 1.8rem;
}

@media (min-aspect-ratio: 3 / 4) {
    :root { --atk-w: calc(100dvh * 0.5622); }
}

body.inv.atk {
    background: var(--c-paper); color: var(--c-ink);
    font-family: var(--f-body); font-size: .95rem; line-height: 1.75;
}

.atk-amp { font-family: var(--f-display); font-style: italic; color: var(--atk-gold); }

/* ---------------------------------------------------------- latar tetap */

.atk-backdrop {
    position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
    background: var(--c-paper);
}
/* Sisi layar lebar: lukisan yang sama, diperbesar & dibuat buram. */
.atk-backdrop::before {
    content: ''; position: absolute; inset: -40px;
    background: var(--atk-blur) center / cover no-repeat;
    filter: blur(18px) saturate(.9); opacity: .85;
}
.atk-stage {
    position: absolute; left: 50%; top: 50%;
    width: var(--atk-w); aspect-ratio: 768 / 1366; transform: translate(-50%, -50%);
    box-shadow: 0 0 80px rgb(20 32 52 / .3);
}
/* Poster (bingkai pertama video) selalu ada; video memudar masuk di atasnya
   begitu mulai diputar. */
.atk-stage__poster, .atk-stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.atk-stage__video { opacity: 0; transition: opacity .8s ease; }
.atk-backdrop.is-live .atk-stage__video { opacity: 1; }
/* Foto ananda di dalam bingkai oval video (bagian dalam lis emas
   x 20,7–77,6%, y 18,4–59,2%; sedikit masuk supaya lisnya tetap utuh). */
.atk-stage__photo {
    position: absolute; left: 21%; width: 56.2%; top: 18.8%; height: 40%;
    border-radius: 50%; overflow: hidden; background: var(--c-sunk);
    box-shadow: inset 0 0 0 1px rgb(196 154 85 / .35);
    animation: atk-photo-in 1.4s var(--ease) both .1s;
}
.atk-stage__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@keyframes atk-photo-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

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

.atk .inv-cover.atk-cover { background: transparent; padding: 0; overflow: hidden; display: block; }
/* Bingkai sampul = ukuran & posisi lukisan, supaya persentase di bawah
   selalu menunjuk ke bagian lukisan yang sama. */
.atk-cover__frame {
    position: absolute; left: 50%; top: 50%;
    width: var(--atk-w); aspect-ratio: 768 / 1366; transform: translate(-50%, -50%);
    container-type: inline-size;
}
/* Tata letak sampul (persen ukuran lukisan): bagian dalam bingkai oval
   x 19,9–78,2%, y 17,9–59,2% (lis emas luar sampai ±61,3%) — diisi foto
   (lapisan latar). Di bawahnya: label (berjarak dari lis), nama & tanggal
   di langit biru muda, lalu kapsul sapaan + tombol di atas permukaan bulan.
   Kiri-kanan 20% supaya teks tidak menabrak ujung roket & awan. */
.atk-cover__text {
    position: absolute; left: 20%; right: 20%; top: 63.6%; height: 12.4%;
    display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: .6cqw;
    text-align: center; animation: atk-rise 1.6s var(--ease) both .2s;
    /* Cahaya lembut di belakang teks: tanggal panjang bisa menyentuh planet
       biru di kanan bawah — tetap terbaca. */
    background: radial-gradient(farthest-side, rgb(238 243 248 / .9) 60%, rgb(238 243 248 / 0));
}
@keyframes atk-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.atk-cover__label { margin: 0; font: 600 max(.86rem, 3.6cqw)/1.2 var(--f-display); letter-spacing: .06em; white-space: nowrap; color: #8A6A2F; }
.atk-cover__name {
    width: 100%; margin: 0;
    font: 600 10cqw/1.05 var(--f-names); color: var(--c-accent); text-wrap: balance; letter-spacing: .01em;
    text-shadow: 0 1px 0 rgb(255 255 255 / .6);
}
.atk-cover__date {
    margin: .4cqw 0 0; padding: .7cqw 3.4cqw; border-block: 1px solid color-mix(in srgb, var(--atk-gold) 65%, transparent);
    font: 600 max(.95rem, 4cqw)/1.2 var(--f-display); letter-spacing: .02em; white-space: nowrap; color: var(--c-ink);
    background: linear-gradient(90deg, rgb(238 243 248 / 0), rgb(238 243 248 / .88) 12% 88%, rgb(238 243 248 / 0));
}

/* Sapaan tamu tepat di atas tombol, dalam kapsul gading supaya terbaca di
   atas pegunungan & permukaan bulan — mudah dijangkau ibu jari. */
.atk-cover__foot {
    position: absolute; left: 18%; right: 18%; top: 77.2%;
    display: grid; justify-items: center; padding: 2.2cqw 4cqw 2.8cqw; text-align: center;
    border-radius: 5cqw;
    background: rgb(255 249 241 / .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--atk-gold) 70%, transparent), 0 0 0 4px rgb(255 250 241 / .55), 0 0 0 5px color-mix(in srgb, var(--atk-gold) 45%, transparent), 0 10px 22px -12px rgb(20 32 52 / .5);
    animation: atk-rise 1.6s var(--ease) both .5s;
}
.atk-cover__to { margin: 0; font-size: max(.8rem, 3.1cqw); line-height: 1.3; white-space: nowrap; color: var(--c-muted); }
.atk-cover__guest {
    max-width: 100%; margin: .1rem 0 0;
    font: 600 max(1.1rem, 4.9cqw)/1.15 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) {
    .atk-cover__foot { left: 13%; right: 13%; }
}
.atk-open {
    margin-top: max(.55rem, 2cqw); padding: .9rem 2rem; border: 0; border-radius: 999px;
    background: var(--c-accent); color: var(--atk-ivory);
    font: 700 .95rem/1 var(--f-body); letter-spacing: .02em; cursor: pointer;
    box-shadow: 0 0 0 4px rgb(255 250 243 / .85), 0 0 0 5px color-mix(in srgb, var(--atk-gold) 75%, transparent), 0 12px 24px -12px rgb(20 32 52 / .55);
    transition: background .25s ease;
}
.atk-open:hover { background: var(--c-ink); }
.atk-open:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 6px; }

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

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

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

/* Kartu gading bersudut lembut berlis emas ganda (::after), seperti
   bingkai oval di lukisan; bermahkota medali oval bulan sabit yang
   dikelilingi orbit berbintang (::before). */
.atk .inv-section {
    position: relative; margin: 3.2rem 0 16vh; padding: 4.2rem 1.5rem 2.6rem;
    border: 1.5px solid var(--atk-gold); border-radius: var(--atk-arch);
    background: var(--atk-card); text-align: center;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    box-shadow: 0 22px 44px -28px rgb(20 32 52 / .6);
}
.atk .inv-section::after {
    content: ''; position: absolute; inset: 7px; pointer-events: none;
    border: 1px solid color-mix(in srgb, var(--atk-gold) 70%, transparent); border-radius: calc(var(--atk-arch) - 5px);
}
.atk .inv-section::before {
    /* Di atas garis lis dalam (::after) yang melintas di tepi atas kartu. */
    content: ''; position: absolute; z-index: 1; pointer-events: none;
    left: 50%; top: -2.8rem; width: 8.4rem; height: 5.4rem; transform: translateX(-50%);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 110 70'%3E%3Cellipse cx='55' cy='37' rx='51' ry='15' fill='none' stroke='%23C49A55' stroke-width='.9' transform='rotate(-9 55 37)'/%3E%3Cellipse cx='55' cy='35' rx='27' ry='31' fill='%23FFFAF1' stroke='%23C49A55' stroke-width='1.6'/%3E%3Cellipse cx='55' cy='35' rx='22.5' ry='26.5' fill='none' stroke='%23C49A55' stroke-width='.7'/%3E%3Cpath d='M58 20a14.5 14.5 0 1 0 10.6 23 11.8 11.8 0 1 1-10.6-23z' fill='%23EBD5A0' stroke='%23B98A45' stroke-width='.9'/%3E%3Ccircle cx='50' cy='30' r='1.3' fill='%23D9C08A'/%3E%3Ccircle cx='47' cy='41' r='1.8' fill='%23D9C08A'/%3E%3Cpolygon points='9.0,38.0 10.6,41.8 14.7,42.1 11.6,44.8 12.5,48.9 9.0,46.7 5.5,48.9 6.4,44.8 3.3,42.1 7.4,41.8' fill='%23E3C27E' stroke='%23B98A45' stroke-width='.7'/%3E%3Cpolygon points='101.0,22.0 102.6,25.8 106.7,26.1 103.6,28.8 104.5,32.9 101.0,30.7 97.5,32.9 98.4,28.8 95.3,26.1 99.4,25.8' fill='%23E3C27E' stroke='%23B98A45' stroke-width='.7'/%3E%3Cpolygon points='80.0,54.4 81.0,56.7 83.4,56.9 81.5,58.5 82.1,60.9 80.0,59.6 77.9,60.9 78.5,58.5 76.6,56.9 79.0,56.7' fill='%23E3C27E' stroke='%23B98A45' stroke-width='.7'/%3E%3Ccircle cx='26' cy='50' r='2.6' fill='%23D7B26B' stroke='%23B98A45' stroke-width='.6'/%3E%3Ccircle cx='86' cy='22' r='2' fill='%23D7B26B' stroke='%23B98A45' stroke-width='.6'/%3E%3C/svg%3E") center / contain no-repeat;
    filter: drop-shadow(0 3px 4px rgb(20 32 52 / .22));
}

.atk-head { margin-bottom: 1.4rem; text-align: center; }
.atk-head__mobile { display: block; width: 4.8rem; height: auto; margin: 0 auto .4rem; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.atk-head__orbit { stroke: var(--atk-gold); stroke-width: 1; }
.atk-head__bead { fill: #D7B26B; stroke: #B98A45; stroke-width: .6; }
.atk-head__string { stroke: var(--atk-gold); stroke-width: .7; }
.atk-head__planet { fill: #7E9DC0; stroke: #4F6F95; stroke-width: .8; }
.atk-head__band { stroke: #C9D8E8; stroke-width: 1.1; }
.atk-head__ring { stroke: var(--atk-gold); stroke-width: 1.4; }
.atk-head__moon { fill: #EBD5A0; stroke: #B98A45; stroke-width: 1; }
.atk-head__star { fill: #E3C27E; stroke: #B98A45; stroke-width: .7; }
.atk-head__title { margin: 0; font: 600 clamp(1.7rem, 7.4vw, 2rem)/1.2 var(--f-display); color: var(--c-accent); }
.atk-head__lead { max-width: 22rem; margin: .5rem auto 0; color: var(--c-muted); }

/* Pembuka */
.atk .inv-bismillah { color: var(--c-accent); }
.atk-verse { margin: 0 0 1.4rem; }
.atk-verse__text { margin: 0; font: italic 500 1.2rem/1.65 var(--f-display); color: var(--c-ink); }
.atk-verse__source { margin-top: .5rem; font: 600 .98rem/1.3 var(--f-display); letter-spacing: .08em; color: #8A6A2F; }
.atk-lede { max-width: 23rem; margin: 0 auto; color: var(--c-muted); }

/* Ananda: foto dalam oval tegak berlis emas ganda */
.atk-arch-photo {
    width: min(12rem, 66%); aspect-ratio: .8; margin: 0 auto 1.4rem; padding: 5px;
    border-radius: 50%; border: 6px solid var(--atk-ivory);
    box-shadow: 0 0 0 1.5px var(--atk-gold), inset 0 0 0 1px var(--atk-gold), 0 16px 28px -18px rgb(20 32 52 / .55);
}
.atk-arch-photo img, .atk-arch-photo__initial {
    display: grid; place-items: center; width: 100%; height: 100%; object-fit: cover;
    border-radius: 50%; background: var(--c-sunk);
    font: 600 5rem/1 var(--f-names); color: var(--c-accent);
}
.atk-child__name { margin: 0; font: 600 clamp(2.3rem, 11vw, 2.7rem)/1.1 var(--f-names); color: var(--c-accent); overflow-wrap: break-word; }
.atk-child__full { margin: .4rem 0 0; font: 600 1.25rem/1.35 var(--f-display); color: var(--c-ink); text-wrap: balance; }
.atk-child__order { margin: .3rem 0 0; font-size: .95rem; color: var(--c-muted); }
.atk-child__bio { max-width: 22rem; margin: .8rem auto 0; font-size: .95rem; color: var(--c-muted); }

/* Orang tua */
.atk-parents__names { display: grid; gap: .1rem; }
.atk-parents__name { margin: 0; font: 600 1.35rem/1.4 var(--f-display); color: var(--c-ink); text-wrap: balance; }
.atk-parents__name span { display: block; font: 700 .82rem/1.6 var(--f-body); letter-spacing: .06em; color: var(--c-muted); }
.atk-parents__amp { margin: .3rem 0; font: italic 400 2rem/1 var(--f-display); color: var(--atk-gold); }

/* Hitung mundur: angka di dalam lingkaran kecil berlis emas */
.atk-countdown { display: flex; justify-content: center; gap: .55rem; margin: 0 auto 2rem; }
.atk .atk-countdown .inv-countdown__cell {
    display: grid; justify-items: center; align-content: center; gap: .1rem; min-width: 3.9rem; padding: 1rem .3rem .9rem;
    border: 1px solid color-mix(in srgb, var(--atk-gold) 75%, transparent); border-radius: 50%;
    background: rgb(255 255 255 / .65);
    box-shadow: inset 0 0 0 3px rgb(255 255 255 / .6), inset 0 0 0 4px color-mix(in srgb, var(--atk-gold) 45%, transparent);
}
.atk .atk-countdown b { font: 600 1.6rem/1 var(--f-display); color: var(--c-accent); }
.atk .atk-countdown span { font-size: .74rem; letter-spacing: .02em; text-transform: none; color: var(--c-muted); }

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

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

/* Galeri (markup _base): foto pertama dalam oval tegak besar */
.atk .inv-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem; }
.atk .inv-gallery__cell { padding: 0; border: 0; border-radius: .8rem; aspect-ratio: 3 / 4; overflow: hidden; background: var(--c-sunk); cursor: zoom-in; }
.atk .inv-gallery__cell:first-child {
    grid-column: 1 / -1; width: 70%; aspect-ratio: .8; margin: .4rem auto 1rem; border-radius: 50%;
    box-shadow: 0 0 0 1px var(--atk-gold), 0 0 0 7px var(--atk-ivory), 0 0 0 8.5px var(--atk-gold), 0 16px 28px -18px rgb(20 32 52 / .55);
}
.atk .inv-gallery__cell img { width: 100%; height: 100%; object-fit: cover; }

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

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

/* Hadiah: kartu biru malam bersudut lembut, bertabur bintang emas samar */
.atk .inv-gifts { display: grid; gap: 1rem; }
.atk .inv-gift {
    position: relative; overflow: hidden; isolation: isolate; padding: 2.6rem 1.5rem 1.8rem;
    border: 0; border-radius: 1.4rem; text-align: center; color: var(--atk-ivory);
    background: linear-gradient(170deg, color-mix(in srgb, var(--c-accent) 88%, #fff), color-mix(in srgb, var(--c-accent) 70%, #0d1626));
    box-shadow: 0 0 0 5px var(--atk-ivory), 0 0 0 6px color-mix(in srgb, var(--atk-gold) 70%, transparent);
    outline: 1px solid rgb(230 206 151 / .65); outline-offset: -8px;
}
.atk .inv-gift::before {
    content: ''; position: absolute; z-index: -1; inset: 0;
    background:
        radial-gradient(circle at 80% 24%, rgb(230 206 151 / .55) 0 1.5px, transparent 2px),
        radial-gradient(circle at 70% 78%, rgb(230 206 151 / .45) 0 1.2px, transparent 1.7px),
        radial-gradient(60% 40% at 50% 0, rgb(253 249 241 / .14), transparent 70%),
        radial-gradient(circle at 18% 30%, rgb(230 206 151 / .5) 0 1.5px, transparent 2px),
        radial-gradient(circle at 26% 70%, rgb(230 206 151 / .5) 0 1.5px, transparent 2px);
}
.atk .inv-gift__logo { max-height: 1.6rem; margin-inline: auto; filter: brightness(0) invert(1); opacity: .9; }
.atk .inv-gift__label { font-size: .95rem; letter-spacing: .01em; text-transform: none; color: rgb(253 249 241 / .85); }
.atk .inv-gift__account { font: 600 1.75rem/1.3 var(--f-display); letter-spacing: .06em; color: #fff; }
.atk .inv-gift__holder, .atk .inv-gift__address { font-size: .95rem; color: rgb(253 249 241 / .9); }
.atk .inv-gift .inv-btn--ghost { margin-top: 1rem; background: transparent; border-color: rgb(230 206 151 / .75); color: #fff; }
.atk .inv-gift__qr { display: block; max-width: 12rem; margin: .75rem auto 0; padding: .5rem; background: #fff; border-radius: .5rem; }

/* Penutup */
.atk .atk-closing { margin-bottom: 48vh; }
.atk-closing__text { max-width: 22rem; margin: 0 auto; color: var(--c-muted); }
.atk-closing__salutation { margin: 1.5rem 0 0; font: italic 500 1.05rem/1.3 var(--f-display); color: var(--c-muted); }
.atk-closing__names { display: grid; margin: .5rem 0 0; font: 600 1.35rem/1.4 var(--f-display); color: var(--c-accent); text-wrap: balance; }
.atk-closing__names .atk-amp { font-size: 1.8rem; line-height: 1.1; }
.atk-closing__tag { margin: .8rem 0 0; font-size: .95rem; color: var(--c-muted); }

.atk .atk-footer {
    position: relative; margin: 0 -1.25rem; padding: 1rem; border-radius: 1.25rem 1.25rem 0 0;
    background: rgb(30 47 73 / .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    color: rgb(253 249 241 / .85); font-size: .82rem; text-align: center;
}
.atk .atk-footer a { color: #fff; }

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

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

@media (min-width: 900px) {
    .atk .inv-cover.atk-cover { left: 0; right: 0; width: auto; }
}

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

/* ------------------------------------------------- HP: bilah alamat menyusut
   Di HP, bilah alamat menutup sendiri saat digulir → tinggi layar berubah →
   latar fixed ikut berubah ukuran ("melompat").

   Sebelum dibuka: tinggi layar saat ini (dvh), supaya teks sampul tetap sejajar
   dengan bingkai lukisan. Setelah dibuka: tinggi TERBESAR (lvh) yang tetap —
   bergeser halus sekali saat sampul memudar, lalu tidak berubah lagi. */
@supports (height: 100lvh) {
    .atk-backdrop { bottom: auto; height: 100dvh; transition: height .7s ease; }
    .atk-stage { transition: width .7s ease; }
    body.inv.is-open .atk-backdrop { height: 100lvh; }
    body.inv.is-open { --atk-w: max(100vw, 100lvh * 0.5622); }
    @media (min-aspect-ratio: 3 / 4) { body.inv.is-open { --atk-w: calc(100lvh * 0.5622); } }
}
