/* 8 Pool Legends website. Night-blue arena, violet controls, gold for money and the main call to action. */
:root {
  --bg: #080922;
  --bg-2: #0d0e31;
  --panel: #15174a;
  --panel-2: #1c1f5a;
  --panel-3: #262a72;
  --line: rgba(150, 130, 255, .18);
  --line-2: rgba(150, 130, 255, .36);
  --violet: #6a3bff;
  --violet-2: #9a74ff;
  --gold: #ffcb33;
  --gold-2: #ffa20d;
  --amber: #ffb627;
  --green: #2bd47f;
  --red: #ff5468;
  --text: #ffffff;
  --muted: #b3b5e0;
  --dim: #7d80b6;
  --r: 18px;
  --r-sm: 12px;
  --font: "Exo 2", system-ui, -apple-system, "Segoe UI", sans-serif;
  --num: "Orbitron", "Exo 2", system-ui, sans-serif;
  --top-h: 64px;
  --tab-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font: 500 15px/1.45 var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 520px at 50% -180px, rgba(106, 59, 255, .38), transparent 62%),
    radial-gradient(700px 520px at 105% 20%, rgba(38, 92, 255, .16), transparent 60%),
    radial-gradient(700px 600px at -10% 70%, rgba(120, 50, 255, .12), transparent 60%),
    var(--bg);
  padding-bottom: calc(var(--tab-h) + var(--safe-b));
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: #1d1200; padding: 8px 12px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.i--fill { fill: currentColor; stroke: none; }
.num { font-family: var(--num); letter-spacing: .02em; }
.gold { color: var(--gold); }
.amber { color: var(--amber); }
.muted { color: var(--muted); }
.up { color: var(--green); }
.down { color: var(--red); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- preview bar ---------- */
.preview-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 7px 44px 7px 16px; position: relative;
  background: linear-gradient(90deg, #3a1a9e, #5b2bd8, #3a1a9e);
  font-size: 13px; text-align: center; color: #efeaff;
}
.preview-bar button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; background: transparent; font-size: 20px; cursor: pointer; border-radius: 8px; }
.preview-bar[hidden] { display: none; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(8, 9, 34, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top__in { max-width: 1240px; margin: 0 auto; height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); cursor: pointer; position: relative; }
.icon-btn:hover { background: rgba(255, 255, 255, .07); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--bg); }
.brand img { height: 46px; width: auto; filter: drop-shadow(0 4px 14px rgba(120, 60, 255, .45)); }
.top__nav { display: none; }
.top__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.connect { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; border: 0; cursor: pointer; font-weight: 800; font-size: 14px; color: #2a1700; background: linear-gradient(180deg, #ffdc55, var(--gold-2)); box-shadow: 0 6px 18px rgba(255, 166, 20, .35), inset 0 1px 0 rgba(255, 255, 255, .6); }
.connect .i { width: 18px; height: 18px; }
.bal { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 6px 0 8px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); }
.bal a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; height: 100%; }
.bal .plus { border: 0; padding: 0; cursor: pointer; color: #fff; }
.bal img { width: 24px; height: 24px; }
.bal b { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bal span { color: var(--muted); font-size: 12px; font-weight: 700; }
.bal .plus { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(180deg, #8456ff, #5b2cf0); }
.bal .plus .i { width: 16px; height: 16px; stroke-width: 3; }
.top-avatar { display: none; width: 42px; height: 42px; border-radius: 12px; overflow: hidden; border: 2px solid var(--gold); }
body.is-home .brand { visibility: hidden; }

/* ---------- layout ---------- */
.page { max-width: 1240px; margin: 0 auto; padding: 18px 16px 40px; }
.page--narrow { max-width: 820px; }
.card { background: linear-gradient(180deg, rgba(32, 35, 100, .92), rgba(20, 22, 70, .92)); border: 1px solid var(--line); border-radius: var(--r); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.page-h { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.page-h h1 { font-size: 22px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.page-h h1 img { width: 30px; height: auto; }
.back { width: 40px; height: 40px; }
.sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 36px 0 14px; }
.sec-h h2 { font-size: 20px; font-weight: 800; }
.sec-h a { color: var(--violet-2); font-weight: 700; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 2px; }
.sec-h a .i { width: 16px; height: 16px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 13px; border: 0; cursor: pointer; font-weight: 800; font-size: 15px; text-decoration: none; color: #fff; white-space: nowrap; transition: transform .12s ease, filter .12s ease; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; filter: none; }
.btn--violet { background: linear-gradient(180deg, #8758ff, #5a2bef); box-shadow: 0 6px 18px rgba(106, 59, 255, .42), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--gold { color: #2a1700; background: linear-gradient(180deg, #ffdc55, var(--gold-2)); box-shadow: 0 8px 24px rgba(255, 166, 20, .32), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn--ghost { background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); }
.btn--green { background: linear-gradient(180deg, #34dc8a, #16a660); box-shadow: 0 6px 18px rgba(43, 212, 127, .3); }
.btn--lg { height: 58px; padding: 0 34px; font-size: 20px; border-radius: 17px; }
.btn--sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn .i { width: 20px; height: 20px; }
.btn--lg .i { width: 24px; height: 24px; }

.seg { display: flex; gap: 10px; }
.seg button, .seg a { flex: 1; height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); font-weight: 800; font-size: 15px; cursor: pointer; text-decoration: none; }
.seg [aria-pressed="true"], .seg [aria-current="page"] { background: linear-gradient(180deg, #8758ff, #5a2bef); border-color: transparent; box-shadow: 0 6px 16px rgba(106, 59, 255, .42); }
.seg img { width: 22px; height: auto; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 14px 0 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 38px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-weight: 700; font-size: 14px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--violet); border-color: transparent; box-shadow: 0 4px 14px rgba(106, 59, 255, .45); }

/* ---------- home ---------- */
.hero { text-align: center; padding-top: 2px; }
.hero__logo { width: min(62vw, 250px); height: auto; margin: 0 auto; filter: drop-shadow(0 12px 34px rgba(120, 60, 255, .55)); }
.hero h1 { font-size: clamp(28px, 7.6vw, 60px); line-height: 1.05; font-weight: 900; letter-spacing: -.01em; margin: 12px 0 10px; }
.hero h1 .gold { text-shadow: 0 0 26px rgba(255, 190, 40, .35); white-space: nowrap; }
.hero__sub { color: #dcdcf7; font-size: 16px; max-width: 34ch; margin: 0 auto 20px; }
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__cta .btn--lg { min-width: min(100%, 250px); }
.hero__cta .btn--ghost { display: none; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px auto 0; max-width: 420px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; font-size: 13px; font-weight: 700; color: #e6e6fb; padding: 4px 0; }
.quick a + a { border-left: 1px solid var(--line-2); }
.quick img { height: 36px; width: auto; filter: drop-shadow(0 4px 10px rgba(255, 170, 30, .3)); }

.hero-art { position: relative; width: min(100%, 440px); aspect-ratio: 1 / .78; margin: 10px auto 0; }
.hero-art::before { content: ""; position: absolute; inset: 10% 0 0; background: radial-gradient(closest-side, rgba(44, 110, 255, .55), rgba(80, 40, 255, .2) 60%, transparent); filter: blur(6px); }
.hero-art__floor { position: absolute; left: 6%; right: 6%; bottom: 3%; height: 16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(70, 130, 255, .45), transparent); }
.hero-art img { position: absolute; }
.hero-art .a-ball { width: 68%; left: 16%; top: 14%; }
.hero-art .a-crown { width: 30%; left: 36%; top: 7%; transform: rotate(-9deg); filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.hero-art .a-one { width: 24%; left: 4%; bottom: 5%; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); }
.hero-art .a-three { width: 21%; right: 6%; bottom: 9%; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .5)); }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .a-ball { animation: float 5s ease-in-out infinite; }
  .hero-art .a-crown { animation: float-crown 5s ease-in-out infinite; }
  .hero-art .a-one { animation: float 6s ease-in-out -2s infinite; }
  .hero-art .a-three { animation: float 5.5s ease-in-out -1s infinite; }
}
@keyframes float { 50% { transform: translateY(-8px); } }
@keyframes float-crown { 0%, 100% { transform: rotate(-9deg); } 50% { transform: translateY(-8px) rotate(-7deg); } }

.promo { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px; border-radius: 18px; text-decoration: none; background: linear-gradient(95deg, rgba(42, 46, 124, .96), rgba(24, 26, 78, .96)); border: 1px solid var(--line-2); margin-top: 6px; }
.promo img { width: 58px; height: auto; flex: none; }
.promo b { display: block; font-size: 16px; }
.promo span { color: var(--amber); font-weight: 800; font-size: 18px; }
.promo .i { margin-left: auto; color: var(--muted); }

.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 18px; border-radius: 16px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
.stats-strip div { background: var(--bg-2); padding: 12px 8px; text-align: center; }
.stats-strip b { display: block; font-size: 19px; font-weight: 900; font-variant-numeric: tabular-nums; }
.stats-strip span { font-size: 12px; color: var(--muted); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; box-shadow: 0 0 0 0 rgba(43, 212, 127, .6); vertical-align: 1px; }
@media (prefers-reduced-motion: no-preference) { .live-dot { animation: ping 1.8s infinite; } }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(43, 212, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 212, 127, 0); } }

.tcards { display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.tcards::-webkit-scrollbar { display: none; }
.tcard { scroll-snap-align: start; padding: 8px 8px 12px; text-align: center; display: flex; flex-direction: column; gap: 8px; }
.tcard__art { aspect-ratio: 1 / .78; border-radius: 12px; overflow: hidden; background: #0b0c2a; }
.tcard__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 6%; }
.tcard b { font-size: 15px; }
.tcard .fee { color: var(--amber); font-weight: 800; }
.tcard .prize { font-size: 12px; color: var(--muted); }
.tcard .btn { margin-top: auto; }

.mini-board { padding: 6px 14px; }
.mini-row { display: grid; grid-template-columns: 26px 36px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; }
.mini-row + .mini-row { border-top: 1px solid var(--line); }
.mini-row .rk { font-weight: 800; font-size: 15px; color: var(--muted); text-align: center; }
.mini-row img { width: 36px; height: 36px; border-radius: 10px; }
.mini-row b { font-weight: 700; }
.mini-row .pts { font-weight: 800; font-size: 14px; color: var(--amber); font-variant-numeric: tabular-nums; }

.guard { display: grid; gap: 18px; padding: 20px; align-items: center; background: radial-gradient(500px 240px at 0% 0%, rgba(255, 200, 60, .12), transparent 70%), linear-gradient(180deg, rgba(32, 35, 100, .92), rgba(20, 22, 70, .92)); }
.guard__logo { width: min(100%, 240px); margin: 0 auto; filter: drop-shadow(0 10px 28px rgba(0, 0, 0, .5)); }
.guard h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.guard p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 14px 0 16px; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .i { color: var(--green); width: 20px; height: 20px; margin-top: 1px; }

.steps { display: grid; gap: 12px; }
.step { padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; }
.step__n { grid-row: span 2; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-family: var(--num); font-size: 20px; font-weight: 900; color: #2a1700; background: linear-gradient(180deg, #ffdc55, var(--gold-2)); }
.step b { font-size: 17px; }
.step p { color: var(--muted); font-size: 14px; }
.step__coins { display: flex; margin-top: 4px; grid-column: 2; }
.step__coins img { width: 26px; height: 26px; margin-right: -6px; }

/* ---------- lobby ---------- */
.trows { display: grid; gap: 12px; }
.trow { display: grid; grid-template-columns: 60px 1fr auto; align-items: center; gap: 12px; padding: 12px 12px 12px 12px; }
.trow__art { width: 60px; height: 60px; border-radius: 13px; overflow: hidden; background: #0b0c2a; }
.trow__art img { width: 100%; height: 100%; object-fit: cover; object-position: center 8%; transform: scale(1.25); transform-origin: center 20%; }
.trow__name { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.trow__fee { color: var(--amber); font-weight: 800; font-size: 16px; }
.trow__prize { font-size: 13px; color: var(--muted); }
.trow__prize b { color: var(--amber); }
.trow__side { display: flex; align-items: center; gap: 12px; }
.online { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 700; }
.online .i { width: 16px; height: 16px; }
.tag-hot { font-size: 10px; font-weight: 900; letter-spacing: .06em; padding: 2px 6px; border-radius: 6px; background: linear-gradient(180deg, #ff9a3c, #ff5a1f); }
.tour-banner { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 16px; border-radius: 18px; text-decoration: none; background: radial-gradient(300px 120px at 15% 50%, rgba(255, 210, 80, .22), transparent 70%), linear-gradient(100deg, #5a2bef, #3a17b5); border: 1px solid rgba(190, 160, 255, .45); box-shadow: 0 10px 30px rgba(90, 43, 239, .35); }
.tour-banner img { width: 64px; height: auto; }
.tour-banner b { display: block; font-size: 18px; }
.tour-banner span { color: var(--gold); font-weight: 800; font-size: 16px; }
.tour-banner .i { margin-left: auto; }

/* ---------- match ---------- */
.game-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); background: #000; }
.game-frame img { width: 100%; height: 100%; object-fit: cover; }
.game-frame__note { position: absolute; left: 10px; bottom: 10px; display: inline-flex; gap: 6px; align-items: center; background: rgba(5, 6, 20, .72); padding: 6px 10px; border-radius: 9px; font-size: 12px; font-weight: 700; }
.match-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; margin-top: 14px; }
.match-bar__info { display: flex; flex-direction: column; gap: 2px; }
.match-bar__info b { font-size: 16px; }
.match-bar .btn { margin-left: auto; }
.rotate-hint { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; margin-top: 12px; }
.guard-mini { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.guard-mini img { height: 22px; width: auto; }

/* ---------- wallet ---------- */
.wallet { display: grid; gap: 16px; }
.wallet > * { min-width: 0; }
.wallet .sec-h { margin-top: 8px; }
.balance { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px 16px; }
.balance img { width: 58px; height: 58px; filter: drop-shadow(0 6px 16px rgba(38, 161, 123, .45)); }
.balance b { display: block; font-size: 32px; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
.balance span { color: var(--muted); font-size: 14px; }
.wallet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wallet-actions .btn { padding: 0 12px; min-width: 0; }
.coins { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.coin { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); cursor: pointer; font-weight: 800; font-size: 13px; }
.coin:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .06); }
.coin img { width: 40px; height: 40px; }
.txs { padding: 4px 14px; }
.tx { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; }
.tx + .tx { border-top: 1px solid var(--line); }
.tx__ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.tx__ic .i { width: 20px; height: 20px; stroke-width: 2.6; }
.tx__ic--in { background: rgba(43, 212, 127, .16); color: var(--green); }
.tx__ic--out { background: rgba(255, 84, 104, .16); color: var(--red); }
.tx__ic--win { background: rgba(255, 182, 39, .16); }
.tx__ic--win img { width: 24px; height: auto; }
.tx__ic--entry { background: rgba(154, 116, 255, .16); }
.tx__ic--entry img { width: 22px; }
.tx b { font-weight: 700; }
.tx small { display: block; color: var(--dim); font-size: 12px; }
.tx__amt { text-align: right; font-weight: 800; }
.tx__amt small { font-weight: 600; }
.pending { color: var(--amber) !important; }

/* ---------- tournaments ---------- */
.tour-layout { display: grid; gap: 16px; }
.tfeat { text-align: center; padding: 20px 18px 22px; border-radius: 20px; background: radial-gradient(260px 160px at 50% 18%, rgba(255, 205, 80, .28), transparent 70%), radial-gradient(400px 300px at 50% 120%, rgba(140, 90, 255, .5), transparent 70%), linear-gradient(180deg, #4d22d0, #2a1484); border: 1px solid rgba(190, 160, 255, .5); box-shadow: 0 16px 40px rgba(70, 30, 200, .4); }
.tfeat img { width: 128px; height: auto; margin: 0 auto 6px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .4)); }
.tfeat h2 { font-size: 22px; font-weight: 800; }
.tfeat .pool { color: var(--gold); font-weight: 900; font-size: 26px; margin: 2px 0 12px; }
.tfeat .ends { font-size: 13px; color: #d9d0ff; }
.countdown { font-family: var(--num); font-size: 32px; font-weight: 800; letter-spacing: .04em; margin: 2px 0 4px; }
.countdown-units { display: flex; justify-content: center; gap: 30px; font-size: 11px; color: #cfc4ff; margin-bottom: 16px; }
.tfeat .meta { font-size: 13px; color: #d9d0ff; margin-top: 12px; }
.tours { display: grid; gap: 12px; margin-top: 14px; }
.tour { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 14px; }
.tour img.t-ic { width: 46px; height: auto; }
.tour b { display: block; font-size: 16px; }
.tour .pool { color: var(--amber); font-weight: 800; font-size: 14px; }
.tour small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin-top: 3px; }
.tour small .i { width: 14px; height: 14px; }
.tour .winner { display: flex; align-items: center; gap: 8px; }
.tour .winner img { width: 32px; height: 32px; border-radius: 9px; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 900; letter-spacing: .06em; padding: 3px 8px; border-radius: 7px; background: rgba(255, 84, 104, .18); color: #ff8a98; }
.live-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.joined { color: var(--green); font-weight: 800; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }

/* ---------- leaderboard ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin: 26px 0 16px; text-align: center; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pod__av { position: relative; width: 74px; height: 74px; border-radius: 50%; padding: 3px; background: linear-gradient(180deg, #d9def0, #8a92b0); }
.pod__face { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pod__rank { position: absolute; bottom: -11px; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--num); font-size: 13px; font-weight: 900; color: #1a1030; background: linear-gradient(180deg, #f2f4ff, #a6aec8); border: 2px solid var(--bg); }
.pod--1 .pod__av { width: 100px; height: 100px; background: linear-gradient(180deg, #ffe27a, #e08a00); box-shadow: 0 0 30px rgba(255, 190, 40, .45); }
.pod--1 .pod__rank { background: linear-gradient(180deg, #ffe27a, #f0a000); width: 30px; height: 30px; bottom: -13px; }
.pod--1 .pod__crown { position: absolute; width: 58px; height: auto; top: -46px; left: 50%; transform: translateX(-50%); }
.pod--1 .pod__laurel { position: absolute; width: 150px; height: auto; max-width: none; left: 50%; top: 56%; transform: translate(-50%, -50%); z-index: -1; }
.pod--3 .pod__av { background: linear-gradient(180deg, #ffb27a, #b25a20); }
.pod--3 .pod__rank { background: linear-gradient(180deg, #ffc49a, #c06a2c); }
.pod b { font-size: 14px; margin-top: 14px; }
.pod--1 b { font-size: 17px; }
.pod > span { font-size: 13px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.pod--1 { padding-top: 46px; position: relative; z-index: 0; }
.board { padding: 4px 14px; }
.brow { display: grid; grid-template-columns: 30px 36px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; }
.brow + .brow { border-top: 1px solid var(--line); }
.brow .rk { font-weight: 800; color: var(--muted); font-size: 15px; text-align: center; font-variant-numeric: tabular-nums; }
.brow img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line-2); }
.brow .pts { font-weight: 700; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.me-row { position: sticky; bottom: calc(var(--tab-h) + var(--safe-b) + 10px); margin-top: 12px; padding: 10px 14px; border-radius: 16px; background: linear-gradient(90deg, #5a2bef, #3a17b5); border: 1px solid rgba(190, 160, 255, .5); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.me-row .rk, .me-row .pts { color: #fff; }
.me-row img { border-color: var(--gold); }

/* ---------- profile ---------- */
.profile { display: grid; gap: 16px; }
.pcard { text-align: center; padding: 22px 16px 18px; position: relative; }
.pcard__gear { position: absolute; top: 12px; right: 12px; }
.pcard__av { position: relative; width: 112px; height: 112px; margin: 6px auto 10px; border-radius: 50%; padding: 4px; background: linear-gradient(180deg, #ffe27a, #e08a00); box-shadow: 0 0 34px rgba(255, 190, 40, .35); }
.pcard__face { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pcard__av .lvl { position: absolute; right: -8px; bottom: -6px; width: 38px; height: auto; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); }
.pcard h1 { font-size: 24px; font-weight: 800; }
.lvl-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 4px 12px 4px 6px; border-radius: 999px; background: rgba(255, 182, 39, .14); border: 1px solid rgba(255, 182, 39, .4); font-weight: 800; color: var(--gold); font-size: 14px; }
.lvl-pill img { width: 20px; }
.xp { margin: 14px auto 0; max-width: 300px; }
.xp__bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.xp__bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffd23f, #ff9d0a); }
.xp small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.pstats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pstats div + div { border-left: 1px solid var(--line); }
.pstats b { display: block; font-size: 21px; font-weight: 900; font-variant-numeric: tabular-nums; }
.pstats span { font-size: 12px; color: var(--muted); }
.menu-list { padding: 4px 6px; }
.menu-list button, .menu-list a { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 10px; border: 0; background: transparent; text-align: left; font-weight: 700; font-size: 15px; cursor: pointer; border-radius: 12px; text-decoration: none; }
.menu-list button:hover, .menu-list a:hover { background: rgba(255, 255, 255, .04); }
.menu-list > * + * { border-top: 1px solid var(--line); }
.menu-list .chev { margin-left: auto; color: var(--dim); width: 18px; height: 18px; }
.menu-list .danger { color: var(--red); }
.signed-out { text-align: center; padding: 34px 20px; }
.signed-out img { width: 90px; margin: 0 auto 12px; }
.signed-out h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.signed-out p { color: var(--muted); margin-bottom: 18px; }

/* ---------- fair play / help ---------- */
.fp-hero { text-align: center; padding: 10px 0 6px; }
.fp-hero img { width: min(86%, 420px); margin: 0 auto; filter: drop-shadow(0 16px 40px rgba(0, 0, 0, .55)); }
.fp-hero h1 { font-size: clamp(26px, 6vw, 42px); font-weight: 900; margin: 14px 0 8px; }
.fp-hero p { color: var(--muted); max-width: 56ch; margin: 0 auto; font-size: 16px; }
.fp-grid { display: grid; gap: 12px; margin-top: 26px; }
.fp { padding: 18px; display: grid; grid-template-columns: 48px 1fr; gap: 6px 14px; }
.fp__ic { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(180deg, rgba(135, 88, 255, .35), rgba(90, 43, 239, .25)); border: 1px solid var(--line-2); color: #d8ccff; }
.fp b { font-size: 17px; }
.fp p { color: var(--muted); font-size: 14px; }
.faq { padding: 4px 16px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet-2); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 0 15px; }
.doc { padding: 18px; margin-top: 12px; }
.doc h2 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.doc p { color: var(--muted); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: rgba(5, 6, 22, .6); }
.foot__in { max-width: 1240px; margin: 0 auto; padding: 28px 16px 24px; display: grid; gap: 20px; }
.foot__brand img { width: 120px; height: auto; margin-bottom: 8px; }
.foot__brand p { color: var(--dim); font-size: 13px; max-width: 40ch; }
.foot__links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.foot__links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.foot__links a:hover { color: #fff; }
.foot__guard { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.age { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--red); color: #ff8a98; font-weight: 900; font-size: 12px; flex: none; }
.guard-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; border-radius: 999px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 200, 70, .3); font-size: 13px; text-decoration: none; color: #e9e9ff; }
.guard-pill img { height: 26px; width: auto; }
.guard-pill b { color: var(--gold); }
.foot__dev { color: var(--dim); font-size: 12px; }

/* ---------- tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(10, 11, 40, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line-2); box-shadow: 0 -10px 30px rgba(0, 0, 0, .35); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; font-size: 11px; font-weight: 700; color: var(--muted); }
.tabbar a[aria-current="page"] { color: var(--gold); }
.tabbar a[aria-current="page"] .i { filter: drop-shadow(0 0 8px rgba(255, 200, 50, .55)); }

/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer[hidden] { display: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(3, 3, 14, .6); }
.drawer__panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(84vw, 310px); background: linear-gradient(180deg, #17195a, #0d0e33); border-right: 1px solid var(--line-2); padding: 18px 14px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; }
@media (prefers-reduced-motion: no-preference) { .drawer__panel { animation: slide-in .22s ease; } }
@keyframes slide-in { from { transform: translateX(-100%); } }
.drawer__head { display: flex; align-items: center; gap: 12px; padding: 4px 6px 14px; border-bottom: 1px solid var(--line); }
.drawer__head img { width: 48px; height: 48px; border-radius: 14px; }
.drawer__head b { display: block; font-size: 16px; }
.drawer__head span { font-size: 13px; color: var(--muted); }
.drawer__nav { display: grid; gap: 2px; }
.drawer__nav a { display: flex; align-items: center; gap: 14px; padding: 12px 10px; border-radius: 12px; text-decoration: none; font-weight: 700; }
.drawer__nav a[aria-current="page"] { background: rgba(106, 59, 255, .25); color: var(--gold); }
.drawer__foot { margin-top: auto; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }

/* ---------- sheet (dialogs) ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-wrap[hidden] { display: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(3, 3, 14, .66); backdrop-filter: blur(3px); }
.sheet { position: relative; width: 100%; max-height: 90vh; overflow-y: auto; background: linear-gradient(180deg, #1b1d5e, #101137); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 24px 24px 0 0; padding: 22px 18px calc(22px + var(--safe-b)); box-shadow: 0 -20px 60px rgba(0, 0, 0, .5); }
@media (prefers-reduced-motion: no-preference) { .sheet { animation: rise .24s ease; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.sheet__x { position: absolute; top: 14px; right: 14px; z-index: 2; }
.sheet h2 { font-size: 20px; font-weight: 800; margin: 0 48px 4px 0; display: flex; align-items: center; gap: 10px; }
.sheet h2 img { width: 30px; height: auto; }
.sheet .lead { color: var(--muted); margin-bottom: 16px; font-size: 14px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.input { height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .25); color: #fff; font: 600 15px var(--font); width: 100%; }
.input:focus { outline: none; border-color: var(--violet-2); box-shadow: 0 0 0 3px rgba(154, 116, 255, .25); }
.input-wrap { position: relative; }
.input-wrap .btn { position: absolute; right: 6px; top: 6px; height: 36px; }
.picker { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.picker::-webkit-scrollbar { display: none; }
.picker button { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 8px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .03); cursor: pointer; font-weight: 800; font-size: 14px; }
.picker button img { width: 28px; height: 28px; }
.picker button[aria-pressed="true"] { border-color: var(--violet-2); background: rgba(106, 59, 255, .3); box-shadow: 0 0 0 1px var(--violet-2) inset; }
.picker--text button { padding: 0 14px; }
.addr { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: rgba(0, 0, 0, .25); border: 1px dashed var(--line-2); margin-bottom: 14px; }
.addr__qr { width: 112px; height: 112px; border-radius: 12px; background: rgba(255, 255, 255, .06); display: grid; place-items: center; color: var(--dim); text-align: center; font-size: 11px; font-weight: 700; padding: 8px; }
.addr__qr .i { width: 34px; height: 34px; margin: 0 auto 4px; }
.addr p { font-size: 13px; color: var(--muted); }
.addr b { display: block; font-size: 14px; margin-bottom: 4px; color: #fff; }
.facts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; font-size: 13px; color: var(--muted); }
.facts li { display: flex; justify-content: space-between; gap: 12px; }
.facts b { color: #fff; font-weight: 700; text-align: right; }
.warn { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: rgba(255, 182, 39, .1); border: 1px solid rgba(255, 182, 39, .3); font-size: 13px; color: #ffe2a3; margin-bottom: 14px; }
.warn .i { color: var(--amber); width: 20px; height: 20px; }
.signin-opts { display: grid; gap: 10px; margin-bottom: 16px; }
.signin-opt { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); cursor: pointer; font-weight: 800; font-size: 15px; text-align: left; }
.signin-opt:hover { background: rgba(255, 255, 255, .08); }
.signin-opt .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(106, 59, 255, .3); }
.signin-opt .ic .i { width: 18px; height: 18px; }
.signin-opt small { margin-left: auto; color: var(--dim); font-weight: 600; font-size: 12px; }
/* Continue with Google: Google's dark button colours and its "G" untouched */
.btn--google { background: #131314; color: #e3e3e3; border: 1px solid #8e918f; font-weight: 700; margin-bottom: 14px; }
.btn--google:hover { filter: none; background: #1d1d20; }
.btn--google .g { width: 20px; height: 20px; flex: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; font-weight: 700; margin: 4px 0 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fine { font-size: 12px; color: var(--dim); text-align: center; margin-top: 12px; }
.toggle-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.toggle-row + .toggle-row { border-top: 1px solid var(--line); }
.toggle-row div { flex: 1; }
.toggle-row b { display: block; font-weight: 700; }
.toggle-row small { color: var(--muted); font-size: 13px; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: rgba(255, 255, 255, .14); transition: background .15s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + i { background: var(--violet); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }
.ach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ach div { text-align: center; padding: 14px 6px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.ach img { height: 46px; width: auto; margin: 0 auto 6px; }
.ach b { display: block; font-size: 13px; }
.ach small { font-size: 11px; color: var(--muted); }
.ach .locked img { filter: grayscale(1) brightness(.6); }
.statgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.statgrid div { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.statgrid b { display: block; font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.statgrid span { font-size: 12px; color: var(--muted); }
.hist { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; }
.hist + .hist { border-top: 1px solid var(--line); }
.hist img { width: 36px; height: 36px; border-radius: 10px; }
.hist small { display: block; color: var(--dim); font-size: 12px; }
.wl { display: inline-block; font-size: 11px; font-weight: 900; padding: 1px 6px; border-radius: 5px; margin-right: 6px; }
.wl--w { background: rgba(43, 212, 127, .18); color: var(--green); }
.wl--l { background: rgba(255, 84, 104, .18); color: var(--red); }
.notif { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px 0; align-items: start; }
.notif + .notif { border-top: 1px solid var(--line); }
.notif .tx__ic { background: rgba(106, 59, 255, .25); color: #d8ccff; }
.notif small { display: block; color: var(--dim); font-size: 12px; margin-top: 2px; }

/* matchmaking */
.mm { text-align: center; padding: 6px 0 4px; }
.radar { position: relative; width: 190px; height: 190px; margin: 14px auto 18px; display: grid; place-items: center; }
.radar::before, .radar::after, .radar i { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(154, 116, 255, .5); }
@media (prefers-reduced-motion: no-preference) {
  .radar::before, .radar::after, .radar i { animation: radar 2.4s ease-out infinite; }
  .radar::after { animation-delay: .8s; }
  .radar i { animation-delay: 1.6s; }
}
@keyframes radar { from { transform: scale(.45); opacity: 1; } to { transform: scale(1.1); opacity: 0; } }
.radar img { width: 92px; height: 92px; border-radius: 50%; border: 3px solid var(--gold); position: relative; z-index: 1; box-shadow: 0 0 30px rgba(255, 190, 40, .35); }
.mm h2 { justify-content: center; margin: 0 0 4px; }
.mm .lead { margin-bottom: 4px; }
.mm .timer { font-family: var(--num); font-size: 22px; margin: 8px 0 18px; color: var(--violet-2); }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 22px 0 16px; }
.vs div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.vs img { width: 84px; height: 84px; border-radius: 50%; border: 3px solid var(--violet-2); }
.vs div:first-child img { border-color: var(--gold); }
.vs b { font-size: 15px; }
.vs .vs__x { font-family: var(--num); font-size: 30px; font-weight: 900; color: var(--gold); text-shadow: 0 0 20px rgba(255, 190, 40, .45); font-style: italic; }
.prize-line { font-weight: 800; color: var(--amber); font-size: 18px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; top: calc(var(--top-h) + 10px); left: 0; right: 0; z-index: 70; display: grid; justify-items: center; gap: 10px; padding: 0 12px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; width: min(100%, 460px); padding: 12px 12px 12px 14px; border-radius: 16px; background: rgba(24, 26, 80, .97); border: 1px solid var(--line-2); box-shadow: 0 14px 40px rgba(0, 0, 0, .5); font-weight: 600; font-size: 14px; }
@media (prefers-reduced-motion: no-preference) { .toast { animation: drop .25s ease; } }
@keyframes drop { from { transform: translateY(-14px); opacity: 0; } }
.toast--wait { border-color: rgba(255, 200, 60, .55); box-shadow: 0 14px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 200, 60, .25), 0 0 30px rgba(255, 180, 30, .18); }
.toast--wait img { width: 40px; height: 40px; flex: none; }
.toast--wait small span { white-space: nowrap; }
.toast__txt { flex: 1; line-height: 1.3; }
.toast__txt small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.toast .icon-btn { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.toast .icon-btn .i { width: 16px; height: 16px; }

.tour .winner b { display: inline; font-size: 12px; }
.fine a, .faq a { color: var(--violet-2); }

@media (max-width: 420px) {
  .trow__side { flex-direction: column; align-items: flex-end; gap: 6px; }
  .trow__side .btn { height: 38px; padding: 0 18px; }
  .bal span { display: none; }
}

/* ---------- wider screens ---------- */
@media (min-width: 600px) {
  .tcards { grid-auto-columns: 30%; }
  .coins { grid-template-columns: repeat(8, 1fr); }
  .fp-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { grid-template-columns: 1fr; text-align: left; align-content: start; }
  .step__n { grid-row: auto; }
  .step__coins { grid-column: auto; }
  .sheet-wrap { align-items: center; padding: 20px; }
  .sheet { width: min(100%, 480px); border-radius: 24px; border-bottom: 1px solid var(--line-2); padding-bottom: 24px; }
  .guard { grid-template-columns: 300px 1fr; padding: 26px 30px; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .menu-btn { display: none; }
  body.is-home .brand { visibility: visible; }
  .brand img { height: 50px; }
  .top__nav { display: flex; gap: 4px; margin-left: 18px; }
  .top__nav a { padding: 9px 14px; border-radius: 11px; text-decoration: none; font-weight: 700; color: var(--muted); }
  .top__nav a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
  .top__nav a[aria-current="page"] { color: #fff; background: rgba(106, 59, 255, .28); box-shadow: inset 0 0 0 1px rgba(154, 116, 255, .45); }
  .top-avatar { display: block; }
  .page { padding: 28px 24px 56px; }
  .hero { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 28px; text-align: left; padding-top: 18px; }
  .hero__logo { width: 190px; margin: 0; }
  .hero h1 { font-size: 64px; }
  .hero__sub { margin: 0 0 26px; font-size: 18px; }
  .hero__cta { justify-content: flex-start; }
  .hero__cta .btn--ghost { display: inline-flex; }
  .quick { margin: 30px 0 0; }
  .hero-art { width: 100%; max-width: 560px; }
  .home-strip { display: grid; grid-template-columns: 1fr 1.35fr; gap: 16px; margin-top: 18px; }
  .home-strip .promo, .home-strip .stats-strip { margin-top: 0; }
  .home-strip .stats-strip div { display: flex; flex-direction: column; justify-content: center; }
  .home-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .home-bottom .steps { grid-template-columns: 1fr; }
  .home-bottom .step { grid-template-columns: auto 1fr; padding: 14px 18px; }
  .home-bottom .step__n { grid-row: span 2; }
  .home-bottom .step__coins { grid-column: 2; }
  .tcards { grid-auto-flow: row; grid-template-columns: repeat(7, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
  .trows { grid-template-columns: 1fr 1fr; }
  .wallet { grid-template-columns: 1fr 1fr; column-gap: 24px; align-items: start; }
  .wallet > * { grid-column: 1; min-width: 0; }
  .wallet > .wallet__side { grid-column: 2; grid-row: 1 / span 3; }
  .wallet .wallet__side .sec-h { margin-top: 0; }
  .coins { grid-template-columns: repeat(4, 1fr); }
  .tour-layout { grid-template-columns: 380px 1fr; align-items: start; }
  .tfeat { position: sticky; top: calc(var(--top-h) + 20px); }
  .tours { margin-top: 0; }
  .profile { grid-template-columns: 360px 1fr; align-items: start; }
  .fp-grid { grid-template-columns: repeat(3, 1fr); }
  .me-row { bottom: 16px; }
  .foot__in { grid-template-columns: 1.2fr 1fr; align-items: start; padding: 36px 24px 30px; }
  .foot__guard { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid var(--line); }
  .toasts { top: calc(var(--top-h) + 14px); justify-items: end; padding-right: 24px; }
  .match-wrap { display: grid; grid-template-columns: 1fr; }
}


/* ---------- live website ---------- */
.rules { font-size: 12px; font-weight: 700; color: var(--muted); max-width: 84px; text-align: right; line-height: 1.25; }
.addr--real { grid-template-columns: 1fr auto; border-style: solid; }
.addr__text { font-family: ui-monospace, Consolas, monospace; font-size: 13px !important; color: #fff !important; word-break: break-all; margin-top: 2px; }
.testpay { display: grid; gap: 6px; margin-top: 16px; padding: 14px; border-radius: 16px; background: rgba(43, 212, 127, .08); border: 1px dashed rgba(43, 212, 127, .5); }
.testpay b { display: flex; align-items: center; gap: 8px; color: #9ff3c6; }
.testpay p, .testpay small { font-size: 12px; color: var(--muted); margin: 0; }
.testpay__row { display: flex; gap: 8px; }
.testpay__row .input { flex: 1; min-width: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 2px 0 16px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--violet); flex: none; }
.check a, .fine a { color: var(--violet-2); }
.avatars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.avatars button { padding: 0; border: 2px solid transparent; border-radius: 14px; background: none; cursor: pointer; overflow: hidden; aspect-ratio: 1; }
.avatars button[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 14px rgba(255, 190, 40, .45); }
.avatars img { width: 100%; height: 100%; object-fit: cover; }
.wl:not(.wl--w):not(.wl--l) { background: rgba(154, 116, 255, .2); color: #d8ccff; }
.form-error { margin-bottom: 14px; }
.play { display: flex; flex-direction: column; height: calc(100vh - var(--top-h)); height: calc(100dvh - var(--top-h)); }
.play__bar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: rgba(8, 9, 34, .9); flex-wrap: wrap; }
.play__info { font-size: 14px; color: var(--muted); }
.play__info b { color: #fff; }
.play__bar .guard-mini { margin-left: auto; }
.play__game { flex: 1; width: 100%; border: 0; background: #000; display: block; }
body.is-play { padding-bottom: 0; }
body.is-play .tabbar, body.is-play .foot { display: none; }
.hist img { width: 36px; height: 36px; border-radius: 10px; }

/* ---------- live matches ---------- */
.seg--3 a { font-size: 14px; gap: 6px; padding: 0 6px; white-space: nowrap; }
.seg--3 .live-dot { margin-right: 0; }
.seg__n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--green); color: #04220f; font: 800 12px/20px var(--font); }
.seg--3 + #liveList { margin-top: 16px; }
.quick { grid-template-columns: repeat(4, 1fr); max-width: 520px; }
.quick__live { height: 36px; display: grid; place-items: center; color: var(--green); }
.quick__live .i { width: 32px; height: 32px; filter: drop-shadow(0 0 8px rgba(43, 212, 127, .55)); }
.sec-h h2 .live-dot { vertical-align: 3px; }

.lcards { display: grid; gap: 12px; }
.lcard { position: relative; overflow: hidden; padding: 14px 16px; display: grid; gap: 12px; }
.lcard > * { position: relative; }
.lcard > .lcard__art { position: absolute; inset: 0; background-size: cover; background-position: center 30%; opacity: .2; -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); mask-image: linear-gradient(180deg, #000, transparent 80%); pointer-events: none; }
.lcard--mine { border-color: rgba(255, 203, 51, .55); box-shadow: 0 0 0 1px rgba(255, 203, 51, .2), 0 10px 28px rgba(255, 170, 30, .12); }
.lcard__top { display: flex; justify-content: space-between; align-items: center; }
.live-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: rgba(43, 212, 127, .14); border: 1px solid rgba(43, 212, 127, .45); color: #9ff3c6; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.lcard--mine .live-tag { background: rgba(255, 203, 51, .14); border-color: rgba(255, 203, 51, .5); color: var(--gold); }
.lcard--mine .live-tag .live-dot { background: var(--gold); }
.lcard__time { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); font-weight: 700; }
.lcard__time .i { width: 14px; height: 14px; }
.lcard__vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.vs { font: 900 18px var(--num); color: var(--gold); text-shadow: 0 0 14px rgba(255, 190, 40, .5); }
.lp { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lp--r { flex-direction: row-reverse; text-align: right; }
.lp__face { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid #5fb8ff; box-shadow: 0 0 12px rgba(95, 184, 255, .45); }
.lp--r .lp__face { border-color: #ff6b7d; box-shadow: 0 0 12px rgba(255, 107, 125, .45); }
.lp__who { min-width: 0; }
.lp__who b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp__who span { font-size: 12px; color: var(--muted); font-weight: 700; }
.lcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.lcard__table { min-width: 0; }
.lcard__table b { display: block; font-size: 14px; }
.lcard__table > span { font-size: 12px; color: var(--muted); }
.lcard__foot .btn { flex: none; }
.live-empty { display: flex; align-items: center; gap: 14px; padding: 16px 18px; flex-wrap: wrap; }
.live-empty img { width: 44px; height: 44px; }
.live-empty div { flex: 1; min-width: 180px; }
.live-empty b { display: block; }
.live-empty p { font-size: 13px; color: var(--muted); }
p.live-empty { justify-content: center; padding: 30px 0; }
@media (min-width: 720px) { .lcards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .lcards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) and (max-width: 1180px) { .top__nav { margin-left: 8px; gap: 0; } .top__nav a { padding: 9px 10px; } }
@media (max-width: 420px) { .seg--3 { gap: 6px; } .seg--3 a { font-size: 13px; gap: 5px; padding: 0 4px; } .seg--3 img, .seg--3 .i { width: 18px; height: 18px; } }
.btn[aria-busy="true"] { opacity: .65; cursor: progress; }
@media (max-width: 420px) { .lp, .lp--r { flex-direction: column; text-align: center; gap: 6px; } .lp__who { width: 100%; } }
