:root {
  --bg: #0e0d16; --bg2: #13121d; --card: #1d1b2b; --card2: #262338; --line: #2b2840;
  --text: #ffffff; --muted: #8e8aa8; --pink: #ff2d78; --pink2: #ff4d8d; --purple: #b51ee6; --violet: #7c3aed;
  --grad: linear-gradient(100deg, #6d28d9 0%, #c026d3 55%, #ec2d6f 100%); --gold: #fbbf24; --green: #22c55e; --red: #ff3b5c; --blue: #3b82f6;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Roboto', 'Hind Siliguri', system-ui, -apple-system, sans-serif; }
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; color: inherit; background: none; }
input, select, textarea { font: inherit; color: var(--text); background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; width: 100%; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--pink); }
svg.ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
#app { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; padding-bottom: 84px; }
.hidden { display: none !important; }

.btn { background: var(--pink); color: #fff; padding: 13px 20px; border-radius: 999px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn.block { width: 100%; }
.btn.purple { background: var(--purple); }
.btn.grad { background: var(--grad); }
.btn.ghost { background: var(--card2); border: 1px solid var(--line); font-weight: 500; }
.btn.white { background: #fff; color: var(--pink); }
.btn.green { background: var(--green); }
.btn.red { background: var(--red); }
.btn.sm { padding: 7px 14px; font-size: 13px; }
.btn:disabled { opacity: .45; }

/* header with tabs (Hot / Party / Match) */
.hdr { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 16px 18px 10px; background: rgba(14,13,22,.94); backdrop-filter: blur(12px); }
.hdr .tab { font-size: 18px; font-weight: 700; color: #6f6b8c; position: relative; padding-bottom: 8px; white-space: nowrap; flex-shrink: 0; }
.hdr .tab.on { color: #fff; font-size: 24px; }
.hdr .tab.on::after { content: ''; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 24px; height: 4px; border-radius: 4px; background: var(--pink); }
.hdr .grow { flex: 1; }
.hdr .ib { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.gemchip { background: #6d28d9; border-radius: 999px; padding: 7px 13px; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 5px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: rgba(14,13,22,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar h1 { font-size: 19px; margin: 0; flex: 1; }
.back { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--card); }

/* bottom nav */
.nav { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: flex; background: #15141f; border-top: 1px solid #222033; z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
.nav a { flex: 1; text-align: center; padding: 10px 0 9px; font-size: 13px; color: #77738f; position: relative; }
.nav a svg.ico { width: 28px; height: 28px; display: block; margin: 0 auto 3px; }
.nav a.active { color: #fff; }
.nav a.active svg.ico { fill: #fff; stroke: #fff; }
.nav a[data-r="me"].active svg.ico { fill: none; }
.nav .badge { position: absolute; top: 3px; left: calc(50% + 4px); }
.badge { background: var(--pink); color: #fff; border-radius: 999px; font-size: 11px; padding: 2px 7px; font-weight: 700; min-width: 20px; text-align: center; display: inline-block; }

.page { padding: 4px 16px 16px; }
h2 { font-size: 19px; margin: 18px 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 16px; margin-bottom: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 10px; }
.empty { text-align: center; color: var(--muted); padding: 50px 10px; }

/* host cards */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hcard { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 0.72; background: #23213a; cursor: pointer; }
.hcard img.ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hcard .noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #6c6889; }
.hcard .noimg svg.ico { width: 46px; height: 46px; fill: #6c6889; stroke: none; }
.hcard .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: linear-gradient(transparent, rgba(10,9,18,.85)); }
.st { position: absolute; top: 12px; left: 12px; background: rgba(10,9,18,.75); border-radius: 999px; padding: 5px 11px 5px 9px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.st i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); display: inline-block; }
.st.live { background: var(--red); } .st.live i { background: #fff; }
.st.busy i { background: #f97316; } .st.offline i { background: #777; }
.vbadge { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; background: #3fa9f5; color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; border: 2px solid #b8e2ff; box-shadow: 0 0 10px rgba(63,169,245,.7); }
.hcard .info { position: absolute; left: 14px; bottom: 16px; right: 80px; }
.hcard .name { font-weight: 700; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agep { display: inline-flex; align-items: center; gap: 4px; background: var(--pink); border-radius: 999px; padding: 2px 9px; font-size: 13px; font-weight: 700; margin-top: 6px; }
.agep::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #c8102e; }
.agep.male { background: var(--blue); } .agep.male::before { background: #1d4ed8; }
.xgem { display: inline-flex; align-items: center; gap: 4px; border: 1px solid #a16207; background: rgba(161,98,7,.25); color: var(--gold); font-size: 12px; font-weight: 700; border-radius: 8px; padding: 3px 8px; margin-bottom: 6px; }
.callbtn { position: absolute; right: 12px; bottom: 14px; width: 62px; height: 62px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 5px rgba(255,45,120,.45), 0 0 24px rgba(255,45,120,.8); color: var(--pink); }
.callbtn svg.ico { width: 28px; height: 28px; fill: var(--pink); stroke: var(--pink); }
.fab { position: fixed; right: max(16px, calc(50% - 224px)); bottom: 96px; z-index: 25; background: var(--pink); border-radius: 22px; padding: 16px 24px; font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 26px rgba(255,45,120,.45); }

.av { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: #2a2742; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; overflow: hidden; color: #8e8aa8; }
.av svg.ico { width: 55%; height: 55%; fill: #75719a; stroke: none; }
.av.lg { width: 96px; height: 96px; font-size: 36px; }
.av.xl { width: 110px; height: 110px; }
.av.sm { width: 34px; height: 34px; font-size: 13px; }
.avw { position: relative; display: inline-block; flex-shrink: 0; }
.avw .on { position: absolute; right: 2px; bottom: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--green); border: 2px solid var(--bg); }
.avw .frm { position: absolute; right: -4px; top: -6px; font-size: 20px; }
.avw.ring > .av { box-shadow: 0 0 0 3px var(--gold); }
.lvp { display: inline-flex; align-items: center; gap: 3px; border-radius: 999px; padding: 1px 7px; font-size: 11px; font-weight: 700; color: #fff; vertical-align: middle; }
.vipp { display: inline-flex; align-items: center; gap: 3px; border-radius: 6px; padding: 1px 6px; font-size: 11px; font-weight: 800; color: #1a1a1a; vertical-align: middle; }
.vt { color: #3fa9f5; font-weight: 900; }

/* auth */
.auth { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 26px; background: radial-gradient(circle at 50% 0%, #3b1a5c 0%, var(--bg) 60%); }
.auth .hero { text-align: center; margin-bottom: 28px; }
.auth .logo-ic { width: 84px; height: 84px; border-radius: 26px; margin: 0 auto 12px; display: block; box-shadow: 0 10px 40px rgba(236,45,111,.45); }
.auth h1 { margin: 6px 0; font-size: 30px; }
.seg { display: flex; background: var(--card); border-radius: 999px; padding: 4px; margin-bottom: 16px; }
.seg button { flex: 1; padding: 11px; border-radius: 999px; color: var(--muted); font-weight: 700; }
.seg button.active { background: var(--pink); color: #fff; }
.genders { display: flex; gap: 10px; }
.genders label { flex: 1; text-align: center; background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; font-weight: 600; }
.genders input { display: none; }
.genders label:has(input:checked) { border-color: var(--pink); background: rgba(255,45,120,.15); }

/* ad */
.ad-banner { display: block; border-radius: 20px; overflow: hidden; margin-bottom: 14px; position: relative; }
.ad-banner img { width: 100%; display: block; max-height: 140px; object-fit: cover; }
.ad-banner .lbl { position: absolute; top: 8px; right: 10px; font-size: 10px; background: rgba(0,0,0,.6); padding: 2px 6px; border-radius: 6px; }

/* messages */
.mtabs { display: flex; align-items: center; gap: 14px; padding: 16px 18px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(14,13,22,.95); z-index: 20; }
.mtabs .t { font-size: 20px; font-weight: 600; color: #77738f; white-space: nowrap; }
.mtabs .t.on { color: #fff; font-size: 26px; font-weight: 700; }
.mtabs .t.on::after { content: '•'; color: var(--pink); margin-left: 4px; }
.mtabs .rb { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mrow { display: flex; align-items: center; gap: 14px; padding: 12px 18px; }
.mrow .txt { flex: 1; min-width: 0; border-bottom: 1px solid var(--line); padding: 6px 0 16px; }
.mrow .nm { font-size: 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.mrow .nm small { font-weight: 400; color: var(--muted); font-size: 14px; }
.mrow .pv { color: #b9b5d0; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; justify-content: space-between; gap: 8px; }
.mrow .pv .vc { color: #8b7cf6; }
.msgs { padding: 12px 16px 96px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 20px; margin: 5px 0; word-wrap: break-word; background: var(--card2); width: fit-content; }
.bubble.me { margin-left: auto; background: var(--pink); }
.bubble.call { background: transparent; border: 1px solid var(--line); color: #a99cff; font-size: 14px; margin-left: auto; margin-right: auto; }
.compose { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bg2); border-top: 1px solid var(--line); z-index: 40; }
.compose input { border-radius: 999px; }

/* me page */
.mehead { display: flex; gap: 16px; align-items: center; padding: 18px 16px 6px; }
.mehead .av { border: 3px solid #3a3756; }
.mehead h1 { margin: 0 0 8px; font-size: 24px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chp { border-radius: 999px; padding: 4px 11px; font-size: 14px; font-weight: 600; display: inline-flex; gap: 5px; align-items: center; }
.chp.blue { background: #1d6fe0; } .chp.pinkc { background: #db2777; } .chp.green { background: #0f7a5c; } .chp.dark { background: var(--card2); color: var(--muted); }
.likes { display: flex; padding: 18px 0 14px; }
.likes a { flex: 1; text-align: center; }
.likes a + a { border-left: 1px solid var(--line); }
.likes b { display: block; font-size: 26px; }
.likes span { color: var(--muted); font-size: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.gcard { border-radius: 24px; padding: 18px; background: linear-gradient(140deg, #3a1b52, #24163a); border: 1px solid #4a2a6a; display: flex; justify-content: space-between; align-items: center; min-height: 110px; }
.gcard .l { color: #cfc7e6; font-size: 17px; font-weight: 600; }
.gcard .v { font-size: 30px; font-weight: 800; margin-top: 14px; }
.gcard .ic { font-size: 40px; }
.coin { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; color: #b45309; font-weight: 900; font-size: 24px; }
.hostc { border-radius: 26px; padding: 18px; background: linear-gradient(100deg, #5b21b6 0%, #9d27b0 50%, #e11d64 100%); display: flex; align-items: center; gap: 14px; margin-bottom: 14px; box-shadow: 0 8px 30px rgba(225,29,100,.35); }
.hostc .hi { width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; font-size: 28px; flex-shrink: 0; }
.hostc b { font-size: 20px; }
.hostc p { margin: 4px 0 0; opacity: .85; font-size: 14px; }
.promo { border-radius: 24px; padding: 18px; background: linear-gradient(140deg, #2c1842, #1d1530); border: 1px solid #4a2a6a; display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.promo .off { background: var(--gold); color: #1a1a1a; font-weight: 800; border-radius: 10px; padding: 6px 12px; white-space: nowrap; }
.mgrid { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 22px 8px 10px; display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 18px; margin-bottom: 18px; }
.mgrid a { text-align: center; font-size: 14px; font-weight: 500; }
.mgrid .ci { width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.logout { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--red); font-weight: 700; font-size: 18px; padding: 10px; width: 100%; }

/* wallet / tiles */
.balance { background: var(--grad); border-radius: 26px; padding: 24px; text-align: center; margin: 8px 0 16px; }
.balance .num { font-size: 42px; font-weight: 800; }
.pkg { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 8px; text-align: center; cursor: pointer; position: relative; }
.pkg:hover { border-color: var(--pink); }
.pkg .d { font-size: 20px; font-weight: 800; }
.pkg .p { color: var(--gold); font-weight: 700; margin-top: 4px; }
.pkg .b { font-size: 11px; color: var(--green); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.status { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--card2); text-transform: capitalize; }
.status.completed, .status.paid, .status.ended, .status.approved, .status.verified { color: var(--green); }
.status.pending, .status.ringing { color: var(--gold); }
.status.rejected, .status.missed, .status.cancelled { color: var(--red); }
.pm { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.pm.sel { border-color: var(--pink); background: rgba(255,45,120,.08); }
.pm .lg { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; overflow: hidden; }
.pm .lg img { width: 100%; height: 100%; object-fit: cover; }
.day { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 4px; text-align: center; }
.day.done { opacity: .5; }
.day.today { border-color: var(--pink); box-shadow: 0 0 14px rgba(255,45,120,.4); }
.day .i { font-size: 26px; }
.day.big { grid-column: span 2; }
.vipc { border-radius: 22px; padding: 18px; margin-bottom: 12px; color: #1a1a1a; }
.vipc ul { margin: 10px 0 14px; padding-left: 18px; }
.item { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 8px; text-align: center; }
.item .i { font-size: 36px; height: 46px; display: flex; align-items: center; justify-content: center; }
.item .i img { max-height: 46px; }
.item.eq { border-color: var(--pink); }
.prog { height: 10px; background: var(--card2); border-radius: 99px; overflow: hidden; }
.prog > div { height: 100%; background: var(--grad); }
.rankrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rankrow .pos { width: 30px; text-align: center; font-weight: 800; color: var(--muted); }
.stat { background: var(--card2); border-radius: 18px; padding: 14px; }
.stat .v { font-size: 20px; font-weight: 800; }
.stat .l { font-size: 12px; color: var(--muted); }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 12px; padding: 15px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.tabsx { display: flex; gap: 8px; margin: 4px 0 14px; overflow-x: auto; }
.tabsx button { background: var(--card); color: var(--muted); padding: 8px 16px; border-radius: 999px; white-space: nowrap; font-weight: 600; }
.tabsx button.on { background: var(--pink); color: #fff; }

/* match */
.mcard { position: relative; border-radius: 30px; overflow: hidden; aspect-ratio: .72; background: #23213a; margin-top: 6px; }
.mcard img { width: 100%; height: 100%; object-fit: cover; }
.mcard .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 22px; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.mbtns { display: flex; justify-content: center; gap: 36px; margin: 18px 0; }
.mbtns button { width: 70px; height: 70px; border-radius: 50%; font-size: 30px; display: flex; align-items: center; justify-content: center; }
.mbtns .no { background: var(--card2); }
.mbtns .yes { background: var(--pink); box-shadow: 0 0 24px rgba(255,45,120,.7); }

/* party list */
.prow { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 14px; margin-bottom: 12px; cursor: pointer; }
.prow .faces { display: flex; }
.prow .faces .av { width: 30px; height: 30px; margin-left: -8px; border: 2px solid var(--card); }

/* modal / sheet */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg2); width: 100%; max-width: 480px; border-radius: 26px 26px 0 0; padding: 22px 16px calc(22px + env(safe-area-inset-bottom)); max-height: 90vh; overflow-y: auto; animation: up .2s ease; border-top: 1px solid var(--line); }
.overlay.center { align-items: center; padding: 16px; }
.overlay.center .sheet { border-radius: 26px; border: 1px solid var(--line); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.gift-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gift { background: var(--card); border: 1px solid transparent; border-radius: 16px; padding: 10px 4px; text-align: center; cursor: pointer; position: relative; }
.gift.sel { border-color: var(--pink); background: rgba(255,45,120,.12); }
.gift .i { font-size: 30px; }
.gift .n { font-size: 11px; }
.gift .pr { font-size: 11px; color: var(--gold); }
.mycoins { font-weight: 700; }
.chip { background: var(--card2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 14px; display: inline-flex; gap: 4px; align-items: center; }

/* stage (live + call + party) */
.stage { position: fixed; inset: 0; background: #000; z-index: 50; display: flex; justify-content: center; }
.stage .inner { position: relative; width: 100%; max-width: 480px; height: 100%; overflow: hidden; }
.stage video.main { width: 100%; height: 100%; object-fit: cover; background: #111; }
.stage video.pip { position: absolute; top: 74px; right: 12px; width: 110px; height: 150px; object-fit: cover; border-radius: 16px; border: 2px solid rgba(255,255,255,.4); background: #222; z-index: 3; }
.mirror { transform: scaleX(-1); }
.stage .top { position: absolute; top: 0; left: 0; right: 0; padding: 14px; display: flex; align-items: center; gap: 10px; background: linear-gradient(rgba(0,0,0,.6), transparent); z-index: 4; }
.stage .pill { background: rgba(0,0,0,.5); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: #fff; }
.stage .bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 12px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.75)); z-index: 4; }
.stage .controls { display: flex; justify-content: center; gap: 14px; align-items: center; }
.round { width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; font-size: 22px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.round.red { background: var(--red); }
.round.green { background: var(--green); }
.round.grad { background: var(--pink); }
.round.off { background: rgba(255,255,255,.5); }
.chatlog { max-height: 30vh; overflow-y: auto; margin-bottom: 8px; mask-image: linear-gradient(transparent, #000 25%); -webkit-mask-image: linear-gradient(transparent, #000 25%); }
.chatlog div { font-size: 14px; margin: 4px 0; text-shadow: 0 1px 2px #000; }
.chatlog b { color: var(--gold); }
.chatlog .sys { color: #c4bfe0; font-size: 12px; }
.chatbar { display: flex; gap: 8px; align-items: center; }
.chatbar input { background: rgba(255,255,255,.15); border: 0; border-radius: 999px; }
.gift-fly { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 10; text-align: center; pointer-events: none; animation: fly 2.6s ease forwards; }
.gift-fly .i { font-size: 96px; filter: drop-shadow(0 6px 20px rgba(255,45,120,.7)); }
.gift-fly .t { background: rgba(0,0,0,.6); border-radius: 999px; padding: 6px 14px; font-weight: 700; }
@keyframes fly { 0% { opacity: 0; transform: translate(-50%, -20%) scale(.4); } 15% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); } 30% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -110%) scale(.9); } }
.waiting { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; z-index: 2; text-align: center; padding: 20px; background: radial-gradient(circle at 50% 35%, #3b1a5c, #0e0d16 70%); }
.pulse { animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.party-bg { position: absolute; inset: 0; background: radial-gradient(circle at 50% 20%, #4c1d95 0%, #1a0f2e 55%, #0e0d16 100%); }
.seats { position: absolute; top: 90px; left: 0; right: 0; display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 18px; padding: 0 14px; z-index: 3; }
.seat { text-align: center; cursor: pointer; font-size: 12px; }
.seat .sc { width: 64px; height: 64px; margin: 0 auto 6px; border-radius: 50%; background: rgba(255,255,255,.08); border: 2px dashed rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; font-size: 26px; color: #bdb6dc; }
.seat .sc .av { width: 100%; height: 100%; }
.seat:not(.empty) .sc { border: 2px solid var(--pink); }
.seat .sc.own { border-color: var(--gold); box-shadow: 0 0 16px rgba(251,191,36,.5); }
.seat span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.notice { position: absolute; top: 330px; left: 16px; right: 16px; z-index: 3; background: rgba(0,0,0,.4); border-radius: 14px; padding: 10px 14px; font-size: 13px; color: #d9d4f0; }

.incoming { position: fixed; inset: 0; z-index: 200; background: radial-gradient(circle at 50% 30%, #6d28d9, #0e0d16 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); background: var(--card2); border: 1px solid var(--line); padding: 11px 18px; border-radius: 16px; z-index: 300; max-width: 90%; box-shadow: 0 8px 30px rgba(0,0,0,.5); animation: up .2s; }

/* Screenshot / recording guard */
body.noshot { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.noshot input, body.noshot textarea { -webkit-user-select: text; user-select: text; }
body.noshot img, body.noshot video { -webkit-user-drag: none; pointer-events: auto; }
body.shield #app, body.shield #stage, body.shield .overlay { filter: blur(28px) brightness(.4); }
body.shield::after { content: '🔒 Chin Chin'; position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; color: #fff; z-index: 9999; pointer-events: none; }
.wmark { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; display: flex; flex-wrap: wrap; align-content: space-around; justify-content: space-around; transform: rotate(-24deg) scale(1.4); opacity: .13; animation: wmove 18s linear infinite alternate; }
.wmark span { color: #fff; font-size: 14px; font-weight: 700; padding: 22px 18px; white-space: nowrap; text-shadow: 0 0 2px #000; }
@keyframes wmove { from { translate: -4% -3%; } to { translate: 4% 3%; } }
@media print { body.noshot * { display: none !important; } body.noshot::before { content: 'Print allowed na'; display: block; } }

/* lucky gift tag */
.gift .lucky { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); background: linear-gradient(90deg,#22c55e,#eab308); color: #111; font-size: 9px; font-weight: 900; padding: 1px 6px; border-radius: 6px; }
/* voice call screen */
.waiting.voice .av.lg { width: 130px; height: 130px; }
/* PK battle bar */
.pkbar { position: absolute; top: 64px; left: 10px; right: 10px; z-index: 6; background: rgba(0,0,0,.55); border-radius: 14px; padding: 8px; backdrop-filter: blur(6px); }
.pkn { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.pkn span { display: flex; align-items: center; gap: 5px; max-width: 38%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pkn .av.sm { width: 24px; height: 24px; }
.pkn b { background: #fde047; color: #111; border-radius: 999px; padding: 2px 10px; font-size: 12px; }
.pkm { display: flex; height: 22px; border-radius: 999px; overflow: hidden; font-size: 12px; font-weight: 800; }
.pkm .pa { background: linear-gradient(90deg,#ff2d78,#f472b6); display: flex; align-items: center; padding-left: 10px; transition: width .5s; }
.pkm .pb { flex: 1; background: linear-gradient(90deg,#60a5fa,#2563eb); display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; }
.pkres { text-align: center; font-size: 20px; font-weight: 900; padding: 8px; }
/* profile gallery + my photos */
.gallery { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scroll-snap-type: x mandatory; }
.gallery img { width: 120px; height: 160px; object-fit: cover; border-radius: 14px; flex-shrink: 0; scroll-snap-align: start; cursor: zoom-in; }
.phbox { position: relative; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background: var(--card); display: flex; align-items: center; justify-content: center; }
.phbox img { width: 100%; height: 100%; object-fit: cover; }
.phbox .status { position: absolute; left: 6px; bottom: 6px; }
.phbox .x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; border: 0; }
.phbox.add { font-size: 40px; color: var(--muted); border: 2px dashed #3a3754; cursor: pointer; }
/* auto payment buttons */
.pm.auto { width: 100%; border: 1px solid #2f6f5e; background: rgba(16,185,129,.08); color: inherit; font: inherit; }
/* lucky spin wheel */
.wheelw { position: relative; width: min(84vw, 330px); aspect-ratio: 1; margin: 18px auto 0; }
.wheel { width: 100%; height: 100%; border-radius: 50%; border: 6px solid #fde047; box-shadow: 0 0 30px rgba(255,45,120,.5), inset 0 0 20px rgba(0,0,0,.4); position: relative; overflow: hidden; }
.wheel .wl { position: absolute; left: 50%; top: 0; width: 0; height: 50%; transform-origin: bottom center; }
.wheel .wl span { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 800; text-align: center; line-height: 1.2; text-shadow: 0 1px 3px rgba(0,0,0,.6); white-space: nowrap; }
.wheelw .pin { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 30px; color: #fde047; z-index: 2; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.wheelw .hub { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; border-radius: 50%; background: #1d1b2b; border: 4px solid #fde047; display: flex; align-items: center; justify-content: center; font-size: 28px; }

/* ---- v4: random call, chat media, tasks, moments, top list, rating, gifts, quick recharge ---- */
.randbar { display: flex; align-items: center; gap: 8px; padding: 14px; margin-bottom: 14px; border-radius: 18px; background: linear-gradient(100deg, #7c3aed, #ff2d78); }
.randbar .small { opacity: .9; }
.hcard .stars { position: absolute; top: 40px; left: 10px; background: rgba(0,0,0,.55); border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.compose .cbtn { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--card); display: flex; align-items: center; justify-content: center; font-size: 19px; cursor: pointer; border: 0; color: inherit; }
.compose .cbtn.on { background: var(--red, #ef4444); width: auto; padding: 0 12px; border-radius: 21px; font-size: 14px; }
.bubble.media { padding: 4px; background: transparent; }
.bubble.media img { max-width: 220px; max-height: 280px; border-radius: 14px; display: block; cursor: zoom-in; }
.bubble.media audio { width: 230px; height: 40px; }
.task { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.task .ti { font-size: 28px; width: 42px; text-align: center; }
.task .prog { margin: 8px 0 4px; }
.task .tr { text-align: center; min-width: 78px; }
.task .rw { color: var(--gold); font-weight: 700; margin-bottom: 6px; }
.task.claimed { opacity: .6; }
.mpost { background: var(--card); border-radius: 16px; padding: 12px; margin: 10px 0 16px; display: flex; flex-direction: column; gap: 8px; }
.mpost textarea { background: transparent; border: 0; resize: none; }
.moment { background: var(--card); border-radius: 18px; padding: 12px; margin-bottom: 14px; position: relative; }
.moment p { margin: 10px 0; white-space: pre-wrap; word-break: break-word; }
.moment img:not(.av) { width: 100%; border-radius: 14px; margin-top: 6px; max-height: 480px; object-fit: cover; cursor: zoom-in; }
.moment .mact { display: flex; gap: 8px; margin-top: 10px; }
.moment .mact button { background: #22202f; border: 0; color: inherit; border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.moment .mact button.on { background: rgba(255,45,120,.18); }
.moment .mdel { position: absolute; top: 12px; right: 12px; background: none; border: 0; cursor: pointer; font-size: 16px; }
.clist { max-height: 50vh; overflow: auto; }
.podium { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: end; gap: 8px; margin: 18px 0; }
.podium .pd { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; border-radius: 18px 18px 6px 6px; padding: 10px 4px 14px; min-width: 0; }
.podium .pd b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .pd span { color: var(--gold); font-size: 12px; font-weight: 700; }
.podium .p1 { background: linear-gradient(180deg, rgba(245,158,11,.35), rgba(245,158,11,.05)); padding-top: 4px; }
.podium .p2 { background: linear-gradient(180deg, rgba(148,163,184,.3), rgba(148,163,184,.05)); }
.podium .p3 { background: linear-gradient(180deg, rgba(180,83,9,.3), rgba(180,83,9,.05)); }
.podium .crown { font-size: 24px; }
.starsel { display: flex; justify-content: center; gap: 6px; }
.starsel button { background: none; border: 0; font-size: 38px; color: #444; cursor: pointer; }
.starsel button.on { color: #fbbf24; }
.combo { background: #22202f; border: 1px solid transparent; color: inherit; border-radius: 999px; padding: 5px 12px; font-weight: 700; cursor: pointer; }
.combo.on { border-color: var(--pink); background: rgba(255,45,120,.15); }
.cx { color: #fde047; }
.biggift { position: fixed; inset: 0; z-index: 120; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(255,45,120,.35), transparent 65%); animation: bgfade 3.6s ease forwards; }
.biggift .bi { font-size: 150px; animation: bigpop 3.6s ease forwards; filter: drop-shadow(0 10px 40px rgba(255,200,0,.7)); }
.biggift .bt { background: rgba(0,0,0,.65); border-radius: 999px; padding: 8px 18px; font-size: 17px; margin-top: 10px; }
.biggift .burst { position: absolute; width: 0; height: 0; }
.biggift .burst i { position: absolute; font-style: normal; font-size: 30px; transform: rotate(var(--a)) translateY(0); animation: burst 1.8s ease-out forwards; }
@keyframes bigpop { 0% { transform: scale(.2); opacity: 0; } 15% { transform: scale(1.25); opacity: 1; } 25% { transform: scale(1); } 85% { opacity: 1; } 100% { transform: scale(1.5) translateY(-60px); opacity: 0; } }
@keyframes burst { 0% { transform: rotate(var(--a)) translateY(0); opacity: 1; } 100% { transform: rotate(var(--a)) translateY(-46vmin); opacity: 0; } }
@keyframes bgfade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }
.lowbal { position: absolute; left: 12px; right: 12px; top: 64px; z-index: 12; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: rgba(120,20,40,.92); }
body > .lowbal { position: fixed; z-index: 90; }
.lowbal .lbx { background: none; border: 0; color: #fff; font-size: 16px; cursor: pointer; }
.pill.free { background: #16a34a !important; }
.firstr { display: flex; align-items: center; gap: 10px; font-size: 28px; padding: 12px 14px; margin: 12px 0; border-radius: 16px; background: linear-gradient(100deg, #b45309, #db2777); }
.firstr b { font-size: 16px; } .firstr .small { font-size: 13px; }
.pkg .fr { color: #4ade80; font-size: 12px; font-weight: 700; }
.promo-in { display: flex; gap: 8px; margin: 12px 0; }
.promo-in input { flex: 1; text-transform: uppercase; }
.toast.tap { cursor: pointer; pointer-events: auto; }
.qlinks { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.qlinks a { flex-shrink: 0; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.promo-in input::placeholder { text-transform: none; }

/* ---- v5: diamond rain, family, schedule ---- */
.rain { position: absolute; inset: 0; z-index: 9; overflow: hidden; }
.rain .rtitle { position: absolute; top: 70px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.65); padding: 6px 14px; border-radius: 999px; font-weight: 700; white-space: nowrap; font-size: 14px; }
.rain .drop { position: absolute; top: -60px; font-size: 40px; background: none; border: 0; cursor: pointer; animation: drop linear infinite; filter: drop-shadow(0 4px 10px rgba(250,204,21,.6)); padding: 6px; }
.rain .drop.got { animation: none; top: 40%; color: #fde047; font-weight: 800; font-size: 26px; }
@keyframes drop { 0% { transform: translateY(0) rotate(-10deg); } 100% { transform: translateY(110vh) rotate(15deg); } }
.famhero { display: flex; align-items: center; gap: 12px; padding: 16px; margin: 10px 0; border-radius: 18px; background: linear-gradient(100deg, #1e3a8a, #7c3aed); }
.famchat { background: var(--card); border-radius: 16px; padding: 10px; max-height: 300px; overflow-y: auto; }
.fmsg { display: flex; gap: 8px; align-items: flex-end; margin: 6px 0; }
.fmsg.me { justify-content: flex-end; }
.fmsg .bubble { margin: 2px 0; max-width: 240px; }
.emo { font-size: 26px; cursor: pointer; }
.emo input { display: none; }
.emo:has(input:checked) { background: rgba(255,45,120,.2); border-radius: 10px; }
.sched { margin-top: 10px; font-size: 14px; color: #c4b5fd; }
.list-item .pos { width: 22px; text-align: center; font-weight: 800; color: var(--gold); }
/* beauty cam sheet: see the video behind while choosing */
.overlay.clear { background: transparent; }
.overlay.clear .sheet { background: rgba(20, 18, 34, .92); backdrop-filter: blur(6px); }
.fxrow { display: flex; gap: 8px; overflow-x: auto; margin: 6px 0 12px; padding-bottom: 2px; }
.fxrow button { flex-shrink: 0; min-width: 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--card); color: var(--muted); border: 2px solid transparent; border-radius: 14px; padding: 8px 6px; font-size: 12px; font-weight: 600; }
.fxrow button span { font-size: 22px; }
.fxrow button.on { border-color: var(--pink); color: #fff; }

/* ---- v6: games ---- */
.chatbar input { min-width: 0; flex: 1; }
@media (max-width: 480px) { .chatbar { gap: 5px; } .chatbar .round { width: 40px; height: 40px; font-size: 18px; } }
.gcard { display: flex; align-items: center; gap: 12px; padding: 14px; margin: 10px 0; border-radius: 18px; background: linear-gradient(110deg, var(--gc), var(--card) 75%); border: 1px solid var(--line); }
.gcard .gi { font-size: 38px; width: 52px; text-align: center; flex-shrink: 0; }
.gcard .small { color: #d6d3e8; margin-top: 2px; }
.gbar { height: 8px; border-radius: 9px; background: var(--card2); margin: 8px 0; overflow: hidden; }
.gbar i { display: block; height: 100%; background: var(--grad); border-radius: 9px; }
.fruitpg { position: relative; }
.fhud { margin: 8px 0; }
#fc { width: 100%; display: block; border-radius: 18px; }
.fstart { position: absolute; left: 16px; right: 16px; top: 60px; bottom: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; background: rgba(14,13,22,.82); border-radius: 18px; }
.fstart h2 { margin: 0; }
.qdots { display: flex; gap: 8px; justify-content: center; margin: 14px 0 8px; }
.qdots i { width: 12px; height: 12px; border-radius: 50%; background: var(--card2); }
.qdots i.cur { background: var(--pink); } .qdots i.ok { background: var(--green); } .qdots i.no { background: var(--red); }
.qbox { background: var(--card); border-radius: 18px; padding: 22px 16px; margin: 14px 0; font-size: 19px; font-weight: 700; text-align: center; line-height: 1.4; }
.qopt { width: 100%; text-align: left; padding: 15px 16px; border-radius: 14px; background: var(--card2); color: #fff; font-size: 16px; border: 2px solid transparent; }
.qopt.ok { border-color: var(--green); background: #14532d; } .qopt.no { border-color: var(--red); background: #5b1525; }
.gstage { position: fixed; inset: 0; z-index: 60; background: radial-gradient(circle at 50% 0%, #3b1d5e, var(--bg) 70%); display: flex; flex-direction: column; padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); overflow: hidden; }
.gtop { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gtop .vs { color: var(--gold); font-size: 18px; }
.gpl { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 14px; border: 2px solid transparent; flex: 1; min-width: 0; }
.gpl b { display: block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gpl.turn { border-color: var(--pink); background: rgba(255,45,120,.12); }
.gpl:last-of-type { flex-direction: row-reverse; text-align: right; }
.gboard { margin: auto; width: min(92vw, 56vh, 440px); aspect-ratio: 1; position: relative; }
.gboard.ttt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gboard.ttt button { background: var(--card); border-radius: 16px; font-size: min(15vw, 64px); color: #fff; border: 2px solid var(--line); }
.gboard.ttt button.last { border-color: var(--gold); } .gboard.ttt button.win { background: #14532d; border-color: var(--green); }
.gboard.ttt button:not(:disabled):active { background: var(--card2); }
.gboard.ludo { display: grid; grid-template: repeat(15, 1fr) / repeat(15, 1fr); background: #f8f5ef; border-radius: 12px; overflow: hidden; border: 3px solid #fff; }
.gboard.ludo .lc { border: 1px solid #c9c3b6; background: #fff; display: flex; align-items: center; justify-content: center; font-style: normal; color: #9a9384; font-size: 10px; }
.gboard.ludo .lc.red { background: #ef4444; } .gboard.ludo .lc.yel { background: #facc15; }
.gboard.ludo .yard { margin: 3px; border-radius: 10px; } .yard.red { background: #ef4444; } .yard.yel { background: #facc15; } .yard.gray { background: #e5e1d8; }
.gboard.ludo .lhome { background: conic-gradient(from 225deg, #ef4444 0 25%, #e5e1d8 0 50%, #facc15 0 75%, #e5e1d8 0); }
.ltok { position: absolute; inset: 0; pointer-events: none; }
.tok { position: absolute; width: 5.6%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,.45); pointer-events: auto; transition: left .25s, top .25s; padding: 0; }
.tok.red { background: radial-gradient(circle at 35% 35%, #fca5a5, #b91c1c); } .tok.yel { background: radial-gradient(circle at 35% 35%, #fef08a, #ca8a04); }
.tok.can { animation: tokp .7s infinite alternate; z-index: 2; width: 7%; }
@keyframes tokp { to { box-shadow: 0 0 0 5px rgba(255,45,120,.8); } }
.gmsg { text-align: center; min-height: 44px; font-weight: 600; margin-top: 6px; }
.gmsg .gres { font-size: 24px; display: block; }
.gdice { align-self: center; width: 84px; height: 84px; border-radius: 20px; background: #fff; color: #111; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 8px; }
.gdice span { font-size: 46px; line-height: 1; } .gdice small { font-size: 11px; font-weight: 700; color: #6b21a8; }
.gdice:disabled { opacity: .7; } .gdice.can { box-shadow: 0 0 0 4px var(--pink); animation: tokp .7s infinite alternate; }
.gdice.roll span { animation: spin .4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.gbottom { display: flex; flex-direction: column; gap: 10px; }
.gemo { display: flex; justify-content: space-between; gap: 4px; }
.gemo button { font-size: 24px; background: var(--card); border-radius: 12px; flex: 1; padding: 6px 0; }
.gfloat { position: absolute; font-size: 64px; bottom: 140px; animation: gfl 2s ease-out forwards; pointer-events: none; z-index: 5; }
.gfloat.me { right: 20%; } .gfloat.them { left: 20%; }
@keyframes gfl { from { transform: translateY(0) scale(.5); opacity: 1; } to { transform: translateY(-260px) scale(1.4); opacity: 0; } }
.conf { position: absolute; top: -10px; width: 9px; height: 14px; border-radius: 2px; z-index: 20; animation: conf 2.4s ease-in forwards; pointer-events: none; }
@keyframes conf { to { transform: translateY(110vh) rotate(720deg); } }
.race { position: absolute; left: 12px; right: 12px; top: 110px; z-index: 8; background: rgba(20,12,40,.82); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; padding: 10px 12px; text-align: center; }
.race .rt { font-weight: 700; font-size: 14px; }
.race .rtarget { font-size: 34px; vertical-align: middle; }
.race .ropts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 8px 0 4px; }
.race .ropts button { font-size: 28px; background: rgba(255,255,255,.12); border-radius: 12px; padding: 6px 0; border: 2px solid transparent; }
.race .ropts button.ok { border-color: var(--green); background: rgba(34,197,94,.3); } .race .ropts button.no { border-color: var(--red); }
.race .rbar { height: 5px; background: rgba(255,255,255,.15); border-radius: 5px; overflow: hidden; }
.race .rbar i { display: block; height: 100%; background: var(--gold); animation: rbar linear forwards; }
@keyframes rbar { from { width: 100%; } to { width: 0; } }
.race .rwin { font-weight: 700; color: var(--gold); margin-top: 4px; }
.racewin { position: absolute; left: 50%; top: 32%; transform: translate(-50%, -50%); z-index: 12; text-align: center; background: linear-gradient(140deg, #7c3aed, #db2777); padding: 18px 28px; border-radius: 22px; box-shadow: 0 10px 40px rgba(0,0,0,.5); animation: pop .4s ease; min-width: 220px; }
.racewin .rk { font-size: 60px; } .racewin b { font-size: 22px; display: block; }
@keyframes pop { from { transform: translate(-50%, -50%) scale(.4); opacity: 0; } }

/* Small phones: keep the home header inside the screen, and never let the page scroll sideways */
#app { overflow-x: clip; }
.hdr .gemchip { flex-shrink: 0; }
@media (max-width: 420px) {
  .hdr { gap: 7px; padding: 14px 10px 8px; }
  .hdr .tab { font-size: 14px; }
  .hdr .tab.on { font-size: 19px; }
  .hdr .ib { width: 32px; height: 32px; }
  .hdr .ib svg { width: 22px !important; height: 22px !important; }
  .hdr .gemchip { padding: 6px 10px; font-size: 13px; }
  .mtabs { gap: 10px; padding: 14px 12px 12px; }
  .mtabs .t { font-size: 16px; }
  .mtabs .t.on { font-size: 21px; }
  .mtabs .rb { width: 38px; height: 38px; }
}
@media (max-width: 350px) {
  .hdr { gap: 5px; padding: 12px 8px 8px; }
  .hdr .tab { font-size: 12px; }
  .hdr .tab.on { font-size: 16px; }
  .hdr .gemchip { padding: 5px 8px; font-size: 12px; }
}
html, body { overscroll-behavior: none; }

/* Home cards: Live / Online badge, "Your Follow" tag, flag + age, compact call button */
.st.live { background: rgba(236,72,153,.55); backdrop-filter: blur(4px); }
.st .eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.st .eq i { width: 3px; height: 100%; border-radius: 2px; background: #fff; animation: eq 1s ease-in-out infinite; }
.st .eq i:nth-child(2) { animation-delay: .2s; } .st .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { 0%, 100% { height: 35%; } 50% { height: 100%; } }
.ftag { position: absolute; top: 12px; right: 10px; background: linear-gradient(90deg, #ff2d78, #ff5fa2); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; box-shadow: 0 2px 10px rgba(255,45,120,.5); }
.hcard .meta { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.hcard .meta .flag { font-size: 16px; line-height: 1; }
.hcard .meta .agep { margin-top: 0; }
.hcard .info { right: 62px; }
.callbtn { width: 48px; height: 48px; right: 10px; bottom: 12px; box-shadow: 0 0 0 4px rgba(255,45,120,.35), 0 0 16px rgba(255,45,120,.6); }
.callbtn svg.ico { width: 24px; height: 24px; }
.nav a svg.ico { width: 26px; height: 26px; }
.hcard .st { top: 8px; left: 8px; padding: 4px 8px 4px 7px; font-size: 12px; gap: 5px; }
.hcard .ftag { top: 8px; right: 8px; padding: 3px 7px; font-size: 10.5px; white-space: nowrap; }
.weektop { display: block; margin: 0 0 12px; padding: 12px 14px; border-radius: 18px; background: linear-gradient(135deg, #3b2a0a, #5a3a12 55%, #2a1a3a); border: 1px solid rgba(255,200,80,.35); color: inherit; text-decoration: none; }
.weektop .wt-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.weektop .wt-h .small { color: #ffd479; }
.weektop .wt-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.weektop .wt-i { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; text-align: center; }
.weektop .wt-i b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weektop .wt-i .small { color: #ffd479; }
.weektop .wt-m { position: absolute; top: -4px; left: calc(50% + 10px); font-size: 16px; }
.updbar { position: fixed; left: 12px; right: 12px; bottom: 76px; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 14px; border-radius: 14px; background: #2a2740; color: #fff; font-size: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.updbar button { border: 0; border-radius: 10px; padding: 8px 14px; background: var(--pink, #ff2d78); color: #fff; font-weight: 700; }
