/* ═══════════════════════════════════════════════════════════════
   LOVE MATCH — undangan bergaya aplikasi kencan (swipe card deck)
   ═══════════════════════════════════════════════════════════════ */
:root {
    --coral: #ff7a5c;
    --rose: #f4607a;
    --rose-d: #e2466c;
    --berry: #b8325f;
    --peach: #ffb38a;
    --blush: #fff1ee;
    --cream: #fff8f5;
    --ink: #2d1b24;
    --ink-2: #6e5662;
    --ink-3: #a08c95;
    --line: #f3e3e3;
    --gold: #f5b041;
    --lilac: #8b7cf6;
    --blue: #3b8cf6;
    --grad: linear-gradient(135deg, #ff9466 0%, #f4607a 52%, #e2466c 100%);
    --grad-soft: linear-gradient(135deg, #ffe3d6 0%, #ffd3dc 100%);
    --f-display: 'Fraunces', Georgia, serif;
    --f-ui: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --app-w: min(100vw, 440px);
    --shadow-card: 0 22px 44px -18px rgba(165, 40, 80, .38), 0 4px 14px -4px rgba(120, 30, 60, .10);
    --ease-out: cubic-bezier(.2, .9, .25, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { 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:
        radial-gradient(60vw 60vw at 10% 10%, rgba(255, 179, 138, .55), transparent 60%),
        radial-gradient(55vw 55vw at 90% 85%, rgba(244, 96, 122, .38), transparent 60%),
        radial-gradient(40vw 40vw at 85% 15%, rgba(255, 211, 220, .8), transparent 60%),
        #fdeee9;
    -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; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Brand ───────────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 11px;
    display: grid; place-items: center;
    background: #fff; color: var(--rose);
    box-shadow: 0 6px 16px -6px rgba(180, 40, 80, .55);
    font-size: 20px;
}
.wordmark { font-family: var(--f-display); font-weight: 600; font-size: 26px; letter-spacing: -.02em; line-height: 1; }
.wordmark em { font-style: italic; font-weight: 400; margin-left: 1px; }
.brand.sm .brand-mark { width: 28px; height: 28px; border-radius: 9px; font-size: 16px; background: var(--grad); color: #fff; }
.brand.sm .wordmark {
    font-size: 22px;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-grad, .btn-white {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; padding: 0 26px; border-radius: 999px;
    font-weight: 700; font-size: 15px; letter-spacing: .01em;
    transition: transform .2s var(--ease-spring), box-shadow .2s;
}
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 12px 26px -10px rgba(226, 70, 108, .75), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-white { background: #fff; color: var(--rose-d); box-shadow: 0 12px 26px -12px rgba(60, 10, 30, .45); }
.btn-grad:active, .btn-white:active { transform: scale(.96); }
.btn-grad .ico, .btn-white .ico { font-size: 18px; }
.btn-grad.big { width: 100%; min-height: 58px; font-size: 17px; }

/* ═════════ INTRO ═════════ */
.intro { position: fixed; inset: 0; z-index: 60; overflow: hidden; }
.intro > .splash, .intro > .duel, .intro > .match {
    position: absolute; inset: 0; margin: 0 auto; width: var(--app-w);
}
.splash {
    display: flex; flex-direction: column; justify-content: space-between;
    padding: calc(34px + env(safe-area-inset-top)) 24px calc(26px + env(safe-area-inset-bottom));
    color: #fff; text-align: center;
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, .28), transparent 60%),
        linear-gradient(165deg, #ffa071 0%, #f86e78 46%, #e2466c 78%, #c93a69 100%);
    transition: opacity .45s, transform .6s var(--ease-out);
    overflow: hidden;
}
@media (min-width: 441px) {
    .splash, .app { box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 30px 80px -20px rgba(160, 40, 80, .35); }
}
.float-hearts i {
    position: absolute; bottom: -40px; left: calc(6% + var(--i) * 11%);
    color: rgba(255, 255, 255, .22); font-size: calc(14px + (var(--i) * 7 % 4) * 7px);
    animation: floatUp calc(9s + var(--i) * 1.3s) linear calc(var(--i) * -1.7s) infinite;
}
.float-hearts .ico { display: block; }
@keyframes floatUp {
    0% { transform: translateY(0) rotate(-10deg); opacity: 0; }
    10% { opacity: 1; }
    100% { transform: translateY(-110vh) rotate(18deg); opacity: 0; }
}
.sp-top { position: relative; animation: fadeDown .8s var(--ease-out) both; }
.sp-top .brand { justify-content: center; }
.sp-top .wordmark { font-size: 40px; }
.sp-top .brand-mark { width: 46px; height: 46px; border-radius: 15px; font-size: 26px; animation: heartBeat 1.6s ease-in-out infinite; }
.sp-kicker { margin-top: 12px; font-size: 11.5px; letter-spacing: .32em; text-transform: uppercase; font-weight: 600; opacity: .9; }

.sp-cards { position: relative; height: 230px; margin: 10px auto 0; width: 260px; animation: fadeUp .9s .15s var(--ease-out) both; }
.mini-card {
    position: absolute; top: 14px; width: 138px; height: 186px;
    border-radius: 22px; overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 20px 40px -14px rgba(90, 10, 40, .55);
    background: var(--grad-soft);
}
.mini-card.g { left: 8px; transform: rotate(-9deg); background: linear-gradient(160deg, #ffd0b5, #ff8d6f); animation: sway 5s ease-in-out infinite; }
.mini-card.b { right: 8px; transform: rotate(8deg); background: linear-gradient(160deg, #ffd6e2, #ee6f97); animation: sway 5s ease-in-out -2.5s infinite; }
.mini-card img { width: 100%; height: 100%; object-fit: cover; }
.mini-card .mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-style: italic; font-size: 84px; color: rgba(255, 255, 255, .92); }
.mc-name {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; text-align: left;
    font-family: var(--f-display); font-weight: 600; font-size: 19px; color: #fff;
    background: linear-gradient(transparent, rgba(40, 8, 20, .6));
}
@keyframes sway { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.sp-pulse {
    position: absolute; left: 50%; top: 92px; width: 58px; height: 58px; margin-left: -29px;
    border-radius: 50%; background: #fff; color: var(--rose);
    display: grid; place-items: center; font-size: 28px; z-index: 2;
    box-shadow: 0 10px 26px -8px rgba(110, 10, 40, .6);
    animation: heartBeat 1.4s ease-in-out infinite;
}
.sp-pulse::before {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .8); animation: ring 1.8s ease-out infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
@keyframes heartBeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.14); } 30% { transform: scale(.98); } 45% { transform: scale(1.08); } }

.invite {
    position: relative;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .38);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-radius: 28px; padding: 20px 18px 18px;
    box-shadow: 0 20px 40px -20px rgba(90, 10, 40, .5);
    animation: fadeUp .9s .3s var(--ease-out) both;
}
.inv-notif {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--rose-d);
    font-size: 11.5px; font-weight: 700; margin-bottom: 12px;
}
.inv-notif .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 3px rgba(244, 96, 122, .25); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.inv-label { font-size: 12.5px; opacity: .88; }
.inv-guest { font-family: var(--f-display); font-weight: 600; font-size: 27px; line-height: 1.15; margin: 4px 0 6px; word-break: break-word; }
.inv-names { font-size: 12.5px; opacity: .9; margin-bottom: 16px; letter-spacing: .02em; }
.inv-names span { font-family: var(--f-display); font-style: italic; }
.invite .btn-grad {
    background: #fff; color: var(--rose-d);
    box-shadow: 0 14px 30px -12px rgba(80, 5, 30, .6);
}
.invite .btn-grad .ico { animation: heartBeat 1.4s ease-in-out infinite; }

/* duel: two profiles slide in and like each other */
.duel { pointer-events: none; opacity: 0; }
.duel-card {
    position: absolute; top: 50%; width: 58%; aspect-ratio: 3 / 4.2; margin-top: -36%;
    border-radius: 26px; overflow: hidden; border: 5px solid #fff;
    box-shadow: 0 30px 60px -20px rgba(90, 10, 40, .6);
}
.duel-card.g { left: 4%; background: linear-gradient(160deg, #ffd0b5, #ff8d6f); }
.duel-card.b { right: 4%; background: linear-gradient(160deg, #ffd6e2, #ee6f97); }
.duel-card img { width: 100%; height: 100%; object-fit: cover; }
.duel-card .mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-style: italic; font-size: 120px; color: rgba(255, 255, 255, .92); }
.dc-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; font-family: var(--f-display); font-weight: 600; font-size: 26px; color: #fff; background: linear-gradient(transparent, rgba(40, 8, 20, .65)); }
.duel-card .stamp { opacity: 0; }
.intro.matching .splash { opacity: 0; transform: scale(.94); pointer-events: none; }
.intro.matching .duel { opacity: 1; background: linear-gradient(165deg, #ffa071 0%, #f86e78 46%, #e2466c 78%, #c93a69 100%); }
.intro.matching .duel-card.g { animation: duelG 1.25s var(--ease-out) both; }
.intro.matching .duel-card.b { animation: duelB 1.25s var(--ease-out) both; }
.intro.matching .duel-card .stamp { animation: stampIn .3s .45s var(--ease-spring) both; }
@keyframes duelG {
    0% { transform: translateX(-120%) rotate(-24deg); }
    45% { transform: translateX(0) rotate(-8deg); }
    70% { transform: translateX(22%) rotate(-4deg) scale(.96); }
    100% { transform: translateX(30%) rotate(0) scale(.6); opacity: 0; }
}
@keyframes duelB {
    0% { transform: translateX(120%) rotate(24deg); }
    45% { transform: translateX(0) rotate(8deg); }
    70% { transform: translateX(-22%) rotate(4deg) scale(.96); }
    100% { transform: translateX(-30%) rotate(0) scale(.6); opacity: 0; }
}
@keyframes stampIn { from { opacity: 0; transform: rotate(-14deg) scale(2); } to { opacity: 1; transform: rotate(-14deg) scale(1); } }

/* It's a Match */
.match {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 30px 28px calc(30px + env(safe-area-inset-bottom)); text-align: center; color: #fff;
    background:
        radial-gradient(90% 50% at 50% 38%, rgba(255, 122, 92, .55), transparent 70%),
        linear-gradient(170deg, #3a1226 0%, #5e1a3b 55%, #8a2450 100%);
    opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s;
}
.intro.matched .match { opacity: 1; visibility: visible; transition: opacity .5s; }
.intro.matched .splash, .intro.matched .duel { opacity: 0; pointer-events: none; }
.m-title {
    font-family: var(--f-display); font-style: italic; font-weight: 600;
    font-size: clamp(50px, 15vw, 64px); line-height: .95; letter-spacing: -.02em;
    background: linear-gradient(120deg, #ffd9a8 0%, #ff9a7b 40%, #ff6f91 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 6px 22px rgba(255, 110, 140, .35));
}
.m-title span { display: block; font-size: .5em; font-weight: 400; color: #ffe2d6; -webkit-text-fill-color: #ffe2d6; letter-spacing: .02em; margin-bottom: 4px; }
.m-avatars, .end-avs { position: relative; display: flex; justify-content: center; margin: 34px 0 26px; height: 128px; }
.m-av {
    width: 128px; height: 128px; border-radius: 50%; overflow: hidden;
    border: 4px solid #fff; display: grid; place-items: center;
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .5);
}
.m-av.g { background: linear-gradient(150deg, #ffcfb3, #ff8160); margin-right: -18px; }
.m-av.b { background: linear-gradient(150deg, #ffd3e0, #e9568a); margin-left: -18px; }
.m-av img { width: 100%; height: 100%; object-fit: cover; }
.m-av b { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: 62px; color: #fff; }
.m-heart {
    position: absolute; left: 50%; bottom: -14px; width: 48px; height: 48px; margin-left: -24px;
    border-radius: 50%; background: #fff; color: var(--rose); display: grid; place-items: center; font-size: 24px;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); z-index: 2;
}
.intro.matched .m-title { animation: popIn .7s var(--ease-spring) both; }
.intro.matched .m-av.g { animation: avG .8s .1s var(--ease-spring) both; }
.intro.matched .m-av.b { animation: avB .8s .1s var(--ease-spring) both; }
.intro.matched .m-heart { animation: popIn .6s .55s var(--ease-spring) both, heartBeat 1.5s 1.3s ease-in-out infinite; }
.intro.matched .m-lead, .intro.matched .m-sub, .intro.matched .match .btn-white, .intro.matched .m-hint { animation: fadeUp .7s var(--ease-out) both; }
.intro.matched .m-lead { animation-delay: .5s; }
.intro.matched .m-sub { animation-delay: .62s; }
.intro.matched .match .btn-white { animation-delay: .78s; }
.intro.matched .m-hint { animation-delay: .9s; }
@keyframes avG { from { transform: translateX(-90px) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes avB { from { transform: translateX(90px) rotate(20deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes popIn { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.m-lead { font-family: var(--f-display); font-size: 23px; font-weight: 600; }
.m-sub { font-size: 14px; line-height: 1.65; opacity: .82; margin: 10px 0 28px; max-width: 320px; }
.match .btn-white { width: 100%; max-width: 320px; min-height: 56px; font-size: 16px; }
.m-hint { margin-top: 16px; font-size: 12px; opacity: .6; }
.intro.leaving { opacity: 0; transform: scale(1.04); transition: opacity .6s, transform .7s var(--ease-out); pointer-events: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }

/* ═════════ APP SHELL ═════════ */
.app {
    position: fixed; inset: 0; margin: 0 auto; width: var(--app-w);
    display: flex; flex-direction: column;
    background:
        radial-gradient(120% 40% at 50% 0%, #fff 0%, transparent 70%),
        linear-gradient(180deg, #fff8f5 0%, #ffeee9 100%);
    opacity: 0; visibility: hidden;
}
body.opened .app { opacity: 1; visibility: visible; transition: opacity .5s .1s; }
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: calc(12px + env(safe-area-inset-top)) 66px 8px 18px;
    min-height: 58px;
}
.tb-count { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.progress { display: flex; gap: 4px; padding: 2px 18px 0; }
.progress i { flex: 1; height: 4px; border-radius: 4px; background: rgba(226, 70, 108, .14); transition: background .3s; }
.progress i.done { background: rgba(226, 70, 108, .55); }
.progress i.on { background: var(--grad); }

.music-toggle-btn {
    position: fixed; z-index: 70;
    top: calc(12px + env(safe-area-inset-top));
    right: calc(max(0px, (100vw - 440px) / 2) + 16px);
    width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(255, 255, 255, .22); color: #fff;
    border: 1px solid rgba(255, 255, 255, .5);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transition: background .3s, color .3s;
}
.music-toggle-btn svg { width: 17px; height: 17px; }
body.opened .music-toggle-btn { background: #fff; color: var(--rose); border-color: var(--line); box-shadow: 0 6px 16px -8px rgba(180, 40, 80, .5); }
.music-toggle-btn.playing svg { animation: spinSlow 4s linear infinite; }
#musicIconPause { animation: none !important; }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ── Deck ── */
.deck { position: relative; flex: 1; margin: 14px 14px 0; min-height: 0; }
.card {
    position: absolute; inset: 0 0 28px 0;
    background: #fff; border-radius: 28px; overflow: hidden;
    box-shadow: var(--shadow-card);
    transform-origin: 50% 100%;
    transition: transform .55s var(--ease-out), opacity .45s;
    touch-action: pan-y;
    -webkit-user-select: none; user-select: none;
    will-change: transform;
    cursor: grab;
}
.card.dragging { transition: none; cursor: grabbing; }
.card:not(.is-top) { pointer-events: none; }
.card > * { transition: opacity .3s; }
/* kartu yang mengintip di belakang hanya menampilkan tepi putihnya */
.card:not(.is-top):not(.next-live) > * { opacity: 0; }
.card.nudge { animation: nudge .5s ease; }
@keyframes nudge { 20% { translate: -10px 0; } 40% { translate: 9px 0; } 60% { translate: -5px 0; } 80% { translate: 3px 0; } }
.card input, .card textarea { -webkit-user-select: text; user-select: text; }
.card-scroll {
    position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden;
    padding: 22px 22px 30px;
    overscroll-behavior: contain; touch-action: pan-y;
    scrollbar-width: none;
}
.card-scroll::-webkit-scrollbar { display: none; }
.card-scroll { -webkit-mask-image: linear-gradient(#000 calc(100% - 26px), transparent); mask-image: linear-gradient(#000 calc(100% - 26px), transparent); }
.card.seen .card-scroll > * { animation: fadeUp .6s var(--ease-out) both; }
.card.seen .card-scroll > *:nth-child(2) { animation-delay: .06s; }
.card.seen .card-scroll > *:nth-child(3) { animation-delay: .12s; }
.card.seen .card-scroll > *:nth-child(4) { animation-delay: .18s; }
.card.seen .card-scroll > *:nth-child(5) { animation-delay: .24s; }
.card.seen .card-scroll > *:nth-child(n+6) { animation-delay: .3s; }

.chip-no {
    display: inline-flex; align-items: center;
    padding: 5px 11px; border-radius: 999px;
    background: var(--blush); color: var(--rose-d);
    font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    margin-bottom: 16px;
}
.chip-no.light { background: rgba(255, 255, 255, .2); color: #fff; border: 1px solid rgba(255, 255, 255, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.profile > .chip-no, .gl-photos > .chip-no { position: absolute; top: 18px; left: 18px; z-index: 3; }
.gl-photos > .chip-no { top: 26px; }
.chip-no.inline { margin: 0 0 0 auto; font-size: 9.5px; }

.c-title { font-family: var(--f-display); font-weight: 600; font-size: 30px; line-height: 1.1; letter-spacing: -.015em; color: var(--ink); }
.c-title em {
    font-style: italic; font-weight: 400;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.c-text { font-size: 14.5px; line-height: 1.72; color: var(--ink-2); margin-top: 12px; }
.c-text.sm { font-size: 13.5px; margin-top: 8px; }

/* Stamps */
.stamp {
    position: absolute; z-index: 20; top: 30px;
    padding: 4px 12px 2px; border: 3.5px solid currentColor; border-radius: 12px;
    font-family: var(--f-ui); font-weight: 800; font-size: 28px; letter-spacing: .08em;
    opacity: 0; pointer-events: none; background: rgba(255, 255, 255, .7);
}
.s-like { left: 22px; color: #20b981; transform: rotate(-14deg); }
.s-nope { right: 22px; color: #f0567a; transform: rotate(14deg); }
.s-super { left: 50%; top: auto; bottom: 90px; color: var(--lilac); transform: translateX(-50%) rotate(-6deg); }
.duel-card .stamp { top: 22px; left: 16px; font-size: 22px; }

/* ── Action bar ── */
.actions {
    display: flex; align-items: center; justify-content: center; gap: 18px;
    padding: 12px 0 calc(18px + env(safe-area-inset-bottom));
}
.act {
    border-radius: 50%; display: grid; place-items: center;
    background: #fff; box-shadow: 0 10px 22px -10px rgba(165, 40, 80, .45), 0 0 0 1px rgba(226, 70, 108, .06);
    transition: transform .25s var(--ease-spring), opacity .25s, box-shadow .25s;
}
.act.sm { width: 48px; height: 48px; font-size: 20px; }
.act.lg { width: 64px; height: 64px; font-size: 27px; }
.act.undo { color: var(--gold); }
.act.nope { color: #f0567a; }
.act.super { color: var(--lilac); }
.act.like { background: var(--grad); color: #fff; box-shadow: 0 14px 28px -10px rgba(226, 70, 108, .75); }
.act:active { transform: scale(.88); }
.act.pop { animation: pop .4s var(--ease-spring); }
@keyframes pop { 40% { transform: scale(1.18); } }
.act:disabled { opacity: .35; cursor: default; }
.actions.at-end .act.nope, .actions.at-end .act.like, .actions.at-end .act.super { opacity: .35; }
body.has-qr .actions { padding-bottom: 82px; }

/* ═════════ CARDS ═════════ */
/* 01 · Salam */
.salam { background: radial-gradient(100% 50% at 100% 0%, #ffe6dc 0%, transparent 60%), #fff; }
.salam .card-scroll { display: flex; flex-direction: column; }
.sl-badge {
    display: inline-flex; align-self: flex-start; align-items: center; gap: 6px;
    font-size: 11.5px; font-weight: 700; color: var(--blue);
    background: #eef5ff; padding: 6px 11px; border-radius: 999px; margin-bottom: 18px;
}
.sl-badge .ico { font-size: 15px; }
.salam .chip-no { align-self: flex-start; }
.sl-arab { font-family: 'Amiri', serif; font-size: 25px; color: var(--rose-d); margin-bottom: 10px; direction: rtl; text-align: left; }
.salam .c-title em { display: block; font-size: .72em; }
.ayat { position: relative; margin-top: 22px; padding: 22px 20px 18px; border-radius: 22px; background: var(--grad-soft); }
.ayat-q { position: absolute; top: -18px; left: 16px; font-family: var(--f-display); font-size: 72px; line-height: 1; color: var(--rose); }
.ayat blockquote { font-family: var(--f-display); font-style: italic; font-size: 16px; line-height: 1.6; color: var(--ink); }
.ayat figcaption { margin-top: 10px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--rose-d); }
.swipe-hint { margin-top: auto; padding-top: 22px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.sh-hand { display: inline-block; animation: hand 1.8s ease-in-out infinite; }
@keyframes hand { 0%, 100% { transform: translateX(-8px) rotate(-8deg); } 50% { transform: translateX(10px) rotate(8deg); } }

/* 02/03 · Profile */
.pf-photo { position: absolute; inset: 0; background: #2d1b24; }
.pf-photo img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pf-photo.empty {
    display: grid; place-items: center;
    background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .45), transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(255, 255, 255, .25), transparent 45%),
        linear-gradient(160deg, #ffc9a8 0%, #ff8b6a 55%, #ef5f6f 100%);
}
.pf-photo.empty.b { background:
        radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .45), transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(255, 255, 255, .25), transparent 45%),
        linear-gradient(160deg, #ffd3e0 0%, #f27aa0 55%, #c9467a 100%); }
.pf-mono {
    font-family: var(--f-display); font-style: italic; font-weight: 400;
    font-size: 220px; line-height: 1; color: rgba(255, 255, 255, .9);
    margin-top: -26%;
    text-shadow: 0 20px 50px rgba(120, 20, 50, .3);
}
.pf-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 6, 16, .25) 0%, transparent 22%, transparent 42%, rgba(30, 6, 16, .82) 100%); pointer-events: none; }
.pf-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 20px 24px; color: #fff; z-index: 2; }
.pf-role {
    display: inline-block; padding: 4px 11px; border-radius: 999px; margin-bottom: 8px;
    background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.pf-name { font-family: var(--f-display); font-weight: 600; font-size: 32px; line-height: 1.08; letter-spacing: -.01em; text-shadow: 0 2px 16px rgba(0, 0, 0, .25); }
.verified { display: inline-grid; vertical-align: middle; color: #5aa8ff; font-size: 22px; margin-left: 2px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .2)); }
.pf-parent { margin-top: 8px; font-size: 13.5px; line-height: 1.55; opacity: .92; }
.pf-parent b { font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.chips span {
    padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
    background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.card.seen .pf-info > * { animation: fadeUp .6s var(--ease-out) both; }
.card.seen .pf-info > *:nth-child(2) { animation-delay: .07s; }
.card.seen .pf-info > *:nth-child(3) { animation-delay: .14s; }
.card.seen .pf-info > *:nth-child(4) { animation-delay: .21s; }
.card.seen .pf-photo img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }

/* 04 · Kisah */
.prompt { margin-top: 14px; padding: 16px 18px 18px; border-radius: 20px; border: 1.5px solid var(--line); background: #fff; }
.prompt.alt { background: var(--grad-soft); border-color: transparent; }
.pr-q { display: block; font-size: 12px; font-weight: 800; color: var(--rose-d); letter-spacing: .02em; margin-bottom: 6px; }
.pr-a { font-family: var(--f-display); font-size: 17.5px; line-height: 1.45; color: var(--ink); }
.compat { position: relative; width: 130px; height: 130px; margin: 24px auto 4px; }
.compat-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.cr-bg { fill: none; stroke: var(--blush); stroke-width: 10; }
.cr-fg { fill: none; stroke: url(#gradRing); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 314.2; stroke-dashoffset: 314.2; }
.card.seen .cr-fg { animation: ringFill 1.6s .4s var(--ease-out) forwards; }
@keyframes ringFill { to { stroke-dashoffset: 0; } }
.compat-txt { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.compat-txt b { font-family: var(--f-display); font-size: 32px; font-weight: 600; color: var(--rose-d); line-height: 1; }
.compat-txt span { font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }

/* 05 · Countdown */
.countdown {
    color: #fff;
    background:
        radial-gradient(circle at 110% -10%, rgba(255, 255, 255, .35) 0 30%, transparent 31%),
        radial-gradient(circle at -20% 105%, rgba(255, 255, 255, .18) 0 34%, transparent 35%),
        linear-gradient(160deg, #ff9466 0%, #f4607a 55%, #d63f6c 100%);
}
.countdown .card-scroll { display: flex; flex-direction: column; text-align: center; }
.countdown .chip-no { align-self: flex-start; }
.cd-hero { margin: auto 0 0; }
.cd-flame {
    width: 78px; height: 78px; border-radius: 50%; margin: 0 auto 16px;
    display: grid; place-items: center; font-size: 38px;
    background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .45);
    animation: heartBeat 1.6s ease-in-out infinite;
}
.cd-kicker { font-family: var(--f-display); font-style: italic; font-size: 24px; line-height: 1.25; }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 24px 0 18px; }
.cd-box {
    padding: 14px 0 10px; border-radius: 18px;
    background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.cd-box b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-box span { display: block; margin-top: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.cd-date { font-weight: 700; font-size: 15px; margin-bottom: 18px; }
.countdown .btn-white { align-self: center; margin-bottom: auto; }

/* 06/07 · Event */
.ev-art {
    position: relative; height: 150px; border-radius: 22px; margin-bottom: 18px;
    display: grid; place-items: center; overflow: hidden;
    background: linear-gradient(135deg, #ffe0d1, #ffc3cf);
}
.ev-art.resepsi { background: linear-gradient(135deg, #f1e3ff, #ffcadb); }
.ev-art::before, .ev-art::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.ev-art::before { width: 160px; height: 160px; left: -40px; bottom: -70px; }
.ev-art::after { width: 110px; height: 110px; right: -24px; top: -40px; }
.ev-ico {
    position: relative; z-index: 1; width: 84px; height: 84px; border-radius: 50%;
    display: grid; place-items: center; font-size: 40px;
    background: #fff; color: var(--rose-d); box-shadow: 0 14px 30px -12px rgba(180, 40, 80, .5);
}
.resepsi .ev-ico { color: #9a4fd0; }
.spk { position: absolute; z-index: 1; color: #fff; animation: twinkle 2.4s ease-in-out infinite; }
.spk.s1 { left: 26%; top: 24%; font-size: 20px; }
.spk.s2 { right: 24%; bottom: 22%; font-size: 14px; animation-delay: -1.2s; }
@keyframes twinkle { 0%, 100% { transform: scale(.7) rotate(0); opacity: .6; } 50% { transform: scale(1.15) rotate(20deg); opacity: 1; } }
.ev-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-d); margin-bottom: 6px; }
.ev-list { list-style: none; margin: 18px 0 20px; display: grid; gap: 10px; }
.ev-list li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; background: var(--cream); border: 1px solid var(--line); }
.ev-list li > .ico { width: 40px; height: 40px; padding: 10px; border-radius: 13px; background: #fff; color: var(--rose); box-shadow: 0 6px 14px -8px rgba(180, 40, 80, .4); }
.ev-list span { display: block; font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.ev-list b { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); line-height: 1.35; margin-top: 2px; }
.event .btn-grad, .location .btn-grad { width: 100%; }

/* 08 · Lokasi */
.map-frame { position: relative; height: 220px; margin: 16px 0 18px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 14px 30px -18px rgba(120, 30, 60, .4); touch-action: auto; }
.leaflet-map { width: 100%; height: 100%; }
.map-illu { position: absolute; inset: 0; display: block; }
.map-illu svg { width: 100%; height: 100%; display: block; }
.map-illu .route { animation: dash 1.6s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.mi-pin {
    position: absolute; left: 73.75%; top: 30%; width: 44px; height: 44px; margin: -44px 0 0 -22px;
    border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
    background: var(--grad); color: #fff; display: grid; place-items: center;
    box-shadow: 0 10px 20px -6px rgba(226, 70, 108, .7);
    animation: pinBob 2s ease-in-out infinite;
}
.mi-pin .ico { transform: rotate(45deg); font-size: 20px; }
@keyframes pinBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.mi-you { position: absolute; left: 12.5%; top: 85%; transform: translate(-50%, -190%); font-size: 10.5px; font-weight: 800; color: #fff; background: var(--blue); padding: 3px 8px; border-radius: 999px; }
.loc-name { font-family: var(--f-display); font-weight: 600; font-size: 22px; line-height: 1.25; }
.loc-addr { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin: 6px 0 18px; }
.lm-marker span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--grad); color: #fff; box-shadow: 0 8px 18px -6px rgba(226, 70, 108, .7); }
.lm-marker svg { width: 20px; height: 20px; transform: rotate(45deg); }

/* 09 · Galeri */
.gl-photos { position: absolute; inset: 0; background: #2d1b24; }
.gl-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; pointer-events: none; }
.gl-img.on { opacity: 1; }
.gl-ph { display: grid; place-items: center; }
.gl-ph.p0 { background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .5), transparent 45%), linear-gradient(160deg, #ffd0b5, #ff8d6f 60%, #ef5f6f); }
.gl-ph.p1 { background: radial-gradient(circle at 70% 25%, rgba(255, 255, 255, .5), transparent 45%), linear-gradient(160deg, #ffd6e2, #f07aa6 60%, #b83280); }
.gl-ph.p2 { background: radial-gradient(circle at 40% 70%, rgba(255, 255, 255, .45), transparent 45%), linear-gradient(160deg, #f2e2ff, #c9a0f0 55%, #f0567a); }
.gl-ph-heart { font-size: 96px; color: rgba(255, 255, 255, .85); margin-top: -30%; filter: drop-shadow(0 16px 30px rgba(120, 20, 50, .3)); }
.gl-ph.on .gl-ph-heart { animation: heartBeat 1.8s ease-in-out infinite; }
.gl-tabs { position: absolute; z-index: 4; top: 12px; left: 14px; right: 14px; display: flex; gap: 4px; }
.gl-tabs i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .38); transition: background .25s; }
.gl-tabs i.on { background: #fff; }
.gl-nav { position: absolute; z-index: 3; top: 0; bottom: 34%; width: 50%; }
.gl-nav.prev { left: 0; }
.gl-nav.next { right: 0; }
.gl-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(30, 6, 16, .35) 0%, transparent 18%, transparent 55%, rgba(30, 6, 16, .8) 100%); pointer-events: none; }
.gl-info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 22px 20px 26px; color: #fff; pointer-events: none; }
.gl-cap { margin-top: 6px; font-size: 13.5px; opacity: .9; }
.gl-expand {
    position: absolute; z-index: 4; right: 16px; bottom: 26px; width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center; font-size: 18px; color: #fff;
    background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .4);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}

/* 10 · Hadiah */
.gift-wrap { margin: 14px -22px 0; }
.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 22px !important; }
.gift-wrap .gs-card, .gift-wrap .gs-bank-card { border-radius: 20px !important; border: 1px solid var(--line) !important; box-shadow: 0 12px 26px -18px rgba(150, 40, 80, .45) !important; }
.gift-wrap .gs-btn, .gift-wrap .gs-bank-copy { border-radius: 999px !important; font-family: var(--f-ui) !important; }
.gift-wrap .gs-btn-buy { background: var(--grad) !important; color: #fff !important; border: 0 !important; }
.gift-wrap .gs-sub-label { font-family: var(--f-ui) !important; }
.gift-wrap .gs-price { color: var(--rose-d) !important; font-family: var(--f-ui) !important; font-weight: 800 !important; }
.gift-wrap .gs-name, .gift-wrap .gs-bank-name-text, .gift-wrap .gs-bank-holder { font-family: var(--f-ui) !important; }

/* 11 · RSVP chat */
.rsvp { background: #fff8f6; }
.chat-head {
    position: absolute; top: 0; left: 0; right: 0; z-index: 3; height: 70px;
    display: flex; align-items: center; gap: 12px; padding: 0 16px 0 18px;
    background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.ch-avs { display: flex; }
.ch-av {
    width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 2.5px solid #fff;
    display: grid; place-items: center; font-family: var(--f-display); font-style: italic; font-size: 19px; color: #fff;
    background: linear-gradient(150deg, #ffcfb3, #ff8160);
}
.ch-av.b { margin-left: -12px; background: linear-gradient(150deg, #ffd3e0, #e9568a); }
.ch-av img { width: 100%; height: 100%; object-fit: cover; }
.ch-id { min-width: 0; }
.ch-id b { display: block; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-id small { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #20b981; font-weight: 600; }
.ch-id small i { width: 7px; height: 7px; border-radius: 50%; background: #20b981; }
.chat-body { top: 70px; padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.ch-day { align-self: center; font-size: 10.5px; font-weight: 700; color: var(--ink-3); background: #fff; padding: 4px 10px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; }
.bubble { max-width: 82%; padding: 11px 15px; font-size: 14px; line-height: 1.5; border-radius: 20px; word-wrap: break-word; }
.bubble.in { align-self: flex-start; background: #fff; color: var(--ink); border-bottom-left-radius: 6px; box-shadow: 0 6px 16px -10px rgba(120, 30, 60, .3); }
.bubble.out { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; box-shadow: 0 10px 20px -12px rgba(226, 70, 108, .7); }
.bubble.new { animation: bubbleIn .45s var(--ease-spring) both; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
.composer { margin-top: 10px; padding: 16px; border-radius: 22px; background: #fff; box-shadow: 0 16px 30px -20px rgba(120, 30, 60, .45); border: 1px solid var(--line); }
.f-l { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 7px; }
.f-l:not(:first-of-type) { margin-top: 14px; }
.composer > .f-l:nth-of-type(2) { margin-top: 14px; }
.f-in {
    width: 100%; font: inherit; font-size: 14.5px; color: var(--ink);
    padding: 12px 15px; border-radius: 16px; border: 1.5px solid transparent; background: #f8eef0;
    outline: none; transition: border-color .2s, background .2s; resize: none;
}
.f-in:focus { border-color: var(--rose); background: #fff; }
.quick { display: flex; flex-wrap: wrap; gap: 7px; }
.quick label { position: relative; cursor: pointer; }
.quick input { position: absolute; opacity: 0; pointer-events: none; }
.quick span {
    display: inline-block; padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
    color: var(--rose-d); border: 1.5px solid #f6c2cd; background: #fff; transition: all .2s;
}
.quick input:checked + span { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 16px -8px rgba(226, 70, 108, .7); }
.quick input:focus-visible + span { outline: 2px solid var(--rose); outline-offset: 2px; }
.type-row { display: flex; align-items: flex-end; gap: 8px; margin-top: 14px; }
.type-row .f-in { flex: 1; min-height: 50px; }
.send {
    width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center; font-size: 21px; color: #fff; background: var(--grad);
    box-shadow: 0 10px 20px -8px rgba(226, 70, 108, .75); transition: transform .2s var(--ease-spring);
}
.send:active { transform: scale(.9); }
.send.loading .ico { animation: spinSlow 1s linear infinite; }
.send:disabled { opacity: .7; }

/* 12 · Ucapan */
.wishes-list { margin-top: 16px; }
.wish-item { display: flex; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.wish-item:last-child { border-bottom: 0; }
.wish-item.new { animation: bubbleIn .5s var(--ease-spring) both; background: linear-gradient(90deg, var(--blush), transparent); border-radius: 16px; padding-left: 10px; }
.wish-avatar {
    position: relative; width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center; font-family: var(--f-display); font-style: italic; font-size: 21px; color: #fff;
    background: var(--av, var(--grad));
    box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px rgba(244, 96, 122, .35);
}
.wish-body { min-width: 0; flex: 1; }
.wish-header { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.wish-name { font-weight: 700; font-size: 14.5px; }
.wish-badge { font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; }
.wish-badge.hadir { background: #e3f8ef; color: #149267; }
.wish-badge.tidak { background: #ffe8ec; color: #d83c63; }
.wish-badge.ragu { background: #fff3dc; color: #c27d10; }
.wish-message { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); margin-top: 4px; word-wrap: break-word; }
.wish-time { display: block; font-size: 11px; color: var(--ink-3); margin-top: 5px; }
.wish-empty { text-align: center; padding: 34px 10px; color: var(--ink-3); font-size: 13.5px; line-height: 1.6; }
.we-ico { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--blush); color: var(--rose); font-size: 28px; }

/* 13 · Penutup */
.ending {
    color: #fff; text-align: center;
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 180, 140, .5), transparent 55%),
        linear-gradient(170deg, #f4607a 0%, #c93a69 55%, #7c2350 100%);
}
.ending .card-scroll { display: flex; flex-direction: column; align-items: center; }
.ending .chip-no { align-self: flex-start; }
.end-avs { margin: 8px 0 26px; height: 104px; }
.end-avs .m-av { width: 104px; height: 104px; }
.end-avs .m-av b { font-size: 50px; }
.end-avs .m-heart { width: 42px; height: 42px; margin-left: -21px; font-size: 20px; animation: heartBeat 1.6s ease-in-out infinite; }
.end-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.end-names { font-family: var(--f-display); font-weight: 600; font-size: 44px; line-height: 1.05; margin: 8px 0 14px; }
.end-names em { font-weight: 400; color: #ffd2bd; }
.end-copy { font-size: 14px; line-height: 1.7; opacity: .9; }
.end-fam { width: 100%; margin: 20px 0 18px; padding: 6px 16px; border-radius: 20px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); }
.end-fam p { padding: 12px 0; font-family: var(--f-display); font-size: 15.5px; line-height: 1.4; }
.end-fam p + p { border-top: 1px solid rgba(255, 255, 255, .22); }
.end-fam span { display: block; font-family: var(--f-ui); font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-bottom: 4px; }
.end-salam { font-family: var(--f-display); font-style: italic; font-size: 16px; margin-bottom: 20px; }
.end-credit { margin-top: 18px; font-size: 11px; opacity: .6; }

/* ── FX & toast ── */
.fx-layer { position: fixed; inset: 0; pointer-events: none; z-index: 9990; overflow: hidden; }
.burst { position: absolute; margin: -10px 0 0 -10px; animation: burst 1.1s cubic-bezier(.15, .7, .3, 1) forwards; }
.burst svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 4px rgba(120, 20, 50, .25)); }
@keyframes burst {
    0% { transform: translate(0, 0) scale(.3) rotate(0); opacity: 1; }
    70% { opacity: 1; }
    100% { transform: translate(var(--tx), var(--ty)) scale(1) rotate(var(--rot)); opacity: 0; }
}
.toast {
    position: fixed; left: 50%; bottom: calc(118px + env(safe-area-inset-bottom)); z-index: 9995;
    transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
    padding: 11px 18px; border-radius: 999px; background: rgba(45, 27, 36, .92); color: #fff;
    font-size: 13px; font-weight: 600; white-space: nowrap;
    transition: opacity .3s, transform .35s var(--ease-spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.has-qr .toast { bottom: calc(180px + env(safe-area-inset-bottom)); }

/* ── Lightbox ── */
.gallery-lightbox {
    position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center;
    background: rgba(25, 8, 16, .94); opacity: 0; transition: opacity .3s;
}
.lb-img-wrap { max-width: 92vw; max-height: 80vh; }
.lb-img-wrap img { max-width: 92vw; max-height: 80vh; border-radius: 18px; object-fit: contain; box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.lb-close, .lb-prev, .lb-next {
    position: absolute; width: 46px; height: 46px; border-radius: 50%; color: #fff; font-size: 26px; line-height: 1;
    background: rgba(255, 255, 255, .14); display: grid; place-items: center;
}
.lb-close { top: 18px; right: 18px; font-size: 18px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .75); font-size: 13px; font-weight: 600; }

/* ── Small phones ── */
@media (max-height: 700px) {
    .sp-cards { height: 190px; }
    .mini-card { width: 116px; height: 156px; }
    .sp-pulse { top: 74px; }
    .sp-top .wordmark { font-size: 34px; }
    .inv-guest { font-size: 23px; }
    .act.lg { width: 56px; height: 56px; }
    .act.sm { width: 44px; height: 44px; }
    .actions { padding-top: 8px; }
    .m-avatars { margin: 22px 0 18px; height: 108px; }
    .m-av { width: 108px; height: 108px; }
    .c-title { font-size: 27px; }
}

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