/* ════════════════════════════════════════════════════════════════
   TAROT CINTA — pembacaan kartu takdir yang lucu & romantis
   ════════════════════════════════════════════════════════════════ */
:root {
    --night: #150a30;
    --night-2: #1f1045;
    --violet: #3b1d78;
    --violet-l: #8a5cf0;
    --gold: #f2c869;
    --gold-d: #c8902f;
    --gold-l: #fff3c4;
    --rose: #e0468f;
    --rose-l: #ff9fc9;
    --cream: #fff3dc;
    --ink: #efe7ff;
    --ink-s: #bfb1e0;
    --col: 480px;
    --f-d: 'Cinzel', 'Times New Roman', serif;
    --f-i: 'Cormorant Garamond', Georgia, serif;
    --f-b: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(.22, .8, .24, 1);
    --gold-g: linear-gradient(135deg, #fff3c4, #f2c869 45%, #c8902f);
}

*, *::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.7 var(--f-b);
    color: var(--ink);
    background: radial-gradient(ellipse at 50% -10%, #3a1c78 0%, #1f1045 40%, #0f0626 100%) fixed;
    -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: 17px; height: 17px; flex: none; }

/* ── Langit berbintang (tetap) ── */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.sky i { position: absolute; inset: 0; }
.sky i:first-child {
    background-image:
        radial-gradient(1.4px 1.4px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 62%, #fff, transparent),
        radial-gradient(1.6px 1.6px at 44% 12%, #ffe9a8, transparent), radial-gradient(1px 1px at 63% 38%, #fff, transparent),
        radial-gradient(1.4px 1.4px at 78% 74%, #fff, transparent), radial-gradient(1px 1px at 90% 20%, #ffe9a8, transparent),
        radial-gradient(1px 1px at 8% 84%, #fff, transparent), radial-gradient(1.2px 1.2px at 54% 90%, #fff, transparent);
    background-size: 340px 340px;
    animation: twinkle 5s ease-in-out infinite;
}
.sky i:last-child {
    background-image:
        radial-gradient(1.6px 1.6px at 20% 40%, #ffe9a8, transparent), radial-gradient(1px 1px at 38% 80%, #fff, transparent),
        radial-gradient(1.4px 1.4px at 70% 14%, #fff, transparent), radial-gradient(1px 1px at 86% 56%, #ffe9a8, transparent),
        radial-gradient(1.2px 1.2px at 4% 52%, #fff, transparent), radial-gradient(1px 1px at 60% 66%, #fff, transparent);
    background-size: 420px 420px;
    animation: twinkle 7s ease-in-out -2.5s infinite;
}
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

.stage { position: relative; z-index: 1; max-width: var(--col); margin: 0 auto; overflow: hidden; }

/* ── Tipografi ── */
.kicker { font: 500 11px/1.4 var(--f-d); letter-spacing: .36em; text-transform: uppercase; color: var(--gold); }
.sec { position: relative; padding: 64px 22px; text-align: center; }
.sec-head { margin-bottom: 32px; }
.sh-no { display: block; font: 500 11px/1.4 var(--f-d); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.sh-title { margin-top: 8px; font: 600 28px/1.25 var(--f-d); letter-spacing: .04em; background: var(--gold-g); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sh-sub { margin-top: 8px; font: italic 500 17px/1.5 var(--f-i); color: var(--ink-s); }
.names { font: 600 40px/1.15 var(--f-d); letter-spacing: .03em; display: flex; flex-direction: column; align-items: center; background: var(--gold-g); -webkit-background-clip: text; background-clip: text; color: transparent; }
.names i { font: italic 500 26px/1.4 var(--f-i); -webkit-text-fill-color: var(--rose-l); }
.names.sm { font-size: 32px; }
.salam { font: italic 500 19px/1.5 var(--f-i); color: var(--gold-l); margin-bottom: 12px; }
.salam.sm { margin: 20px 0 8px; font-size: 17px; }
.body-c { max-width: 340px; margin: 0 auto; color: var(--ink-s); font-size: 14.5px; }
.center { text-align: center; }
.orn { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px auto; max-width: 220px; color: var(--gold); }
.orn i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.orn i:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.orn svg { width: 14px; height: 14px; }

/* ── Tombol ── */
.btn, .btn-gold {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 13px 26px; border: 0; border-radius: 99px;
    font: 700 12.5px/1 var(--f-d); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer;
    color: #2a1458; background: var(--gold-g);
    box-shadow: 0 0 0 1px rgba(255, 243, 196, .5) inset, 0 10px 24px -8px rgba(242, 200, 105, .55);
    transition: transform .25s var(--ease), box-shadow .25s, filter .25s; -webkit-tap-highlight-color: transparent;
}
.btn:hover, .btn-gold:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn:active, .btn-gold:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--gold); box-shadow: 0 0 0 1.5px var(--gold) inset; padding: 11px 22px; font-size: 11.5px; }
.btn.ghost:hover { background: rgba(242, 200, 105, .12); }
.btn.full { width: 100%; }
.btn:disabled { opacity: .7; cursor: default; transform: none; }
.btn-gold .ico { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ════════════════════════════════════════════════════════════════
   COVER · SETUMPUK KARTU
   ════════════════════════════════════════════════════════════════ */
.intro {
    position: fixed; inset: 0; z-index: 6000;
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    padding: 34px 20px 30px; text-align: center; overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 46%, rgba(138, 92, 240, .55) 0%, rgba(59, 29, 120, .4) 38%, transparent 70%),
        repeating-linear-gradient(115deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 6px),
        #120728;
}
.in-stars { position: absolute; inset: 0; pointer-events: none; }
.in-stars::before, .in-stars::after { content: ''; position: absolute; inset: 0; background-repeat: repeat; }
.in-stars::before {
    background-image: radial-gradient(1.5px 1.5px at 14% 22%, #fff, transparent), radial-gradient(1px 1px at 32% 70%, #ffe9a8, transparent),
        radial-gradient(1.6px 1.6px at 56% 16%, #fff, transparent), radial-gradient(1px 1px at 72% 52%, #fff, transparent),
        radial-gradient(1.4px 1.4px at 88% 80%, #ffe9a8, transparent), radial-gradient(1px 1px at 6% 90%, #fff, transparent);
    background-size: 300px 300px; animation: twinkle 4s ease-in-out infinite;
}
.in-stars::after {
    background-image: radial-gradient(1.2px 1.2px at 22% 48%, #fff, transparent), radial-gradient(1.6px 1.6px at 46% 86%, #ffe9a8, transparent),
        radial-gradient(1px 1px at 66% 28%, #fff, transparent), radial-gradient(1.4px 1.4px at 92% 38%, #fff, transparent);
    background-size: 380px 380px; animation: twinkle 6s ease-in-out -2s infinite;
}
.in-top, .in-bottom { position: relative; z-index: 3; transition: opacity .7s ease, transform .7s var(--ease); }
.in-k { font: 500 11px/1.4 var(--f-d); letter-spacing: .38em; text-transform: uppercase; color: var(--gold); }
.in-names { margin-top: 8px; font: 600 38px/1.12 var(--f-d); letter-spacing: .04em; display: flex; flex-direction: column; align-items: center; background: var(--gold-g); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 18px rgba(242, 200, 105, .35)); }
.in-names i { font: italic 500 24px/1.4 var(--f-i); -webkit-text-fill-color: var(--rose-l); }
.in-guest { font-size: 12px; letter-spacing: .1em; color: var(--ink-s); margin-bottom: 14px; }
.in-guest b { display: block; margin-top: 2px; font: 600 22px/1.3 var(--f-d); color: var(--gold-l); letter-spacing: .04em; overflow-wrap: anywhere; }
.in-hint { margin-top: 12px; font: italic 500 15px/1.4 var(--f-i); color: var(--ink-s); }

/* tumpukan kartu */
.deck { position: relative; z-index: 4; width: 150px; height: 260px; flex: none; }
.deck::before { content: ''; position: absolute; left: 50%; bottom: -26px; width: 260px; height: 56px; margin-left: -130px; background: radial-gradient(ellipse, rgba(242, 200, 105, .35), transparent 70%); filter: blur(4px); }
.dk {
    position: absolute; inset: 0;
    transform: translate(var(--ox), calc(var(--i) * -1.4px)) rotate(var(--r));
    transform-origin: 50% 85%;
    filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45));
    animation: deckIdle 5s ease-in-out infinite;
}
.dk svg { width: 100%; height: 100%; }
.dk.pick { --ox: 0px; --r: 0deg; --i: 8; --sx: 0px; --sr: 0deg; z-index: 20; perspective: 900px; }
@keyframes deckIdle { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes shuffle {
    0%, 100% { transform: translate(var(--ox), calc(var(--i) * -1.4px)) rotate(var(--r)); }
    30% { transform: translate(var(--sx), calc(var(--i) * -1.4px - 10px)) rotate(var(--sr)); }
    55% { transform: translate(calc(var(--sx) * -.7), calc(var(--i) * -1.4px)) rotate(calc(var(--sr) * -.8)); }
    80% { transform: translate(calc(var(--sx) * .25), calc(var(--i) * -1.4px - 4px)) rotate(calc(var(--sr) * .3)); }
}
.intro.s-shuffle .dk { animation: shuffle 1.7s cubic-bezier(.45, .05, .3, 1) calc(var(--i) * .04s); }
.intro.s-pick .dk:not(.pick) { opacity: 0; transition: opacity .6s ease; animation: none; }
.intro.s-pick .in-top, .intro.s-pick .in-bottom { opacity: 0; transform: translateY(-10px); pointer-events: none; }
.intro.s-pick .in-bottom { transform: translateY(10px); }
.intro.s-pick .dk.pick { animation: none; transform: translate(0, -4vh) scale(1.5); transition: transform 1s cubic-bezier(.2, .8, .25, 1); }
.pk-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1.1s cubic-bezier(.3, .7, .2, 1); }
.pk-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.pk-front {
    transform: rotateY(180deg);
    display: flex; flex-direction: column; align-items: center; padding: 14px 10px 12px;
    border-radius: 10px; border: 2px solid var(--gold); overflow: hidden;
    background: linear-gradient(180deg, #3b1d78, #150a30);
    box-shadow: 0 0 0 5px rgba(21, 10, 48, .9) inset, 0 0 0 6px rgba(242, 200, 105, .55) inset, 0 0 40px rgba(242, 200, 105, .5);
}
.pf-num { font: 600 11px/1 var(--f-d); letter-spacing: .3em; color: var(--gold); }
.pf-art { width: 100%; height: auto; flex: 1; min-height: 0; margin: 4px 0; }
.pf-name { font: 700 12px/1.2 var(--f-d); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-l); }
.pf-who { margin-top: 3px; font: italic 600 13px/1.2 var(--f-i); color: var(--rose-l); }
.pf-date { margin-top: 2px; font: 500 9px/1.2 var(--f-d); letter-spacing: .16em; color: var(--ink-s); }
.intro.s-flip .pk-in { transform: rotateY(180deg); }
.rays { position: absolute; left: 50%; top: 46%; width: 150vmax; height: 150vmax; margin: -75vmax 0 0 -75vmax; z-index: 2; opacity: 0; pointer-events: none;
    background: repeating-conic-gradient(from 0deg, rgba(255, 233, 168, .22) 0deg 6deg, transparent 6deg 18deg);
    -webkit-mask: radial-gradient(circle, #000 0, transparent 42%); mask: radial-gradient(circle, #000 0, transparent 42%);
    transition: opacity 1s ease; }
.intro.s-flip .rays { opacity: 1; animation: spinSlow 30s linear infinite; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
.intro.s-out { animation: introOut 1s ease-in both; }
@keyframes introOut { to { opacity: 0; transform: scale(1.08); } }

/* ════════════════════════════════════════════════════════════════
   MUSIK, FX, TOAST
   ════════════════════════════════════════════════════════════════ */
.music-toggle-btn { position: fixed; top: 10px; right: max(12px, calc(50vw - var(--col) / 2 + 12px)); z-index: 1002; width: 42px; height: 42px; padding: 0; border: 1.5px solid var(--gold); border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: rgba(21, 10, 48, .85); color: var(--gold); box-shadow: 0 0 18px rgba(242, 200, 105, .35); 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: spinSlow 4s linear infinite; }
.fx-layer { position: fixed; inset: 0; z-index: 5000; pointer-events: none; overflow: hidden; }
.sp { position: absolute; margin: -6px 0 0 -6px; animation: spOut 1.5s cubic-bezier(.15, .7, .3, 1) both; }
.sp svg { width: 100%; height: 100%; filter: drop-shadow(0 0 4px currentColor); }
@keyframes spOut { 0% { transform: translate(0, 0) rotate(0) scale(.3); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) scale(1); opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 8000; transform: translate(-50%, 24px); padding: 11px 22px; border-radius: 99px; background: var(--gold-g); color: #2a1458; font: 700 13px var(--f-b); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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

/* ════════════════════════════════════════════════════════════════
   KARTU TAROT (komponen)
   ════════════════════════════════════════════════════════════════ */
.tcard {
    --mx: 50%; --my: 40%; --rx: 0deg; --ry: 0deg;
    position: relative; width: 100%; max-width: 210px; margin: 0 auto; aspect-ratio: 150 / 260;
    display: flex; flex-direction: column; align-items: center; padding: 16px 12px 14px;
    border-radius: 12px; border: 2px solid var(--gold);
    background: linear-gradient(180deg, #3b1d78, #150a30);
    box-shadow: 0 0 0 5px rgba(21, 10, 48, .95) inset, 0 0 0 6px rgba(242, 200, 105, .5) inset, 0 18px 34px -12px rgba(0, 0, 0, .7), 0 0 34px rgba(242, 200, 105, .22);
    transform: perspective(800px) rotateX(var(--rx)) rotateY(var(--ry));
    transition: transform .25s ease-out;
    overflow: hidden;
}
.tcard::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 233, 168, .5), transparent 46%), linear-gradient(115deg, transparent 30%, rgba(255, 159, 201, .22) 45%, rgba(138, 92, 240, .22) 55%, transparent 70%); mix-blend-mode: screen; }
.tcard.live::after { opacity: 1; }
.tcard.rose { background: linear-gradient(180deg, #7a1f5e, #2a0d3a); border-color: var(--rose-l); }
.tcard.big { max-width: 250px; margin-top: 22px; animation: cardFloat 6s ease-in-out infinite; }
@keyframes cardFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.tc-num { font: 600 12px/1 var(--f-d); letter-spacing: .32em; color: var(--gold); padding-left: .32em; }
.tc-art, .pf-art { overflow: visible; }
.tc-name, .pf-name, .tc-num, .pf-num { position: relative; z-index: 2; }
.tc-art { width: 100%; height: auto; flex: 1; min-height: 0; margin: 6px 0; }
.tc-name { font: 700 13px/1.2 var(--f-d); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-l); padding-left: .24em; }
.floaty { animation: floatHeart 2.6s ease-in-out infinite; }
.floaty.d2 { animation-delay: -1.1s; }
@keyframes floatHeart { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 70px 22px 90px; text-align: center; }
.hero .names { margin-top: 26px; font-size: 44px; }
.hero-date { margin-top: 10px; font: 500 15px/1.4 var(--f-d); letter-spacing: .16em; color: var(--gold-l); }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; width: 22px; height: 36px; margin-left: -11px; border: 1.5px solid var(--gold); border-radius: 12px; opacity: .8; }
.scroll-hint span { position: absolute; top: 6px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(11px); opacity: 0; } 100% { opacity: 0; } }

/* ── Pesan Semesta ── */
.scroll-card { position: relative; max-width: 400px; margin: 0 auto; padding: 40px 24px 30px; border-radius: 24px; border: 1px solid rgba(242, 200, 105, .55); background: linear-gradient(180deg, rgba(138, 92, 240, .18), rgba(21, 10, 48, .55)); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .8), 0 0 40px rgba(138, 92, 240, .2) inset; }
.sc-moon { position: absolute; top: -20px; left: 50%; width: 40px; height: 40px; margin-left: -20px; padding: 8px; border-radius: 50%; background: var(--night-2); border: 1px solid var(--gold); color: var(--gold); }
.verse { font: italic 500 18px/1.65 var(--f-i); color: var(--cream); }
.verse-s { margin-top: 12px; font: 600 11px/1 var(--f-d); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }

/* ── Mempelai ── */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 440px; margin: 0 auto; }
.person .tcard { max-width: 100%; }
.person .tc-name { font-size: 11px; letter-spacing: .18em; }
.p-name { margin-top: 16px; font: 600 17px/1.3 var(--f-d); letter-spacing: .03em; color: var(--gold-l); overflow-wrap: anywhere; }
.p-par { margin-top: 6px; font-size: 12.5px; line-height: 1.6; color: var(--ink-s); }
.p-par b { font-weight: 600; color: var(--ink); }

/* ── Tiga kartu (flip) ── */
.three { display: grid; gap: 18px; max-width: 360px; margin: 0 auto; }
.flip { padding: 0; border: 0; background: none; cursor: pointer; perspective: 1100px; text-align: center; color: inherit; -webkit-tap-highlight-color: transparent; }
.flip-in { display: grid; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, .7, .2, 1); }
.flip.on .flip-in { transform: rotateY(180deg); }
.ff { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; min-height: 230px; padding: 22px 22px; border-radius: 16px; border: 2px solid var(--gold); background: linear-gradient(180deg, #3b1d78, #150a30); box-shadow: 0 0 0 5px rgba(21, 10, 48, .95) inset, 0 0 0 6px rgba(242, 200, 105, .45) inset, 0 16px 30px -14px rgba(0, 0, 0, .7); }
.fb { background: radial-gradient(circle at 50% 40%, #4b2698, #150a30 70%); }
.fb-ico { width: 52px; height: 52px; color: var(--gold); filter: drop-shadow(0 0 12px rgba(242, 200, 105, .6)); animation: floatHeart 3s ease-in-out infinite; }
.fb-t { margin-top: 12px; font: 700 15px/1.2 var(--f-d); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-l); }
.fb-h { margin-top: 6px; font: italic 500 14px/1.2 var(--f-i); color: var(--ink-s); }
.fr { transform: rotateY(180deg); background: linear-gradient(180deg, #4a2398, #1b0d3d); }
.fr-ico { position: absolute; top: 14px; right: 16px; width: 22px; height: 22px; color: var(--gold); opacity: .8; }
.fr-no { font: 600 11px/1 var(--f-d); letter-spacing: .3em; color: var(--gold); }
.fr-t { margin: 6px 0 8px; font: 700 18px/1.2 var(--f-d); letter-spacing: .1em; color: var(--gold-l); }
.fr-x { font: italic 500 16.5px/1.55 var(--f-i); color: var(--cream); }

/* ── Jam pasir ── */
.hourglass { width: 104px; margin: 0 auto 22px; filter: drop-shadow(0 0 16px rgba(242, 200, 105, .4)); animation: hgTurn 9s ease-in-out infinite; }
@keyframes hgTurn { 0%, 88% { transform: rotate(0); } 96%, 100% { transform: rotate(180deg); } }
.sand-top { animation: sandTop 8s linear infinite; }
.sand-bot { animation: sandBot 8s linear infinite; }
.sand-fall { transform-origin: 60px 88px; animation: sandFall 8s linear infinite; }
@keyframes sandTop { 0% { transform: translateY(0); } 88%, 100% { transform: translateY(76px); } }
@keyframes sandBot { 0% { transform: translateY(78px); } 88%, 100% { transform: translateY(0); } }
@keyframes sandFall { 0%, 88% { opacity: 1; } 92%, 100% { opacity: 0; } }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 380px; margin: 0 auto 14px; }
.cd div { padding: 16px 4px 12px; border-radius: 60px 60px 12px 12px; border: 1.5px solid rgba(242, 200, 105, .7); background: linear-gradient(180deg, rgba(138, 92, 240, .3), rgba(21, 10, 48, .6)); }
.cd b { display: block; font: 600 30px/1.1 var(--f-d); font-variant-numeric: tabular-nums; color: var(--gold-l); }
.cd span { display: block; margin-top: 4px; font: 600 10px/1 var(--f-d); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.cd div.tick b { animation: tickPop .5s ease; }
@keyframes tickPop { 40% { transform: scale(1.18); color: #fff; text-shadow: 0 0 14px var(--gold); } }
.cd-date { margin-bottom: 20px; font: italic 500 18px/1.4 var(--f-i); color: var(--ink-s); }

/* ── Tiket tanggal & tempat ── */
.ticket { position: relative; max-width: 340px; margin: 0 auto 26px; padding: 42px 24px 28px; border-radius: 140px 140px 16px 16px; border: 2px solid var(--gold); background: linear-gradient(180deg, #3b1d78, #150a30 80%); box-shadow: 0 0 0 5px rgba(21, 10, 48, .95) inset, 0 0 0 6px rgba(242, 200, 105, .45) inset, 0 20px 36px -18px rgba(0, 0, 0, .8); }
.ticket.rose { background: linear-gradient(180deg, #7a1f5e, #200a34 80%); border-color: var(--rose-l); }
.tk-num { display: block; font: 600 12px/1 var(--f-d); letter-spacing: .32em; color: var(--gold); }
.tk-t { margin-top: 10px; font: 700 26px/1.2 var(--f-d); letter-spacing: .1em; color: var(--gold-l); }
.tk-s { font: italic 500 18px/1.4 var(--f-i); color: var(--rose-l); }
.tk-l { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink); }
.tk-l li { display: flex; align-items: flex-start; justify-content: center; gap: 10px; text-align: left; }
.tk-l .ico { margin-top: 4px; color: var(--gold); }
.loc { max-width: 380px; margin: 40px auto 0; }
.map { height: 210px; margin-bottom: 20px; border-radius: 18px; border: 2px solid var(--gold); overflow: hidden; z-index: 0; }
.loc-name { font: 700 19px/1.4 var(--f-d); letter-spacing: .04em; color: var(--gold-l); }
.loc-addr { margin: 4px 0 18px; font-size: 14px; color: var(--ink-s); }

/* ── Kartu kenangan (geser) ── */
.sec-wide { padding-left: 0; padding-right: 0; }
.mem { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 24px 30px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.mem::-webkit-scrollbar { display: none; }
.mem-i { position: relative; flex: 0 0 210px; aspect-ratio: 150 / 235; padding: 10px; border-radius: 12px; border: 2px solid var(--gold); background: linear-gradient(180deg, #3b1d78, #150a30); box-shadow: 0 16px 28px -12px rgba(0, 0, 0, .8), 0 0 24px rgba(242, 200, 105, .18); transform: rotate(var(--r)); scroll-snap-align: center; cursor: pointer; transition: transform .35s var(--ease); -webkit-tap-highlight-color: transparent; }
.mem-i:hover { transform: rotate(0) translateY(-6px); }
.mem-i img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.mem-no { position: absolute; bottom: -1px; left: 50%; min-width: 30px; padding: 2px 8px; transform: translate(-50%, 50%); border-radius: 99px; background: var(--gold-g); color: #2a1458; font: 700 11px/1.4 var(--f-d); letter-spacing: .1em; }
.mem-i.ph { display: grid; place-items: center; cursor: default; }
.ph-ico { width: 54%; height: 54%; color: var(--gold); opacity: .85; filter: drop-shadow(0 0 14px rgba(242, 200, 105, .5)); }

/* ── Ramalan ── */
.fortune { max-width: 380px; margin: 0 auto; padding: 24px 22px 20px; border-radius: 22px; border: 1px solid rgba(242, 200, 105, .55); background: linear-gradient(180deg, rgba(138, 92, 240, .18), rgba(21, 10, 48, .6)); text-align: left; }
.fo-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin-bottom: 18px; }
.fo-l { font: 600 13px/1.4 var(--f-d); letter-spacing: .04em; color: var(--ink); }
.fo-v { font: 700 15px/1.3 var(--f-d); color: var(--gold); }
.fo-bar { display: block; grid-column: 1 / -1; height: 9px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.fo-bar u { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--rose), var(--gold)); box-shadow: 0 0 12px rgba(242, 200, 105, .6); }
.fortune.shown .fo-bar u { width: var(--p); transition: width 1.5s var(--ease) var(--d, 0s); }
.fo-note { margin-top: 4px; text-align: center; font: italic 500 15px/1.4 var(--f-i); color: var(--ink-s); }

/* ── Form & ucapan ── */
.card { max-width: 400px; margin: 0 auto; padding: 26px 22px; border-radius: 22px; border: 1px solid rgba(242, 200, 105, .55); background: linear-gradient(180deg, rgba(138, 92, 240, .2), rgba(21, 10, 48, .65)); text-align: left; }
.f-l { display: block; margin: 16px 0 6px; font: 600 11px/1.3 var(--f-d); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.form .f-l:first-of-type { margin-top: 0; }
.f-in { width: 100%; padding: 12px 14px; border: 1px solid rgba(242, 200, 105, .4); border-radius: 12px; background: rgba(10, 4, 26, .55); color: var(--ink); font: 400 15px/1.5 var(--f-b); outline: none; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.f-in::placeholder { color: #8a7cb0; }
.f-in:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242, 200, 105, .22); }
.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-size: 13px; border: 1px solid rgba(242, 200, 105, .4); border-radius: 12px; background: rgba(10, 4, 26, .5); color: var(--ink-s); cursor: pointer; transition: all .2s; }
.ch input:checked + span { background: var(--gold-g); border-color: transparent; color: #2a1458; font-weight: 700; }
.ch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(242, 200, 105, .4); }
.form .btn { margin-top: 22px; }
.btn.sending .ico { animation: spin .8s linear infinite; }

.wish-head { display: flex; align-items: center; justify-content: space-between; max-width: 400px; margin: 44px auto 14px; }
.wish-head h3 { font: 600 20px/1.3 var(--f-d); letter-spacing: .06em; color: var(--gold-l); text-align: left; }
.wh-live { display: inline-flex; align-items: center; gap: 6px; font: 600 10px/1 var(--f-d); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.wh-live i { width: 7px; height: 7px; border-radius: 50%; background: #5ce08a; animation: live 1.6s ease-in-out infinite; }
@keyframes live { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.wishes { max-width: 400px; margin: 0 auto; display: grid; gap: 12px; max-height: 480px; overflow-y: auto; padding: 2px 4px 2px 0; text-align: left; overscroll-behavior: contain; }
.wish-item { --av: var(--rose); display: flex; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid rgba(242, 200, 105, .4); background: linear-gradient(135deg, rgba(138, 92, 240, .2), rgba(21, 10, 48, .7)); border-left: 4px solid var(--av); }
.wish-item.new { animation: wishIn .7s var(--ease) both; }
@keyframes wishIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
.wish-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--av); color: #fff; font: 700 17px/1 var(--f-d); box-shadow: 0 0 14px var(--av); }
.wish-body { min-width: 0; flex: 1; }
.wish-header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wish-name { font: 700 14px/1.3 var(--f-b); color: var(--cream); overflow-wrap: anywhere; }
.wish-badge { padding: 2px 9px; border-radius: 99px; font-size: 10.5px; font-weight: 700; }
.wish-badge.hadir { background: rgba(92, 224, 138, .18); color: #7df0a5; }
.wish-badge.tidak { background: rgba(255, 122, 138, .2); color: #ff9aa6; }
.wish-badge.ragu  { background: rgba(242, 200, 105, .2); color: var(--gold); }
.wish-message { margin-top: 4px; font: italic 500 16px/1.5 var(--f-i); color: var(--ink); overflow-wrap: anywhere; }
.wish-time { display: block; margin-top: 6px; font-size: 11.5px; color: #8a7cb0; }
.wish-empty { text-align: center; padding: 20px; color: var(--ink-s); font: italic 500 17px/1.5 var(--f-i); }

/* ── Kado (partial) ── */
.gift-box { max-width: 420px; margin: 0 auto; border-radius: 22px; border: 2px solid var(--gold); background: #fff8ea; color: #2a1458; overflow: hidden; text-align: left; box-shadow: 0 20px 40px -22px rgba(0, 0, 0, .8), 0 0 30px rgba(242, 200, 105, .25); }
.gift-wrap .gs-heading h2 { font-family: var(--f-d) !important; font-weight: 600 !important; color: #2a1458 !important; }
.gift-wrap .gs-heading h2::after { background: var(--gold-d) !important; }
.gift-wrap .gs-card, .gift-wrap .gs-bank-card { border: 1px solid #e9d6a5 !important; border-radius: 14px !important; }
.gift-wrap .gs-btn, .gift-wrap .gs-bank-copy { border-radius: 99px !important; font-family: var(--f-b) !important; }
.gift-wrap .gs-btn-buy { background: #3b1d78 !important; color: #fff !important; }
.gift-wrap .gs-bank-logo { background: #f3e4bd !important; color: #3b1d78 !important; }

/* ── Penutup ── */
.end { position: relative; padding: 70px 24px 90px; text-align: center; }
.end-in { max-width: 380px; margin: 0 auto; }
.end-art { width: 190px; height: 190px; margin: 6px auto 12px; filter: drop-shadow(0 0 22px rgba(242, 200, 105, .45)); animation: cardFloat 6s ease-in-out infinite; }
.fam { margin: 22px 0 24px; display: grid; gap: 14px; font-size: 14px; color: var(--ink); }
.fam span { display: block; margin-bottom: 2px; font: 600 10.5px/1.3 var(--f-d); letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.end-credit { font-size: 12px; color: #8a7cb0; }

/* ── Lightbox ── */
.gallery-lightbox { display: none; position: fixed; inset: 0; z-index: 7000; align-items: center; justify-content: center; background: rgba(10, 4, 26, .94); opacity: 0; transition: opacity .3s; }
.lb-img-wrap img { max-width: 92vw; max-height: 80vh; border: 3px solid var(--gold); border-radius: 10px; box-shadow: 0 0 40px rgba(242, 200, 105, .35); }
.lb-close, .lb-prev, .lb-next { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; background: rgba(21, 10, 48, .9); color: var(--gold); font: 600 22px/1 var(--f-d); cursor: pointer; }
.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: var(--gold-l); font: 500 13px var(--f-d); letter-spacing: .14em; }

@media (max-height: 700px) {
    .deck { transform: scale(.82); }
    .in-names { font-size: 30px; }
    .in-hint { display: none; }
    .intro { padding-top: 22px; padding-bottom: 18px; }
    .intro.s-pick .dk.pick { transform: translate(0, -3vh) scale(1.3); }
}
@media (max-width: 360px) {
    .pair { gap: 10px; }
    .names { font-size: 34px; }
    .cd b { font-size: 24px; }
}
@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; }
    .fortune .fo-bar u { width: var(--p); }
    .flip-in { transition: none; }
}
