/* ═══════════════════════════════════════════════════════════════
   ORIGAMI LOVE — undangan selembar kertas washi yang dilipat
   ═══════════════════════════════════════════════════════════════ */
:root {
    --washi: #f6f0e4;
    --paper: #ece2cf;
    --sheet: #fbf8f1;
    --sakura-bg: #f5e4dd;
    --indigo: #2f3e5c;
    --indigo-d: #243049;
    --red: #c8473b;
    --red-d: #a8382e;
    --sakura: #f1c9c3;
    --sage: #a9b8a0;
    --sage-d: #7f9277;
    --ink: #2a2622;
    --ink-2: #5d554c;
    --ink-3: #958a7c;
    --line: rgba(90, 70, 40, .16);
    --f-display: 'Shippori Mincho', 'Zen Old Mincho', Georgia, serif;
    --f-ui: 'Zen Kaku Gothic New', system-ui, -apple-system, sans-serif;
    --f-arab: 'Amiri', serif;
    --st: env(safe-area-inset-top, 0px);
    --sb: env(safe-area-inset-bottom, 0px);
    --ease: cubic-bezier(.22, .8, .24, 1);
    --spring: cubic-bezier(.34, 1.5, .64, 1);
    --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .34 0 0 0 0 .24 0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    --cloud: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.011 .028' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 .98 .9 0 0 0 -.36'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E");
    --fibre: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360'%3E%3Cpath d='M0 331Q-13 343 -8 365' stroke='%23a8957a' stroke-opacity='0.18' stroke-width='0.8' fill='none'/%3E%3Cpath d='M271 272Q249 246 205 254' stroke='%23a8957a' stroke-opacity='0.22' stroke-width='0.7' fill='none'/%3E%3Cpath d='M135 255Q138 243 127 232' stroke='%23a8957a' stroke-opacity='0.18' stroke-width='1.3' fill='none'/%3E%3Cpath d='M291 44Q258 18 206 37' stroke='%23a8957a' stroke-opacity='0.20' stroke-width='1.0' fill='none'/%3E%3Cpath d='M328 327Q307 331 298 358' stroke='%23a8957a' stroke-opacity='0.16' stroke-width='0.6' fill='none'/%3E%3Cpath d='M107 154Q74 181 83 236' stroke='%23fffaf0' stroke-opacity='0.81' stroke-width='1.3' fill='none'/%3E%3Cpath d='M21 98Q6 75 -31 78' stroke='%23fffaf0' stroke-opacity='0.62' stroke-width='1.3' fill='none'/%3E%3Cpath d='M20 132Q-11 144 -17 187' stroke='%23a8957a' stroke-opacity='0.18' stroke-width='0.6' fill='none'/%3E%3Cpath d='M146 102Q122 108 113 139' stroke='%23fffaf0' stroke-opacity='0.74' stroke-width='1.1' fill='none'/%3E%3Cpath d='M84 326Q46 313 6 347' stroke='%23a8957a' stroke-opacity='0.20' stroke-width='1.0' fill='none'/%3E%3Cpath d='M182 248Q205 253 226 230' stroke='%23a8957a' stroke-opacity='0.15' stroke-width='1.0' fill='none'/%3E%3Cpath d='M126 119Q89 122 68 167' stroke='%23a8957a' stroke-opacity='0.13' stroke-width='1.2' fill='none'/%3E%3Cpath d='M28 146Q28 159 42 167' stroke='%23a8957a' stroke-opacity='0.15' stroke-width='1.1' fill='none'/%3E%3Cpath d='M52 165Q46 151 27 148' stroke='%23a8957a' stroke-opacity='0.23' stroke-width='1.3' fill='none'/%3E%3Cpath d='M319 327Q331 311 321 288' stroke='%23fffaf0' stroke-opacity='0.64' stroke-width='0.6' fill='none'/%3E%3Cpath d='M1 222Q-16 254 9 293' stroke='%23fffaf0' stroke-opacity='0.79' stroke-width='0.7' fill='none'/%3E%3Cpath d='M318 85Q277 93 260 143' stroke='%23fffaf0' stroke-opacity='0.72' stroke-width='0.5' fill='none'/%3E%3Cpath d='M329 229Q339 230 348 219' stroke='%23a8957a' stroke-opacity='0.14' stroke-width='1.4' fill='none'/%3E%3Cpath d='M204 245Q192 258 200 280' stroke='%23fffaf0' stroke-opacity='0.75' stroke-width='0.5' fill='none'/%3E%3Cpath d='M277 252Q287 227 265 199' stroke='%23fffaf0' stroke-opacity='0.59' stroke-width='1.3' fill='none'/%3E%3Cpath d='M47 248Q58 247 65 234' stroke='%23a8957a' stroke-opacity='0.22' stroke-width='1.4' fill='none'/%3E%3Cpath d='M344 275Q325 274 311 293' stroke='%23a8957a' stroke-opacity='0.23' stroke-width='0.9' fill='none'/%3E%3Cpath d='M85 146Q114 143 129 107' stroke='%23fffaf0' stroke-opacity='0.77' stroke-width='1.2' fill='none'/%3E%3Cpath d='M121 261Q104 259 91 277' stroke='%23fffaf0' stroke-opacity='0.89' stroke-width='1.4' fill='none'/%3E%3Cpath d='M228 314Q245 315 257 297' stroke='%23a8957a' stroke-opacity='0.14' stroke-width='0.9' fill='none'/%3E%3Cpath d='M201 278Q227 285 251 260' stroke='%23fffaf0' stroke-opacity='0.71' stroke-width='0.6' fill='none'/%3E%3C/svg%3E");
    --paper-tex: var(--fibre), var(--cloud), var(--noise);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; overflow: hidden; }
body {
    font-family: var(--f-ui);
    color: var(--ink);
    background: var(--fibre), var(--noise), radial-gradient(120% 90% at 50% 40%, #e2d9c8, #cdc2ad);
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.ico { width: 1em; height: 1em; flex-shrink: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.crane-svg, .oheart { display: block; width: 100%; height: 100%; overflow: visible; }
.crane-svg.indigo { --k1: #3f5279; --k2: #2f3e5c; --k3: #222d44; --k4: #5c709a; }
.crane-svg.sakura { --k1: #eab5ad; --k2: #d99d94; --k3: #c4857c; --k4: #f6d6d0; }
.crane-svg.sage { --k1: #a9b8a0; --k2: #8fa087; --k3: #74866c; --k4: #c6d2bf; }
.crane-svg.cream { --k1: #f3ebdc; --k2: #ddd0b6; --k3: #c4b495; --k4: #fffaf0; }

/* ── Meja (desktop) ─────────────────────────────────────────── */
.desk { position: fixed; inset: 0; pointer-events: none; display: none; }
.desk-sheet { position: absolute; width: 260px; height: 340px; background: var(--paper-tex), var(--washi); box-shadow: 0 18px 40px -18px rgba(60, 40, 20, .45); }
.desk-sheet.s1 { left: 6vw; top: 12vh; transform: rotate(-9deg); background: var(--paper-tex), var(--sakura-bg); }
.desk-sheet.s2 { right: 7vw; bottom: 8vh; transform: rotate(7deg); background: var(--paper-tex), #dfe4d8; }
.desk-sheet.s3 { right: 12vw; top: 9vh; width: 150px; height: 150px; transform: rotate(16deg); background: var(--paper-tex), var(--indigo); }
.desk-crane { position: absolute; width: 120px; height: 80px; filter: drop-shadow(0 10px 8px rgba(60, 40, 20, .25)); }
.desk-crane.c1 { left: 13vw; bottom: 14vh; transform: rotate(-8deg); }
.desk-crane.c2 { right: 14vw; top: 30vh; width: 90px; height: 60px; transform: scaleX(-1) rotate(-6deg); }
.desk-heart { position: absolute; left: 20vw; top: 52vh; width: 46px; height: 42px; transform: rotate(-14deg); filter: drop-shadow(0 6px 5px rgba(60, 40, 20, .25)); }

/* ── Panggung ───────────────────────────────────────────────── */
.stage {
    position: fixed; inset: 0; overflow: hidden;
    background: #1f2940;
    isolation: isolate;
}
.under { position: absolute; inset: 0; background: radial-gradient(110% 70% at 50% 45%, #34436a, #1f2940 75%); }
.under::after { content: ""; position: absolute; inset: 0; background: var(--noise), var(--cloud); opacity: .5; }
.under span { position: absolute; inset: 26px 20px; background: var(--paper-tex), #2c3a59; box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .55); transform: rotate(-1.6deg); }
.under span + span { inset: 44px 34px; transform: rotate(1.8deg); background: var(--paper-tex), #34446a; }
.book { position: absolute; inset: 0; z-index: 2; }

/* ── Halaman kertas ─────────────────────────────────────────── */
.page {
    position: absolute; inset: 0; overflow: hidden; visibility: hidden;
    background: var(--paper-tex), var(--bg, var(--washi));
    color: var(--ink);
}
.page.cur { visibility: visible; }
.page.hiding { visibility: hidden !important; }
.page:not(.cur) *, .page.clone * { animation-play-state: paused !important; }
.tone-cream { --bg: var(--washi); }
.tone-warm { --bg: var(--paper); }
.tone-sakura { --bg: var(--sakura-bg); }
.tone-indigo { --bg: var(--indigo); color: #efe7d8; background: radial-gradient(circle at 50% 100%, transparent 15px, rgba(246, 240, 228, .045) 16px, rgba(246, 240, 228, .045) 18px, transparent 19px, transparent 24px, rgba(246, 240, 228, .035) 25px, rgba(246, 240, 228, .035) 27px, transparent 28px) 0 0 / 60px 30px, var(--noise), radial-gradient(120% 90% at 50% 30%, #3a4b70, var(--indigo) 70%); }
/* bekas lipatan yang tetap samar, seperti surat yang pernah dilipat */
.page::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .16) 0, transparent 33.3%, rgba(70, 50, 20, .035) 33.4%, transparent 66.6%, rgba(255, 255, 255, .1) 66.7%, rgba(70, 50, 20, .03) 100%),
        linear-gradient(90deg, rgba(70, 50, 20, .03), transparent 50%, rgba(255, 255, 255, .1) 50.1%, transparent),
        radial-gradient(140% 100% at 50% 50%, transparent 55%, rgba(80, 60, 30, .12));
}
.page::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4;
    --c: rgba(90, 66, 34, .13); --h: rgba(255, 255, 255, .55);
    background:
        linear-gradient(180deg, transparent calc(33.33% - 1px), var(--c) calc(33.33% - 1px), var(--c) 33.33%, var(--h) 33.33%, var(--h) calc(33.33% + 1px), transparent calc(33.33% + 1px)),
        linear-gradient(180deg, transparent calc(66.66% - 1px), var(--c) calc(66.66% - 1px), var(--c) 66.66%, var(--h) 66.66%, var(--h) calc(66.66% + 1px), transparent calc(66.66% + 1px)),
        linear-gradient(90deg, transparent calc(50% - 1px), var(--c) calc(50% - 1px), var(--c) 50%, var(--h) 50%, var(--h) calc(50% + 1px), transparent calc(50% + 1px));
    -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-composite: source-in; mask-composite: intersect;
    opacity: .85;
}
.tone-indigo::after { --c: rgba(0, 0, 0, .28); --h: rgba(255, 255, 255, .09); }
.tone-indigo::before { background: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 33.3%, rgba(0, 0, 0, .06) 33.4%, transparent 66.6%, rgba(255, 255, 255, .04) 66.7%, rgba(0, 0, 0, .08)), radial-gradient(140% 100% at 50% 50%, transparent 50%, rgba(0, 0, 0, .3)); }

.pg-scroll {
    position: absolute; inset: 0; z-index: 2;
    overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: calc(70px + var(--st)) 26px calc(112px + var(--sb));
    display: flex; flex-direction: column; align-items: center; text-align: center;
    scrollbar-width: none;
}
.pg-scroll::-webkit-scrollbar { display: none; }
.pg-scroll > :first-child { margin-top: auto; }
.pg-scroll > :last-child { margin-bottom: auto; }
.page.nudge-f { animation: nudgeF .5s var(--ease); }
.page.nudge-b { animation: nudgeB .5s var(--ease); }
@keyframes nudgeF { 30% { transform: perspective(900px) rotateX(4deg) translateY(-6px); } }
@keyframes nudgeB { 30% { transform: perspective(900px) rotateX(-4deg) translateY(6px); } }

/* ── Tipografi bersama ──────────────────────────────────────── */
.kicker { font-size: 11px; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--red); }
.kicker.light { color: var(--sakura); }
.pg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.pg-head::before, .pg-head::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .5; }
.pg-no { font-family: var(--f-display); font-weight: 700; color: var(--red); letter-spacing: .05em; font-size: 13px; }
.tone-indigo .pg-head { color: rgba(239, 231, 216, .6); }
.tone-indigo .pg-no { color: var(--sakura); }
.title { font-family: var(--f-display); font-weight: 600; font-size: 34px; line-height: 1.12; color: var(--indigo); letter-spacing: -.01em; }
.title small { display: block; font-size: 19px; font-weight: 400; color: var(--red); margin-top: 6px; letter-spacing: .02em; }
.tone-indigo .title { color: #f6f0e4; }
.tone-indigo .title small { color: var(--sakura); }
.text { font-size: 14.5px; line-height: 1.8; color: var(--ink-2); max-width: 330px; margin-top: 14px; }
.text.light { color: rgba(239, 231, 216, .78); }
.arab { font-family: var(--f-arab); font-size: 30px; color: var(--indigo); line-height: 1.6; margin-bottom: 4px; }
.role { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--red); }

/* kertas potong berlapis */
.sheet {
    position: relative; width: 100%; max-width: 340px;
    background: var(--paper-tex), var(--sheet);
    padding: 24px 22px; margin-top: 22px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 16px 28px -18px rgba(70, 45, 20, .45), 0 2px 5px rgba(70, 45, 20, .08);
}
.sheet::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: var(--paper-tex), var(--sakura);
    transform: rotate(-2.2deg) translate(-4px, 6px);
    box-shadow: 0 10px 22px -16px rgba(70, 45, 20, .5);
}
.dog {
    position: absolute; top: 0; right: 0; width: 28px; height: 28px;
    background: linear-gradient(225deg, var(--bg, var(--washi)) 50%, #e3d7c0 50%, #f3ece0);
    box-shadow: -3px 3px 5px -2px rgba(70, 45, 20, .25);
}

/* tombol */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    margin-top: 20px; padding: 13px 24px; min-height: 46px;
    font-family: var(--f-ui); font-size: 13.5px; font-weight: 700; letter-spacing: .06em;
    transition: transform .25s var(--spring), box-shadow .25s, background .25s;
    position: relative;
}
.btn .ico { font-size: 17px; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-red { background: var(--paper-tex), var(--red); color: #fff8ef; box-shadow: 0 10px 20px -10px rgba(168, 56, 46, .8), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.btn-red.big { padding: 15px 36px; font-size: 14px; letter-spacing: .14em; }
.btn-ink { background: var(--paper-tex), var(--indigo); color: #f6f0e4; box-shadow: 0 10px 20px -12px rgba(36, 48, 73, .8); }
.btn-line { background: transparent; color: var(--indigo); border: 1px solid rgba(47, 62, 92, .35); padding: 11px 20px; min-height: 42px; font-size: 12.5px; }
.btn-light { background: var(--paper-tex), var(--washi); color: var(--indigo); box-shadow: 0 12px 22px -12px rgba(0, 0, 0, .55); }
.btn[disabled] { opacity: .6; }

/* ── Topbar & dock ──────────────────────────────────────────── */
.topbar {
    position: absolute; left: 0; right: 0; top: 0; z-index: 30;
    padding: calc(14px + var(--st)) 18px 0;
    display: flex; align-items: center; justify-content: space-between;
    pointer-events: none; opacity: 0; transition: opacity .6s .2s;
}
body.opened .topbar, body.opened .dock { opacity: 1; }
.tb-mark { display: inline-flex; align-items: center; gap: 3px; padding: 6px 7px; background: var(--red); color: #fff3e6; font-family: var(--f-display); font-weight: 700; font-size: 12px; line-height: 1; transform: rotate(-4deg); box-shadow: inset 0 0 0 2px var(--red), inset 0 0 0 3px rgba(255, 240, 220, .6), 0 4px 8px -4px rgba(120, 30, 20, .6); }
.tb-mark i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .7; }
.music-toggle-btn {
    pointer-events: auto; width: 40px; height: 40px; display: grid; place-items: center;
    background: var(--paper-tex), var(--sheet); color: var(--indigo);
    box-shadow: 0 6px 14px -8px rgba(60, 40, 20, .6), 0 0 0 1px rgba(90, 70, 40, .08);
    clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.music-toggle-btn svg { width: 17px; height: 17px; }
.music-toggle-btn.playing svg { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-2px) rotate(-6deg); } }

.dock {
    position: absolute; left: 50%; bottom: calc(16px + var(--sb)); z-index: 30;
    transform: translateX(-50%);
    display: flex; align-items: center; gap: 12px;
    padding: 8px 8px; width: max-content; max-width: calc(100% - 24px);
    background: var(--paper-tex), rgba(251, 248, 241, .94);
    box-shadow: 0 14px 28px -16px rgba(60, 40, 20, .55), 0 0 0 1px rgba(90, 70, 40, .08);
    opacity: 0; transition: opacity .6s .3s;
}
.nav-btn {
    width: 40px; height: 40px; display: grid; place-items: center; font-size: 19px;
    color: var(--indigo); background: rgba(47, 62, 92, .06);
    transition: transform .25s var(--spring), opacity .3s, background .3s;
}
.nav-btn.next { background: var(--paper-tex), var(--red); color: #fff8ef; clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%); }
.nav-btn:active { transform: scale(.92); }
.nav-btn[disabled] { opacity: .3; cursor: default; }
.dock-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.folds { display: flex; gap: 5px; perspective: 200px; }
.fold-sq { width: 13px; height: 13px; position: relative; padding: 0; }
.fold-sq i { position: absolute; inset: 1px; transition: transform .35s var(--spring); }
.fold-sq i::before, .fold-sq i::after { content: ""; position: absolute; inset: 0; }
.fold-sq i::before { background: #d9ccb4; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.fold-sq i::after {
    background: #c4b496; clip-path: polygon(0 0, 100% 0, 0 100%);
    transform-origin: 50% 50%; transform: rotate3d(1, -1, 0, 180deg);
    transition: transform .6s var(--ease), background .4s;
}
.fold-sq.flat i::before { background: var(--indigo); }
.fold-sq.flat i::after { transform: none; background: #3f5279; }
.fold-sq.on i { transform: scale(1.25); }
.fold-sq.on i::before { background: var(--red); }
.fold-sq.on i::after { background: #d9594c; }
.count { font-family: var(--f-display); font-size: 11px; font-weight: 600; letter-spacing: .2em; color: var(--ink-2); }
body.has-qr .dock { bottom: calc(84px + var(--sb)); }

/* petunjuk pertama */
.hint {
    position: absolute; left: 50%; bottom: calc(100px + var(--sb)); z-index: 31; pointer-events: none;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    transform: translate(-50%, 10px); opacity: 0; transition: opacity .5s, transform .5s var(--ease);
}
.hint.show { opacity: 1; transform: translate(-50%, 0); }
.hint p { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: #fff8ef; background: rgba(42, 38, 34, .86); padding: 9px 16px; white-space: nowrap; }
.hint-peel { width: 54px; height: 54px; position: relative; filter: drop-shadow(0 6px 6px rgba(60, 40, 20, .3)); }
.hint-peel::before { content: ""; position: absolute; inset: 0; background: var(--paper-tex), var(--sheet); clip-path: polygon(0 0, 100% 0, 100% 55%, 55% 100%, 0 100%); }
.hint-peel i { position: absolute; right: 0; bottom: 0; width: 45%; height: 45%; background: linear-gradient(135deg, #fff 0, #e2d6bf 60%, #cbbd9f); clip-path: polygon(0 0, 100% 0, 0 100%); transform-origin: 0 0; animation: peel 1.8s var(--ease) infinite; }
@keyframes peel { 0%, 100% { transform: translate(0, 0) scale(.6); } 50% { transform: translate(-30%, -30%) scale(1.4); } }

/* ── Bangau beterbangan ─────────────────────────────────────── */
.sky { position: absolute; inset: 0; z-index: 20; pointer-events: none; opacity: 0; transition: opacity 1s .4s; }
body.opened .sky { opacity: .62; }
.stage.folding .sky { opacity: .9; }
.fly { position: absolute; left: 100%; display: block; will-change: transform; }
.fly span { display: block; animation: flyAcross var(--d, 40s) linear infinite; animation-delay: var(--dl, 0s); }
.fly .crane-svg { animation: flap 3.2s ease-in-out infinite; }
.fly.f1 { top: 16%; width: 42px; height: 28px; --d: 30s; --dl: -9s; }
.fly.f2 { top: 36%; width: 30px; height: 20px; --d: 44s; --dl: -30s; opacity: .55; }
.fly.f3 { top: 58%; width: 38px; height: 26px; --d: 37s; --dl: -20s; opacity: .8; }
.fly.f4 { top: 9%; width: 22px; height: 15px; --d: 56s; --dl: -4s; opacity: .45; }
@keyframes flyAcross {
    0% { transform: translate(40px, 0) rotate(-4deg); }
    25% { transform: translate(-25vw, -26px) rotate(2deg); }
    50% { transform: translate(-50vw, 6px) rotate(-3deg); }
    75% { transform: translate(-75vw, -18px) rotate(3deg); }
    100% { transform: translate(calc(-100vw - 140px), 0) rotate(-2deg); }
}
@keyframes flap { 50% { transform: translateY(-4px) scaleY(.86); } }

/* ── Efek lipat (dibangun JS) ───────────────────────────────── */
.fold-fx { position: absolute; inset: 0; z-index: 5; pointer-events: none; perspective: 1150px; perspective-origin: 50% 45%; }
.fold-fx .page.clone { position: absolute; left: 0; top: 0; right: auto; bottom: auto; width: var(--W); height: var(--H); visibility: visible; }
.fx-out, .fx-in { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform, opacity; }
.fx-static { position: absolute; inset: 0; }
.fx-flap { position: absolute; transform-style: preserve-3d; will-change: transform; }
.fx-face { position: absolute; inset: 0; overflow: hidden; }
.fx-face.back { background: var(--paper-tex), #e6d8bd; }
.fx-face.back::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 49.8%, rgba(90, 66, 34, .2) 50%, transparent 50.4%), linear-gradient(90deg, transparent 49.8%, rgba(90, 66, 34, .14) 50%, transparent 50.4%); }
.sh { position: absolute; inset: 0; z-index: 9; opacity: 0; pointer-events: none; }

.t-h .fx-static { clip-path: inset(50% 0 0 0); }
.t-h .fx-flap { left: 0; top: 0; width: 100%; height: 50%; transform-origin: 50% 100%; }
.t-h .front .sh { background: linear-gradient(180deg, rgba(40, 28, 14, .1), rgba(40, 28, 14, .75)); }
.t-h .back .sh { background: linear-gradient(0deg, rgba(40, 28, 14, .55), transparent 60%); }
.t-h .sh.cast { background: linear-gradient(180deg, rgba(30, 20, 10, .8), transparent 40%); clip-path: inset(50% 0 0 0); }

.t-v .fx-static { clip-path: inset(0 50% 0 0); }
.t-v .fx-flap { left: 50%; top: 0; width: 50%; height: 100%; transform-origin: 0 50%; }
.t-v .fx-flap .page.clone { left: calc(var(--W) / -2); }
.t-v .front .sh { background: linear-gradient(270deg, rgba(40, 28, 14, .1), rgba(40, 28, 14, .75)); }
.t-v .back .sh { background: linear-gradient(90deg, rgba(40, 28, 14, .55), transparent 60%); }
.t-v .sh.cast { background: linear-gradient(270deg, rgba(30, 20, 10, .8), transparent 40%); clip-path: inset(0 50% 0 0); }

.t-d .fx-static { clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.t-d .fx-flap { inset: 0; transform-origin: 50% 50%; }
.t-d .fx-face { clip-path: polygon(0 0, 100% 0, 0 100%); }
.t-d .front .sh { background: linear-gradient(to bottom right, rgba(40, 28, 14, .1) 20%, rgba(40, 28, 14, .75) 50%); }
.t-d .back .sh { background: linear-gradient(to bottom right, transparent 20%, rgba(40, 28, 14, .55) 50%); }
.t-d .sh.cast { background: linear-gradient(to top left, transparent 50%, rgba(30, 20, 10, .75) 50%, transparent 70%); }

/* akordeon halaman masuk */
.acc-strip { position: absolute; transform-style: preserve-3d; }
.acc-face { position: absolute; inset: 0; overflow: hidden; backface-visibility: hidden; }
.acc-face .sh.mount { background: linear-gradient(180deg, rgba(255, 255, 255, .3), rgba(40, 28, 14, .6)); }
.acc-face .sh.valley { background: linear-gradient(180deg, rgba(40, 28, 14, .7), rgba(40, 28, 14, .25)); }
.t-h .acc-strip { left: 0; top: 0; width: 100%; height: calc(var(--H) / 3); transform-origin: 50% 0; }
.t-h .acc-strip .acc-strip { top: 100%; }
.t-h .acc-face .page.clone { top: calc(var(--k) * var(--H) / -3); }
.t-d .acc-strip { left: 0; bottom: 0; top: auto; width: 100%; height: calc(var(--H) / 3); transform-origin: 50% 100%; }
.t-d .fx-in > .acc-strip { top: calc(var(--H) * 2 / 3); }
.t-d .acc-strip .acc-strip { bottom: 100%; }
.t-d .acc-face .page.clone { top: calc((var(--k) - 2) * var(--H) / 3); }
.t-v .acc-strip { left: 0; top: 0; width: calc(var(--W) / 3); height: 100%; transform-origin: 0 50%; }
.t-v .acc-strip .acc-strip { left: 100%; }
.t-v .acc-face .page.clone { left: calc(var(--k) * var(--W) / -3); }
.t-v .acc-face .sh.mount { background: linear-gradient(90deg, rgba(255, 255, 255, .25), rgba(40, 28, 14, .55)); }
.t-v .acc-face .sh.valley { background: linear-gradient(90deg, rgba(40, 28, 14, .7), rgba(40, 28, 14, .25)); }
.fx-in { filter: drop-shadow(0 calc(var(--lift, 0) * 30px) calc(var(--lift, 0) * 26px) rgba(40, 28, 14, .35)); }

/* ── Sampul: surat terlipat ─────────────────────────────────── */
.cover {
    position: absolute; inset: 0; z-index: 50;
    background: var(--paper-tex), var(--washi);
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    padding: calc(48px + var(--st)) 24px calc(34px + var(--sb));
    text-align: center; overflow: hidden;
    transition: opacity .8s var(--ease);
}
.cover::before, .cover::after { content: ""; position: absolute; pointer-events: none; }
.cover::before { left: -70px; top: -60px; width: 220px; height: 220px; background: var(--paper-tex), var(--sakura); transform: rotate(32deg); box-shadow: 0 12px 26px -14px rgba(70, 45, 20, .5); }
.cover::after { right: -90px; bottom: -80px; width: 250px; height: 250px; background: var(--paper-tex), var(--sage); transform: rotate(18deg); box-shadow: 0 -10px 26px -14px rgba(70, 45, 20, .5); }
.cover.leaving { opacity: 0; pointer-events: none; }
.cover.gone { display: none; }
.cv-top, .cv-guest { position: relative; z-index: 2; }
.cv-names { font-family: var(--f-display); font-weight: 600; font-size: 40px; color: var(--indigo); margin-top: 10px; line-height: 1.1; }
.cv-names em { font-style: normal; color: var(--red); font-weight: 400; }
.cv-date { font-family: var(--f-display); font-size: 14px; letter-spacing: .24em; color: var(--ink-2); margin-top: 8px; }
.cv-to { font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }
.cv-name { font-family: var(--f-display); font-size: 25px; font-weight: 600; color: var(--ink); margin: 6px 0 2px; }
.cv-note { font-size: 10.5px; color: var(--ink-3); margin-top: 12px; }
.cv-guest .btn { margin-top: 16px; }

.letter { position: relative; z-index: 2; width: 232px; height: 296px; perspective: 1000px; flex-shrink: 0; transition: transform .9s var(--ease); }
.lt-inside {
    position: absolute; inset: 0; background: var(--paper-tex), var(--sheet);
    box-shadow: 0 24px 40px -22px rgba(60, 40, 20, .65), 0 3px 8px rgba(60, 40, 20, .12);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.arab.sm { font-size: 26px; opacity: 0; transition: opacity .6s .9s; }
.lt-heart { width: 44px; height: 40px; opacity: 0; transform: scale(.4); transition: opacity .5s 1s, transform .6s var(--spring) 1s; }
.lt-flap { position: absolute; top: 0; height: 100%; width: 64%; transform-style: preserve-3d; filter: drop-shadow(0 4px 6px rgba(60, 40, 20, .28)); transition: transform 1s var(--ease), opacity .4s; }
.lt-flap .face { position: absolute; inset: 0; }
.lt-flap.l { left: 0; transform-origin: 0 50%; transition-delay: .55s; }
.lt-flap.l .face { background: var(--paper-tex), #efe6d4; clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%); }
.lt-flap.r { right: 0; transform-origin: 100% 50%; transition-delay: .4s; }
.lt-flap.r .face {
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
    background-color: var(--indigo);
    background:
        radial-gradient(circle at 50% 100%, transparent 7px, rgba(246, 240, 228, .16) 7.5px, rgba(246, 240, 228, .16) 8.5px, transparent 9px, transparent 11px, rgba(246, 240, 228, .12) 11.5px, rgba(246, 240, 228, .12) 12.5px, transparent 13px) 0 0 / 26px 13px,
        var(--noise), radial-gradient(130% 90% at 30% 20%, #3d4e74, var(--indigo));
}
.lt-cord { position: absolute; left: -8px; right: -8px; top: 54%; height: 9px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .5s var(--ease), opacity .4s; }
.lt-cord i { height: 2px; background: linear-gradient(90deg, #a8382e, #d9594c 50%, #a8382e); border-radius: 2px; box-shadow: 0 1px 1px rgba(0, 0, 0, .2); }
.lt-cord i:nth-child(2) { background: linear-gradient(90deg, #c9a75c, #f0d9a0 50%, #c9a75c); }
.lt-knot { position: absolute; left: 50%; top: 54%; width: 70px; height: 48px; transform: translate(-50%, -38%); filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); transition: transform .5s var(--spring), opacity .4s; }
.lt-knot svg { width: 100%; height: 100%; }
.lt-seal {
    position: absolute; right: 22px; bottom: 26px; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center;
    background: var(--red); color: #fff3e6; font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .02em;
    border-radius: 50%; box-shadow: inset 0 0 0 3px #a8382e, inset 0 0 0 4px rgba(255, 240, 220, .55), 0 3px 6px rgba(80, 20, 10, .35);
    transform: rotate(-10deg); transition: transform .5s var(--ease), opacity .4s;
}
.lt-seal i { font-style: normal; font-weight: 400; font-size: 10px; margin: 0 1px; }
.lt-crane { position: absolute; left: -18px; top: -30px; width: 72px; height: 48px; filter: drop-shadow(0 6px 4px rgba(60, 40, 20, .25)); transform: rotate(-8deg); animation: perch 3.5s ease-in-out infinite; }
@keyframes perch { 50% { transform: rotate(-4deg) translateY(-3px); } }

.cover.opening .lt-cord { transform: scaleX(0); opacity: 0; }
.cover.opening .lt-knot { transform: translate(-50%, -38%) scale(0) rotate(90deg); opacity: 0; }
.cover.opening .lt-seal { transform: translateY(40px) rotate(30deg); opacity: 0; }
.cover.opening .lt-flap.r { transform: rotateY(168deg); opacity: .0; transition: transform 1s var(--ease) .4s, opacity .3s 1.15s; }
.cover.opening .lt-flap.l { transform: rotateY(-168deg); opacity: .0; transition: transform 1s var(--ease) .55s, opacity .3s 1.3s; }
.cover.opening .arab.sm { opacity: 1; }
.cover.opening .lt-heart { opacity: 1; transform: none; }
.cover.opening .lt-crane { animation: flyOff 1.6s var(--ease) forwards; }
.cover.opening .cv-guest .btn { opacity: 0; transform: translateY(8px); transition: .3s; }
.cover.leaving .letter { transform: scale(1.5); }
@keyframes flyOff { to { transform: translate(260px, -320px) rotate(-18deg) scale(.6); opacity: 0; } }

/* ── 01 Pembuka ─────────────────────────────────────────────── */
.pg-open .pg-scroll { padding-bottom: calc(150px + var(--sb)); }
.op-names::before { content: ""; position: absolute; left: 50%; top: 50%; width: 250px; height: 250px; transform: translate(-50%, -46%); border-radius: 50%; background: var(--paper-tex), var(--sakura); box-shadow: 0 18px 30px -20px rgba(150, 60, 50, .55); opacity: .75; z-index: -1; }
.pg-open .pg-scroll { z-index: 2; isolation: isolate; }
.op-pair { position: relative; width: 220px; height: 78px; margin: 20px 0 6px; }
.op-crane { position: absolute; top: 6px; width: 92px; height: 62px; filter: drop-shadow(0 8px 6px rgba(70, 45, 20, .25)); }
.op-crane.l { right: 50%; margin-right: 12px; transform: scaleX(-1); animation: hover 4s ease-in-out infinite; }
.op-crane.r { left: 50%; margin-left: 12px; animation: hover 4s ease-in-out -2s infinite; }
.op-heart { position: absolute; left: 50%; top: 32px; width: 26px; height: 24px; margin-left: -13px; animation: beat 2.4s ease-in-out infinite; }
@keyframes hover { 50% { transform: translateY(-5px) scaleX(var(--sx, 1)); } }
.op-crane.l { --sx: -1; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.15); } }
.op-names { position: relative; font-family: var(--f-display); font-weight: 700; color: var(--indigo); font-size: 52px; line-height: 1.02; display: flex; flex-direction: column; align-items: center; }
.op-names em { font-style: normal; font-weight: 400; font-size: 30px; color: var(--red); margin: 4px 0; }
.op-full { font-size: 12px; color: var(--ink-2); letter-spacing: .08em; margin-top: 14px; }
.op-date { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-family: var(--f-display); color: var(--ink-2); font-size: 13px; letter-spacing: .12em; }
.op-date span { padding: 6px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 92px; }
.op-date b { font-size: 38px; font-weight: 700; color: var(--red); line-height: 1; }
.op-quote { font-family: var(--f-display); font-size: 14px; color: var(--ink-3); margin-top: 22px; }
.hanko { margin-top: 18px; width: 44px; height: 44px; display: grid; place-items: center; grid-auto-flow: column; background: var(--red); color: #fff3e6; font-family: var(--f-display); font-weight: 700; font-size: 14px; transform: rotate(-6deg); box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 4px rgba(255, 240, 220, .6); }
.hanko i { font-style: normal; opacity: .7; }
.waves { position: absolute; left: 0; right: 0; bottom: 0; height: 150px; z-index: 1; pointer-events: none; }
.waves i { position: absolute; bottom: -40px; height: 150px; border-radius: 50% 50% 0 0; box-shadow: 0 -6px 14px -6px rgba(70, 45, 20, .35); }
.waves i:nth-child(1) { left: -20%; width: 90%; background: var(--paper-tex), var(--sage); bottom: -30px; }
.waves i:nth-child(2) { right: -25%; width: 95%; background: var(--paper-tex), var(--sakura); bottom: -56px; }
.waves i:nth-child(3) { left: 10%; width: 80%; background: var(--paper-tex), var(--indigo); bottom: -96px; }
.waves.dark i:nth-child(1) { background: var(--paper-tex), #3f5279; }
.waves.dark i:nth-child(2) { background: var(--paper-tex), #4b5f88; }
.waves.dark i:nth-child(3) { background: var(--paper-tex), var(--red); }

/* potongan kertas di sudut */
.cut { position: absolute; width: 130px; height: 130px; z-index: 1; pointer-events: none; }
.cut i { position: absolute; inset: 0; box-shadow: 0 6px 12px -6px rgba(70, 45, 20, .45); }
.cut-tr { top: 0; right: 0; }
.cut-tr i:nth-child(1) { background: var(--paper-tex), var(--sage); clip-path: polygon(30% 0, 100% 0, 100% 70%); }
.cut-tr i:nth-child(2) { background: var(--paper-tex), var(--sakura); clip-path: polygon(55% 0, 100% 0, 100% 45%); filter: drop-shadow(-2px 3px 3px rgba(70, 45, 20, .3)); }
.cut-tr i:nth-child(3) { background: var(--paper-tex), var(--red); clip-path: polygon(78% 0, 100% 0, 100% 22%); }
.cut-bl { bottom: 0; left: 0; }
.cut-bl i:nth-child(1) { background: var(--paper-tex), var(--indigo); clip-path: polygon(0 30%, 70% 100%, 0 100%); }
.cut-bl i:nth-child(2) { background: var(--paper-tex), var(--sage); clip-path: polygon(0 55%, 45% 100%, 0 100%); }
.cut-bl i:nth-child(3) { background: var(--paper-tex), var(--washi); clip-path: polygon(0 78%, 22% 100%, 0 100%); }

/* ── 02 Salam ───────────────────────────────────────────────── */
.pg-salam .title { font-size: 30px; }
.pg-salam .title small { font-size: 15px; }
.ayat { text-align: center; }
.ayat-ar { font-family: var(--f-arab); font-size: 19px; line-height: 1.95; color: var(--indigo); direction: rtl; }
.ayat blockquote { font-family: var(--f-display); font-size: 14px; line-height: 1.85; color: var(--ink-2); margin-top: 12px; }
.ayat figcaption { margin-top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .24em; color: var(--red); text-transform: uppercase; }

/* ── 03 Mempelai ────────────────────────────────────────────── */
.person { display: flex; align-items: center; gap: 18px; width: 100%; max-width: 340px; margin-top: 22px; text-align: left; }
.person.b { flex-direction: row-reverse; text-align: right; }
.frame { flex: 0 0 116px; height: 146px; padding: 6px; background: var(--paper-tex), var(--sheet); box-shadow: 0 14px 22px -14px rgba(70, 45, 20, .55), 0 1px 3px rgba(70, 45, 20, .12); transform: rotate(-3deg); position: relative; }
.person.b .frame { transform: rotate(3deg); }
.frame::after { content: ""; position: absolute; left: 50%; top: -9px; width: 46px; height: 18px; margin-left: -23px; background: rgba(241, 201, 195, .75); transform: rotate(-4deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.person.b .frame::after { background: rgba(169, 184, 160, .75); transform: rotate(5deg); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.kite { position: relative; display: grid; place-items: center; width: 100%; height: 100%; background: var(--paper-tex), #efe6d4; overflow: hidden; }
.kite::before { content: ""; position: absolute; width: 74px; height: 74px; transform: rotate(45deg); background: linear-gradient(90deg, #3f5279 50%, var(--indigo) 50%); box-shadow: 0 8px 14px -6px rgba(36, 48, 73, .6); }
.person.b .kite::before { background: linear-gradient(90deg, #d9594c 50%, var(--red) 50%); box-shadow: 0 8px 14px -6px rgba(168, 56, 46, .6); }
.kite b { position: relative; font-family: var(--f-display); font-size: 36px; font-weight: 700; color: #f6f0e4; }
.p-info { flex: 1; min-width: 0; }
.p-name { font-family: var(--f-display); font-weight: 700; font-size: 23px; line-height: 1.2; color: var(--indigo); margin: 6px 0 8px; }
.p-parent { font-size: 12.5px; line-height: 1.65; color: var(--ink-2); }
.p-parent b { font-weight: 700; color: var(--ink); }
.knot { display: flex; align-items: center; gap: 12px; width: 70%; margin-top: 22px; }
.knot span { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 10px); opacity: .6; }
.knot .oheart { width: 26px; height: 24px; flex-shrink: 0; }

/* ── 04 Kisah ───────────────────────────────────────────────── */
.story { list-style: none; width: 100%; max-width: 340px; margin-top: 18px; position: relative; }
.story::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 0; border-left: 1.5px dashed rgba(200, 71, 59, .5); }
.note { position: relative; background: var(--paper-tex), var(--sheet); padding: 22px 20px 18px; margin-top: 18px; text-align: left; box-shadow: 0 14px 24px -16px rgba(70, 45, 20, .5), 0 1px 3px rgba(70, 45, 20, .1); }
.note::before { content: ""; position: absolute; top: -9px; left: 22px; width: 64px; height: 18px; background: rgba(169, 184, 160, .8); transform: rotate(-3deg); }
.note.n1 { transform: rotate(-1.2deg); margin-right: 18px; }
.note.n2 { transform: rotate(1deg); margin-left: 18px; }
.note.n2::before { left: auto; right: 22px; background: rgba(241, 201, 195, .9); transform: rotate(4deg); }
.note.n3 { transform: rotate(-.6deg); margin-right: 8px; }
.note.n3::before { background: rgba(47, 62, 92, .35); }
.n-step { font-size: 10px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--red); }
.note h3 { font-family: var(--f-display); font-weight: 700; font-size: 21px; color: var(--indigo); margin: 4px 0 6px; }
.note p { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }

/* ── 05 Hitung mundur ───────────────────────────────────────── */
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; width: 100%; max-width: 330px; margin-top: 30px; }
.cd-box { position: relative; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--paper-tex), var(--washi); color: var(--indigo); box-shadow: 0 14px 22px -12px rgba(0, 0, 0, .55); }
.cd-box::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 50%, rgba(70, 45, 20, .09) 50%); }
.cd-box:nth-child(even) { transform: translateY(8px); }
.cd-box b { position: relative; font-family: var(--f-display); font-size: 28px; font-weight: 700; line-height: 1; }
.cd-box span { position: relative; font-size: 9.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-top: 6px; }
.cd-date { font-family: var(--f-display); font-size: 16px; letter-spacing: .06em; margin-top: 30px; color: #f6f0e4; }
.cd-cranes { position: relative; width: 200px; height: 90px; margin-top: 28px; }
.cd-cranes i { position: absolute; width: 60px; height: 40px; animation: hover 4s ease-in-out infinite; }
.cd-cranes i:nth-child(1) { left: 0; top: 40px; width: 46px; height: 31px; animation-delay: -1s; }
.cd-cranes i:nth-child(2) { left: 70px; top: 6px; }
.cd-cranes i:nth-child(3) { right: 0; top: 46px; width: 40px; height: 27px; animation-delay: -2.4s; }

/* ── 06 Acara ───────────────────────────────────────────────── */
.ev { position: relative; width: 100%; max-width: 330px; margin-top: 40px; padding: 26px 22px 22px; background: var(--paper-tex), var(--sheet); box-shadow: 0 16px 26px -18px rgba(70, 45, 20, .5), 0 1px 3px rgba(70, 45, 20, .1); }
.ev::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--paper-tex), var(--sage); transform: rotate(2.4deg) translate(6px, 4px); box-shadow: 0 12px 20px -16px rgba(70, 45, 20, .5); }
.ev.resepsi::before { background: var(--paper-tex), var(--sakura); transform: rotate(-2.4deg) translate(-6px, 4px); }
.ev-ico { position: absolute; top: -20px; left: 50%; margin-left: -20px; width: 40px; height: 40px; display: grid; place-items: center; font-size: 20px; color: #fff8ef; background: var(--paper-tex), var(--indigo); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.ev.resepsi .ev-ico { background: var(--paper-tex), var(--red); }
.ev h3 { font-family: var(--f-display); font-size: 25px; font-weight: 700; color: var(--indigo); margin-top: 6px; }
.ev ul { list-style: none; margin-top: 14px; display: grid; gap: 10px; text-align: left; }
.ev li { display: flex; align-items: flex-start; gap: 11px; font-size: 13.5px; line-height: 1.5; color: var(--ink); padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.ev li:last-child { border-bottom: 0; padding-bottom: 0; }
.ev li .ico { font-size: 17px; color: var(--red); margin-top: 1px; }
.ev .btn { margin-top: 16px; }

/* ── 07 Lokasi ──────────────────────────────────────────────── */
.map-frame { position: relative; width: 100%; max-width: 340px; height: 220px; margin-top: 22px; padding: 7px; background: var(--paper-tex), var(--sheet); box-shadow: 0 16px 26px -16px rgba(70, 45, 20, .55); transform: rotate(-1deg); }
.leaflet-map, .map-illu { display: block; position: relative; width: 100%; height: 100%; overflow: hidden; background: #e8dfcd; z-index: 0; }
.map-illu svg { width: 100%; height: 100%; display: block; }
.map-illu .route { animation: dash 2.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.mi-pin { position: absolute; left: 74.5%; top: 29%; width: 34px; height: 31px; transform: translate(-50%, -90%); animation: hover 2.6s ease-in-out infinite; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .25)); }
.mi-you { position: absolute; left: 12%; top: 81%; transform: translate(-50%, 8px); font-size: 10px; font-weight: 700; background: var(--indigo); color: #fff; padding: 2px 7px; }
.map-frame::after { content: ""; position: absolute; inset: 7px; pointer-events: none; z-index: 500; background: linear-gradient(90deg, transparent 33.2%, rgba(0, 0, 0, .06) 33.3%, transparent 50%, rgba(255, 255, 255, .12) 66.6%, transparent 66.7%); }
.lm-marker svg { width: 38px; height: 34px; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .3)); }
.loc { text-align: center; margin-top: 26px; }
.loc .role .ico { font-size: 14px; }
.loc-name { font-family: var(--f-display); font-size: 22px; font-weight: 700; color: var(--indigo); margin-top: 8px; }
.loc-addr { font-size: 13px; line-height: 1.7; color: var(--ink-2); margin-top: 6px; }
.leaflet-container { font-family: var(--f-ui); }

/* ── 08 Galeri ──────────────────────────────────────────────── */
.album { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; width: 100%; max-width: 340px; margin-top: 24px; }
.mount { position: relative; display: block; width: 100%; padding: 6px 6px 6px; background: var(--paper-tex), var(--sheet); box-shadow: 0 14px 22px -14px rgba(70, 45, 20, .5), 0 1px 3px rgba(70, 45, 20, .1); }
.mount img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.mount.m0 { grid-column: span 2; transform: rotate(-1deg); }
.mount.m0 img { aspect-ratio: 16 / 10; }
.mount.m1 { transform: rotate(1.6deg); }
.mount.m2 { transform: rotate(-1.4deg); }
.mount.m3 { transform: rotate(-.8deg); }
.mount.m4 { transform: rotate(1.2deg); }
.corner { position: absolute; width: 18px; height: 18px; background: var(--indigo); opacity: .85; }
.corner.tl { left: 2px; top: 2px; clip-path: polygon(0 0, 100% 0, 0 100%); }
.corner.br { right: 2px; bottom: 2px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.album.empty .mount { padding: 8px 8px 0; }
.ph-art { display: grid; place-items: center; aspect-ratio: 1; position: relative; overflow: hidden; }
.ph-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 50%, rgba(70, 45, 20, .07) 50%); }
.ph-art svg { position: relative; width: 66%; height: 66%; filter: drop-shadow(0 8px 6px rgba(70, 45, 20, .25)); }
.ph.p0 .ph-art { background: var(--paper-tex), #e7ece2; }
.ph.p1 .ph-art { background: var(--paper-tex), #f5e1dc; }
.ph.p1 .ph-art svg { width: 52%; }
.ph.p2 .ph-art { background: var(--paper-tex), #e3e6ee; }
.ph.p3 .ph-art { background: var(--paper-tex), #f3ead8; }
.ph.p0 { transform: rotate(-1.5deg); }
.ph.p1 { transform: rotate(1.4deg) translateY(10px); }
.ph.p2 { transform: rotate(1deg); }
.ph.p3 { transform: rotate(-1.2deg) translateY(10px); }
.ph figcaption { font-family: var(--f-display); font-size: 13px; color: var(--ink-2); padding: 9px 0 10px; }
.ph:nth-child(odd) .ph-art svg { animation: hover 5s ease-in-out infinite; }
.album-cap { font-size: 12px; color: var(--ink-3); margin-top: 22px; letter-spacing: .04em; }

/* ── 09 Hadiah (gift partial) ──────────────────────────────── */
.gift-wrap { width: calc(100% + 52px); margin: 16px -26px 0; text-align: left; }
.gift-wrap:not(:has(#gift-section)) { display: none; }
.gift-wrap #gift-section { background: transparent !important; padding: 0 0 6px !important; font-family: var(--f-ui) !important; }
.gift-wrap .gs-heading { display: none; }
.gift-wrap .gs-wrap { padding: 0 26px !important; }
.gift-wrap .gs-track { padding: 6px 26px 16px !important; }
.gift-wrap .gs-bank-track { padding: 6px 26px 12px !important; }
.gift-wrap .gs-card, .gift-wrap .gs-bank-card { border-radius: 0 !important; border: 0 !important; background: var(--paper-tex), var(--sheet) !important; box-shadow: 0 14px 22px -14px rgba(70, 45, 20, .5), 0 1px 3px rgba(70, 45, 20, .1) !important; }
.gift-wrap .gs-img-ph { background: var(--paper-tex), var(--sakura-bg) !important; }
.gift-wrap .gs-btn, .gift-wrap .gs-bank-copy { border-radius: 0 !important; font-family: var(--f-ui) !important; }
.gift-wrap .gs-btn-buy { background: var(--red) !important; color: #fff8ef !important; border: 0 !important; }
.gift-wrap .gs-bank-logo { border-radius: 0 !important; background: var(--indigo) !important; clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%); }
.gift-wrap .gs-bank-logo.bride { background: var(--red) !important; }
.gift-wrap .gs-dot.taken { background: var(--red) !important; }
.gift-wrap .gs-price { color: var(--red) !important; font-family: var(--f-display) !important; font-weight: 700 !important; }
.gift-wrap .gs-name, .gift-wrap .gs-bank-name-text, .gift-wrap .gs-bank-holder, .gift-wrap .gs-sub-label { font-family: var(--f-ui) !important; }
.gift-wrap .gs-bank-number { font-family: var(--f-display) !important; color: var(--indigo) !important; }
#gs-modal { font-family: var(--f-ui) !important; }

/* ── 10 RSVP ────────────────────────────────────────────────── */
.rsvp-form { text-align: left; display: flex; flex-direction: column; }
.rsvp-form::before { background: var(--paper-tex), var(--sage); transform: rotate(2deg) translate(5px, 6px); }
.f-l { font-size: 10.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--red); margin: 14px 0 6px; }
.f-l:first-of-type { margin-top: 0; }
.f-in {
    width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: transparent;
    border: 0; border-bottom: 1px solid rgba(47, 62, 92, .28); padding: 8px 2px; outline: none; resize: none;
    transition: border-color .25s;
}
textarea.f-in { line-height: 28px; padding: 2px; background: repeating-linear-gradient(180deg, transparent 0 27px, rgba(47, 62, 92, .16) 27px 28px); border-bottom: 0; }
.f-in:focus { border-color: var(--red); }
.f-in::placeholder { color: var(--ink-3); }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 8px 13px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); background: rgba(47, 62, 92, .06); transition: .25s; clip-path: polygon(0 0, 100% 0, 100% 70%, calc(100% - 8px) 100%, 0 100%); }
.choice input:checked + span { background: var(--indigo); color: #f6f0e4; }
.choice input:focus-visible + span { outline: 2px solid var(--red); }
.rsvp-form .btn { align-self: stretch; margin-top: 20px; }
.btn.loading span { opacity: .6; }
.rsvp-form.sent .btn { background: var(--paper-tex), var(--sage-d); }

/* ── 11 Ucapan ──────────────────────────────────────────────── */
.wishes-list { width: 100%; max-width: 340px; margin-top: 22px; display: flex; flex-direction: column; gap: 14px; text-align: left; }
.wish-item { display: flex; gap: 12px; padding: 16px 16px 14px; background: var(--paper-tex), var(--sheet); box-shadow: 0 12px 20px -14px rgba(70, 45, 20, .5), 0 1px 3px rgba(70, 45, 20, .1); position: relative; }
.wish-item:nth-child(odd) { transform: rotate(-.7deg); }
.wish-item:nth-child(even) { transform: rotate(.6deg); }
.wish-item::after { content: ""; position: absolute; top: 0; right: 0; width: 18px; height: 18px; background: linear-gradient(225deg, var(--paper) 50%, #ddd0b6 50%); }
.wish-item.new { animation: unfoldIn .8s var(--ease) both; transform-origin: 50% 0; }
@keyframes unfoldIn { from { transform: perspective(600px) rotateX(-80deg); opacity: 0; } }
.wish-avatar { flex: 0 0 36px; height: 36px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 16px; color: #fff8ef; background: linear-gradient(135deg, #d9594c 50%, var(--red) 50%); }
.wish-item:nth-child(3n+2) .wish-avatar { background: linear-gradient(135deg, #3f5279 50%, var(--indigo) 50%); }
.wish-item:nth-child(3n) .wish-avatar { background: linear-gradient(135deg, #b5c3ad 50%, var(--sage-d) 50%); }
.wish-body { flex: 1; min-width: 0; }
.wish-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.wish-name { font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--indigo); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wish-badge { flex-shrink: 0; font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 7px; }
.wish-badge.hadir { background: rgba(127, 146, 119, .2); color: #55684e; }
.wish-badge.tidak { background: rgba(200, 71, 59, .14); color: var(--red-d); }
.wish-badge.ragu { background: rgba(47, 62, 92, .1); color: var(--indigo); }
.wish-message { font-size: 13.5px; line-height: 1.65; color: var(--ink-2); margin-top: 5px; overflow-wrap: anywhere; }
.wish-time { display: block; font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.wish-empty { text-align: center; padding: 30px 10px; color: var(--ink-3); font-size: 13.5px; line-height: 1.7; }
.we-art { display: block; width: 90px; height: 60px; margin: 0 auto 14px; animation: hover 4s ease-in-out infinite; }

/* ── 12 Penutup ─────────────────────────────────────────────── */
.pg-end .pg-scroll { padding-bottom: calc(150px + var(--sb)); }
.end-art { position: relative; width: 210px; height: 74px; margin-bottom: 24px; }
.ec { position: absolute; top: 0; width: 84px; height: 56px; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .3)); }
.ec.l { left: 6px; --sx: -1; transform: scaleX(-1); animation: hover 4.4s ease-in-out infinite; }
.ec.r { right: 6px; top: 14px; animation: hover 4.4s ease-in-out -2.2s infinite; }
.end-names { font-family: var(--f-display); font-size: 42px; font-weight: 700; color: #f6f0e4; margin-top: 12px; line-height: 1.05; display: flex; flex-direction: column; align-items: center; }
.end-names em { font-style: normal; font-weight: 400; font-size: 26px; color: var(--sakura); margin: 2px 0; }
.end-fam { display: grid; gap: 14px; margin-top: 24px; width: 100%; max-width: 320px; }
.end-fam p { font-family: var(--f-display); font-size: 14.5px; color: #f6f0e4; padding: 12px 10px; border-top: 1px solid rgba(239, 231, 216, .16); }
.end-fam span { display: block; font-family: var(--f-ui); font-size: 10px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--sakura); margin-bottom: 4px; }
.end-salam { font-family: var(--f-display); font-size: 16px; line-height: 1.6; color: #f6f0e4; margin-top: 18px; }
.credit { font-size: 11px; color: rgba(239, 231, 216, .6); margin-top: 22px; }

/* ── Efek jatuh, toast, lightbox ───────────────────────────── */
.fx-layer { position: absolute; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; }
.fall { position: absolute; top: -40px; display: block; animation: fall 3.4s linear both; filter: drop-shadow(0 3px 2px rgba(70, 45, 20, .2)); }
.fall svg { width: 100%; height: 100%; display: block; }
@keyframes fall {
    0% { transform: translate(0, 0) rotate(0); opacity: 0; }
    8% { opacity: 1; }
    100% { transform: translate(var(--dx), 110vh) rotate(var(--r)); opacity: .9; }
}
.toast {
    position: absolute; left: 50%; bottom: calc(96px + var(--sb)); z-index: 45;
    transform: translate(-50%, 14px); opacity: 0; pointer-events: none;
    padding: 11px 18px; background: rgba(42, 38, 34, .92); color: #fff8ef;
    font-size: 13px; font-weight: 500; white-space: nowrap;
    transition: opacity .3s, transform .35s var(--spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.has-qr .toast { bottom: calc(160px + var(--sb)); }
body.has-qr .hint { bottom: calc(168px + var(--sb)); }
.gallery-lightbox { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; background: rgba(28, 33, 46, .95); opacity: 0; transition: opacity .3s; }
.lb-img-wrap { max-width: 92vw; max-height: 80vh; padding: 8px; background: var(--sheet); }
.lb-img-wrap img { max-width: calc(92vw - 16px); max-height: calc(80vh - 16px); object-fit: contain; }
.lb-close, .lb-prev, .lb-next { position: absolute; width: 46px; height: 46px; color: #fff; font-size: 26px; line-height: 1; background: rgba(255, 255, 255, .12); display: grid; place-items: center; }
.lb-close { top: calc(16px + var(--st)); right: 16px; font-size: 18px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: calc(24px + var(--sb)); left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .75); font-size: 13px; }

/* ── Layar kecil ────────────────────────────────────────────── */
@media (max-height: 720px) {
    .op-names { font-size: 44px; }
    .op-names::before { width: 210px; height: 210px; }
    .letter { width: 200px; height: 256px; }
    .cv-names { font-size: 34px; }
    .title { font-size: 30px; }
    .pg-scroll { padding-top: calc(62px + var(--st)); }
}

/* ── Desktop: panggung kertas di atas meja ──────────────────── */
@media (min-width: 760px) {
    .desk { display: block; }
    .stage {
        inset: auto; left: 50%; top: 50%;
        width: 430px; height: min(900px, calc(100vh - 48px));
        transform: translate(-50%, -50%);
        box-shadow: 0 40px 80px -30px rgba(50, 35, 15, .6), 0 6px 16px rgba(50, 35, 15, .18);
    }
    .lb-img-wrap img { max-width: 70vw; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .sky { display: none; }
}
