/* ═══════════════════════════════════════════════════════════════════
   SEKAR NILA — taman biru berdebu: anemone, delphinium & hortensia di gapura runcing perak
   Seluruh bunga dilukis prosedural di kanvas oleh scene.js lalu
   dirangkai menjadi gapura, lorong pengantin, tirai bunga, dan ornamen.
   Pembukaan: kamera zoom-out berlapis; isi muncul dengan zoom-in
   bergiliran.
   ═══════════════════════════════════════════════════════════════════ */
:root {
    --wine: #22345a;
    --ink: #1f2a40;
    --text: #4a5468;
    --dim: #7f889a;
    --rose: #4d6a9a;
    --blush: #bccde6;
    --sage: #7c9c94;
    --gold: #a49577;
    --gold-l: #e6dcc4;
    --cream: #f9fbfd;
    --bg: #e2e8f1;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --script: 'Parisienne', 'Cormorant Garamond', cursive;
    --sans: 'Jost', system-ui, sans-serif;
    --sky0: linear-gradient(180deg, #9fb0dc 0%, #d9d4ec 40%, #f1e6ee 62%, #f1e6ee 100%);
    --tint0: #eef0f8;
    --sun-a: rgba(240, 236, 255, .7);
    --sun-b: rgba(214, 220, 250, .26);
    --btn: linear-gradient(135deg, #6c88b8, #3c5888 60%, #5d79aa);
    --btn-ink: #f9fbfd;
    --card: linear-gradient(170deg, rgba(251, 252, 254, .94), rgba(234, 239, 247, .88));
    --cover-bg: radial-gradient(60% 40% at 50% 48%, #f9fbfd 0%, rgba(249, 251, 253, 0) 100%), radial-gradient(40% 30% at 20% 30%, rgba(196, 210, 238, .75), transparent 70%), radial-gradient(40% 30% at 80% 72%, rgba(214, 206, 238, .7), transparent 70%), linear-gradient(170deg, #eef2f8, #d8e0ee 55%, #e6e4f0);
    --glow-a: rgba(214, 228, 255, .9);
    --glow-b: rgba(236, 228, 255, .8);
    --portrait: linear-gradient(170deg, #dbe4f2, #7f98c2);
    --ph: radial-gradient(circle at 50% 40%, #f9fbfd, #dfe6f2 70%, #c9d5ea);
    --filigree: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23a49577' stroke-linecap='round'%3E%3Cpath d='M4 42V13a9 9 0 0 1 9-9h29' stroke-width='1.3'/%3E%3Cpath d='M9.5 54V17a7.5 7.5 0 0 1 7.5-7.5h37' stroke-width='.6' opacity='.7'/%3E%3Cpath d='M15 15c8 0 12 4 12 10s-6 8-9 5 0-7 4-5' stroke-width='1.1'/%3E%3Cpath d='M27 25c4-4 10-4 14 0M25 27c-4 4-4 10 0 14' stroke-width='.8'/%3E%3Ccircle cx='4' cy='46' r='1.7' fill='%23a49577' stroke='none'/%3E%3Ccircle cx='46' cy='4' r='1.7' fill='%23a49577' stroke='none'/%3E%3Cpath d='M31 11c3-3 7-3 9 0-3 2-6 2-9 0zM11 31c-3 3-3 7 0 9 2-3 2-6 0-9z' fill='%23a49577' stroke='none' opacity='.85'/%3E%3Cpath d='M44 19c2-2 5-2 6 0-2 1.5-4 1.5-6 0zM19 44c-2 2-2 5 0 6 1.5-2 1.5-4 0-6z' fill='%23a49577' stroke='none' opacity='.6'/%3E%3C/svg%3E");
    --shade-rgb: 34 52 90;
    --gold-rgb: 164 149 119;
    --cream-rgb: 249 251 253;
    --rose-rgb: 77 106 154;
    --ink-rgb: 31 42 64;
    --ease: cubic-bezier(.22, 1, .36, 1);
    --pop: cubic-bezier(.2, .85, .25, 1);
    --arab: 'Amiri', serif;
}

*, *::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: var(--bg); 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: var(--bg); }
.scene .sky { position: absolute; inset: 0; background: var(--sky0); }
.scene .stars { position: absolute; inset: 0 0 40% 0; opacity: 0;
    background-image: radial-gradient(1.4px 1.4px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 8%, #fff, transparent), radial-gradient(1.2px 1.2px at 46% 22%, #fff, transparent),
        radial-gradient(1px 1px at 64% 12%, #fff, transparent), radial-gradient(1.5px 1.5px at 82% 26%, #fff, transparent), radial-gradient(1px 1px at 92% 6%, #fff, transparent),
        radial-gradient(1.2px 1.2px at 6% 34%, #fff, transparent), radial-gradient(1px 1px at 38% 36%, #fff, transparent), radial-gradient(1.3px 1.3px at 72% 40%, #fff, transparent); }
.scene .sun { position: absolute; left: 74%; top: 10%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 252, 238, 1) 0 16%, var(--sun-a) 30%, var(--sun-b) 52%, transparent 72%);
    transform: scale(3); }
.scene .moon { position: absolute; left: 24%; top: 13%; width: 46px; height: 46px; border-radius: 50%; opacity: 0;
    background: radial-gradient(circle at 38% 36%, #fffdf4, #f1e6cc 60%, #d9cba8);
    box-shadow: 0 0 40px 14px rgba(255, 244, 214, .35), 0 0 120px 40px rgba(200, 190, 255, .18); }
.dolly { position: absolute; inset: 0; }
.lyr { position: absolute; left: 0; top: 0; width: 100%; will-change: transform; }
.lyr .zo { position: relative; width: 100%; will-change: transform; }
.lyr canvas { position: absolute; left: 0; top: 0; display: block; }
.lyr.arch { transform-origin: 50% 45%; }
.lyr.fol, .lyr.near { transform-origin: 50% 50%; }
.lyr.near { inset: 0; height: 100%; }
/* ayunan bunga dijalankan dari scene.js via Web Animations agar ter-komposit */
.lyr .zo > canvas { transform-origin: var(--ox) var(--oy); transform: rotate(var(--r)); }
.scene .tint { position: absolute; inset: 0; background: var(--tint0); mix-blend-mode: multiply; }
.scene .grain { position: absolute; inset: -50%; opacity: .05; 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 58%, rgb(var(--shade-rgb) / .28) 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 rgb(var(--gold-rgb) / .6); cursor: pointer; color: var(--wine);
    display: flex; align-items: center; justify-content: center;
    background: rgb(var(--cream-rgb) / .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px -10px rgb(var(--shade-rgb) / .45);
}
.music-toggle-btn svg { width: 17px; height: 17px; }
.music-toggle-btn.playing::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgb(var(--rose-rgb) / .45); 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(--blush), var(--rose), 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: rgb(var(--ink-rgb) / .92); color: var(--cream); font-size: 14px; letter-spacing: .02em;
    border: 1px solid rgb(var(--gold-rgb) / .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: var(--btn-ink); border: 1px solid rgb(var(--gold-rgb) / .7);
    background: var(--btn);
    box-shadow: 0 14px 28px -14px rgb(var(--shade-rgb) / .75), inset 0 1px 0 rgba(255, 255, 255, .25);
    transition: transform .25s var(--ease), box-shadow .25s;
    position: relative; overflow: hidden;
}
/* kilau yang menyapu tombol */
.btn::after { content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: glint 4.5s ease-in-out infinite 1.5s; }
@keyframes glint { 0%, 70% { transform: translateX(0) skewX(-20deg); } 100% { transform: translateX(420%) skewX(-20deg); } }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn.line { color: var(--wine); background: rgba(255, 255, 255, .55); border-color: rgb(var(--rose-rgb) / .4); box-shadow: none; }
.btn.line::after, .btn.light::after { display: none; }
.btn.light { color: var(--cream); background: rgba(255, 255, 255, .1); border-color: rgb(var(--gold-rgb) / .6); box-shadow: none; }
.btn.wide { width: 100%; }
.btn.loading { opacity: .65; pointer-events: none; }

/* ── KILAU BINTANG ──────────────────────────────────────────────── */
.spk { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.spk i { position: absolute; width: 14px; height: 14px; opacity: 0;
    background: radial-gradient(circle, #fff 0 12%, transparent 13%), conic-gradient(from 45deg, transparent 0 22%, var(--gold-l) 24% 26%, transparent 28% 47%, var(--gold-l) 49% 51%, transparent 53% 72%, var(--gold-l) 74% 76%, transparent 78% 97%, var(--gold-l) 99%);
    -webkit-mask: radial-gradient(circle, #000 0 30%, transparent 70%); mask: radial-gradient(circle, #000 0 30%, transparent 70%);
    animation: twinkle 3.6s ease-in-out infinite; }
.spk i:nth-child(1) { left: 12%; top: 16%; animation-delay: -.4s; }
.spk i:nth-child(2) { left: 84%; top: 22%; animation-delay: -1.6s; width: 10px; height: 10px; }
.spk i:nth-child(3) { left: 22%; top: 58%; animation-delay: -2.4s; width: 18px; height: 18px; }
.spk i:nth-child(4) { left: 76%; top: 64%; animation-delay: -.9s; }
.spk i:nth-child(5) { left: 50%; top: 9%; animation-delay: -3s; width: 10px; height: 10px; }
.spk i:nth-child(6) { left: 90%; top: 46%; animation-delay: -2s; width: 16px; height: 16px; }
.spk i:nth-child(7) { left: 6%; top: 40%; animation-delay: -1.2s; width: 12px; height: 12px; }
.spk i:nth-child(8) { left: 60%; top: 86%; animation-delay: -2.8s; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

/* ── LAMBANG INISIAL (karangan bunga + monogram) ──────────────────── */
.crest { position: relative; width: 138px; height: 138px; margin: 0 auto 4px; display: flex; align-items: center; justify-content: center; }
.crest img { position: absolute; inset: 0; width: 100%; height: 100%; }
.crest span { position: relative; font-family: var(--script); font-size: 40px; line-height: 1; color: var(--wine); text-shadow: 0 2px 10px rgb(var(--cream-rgb) / .9); }
.crest span i { font-family: var(--serif); font-style: italic; font-size: .5em; color: var(--gold); margin: 0 .08em; }
.crest.sm { width: 112px; height: 112px; }
.crest.sm span { font-size: 32px; }
.crest.lg { width: 210px; height: 210px; margin-bottom: 6px; }
.crest.lg span { font-size: 56px; color: #fffaf4; text-shadow: 0 4px 22px rgba(20, 10, 30, .55); }
.crest.lg span i { color: var(--gold-l); }
.crest img.ok { animation: spinSlow 60s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ── COVER ──────────────────────────────────────────────────────── */
.cover { position: fixed; inset: 0; z-index: 2000; overflow: hidden; touch-action: none; cursor: grab; background: var(--cover-bg); }
.cover.dragging { cursor: grabbing; }
.cover.open { background: transparent; transition: opacity 1.4s ease; opacity: 0; }
.cv-flowers { position: absolute; inset: 0; }
.cv-flowers 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; }
.cover.parting .cv-flowers canvas { animation: none; }
.cover.open .cv-flowers canvas { transition: transform 1.6s cubic-bezier(.6, .02, .2, 1), opacity 1.6s ease, filter 1.6s; opacity: 0; filter: blur(3px); }
.cover:not(.ready) .cv-flowers { opacity: 0; }
.cv-flowers { transition: opacity 1.2s ease; }
.cv-shade { position: absolute; inset: 0; background: radial-gradient(56% 38% at 50% 50%, rgb(var(--cream-rgb) / .94), rgb(var(--cream-rgb) / .6) 60%, transparent); transition: opacity 1s; pointer-events: none; }
.cover.open .cv-shade, .cover.open .cv-frame, .cover.open .spk { opacity: 0; transition: opacity .8s; }
/* bingkai lengkung emas di belakang teks cover */
.cv-frame { position: absolute; left: 50%; top: 50%; width: min(84vw, 360px); height: min(78svh, 600px); transform: translate(-50%, -50%); pointer-events: none; }
.cv-frame.zi { animation-name: zoomInC; }
@keyframes zoomInC { from { opacity: 0; transform: translate(-50%, -50%) scale(.4); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.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(--ink); 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-content .crest { pointer-events: none; width: 120px; height: 120px; }
.cv-content .crest span { font-size: 34px; }
.cv-lbl { margin: 0 0 8px; font-size: 11px; letter-spacing: .42em; text-transform: uppercase; color: var(--rose); font-weight: 500; }
.cv-names { margin: 0; font-family: var(--script); font-weight: 400; font-size: clamp(52px, 15vw, 86px); line-height: 1.02; color: var(--wine);
    text-shadow: 0 2px 18px rgb(var(--cream-rgb) / .9); }
.cv-names .amp { display: block; font-family: var(--serif); font-style: italic; font-size: .4em; color: var(--gold); margin: 0 0 2px; }
.cv-date { margin: 10px 0 18px; font-family: var(--serif); font-size: 19px; letter-spacing: .2em; color: var(--ink); }
.cv-to { margin: 0 0 20px; padding: 14px 26px; border-radius: 18px; min-width: 220px; max-width: 320px;
    background: rgba(255, 255, 255, .58); border: 1px solid rgb(var(--gold-rgb) / .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 18px 34px -24px rgb(var(--shade-rgb) / .6); }
.cv-to span { display: block; font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--dim); }
.cv-to b { display: block; margin-top: 2px; font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--wine); word-break: break-word; }
.cv-hint { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; font-size: 12.5px; letter-spacing: .06em; color: var(--text); }
.cv-hint i { position: relative; width: 34px; height: 2px; background: rgb(var(--rose-rgb) / .25); border-radius: 2px; overflow: hidden; }
.cv-hint i::after { content: ''; position: absolute; top: 0; left: -40%; width: 40%; height: 100%; background: var(--rose); animation: swipe 1.8s ease-in-out infinite; }
@keyframes swipe { to { transform: translateX(350%); } }
.cv-note { margin: 10px 0 0; font-size: 10.5px; color: var(--dim); }

/* zoom-in bertahap (cover tampil langsung; hero menunggu undangan dibuka) */
.zi { animation: zoomIn 1s var(--pop) var(--dl, 0s) both; }
@keyframes zoomIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.zh { opacity: 0; }
body.opened .zh { animation: zoomIn 1.1s var(--pop) var(--dl, 0s) both; }

/* ── 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(7svh + env(safe-area-inset-bottom)); color: var(--ink); position: relative; }
.hero::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 64svh; pointer-events: none;
    background: radial-gradient(70% 52% at 50% 70%, rgb(var(--cream-rgb) / .9), rgb(var(--cream-rgb) / .55) 50%, transparent 75%); }
.hero > * { position: relative; }
.hero .spk { position: absolute; }
.hero .lbl { color: var(--rose); }
.hero-names { margin: 0; font-family: var(--script); font-weight: 400; font-size: clamp(58px, 17vw, 104px); line-height: 1; color: var(--wine); text-shadow: 0 2px 22px rgb(var(--cream-rgb) / .95); }
.hero-names .amp { font-family: var(--serif); font-style: italic; font-size: .38em; color: var(--gold); padding: 0 .2em; }
.hero-date { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px 0 6px; font-family: var(--serif); font-size: 18px; letter-spacing: .14em; color: var(--ink); }
.hero-date i { width: 5px; height: 5px; border-radius: 50%; background: var(--rose); }
.hero-place { margin: 0 0 20px; font-size: 13px; letter-spacing: .12em; color: var(--text); }
.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: var(--text); }
.scroll-cue i { width: 1px; height: 42px; background: linear-gradient(var(--rose), 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: 17vh 16px; display: flex; justify-content: center; }
.sec:first-of-type { padding-top: 12vh; }
.card {
    position: relative; width: 100%; max-width: 520px; padding: 46px 24px 36px; border-radius: 30px;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, .8);
    backdrop-filter: blur(10px) saturate(1.15); -webkit-backdrop-filter: blur(10px) saturate(1.15);
    box-shadow: 0 40px 70px -42px rgb(var(--shade-rgb) / .6), 0 2px 0 rgba(255, 255, 255, .6) inset;
}
/* bingkai emas ganda di dalam kartu */
.card::before { content: ''; position: absolute; inset: 9px; border-radius: 23px; border: 1px solid rgb(var(--gold-rgb) / .38); pointer-events: none;
    box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0), inset 0 0 0 5px rgb(var(--gold-rgb) / .14); }
.card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: soft-light; opacity: .6; overflow: hidden;
    background:
        radial-gradient(22% 16% at 20% 30%, var(--glow-a), transparent 70%),
        radial-gradient(18% 14% at 74% 18%, var(--glow-b), transparent 70%),
        radial-gradient(24% 18% at 62% 74%, var(--glow-a), transparent 70%);
    animation: shimmer 14s ease-in-out infinite alternate; }
@keyframes shimmer { from { background-position: 0 0, 0 0, 0 0; opacity: .45; } to { background-position: 30px 20px, -20px 30px, 20px -24px; opacity: .7; } }
.card > * { position: relative; z-index: 1; }
.card.center { text-align: center; }

/* sulur emas di sudut kartu */
.card > .fil { position: absolute; z-index: 1; width: 64px; height: 64px; pointer-events: none; opacity: .9; background: var(--filigree) center / contain no-repeat; }
.fil.tl { left: 14px; top: 14px; }
.fil.tr { right: 14px; top: 14px; transform: scaleX(-1); }
.fil.bl { left: 14px; bottom: 14px; transform: scaleY(-1); }
.fil.br { right: 14px; bottom: 14px; transform: scale(-1, -1); }

/* buket & untaian di tepi kartu */
.card .orn-corner { position: absolute; z-index: 2; width: 184px; top: -58px; right: -44px; pointer-events: none; }
.card .orn-corner.l { right: auto; left: -50px; top: auto; bottom: -56px; width: 164px; }
.card .orn-corner.tl { right: auto; left: -50px; top: -56px; width: 164px; }
.card .orn-corner.br { left: auto; right: -48px; top: auto; bottom: -58px; width: 172px; }
.card .card-swag { position: absolute; z-index: 3; left: 50%; top: -58px; width: min(92%, 400px); margin-left: calc(min(92%, 400px) / -2); pointer-events: none; transform-origin: 50% 0; }
.card .card-swag.ok { animation: swagSway 7s ease-in-out infinite; }
@keyframes swagSway { 0%, 100% { transform: rotate(-.8deg); } 50% { transform: rotate(.8deg); } }
.rv.in .orn-corner, .rv.in .p-orn { animation: bloom 1.8s var(--ease) both .25s; }
@keyframes bloom { from { transform: scale(.4) rotate(-14deg); opacity: 0; } to { transform: none; opacity: 1; } }
.card .orn-corner.ok { filter: drop-shadow(0 10px 14px rgb(var(--shade-rgb) / .22)); }

.sh { text-align: center; margin-bottom: 16px; }
.sh .orn-div { width: 170px; height: 52px; margin: 0 auto 4px; object-fit: contain; }
.sh-no { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--gold); letter-spacing: .1em; }
.sh-no i { width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.sh-no i:last-child { transform: scaleX(-1); }
.lbl { margin: 0 0 8px; font-size: 11px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--rose); }
.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(--wine); }
.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(--wine); direction: rtl; }
.arabic.big { font-size: 27px; }

.ayat { position: relative; margin: 30px 0 0; padding: 34px 18px 22px; border-radius: 22px; background: rgba(255, 255, 255, .62); border: 1px solid rgb(var(--rose-rgb) / .16); }
.ayat-orn { position: absolute; left: 50%; top: -42px; width: 76px; margin-left: -38px; }
.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: 172px; height: 218px; margin: 0 auto 18px; }
.portrait .frame { position: absolute; inset: 0; border-radius: 999px 999px 26px 26px; overflow: hidden; border: 5px solid rgba(255, 255, 255, .95);
    outline: 1px solid rgb(var(--gold-rgb) / .55); outline-offset: 5px;
    box-shadow: 0 24px 40px -22px rgb(var(--shade-rgb) / .7); background: var(--portrait); }
.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: 92px; color: #fffaf4; text-shadow: 0 4px 20px rgb(var(--shade-rgb) / .35); }
.portrait .p-orn { position: absolute; width: 132px; left: -66px; bottom: -44px; pointer-events: none; }
.portrait .p-orn.top { width: 104px; left: auto; right: -54px; top: -44px; bottom: auto; }
.portrait.b .p-orn { left: auto; right: -58px; transform: scaleX(-1); }
.portrait.b .p-orn.top { right: auto; left: -50px; }
.portrait.b .p-orn.ok { animation-name: bloomFlip; }
@keyframes bloomFlip { from { transform: scaleX(-1) scale(.4) rotate(-14deg); opacity: 0; } to { transform: scaleX(-1); opacity: 1; } }
.person h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 600; font-size: 27px; line-height: 1.15; color: var(--wine); }
.person .parent { margin: 0; font-size: 14.5px; }
.person .parent b { font-weight: 500; color: var(--ink); }
.couple .and { position: relative; font-family: var(--script); font-size: 58px; line-height: 1; color: var(--gold); text-align: center; }
.couple .and img { width: 54px; margin: 0 auto -6px; }

/* kisah */
.story { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; text-align: left; }
.story::before { content: ''; position: absolute; left: 12px; top: 12px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(var(--sage), var(--blush), var(--rose)); }
.story li { position: relative; padding: 0 0 24px; }
.story li:last-child { padding-bottom: 0; }
.story .st-dot { position: absolute; left: -44px; top: -8px; width: 42px; height: 42px; }
.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(--wine); }
.story p { margin: 0; font-size: 14.5px; }

/* countdown — karangan bunga */
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0 10px; }
.wreath { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wreath b { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; max-width: 100px; aspect-ratio: 1;
    background-size: 100% 100%; background-repeat: no-repeat;
    font-family: var(--serif); font-weight: 600; font-size: clamp(22px, 6.8vw, 32px); color: var(--wine); }
.wreath b::before { content: ''; position: absolute; inset: 22%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #fffdf9, var(--cream)); box-shadow: inset 0 0 0 1px rgb(var(--gold-rgb) / .3); z-index: -1; }
.wreath b.tick { animation: tick .5s var(--ease); }
@keyframes tick { 0% { transform: scale(1); } 35% { transform: scale(1.06) rotate(-3deg); } 100% { transform: none; } }
.wreath 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(--wine); }

/* acara */
.events { display: grid; gap: 22px; }
.ev { position: relative; padding: 22px 18px; border-radius: 22px; background: rgba(255, 255, 255, .66); border: 1px solid rgb(var(--rose-rgb) / .15); text-align: left; }
.ev-orn { position: absolute; right: -16px; top: -26px; width: 78px; pointer-events: none; }
.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: #fffaf4; background: var(--btn); box-shadow: 0 8px 16px -8px rgb(var(--shade-rgb) / .6); }
.ev-ic .ico { width: 22px; height: 22px; }
.ev h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 25px; color: var(--wine); 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(--rose); padding-top: 1px; }
.ev dd { margin: 0; }

/* lokasi */
.map-frame { position: relative; margin: 4px 0 18px; border-radius: 22px; aspect-ratio: 4 / 3; border: 4px solid rgba(255, 255, 255, .9); box-shadow: 0 20px 34px -24px rgb(var(--shade-rgb) / .7); background: var(--cream); }
.map-frame > .leaflet-map, .map-frame > .map-illu { border-radius: 18px; overflow: hidden; }
.map-orn { position: absolute; right: -40px; bottom: -44px; width: 138px; z-index: 500; pointer-events: none; }
.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: var(--rose); }
.mi-pin .ico { width: 40px; height: 40px; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .25)); }
.loc-name { margin: 0 0 4px; font-family: var(--serif); font-weight: 600; font-size: 23px; color: var(--wine); }
.sk-marker span { display: block; width: 32px; height: 32px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--rose); border: 3px solid #fffaf4; box-shadow: 0 6px 12px rgba(0, 0, 0, .3); }

/* galeri */
.gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gal-item { position: relative; padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: pointer; aspect-ratio: 3 / 4; background: var(--cream); box-shadow: 0 18px 28px -20px rgb(var(--shade-rgb) / .7); }
.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: 6px; pointer-events: none; border-radius: 13px; border: 1px solid rgba(255, 255, 255, .75); }
.gal-item .ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    background: var(--ph); color: var(--wine); font-family: var(--serif); font-style: italic; font-size: 16px; }
.gal-item .ph img { width: 62%; max-width: 160px; 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, .8) !important;
    background: var(--card) !important; box-shadow: 0 30px 50px -34px rgb(var(--shade-rgb) / .6) !important; }
.gift #gift-section .gs-sbtn, .gift #gift-section .gs-btn-buy, .gift #gift-section .gs-bank-copy { border-radius: 999px !important; background: var(--rose) !important; color: #fffaf4 !important; border: 0 !important; letter-spacing: .08em; }
.gift #gift-section .gs-price { color: var(--gold) !important; }
.gift #gift-section .gs-name, .gift #gift-section .gs-bank-name-text, .gift #gift-section .gs-bank-holder { color: var(--wine) !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(--rose); }
.f-in { width: 100%; padding: 13px 16px; border-radius: 16px; border: 1px solid rgb(var(--rose-rgb) / .25); background: rgba(255, 255, 255, .8); 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(--rose); box-shadow: 0 0 0 4px rgb(var(--rose-rgb) / .12); }
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, .72); border: 1px solid rgb(var(--rose-rgb) / .22); transition: all .25s; }
.att input:checked + span { color: #fffaf4; background: var(--rose); border-color: var(--rose); }
.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(--blush) transparent; }
.wish-item { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid rgb(var(--rose-rgb) / .13); }
.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) scale(.9); 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, var(--rose)); color: #fffaf4; font-family: var(--serif); font-weight: 600; font-size: 19px; text-transform: uppercase;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgb(var(--gold-rgb) / .45); }
.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(--wine); word-break: break-word; }
.wish-badge { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; background: rgba(127, 154, 122, .18); color: #4f6d4b; }
.wish-badge.tidak { background: rgb(var(--rose-rgb) / .12); color: var(--rose); }
.wish-badge.ragu { background: rgb(var(--gold-rgb) / .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: 100px; margin: 0 auto 6px; }
.wish-empty p { margin: 0; }

/* penutup — taman di bawah bulan */
.finale { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 14vh 18px 12vh; color: var(--cream); position: relative; }
.finale::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 50% at 50% 50%, rgba(30, 20, 45, .5), transparent 75%); }
.finale > * { position: relative; }
.finale .spk { position: absolute; }
.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(56px, 16vw, 96px); line-height: 1; color: #fffaf4; text-shadow: 0 4px 26px rgba(20, 10, 30, .5); }
.fin-names .amp { font-family: var(--serif); font-style: italic; font-size: .38em; color: var(--gold-l); padding: 0 .2em; }
.finale .txt { max-width: 440px; color: rgba(255, 250, 244, .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(255, 250, 244, .92);
    background: rgba(255, 250, 244, .08); border: 1px solid rgb(var(--gold-rgb) / .35); 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: #fbeee0; }
.credit { margin: 22px 0 0; font-size: 11.5px; letter-spacing: .06em; color: rgba(255, 250, 244, .6); }

/* ── reveal: zoom-in bergiliran (gaya Pink Palace) ─────────────────── */
.rv { opacity: 0; transform: scale(.72); transition: opacity .9s ease var(--dl, 0s), transform 1.1s var(--pop) var(--dl, 0s); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { --dl: .15s; } .rv.d2 { --dl: .3s; } .rv.d3 { --dl: .45s; }
.rv .zc { opacity: 0; }
.rv.in .zc { animation: zoomIn 1s var(--pop) var(--dl, .2s) both; }
img.orn { opacity: 0; transition: opacity .8s; }
img.orn.ok { opacity: 1; }
.rv:not(.in) img.orn.ok.orn-corner, .rv:not(.in) img.orn.ok.p-orn { opacity: 0; }

/* ── lightbox ───────────────────────────────────────────────────── */
.gallery-lightbox { display: none; opacity: 0; transition: opacity .3s; position: fixed; inset: 0; z-index: 9600; background: rgb(var(--ink-rgb) / .94); 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(255, 250, 244, .1); border: 1px solid rgb(var(--gold-rgb) / .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 (max-width: 559px) {
    .hero-names .amp, .fin-names .amp { display: block; padding: 0; margin: -.1em 0 -.05em; }
    .card > .fil { width: 50px; height: 50px; }
}
@media (min-width: 760px) {
    .couple { grid-template-columns: 1fr auto 1fr; align-items: center; }
    .card { padding: 54px 42px 44px; }
    .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; }
    .card.wide { max-width: 760px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01s !important; transition-delay: 0s !important; }
    .rv, .rv .zc, .zh, .zi { opacity: 1; transform: none; }
}
.couple-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
