:root {
  --bg: #0a0b1e;
  --card: rgba(255, 255, 255, .055);
  --card-h: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .1);
  --text: #eef0ff;
  --muted: #9aa0c8;
  --acc: #7c5cff;
  --acc2: #22d3ee;
  --ok: #2ee59d;
  --bad: #ff4d6d;
  --gold: #ffc94d;
  --r: 20px;
  --grad: linear-gradient(135deg, #7c5cff, #22d3ee);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { min-height: 100%; }
body {
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
button:focus-visible { outline: 2px solid var(--acc2); outline-offset: 3px; }

/* ---------- Fon ---------- */
.bg {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(1100px 800px at 5% -10%, #2a1f6b 0, transparent 60%),
    radial-gradient(900px 700px at 110% 110%, #0b4a5e 0, transparent 55%),
    var(--bg);
}
.bg i {
  position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%;
  left: -12vmax; top: -12vmax;
  background: radial-gradient(circle, rgba(124, 92, 255, .32), transparent 65%);
  animation: float 18s ease-in-out infinite alternate;
  will-change: transform;
}
.bg i:nth-child(2) { left: auto; right: -14vmax; top: 30%; background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 65%); animation-duration: 23s; }
.bg i:nth-child(3) { left: 25%; top: auto; bottom: -24vmax; background: radial-gradient(circle, rgba(255, 77, 109, .16), transparent 65%); animation-duration: 27s; }
@keyframes float { to { transform: translate(8vmax, 6vmax) scale(1.15); } }

#app { max-width: 1000px; margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 20px 40px; }
.screen { animation: in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Umumiy ---------- */
.glass { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 14px; font-weight: 700; font-size: 16px;
  background: var(--card-h); border: 1px solid var(--line);
  transition: transform .15s, background .2s, box-shadow .2s;
}
.btn:hover { background: rgba(255, 255, 255, .14); }
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--grad); border: 0; color: #fff; box-shadow: 0 10px 30px -10px rgba(124, 92, 255, .8); }
.btn.primary:hover { box-shadow: 0 14px 36px -10px rgba(34, 211, 238, .8); }
.icon-btn {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); font-size: 20px; transition: background .2s, transform .15s;
}
.icon-btn:hover { background: var(--card-h); }
.icon-btn:active { transform: scale(.92); }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Bosh sahifa ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 14px; background: var(--grad);
  display: grid; place-items: center; font-weight: 900; font-size: 18px; color: #fff;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, .9);
}
.brand h1 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; line-height: 1; }
.brand small { color: var(--muted); font-size: 13px; }

.player { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 20px; margin-bottom: 18px; }
.lvl-badge {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center;
  background: conic-gradient(from 200deg, #7c5cff, #22d3ee, #7c5cff); font-weight: 900; font-size: 22px; position: relative;
}
.lvl-badge::after { content: ""; position: absolute; inset: 3px; border-radius: 15px; background: #15173a; z-index: 0; }
.lvl-badge span { position: relative; z-index: 1; }
.player h2 { font-size: 18px; font-weight: 700; }
.xpbar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: 8px 0 4px; }
.xpbar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .6s; }
.player .xp-txt { font-size: 12px; color: var(--muted); }
.stats-mini { display: flex; gap: 10px; }
.chip { padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 14px; font-weight: 600; text-align: center; white-space: nowrap; }
.chip b { display: block; font-size: 18px; }
.chip small { color: var(--muted); font-weight: 500; font-size: 11px; }

.heroes { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; margin-bottom: 26px; }
.hero {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 24px; border-radius: 24px; text-align: left; isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .14); transition: transform .2s, box-shadow .2s;
}
.hero:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(124, 92, 255, .8); }
.hero:active { transform: scale(.98); }
.camp-hero { background: linear-gradient(125deg, rgba(124, 92, 255, .45), rgba(255, 77, 109, .22)); }
.iq-hero { background: linear-gradient(125deg, rgba(34, 211, 238, .25), rgba(255, 201, 77, .14)); }
.hero::before { position: absolute; right: -6px; bottom: -40px; font-size: 150px; opacity: .1; z-index: -1; line-height: 1; }
.camp-hero::before { content: "🗺️"; }
.iq-hero::before { content: "IQ"; font-weight: 900; letter-spacing: -8px; opacity: .07; font-size: 170px; bottom: -46px; }
.hero-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: #d8dcff; opacity: .85; }
.hero h2 { font-size: 26px; font-weight: 800; }
.hero p { color: #c9cdf2; font-size: 14.5px; line-height: 1.45; flex: 1; }
.hero .btn { margin-top: 6px; }
.camp-prog { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 13px; font-weight: 700; color: var(--gold); }
.camp-prog .xpbar { flex: 1; margin: 0; }
.camp-prog .xpbar i { background: linear-gradient(90deg, #ffc94d, #ff8c42); }
.hero .best-iq { font-size: 13px; color: var(--muted); }
.hero .best-iq b { color: var(--gold); }

/* ---------- Bugungi mashg'ulot ---------- */
button.chip { border: 0; cursor: pointer; transition: background .2s; }
button.chip:hover { background: rgba(255, 255, 255, .11); }
.chip.warn b { color: #ffb86b; }
.chip.warn small { color: #ffb86b; font-weight: 700; }
.wk-card {
  width: 100%; display: flex; align-items: center; gap: 18px; padding: 20px 22px; margin-bottom: 18px; border-radius: 24px; text-align: left;
  background: linear-gradient(120deg, rgba(14, 165, 198, .32), rgba(124, 92, 255, .2)); border: 1px solid rgba(14, 165, 198, .5);
  transition: transform .2s, box-shadow .2s;
}
.wk-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -20px rgba(14, 165, 198, .9); }
.wk-card:active { transform: scale(.985); }
.wk-card.done { background: linear-gradient(120deg, rgba(46, 229, 157, .16), rgba(255, 255, 255, .03)); border-color: rgba(46, 229, 157, .4); }
.wk-ico { width: 62px; height: 62px; flex-shrink: 0; display: grid; place-items: center; font-size: 32px; border-radius: 18px; background: rgba(0, 0, 0, .22); }
.wk-body { flex: 1; min-width: 0; }
.wk-body h2 { font-size: 21px; font-weight: 800; }
.wk-body p { color: #c9cdf2; font-size: 14px; margin: 2px 0 10px; }
.wk-plan { display: flex; flex-wrap: wrap; gap: 6px; }
.wk-plan span { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: rgba(0, 0, 0, .22); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.wk-plan span.on { background: rgba(46, 229, 157, .16); border-color: rgba(46, 229, 157, .5); color: var(--ok); }
.wk-card > .btn { flex-shrink: 0; }

.intro.wk { max-width: 560px; }
.wk-steps { display: grid; gap: 10px; margin: 22px 0; text-align: left; }
.wk-step { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.wk-step .ico { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; font-size: 22px; border-radius: 13px; background: color-mix(in srgb, var(--c) 22%, transparent); }
.wk-step.cur { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.wk-step.done { opacity: .75; }
.wk-step.done .ico { background: rgba(46, 229, 157, .2); color: var(--ok); font-weight: 900; }
.wk-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.wk-txt small { color: var(--muted); font-size: 13px; }
.wk-step .lv { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--muted); }
.tag { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; padding: 2px 7px; border-radius: 6px; background: rgba(255, 184, 107, .18); color: #ffb86b; vertical-align: 2px; }
.wk-dots { display: flex; gap: 8px; justify-content: center; margin: 4px 0 12px; }
.wk-dots i { width: 34px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .14); }
.wk-dots i.on { background: var(--ok); }
.sk-change { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); margin-bottom: 4px; }
.sk-change b { font-size: 20px; font-variant-numeric: tabular-nums; }
.sk-change.big b { font-size: 26px; }
.wk-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.wk-sum div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: 14px; background: rgba(255, 255, 255, .05); border-top: 3px solid var(--c); }
.wk-sum span { font-size: 22px; }
.wk-sum b { font-size: 20px; }
.wk-sum small { color: var(--muted); font-size: 12px; }
.delta { font-size: 13px; font-weight: 800; padding: 3px 8px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--ok); background: rgba(46, 229, 157, .12); }
.delta.down { color: #ffb86b; background: rgba(255, 184, 107, .1); }
.delta.zero { color: var(--muted); background: rgba(255, 255, 255, .06); }

/* ---------- Miya profili ---------- */
.profile .topbar { margin-bottom: 16px; }
.pf-hero { display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center; padding: 22px 26px; margin-bottom: 14px; }
.pf-idx { font-size: 72px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.pf-d { margin-top: 6px; font-size: 13px; }
.pf-hero p { font-size: 14px; line-height: 1.5; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.pf-card { padding: 18px 20px; }
.glass.pf-card.chart-wrap { margin-bottom: 14px; }
.pf-grid .chart-wrap { margin-bottom: 0 !important; }
.pf-h { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.pf-h span { color: var(--text); }
.radar { width: 100%; max-width: 380px; display: block; margin: 0 auto; overflow: visible; }
.rd-grid { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1; }
.rd-lbl { fill: #c9cdf2; font-size: 12.5px; font-weight: 600; }
.rd-val { fill: var(--text); font-size: 14px; font-weight: 800; }
.legend { display: flex; gap: 18px; justify-content: center; font-size: 13px; color: var(--muted); margin-top: 6px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 18px; height: 4px; border-radius: 2px; }
.legend i.dash { background: repeating-linear-gradient(90deg, #9aa0c8 0 5px, transparent 5px 9px); }
.sk-row { display: grid; grid-template-columns: 178px 1fr 38px 56px; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.sk-row:last-child { border-bottom: 0; }
.sk-name { font-weight: 700; display: flex; gap: 8px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.sk-bar i { display: block; height: 100%; border-radius: 99px; background: #0ea5c6; transition: width .6s; }
.sk-val { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.sk-d { text-align: right; }
.sk-row small { grid-column: 1 / -1; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.line { width: 100%; display: block; }
.ln-grid { stroke: rgba(255, 255, 255, .08); stroke-width: 1; }
.ln-axis { fill: var(--muted); font-size: 11px; }
.ln-cross { stroke: rgba(255, 255, 255, .35); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.chart-empty { padding: 34px 10px; text-align: center; color: var(--muted); font-size: 14px; border: 1px dashed var(--line); border-radius: 14px; }
.pf-mini b { font-size: 19px; }
.pf-mini .btn { margin-top: 6px; }
.btn.sm { padding: 10px 16px; font-size: 14px; }
.tip { position: fixed; z-index: 50; pointer-events: none; padding: 7px 11px; border-radius: 10px; background: #23265a; border: 1px solid rgba(255, 255, 255, .15); font-size: 13px; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); white-space: nowrap; display: none; }

/* ---------- Reyting ---------- */
.social { grid-template-columns: repeat(3, 1fr); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin-bottom: 8px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.tab { padding: 11px 8px; border-radius: 10px; font-weight: 700; font-size: 15px; color: var(--muted); transition: background .2s, color .2s; }
.tab:hover { color: var(--text); }
.tab.on { background: rgba(124, 92, 255, .32); color: var(--text); }
.tabs.small .tab { padding: 8px; font-size: 13.5px; }
.board-hint { font-size: 13px; margin: 6px 4px 12px; }
.board-list { padding: 6px 8px; margin-bottom: 14px; }
.b-row { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px; padding: 11px 10px; border-bottom: 1px solid var(--line); }
.b-row:last-child { border-bottom: 0; }
.b-row.me { background: rgba(255, 201, 77, .12); border-radius: 12px; border-bottom-color: transparent; }
.b-rank { font-weight: 800; font-size: 17px; text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); }
.b-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-name small { color: var(--gold); font-weight: 700; }
.b-score { font-weight: 800; font-variant-numeric: tabular-nums; }
.b-gap { text-align: center; color: var(--muted); padding: 2px; }
.board-empty { padding: 34px 10px; text-align: center; color: var(--muted); }
.friend-box { padding: 16px 18px; display: grid; gap: 12px; }
.friend-box > div:first-child { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.friend-box .code { font-size: 22px; letter-spacing: 3px; font-variant-numeric: tabular-nums; margin-left: 4px; }
.add-friend { display: flex; gap: 8px; }
.add-friend input { flex: 1; min-width: 0; font: inherit; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text); padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); outline: none; user-select: text; }
.add-friend input:focus { border-color: var(--acc); }
.friend-msg { font-size: 13px; min-height: 18px; }
.join-list { list-style: none; text-align: left; display: grid; gap: 8px; margin: 18px 0 4px; }
.join-list li { font-size: 13.5px; line-height: 1.45; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.net-rank { display: none; margin: 4px auto 14px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 201, 77, .1); border: 1px solid rgba(255, 201, 77, .35); font-size: 14px; max-width: 420px; }
.net-rank.on { display: block; animation: pop .3s; }
.spin { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); border-top-color: var(--acc2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.sm.danger { padding: 10px 16px; }
.secret-box { padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px dashed var(--gold); font: 700 18px/1.4 ui-monospace, Consolas, monospace; letter-spacing: 1px; text-align: center; user-select: all; word-break: break-all; }

/* ---------- Yangilanish ---------- */
.upd-wall { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(5, 6, 20, .88); backdrop-filter: blur(10px); animation: fade .25s; }
.sheet.upd { text-align: center; max-width: 420px; }
.sheet.upd .big-ico { font-size: 52px; margin-bottom: 8px; }
.sheet.upd h2 { justify-content: center; margin-bottom: 10px; }
.sheet.upd p { line-height: 1.5; margin-bottom: 22px; }
.upd-banner {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 45; display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 18px; border-radius: 16px; background: #1f2250; border: 1px solid var(--acc); box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  font-weight: 700; white-space: nowrap; animation: pop .3s;
}
.upd-banner .icon-btn { width: 36px; height: 36px; font-size: 14px; }

/* ---------- Tanishuv ---------- */
.intro.onb { max-width: 500px; }
.intro.onb .nick { margin: 20px 0 0; }
.age-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.age-opt { padding: 12px 6px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-weight: 700; font-size: 15px; color: var(--text); transition: background .15s, border-color .15s, transform .12s; }
.age-opt:hover { background: rgba(255, 255, 255, .1); }
.age-opt:active { transform: scale(.96); }
.age-opt.on { background: rgba(124, 92, 255, .3); border-color: var(--acc); }
.age-note { min-height: 20px; margin: 10px 0 0; font-size: 13px; color: var(--acc2); }
.privacy-note { margin: 10px 0 22px; padding: 10px 14px; border-radius: 12px; background: rgba(46, 229, 157, .08); color: #a8f0cf; font-size: 13px; line-height: 1.45; }
.player h2 .ttl { font-weight: 600; color: var(--muted); font-size: 15px; }

/* ---------- Yutuqlar ---------- */
.r-c { --rc: #b8bde0; }
.r-r { --rc: #3fa9ff; }
.r-e { --rc: #ffc94d; }
.ach-toast {
  position: fixed; top: 18px; left: 50%; z-index: 60; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; min-width: min(380px, calc(100vw - 32px)); padding: 12px 18px 12px 12px;
  border-radius: 18px; text-align: left; cursor: pointer;
  background: linear-gradient(120deg, #1d2050, #262a66); border: 1px solid var(--rc);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .3), 0 14px 40px rgba(0, 0, 0, .5), 0 0 30px -6px var(--rc);
  animation: achIn .5s cubic-bezier(.2, .9, .3, 1.3);
}
.ach-toast.out { animation: achOut .35s ease-in forwards; }
@keyframes achIn { from { transform: translate(-50%, -120%) scale(.9); opacity: 0; } }
@keyframes achOut { to { transform: translate(-50%, -120%); opacity: 0; } }
.ach-toast .ai { width: 50px; height: 50px; flex-shrink: 0; display: grid; place-items: center; font-size: 28px; border-radius: 14px;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--rc) 45%, transparent), rgba(0, 0, 0, .25)); animation: achSpin .7s .15s cubic-bezier(.2, .9, .3, 1.4) backwards; }
@keyframes achSpin { from { transform: scale(0) rotate(-180deg); } }
.ach-toast .at { flex: 1; display: flex; flex-direction: column; }
.ach-toast small { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--rc); }
.ach-toast b { font-size: 17px; }
.ach-toast .ax { font-weight: 800; font-size: 14px; color: #c8baff; white-space: nowrap; }

.ach-sum { display: flex; align-items: center; gap: 14px; padding: 16px 20px; margin-bottom: 16px; font-weight: 700; font-size: 14px; color: var(--muted); }
.ach-sum .xpbar { flex: 1; margin: 0; height: 10px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.ach-card { position: relative; display: flex; gap: 14px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.ach-card.got { border-color: color-mix(in srgb, var(--rc) 55%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--rc) 12%, transparent), var(--card)); }
.ach-ico { width: 54px; height: 54px; flex-shrink: 0; display: grid; place-items: center; font-size: 28px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.ach-card:not(.got) .ach-ico { filter: grayscale(1); opacity: .45; }
.ach-card.got .ach-ico { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--rc) 40%, transparent), rgba(0, 0, 0, .2)); }
.ach-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding-right: 70px; }
.ach-txt b { font-size: 15.5px; }
.ach-card:not(.got) .ach-txt b { color: #c3c7ee; }
.ach-txt small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.ach-prog { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 6px; }
.ach-prog i { display: block; height: 100%; border-radius: 99px; background: #0ea5c6; }
.ach-num { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ach-date { font-size: 12px; font-weight: 700; color: var(--ok); margin-top: 4px; }
.ach-r { position: absolute; top: 14px; right: 14px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--rc); }

/* ---------- Do'stlar bilan ---------- */
.social { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.soc {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r); text-align: left;
  background: linear-gradient(120deg, color-mix(in srgb, var(--c) 22%, transparent), rgba(255, 255, 255, .03));
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); transition: transform .2s, background .2s;
}
.soc:hover { transform: translateY(-3px); }
.soc:active { transform: scale(.98); }
.soc .ico { width: 54px; height: 54px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center; font-size: 28px; background: rgba(0, 0, 0, .2); }
.soc h3 { font-size: 17px; font-weight: 800; margin-bottom: 3px; }
.soc p { font-size: 13.5px; color: #c9cdf2; }
.soc small { display: block; margin-top: 4px; font-size: 12px; color: var(--gold); font-weight: 700; }
.soc .done { color: var(--ok); font-weight: 700; }
.soc .dot { position: absolute; top: 14px; right: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 0 var(--c); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.nick { display: flex; flex-direction: column; gap: 6px; text-align: left; margin: -6px 0 20px; font-size: 13px; font-weight: 600; color: var(--muted); }
.nick input {
  font: inherit; font-size: 17px; font-weight: 700; color: var(--text); padding: 13px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); outline: none; user-select: text; -webkit-user-select: text;
}
.nick input:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(124, 92, 255, .25); }

.r-score .of { font-size: .45em; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.marks { font-size: 22px; letter-spacing: 3px; margin: 6px 0 4px; }
.vs-banner { font-size: 26px; font-weight: 900; margin: 6px 0 16px; }
.vs-banner.win { color: var(--gold); text-shadow: 0 0 24px rgba(255, 201, 77, .5); }
.vs-banner.lose { color: #ff8c9f; }
.vs-banner.draw { color: var(--acc2); }
.duel-cmp { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-bottom: 8px; }
.duel-cmp .pl { padding: 14px 8px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.duel-cmp .pl.best { border-color: var(--gold); background: rgba(255, 201, 77, .1); }
.duel-cmp small { color: var(--muted); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duel-cmp b { font-size: 34px; font-weight: 900; }
.duel-cmp span { font-size: 13px; color: var(--muted); }
.duel-cmp .mk { font-size: 10px; letter-spacing: 1px; margin-top: 6px; }
.vs-x { font-weight: 900; color: var(--bad); font-size: 18px; }
.next-in { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.next-in b { color: var(--text); font-variant-numeric: tabular-nums; }
.share-hint { font-size: 13.5px; margin: -4px 0 18px; line-height: 1.45; }
.r-stats.two { grid-template-columns: 1fr 1fr; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 40; padding: 12px 20px; border-radius: 14px;
  background: #1f2250; border: 1px solid var(--acc); font-weight: 600; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); animation: pop .25s;
}
.share-box { width: 100%; min-height: 150px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--text); font: 14px/1.5 inherit; font-family: inherit; resize: vertical; user-select: text; }

/* ---------- Xarita ---------- */
.map .topbar { position: sticky; top: 0; z-index: 5; padding: 10px 0; margin: -10px 0 12px; background: linear-gradient(var(--bg) 70%, transparent); }
.map-title { font-size: 22px; font-weight: 800; }
.map-region { margin-bottom: 18px; }
.region-head {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(120deg, color-mix(in srgb, var(--c) 32%, transparent), rgba(255, 255, 255, .03));
}
.region-head .ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 26px; background: rgba(0, 0, 0, .2); flex-shrink: 0; }
.region-head h3 { font-size: 18px; font-weight: 800; }
.region-head small { color: #c3c7ee; font-size: 13px; }
.region-head .r-st { margin-left: auto; font-weight: 800; color: var(--gold); white-space: nowrap; font-size: 14px; }
.map-region.locked .region-head { filter: grayscale(.8); opacity: .55; }
.path { position: relative; display: flex; flex-direction: column; align-items: center; gap: 34px; padding: 30px 0 40px; }
.path::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; transform: translateX(-50%); border-radius: 2px;
  background: repeating-linear-gradient(to bottom, color-mix(in srgb, var(--c) 45%, transparent) 0 10px, transparent 10px 22px);
}
.node {
  position: relative; left: calc(var(--x) * 1px); width: 70px; height: 70px; border-radius: 50%;
  display: grid; place-items: center; font-size: 24px; font-weight: 900; color: #fff;
  background: radial-gradient(circle at 35% 28%, color-mix(in srgb, var(--c) 60%, #fff), var(--c) 70%);
  box-shadow: 0 6px 0 color-mix(in srgb, var(--c) 50%, #000), 0 12px 26px -8px var(--c);
  transition: transform .12s, box-shadow .12s, filter .2s;
}
.node:hover { filter: brightness(1.12); }
.node:active { transform: translateY(4px); box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 50%, #000); }
.node.boss { width: 90px; height: 90px; font-size: 38px; }
.node.locked { background: #23254a; box-shadow: 0 6px 0 #15162f; color: var(--muted); font-size: 20px; cursor: default; filter: none; }
.node.current::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid var(--c); animation: pulse 1.5s infinite; }
@keyframes pulse { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.node .st, .stars-inline { font-size: 15px; letter-spacing: 1px; color: var(--gold); white-space: nowrap; text-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.node .st { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); }
.node .st .e, .stars-inline .e { color: rgba(255, 255, 255, .2); }

.section-title { font-size: 15px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; margin: 0 4px 12px; }
.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; }
.mode {
  text-align: left; padding: 18px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  position: relative; overflow: hidden; transition: transform .2s, background .2s, border-color .2s;
}
.mode::after {
  content: ""; position: absolute; width: 120px; height: 120px; right: -40px; top: -40px; border-radius: 50%;
  background: var(--c); opacity: .18; filter: blur(4px); transition: opacity .2s, transform .3s;
}
.mode:hover { transform: translateY(-4px); background: var(--card-h); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.mode:hover::after { opacity: .3; transform: scale(1.2); }
.mode:active { transform: scale(.97); }
.mode .ico { font-size: 30px; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px; background: color-mix(in srgb, var(--c) 22%, transparent); margin-bottom: 12px; }
.mode h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.mode p { font-size: 13px; color: var(--muted); line-height: 1.4; min-height: 36px; }
.mode .best { margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--muted); }
.mode .best b { color: var(--text); }
.foot { text-align: center; margin-top: 30px; font-size: 12px; color: var(--muted); }
.foot a { color: var(--muted); }

/* ---------- Kirish ekrani ---------- */
.intro { max-width: 520px; margin: 4vh auto 0; text-align: center; padding: 34px 26px; }
.intro .big-ico { font-size: 54px; width: 96px; height: 96px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 28px; background: color-mix(in srgb, var(--c) 25%, transparent); }
.intro h2 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.intro ul { text-align: left; list-style: none; margin: 22px 0; display: grid; gap: 10px; }
.intro li { display: flex; gap: 10px; padding: 12px 14px; background: rgba(255, 255, 255, .04); border-radius: 12px; font-size: 15px; line-height: 1.4; }
.intro .actions { display: flex; gap: 10px; justify-content: center; }
.back-row { margin-bottom: 8px; }

/* ---------- O'yin ---------- */
.game { max-width: 640px; margin: 0 auto; position: relative; }
.g-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.g-title { flex: 1; font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.g-score { font-size: 26px; font-weight: 900; min-width: 60px; text-align: right; font-variant-numeric: tabular-nums; }
.timebar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.timebar i { display: block; height: 100%; background: var(--grad); transform-origin: left; will-change: transform; }
.timebar.warn i { background: linear-gradient(90deg, #ff4d6d, #ff8c42); }
.timebar.hidden { visibility: hidden; }
.g-meta { display: flex; justify-content: space-between; align-items: center; margin: 10px 2px 18px; font-size: 14px; color: var(--muted); font-weight: 600; min-height: 22px; }
.g-meta .time { font-variant-numeric: tabular-nums; color: var(--text); font-size: 16px; }
.g-meta .time.warn { color: var(--bad); }
.combo { color: var(--gold); font-weight: 800; }
.g-body { min-height: 380px; position: relative; }

.q-hint { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 12px; min-height: 22px; }
.q-hint b { color: var(--text); }
.q-card {
  min-height: 150px; display: grid; place-items: center; text-align: center; padding: 24px; margin-bottom: 16px;
  border-radius: 24px; background: var(--card); border: 1px solid var(--line);
  font-size: clamp(28px, 6vw, 42px); font-weight: 800; letter-spacing: .5px; line-height: 1.35;
  font-variant-numeric: tabular-nums; animation: pop .3s cubic-bezier(.2, .9, .3, 1.3);
}
.q-card.small { font-size: clamp(22px, 4.5vw, 28px); }
.q-card.ok { border-color: var(--ok); }
.q-card.shake { animation: shake .4s; border-color: var(--bad); }
.stroop { font-size: clamp(38px, 9vw, 58px); letter-spacing: 2px; }
@keyframes pop { from { transform: scale(.92); opacity: 0; } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt {
  position: relative; padding: 20px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  font-size: 20px; font-weight: 700; transition: transform .12s, background .2s, border-color .2s;
  animation: in .3s backwards;
}
.opt:nth-child(2) { animation-delay: .04s; } .opt:nth-child(3) { animation-delay: .08s; } .opt:nth-child(4) { animation-delay: .12s; }
.opt:hover { background: var(--card-h); border-color: rgba(255, 255, 255, .22); }
.opt:active { transform: scale(.96); }
.opt kbd { position: absolute; left: 10px; top: 8px; font: 600 11px inherit; font-family: inherit; color: var(--muted); opacity: .7; }
.q-card.txt { font-size: clamp(17px, 3.6vw, 21px); font-weight: 600; text-align: left; place-items: stretch; letter-spacing: 0; line-height: 1.5; }
.facts { display: grid; gap: 6px; }
.facts div { padding: 8px 12px; background: rgba(255, 255, 255, .05); border-radius: 10px; }
.ask { margin-top: 12px; font-weight: 800; color: var(--acc2); }
.q-card.txt .ask { text-align: center; }
.eq { display: grid; gap: 6px; font-size: clamp(24px, 5vw, 32px); letter-spacing: 1px; }
.eq .ask { margin-top: 6px; }
.fig { width: min(150px, 40vw); aspect-ratio: 1; background: rgba(255, 255, 255, .045); border-radius: 16px; display: grid; place-items: center; }
.fig svg { width: 90%; height: 90%; }
.vs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; width: min(100%, 460px); }
.vs-cell { aspect-ratio: 1; border-radius: 12px; background: rgba(255, 255, 255, .045); display: grid; place-items: center; }
.vs-cell svg { width: 88%; height: 88%; }
.vs-cell.q { border: 2px dashed var(--acc); font-size: 30px; color: var(--acc2); background: rgba(124, 92, 255, .08); }
.spd { font-variant-numeric: tabular-nums; color: var(--muted); transition: color .2s; }
.spd.fast { color: var(--ok); }
.spd.slow { color: #ff8c42; }
.opts.four { grid-template-columns: repeat(4, 1fr); }
.opt.svg { padding: 10px 6px; }
.opt.svg svg { width: 100%; max-width: 84px; aspect-ratio: 1; display: block; margin: 0 auto; }
.q-card.mx-card { padding: 14px; min-height: 0; }
.mx { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(100%, 300px); }
.mx-cell { aspect-ratio: 1; border-radius: 12px; background: rgba(255, 255, 255, .045); display: grid; place-items: center; }
.mx-cell svg { width: 88%; height: 88%; }
.mx-cell.q { border: 2px dashed var(--acc); font-size: 36px; color: var(--acc2); background: rgba(124, 92, 255, .08); }
.opt.right { background: rgba(46, 229, 157, .18); border-color: var(--ok); }
.opt.wrong { background: rgba(255, 77, 109, .18); border-color: var(--bad); animation: shake .4s; }

.odd-grid, .mem-grid {
  display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 8px;
  width: min(100%, 440px); aspect-ratio: 1; margin: 0 auto;
}
.tile { border-radius: 12px; transition: transform .12s; animation: pop .25s backwards; }
.tile:hover { transform: scale(.96); }
.tile.found { outline: 3px solid #fff; transform: scale(1.06); }
.odd-grid.shake { animation: shake .4s; }

.cell { border-radius: 12px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); transition: background .2s, transform .12s, box-shadow .2s; }
.cell:active { transform: scale(.94); }
.cell.on { background: var(--grad); box-shadow: 0 0 22px rgba(124, 92, 255, .7); }
.cell.hit { background: var(--ok); box-shadow: 0 0 18px rgba(46, 229, 157, .6); }
.cell.miss { background: var(--bad); animation: shake .35s; }
.cell.reveal { background: rgba(124, 92, 255, .45); }

.countdown { position: absolute; inset: 0; display: grid; place-items: center; font-size: 120px; font-weight: 900; }
.countdown span { animation: cd .6s ease-out both; }
@keyframes cd { from { transform: scale(1.8); opacity: 0; } 40% { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.7); } }

.pop { position: absolute; left: 50%; top: 30%; transform: translateX(-50%); font-size: 28px; font-weight: 900; color: var(--ok); pointer-events: none; animation: rise .8s ease-out forwards; z-index: 5; text-shadow: 0 4px 20px rgba(0, 0, 0, .5); }
.pop.bad { color: var(--bad); }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 10px) scale(.8); } 20% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -60px) scale(1.1); } }

/* ---------- Natija ---------- */
.result { max-width: 520px; margin: 3vh auto 0; text-align: center; padding: 32px 24px; }
.result .r-ico { font-size: 50px; margin-bottom: 4px; }
.result .r-label { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; font-size: 13px; }
.result .r-score { font-size: 84px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.result .r-desc { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.r-title { font-size: 28px; font-weight: 800; margin-top: 4px; }
.r-stars { display: flex; justify-content: center; gap: 8px; font-size: 58px; margin: 6px 0; line-height: 1.1; }
.r-stars span { color: rgba(255, 255, 255, .13); }
.r-stars span.on { color: var(--gold); text-shadow: 0 0 26px rgba(255, 201, 77, .65); animation: starIn .55s cubic-bezier(.2, .9, .3, 1.4) backwards; }
.r-stars span:nth-child(2) { animation-delay: .25s; transform: translateY(-10px); }
.r-stars span:nth-child(3) { animation-delay: .5s; }
@keyframes starIn { from { transform: scale(0) rotate(-120deg); opacity: 0; } }
.badges { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 14px 0; }
.badge { padding: 7px 14px; border-radius: 99px; font-weight: 700; font-size: 14px; background: rgba(255, 201, 77, .15); color: var(--gold); border: 1px solid rgba(255, 201, 77, .4); animation: pop .4s .3s backwards; }
.badge.lv { background: rgba(124, 92, 255, .18); color: #c8baff; border-color: rgba(124, 92, 255, .5); }
.r-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 22px; }
.r-stats div { padding: 12px 6px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.r-stats div.sp { background: rgba(34, 211, 238, .08); }
.badge.sp { background: rgba(34, 211, 238, .14); color: #8eeaff; border-color: rgba(34, 211, 238, .45); }
.r-stats b { display: block; font-size: 22px; }
.r-stats small { color: var(--muted); font-size: 12px; }
.result .actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.disclaimer { font-size: 12px; color: var(--muted); margin-top: 16px; }

.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 20; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 105vh) rotate(var(--r)); } }

/* ---------- Sozlamalar ---------- */
.sheet-wrap { position: fixed; inset: 0; background: rgba(5, 6, 20, .6); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 30; animation: fade .2s; padding: 20px; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: min(420px, 100%); padding: 24px; background: #15173a; border: 1px solid var(--line); border-radius: 24px; animation: pop .25s; }
.sheet h2 { font-size: 22px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; }
.row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); gap: 12px; }
.row:last-of-type { border-bottom: 0; }
.switch { width: 52px; height: 30px; border-radius: 99px; background: rgba(255, 255, 255, .15); position: relative; transition: background .2s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on { background: var(--acc); }
.switch.on::after { transform: translateX(22px); }
.range {
  -webkit-appearance: none; appearance: none; width: 150px; height: 8px; border-radius: 99px; cursor: pointer; outline: none;
  background: linear-gradient(90deg, var(--acc) 0, var(--acc2) var(--p, 80%), rgba(255, 255, 255, .15) var(--p, 80%));
}
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); transition: transform .15s; }
.range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; }
.range:focus-visible { box-shadow: 0 0 0 3px rgba(34, 211, 238, .4); }
.btn.danger { color: var(--bad); padding: 10px 16px; font-size: 14px; }
.btn.danger.armed { background: var(--bad); color: #fff; }
.about { font-size: 13px; color: var(--muted); margin-top: 14px; line-height: 1.5; }
.row.col { flex-direction: column; align-items: stretch; }
.lang-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lang-opt { padding: 10px 6px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.lang-opt.on, .lang-big.on { background: rgba(124, 92, 255, .3); border-color: var(--acc); }
.sheet h2.center { justify-content: center; text-align: center; font-size: 19px; line-height: 1.4; }
.lang-list { display: grid; gap: 10px; }
.lang-big { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); transition: background .2s, transform .12s; }
.lang-big:hover { background: rgba(255, 255, 255, .1); }
.lang-big:active { transform: scale(.98); }
.lang-big b { font-size: 18px; }
.lang-big span { font-size: 13px; color: var(--muted); }
.top-actions { display: flex; gap: 8px; }
.lang-btn { font-size: 13px; font-weight: 800; letter-spacing: .5px; }

/* ---------- Moslashuvchanlik ---------- */
@media (max-width: 640px) {
  #app { padding: 16px 14px 30px; }
  .player { grid-template-columns: auto 1fr; }
  .stats-mini { grid-column: 1 / -1; justify-content: stretch; }
  .stats-mini .chip { flex: 1; }
  .heroes, .social, .pf-grid { grid-template-columns: 1fr; }
  .b-row { grid-template-columns: 40px 1fr auto; padding: 10px 6px; }
  .wk-card { flex-wrap: wrap; padding: 18px; }
  .wk-card > .btn { width: 100%; }
  .pf-hero { grid-template-columns: 1fr; gap: 10px; }
  .sk-row { grid-template-columns: 1fr 70px 34px 50px; }
  .stats-mini .chip small { font-size: 10px; }
  .stats-mini { gap: 6px; }
  .stats-mini .chip { padding: 8px 4px; }
  .ach-grid { grid-template-columns: 1fr; }
  .duel-cmp b { font-size: 28px; }
  .hero { padding: 20px; }
  .hero .btn { width: 100%; }
  .node { left: calc(var(--x) * .6px); }
  .opts.four { grid-template-columns: 1fr 1fr; }
  .g-meta { font-size: 12.5px; gap: 6px; }
  .opt.svg svg { max-width: 70px; }
  .modes { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mode { padding: 14px; }
  .mode p { display: none; }
  .opt { font-size: 18px; padding: 18px 10px; }
  .result .r-score { font-size: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .bg i { animation: none; }
}
