/* =========================================================================
   Tema Tearose — mawar teh dan nyala lilin di dinding krem. (Exclusive)

   Titik tolaknya video: dinding krem hangat, mawar persik yang merambat
   dari sudut-sudut layar, dan lilin menyala di bagian bawah.

   Gagasan utama: KERTAS KREM & NYALA LILIN. Sampul menaruh teks langsung
   di dinding krem (tanpa panel) dengan cahaya lilin berkedip dan bara emas
   yang naik pelan. Isi undangan berupa kartu kertas krem yang "ditempel"
   dengan pita perekat persik di tepi atasnya; penanda kecilnya lilin
   bernyala (hiasan judul, penanda cerita) dan SEGEL LILIN merah mawar
   bercap mawar (hitung mundur, penanda acara, lencana foto mempelai).
   Penutup = ruang cokelat tua yang diterangi lilin, berakhir di potongan
   lilin & mawar dari video.
   Warna: mawar-cokelat (utama), emas-lilin, persik-mawar teh, krem, cokelat tua.
   Huruf: Italianno (nama), Bodoni Moda (judul), Cormorant (kutipan), Jost (teks).
   ========================================================================= */

:root {
    --c-paper: #F8EFE3;
    --c-ink: #3B2620;
    --c-accent: #9A5548;

    --c-muted: color-mix(in srgb, var(--c-ink) 70%, var(--c-paper));
    --c-rule: color-mix(in srgb, var(--c-accent) 16%, var(--c-paper));
    --c-sunk: color-mix(in srgb, var(--c-accent) 6%, var(--c-paper));
    --c-action: var(--c-accent);

    --f-display: 'Bodoni Moda', 'Playfair Display', Georgia, serif;
    --f-names: 'Italianno', 'Great Vibes', cursive;
    --f-quote: 'Cormorant Garamond', Georgia, serif;
    --f-body: 'Jost', system-ui, sans-serif;
    --f-script: var(--f-names);

    --trs-glow: #F0C27B;
    --trs-gold: #C69A5B;
    --trs-cream: #FFFAF2;
    --trs-peach: #EBC3A5;
    --trs-wax: #9A4A45;
    --trs-night: #2E1D17;
    --trs-night-2: #4A2E24;

    --trs-card: rgb(255 250 243 / .9);
    --trs-line: color-mix(in srgb, var(--trs-gold) 40%, transparent);
    --trs-gold-grad: linear-gradient(180deg, #f6dca6 0%, #c69a5b 100%);
    --trs-wax-grad: radial-gradient(circle at 34% 28%, #c66e63 0, #9a4a45 55%, #6c2e2d 100%);

    /* Mawar bergulung (krem di atas segel merah), dan nyala lilin. */
    --trs-rose: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9.5' fill='%23F6DFC9'/%3E%3Cpath d='M12 12c1.6-2 4.4-.8 4.2 1.8-.2 2.8-4.3 4.2-7 1.9C6.3 13 7.4 7.6 12 7.2c4.9-.4 8.2 3.7 6.7 7.6' fill='none' stroke='%23B97A5A' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
    --trs-flame-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c4.4 5.2 6.4 8.4 6.4 12.4a6.4 6.4 0 0 1-12.8 0c0-2.7 1.1-4.4 2.7-6.4.5 1.6 1.6 2.2 2.4 2.2C10.4 7.6 10.4 4.6 12 1.5z' fill='%23F4B94F'/%3E%3Cpath d='M12 11c2.2 2.6 3.2 4.3 3.2 6.2a3.2 3.2 0 0 1-6.4 0c0-1.5.8-2.6 1.9-3.9.4.9 1 1.1 1.3 1.1-.2-1.3-.2-2.4 0-3.4z' fill='%23FFF0C2'/%3E%3C/svg%3E");
}

body.inv.trs {
    color: var(--c-ink);
    font-family: var(--f-body);
    font-size: .95rem;
    line-height: 1.8;
    background:
        radial-gradient(ellipse 90% 22% at 50% 0, rgb(236 205 180 / .5), transparent 72%),
        radial-gradient(ellipse 80% 24% at 50% 100%, rgb(240 190 130 / .42), transparent 72%),
        var(--c-paper);
    background-attachment: fixed;
}

/* Nama pasangan tersusun: nama · & · nama */
.trs .trs-names { display: grid; justify-items: center; align-content: center; max-width: 100%; margin: 0; font: 400 4.8rem/1.02 var(--f-names); }
.trs .trs-name { display: block; max-width: 100%; padding: .04em .14em; overflow-wrap: anywhere; color: var(--c-accent); }
.trs .trs-amp { display: flex; align-items: center; gap: .8rem; width: min(12rem, 70%); margin: 0; }
.trs .trs-amp i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--trs-gold)); }
.trs .trs-amp i:last-child { background: linear-gradient(270deg, transparent, var(--trs-gold)); }
.trs .trs-amp em { color: var(--trs-gold); font: 400 2.2rem/1 var(--f-names); }

/* Nyala lilin bergoyang (dipakai di hiasan judul & sampul). */
.trs-flame { transform-origin: 60px 11px; animation: trs-flick 2.8s ease-in-out infinite; }
.trs-flame-glow { transform-origin: 60px 8px; animation: trs-pulse 2.8s ease-in-out infinite; }
@keyframes trs-flick {
    0%, 100% { transform: scale(1, 1) rotate(0); }
    22% { transform: scale(.93, 1.07) rotate(-2.4deg); }
    47% { transform: scale(1.04, .95) rotate(1.8deg); }
    71% { transform: scale(.96, 1.05) rotate(-1.2deg); }
}
@keyframes trs-pulse { 0%, 100% { opacity: .38; } 35% { opacity: .22; } 62% { opacity: .46; } }

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

.trs .inv-cover.trs-cover { padding: 0; display: block; overflow: hidden; background: var(--trs-night); }

/* Panggung 4:7 (sama dengan video) selalu MENUTUPI layar — teks (cqw/%)
   tetap di tengah dinding krem, di atas lilin, di ukuran layar apa pun. */
.trs-stage {
    position: absolute; left: 50%; top: 50%;
    width: max(100vw, 100dvh * 4 / 7); aspect-ratio: 4 / 7;
    transform: translate(-50%, -50%);
    container-type: inline-size;
}
.trs-stage__poster, .trs-stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trs-stage.is-playing .trs-stage__poster { opacity: 0; }

/* Cahaya hangat di dua lilin (kiri-bawah & kanan-bawah), berkedip tidak
   serempak. mix-blend screen supaya cahaya "menambah terang", bukan menutup. */
.trs-glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.trs-glow i {
    position: absolute; width: 62cqw; aspect-ratio: 1; border-radius: 50%; mix-blend-mode: screen;
    background: radial-gradient(circle, rgb(255 196 120 / .55) 0, rgb(255 170 90 / .22) 38%, transparent 68%);
    animation: trs-glow 3.4s ease-in-out infinite;
}
.trs-glow i:nth-child(1) { left: -12cqw; top: 80%; }
.trs-glow i:nth-child(2) { left: 52cqw; top: 79%; animation-duration: 4.1s; animation-delay: -1.3s; }
@keyframes trs-glow {
    0%, 100% { opacity: .7; transform: scale(1); }
    18% { opacity: .95; transform: scale(1.05); }
    41% { opacity: .55; transform: scale(.97); }
    66% { opacity: .9; transform: scale(1.03); }
    84% { opacity: .62; transform: scale(.99); }
}

/* Bara emas: naik dari lilin, berayun, memudar. --x posisi mendatar awal,
   --t lama naik, --w jeda awal, --sw ayunan, --s ukuran. */
.trs-embers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.trs-embers i {
    position: absolute; top: 90%; left: var(--x); width: var(--s, 1cqw); aspect-ratio: 1; border-radius: 50%; opacity: 0;
    background: #fff1c4; box-shadow: 0 0 1.4cqw .5cqw rgb(255 190 100 / .8);
    animation: trs-rise var(--t, 12s) ease-out infinite; animation-delay: var(--w, 0s);
}
.trs-embers i:nth-child(1) { --x: 20%; --t: 11s; --w: 1s;  --sw: 8cqw;  --s: 1cqw; }
.trs-embers i:nth-child(2) { --x: 24%; --t: 14s; --w: 5s;  --sw: -6cqw; --s: .7cqw; }
.trs-embers i:nth-child(3) { --x: 16%; --t: 12s; --w: 9s;  --sw: 5cqw;  --s: .9cqw; }
.trs-embers i:nth-child(4) { --x: 74%; --t: 13s; --w: 2.5s; --sw: -8cqw; --s: 1cqw; }
.trs-embers i:nth-child(5) { --x: 70%; --t: 11s; --w: 7s;  --sw: 6cqw;  --s: .8cqw; }
.trs-embers i:nth-child(6) { --x: 78%; --t: 15s; --w: 11s; --sw: -5cqw; --s: .7cqw; }
.trs-embers i:nth-child(7) { --x: 22%; --t: 16s; --w: 13s; --sw: -7cqw; --s: .6cqw; }
.trs-embers i:nth-child(8) { --x: 72%; --t: 14s; --w: 15s; --sw: 7cqw;  --s: .6cqw; }
@keyframes trs-rise {
    0%   { opacity: 0; transform: translate(0, 0) scale(1); }
    10%  { opacity: .95; }
    55%  { opacity: .7; transform: translate(var(--sw), -52cqw) scale(.9); }
    100% { opacity: 0; transform: translate(calc(var(--sw) * -.5), -108cqw) scale(.4); }
}

.trs-cover__text {
    position: absolute; top: 13%; bottom: 21%; left: 19cqw; right: 19cqw;
    display: flex; flex-direction: column; align-items: center; justify-content: safe center; gap: .6cqw;
    text-align: center; color: var(--c-ink);
    animation: trs-rise-in 1.2s var(--ease) both;
}
.trs-stage.is-playing .trs-cover__text { animation-delay: 2.6s; }
@keyframes trs-rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.trs-cover__candle { width: 26cqw; height: auto; margin-bottom: .4cqw; }
.trs-cover__label { margin: 0; font: 500 2.5cqw/1.2 var(--f-body); letter-spacing: .36em; text-transform: uppercase; color: #8c6428; }
.trs-cover__names { font-size: 18cqw; margin-top: .6cqw; text-shadow: 0 0 3cqw rgb(255 248 236 / .85); }
.trs-cover__names .trs-amp { margin: -1.4cqw 0; gap: 3cqw; }
.trs-cover__names .trs-amp em { font-size: 8.4cqw; line-height: .8; }
.trs-cover__date {
    display: flex; align-items: center; gap: 2cqw; margin: 1.2cqw 0 0; white-space: nowrap;
    font: 400 3.8cqw/1.25 var(--f-display); letter-spacing: .06em; color: var(--c-ink); text-shadow: 0 0 2cqw rgb(255 248 236 / .9);
}
.trs-cover__date::before, .trs-cover__date::after { content: ''; width: 4.5cqw; height: 1px; background: linear-gradient(90deg, transparent, var(--trs-gold)); }
.trs-cover__date::after { background: linear-gradient(270deg, transparent, var(--trs-gold)); }
.trs-cover__to { margin: 1.8cqw 0 0; }
.trs-cover__to p { margin: 0; font-size: 2.6cqw; line-height: 1.35; color: color-mix(in srgb, var(--c-ink) 80%, transparent); }
.trs-cover__guest { margin-top: .4cqw !important; font: 400 4.8cqw/1.2 var(--f-display) !important; color: var(--c-ink) !important; overflow-wrap: anywhere; }

.trs-open {
    margin-top: 2cqw; padding: 2.5cqw 7cqw; border: 1px solid #6c2e2d; border-radius: 999px;
    background: var(--trs-wax-grad); color: #fff3e4; font: 600 2.8cqw/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; cursor: pointer;
    box-shadow: 0 0 0 1cqw rgb(198 154 91 / .22), 0 2.6cqw 4.6cqw -2.4cqw rgb(80 30 28 / .8), inset 0 1px 0 rgb(255 255 255 / .22);
    transition: transform .25s ease, box-shadow .25s ease;
}
.trs-open:hover { transform: translateY(-2px); box-shadow: 0 0 0 1cqw rgb(198 154 91 / .42), 0 3cqw 5cqw -2.4cqw rgb(80 30 28 / .9), inset 0 1px 0 rgb(255 255 255 / .22); }
.trs-open:focus-visible { outline: 2px solid var(--trs-gold); outline-offset: 4px; }

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

.trs-frame { position: relative; }
.trs-roses {
    display: block; width: 100%; max-width: 34rem; height: 10rem; margin: 0 auto -3.2rem; object-fit: cover; object-position: top;
    -webkit-mask-image: linear-gradient(#000 40%, transparent);
            mask-image: linear-gradient(#000 40%, transparent);
}
.trs .inv__main { position: relative; max-width: 34rem; padding-inline: 1.25rem; }

/* Kartu kertas krem, "ditempel" pita perekat persik di tepi atas */
.trs .inv-section {
    position: relative; margin: 0 0 1.9rem; padding: 3.4rem 1.6rem 3rem; text-align: center;
    border: 1px solid var(--trs-line); border-radius: .7rem; border-bottom: 1px solid var(--trs-line);
    background: linear-gradient(180deg, rgb(255 252 246 / .95), var(--trs-card));
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    box-shadow: 0 22px 40px -30px rgb(90 52 36 / .55), 0 2px 0 rgb(255 255 255 / .8) inset;
}
.trs .inv-section:not(.trs-closing)::before {
    content: ''; position: absolute; top: -.8rem; left: 50%; width: 6.4rem; height: 1.6rem; margin-left: -3.2rem; transform: rotate(-1.6deg);
    background: repeating-linear-gradient(90deg, rgb(255 255 255 / .16) 0 .35rem, transparent .35rem .7rem), rgb(228 184 156 / .72);
    clip-path: polygon(0 0, 3% 12%, 0 25%, 3% 38%, 0 50%, 3% 62%, 0 75%, 3% 88%, 0 100%, 100% 100%, 97% 88%, 100% 75%, 97% 62%, 100% 50%, 97% 38%, 100% 25%, 97% 12%, 100% 0);
    box-shadow: 0 1px 2px rgb(90 52 36 / .25);
}
.trs .inv-section:nth-child(even):not(.trs-closing)::before { transform: rotate(1.4deg); }

.trs-candleline, .trs .trs-candleline { display: block; margin: 0 auto .9rem; }
.trs-head { margin-bottom: 2.2rem; text-align: center; }
.trs-head__title { margin: 0; font: 400 clamp(1.7rem, 7.4vw, 2.1rem)/1.2 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--c-ink); }
.trs-head__lead { max-width: 24rem; margin: .9rem auto 0; color: var(--c-muted); }

/* Pembuka */
.trs .inv-bismillah { color: var(--c-accent); }
.trs-verse { margin: 0 0 1.9rem; padding: 1.4rem 0 1.5rem; border-block: 1px solid var(--trs-line); }
.trs-verse__text { margin: 0; font: 500 1.36rem/1.6 var(--f-quote); font-style: italic; color: var(--c-ink); }
.trs-verse__source { margin-top: .8rem; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #8c6428; }
.trs-lede { max-width: 25rem; margin: 0 auto; color: var(--c-muted); }

/* Mempelai: oval bercincin emas + cincin titik + segel mawar */
.trs-couple__grid { display: grid; gap: .5rem; }
.trs-couple__amp { margin: .3rem 0; font: 400 3.8rem/1.1 var(--f-names); color: var(--trs-gold); }
.trs-person { display: grid; justify-items: center; }
.trs-photo {
    position: relative; width: 10.2rem; aspect-ratio: 4 / 5; margin: 1.4rem 0 1.9rem; padding: 5px;
    border-radius: 50%; background: var(--trs-gold-grad);
    box-shadow: 0 0 0 .4rem rgb(255 250 243 / .9), 0 0 0 calc(.4rem + 1px) var(--trs-line), 0 18px 32px -16px rgb(90 52 36 / .55);
}
.trs-photo__halo { position: absolute; inset: -1rem; border: 2px dotted color-mix(in srgb, var(--trs-gold) 75%, transparent); border-radius: 50%; pointer-events: none; }
.trs-photo__badge {
    position: absolute; bottom: 1rem; right: -.6rem; width: 2.5rem; aspect-ratio: 1; border-radius: 52% 48% 50% 50% / 50% 52% 48% 50%;
    background: var(--trs-rose) center / 66% no-repeat, var(--trs-wax-grad);
    box-shadow: inset 0 0 0 .2rem rgb(108 46 45 / .55), 0 6px 12px -4px rgb(80 30 28 / .6);
}
.trs-photo img, .trs-photo__initial { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.trs-photo__initial {
    display: grid; place-items: center; font: 400 5.6rem/1 var(--f-names); color: var(--c-accent);
    background: radial-gradient(ellipse 80% 60% at 30% 20%, #fff6ea, transparent 70%), linear-gradient(180deg, #f4dcc6, #ebc3a5);
}
.trs-person__name { margin: 0; font: 400 3rem/1.15 var(--f-names); color: var(--c-accent); }
.trs-person__family { margin: .5rem 0 0; font-size: .9rem; color: var(--c-muted); }
.trs-person__bio { max-width: 22rem; margin: .7rem 0 0; font-size: .9rem; color: var(--c-muted); }
.trs-person__ig { margin-top: .7rem; color: var(--c-accent); font-size: .84rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--trs-line); }

/* Hitung mundur: empat segel lilin */
.trs-countdown { display: flex; justify-content: center; gap: .6rem; margin: 0 auto 2.6rem; }
.trs .trs-countdown .inv-countdown__cell {
    display: grid; place-content: center; gap: .05rem; width: 4.35rem; aspect-ratio: 1; min-width: 0; padding: 0; border: 0;
    border-radius: 52% 48% 50% 50% / 50% 52% 48% 50%; background: var(--trs-wax-grad);
    box-shadow: inset 0 0 0 .26rem rgb(108 46 45 / .55), inset 0 0 0 .32rem rgb(255 214 200 / .28), 0 12px 18px -8px rgb(80 30 28 / .6);
}
.trs .trs-countdown .inv-countdown__cell:nth-child(even) { border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%; }
.trs .trs-countdown b { font: 500 1.5rem/1 var(--f-display); color: #fff1e0; text-shadow: 0 1px 0 rgb(80 24 24 / .6); }
.trs .trs-countdown span { font-size: .58rem; text-transform: uppercase; letter-spacing: .1em; color: #f6d6c8; }

/* Acara */
.trs-events__list { display: grid; gap: 1.7rem; }
.trs-event {
    position: relative; padding: 3rem 1.4rem 1.8rem; border: 1px solid var(--trs-line); border-radius: .6rem;
    background: linear-gradient(180deg, rgb(244 222 204 / .7), rgb(255 255 255 / .8) 48%);
}
.trs-event::before {
    content: ''; position: absolute; top: -1.4rem; left: 50%; width: 2.8rem; aspect-ratio: 1; margin-left: -1.4rem; border-radius: 52% 48% 50% 50% / 50% 52% 48% 50%;
    background: var(--trs-rose) center / 66% no-repeat, var(--trs-wax-grad);
    box-shadow: inset 0 0 0 .22rem rgb(108 46 45 / .55), 0 6px 12px -4px rgb(80 30 28 / .6);
}
.trs-event.is-past { opacity: .55; }
.trs-event__title { margin: 0 0 .35rem; font: 400 2.7rem/1.15 var(--f-names); color: var(--c-accent); }
.trs-event__date { margin: 0; font: 500 1.12rem/1.4 var(--f-display); letter-spacing: .04em; }
.trs-event__time { margin: 0; color: var(--c-muted); letter-spacing: .04em; }
.trs-event__venue { margin: 1rem 0 0; font-weight: 600; }
.trs-event__address { margin: .1rem 0 0; font-size: .88rem; color: var(--c-muted); }
.trs-event__meta { margin: .4rem 0 0; font-size: .84rem; color: var(--c-muted); }
.trs-event__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.2rem; }
.trs-event__actions .inv-btn { flex: 1 1 8.5rem; text-align: center; }

/* Tombol */
.trs .inv-btn { border-radius: 999px; padding: .76rem 1.25rem; font: 600 .8rem/1.2 var(--f-body); letter-spacing: .04em; text-transform: none; }
.trs .inv-btn--solid { background: var(--c-accent); border-color: var(--c-accent); color: #fff; box-shadow: 0 10px 20px -12px color-mix(in srgb, var(--c-accent) 90%, transparent); }
.trs .inv-btn--ghost { background: rgb(255 255 255 / .6); border-color: color-mix(in srgb, var(--c-accent) 34%, transparent); color: var(--c-ink); }
.trs .inv-btn:hover { filter: none; background: var(--trs-night); border-color: var(--trs-night); color: #fff; }

/* Cerita: nyala lilin yang makin besar tiap babak, garis emas bertitik */
.trs-story__list { display: grid; gap: 2.2rem; margin: 0; padding: 0; list-style: none; }
.trs-story__item { display: grid; justify-items: center; }
.trs-story__item + .trs-story__item::before { content: ''; height: 2.6rem; margin: -1rem 0 .4rem; border-left: 1px dotted var(--trs-gold); }
.trs-story__flame {
    width: var(--s, 1.4rem); aspect-ratio: 1; margin-bottom: .5rem; background: var(--trs-flame-icon) center / contain no-repeat;
    filter: drop-shadow(0 0 .5rem rgb(244 185 79 / .85)); transform-origin: 50% 90%; animation: trs-flick 3s ease-in-out infinite;
}
.trs-story__item:nth-child(4n+2) .trs-story__flame { --s: 1.8rem; animation-delay: -.8s; }
.trs-story__item:nth-child(4n+3) .trs-story__flame { --s: 2.2rem; animation-delay: -1.6s; }
.trs-story__item:nth-child(4n) .trs-story__flame { --s: 2.6rem; animation-delay: -2.2s; }
.trs-story__period { margin: 0; font: 400 2.2rem/1.2 var(--f-names); color: var(--c-accent); }
.trs-story__title { margin: .1rem 0 0; font: 500 1.3rem/1.3 var(--f-display); letter-spacing: .04em; color: var(--c-ink); }
.trs-story__img { width: 100%; aspect-ratio: 4 / 3; margin-top: .9rem; object-fit: cover; border-radius: .5rem; box-shadow: 0 0 0 5px #fffaf2, 0 0 0 6px var(--trs-line), 0 16px 30px -18px rgb(90 52 36 / .55); }
.trs-story__text { max-width: 25rem; margin: .6rem 0 0; font-size: .9rem; color: var(--c-muted); }

/* Galeri (markup _base): pertama berbentuk oval bercincin emas */
.trs .inv-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.trs .inv-gallery__cell { padding: 0; border: 0; border-radius: .6rem; aspect-ratio: 3 / 4; overflow: hidden; background: var(--c-sunk); cursor: zoom-in; }
.trs .inv-gallery__cell:first-child { grid-column: 1 / -1; width: 70%; margin: .5rem auto 1rem; aspect-ratio: 4 / 5; border-radius: 50%; box-shadow: 0 0 0 3px var(--trs-gold), 0 0 0 .5rem rgb(255 250 243 / .9), 0 18px 32px -16px rgb(90 52 36 / .55); }
.trs .inv-gallery__cell img { width: 100%; height: 100%; object-fit: cover; }

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

/* Form RSVP & ucapan (markup _base) */
.trs .inv-form { gap: 1.3rem; text-align: left; }
.trs .inv-label { font-size: .82rem; font-weight: 600; letter-spacing: .03em; text-transform: none; color: var(--c-ink); }
.trs .inv-input { padding: .8rem 1rem; border: 1px solid var(--trs-line); border-radius: .7rem; background: rgb(255 255 255 / .92); font-size: .95rem; }
.trs .inv-input:focus, .trs .inv-input:focus-visible { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-accent) 16%, transparent); }
.trs .inv-choice { border-color: var(--trs-line); border-radius: .7rem; background: rgb(255 255 255 / .92); }
.trs .inv-choice:has(:checked) { border-color: var(--c-accent); background: color-mix(in srgb, var(--c-accent) 8%, #fff); color: var(--c-accent); }
.trs .inv-choice input { accent-color: var(--c-accent); }
.trs .inv-form .inv-btn--solid { width: 100%; padding-block: .95rem; }
.trs .inv-tally div { border: 1px solid var(--trs-line); border-radius: .7rem; background: rgb(255 255 255 / .8); }
.trs .inv-tally dd { font-family: var(--f-display); font-size: 1.9rem; color: var(--c-accent); }
.trs .inv-wish { padding: 1rem 1.1rem; border: 0; border-radius: .7rem; background: rgb(244 222 204 / .55); box-shadow: inset 3px 0 0 var(--trs-peach); text-align: left; }
.trs .inv-wish__name { font-weight: 600; color: var(--c-accent); }

/* Hadiah: kartu ruang cokelat diterangi lilin */
.trs .inv-gifts { display: grid; gap: 1rem; }
.trs .inv-gift {
    padding: 1.9rem 1.5rem; border: 0; border-radius: .9rem; text-align: center; color: #fff;
    background:
        radial-gradient(circle at 14% 16%, rgb(255 235 190 / .85) 0 1px, transparent 1.6px),
        radial-gradient(circle at 86% 22%, rgb(255 235 190 / .7) 0 1.2px, transparent 1.8px),
        radial-gradient(circle at 62% 12%, rgb(255 235 190 / .8) 0 1.1px, transparent 1.7px),
        radial-gradient(ellipse 80% 50% at 50% 112%, rgb(255 178 96 / .6), transparent 72%),
        linear-gradient(170deg, var(--trs-night), var(--trs-night-2));
    box-shadow: 0 22px 40px -26px rgb(46 29 23 / .9), inset 0 0 0 1px rgb(198 154 91 / .45);
}
.trs .inv-gift__logo { max-height: 1.6rem; margin-inline: auto; filter: brightness(0) invert(1); opacity: .92; }
.trs .inv-gift__label { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: #f1cf94; }
.trs .inv-gift__account { font: 500 1.7rem/1.3 var(--f-display); letter-spacing: .08em; color: #fff; text-shadow: 0 0 1rem rgb(255 190 110 / .4); }
.trs .inv-gift__holder, .trs .inv-gift__address { color: rgb(255 255 255 / .88); }
.trs .inv-gift .inv-btn--ghost { margin-top: 1rem; background: transparent; border-color: rgb(241 207 148 / .7); color: #fff; }
.trs .inv-gift .inv-btn--ghost:hover { background: rgb(255 255 255 / .16); border-color: #fff; }
.trs .inv-gift__qr { display: block; max-width: 12rem; margin: .75rem auto 0; padding: .5rem; background: #fff; border-radius: .6rem; }

/* Penutup: ruang cokelat tua diterangi lilin, berakhir di potongan lilin & mawar dari video */
.trs .trs-closing {
    margin: 2.2rem -1.25rem 0; padding: 3.5rem 1.6rem 0; overflow: hidden; color: #f3e4d6;
    border: 0; border-radius: 1.6rem 1.6rem 0 0; -webkit-backdrop-filter: none; backdrop-filter: none;
    background:
        radial-gradient(circle at 14% 10%, rgb(255 236 196 / .85) 0 1px, transparent 1.6px),
        radial-gradient(circle at 84% 8%, rgb(255 236 196 / .7) 0 1.2px, transparent 1.8px),
        radial-gradient(circle at 62% 17%, rgb(255 236 196 / .8) 0 1.1px, transparent 1.7px),
        radial-gradient(circle at 30% 6%, rgb(255 236 196 / .6) 0 1px, transparent 1.6px),
        radial-gradient(ellipse 80% 24% at 50% 100%, rgb(255 178 96 / .35), transparent 72%),
        linear-gradient(180deg, #2b1a14 0%, #4a2e24 40%, #8d6350 72%, #cdb7a3 100%);
    box-shadow: 0 -20px 50px -30px rgb(46 29 23 / .5);
}
.trs .trs-closing > * { position: relative; z-index: 1; }
.trs .trs-closing .trs-candleline { filter: drop-shadow(0 0 .7rem rgb(255 190 110 / .6)); }
.trs-closing__text { max-width: 24rem; margin: 0 auto; color: #f0dccb; }
.trs-closing__salutation { margin: 1.8rem 0 ; font: 400 .78rem/1.3 var(--f-body); letter-spacing: .3em; text-transform: uppercase; color: #f1cf94; }
.trs-closing__names { margin-top: .4rem; font-size: clamp(3.9rem, 17.5vw, 5rem); }
.trs .trs-closing .trs-name { background: var(--trs-gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; filter: drop-shadow(0 .04em .1em rgb(30 14 10 / .55)); }
.trs .trs-closing .trs-amp em { color: #f1cf94; }
.trs-closing__names .trs-amp em { font-size: 1.9rem; }
.trs-closing__tag { margin: 1rem 0 0; font-size: .86rem; letter-spacing: .1em; color: #f6e6d8; text-shadow: 0 1px 6px rgb(40 20 14 / .6); }
.trs .trs-candlesfoot {
    display: block; width: calc(100% + 3.2rem); max-width: none; height: auto; margin: 1.2rem -1.6rem 0;
    -webkit-mask-image: linear-gradient(transparent, #000 34%);
            mask-image: linear-gradient(transparent, #000 34%);
}
.trs .trs-footer { margin: 0 -1.25rem; padding: 1rem; background: #1d110d; color: rgb(255 255 255 / .7); font-size: .75rem; text-align: center; }
.trs .trs-footer a { color: #f6e6d8; }

/* Musik & tombol QR */
.trs .inv-music { background: var(--trs-wax); box-shadow: 0 0 1rem rgb(198 154 91 / .6); }
.trs .inv-checkin-btn { background: var(--trs-wax); color: #fff; }

/* Muncul halus saat digulir (kelas dipasang oleh theme.js). */
.trs .trs-reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.trs .trs-reveal.is-in { opacity: 1; transform: none; }

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

@media (min-width: 900px) {
    body.inv.trs { background: color-mix(in srgb, var(--c-paper) 80%, var(--trs-night)); }

    /* Sampul menutup SELURUH layar; panggung video berdiri di tengah di atas
       poster yang sama, diburamkan & digelapkan. */
    .trs .inv-cover.trs-cover { left: 0; right: 0; width: auto; isolation: isolate; }
    .trs .inv-cover.trs-cover::before {
        content: ''; position: absolute; inset: -40px; z-index: -1;
        background: url('opening-poster.jpg') center / cover; filter: blur(34px) brightness(.78) saturate(1.2);
    }
    .trs-stage { width: calc(100dvh * 4 / 7); height: 100dvh; aspect-ratio: auto; box-shadow: 0 0 80px -10px rgb(0 0 0 / .6); }

    .trs-frame { width: 34rem; margin: 0 auto; min-height: 100dvh; background: color-mix(in srgb, var(--c-paper) 92%, #fff); box-shadow: 0 0 70px -20px rgb(46 29 23 / .5); }
}

@media (prefers-reduced-motion: reduce) {
    .trs-cover__text { animation: none; }
    .trs-open { transition: none; }
    .trs-glow, .trs-embers { display: none; }
    .trs-flame, .trs-flame-glow, .trs-story__flame { animation: none; }
    .trs .trs-reveal { opacity: 1; transform: none; transition: none; }
}
