/* ════════════════════════════════════════════════════════════════
   KARNAVAL CINTA — pasar malam: loket tiket, bianglala, bohlam, tenda
   ════════════════════════════════════════════════════════════════ */
:root {
    --ink: #2b2440;
    --ink-s: #5b5273;
    --navy: #27325e;
    --navy-d: #1b2347;
    --cream: #fff6e5;
    --paper: #fff7e6;
    --red: #e5484d;
    --red-d: #c93a45;
    --yellow: #ffd84a;
    --blue: #4aa3df;
    --pink: #ff9fc2;
    --mint: #7fd8be;
    --orange: #ff9f5a;
    --col: 480px;
    --f-d: 'Lilita One', 'Nunito', system-ui, sans-serif;
    --f-b: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(.22, .8, .24, 1);
    --pop: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font: 400 15px/1.65 var(--f-b);
    color: var(--ink);
    background-color: var(--navy);
    background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .5) 1.2px, transparent 1.6px), radial-gradient(circle at 70% 60%, rgba(255, 255, 255, .4) 1.2px, transparent 1.6px);
    background-size: 90px 90px, 130px 130px;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}
body.no-scroll { overflow: hidden; height: 100vh; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }
svg { display: block; }
.ico { width: 18px; height: 18px; flex: none; }

/* ── Lampu bohlam (kedip bergantian) ── */
.bulbs { position: absolute; left: 10px; right: 10px; height: 12px; z-index: 2; pointer-events: none; }
.bulbs.top { top: -6px; }
.bulbs.bot { bottom: -6px; }
.bulbs::before, .bulbs::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, #fffbd0 0 20%, #ffd84a 26% 50%, rgba(255, 216, 74, 0) 66%) 0 50% / 24px 12px repeat-x;
    animation: blinkA 1.3s ease-in-out infinite;
}
.bulbs::after { background-position: 12px 50%; animation-name: blinkB; }
@keyframes blinkA { 0%, 100% { opacity: 1; } 50% { opacity: .2; } }
@keyframes blinkB { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ── Bianglala (cover, hero, hitung mundur) ── */
.wheel { position: relative; width: 100%; aspect-ratio: 1 / 1; color: currentColor; --spin: 80s; }
.w-leg { position: absolute; left: 50%; top: 50%; width: 5px; height: 64%; background: currentColor; opacity: .85; transform-origin: 50% 0; border-radius: 3px; }
.w-leg.l { transform: rotate(17deg); }
.w-leg.r { transform: rotate(-17deg); }
.w-rot { position: absolute; inset: 0; z-index: 1; animation: spin var(--spin) linear infinite; }
.w-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.arm { position: absolute; inset: 0; transform: rotate(var(--a)); }
.pivot { position: absolute; left: 50%; top: 6%; width: 0; height: 0; }
.cab { position: absolute; left: 0; top: 0; transform-origin: 0 0; animation: cabSpin var(--spin) linear infinite; }
.cab-in { position: absolute; left: 0; top: 0; width: var(--cw, 30px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.cab-in::before { content: ''; width: 2px; height: calc(var(--cw, 30px) * .22); background: currentColor; opacity: .8; }
.cab-roof { width: 100%; height: calc(var(--cw, 30px) * .3); background: var(--cc); border: 2px solid var(--ink); border-bottom: 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.cab-box { width: 88%; min-height: calc(var(--cw, 30px) * .5); background: #fff7e6; border: 2px solid var(--ink); border-radius: 0 0 8px 8px; display: grid; place-items: center; align-content: center; color: var(--ink); text-align: center; line-height: 1; }
.cab-box b { font: 400 calc(var(--cw, 30px) * .36)/1 var(--f-d); font-variant-numeric: tabular-nums; }
.cab-box em { margin-top: 2px; font: 800 calc(var(--cw, 30px) * .14)/1 var(--f-b); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: #7a6a9a; }
.cab-box.tick { animation: pulse .5s var(--pop); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes cabSpin { from { transform: rotate(calc(var(--a) * -1)); } to { transform: rotate(calc(var(--a) * -1 - 360deg)); } }
@keyframes pulse { 0% { transform: scale(1); } 40% { transform: scale(1.16); } 100% { transform: scale(1); } }
.w-cover { --cw: 30px; --spin: 90s; }
.w-hero { --cw: 26px; --spin: 70s; }
.w-count { --cw: 62px; --spin: 120s; }
.w-count .cab-box { min-height: 46px; padding: 3px 0 4px; }

/* ════════════════════════════════════════════════════════════════
   COVER · LOKET TIKET
   ════════════════════════════════════════════════════════════════ */
.intro {
    position: fixed;
    inset: 0;
    z-index: 6000;
    overflow: hidden;
    background: linear-gradient(180deg, #1b2347 0%, #3a3d7a 36%, #c2577f 72%, #ff9f6a 100%);
}
.in-sky .st { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; animation: twinkle 2.4s ease-in-out infinite; }
.st.s1 { left: 12%; top: 8%; } .st.s2 { left: 30%; top: 16%; animation-delay: -.6s; } .st.s3 { left: 52%; top: 6%; animation-delay: -1.2s; }
.st.s4 { left: 74%; top: 14%; animation-delay: -.3s; } .st.s5 { left: 90%; top: 7%; animation-delay: -1.7s; } .st.s6 { left: 20%; top: 26%; animation-delay: -.9s; } .st.s7 { left: 64%; top: 24%; animation-delay: -2s; }
.moon { position: absolute; right: 9%; top: 11%; width: 46px; height: 46px; border-radius: 50%; background: #fff1c1; box-shadow: inset -10px -4px 0 0 #ffd96a, 0 0 30px rgba(255, 241, 193, .55); }
.in-wheel { position: absolute; left: 50%; top: 33%; width: min(120vw, 560px); transform: translate(-50%, -50%); color: #ffd9a8; opacity: .85; transition: opacity .6s; }
.in-string { position: absolute; left: 0; top: 0; width: 100%; height: 62px; z-index: 3; }
.in-string .bu { animation: twinkle 1.8s ease-in-out infinite var(--d); }
.in-balloons .bl { position: absolute; bottom: -100px; width: 44px; height: 78px; animation: rise 16s linear infinite; }
.bl.b1 { left: 8%; } .bl.b2 { left: 80%; animation-delay: -6s; } .bl.b3 { left: 34%; animation-delay: -10s; width: 36px; height: 64px; } .bl.b4 { left: 62%; animation-delay: -2.5s; width: 38px; height: 68px; }
@keyframes rise {
    0%   { transform: translate3d(0, 0, 0) rotate(-4deg); }
    50%  { transform: translate3d(18px, -60vh, 0) rotate(4deg); }
    100% { transform: translate3d(-8px, -125vh, 0) rotate(-4deg); }
}

.booth { position: absolute; left: 50%; bottom: 0; z-index: 4; width: min(92vw, 380px); transform: translateX(-50%); transition: opacity .6s; }
.bt-sign { position: relative; width: 88%; margin: 0 auto; padding: 22px 10px 18px; text-align: center; background: var(--ink); border: 4px solid var(--yellow); border-radius: 14px; box-shadow: 0 0 34px rgba(255, 216, 74, .4); }
.bt-sign b { display: block; font: 400 35px/1 var(--f-d); letter-spacing: .06em; color: var(--yellow); text-shadow: 0 0 14px rgba(255, 216, 74, .65); }
.bt-sign b.two { color: var(--pink); text-shadow: 0 0 14px rgba(255, 159, 194, .7); margin-top: 2px; }
.bt-awning { position: relative; height: 40px; margin-top: 8px; background: repeating-linear-gradient(90deg, var(--red) 0 34px, var(--paper) 34px 68px); border-radius: 8px 8px 0 0; border: 3px solid var(--ink); border-bottom: 0; }
.bt-awning::after { content: ''; position: absolute; left: -3px; right: -3px; bottom: -15px; height: 17px; background: radial-gradient(circle at 17px 0, var(--red) 16px, transparent 17px) 0 0 / 68px 17px repeat-x, radial-gradient(circle at 51px 0, var(--paper) 16px, transparent 17px) 0 0 / 68px 17px repeat-x; }
.bt-body { position: relative; padding: 28px 18px calc(18px + env(safe-area-inset-bottom)); background: var(--paper); border: 3px solid var(--ink); border-bottom: 0; text-align: center; }
.bt-guest { display: grid; gap: 0; margin-bottom: 10px; }
.bt-guest span { font: 800 10.5px/1.4 var(--f-b); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-s); }
.bt-guest b { font: 400 22px/1.2 var(--f-d); color: var(--red); overflow-wrap: anywhere; }
.bt-window { position: relative; height: 62px; margin-bottom: 14px; border: 4px solid var(--ink); border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 50% 130%, #ffcf70 0%, #5a3f6a 58%, #241d3b 100%); }
.bt-slot { position: absolute; left: 16%; right: 16%; bottom: 10px; height: 8px; border-radius: 5px; background: #0b0818; box-shadow: 0 0 0 2px rgba(255, 255, 255, .15); }
.bt-bell { position: absolute; right: 14px; top: 8px; width: 16px; height: 14px; border-radius: 9px 9px 3px 3px; background: var(--yellow); border: 2px solid var(--ink); transform-origin: 50% 0; }
.bt-hint { margin-top: 10px; font-size: 12px; color: var(--ink-s); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border: 3px solid var(--ink); border-radius: 99px;
    font: 400 17px/1 var(--f-d); letter-spacing: .04em; color: #fff; background: var(--red);
    box-shadow: 0 4px 0 var(--ink); text-decoration: none; cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .18s; -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.buy { width: 100%; font-size: 20px; padding: 15px; animation: nudge 2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.btn.red { background: var(--red); }
.btn.blue { background: var(--blue); }
.btn.yel { background: var(--yellow); color: var(--ink); }
.btn.sm { padding: 9px 18px; font-size: 14px; }
.btn.big { padding: 15px 24px; font-size: 19px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .75; cursor: default; transform: none; }
.btn.sending .ico { animation: spin 1s linear infinite; }

/* tiket besar (dicetak mesin) */
.bigtk { position: absolute; left: 50%; top: 42%; z-index: 20; width: min(88vw, 380px); opacity: 0; pointer-events: none; transform: translate(-50%, -50%) translateY(46vh) scale(.3); filter: drop-shadow(0 18px 22px rgba(0, 0, 0, .45)); }
.s-print .bigtk { animation: tkPrint 1.5s cubic-bezier(.2, .9, .25, 1.05) forwards; }
@keyframes tkPrint {
    0%   { opacity: 0; transform: translate(-50%, -50%) translateY(46vh) scale(.3) rotate(0); }
    20%  { opacity: 1; }
    100% { opacity: 1; transform: translate(-50%, -50%) rotate(-3deg); }
}
.tk { display: flex; }
.tk-a, .tk-b { position: relative; -webkit-mask-composite: source-in; mask-composite: intersect; }
.tk-a {
    flex: 1 1 70%; padding: 20px 18px 18px 22px; background: var(--paper); text-align: left;
    -webkit-mask-image: radial-gradient(circle at 0 50%, #0000 11px, #000 11.6px), radial-gradient(circle at 100% 0, #0000 10px, #000 10.6px), radial-gradient(circle at 100% 100%, #0000 10px, #000 10.6px);
    mask-image: radial-gradient(circle at 0 50%, #0000 11px, #000 11.6px), radial-gradient(circle at 100% 0, #0000 10px, #000 10.6px), radial-gradient(circle at 100% 100%, #0000 10px, #000 10.6px);
}
.tk-b {
    flex: 0 0 30%; display: grid; place-items: center; align-content: center; gap: 6px; padding: 14px 8px; background: var(--yellow); text-align: center; border-left: 3px dashed rgba(43, 36, 64, .55);
    -webkit-mask-image: radial-gradient(circle at 100% 50%, #0000 11px, #000 11.6px), radial-gradient(circle at 0 0, #0000 10px, #000 10.6px), radial-gradient(circle at 0 100%, #0000 10px, #000 10.6px);
    mask-image: radial-gradient(circle at 100% 50%, #0000 11px, #000 11.6px), radial-gradient(circle at 0 0, #0000 10px, #000 10.6px), radial-gradient(circle at 0 100%, #0000 10px, #000 10.6px);
}
.tk-top { display: block; font: 800 9.5px/1.4 var(--f-b); letter-spacing: .16em; color: var(--ink-s); }
.tk-names { margin: 8px 0 6px; font: 400 29px/1.1 var(--f-d); color: var(--red); overflow-wrap: anywhere; }
.tk-names b { color: var(--blue); font-weight: 400; }
.tk-for { font-size: 13px; color: var(--ink-s); overflow-wrap: anywhere; }
.tk-for b { color: var(--ink); }
.tk-date { margin-top: 8px; font: 800 11.5px/1.4 var(--f-b); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.tk-admit { font: 400 24px/1 var(--f-d); color: var(--ink); }
.tk-star { width: 30px; height: 30px; color: var(--red); }
.tk-no { font: 800 10px/1 var(--f-b); letter-spacing: .1em; color: var(--ink); }
.s-tear .tk-a { animation: tearA 1s cubic-bezier(.5, 0, .8, .4) forwards; }
.s-tear .tk-b { animation: tearB 1s cubic-bezier(.5, 0, .8, .4) forwards; }
@keyframes tearA { 0% { transform: none; opacity: 1; } 30% { transform: translate(-6px, 4px) rotate(-3deg); opacity: 1; } 100% { transform: translate(-80px, 170px) rotate(-16deg); opacity: 0; } }
@keyframes tearB { 0% { transform: none; opacity: 1; } 30% { transform: translate(10px, -6px) rotate(7deg); opacity: 1; } 100% { transform: translate(100px, 130px) rotate(30deg); opacity: 0; } }

.s-press .bt-bell { animation: ring .5s ease-in-out 2; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(24deg); } 75% { transform: rotate(-24deg); } }
.s-press .buy { animation: none; transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); pointer-events: none; }
.s-print .booth, .s-print .in-wheel { opacity: .4; }

/* tirai belang */
.curtain { position: absolute; top: 0; bottom: 0; z-index: 40; width: 51%; pointer-events: none;
    background: linear-gradient(90deg, rgba(0, 0, 0, .22), transparent 22%, transparent 78%, rgba(0, 0, 0, .22)), repeating-linear-gradient(90deg, var(--red) 0 30px, var(--paper) 30px 60px);
    box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
.curtain.cl { left: 0; transform: translateX(-101%); }
.curtain.cr { right: 0; transform: translateX(101%); }
.s-close .curtain { transform: none; transition: transform .8s cubic-bezier(.6, 0, .3, 1); }
.s-open .curtain.cl { transform: translateX(-101%); transition-duration: 1.1s; }
.s-open .curtain.cr { transform: translateX(101%); transition-duration: 1.1s; }
.s-gone { background: transparent; }
.s-gone > :not(.curtain) { opacity: 0; visibility: hidden; }
.s-open { pointer-events: none; }

/* ════════════════════════════════════════════════════════════════
   PANGGUNG
   ════════════════════════════════════════════════════════════════ */
.stage { max-width: var(--col); margin: 0 auto; background: var(--cream); position: relative; overflow: hidden; box-shadow: 0 0 0 4px var(--yellow), 0 0 60px rgba(0, 0, 0, .45); }
.page { display: block; }

.topstring { position: fixed; top: 0; left: 50%; z-index: 900; width: min(100vw, var(--col)); height: 46px; transform: translateX(-50%); pointer-events: none; }
.topstring svg { width: 100%; height: 100%; }
.topstring .tb circle { opacity: .2; }
.topstring.lit .tb circle { animation: bulbOn .5s ease-out calc(var(--i) * .1s) both, twinkle 2.6s ease-in-out calc(1.8s + var(--i) * .17s) infinite; filter: drop-shadow(0 0 4px currentColor); }
@keyframes bulbOn { from { opacity: .2; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
.topstring .tb circle { transform-box: fill-box; transform-origin: center; }

.bg-float { position: fixed; top: 0; bottom: 0; left: 50%; z-index: 6; width: min(100vw, var(--col)); transform: translateX(-50%); pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 1.2s; }
body.opened .bg-float { opacity: 1; }
.bf { position: absolute; bottom: -90px; width: 30px; height: 54px; opacity: .8; animation: rise 30s linear infinite; }
.bf.f1 { left: 3%; } .bf.f2 { left: 92%; animation-delay: -12s; } .bf.f3 { left: 8%; animation-delay: -21s; width: 24px; height: 44px; }

[data-reveal] { opacity: 0; transform: translateY(26px) scale(.97); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].shown { opacity: 1; transform: none; }

/* ── Hero ── */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 120px 18px 70px; text-align: center; color: #fff; overflow: hidden;
    background: linear-gradient(180deg, #27325e 0%, #4b4f93 38%, #e8789a 78%, #ffb07a 100%); }
.tent { position: absolute; top: 34px; left: 0; right: 0; height: 52px; background: repeating-linear-gradient(90deg, var(--red) 0 34px, var(--paper) 34px 68px); border-top: 3px solid var(--ink); }
.tent::after { content: ''; position: absolute; left: 0; right: 0; bottom: -15px; height: 17px; background: radial-gradient(circle at 17px 0, var(--red) 16px, transparent 17px) 0 0 / 68px 17px repeat-x, radial-gradient(circle at 51px 0, var(--paper) 16px, transparent 17px) 0 0 / 68px 17px repeat-x; }
.hero-in { position: relative; z-index: 2; width: 100%; }
.h-kick { font: 400 19px/1.3 var(--f-d); letter-spacing: .08em; color: #ffe29a; margin-bottom: 14px; }
.marq { position: relative; max-width: 380px; margin: 0 auto; padding: 34px 14px 30px; background: var(--ink); border: 5px solid var(--yellow); border-radius: 18px; box-shadow: 0 0 44px rgba(255, 216, 74, .35), 0 10px 0 rgba(0, 0, 0, .25); }
.m-sm { font: 400 13px/1.3 var(--f-d); letter-spacing: .2em; color: var(--yellow); }
.m-names { margin: 12px 0 8px; display: grid; justify-items: center; font: 400 56px/1.02 var(--f-d); color: #fff; text-shadow: 0 0 18px rgba(255, 255, 255, .35), 0 4px 0 rgba(229, 72, 77, .8); overflow-wrap: anywhere; }
.m-names span:last-child { color: var(--pink); text-shadow: 0 0 18px rgba(255, 159, 194, .5), 0 4px 0 rgba(74, 163, 223, .8); }
.m-names b { font-size: 28px; color: var(--yellow); font-weight: 400; line-height: 1.2; }
.m-date { font: 800 13px/1.4 var(--f-b); letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.h-wheel { width: min(74vw, 290px); margin: 30px auto 52px; color: #ffe7c2; }
.h-note { max-width: 290px; margin: 26px auto 0; font-size: 14px; color: #fff1dd; }

/* ── Section umum ── */
.sec { position: relative; padding: 78px 22px 66px; text-align: center; }
.sec > * { position: relative; z-index: 1; }
.s-cream { background: var(--cream); }
.s-sky { background: #dff0fb; }
.s-pink { background: #ffe3ee; }
.s-mint { background: #dcf6ec; }
.s-yellow { background: #fff1c1; }
.s-night { background: linear-gradient(#1b2347, #2d3a73); color: #fff; }
.bunting { position: absolute !important; left: 0; right: 0; top: 0; height: 34px; z-index: 2 !important; pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='34'%3E%3Cpath d='M0 2Q60 10 120 2' stroke='%231b2347' fill='none' stroke-width='1.6'/%3E%3Cpath d='M4 4L30 6 17 30Z' fill='%23e5484d'/%3E%3Cpath d='M34 6L60 8 47 32Z' fill='%23ffd84a'/%3E%3Cpath d='M64 8L90 8 77 32Z' fill='%234aa3df'/%3E%3Cpath d='M94 7L118 4 106 30Z' fill='%23ff9fc2'/%3E%3C/svg%3E") 0 0 / 120px 34px repeat-x; }
.bunting.rev { transform: scaleX(-1); }

.sec-head { margin-bottom: 34px; }
.sh-tag { display: inline-block; padding: 5px 14px; border-radius: 99px; background: var(--red); color: #fff; font: 800 11.5px/1.2 var(--f-b); letter-spacing: .16em; text-transform: uppercase; border: 2px solid var(--ink); }
.sh-tag.y { background: var(--yellow); color: var(--ink); }
.sh-title { margin-top: 12px; font: 400 42px/1.1 var(--f-d); color: var(--navy); text-shadow: 0 3px 0 rgba(229, 72, 77, .22); }
.sh-sub { margin-top: 8px; font-size: 14px; color: var(--ink-s); }
.sec-head.light .sh-title { color: #fff; text-shadow: 0 3px 0 rgba(74, 163, 223, .5); }
.sec-head.light .sh-sub { color: #cfd8ff; }

/* ── Salam: papan kayu ── */
.board { position: relative; max-width: 400px; margin: 0 auto; padding: 38px 20px 34px; color: var(--cream); border: 6px solid #5a3a22; border-radius: 14px; box-shadow: 0 8px 0 #3d2616, 0 18px 30px -14px rgba(0, 0, 0, .5);
    background: repeating-linear-gradient(0deg, #b57a45 0 28px, #9d6836 28px 30px); }
.board .bulbs.top { top: -12px; } .board .bulbs.bot { bottom: -12px; }
.b-salam { font: 400 21px/1.3 var(--f-d); letter-spacing: .02em; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.b-text { margin: 10px auto 0; max-width: 320px; font-size: 14px; }
.b-verse { position: relative; margin-top: 20px; padding: 24px 16px 16px; background: var(--cream); color: #3a2a22; border-radius: 12px; border: 3px solid #5a3a22; }
.b-ico { position: absolute; left: 50%; top: -16px; width: 32px; height: 32px; transform: translateX(-50%); color: var(--red); filter: drop-shadow(0 2px 0 #fff); }
.b-verse p { font: italic 600 14.5px/1.7 var(--f-b); }
.b-verse span { display: block; margin-top: 10px; font: 800 11.5px/1 var(--f-b); letter-spacing: .2em; text-transform: uppercase; color: var(--red); }

/* ── Mempelai: poster ── */
.poster { position: relative; max-width: 300px; margin: 0 auto; padding: 50px 18px 26px; background: var(--paper); border: 4px solid var(--ink); border-radius: 12px; box-shadow: 0 8px 0 var(--ink); }
.po-ribbon { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); padding: 6px 28px 8px; background: var(--blue); color: #fff; font: 400 15px/1 var(--f-d); letter-spacing: .12em; border: 4px solid var(--ink); border-top: 0; border-radius: 0 0 12px 12px; }
.po-ribbon.pk { background: #ff7aa8; }
.po-art { position: relative; width: 176px; height: 196px; margin: 0 auto 10px; isolation: isolate; }
.po-art svg { position: relative; z-index: 2; width: 100%; height: 100%; animation: bob 3.4s ease-in-out infinite; transform-origin: 50% 100%; }
.po-bg { position: absolute; z-index: 1; left: 6px; right: 6px; top: 22px; bottom: 6px; border-radius: 50%; background: repeating-conic-gradient(#ffe29a 0 10deg, #fff3c7 10deg 20deg); animation: spin 40s linear infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-6px) rotate(1.5deg); } }
.po-name { font: 400 29px/1.15 var(--f-d); color: var(--red); overflow-wrap: anywhere; }
.p-bride .po-name { color: var(--blue); }
.po-par { margin-top: 6px; font-size: 14px; color: var(--ink-s); }
.po-par b { color: var(--ink); font-weight: 800; }
.po-no { position: absolute; right: -14px; top: 18px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); border: 3px solid var(--ink); transform: rotate(12deg); font: 400 14px/1 var(--f-d); }
.vs svg { width: 100%; height: 100%; }
.vs { width: 52px; height: 52px; margin: 26px auto; color: var(--red); animation: beat 1.4s ease-in-out infinite; filter: drop-shadow(0 3px 0 var(--ink)); }
@keyframes beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }

/* ── Kisah: wahana ── */
.rides { list-style: none; margin: 0 auto; padding: 0; max-width: 380px; display: grid; gap: 22px; }
.ride { display: flex; overflow: hidden; text-align: left; background: #fff; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 0 6px 0 var(--ink); }
.r-sign { flex: 0 0 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 4px; border-right: 3px dashed var(--ink); background: repeating-linear-gradient(45deg, #ffd84a 0 12px, #fff1c1 12px 24px); }
.ride:nth-child(2) .r-sign { background: repeating-linear-gradient(45deg, #ff9fc2 0 12px, #ffe3ee 12px 24px); }
.ride:nth-child(3) .r-sign { background: repeating-linear-gradient(45deg, #8ed1fc 0 12px, #dff0fb 12px 24px); }
.r-sign svg { width: 46px; height: 46px; }
.r-sign span { font: 400 11px/1 var(--f-d); letter-spacing: .1em; }
.r-body { padding: 14px 16px 16px; }
.r-no { font: 800 10.5px/1 var(--f-b); letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.r-body h3 { margin: 4px 0 4px; font: 400 23px/1.2 var(--f-d); color: var(--navy); }
.r-body p { font-size: 13.5px; color: var(--ink-s); line-height: 1.65; }

/* ── Hitung mundur ── */
.s-night { overflow: hidden; padding-bottom: 80px; }
.night-stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; animation: twinkle 2.6s ease-in-out infinite; }
.night-stars i:nth-child(1) { left: 10%; top: 6%; } .night-stars i:nth-child(2) { left: 84%; top: 10%; animation-delay: -.8s; } .night-stars i:nth-child(3) { left: 30%; top: 14%; animation-delay: -1.5s; } .night-stars i:nth-child(4) { left: 62%; top: 5%; animation-delay: -.4s; }
.night-stars i:nth-child(5) { left: 92%; top: 40%; animation-delay: -2s; } .night-stars i:nth-child(6) { left: 6%; top: 52%; animation-delay: -1.1s; } .night-stars i:nth-child(7) { left: 48%; top: 90%; animation-delay: -.6s; } .night-stars i:nth-child(8) { left: 78%; top: 82%; animation-delay: -1.9s; }
.cd-wheel { width: min(90vw, 410px); margin: 44px auto 92px; color: #bcd5ff; }
.cd-wheel .w-leg { width: 7px; }
.cd-date { font: 400 21px/1.3 var(--f-d); color: var(--yellow); margin-bottom: 20px; }

/* ── Acara: tiket wahana ── */
.etk { position: relative; display: flex; max-width: 390px; margin: 0 auto 28px; text-align: left; filter: drop-shadow(0 6px 0 var(--ink)); }
.etk-main, .etk-stub { -webkit-mask-composite: source-in; mask-composite: intersect; }
.etk-main { flex: 1 1 72%; padding: 22px 16px 20px 24px; background: var(--paper);
    -webkit-mask-image: radial-gradient(circle at 0 50%, #0000 11px, #000 11.6px), radial-gradient(circle at 100% 0, #0000 10px, #000 10.6px), radial-gradient(circle at 100% 100%, #0000 10px, #000 10.6px);
    mask-image: radial-gradient(circle at 0 50%, #0000 11px, #000 11.6px), radial-gradient(circle at 100% 0, #0000 10px, #000 10.6px), radial-gradient(circle at 100% 100%, #0000 10px, #000 10.6px); }
.etk-stub { flex: 0 0 26%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--red); color: #fff; border-left: 3px dashed var(--ink);
    -webkit-mask-image: radial-gradient(circle at 100% 50%, #0000 11px, #000 11.6px), radial-gradient(circle at 0 0, #0000 10px, #000 10.6px), radial-gradient(circle at 0 100%, #0000 10px, #000 10.6px);
    mask-image: radial-gradient(circle at 100% 50%, #0000 11px, #000 11.6px), radial-gradient(circle at 0 0, #0000 10px, #000 10.6px), radial-gradient(circle at 0 100%, #0000 10px, #000 10.6px); }
.etk.alt .etk-stub { background: var(--blue); }
.etk-stub span { writing-mode: vertical-rl; transform: rotate(180deg); font: 400 20px/1 var(--f-d); letter-spacing: .18em; }
.etk-stub svg { width: 26px; height: 26px; color: var(--yellow); }
.etk-lab { font: 800 10.5px/1 var(--f-b); letter-spacing: .2em; color: var(--red); }
.etk.alt .etk-lab { color: var(--blue); }
.etk-main h3 { margin: 6px 0 10px; font: 400 31px/1.1 var(--f-d); color: var(--navy); }
.etk-main ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 7px; font-size: 14px; color: var(--ink-s); }
.etk-main li { display: flex; align-items: flex-start; gap: 9px; }
.etk-main li .ico { margin-top: 3px; color: var(--red); }

/* ── Peta taman ── */
.parkmap { max-width: 390px; margin: 0 auto; padding: 16px 16px 24px; background: #fff; border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 7px 0 var(--ink); }
.pm-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin-bottom: 12px; font: 800 10.5px/1.4 var(--f-b); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-s); }
.pm-legend i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 50%; border: 2px solid var(--ink); vertical-align: -1px; }
.lg1 { background: var(--mint); } .lg2 { background: var(--red); } .lg3 { background: var(--yellow); }
.map { height: 210px; border-radius: 12px; border: 3px solid var(--ink); overflow: hidden; z-index: 0; }
.map-illu { position: relative; display: block; height: 190px; border-radius: 12px; border: 3px solid var(--ink); overflow: hidden; background: #bfe8c9 radial-gradient(circle at 20% 30%, #a6dcb4 0 18px, transparent 19px), radial-gradient(circle at 78% 70%, #a6dcb4 0 24px, transparent 25px); }
.mi-path { position: absolute; inset: 0; width: 100%; height: 100%; }
.mi-pin { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -38px 0 0 -23px; color: var(--red); animation: bob 2.4s ease-in-out infinite; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .25)); }
.loc-name { margin-top: 16px; font: 400 25px/1.25 var(--f-d); color: var(--navy); }
.loc-addr { margin: 4px 0 16px; font-size: 14px; color: var(--ink-s); }

/* ── Galeri: stan foto ── */
.hangs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 14px; max-width: 400px; margin: 0 auto; padding-top: 24px; }
.hang { --r: 0deg; position: relative; padding: 0; border: 0; background: none; cursor: pointer; transform-origin: 50% 0; animation: swing 5.5s ease-in-out var(--d) infinite; -webkit-tap-highlight-color: transparent; }
.hang::before { content: ''; position: absolute; top: -14px; left: -10px; right: -10px; height: 2px; background: var(--ink); }
.hang.h0 { --r: -2deg; } .hang.h1 { --r: 2.4deg; } .hang.h2 { --r: 1.6deg; } .hang.h3 { --r: -2.6deg; }
.peg { position: absolute; top: -22px; left: 50%; z-index: 2; width: 12px; height: 26px; transform: translateX(-50%); background: var(--yellow); border: 2px solid var(--ink); border-radius: 3px; }
.ph-fr { display: block; padding: 8px 8px 24px; background: #fff; border: 3px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }
.hang.h1 .ph-fr { background: #ffe3ee; } .hang.h2 .ph-fr { background: #dcf6ec; } .hang.h3 .ph-fr { background: #fff1c1; }
.ph-fr img { width: 100%; aspect-ratio: 1 / 1.12; object-fit: cover; }
.hang.ph { cursor: default; }
.hang.ph .ph-fr svg { width: 100%; aspect-ratio: 1 / 1.12; padding: 22%; background: #dff0fb; }
@keyframes swing { 0%, 100% { transform: rotate(calc(var(--r) - 1.6deg)); } 50% { transform: rotate(calc(var(--r) + 1.6deg)); } }

/* ── Kado (partial) ── */
.gift-wrap:not(:has(#gift-section)) { display: none; }
.gift-box { max-width: 420px; margin: 0 auto; border-radius: 18px; border: 4px solid var(--ink); background: #fff; box-shadow: 0 7px 0 var(--ink); overflow: hidden; text-align: left; }
.gift-wrap #gift-section { background: transparent !important; padding: 18px 0 20px !important; font-family: var(--f-b) !important; }
.gift-wrap .gs-heading h2 { font-family: var(--f-d) !important; font-weight: 400 !important; color: var(--navy) !important; }
.gift-wrap .gs-heading h2::after { background: var(--red) !important; }
.gift-wrap .gs-card, .gift-wrap .gs-bank-card { border: 3px solid var(--ink) !important; border-radius: 14px !important; box-shadow: 0 4px 0 var(--ink) !important; }
.gift-wrap .gs-btn, .gift-wrap .gs-bank-copy { border-radius: 99px !important; font-family: var(--f-d) !important; }
.gift-wrap .gs-btn-buy { background: var(--red) !important; color: #fff !important; }
.gift-wrap .gs-bank-logo { background: var(--yellow) !important; color: var(--ink) !important; border: 2px solid var(--ink) !important; }

/* ── RSVP ── */
.rsvp-tk { max-width: 400px; margin: 0 auto; padding: 0 20px 24px; text-align: left; overflow: hidden; background: #fff; border: 4px solid var(--ink); border-radius: 18px; box-shadow: 0 7px 0 var(--ink); }
.rt-top { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 -20px 18px; padding: 12px; background: var(--red); color: #fff; font: 400 16px/1 var(--f-d); letter-spacing: .16em; border-bottom: 3px dashed var(--ink); }
.f-l { display: block; margin: 16px 0 6px; font: 800 11px/1.3 var(--f-b); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-s); }
.rt-top + .f-l { margin-top: 0; }
.f-in { width: 100%; padding: 12px 14px; border: 3px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); font: 600 15px/1.5 var(--f-b); outline: none; resize: vertical; transition: box-shadow .2s, background .2s; }
.f-in:focus { background: #fff; box-shadow: 0 0 0 4px rgba(255, 216, 74, .65); }
.choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ch input { position: absolute; opacity: 0; pointer-events: none; }
.ch span { display: block; padding: 10px 4px; text-align: center; font: 800 12.5px/1.2 var(--f-b); border: 3px solid var(--ink); border-radius: 12px; background: #fff; color: var(--ink); cursor: pointer; transition: transform .2s var(--pop), background .2s; }
.ch input:checked + span { background: var(--ct); transform: translateY(-3px); box-shadow: 0 3px 0 var(--ink); }
.ch input:focus-visible + span { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--blue); }
.rsvp-tk .btn { margin-top: 22px; }

.wish-head { display: flex; align-items: center; justify-content: space-between; max-width: 400px; margin: 42px auto 14px; }
.wish-head h3 { font: 400 28px/1.2 var(--f-d); color: var(--navy); }
.wh-live { display: inline-flex; align-items: center; gap: 6px; font: 800 11px/1 var(--f-b); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-s); }
.wh-live i { width: 8px; height: 8px; border-radius: 50%; background: #3fbf6a; animation: twinkle 1.5s ease-in-out infinite; }
.wishes { max-width: 400px; margin: 0 auto; display: grid; gap: 14px; max-height: 500px; overflow-y: auto; padding: 4px 6px 8px 2px; text-align: left; overscroll-behavior: contain; }
.wish-item { --av: var(--red); position: relative; display: flex; gap: 12px; padding: 14px 44px 14px 14px; background: #fff; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 0 4px 0 var(--ink); }
.wish-item::after { content: '♥'; position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 28px; height: 34px; border: 2px dashed var(--red); border-radius: 3px; color: var(--red); font-size: 14px; }
.wish-item.new { animation: wishIn .7s var(--pop) both; }
@keyframes wishIn { from { opacity: 0; transform: translateY(-16px) rotate(-3deg); } to { opacity: 1; transform: none; } }
.wish-avatar { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--ink); background: var(--av); color: #fff; font: 400 18px/1 var(--f-d); }
.wish-body { min-width: 0; flex: 1; }
.wish-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wish-name { font: 800 14.5px/1.3 var(--f-b); overflow-wrap: anywhere; }
.wish-badge { padding: 2px 9px; border-radius: 99px; border: 2px solid var(--ink); font: 800 10px/1.4 var(--f-b); }
.wish-badge.hadir { background: #bfeccf; } .wish-badge.tidak { background: #ffc9d4; } .wish-badge.ragu { background: #ffe9a0; }
.wish-message { margin-top: 4px; font-size: 14px; line-height: 1.6; color: var(--ink-s); overflow-wrap: anywhere; }
.wish-time { display: block; margin-top: 6px; font-size: 11.5px; color: #8a80a3; }
.wish-empty { padding: 18px; text-align: center; font-weight: 700; color: var(--ink-s); }

/* ── Penutup: kembang api ── */
.end { position: relative; padding: 0 0 70px; text-align: center; color: #fff; overflow: hidden; background: linear-gradient(#27325e 0%, #1b2347 45%, #4a3a7a 100%); }
.end::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 34px; background: var(--cream); clip-path: polygon(0 0, 100% 0, 100% 40%, 96% 100%, 92% 40%, 88% 100%, 84% 40%, 80% 100%, 76% 40%, 72% 100%, 68% 40%, 64% 100%, 60% 40%, 56% 100%, 52% 40%, 48% 100%, 44% 40%, 40% 100%, 36% 40%, 32% 100%, 28% 40%, 24% 100%, 20% 40%, 16% 100%, 12% 40%, 8% 100%, 4% 40%, 0 100%); }
.fw-stage { position: relative; height: 250px; }
.fw { position: absolute; width: 0; height: 0; }
.fw::before { content: ''; position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: currentColor; opacity: 0; animation: fwFlash .5s ease-out forwards; }
.fw i { position: absolute; left: -2px; top: 0; width: 4px; height: 16px; border-radius: 3px; background: currentColor; transform-origin: 50% 0; opacity: 0; animation: fwPart 1.3s cubic-bezier(.1, .7, .3, 1) .1s forwards; }
@keyframes fwFlash { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes fwPart { 0% { opacity: 1; transform: rotate(var(--a)) translateY(2px) scaleY(.3); } 70% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(74px) scaleY(1); } }
.end-in { position: relative; z-index: 2; max-width: 380px; margin: -24px auto 0; padding: 0 22px; }
.end-t { font: italic 700 15px/1.7 var(--f-b); color: #dfe6ff; }
.end-salam { margin: 18px 0 8px; font: 400 17px/1.35 var(--f-d); color: var(--yellow); }
.end-names { font: 400 48px/1.1 var(--f-d); text-shadow: 0 4px 0 rgba(229, 72, 77, .75); overflow-wrap: anywhere; }
.end-names b { color: var(--pink); font-weight: 400; }
.end-fam { margin: 22px 0 24px; display: grid; gap: 14px; font-size: 14px; }
.end-fam span { display: block; margin-bottom: 2px; font: 800 10.5px/1.4 var(--f-b); letter-spacing: .2em; text-transform: uppercase; color: #9fb0f0; }
.end-credit { font-size: 12px; color: #8f9ccf; }

/* ── Musik, FX, toast ── */
.music-toggle-btn { position: fixed; bottom: 18px; right: max(14px, calc(50vw - var(--col) / 2 + 14px)); z-index: 1002; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; cursor: pointer; border: 3px solid var(--ink); border-radius: 50%; background: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 var(--ink); opacity: 0; pointer-events: none; transition: opacity .3s; -webkit-tap-highlight-color: transparent; }
body.opened .music-toggle-btn { opacity: 1; pointer-events: auto; }
.music-toggle-btn svg { width: 18px; height: 18px; }
.music-toggle-btn.playing { animation: spin 4s linear infinite; }
.fx-layer { position: fixed; inset: 0; z-index: 5000; pointer-events: none; overflow: hidden; }
.cf { position: absolute; z-index: 5001; width: 10px; height: 10px; margin: -5px 0 0 -5px; opacity: 0; animation: cfFly 1.6s cubic-bezier(.15, .8, .3, 1) forwards; }
.cf-bar { width: 6px; height: 14px; border-radius: 3px; }
.cf-dot { border-radius: 50%; }
.cf-tri { clip-path: polygon(50% 0, 100% 100%, 0 100%); width: 12px; height: 12px; }
@keyframes cfFly { 0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(.6); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--tx), calc(var(--ty) + 90px)) rotate(var(--rot)) scale(1); } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 8000; transform: translate(-50%, 24px); padding: 11px 22px; border: 3px solid var(--ink); border-radius: 99px; background: var(--yellow); color: var(--ink); font: 800 13px/1.3 var(--f-b); box-shadow: 0 4px 0 var(--ink); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--pop); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.has-qr .toast { bottom: 90px; }
body.has-qr .end { padding-bottom: 96px; }

/* ── Lightbox ── */
.gallery-lightbox { display: none; position: fixed; inset: 0; z-index: 7000; align-items: center; justify-content: center; background: rgba(27, 35, 71, .94); opacity: 0; transition: opacity .3s; }
.lb-img-wrap img { max-width: 92vw; max-height: 80vh; border: 6px solid #fff; border-radius: 6px; }
.lb-close, .lb-prev, .lb-next { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 3px solid var(--ink); border-radius: 50%; background: var(--yellow); color: var(--ink); font: 400 22px/1 var(--f-d); cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.lb-close { top: 18px; right: 18px; font-size: 16px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #fff; font: 400 14px var(--f-d); letter-spacing: .1em; }

@media (max-height: 680px) {
    .bt-hint { display: none; }
    .bt-sign b { font-size: 28px; }
    .bt-sign { padding: 16px 10px 12px; }
    .bt-window { height: 44px; margin-bottom: 10px; }
}
@media (max-width: 360px) {
    .m-names { font-size: 46px; }
    .sh-title { font-size: 36px; }
    .cab-box b { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
    .bf, .in-balloons { display: none; }
}
