/* The Mafia — veb-ilova dizayni (v5). Faqat tungi mavzu. Emoji yo'q: ikonlar SVG sprite orqali.
   Inline style atributlari yo'q (CSP): dinamik kengliklar JS da element.style orqali qo'yiladi. */
:root {
  --bg: #07060d;
  --bg-2: #0c0a16;
  --card: #120e1d;
  --card-2: #181327;
  --card-3: #20193a;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --text: #f5f3ff;
  --muted: #a79fc4;
  --faint: #7a7299;
  --violet: #8b5cf6;
  --violet-2: #b197ff;
  --pink: #ec4899;
  --cyan: #38bdf8;
  --dia: #7dd3fc;
  --gold: #fbbf24;
  --coin: #4ade80;
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #fb7185;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, .24), rgba(236, 72, 153, .14));
  --glow: 0 0 0 1px rgba(177, 151, 255, .30), 0 12px 40px rgba(139, 92, 246, .28);
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --glass: rgba(255, 255, 255, .035);
  --glass-line: rgba(255, 255, 255, .11);
  --ring: linear-gradient(135deg, #5b8cff 0%, #7c6cff 50%, #b07cff 100%);
  --buy: linear-gradient(90deg, #a855f7 0%, #6d5dfc 52%, #1aa2f5 100%);
  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 15px;
  --r-sm: 11px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--text);
  font: 15px/1.45 var(--font);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 0% -10%, rgba(139, 92, 246, .20), transparent 60%),
    radial-gradient(760px 480px at 100% 0%, rgba(236, 72, 153, .13), transparent 55%);
  background-attachment: fixed;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
html, body { overscroll-behavior-y: none; }
body.is-sheet { overflow: hidden; }
/* Suzuvchi pastki panel ostidagi kontent ko'zga tashlanmasligi uchun */
body:not(.is-intro)::after {
  content: ""; position: fixed; left: 0; right: 0; bottom: 0; z-index: 24; pointer-events: none;
  height: calc(110px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(5, 4, 10, 0), rgba(5, 4, 10, .9) 58%);
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
a { color: var(--cyan); text-decoration: none; overflow-wrap: anywhere; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 26px; line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: 18px; line-height: 1.25; }
h3 { font-size: 16px; line-height: 1.3; }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 2px; border-radius: 8px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic--sm { width: 16px; height: 16px; }
.ic--lg { width: 26px; height: 26px; }
.ic--xl { width: 42px; height: 42px; stroke-width: 1.5; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; word-break: break-all; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row-x { display: flex; align-items: center; gap: 10px; min-width: 0; }
.grow { flex: 1 1 auto; min-width: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* ── Kirish (intro) ─────────────────────────────────────────── */
.intro {
  position: fixed; inset: 0; z-index: 60;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(28px + env(safe-area-inset-top)) 22px calc(22px + env(safe-area-inset-bottom));
  background:
    radial-gradient(620px 420px at 50% 30%, rgba(139, 92, 246, .32), transparent 65%),
    radial-gradient(520px 380px at 50% 85%, rgba(236, 72, 153, .18), transparent 70%),
    var(--bg);
  transition: opacity .45s ease, transform .45s ease, visibility .45s;
}
.intro.is-out { opacity: 0; transform: scale(1.03); visibility: hidden; pointer-events: none; }
.intro__box { margin: auto; text-align: center; }
.intro__mark {
  width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 28px;
  display: grid; place-items: center; background: var(--grad); box-shadow: var(--glow);
}
.intro__mark .ic { color: #fff; }
.intro__sub { margin-top: 14px; color: var(--muted); letter-spacing: .02em; }
.intro__foot { display: grid; gap: 12px; justify-items: center; }
.glitch { position: relative; display: inline-block; margin: 0; font-size: 36px; font-weight: 800; letter-spacing: .16em; color: #fff; }
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: hidden; pointer-events: none;
}
.glitch::before { color: var(--cyan); clip-path: inset(0 0 62% 0); animation: gl1 2.6s infinite steps(6); opacity: .85; }
.glitch::after { color: var(--pink); clip-path: inset(58% 0 0 0); animation: gl2 2.3s infinite steps(6); opacity: .85; }
@keyframes gl1 { 0% { transform: translate(0); } 20% { transform: translate(-3px, 1px); } 40% { transform: translate(3px, -1px); } 60% { transform: translate(-2px, 0); } 100% { transform: translate(0); } }
@keyframes gl2 { 0% { transform: translate(0); } 25% { transform: translate(3px, -2px); } 50% { transform: translate(-3px, 2px); } 75% { transform: translate(2px, 0); } 100% { transform: translate(0); } }

/* ── Yuqori panel va hamyon (shisha "pill" uslubi) ──────────── */
.app { min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px; max-width: 640px; margin: 0 auto;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  background: linear-gradient(180deg, rgba(5, 4, 10, .96) 55%, rgba(5, 4, 10, 0));
}
.glass {
  background: var(--glass); border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 10px 30px rgba(0, 0, 0, .35);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 16px 0 14px; border-radius: 99px; min-width: 0;
  font-weight: 800; letter-spacing: .14em; font-size: 12.5px; white-space: nowrap;
}
.brand .ic { color: var(--violet-2); width: 22px; height: 22px; }
.brand__t { overflow: hidden; text-overflow: ellipsis; }
.topbar__sp { flex: 1 1 auto; }
.wallet {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 6px 0 16px; border-radius: 99px; min-width: 0; flex: 0 1 auto;
}
.wallet__v { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.wallet__main { display: inline-flex; align-items: center; gap: 5px; font-size: 16px; font-weight: 800; color: #fff; white-space: nowrap; }
.wallet__main .ic { width: 15px; height: 15px; color: var(--dia); }
.wallet__sub { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--faint); white-space: nowrap; margin-top: 2px; font-variant-numeric: tabular-nums; }
.wallet__sub > span { display: inline-flex; align-items: center; gap: 3px; }
.wallet__sub .ic { width: 11px; height: 11px; color: var(--gold); }
.wallet__sub .coin-sym { width: 11px; height: 11px; font-size: 8px; }
.wallet__plus {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: var(--buy); box-shadow: 0 6px 18px rgba(109, 93, 252, .45);
}
.wallet__plus .ic { width: 20px; height: 20px; stroke-width: 2.2; }
.me-btn {
  position: relative; flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; font-weight: 800; font-size: 19px; color: #fff;
  background: radial-gradient(circle at 35% 30%, #f43f5e, #7f1d1d 70%, #2a0a12);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 22px rgba(244, 63, 94, .25);
}
.me-btn img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px;
  border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  font-size: 12.5px; white-space: nowrap; color: var(--text);
}
.pill .ic { width: 14px; height: 14px; }
.pill b { font-weight: 700; font-variant-numeric: tabular-nums; }
button.pill { cursor: pointer; }
.coin-sym {
  display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%;
  background: var(--coin); color: #07060d; font-style: normal; font-size: 10px; font-weight: 800; line-height: 1;
}

/* ── Asosiy ko'rinish ───────────────────────────────────────── */
.view {
  max-width: 640px; margin: 0 auto; padding: 6px 16px calc(112px + env(safe-area-inset-bottom));
  overflow-x: clip; /* a spun wheel is rotated; its corners must not widen the page */
  opacity: 0; transform: translateY(8px); transition: opacity .28s ease, transform .28s ease;
}
.view.is-in { opacity: 1; transform: none; }
.view:focus { outline: none; }
.subhead { display: flex; align-items: center; gap: 10px; padding: 4px 0 6px; }
.subhead h1 { font-size: 20px; min-width: 0; overflow-wrap: anywhere; }

/* ── Pastki navigatsiya (suzuvchi shisha panel) ─────────────── */
.tabbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
  max-width: 616px; margin: 0 auto; padding: 6px; border-radius: 30px;
  background: rgba(13, 11, 24, .86); border: 1px solid var(--glass-line);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0;
  padding: 7px 4px 6px; border-radius: 24px; border: 1.5px solid transparent; color: var(--faint);
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em; transition: color .2s, box-shadow .2s;
}
.tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab .ic { width: 22px; height: 22px; }
.tab.is-on, .seg__btn.is-on, .tabs__btn.is-on {
  color: #fff;
  background: linear-gradient(#0d0b19, #0d0b19) padding-box, var(--ring) border-box;
  border-color: transparent;
  box-shadow: 0 0 18px rgba(99, 102, 241, .32), inset 0 0 12px rgba(99, 102, 241, .12);
}
.tab.is-on .ic { color: #a5b4fc; }

/* ── Tugmalar, chiplar, segment ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r-md);
  font-weight: 700; font-size: 14.5px; letter-spacing: .01em; white-space: nowrap;
  background: var(--card-2); border: 1px solid var(--line-2); transition: transform .12s, filter .2s, background .2s;
}
.btn:active { transform: scale(.98); }
.btn .ic { width: 18px; height: 18px; }
.btn--primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 28px rgba(236, 72, 153, .22); }
.btn--primary:hover { filter: brightness(1.06); }
.btn--ghost { background: rgba(255, 255, 255, .04); }
.btn--gold { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1a1205; border-color: transparent; }
.btn--danger { background: rgba(251, 113, 133, .12); border-color: rgba(251, 113, 133, .35); color: #fecdd3; }
.btn--sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn--xl { min-height: 54px; font-size: 16px; border-radius: 18px; }
.btn.is-busy { opacity: .7; pointer-events: none; }
.ibtn {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; flex: 0 0 auto;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border-radius: 99px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted); white-space: nowrap;
}
.chip.is-on { color: #fff; border-color: rgba(177, 151, 255, .45); background: var(--grad-soft); }
.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 5px; margin: 12px 0;
  border-radius: 99px; background: var(--glass); border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.seg__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 46px; padding: 0 10px;
  border-radius: 99px; border: 1.5px solid transparent; font-size: 14.5px; font-weight: 700; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s, box-shadow .2s;
}
.seg__btn .ic { width: 17px; height: 17px; }
.seg--caps .seg__btn { min-height: 50px; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; font-weight: 800; }
.seg--filter .seg__btn .ic--fast { color: #4ade80; }
.seg--filter .seg__btn .ic--slow { color: var(--gold); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 7px; font-size: 11px; font-weight: 700; letter-spacing: .03em; background: rgba(255, 255, 255, .07); color: var(--muted); white-space: nowrap; }
.tag--pro { background: var(--grad); color: #fff; }
.tag--ok { background: rgba(52, 211, 153, .14); color: var(--ok); }
.tag--warn { background: rgba(251, 191, 36, .14); color: var(--warn); }
.tag--err { background: rgba(251, 113, 133, .14); color: var(--err); }
.tag--info { background: rgba(56, 189, 248, .14); color: var(--cyan); }
.fab {
  position: fixed; right: 16px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 25;
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 99px;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 14.5px; box-shadow: 0 14px 34px rgba(236, 72, 153, .38);
}
.fab .ic { width: 18px; height: 18px; }

/* ── Kartalar ───────────────────────────────────────────────── */
.card {
  position: relative; padding: 16px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)), var(--card);
  border: 1px solid var(--line); min-width: 0;
}
.card--glow { border-color: rgba(177, 151, 255, .26); box-shadow: var(--glow); }
.hero {
  position: relative; overflow: hidden; padding: 20px; border-radius: var(--r-xl);
  background:
    radial-gradient(360px 220px at 100% 0%, rgba(236, 72, 153, .38), transparent 60%),
    radial-gradient(360px 240px at 0% 100%, rgba(56, 189, 248, .18), transparent 60%),
    linear-gradient(135deg, #1b1135 0%, #120c24 100%);
  border: 1px solid rgba(177, 151, 255, .22); box-shadow: var(--glow);
}
.hero__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hero h1 { margin-top: 6px; overflow-wrap: anywhere; }
.kicker { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--violet-2); font-weight: 700; }
.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.hero .chips { margin-top: 10px; }
.stat { padding: 10px 10px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); min-width: 0; }
.stat__v { font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat__k { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.rankbadge {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px;
  border-radius: 99px; font-size: 12.5px; font-weight: 800; color: #fff; background: var(--grad); white-space: nowrap;
}
.rankbadge .ic { width: 15px; height: 15px; }
.rankbadge--bronze { background: linear-gradient(135deg, #a16207, #78350f); }
.rankbadge--silver { background: linear-gradient(135deg, #cbd5e1, #64748b); }
.rankbadge--gold { background: linear-gradient(135deg, #fde68a, #d97706); color: #2a1a02; }
.rankbadge--platinum { background: linear-gradient(135deg, #5eead4, #0e7490); }
.rankbadge--diamond { background: linear-gradient(135deg, #7dd3fc, #6366f1); }
.rankbadge--legend { background: linear-gradient(135deg, #f0abfc, #7c3aed, #ec4899); }
.xp { margin-top: 14px; }
.xp__meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.bar { position: relative; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar > i { position: absolute; top: 0; bottom: 0; left: 0; width: 0; border-radius: 99px; background: var(--grad); transition: width .9s cubic-bezier(.2, .7, .2, 1); }
.bar--gold > i { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.bar--ok > i { background: linear-gradient(90deg, #34d399, #22d3ee); }
.bar--sm { height: 6px; }

/* ── Bo'lim sarlavhasi va ro'yxat ───────────────────────────── */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 10px; }
.sec-head h2 { font-size: 16.5px; min-width: 0; }
.sec-head .btn--sm { flex: 0 0 auto; }
.page-title { margin: 6px 0 2px; }
.page-sub { color: var(--muted); font-size: 13.5px; margin-bottom: 4px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-width: 0;
  border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line);
}
.row.is-on { border-color: rgba(177, 151, 255, .45); background: var(--card-2); box-shadow: inset 0 0 0 1px rgba(177, 151, 255, .15); }
.row--link { width: 100%; text-align: left; transition: transform .12s, border-color .2s; }
.row--link:active { transform: scale(.99); }
.row__ic {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--violet-2); border: 1px solid rgba(177, 151, 255, .2);
}
.row__ic--gold { background: rgba(251, 191, 36, .12); color: var(--gold); border-color: rgba(251, 191, 36, .25); }
.row__ic--cyan { background: rgba(56, 189, 248, .12); color: var(--dia); border-color: rgba(56, 189, 248, .25); }
.row__ic--ok { background: rgba(52, 211, 153, .12); color: var(--ok); border-color: rgba(52, 211, 153, .25); }
.row__ic--err { background: rgba(251, 113, 133, .12); color: var(--err); border-color: rgba(251, 113, 133, .25); }
.row__body { flex: 1 1 auto; min-width: 0; }
.row__title { font-weight: 700; font-size: 14.5px; overflow-wrap: anywhere; }
.row__sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.row__end { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.row__chev { color: var(--faint); }
.rownum { flex: 0 0 auto; width: 28px; text-align: center; font-weight: 800; color: var(--faint); font-variant-numeric: tabular-nums; }
.rownum--1 { color: var(--gold); } .rownum--2 { color: #cbd5e1; } .rownum--3 { color: #d97706; }
.rchip {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 8px;
  background: rgba(255, 255, 255, .05); font-size: 12px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.rchip .ic { width: 13px; height: 13px; }
.rchip--coin { color: var(--coin); }
.rchip--dia { color: var(--dia); }
.rchip--star { color: var(--gold); }

/* ── Bosh sahifa ────────────────────────────────────────────── */
.keycard {
  display: flex; align-items: center; gap: 14px; padding: 16px; margin-top: 14px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(251, 191, 36, .14), rgba(236, 72, 153, .08)), var(--card);
  border: 1px solid rgba(251, 191, 36, .28); min-width: 0;
}
.keycard--link { width: 100%; text-align: left; }
.keycard__ic {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center;
  background: linear-gradient(135deg, #fde68a, #f59e0b); color: #2a1a02; box-shadow: 0 8px 24px rgba(251, 191, 36, .3);
}
.keycard__body { flex: 1 1 auto; min-width: 0; }
.keycard__body h3 { font-size: 15.5px; }
.keycard__body p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.keycard__main { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; min-width: 0; text-align: left; }
.keycard__sub { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); }
.countdown { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 14px; color: var(--gold); letter-spacing: .02em; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; min-width: 0; text-align: left;
  border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); transition: transform .12s, border-color .2s;
}
.tile:active { transform: scale(.98); }
.tile:hover { border-color: var(--line-2); }
.tile__ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); color: var(--violet-2); }
.tile__t { font-weight: 700; font-size: 14px; }
.tile__s { font-size: 12px; color: var(--muted); margin-top: -6px; overflow-wrap: anywhere; }
.banners { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 6px; scrollbar-width: none; }
.banners::-webkit-scrollbar { display: none; }
.banner {
  flex: 0 0 82%; max-width: 360px; scroll-snap-align: start; padding: 16px; border-radius: var(--r-lg); min-width: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, .24), rgba(56, 189, 248, .08)), var(--card); border: 1px solid var(--line-2);
}
.banner--ad { background: linear-gradient(135deg, rgba(236, 72, 153, .26), rgba(251, 191, 36, .08)), var(--card); }
.banner__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.banner h3 { margin-top: 10px; font-size: 15px; overflow-wrap: anywhere; }
.banner p { margin-top: 4px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.banner .btn { margin-top: 12px; }
.play {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-lg); min-width: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, .2), rgba(56, 189, 248, .06)), var(--card); border: 1px solid rgba(177, 151, 255, .22);
}
.play p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.play .btn { margin-top: 10px; }

/* ── Bo'sh holat, skeleton, xato ────────────────────────────── */
.empty { text-align: center; padding: 26px 16px; color: var(--muted); }
.empty__ic { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: var(--violet-2); }
.empty p { font-size: 13.5px; margin-bottom: 12px; }
.sk { border-radius: var(--r-lg); background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .09), rgba(255, 255, 255, .04)) 0 0 / 200% 100%; animation: shimmer 1.3s infinite linear; margin-top: 12px; }
.sk--hero { height: 190px; border-radius: var(--r-xl); margin-top: 6px; }
.sk--row { height: 66px; }
.sk--tall { height: 260px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.screen-msg { text-align: center; padding: 56px 18px; }
.screen-msg h1 { font-size: 22px; margin: 16px 0 8px; }
.screen-msg p { color: var(--muted); margin-bottom: 18px; }
.screen-msg .ic { color: var(--violet-2); }

/* ── Sheet (pastdan chiqadigan oyna) ────────────────────────── */
.sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(3, 2, 8, .66); opacity: 0; transition: opacity .22s ease; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet__panel {
  position: relative; width: 100%; max-width: 640px; max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column;
  border-radius: 28px 28px 0 0; background: linear-gradient(180deg, #171129, #0e0b1a);
  border: 1px solid var(--line-2); border-bottom: 0; box-shadow: 0 -20px 60px rgba(0, 0, 0, .55);
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
}
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__grab { width: 44px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .18); margin: 0 auto 8px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sheet__head h2 { font-size: 18px; min-width: 0; overflow-wrap: anywhere; }
.sheet__body { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding-bottom: 4px; display: flex; flex-direction: column; gap: 12px; }

/* ── Xabarlar ───────────────────────────────────────────────── */
.toasts { position: fixed; left: 14px; right: 14px; top: calc(12px + env(safe-area-inset-top)); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  max-width: 560px; width: 100%; padding: 12px 16px; border-radius: 16px; font-size: 14px; font-weight: 600;
  background: rgba(24, 19, 39, .96); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(-10px); transition: opacity .25s ease, transform .25s ease;
}
.toast.is-in { opacity: 1; transform: none; }
.toast--ok { border-color: rgba(52, 211, 153, .45); }
.toast--err { border-color: rgba(251, 113, 133, .5); }
.toast--warn { border-color: rgba(251, 191, 36, .5); }

/* ── Forma ──────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field__l { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--r-md);
  background: rgba(0, 0, 0, .28); border: 1px solid var(--line-2); color: var(--text); font: inherit; font-size: 15px;
}
.textarea { min-height: 84px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: rgba(177, 151, 255, .6); box-shadow: 0 0 0 3px rgba(139, 92, 246, .18); }
.input::placeholder { color: var(--faint); }
.hint { font-size: 12px; color: var(--faint); }
.notice {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md);
  background: rgba(56, 189, 248, .08); border: 1px solid rgba(56, 189, 248, .25); font-size: 13px; color: #cfeeff; min-width: 0;
}
.notice .ic { color: var(--cyan); margin-top: 1px; }
.notice--warn { background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .28); color: #fde9b0; }
.notice--warn .ic { color: var(--warn); }
.notice--err { background: rgba(251, 113, 133, .08); border-color: rgba(251, 113, 133, .3); color: #ffd6dd; }
.notice--err .ic { color: var(--err); }
.divider { height: 1px; background: var(--line); margin: 4px 0; }
.picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pick {
  display: flex; align-items: center; gap: 10px; padding: 12px; min-width: 0; text-align: left;
  border-radius: var(--r-md); background: rgba(0, 0, 0, .25); border: 1px solid var(--line-2);
}
.pick.is-on { border-color: rgba(177, 151, 255, .6); background: var(--grad-soft); box-shadow: 0 0 0 3px rgba(139, 92, 246, .15); }
.pick b { display: block; font-size: 14px; }
.pick span { display: block; font-size: 12px; color: var(--muted); }
.step { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.step__n { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--grad); color: #fff; }

/* ── Bozor (NFT sovg'alar) ──────────────────────────────────── */
.ggrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.gcard {
  display: flex; flex-direction: column; min-width: 0; padding: 10px 10px 12px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(139, 92, 246, .08), rgba(255, 255, 255, .01) 60%), #0b0915;
  border: 1px solid rgba(160, 130, 255, .17); box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}
.gcard__art {
  position: relative; aspect-ratio: 1 / .96; border-radius: 18px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 42%, #4b3c86 0%, #1d1638 80%);
}
.gcard__art::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09;
  background-image: radial-gradient(circle, #000 0 4px, transparent 5px), radial-gradient(circle, #000 0 4px, transparent 5px);
  background-size: 40px 40px; background-position: 0 0, 20px 20px;
}
.gcard__art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 70% at 50% 0%, rgba(255, 255, 255, .16), transparent 62%);
}
.gcard__img { position: absolute; left: 11%; top: 13%; width: 78%; height: 78%; object-fit: contain; opacity: 0; transition: opacity .3s; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .35)); }
.gcard__art.has-img .gcard__img { opacity: 1; }
.gcard__art.has-img .gcard__ph { visibility: hidden; }
.gcard__ph { position: relative; color: rgba(255, 255, 255, .9); filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .3)); }
.ic--art { width: 64px; height: 64px; stroke-width: 1.3; }
.gbadge {
  position: absolute; z-index: 1; top: 9px; left: 9px; display: inline-flex; align-items: center; gap: 5px; max-width: calc(100% - 18px);
  height: 28px; padding: 0 10px; border-radius: 99px; background: rgba(8, 6, 14, .58); color: #fde68a;
  font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.gbadge span { overflow: hidden; text-overflow: ellipsis; }
.gbadge .ic { width: 14px; height: 14px; }
.gbadge--fast { color: #bbf7d0; }
.gbadge--fast .ic { color: #4ade80; }
.gbadge--manual .ic { color: var(--gold); }
.gbadge--st { color: #fff; }
.gbadge--active { color: #bbf7d0; }
.gbadge--draft, .gbadge--pending, .gbadge--returning { color: #fde68a; }
.gbadge--paid, .gbadge--reserved { color: #bae6fd; }
.gbadge--completed { color: #ddd6fe; }
.gbadge--rejected, .gbadge--cancelled, .gbadge--refunded { color: #fecdd3; }
.gcard__t { margin: 12px 4px 0; font-weight: 800; font-size: 16px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcard__m { display: flex; align-items: center; gap: 7px; margin: 6px 4px 0; font-size: 13px; color: var(--muted); min-width: 0; }
.gcard__model { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.rar { flex: 0 0 auto; padding: 2px 8px; border-radius: 8px; background: rgba(139, 92, 246, .22); color: #c4b5fd; font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.gcard__p { display: flex; align-items: center; gap: 5px; margin: 12px 4px 0; font-size: 20px; font-weight: 800; min-width: 0; white-space: nowrap; }
.gcard__p b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.gcard__p small { font-size: 13px; font-weight: 700; color: var(--muted); }
.gcard__p .ic { width: 17px; height: 17px; flex: 0 0 auto; }
.gcard__p--dia .ic { color: var(--dia); }
.gcard__p--star .ic { color: var(--gold); }
.gcard__p--none { font-size: 14px; color: var(--faint); font-weight: 700; }
.gcard__s { margin: 4px 4px 0; font-size: 12.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.gcard__hint { margin: 8px 4px 0; font-size: 12px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.buy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; margin-top: auto;
  min-height: 46px; padding: 0 10px; border-radius: 99px; background: var(--buy); color: #fff;
  font-weight: 800; font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 10px 24px rgba(109, 93, 252, .35); transition: transform .12s, filter .2s;
}
.gcard .buy-btn { margin-top: 14px; }
.gcard__foot { margin-top: auto; }
.buy-btn:active { transform: scale(.98); }
.buy-btn--ghost { background: rgba(255, 255, 255, .06); color: var(--muted); box-shadow: inset 0 0 0 1px var(--glass-line); }
.buy-btn--block { min-height: 54px; font-size: 15px; }

/* Pastki qidiruv paneli (pastki menyu ustida) */
.mk-dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 26;
  display: flex; align-items: center; gap: 8px; max-width: 616px; margin: 0 auto;
}
.dock-btn {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--text);
  background: rgba(16, 14, 28, .88); border: 1px solid var(--glass-line); box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.dock-btn--sell { background: var(--buy); border-color: transparent; color: #fff; box-shadow: 0 10px 26px rgba(109, 93, 252, .45); }
.dock-btn--sell .ic { stroke-width: 2.2; }
.dock-search {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 99px;
  background: rgba(16, 14, 28, .88); border: 1px solid var(--glass-line); box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: var(--faint);
}
.dock-search input { flex: 1 1 auto; min-width: 0; height: 100%; border: 0; outline: none; background: none; color: var(--text); font: inherit; font-size: 15px; }
.dock-search input::placeholder { color: var(--faint); }
.dock-search input::-webkit-search-cancel-button { filter: invert(.7); }
.dock-search:focus-within { border-color: rgba(124, 108, 255, .7); }
.dock-space { height: 70px; }

/* Sotish: qabul qiluvchi profil */
.supp {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 22px; min-width: 0;
  background: linear-gradient(#100d1e, #100d1e) padding-box, var(--ring) border-box; border: 1.5px solid transparent;
  box-shadow: 0 0 22px rgba(99, 102, 241, .22);
}
.supp__av {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-size: 20px; font-weight: 800; color: #fff; background: var(--buy);
}
.supp__t { flex: 1 1 auto; min-width: 0; }
.supp__t b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.supp__t span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.supp__acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mk-top { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; }
.mk-top .supp { flex: 1 1 auto; padding: 10px 12px; }
.mk-top .supp__av { width: 42px; height: 42px; font-size: 17px; }
.gmini { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gmini .gcard__art { flex: 0 0 auto; width: 76px; border-radius: 16px; }
.gmini .gbadge { display: none; }
.gmini .ic--art { width: 36px; height: 36px; }
.gmini__t { min-width: 0; }
.gmini__t b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmini__t span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.sortlist { display: grid; gap: 8px; }
.sortlist .row { width: 100%; text-align: left; }

/* Ro'yxat kartasi (do'kon sahifasi) va holat yorliqlari */
.listing { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.listing__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.listing__act { display: flex; gap: 8px; }
.listing__act .btn { flex: 1 1 0; }
.status { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.cur-pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: rgba(255, 255, 255, .06); color: var(--muted); white-space: nowrap; }
.cur-pill--dia { color: var(--dia); }
.cur-pill--star { color: var(--gold); }
.cur-pill--ton { color: #7dd3fc; }
.cur-pill--card { color: #f0abfc; }
.cur-pill--coin { color: var(--coin); }
.paywall .chips { margin-top: 12px; justify-content: center; }
.summary { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-md); background: rgba(0, 0, 0, .25); border: 1px solid var(--line); font-size: 14px; }
.summary div { display: flex; justify-content: space-between; gap: 10px; }
.summary b { font-variant-numeric: tabular-nums; text-align: right; }

/* ── Baraban ────────────────────────────────────────────────── */
.wheel-stage { position: relative; width: min(330px, 84vw); aspect-ratio: 1; margin: 8px auto 4px; }
.wheel { width: 100%; height: 100%; display: block; border-radius: 50%; filter: drop-shadow(0 16px 40px rgba(139, 92, 246, .35)); }
.wheel.is-spinning { transition: transform 4.2s cubic-bezier(.12, .72, .08, 1); }
.wheel-pointer {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 0; height: 0; z-index: 2;
  border-left: 14px solid transparent; border-right: 14px solid transparent; border-top: 26px solid var(--gold);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5));
}
.wheel-hub {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: grid; place-items: center; background: #0b0816; border: 2px solid rgba(251, 191, 36, .6); color: var(--gold);
}
.spin-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.spin-actions .btn { flex-direction: column; gap: 2px; padding: 8px 10px; min-height: 58px; min-width: 0; white-space: normal; text-align: center; line-height: 1.25; }
.spin-actions .btn small { font-size: 11.5px; font-weight: 600; opacity: .85; }
.odds { display: grid; gap: 10px; }
.odds__row { display: grid; grid-template-columns: 1fr auto; gap: 6px 8px; align-items: center; font-size: 13px; }
.odds__row .bar { grid-column: 1 / -1; }
.prize-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.prize { padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, .22); border: 1px solid var(--line); min-width: 0; }
.prize b { font-variant-numeric: tabular-nums; display: block; }
.prize span { font-size: 12px; color: var(--muted); }
.feed { display: flex; flex-direction: column; gap: 6px; }
.feed__item { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 9px 12px; border-radius: 13px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); min-width: 0; }
.feed__item > span:first-of-type { overflow-wrap: anywhere; min-width: 0; flex: 1 1 auto; }
.feed__item em { margin-left: auto; font-style: normal; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.result { text-align: center; padding: 18px; border-radius: var(--r-xl); background: radial-gradient(300px 180px at 50% 0%, rgba(251, 191, 36, .22), transparent 70%), var(--card); border: 1px solid rgba(251, 191, 36, .3); }
.result__tier { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; }
.result__amt { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; margin: 6px 0 2px; }
.tier-common { color: var(--muted); }
.tier-rare { color: var(--cyan); }
.tier-premium { color: var(--gold); }

/* ── Kunlik kalit (kalendar) va vazifalar ───────────────────── */
.keybig {
  display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r-xl); min-width: 0;
  background: radial-gradient(340px 200px at 100% 0%, rgba(251, 191, 36, .2), transparent 65%), linear-gradient(160deg, #1d1638, #0d0917);
  border: 1px solid rgba(251, 191, 36, .28); box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
}
.keybig__top { display: flex; align-items: center; gap: 14px; }
.cal { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.cal__d {
  position: relative; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; font-size: 12.5px; font-weight: 800;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--faint); font-variant-numeric: tabular-nums;
}
.cal__d.is-done { background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .3); color: var(--ok); }
.cal__d.is-today, .cal__d.is-next { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 22px rgba(236, 72, 153, .28); }
.cal__d.is-ms::after { content: ""; position: absolute; right: 5px; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.legend { font-size: 12px; color: var(--muted); }
.task { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.task__top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.task__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.task__rew { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs {
  display: flex; gap: 4px; margin: 12px 0 6px; padding: 5px; overflow-x: auto; scrollbar-width: none;
  border-radius: 99px; background: var(--glass); border: 1px solid var(--glass-line);
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__btn {
  flex: 1 0 auto; min-height: 42px; padding: 0 16px; border-radius: 99px; border: 1.5px solid transparent;
  font-size: 13.5px; font-weight: 700; color: var(--muted); white-space: nowrap;
}

/* ── Obuna (paywall) ────────────────────────────────────────── */
.paywall {
  position: relative; overflow: hidden; padding: 22px 20px 20px; border-radius: var(--r-xl); text-align: center;
  background:
    radial-gradient(420px 260px at 50% 0%, rgba(236, 72, 153, .40), transparent 70%),
    radial-gradient(360px 240px at 0% 100%, rgba(56, 189, 248, .22), transparent 70%),
    linear-gradient(160deg, #1d1238, #0d0917);
  border: 1px solid rgba(177, 151, 255, .26); box-shadow: var(--glow);
}
.paywall__art {
  width: 96px; height: 96px; margin: 0 auto 14px; border-radius: 30px; display: grid; place-items: center;
  background: var(--grad); box-shadow: 0 16px 40px rgba(236, 72, 153, .35); color: #fff;
}
.paywall__art .ic { width: 46px; height: 46px; stroke-width: 1.5; }
.paywall h1 { font-size: 24px; }
.paywall p { margin-top: 6px; color: var(--muted); font-size: 14px; }
.perks { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; text-align: left; }
.perks li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.perks .ic { color: var(--ok); }
.plans { display: grid; gap: 10px; }
.plan {
  position: relative; padding: 16px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.plan--pro { border: 1px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; box-shadow: var(--glow); }
.plan__badge { position: absolute; top: -10px; right: 14px; }
.plan__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan__name { font-weight: 800; font-size: 18px; }
.plan__price { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.plan__price small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.plan__list { display: grid; gap: 7px; font-size: 13.5px; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.plan__list li { display: flex; align-items: center; gap: 8px; }
.plan__list .ic { color: var(--ok); width: 16px; height: 16px; }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pack { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.pack b { font-size: 16px; font-variant-numeric: tabular-nums; }
.pack .ic { color: var(--gold); }

/* ── Profil ─────────────────────────────────────────────────── */
.profile-head { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r-xl); background: linear-gradient(135deg, #1d1238, #100b1f); border: 1px solid rgba(177, 151, 255, .22); box-shadow: var(--glow); }
.avatar {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center;
  font-size: 24px; font-weight: 800; color: #fff; background: var(--grad); box-shadow: 0 10px 26px rgba(236, 72, 153, .3);
}
.profile-head__t { min-width: 0; flex: 1 1 auto; }
.profile-head__t h1 { font-size: 20px; overflow-wrap: anywhere; }
.achv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.achv { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 16px; text-align: center; font-size: 11.5px; background: var(--card); border: 1px solid var(--line); min-width: 0; color: var(--muted); line-height: 1.25; }
.achv .ic { width: 24px; height: 24px; }
.achv--on { color: #fff; border-color: rgba(177, 151, 255, .4); background: var(--grad-soft); }
.achv--on .ic { color: var(--gold); }
.achv--off { opacity: .55; }
.inv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.inv { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: 16px; text-align: center; font-size: 12px; background: var(--card); border: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.inv .ic { color: var(--cyan); width: 26px; height: 26px; }
.members { display: flex; flex-direction: column; gap: 8px; }
.member { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); min-width: 0; }
.member__name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-weight: 600; font-size: 14px; }
.switch { position: relative; width: 48px; height: 28px; border-radius: 99px; background: rgba(255, 255, 255, .12); flex: 0 0 auto; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.is-on { background: var(--grad); }
.switch.is-on::after { transform: translateX(20px); }
.lang-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lang-btn { min-height: 42px; border-radius: 14px; font-weight: 700; font-size: 14px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.lang-btn.is-on { color: #fff; border-color: rgba(177, 151, 255, .5); background: var(--grad-soft); }
.section-label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 800; color: var(--faint); margin: 20px 0 8px; }
.role-team { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin: 14px 0 8px; }
.team-town { color: var(--ok); }
.team-mafia { color: var(--err); }
.team-neutral { color: var(--cyan); }
.team-solo, .team-suicid { color: var(--muted); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 14px; }
.kv span:nth-child(odd) { color: var(--muted); }
.kv span:nth-child(even) { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat-grid .stat__v { font-size: 18px; }
.ladder { display: flex; flex-direction: column; gap: 6px; }
.ladder .row { padding: 10px 12px; }

@media (min-width: 560px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .achv-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .inv-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  .brand { width: 52px; padding: 0; justify-content: center; }
  .brand__t { display: none; }
}
@media (max-width: 340px) {
  .glitch { font-size: 30px; }
  .ggrid { gap: 8px; }
  .gcard { padding: 8px 8px 10px; }
  .gcard__p { font-size: 17px; }
  .pill { padding: 0 7px; font-size: 12px; }
  .hero__stats, .stat-grid { gap: 6px; }
  .spin-actions { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
