/* ═══════════════════════════════════════════════════════════════════
   RIMBA FAJAR — air terjun di hutan hujan tropis, dari fajar hingga senja
   Seluruh lanskap dilukis prosedural di kanvas (tebing bertekstur, daun
   monstera, pakis, anggrek bulan), lalu dihidupkan: air terjun, kabut,
   berkas cahaya, kupu-kupu, dan kunang-kunang.
   ═══════════════════════════════════════════════════════════════════ */
:root {
    --forest: #173226;
    --ink: #20372b;
    --text: #3d5246;
    --dim: #6f8276;
    --moss: #4f6b2f;
    --leaf: #3f8f42;
    --gold: #c9a45c;
    --gold-l: #ead39a;
    --mist: #f4f7f1;
    --water: #2f6f6a;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --script: 'Pinyon Script', 'Cormorant Garamond', cursive;
    --sans: 'Jost', system-ui, sans-serif;
    --arab: 'Amiri', serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --sky-a: #33406e;
    --sky-b: #c9879a;
    --sky-c: #f6c38f;
    --tint: #f2c6b6;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.7; color: var(--text);
    background: #24343a; overflow-x: hidden; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
body.no-scroll { overflow: hidden; height: 100svh; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
.ico { width: 1.1em; height: 1.1em; flex-shrink: 0; vertical-align: -.18em; }

/* ── SCENE (tetap di belakang) ───────────────────────────────────── */
.scene { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #24343a; }
.scene .sky { position: absolute; inset: 0; background: linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 38%, var(--sky-c) 62%, var(--sky-c) 100%); }
.scene .sun { position: absolute; left: 72%; top: 12%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 250, 225, 1) 0 18%, rgba(255, 228, 170, .75) 30%, rgba(255, 205, 140, .28) 52%, rgba(255, 190, 130, 0) 72%);
    transform: scale(3.2); opacity: var(--sun, 1); }
.dolly { position: absolute; inset: 0; transform-origin: 50% 40%; will-change: transform; }
.lyr { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }
.lyr canvas { position: absolute; left: 0; top: 0; display: block; }
/* ayunan daun (±--a selama --d) dijalankan dari scene.js via Web Animations agar ter-komposit */
.lyr.fol > canvas { transform-origin: var(--ox) var(--oy); transform: rotate(var(--r)); }
.scene .tint { position: absolute; inset: 0; background: var(--tint); mix-blend-mode: multiply; }
.scene .grain { position: absolute; inset: -50%; opacity: .06; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.scene .vig { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(8, 20, 14, .45) 100%); }
#fxAir { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ── HUD ────────────────────────────────────────────────────────── */
.music-toggle-btn {
    position: fixed; top: calc(14px + env(safe-area-inset-top)); right: 14px; z-index: 1000; width: 44px; height: 44px; padding: 0;
    border-radius: 50%; border: 1px solid rgba(234, 211, 154, .7); cursor: pointer; color: var(--gold-l);
    display: flex; align-items: center; justify-content: center;
    background: rgba(18, 38, 28, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5);
}
.music-toggle-btn svg { width: 17px; height: 17px; }
.music-toggle-btn.playing::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(234, 211, 154, .55); animation: ring 2.6s ease-out infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.45); opacity: 0; } }

.progress { position: fixed; left: 0; top: 0; right: 0; height: 2px; z-index: 950; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--leaf), var(--gold-l)); transform-origin: 0 50%; transform: scaleX(0); }

.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 9800; transform: translate(-50%, 24px);
    padding: 11px 20px; border-radius: 999px; background: rgba(18, 38, 28, .92); color: var(--mist); font-size: 14px; letter-spacing: .02em;
    border: 1px solid rgba(234, 211, 154, .4); opacity: 0; pointer-events: none; transition: all .5s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 26px; border-radius: 999px; cursor: pointer;
    font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
    color: #fffaf0; border: 1px solid rgba(234, 211, 154, .75);
    background: linear-gradient(135deg, #2e5a3a, #1c3d2a 60%, #2a5236);
    box-shadow: 0 12px 26px -12px rgba(10, 30, 20, .8), inset 0 1px 0 rgba(255, 255, 255, .18);
    transition: transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn.line { color: var(--forest); background: rgba(255, 255, 255, .5); border-color: rgba(63, 143, 66, .45); box-shadow: none; }
.btn.light { color: var(--mist); background: rgba(255, 255, 255, .08); border-color: rgba(234, 211, 154, .6); box-shadow: none; }
.btn.wide { width: 100%; }
.btn.loading { opacity: .65; pointer-events: none; }

/* ── COVER ──────────────────────────────────────────────────────── */
.cover { position: fixed; inset: 0; z-index: 2000; overflow: hidden; touch-action: none; cursor: grab; }
.cover.dragging { cursor: grabbing; }
.cv-leaves { position: absolute; inset: 0; }
.cv-leaves canvas { position: absolute; left: 0; top: 0; transform-origin: var(--ox) var(--oy); transform: rotate(var(--r)) translate(var(--tx, 0), var(--ty, 0)); will-change: transform; }
/* .sw: ayunan rotate ±--a dijalankan dari scene.js (Web Animations, ter-komposit) */
.cover.parting .cv-leaves canvas { animation: none; }
.cover.open .cv-leaves canvas { transition: transform 1.6s cubic-bezier(.6, .02, .2, 1), opacity 1.6s ease, filter 1.6s; opacity: 0; filter: blur(3px); }
.cv-shade { position: absolute; inset: 0; background: radial-gradient(90% 55% at 50% 52%, rgba(6, 18, 12, .62), rgba(6, 18, 12, .2) 70%, transparent); transition: opacity 1s; pointer-events: none; }
.cover.open .cv-shade { opacity: 0; }
.cv-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    padding: calc(28px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom)); color: var(--mist); transition: opacity .7s, transform 1s var(--ease); pointer-events: none; }
.cv-content > * { pointer-events: auto; }
.cover.open .cv-content { opacity: 0; transform: scale(1.06); }
.cv-lbl { margin: 0 0 14px; font-size: 11px; letter-spacing: .42em; text-transform: uppercase; color: var(--gold-l); text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.cv-names { margin: 0; font-family: var(--script); font-weight: 400; font-size: clamp(50px, 15vw, 82px); line-height: 1.05; color: #fffaf0;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .55), 0 1px 2px rgba(0, 0, 0, .4); }
.cv-names .amp { display: block; font-family: var(--serif); font-style: italic; font-size: .42em; color: var(--gold-l); margin: 2px 0 4px; }
.cv-date { margin: 14px 0 22px; font-family: var(--serif); font-size: 19px; letter-spacing: .2em; color: #f8efd8; text-shadow: 0 2px 12px rgba(0, 0, 0, .6); }
.cv-to { margin: 0 0 22px; padding: 14px 26px; border-radius: 18px; min-width: 220px; max-width: 320px;
    background: rgba(244, 247, 241, .14); border: 1px solid rgba(234, 211, 154, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cv-to span { display: block; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: rgba(244, 247, 241, .75); }
.cv-to b { display: block; margin-top: 2px; font-family: var(--serif); font-weight: 600; font-size: 22px; color: #fffaf0; word-break: break-word; }
.cv-hint { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font-size: 12.5px; letter-spacing: .06em; color: rgba(244, 247, 241, .85); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.cv-hint i { position: relative; width: 34px; height: 2px; background: rgba(234, 211, 154, .4); border-radius: 2px; overflow: hidden; }
.cv-hint i::after { content: ''; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: var(--gold-l); animation: swipe 1.8s ease-in-out infinite; }
/* left -40% → 100% sama dengan geser 140% lebar induk = 350% lebar sendiri (transform, tanpa layout) */
@keyframes swipe { to { transform: translateX(350%); } }
.cv-note { margin: 10px 0 0; font-size: 10.5px; color: rgba(244, 247, 241, .6); }

/* ── MAIN ───────────────────────────────────────────────────────── */
main { position: relative; z-index: 2; }
.hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center;
    padding: 0 18px calc(9svh + env(safe-area-inset-bottom)); color: var(--mist); position: relative; }
.hero::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 62svh; pointer-events: none;
    background: radial-gradient(80% 60% at 50% 72%, rgba(6, 22, 18, .55), transparent 72%); }
.hero > * { position: relative; }
.hero .orn-top { width: 150px; margin: 0 auto 4px; opacity: .95; }
.hero .lbl { color: var(--gold-l); }
.hero-names { margin: 0; font-family: var(--script); font-weight: 400; font-size: clamp(54px, 16vw, 96px); line-height: 1; color: #fffaf0; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.hero-names .amp { font-family: var(--serif); font-style: italic; font-size: .4em; color: var(--gold-l); padding: 0 .2em; }
.hero-date { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 16px 0 6px; font-family: var(--serif); font-size: 18px; letter-spacing: .14em; color: #f8efd8; }
.hero-date i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-l); }
.hero-place { margin: 0 0 22px; font-size: 13px; letter-spacing: .12em; color: rgba(244, 247, 241, .82); }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .4em; text-transform: uppercase; text-decoration: none; color: rgba(244, 247, 241, .8); }
.scroll-cue i { width: 1px; height: 42px; background: linear-gradient(rgba(234, 211, 154, .9), transparent); animation: drip 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.sec { position: relative; padding: 16vh 16px; display: flex; justify-content: center; }
.sec:first-of-type { padding-top: 10vh; }
.card {
    position: relative; width: 100%; max-width: 520px; padding: 38px 22px 32px; border-radius: 28px; overflow: hidden;
    background: linear-gradient(170deg, rgba(250, 252, 246, .9), rgba(238, 244, 234, .84));
    border: 1px solid rgba(255, 255, 255, .7);
    backdrop-filter: blur(10px) saturate(1.2); -webkit-backdrop-filter: blur(10px) saturate(1.2);
    box-shadow: 0 40px 70px -40px rgba(4, 18, 10, .85), 0 2px 0 rgba(255, 255, 255, .5) inset;
}
.card::after { content: ''; position: absolute; inset: -20%; pointer-events: none; mix-blend-mode: soft-light; opacity: .55;
    background:
        radial-gradient(12% 9% at 20% 30%, rgba(255, 240, 200, .9), transparent 70%),
        radial-gradient(9% 7% at 70% 18%, rgba(255, 240, 200, .8), transparent 70%),
        radial-gradient(14% 10% at 62% 70%, rgba(255, 240, 200, .7), transparent 70%),
        radial-gradient(8% 6% at 30% 82%, rgba(255, 240, 200, .8), transparent 70%);
    animation: dapple 14s ease-in-out infinite alternate; }
@keyframes dapple { from { transform: translate(-3%, -2%) rotate(0); } to { transform: translate(4%, 3%) rotate(4deg); } }
.card > * { position: relative; z-index: 1; }
.card.center { text-align: center; }
.card .orn-corner { position: absolute; z-index: 0; width: 150px; top: -26px; right: -34px; opacity: .9; transform: rotate(8deg); pointer-events: none; }
.card .orn-corner.l { right: auto; left: -40px; top: auto; bottom: -34px; transform: rotate(196deg); width: 140px; }

.sh { text-align: center; margin-bottom: 18px; }
.sh .orn-div { width: 130px; height: 34px; margin: 0 auto 6px; object-fit: contain; }
.sh-no { display: block; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--gold); letter-spacing: .1em; }
.lbl { margin: 0 0 8px; font-size: 11px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--moss); }
.ttl { margin: 0 0 14px; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 8.6vw, 40px); line-height: 1.12; color: var(--forest); }
.sub { margin: -8px 0 14px; font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--dim); }
.txt { margin: 0 0 16px; }
.txt.sm { font-size: 14px; }
.arabic { margin: 0 0 10px; font-family: var(--arab); font-size: 23px; line-height: 1.95; color: var(--forest); direction: rtl; }
.arabic.big { font-size: 27px; }

.ayat { margin: 22px 0 0; padding: 22px 18px; border-radius: 20px; background: rgba(255, 255, 255, .62); border: 1px solid rgba(63, 143, 66, .18); }
.ayat .arabic { font-size: 21px; }
.ayat blockquote { margin: 6px 0 10px; font-family: var(--serif); font-style: italic; font-size: 17.5px; line-height: 1.55; color: var(--ink); }
.ayat figcaption { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-weight: 500; }

/* mempelai */
.couple { display: grid; gap: 26px; }
.person { text-align: center; }
.portrait { position: relative; width: 170px; height: 214px; margin: 0 auto 16px; }
.portrait .frame { position: absolute; inset: 0; border-radius: 999px 999px 24px 24px; overflow: hidden; border: 5px solid rgba(255, 255, 255, .9);
    box-shadow: 0 24px 40px -22px rgba(10, 30, 20, .8); background: linear-gradient(170deg, #a8c9a0, #4d7c55); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait .ini { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--script); font-size: 86px; color: #fffaf0; text-shadow: 0 4px 20px rgba(0, 0, 0, .35); }
.portrait .p-orn { position: absolute; width: 104px; left: -70px; bottom: -26px; transform: rotate(-18deg); pointer-events: none; }
.portrait.b .p-orn { left: auto; right: -70px; transform: scaleX(-1) rotate(-12deg); }
.person h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 600; font-size: 27px; line-height: 1.15; color: var(--forest); }
.person .parent { margin: 0; font-size: 14.5px; }
.person .parent b { font-weight: 500; color: var(--ink); }
.couple .and { font-family: var(--script); font-size: 54px; line-height: 1; color: var(--gold); text-align: center; }

/* kisah */
.story { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; text-align: left; }
.story::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(var(--leaf), var(--gold-l), var(--water)); }
.story li { position: relative; padding: 0 0 22px; }
.story li:last-child { padding-bottom: 0; }
.story li::before { content: ''; position: absolute; left: -24px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #bfe3c2 40%, var(--leaf)); box-shadow: 0 0 0 4px rgba(63, 143, 66, .14); }
.story .lbl { margin-bottom: 2px; font-size: 10px; }
.story h3 { margin: 0 0 4px; font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--forest); }
.story p { margin: 0; font-size: 14.5px; }

/* countdown — batu sungai */
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 10px; }
.stone { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stone b { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 92px; aspect-ratio: 1.12;
    background-size: 100% 100%; background-repeat: no-repeat; background-color: transparent;
    font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 7.6vw, 34px); color: rgba(255, 255, 255, .94);
    text-shadow: 0 1px 0 rgba(0, 0, 0, .45), 0 0 12px rgba(0, 0, 0, .25); }
.stone b:not([style]) { border-radius: 48%; background: radial-gradient(circle at 35% 30%, #a9a597, #6d685c 60%, #4a463f); }
.stone b.tick { animation: tick .5s var(--ease); }
@keyframes tick { 0% { transform: translateY(0); } 35% { transform: translateY(-4px) scale(1.04); } 100% { transform: none; } }
.stone span { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }
.bigdate { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 9vw, 40px); letter-spacing: .1em; color: var(--forest); }

/* acara */
.events { display: grid; gap: 16px; }
.ev { padding: 22px 18px; border-radius: 22px; background: rgba(255, 255, 255, .66); border: 1px solid rgba(63, 143, 66, .18); text-align: left; }
.ev-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ev-ic { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold-l); background: linear-gradient(140deg, #2e5a3a, #173226); }
.ev-ic .ico { width: 22px; height: 22px; }
.ev h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 25px; color: var(--forest); line-height: 1.1; }
.ev .lbl { margin: 0; font-size: 10px; }
.ev dl { margin: 0 0 14px; display: grid; gap: 7px; }
.ev dl div { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.ev dt { color: var(--leaf); padding-top: 1px; }
.ev dd { margin: 0; }

/* lokasi */
.map-frame { position: relative; margin: 4px 0 16px; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; border: 4px solid rgba(255, 255, 255, .85); box-shadow: 0 20px 34px -24px rgba(10, 30, 20, .8); background: #dfe9da; }
.leaflet-map { width: 100%; height: 100%; }
.map-illu { display: block; width: 100%; height: 100%; position: relative; }
.map-illu svg { width: 100%; height: 100%; display: block; }
.mi-pin { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -100%); color: #b2463a; }
.mi-pin .ico { width: 40px; height: 40px; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .3)); }
.loc-name { margin: 0 0 4px; font-family: var(--serif); font-weight: 600; font-size: 23px; color: var(--forest); }
.rf-marker span { display: block; width: 32px; height: 32px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #2e5a3a; border: 3px solid var(--gold-l); box-shadow: 0 6px 12px rgba(0, 0, 0, .4); }

/* galeri */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gal-item { position: relative; padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: pointer; aspect-ratio: 3 / 4; background: #c9d8c3; box-shadow: 0 18px 28px -20px rgba(10, 30, 20, .8); }
.gal-item:nth-child(3n+1) { grid-column: span 2; aspect-ratio: 16 / 10; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gal-item:hover img { transform: scale(1.06); }
.gal-item::after { content: ''; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
    background: radial-gradient(30% 22% at 30% 20%, rgba(255, 240, 200, .8), transparent 70%), radial-gradient(26% 20% at 75% 70%, rgba(255, 240, 200, .6), transparent 70%);
    animation: dapple 11s ease-in-out infinite alternate; }
.gal-item .ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(160deg, #b9d3b0, #5f8f63); color: #fffaf0; font-family: var(--serif); font-style: italic; font-size: 16px; }
.gal-item .ph img { width: 70%; height: auto; object-fit: contain; transform: none !important; }

/* hadiah */
.gift-wrap { width: 100%; max-width: 1080px; margin: 14px auto 0; }
.gift-sec { flex-direction: column; align-items: center; }
.gift #gift-section { background: transparent !important; padding: 0 !important; font-family: var(--sans) !important; }
.gift #gift-section .gs-heading { display: none; }
.gift #gift-section .gs-card, .gift #gift-section .gs-bank-card { border-radius: 22px !important; border: 1px solid rgba(255, 255, 255, .7) !important;
    background: linear-gradient(170deg, rgba(250, 252, 246, .92), rgba(238, 244, 234, .88)) !important; box-shadow: 0 30px 50px -34px rgba(4, 18, 10, .85) !important; }
.gift #gift-section .gs-sbtn, .gift #gift-section .gs-btn-buy, .gift #gift-section .gs-bank-copy { border-radius: 999px !important; background: #2e5a3a !important; color: #fffaf0 !important; border: 0 !important; letter-spacing: .08em; }
.gift #gift-section .gs-price { color: #8a6a2c !important; }
.gift #gift-section .gs-name, .gift #gift-section .gs-bank-name-text, .gift #gift-section .gs-bank-holder { color: var(--forest) !important; }
.gift #gift-section .gs-dot.taken { background: var(--gold) !important; }
.gift .gs-wrap, .gift .gs-track, .gift .gs-bank-track { max-width: 1080px; margin-left: auto; margin-right: auto; }

/* rsvp */
.rsvp-form { text-align: left; }
.f-l { display: block; margin: 14px 0 6px; font-size: 11px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--moss); }
.f-in { width: 100%; padding: 13px 16px; border-radius: 16px; border: 1px solid rgba(63, 143, 66, .28); background: rgba(255, 255, 255, .78); color: var(--ink);
    font: inherit; font-weight: 400; font-size: 15px; outline: none; transition: border-color .25s, box-shadow .25s; }
.f-in:focus { border-color: var(--leaf); box-shadow: 0 0 0 4px rgba(63, 143, 66, .14); }
textarea.f-in { resize: vertical; min-height: 96px; }
.att { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.att label { position: relative; cursor: pointer; }
.att input { position: absolute; inset: 0; opacity: 0; }
.att span { display: block; padding: 11px 4px; border-radius: 14px; text-align: center; font-size: 13px; font-weight: 400; color: var(--ink);
    background: rgba(255, 255, 255, .7); border: 1px solid rgba(63, 143, 66, .25); transition: all .25s; }
.att input:checked + span { color: #fffaf0; background: #2e5a3a; border-color: #2e5a3a; }
.att input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.rsvp-form .btn { margin-top: 20px; }

/* ucapan */
.wishes-list { max-height: 480px; overflow-y: auto; text-align: left; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--leaf) transparent; }
.wish-item { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid rgba(63, 143, 66, .16); }
.wish-item:first-child { border-top: 0; padding-top: 4px; }
.wish-item.new { animation: rise .9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.wish-avatar { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--av, #2e5a3a); color: #fffaf0; font-family: var(--serif); font-weight: 600; font-size: 19px; text-transform: uppercase; }
.wish-body { flex: 1; min-width: 0; }
.wish-header { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.wish-name { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--forest); word-break: break-word; }
.wish-badge { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; background: rgba(63, 143, 66, .14); color: #2e6b35; }
.wish-badge.tidak { background: rgba(178, 70, 58, .12); color: #9a3d33; }
.wish-badge.ragu { background: rgba(201, 164, 92, .18); color: #82652a; }
.wish-message { margin: 4px 0; font-size: 14.5px; line-height: 1.6; word-break: break-word; }
.wish-time { font-size: 11px; color: var(--dim); }
.wish-empty { text-align: center; padding: 22px 0 6px; color: var(--dim); font-family: var(--serif); font-style: italic; font-size: 17px; }
.wish-empty img { width: 90px; margin: 0 auto 6px; }
.wish-empty p { margin: 0; }

/* penutup */
.finale { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 14vh 18px 12vh; color: var(--mist); position: relative; }
.finale::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 50% at 50% 50%, rgba(6, 14, 22, .55), transparent 75%); }
.finale > * { position: relative; }
.finale .arabic { color: var(--gold-l); }
.finale .lbl { color: var(--gold-l); }
.fin-names { margin: 6px 0 16px; font-family: var(--script); font-weight: 400; font-size: clamp(52px, 15vw, 88px); line-height: 1; color: #fffaf0; text-shadow: 0 4px 26px rgba(0, 0, 0, .5); }
.fin-names .amp { font-family: var(--serif); font-style: italic; font-size: .4em; color: var(--gold-l); padding: 0 .2em; }
.finale .txt { max-width: 440px; color: rgba(244, 247, 241, .88); }
.fam { display: grid; gap: 10px; margin: 6px 0 20px; width: 100%; max-width: 420px; }
.fam p { margin: 0; padding: 14px 16px; border-radius: 18px; font-size: 14px; color: rgba(244, 247, 241, .9);
    background: rgba(244, 247, 241, .08); border: 1px solid rgba(234, 211, 154, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.fam span { display: block; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-l); }
.salam { font-family: var(--serif); font-style: italic; font-size: 19px; color: #f8efd8; }
.credit { margin: 22px 0 0; font-size: 11.5px; letter-spacing: .06em; color: rgba(244, 247, 241, .6); }

/* ── reveal: muncul dari balik kabut ───────────────────────────── */
.rv { opacity: 0; transform: translateY(34px) scale(.985); filter: blur(8px); transition: opacity 1.1s var(--ease), transform 1.3s var(--ease), filter 1.2s var(--ease); }
.rv.in { opacity: 1; transform: none; filter: none; }
.rv.d1 { transition-delay: .12s; } .rv.d2 { transition-delay: .24s; } .rv.d3 { transition-delay: .36s; }
img.orn { opacity: 0; transition: opacity .8s; }
img.orn.ok { opacity: 1; }

/* ── lightbox ───────────────────────────────────────────────────── */
.gallery-lightbox { display: none; opacity: 0; transition: opacity .3s; position: fixed; inset: 0; z-index: 9600; background: rgba(8, 20, 14, .95); align-items: center; justify-content: center; }
.lb-img-wrap { max-width: 94vw; max-height: 84vh; }
.lb-img-wrap img { max-width: 94vw; max-height: 84vh; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); }
.lb-close, .lb-prev, .lb-next { position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
    background: rgba(244, 247, 241, .1); border: 1px solid rgba(234, 211, 154, .45); color: var(--gold-l); font-size: 22px; line-height: 1; }
.lb-close { top: calc(18px + env(safe-area-inset-top)); right: 18px; font-size: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: calc(24px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: .3em; color: var(--gold-l); }

body.has-qr .finale { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }

@media (min-width: 760px) {
    .couple { grid-template-columns: 1fr auto 1fr; align-items: center; }
    .card { padding: 46px 40px 40px; }
    .gal { grid-template-columns: repeat(3, 1fr); }
    .gal-item:nth-child(3n+1) { grid-column: auto; aspect-ratio: 3 / 4; }
    .events { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) { .card.wide { max-width: 760px; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01s !important; transition-delay: 0s !important; }
    .rv { opacity: 1; transform: none; filter: none; }
}
