/* Rust.camp · Stats – single stylesheet for the stats SPA (web/stats). Tokens come from /css/tokens.css (loaded first).
   Same dark-glass language as the landing page; charts are hand-written SVG (js/charts.js) styled from here.
   CSP: no inline styles – dynamic sizes go through CSSOM (el.style) or SVG attributes. */

@font-face {
  font-family: "Roboto Condensed"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/roboto-condensed-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --bg: var(--rc-bg); --bg-2: var(--rc-bg-2); --bg-3: var(--rc-bg-3);
  --ink: var(--rc-ink); --ink-2: var(--rc-ink-2); --ink-3: var(--rc-ink-3);
  --line: var(--rc-line); --line-2: var(--rc-line-2);
  --glass: var(--rc-glass); --glass-2: var(--rc-glass-2);
  --accent: var(--rc-ember); --accent-2: var(--rc-ember-2); --accent-3: var(--rc-ember-3); --accent-ink: var(--rc-ember-ink); --accent-soft: var(--rc-ember-soft);
  --ok: var(--rc-ok); --danger: var(--rc-danger); --info: var(--rc-info);
  --radius: var(--rc-radius); --radius-sm: var(--rc-radius-sm);
  --font: var(--rc-font-text); --font-cond: var(--rc-font-display); --mono: var(--rc-font-mono);
  --wrap: var(--rc-wrap); --gutter: var(--rc-gutter); --shadow: var(--rc-shadow);
  /* chart series (validated for the Camp Night surface, see docs/STATS_UI.md) */
  --s1: var(--rc-ember); --s2: #76aaff; --s3: #4fd18b; --s4: #be70ff; /* 4 categorical slots = modes cargo/oilrig/deathmatch/duel */
  --grid: rgba(255, 255, 255, 0.07);
  --tier-unranked: #7c8593; --tier-bronze: var(--rc-tier-bronze); --tier-silver: var(--rc-tier-silver); --tier-gold: var(--rc-tier-gold);
  --tier-platinum: var(--rc-tier-platinum); --tier-diamond: var(--rc-tier-diamond); --tier-elite: var(--rc-tier-elite); --tier-legend: var(--rc-tier-legend);
  color-scheme: dark;
}
:root:not([data-theme="light"]), :root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1 0 auto; padding: 28px 0 64px; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-cond); font-weight: 800; letter-spacing: 0.01em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(30px, 5vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 28px); }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
input, select { font: inherit; color: inherit; }
code { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Brand / nav ---------- */
.rc-mark { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; color: var(--ink); flex: 0 0 auto; }
.rc-mark__dot { fill: var(--accent); }
.rc-lockup { display: inline-flex; align-items: center; gap: .32em; font-family: var(--font-cond); font-weight: 800; letter-spacing: var(--rc-track-wordmark); color: var(--ink); white-space: nowrap; font-size: 22px; }
.rc-lockup .rc-mark { font-size: 1.18em; }
.brand__dot { color: var(--accent); }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__mark { font-size: 26px; filter: drop-shadow(0 0 10px rgba(255,127,0,.35)); }
.brand__word { font-family: var(--font-cond); font-weight: 800; font-size: 21px; letter-spacing: var(--rc-track-wordmark); line-height: 1; }
.brand__sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 3px; }
.brand__product { font-family: var(--font-cond); font-weight: 700; font-size: 15px; letter-spacing: var(--rc-track-display); color: var(--ink-2); line-height: 1; padding-top: 1px; }
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 13, 16, 0.78); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.nav__links { display: none; gap: 26px; font-size: 14px; color: var(--ink-2); }
.nav__links a, .subnav a { position: relative; padding: 6px 0; transition: color .15s; font-weight: 500; }
.nav__links a:hover, .subnav a:hover { color: var(--ink); }
.nav__links a::after, .subnav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--accent); transition: right .2s ease; }
.nav__links a:hover::after, .nav__links a.is-active::after, .subnav a.is-active::after { right: 0; }
.nav__links a.is-active, .subnav a.is-active { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.subnav { border-top: 1px solid var(--line); }
.subnav__inner { display: flex; gap: 22px; height: 42px; align-items: center; font-size: 14px; color: var(--ink-2); overflow-x: auto; }
.subnav a { white-space: nowrap; }
.lang { display: inline-flex; align-items: center; gap: 2px; padding: 4px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--ink-3); }
.lang__opt { appearance: none; background: none; border: 0; border-radius: 999px; padding: 6px 6px; min-height: 28px; font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; transition: color .15s; }
.lang__opt:hover { color: var(--ink-2); }
.lang__opt[aria-pressed="true"] { color: var(--ink); cursor: default; }
.lang__sep { opacity: .4; }
.auth { display: flex; align-items: center; gap: 8px; }
.auth__user { display: flex; align-items: center; gap: 8px; }
.auth__me { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); font-size: 14px; font-weight: 500; max-width: 180px; }
.auth__me:hover { border-color: var(--line-2); }
.auth__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 519px) {
  .brand__sep, .brand__product { display: none; }
  .brand { gap: 7px; }
  .brand__mark { font-size: 22px; }
  .brand__word { font-size: 18px; }
  .nav__actions { gap: 6px; }
  .auth__name { display: none; }
  .auth__me { padding-right: 4px; }
  .btn--steam span { display: none; }
  .btn--steam { padding: 8px 10px; }
}
@media (min-width: 860px) {
  .nav__links { display: flex; }
  .subnav { display: none; }
}

/* ---------- Buttons / chips / inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass-2); font-weight: 600; font-size: 15px; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; white-space: nowrap; color: var(--ink); }
.btn:hover { transform: translateY(-1px); border-color: rgba(255,255,255,.25); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn--primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--accent-ink); border-color: transparent; box-shadow: 0 6px 24px rgba(255, 127, 0, 0.28); }
.btn--primary:hover { box-shadow: 0 10px 32px rgba(255, 127, 0, 0.4); }
.btn--ghost { background: transparent; }
.btn--sm { padding: 8px 14px; font-size: 14px; }
.btn--steam { background: linear-gradient(180deg, #2a475e, #1b2838); border-color: #3b5a76; color: #e6eef5; }
.btn--steam:hover { border-color: #66c0f4; box-shadow: 0 6px 20px rgba(102, 192, 244, .18); }
.btn--steam .ico { color: #66c0f4; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.ico--sm { width: 14px; height: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ink-2); border: 1px solid var(--line); background: var(--glass); white-space: nowrap; line-height: 1.4; }
.chip--accent { background: var(--accent-soft); color: var(--accent-2); border-color: rgba(255,127,0,.25); }
.chip--ok { color: var(--ok); border-color: rgba(79,209,139,.3); background: rgba(79,209,139,.1); }
.chip--danger { color: #ff8a8e; border-color: rgba(229,72,77,.3); background: rgba(229,72,77,.1); }
.chip--info { color: var(--info); border-color: rgba(118,170,255,.3); background: rgba(118,170,255,.1); }
.chip--queue { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
.chip--ranked { background: var(--accent-soft); color: var(--accent-2); border-color: rgba(255,127,0,.25); }
.chip--streak { color: var(--accent-2); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); gap: 2px; max-width: 100%; overflow-x: auto; }
.seg__opt { appearance: none; border: 0; background: transparent; color: var(--ink-2); padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; min-height: 32px; }
.seg__opt:hover { color: var(--ink); }
.seg__opt[aria-pressed="true"], .seg__opt[aria-selected="true"] { background: var(--glass-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg__opt[aria-pressed="true"].seg__opt--accent { background: var(--accent-soft); color: var(--accent-2); box-shadow: inset 0 0 0 1px rgba(255,127,0,.3); }
.field { position: relative; display: flex; align-items: center; }
.field .ico { position: absolute; left: 14px; color: var(--ink-3); pointer-events: none; }
.input { width: 100%; min-height: 46px; padding: 0 14px 0 42px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--ink); font-size: 15px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: var(--ink-3); }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,127,0,.18); }
.input--sm { min-height: 40px; font-size: 14px; }
.selectwrap { position: relative; display: inline-flex; }
.selectwrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select { appearance: none; -webkit-appearance: none; min-height: 40px; padding: 0 36px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; }
.select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(255,127,0,.18); }

/* ---------- Layout primitives ---------- */
.card { position: relative; background: linear-gradient(180deg, var(--glass-2), var(--glass)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.card--pad { padding: 20px; }
@media (max-width: 479px) { .card--pad { padding: 16px; } .tbl-wrap { margin: 0 -16px; padding: 0 16px; } }
.card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.card__head h2, .card__head h3 { font-size: 18px; font-weight: 700; letter-spacing: .02em; }
.card__sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.lede { color: var(--ink-2); font-size: 16px; max-width: 60ch; }
.stack { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.stack > *, .grid > *, .ranks > *, .top5 > *, .podium > * { min-width: 0; }
.stack--lg { gap: 24px; }
.stack { align-content: start; }
.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--kpi { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid--2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; } }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 22px; }
.page-head .lede { margin-top: 8px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.toolbar__grow { flex: 1 1 220px; }
.mockbar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; font-size: 13px; color: var(--ink-2); background: rgba(118,170,255,.08); border-bottom: 1px solid rgba(118,170,255,.25); text-align: center; }
.mockbar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--info); flex: 0 0 auto; }

/* ---------- Skeletons ---------- */
.skel { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--glass); min-height: 16px; }
.skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); transform: translateX(-100%); animation: shimmer 1.6s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.skel--title { height: 44px; width: 60%; max-width: 420px; margin-bottom: 20px; }
.skel--tile { height: 96px; border-radius: var(--radius); }
.skel--chart { height: 280px; margin-top: 16px; border-radius: var(--radius); }
.skel--row { height: 52px; }
.skel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .skel-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- States ---------- */
.state { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 48px 20px; color: var(--ink-2); }
.state .ico { width: 40px; height: 40px; color: var(--ink-3); stroke-width: 1.5; }
.state h2 { font-size: 24px; color: var(--ink); }
.state p { max-width: 46ch; font-size: 15px; }
.state--error .ico { color: var(--danger); }
.state--inline { padding: 28px 12px; }
.state--inline h2 { font-size: 18px; }

/* ---------- Home ---------- */
.hero { position: relative; padding: 18px 0 34px; overflow: hidden; }
.hero__title { font-size: clamp(38px, 7vw, 72px); letter-spacing: .04em; line-height: .95; background: linear-gradient(180deg, #fff 30%, #b9c0cc 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { margin-top: 12px; color: var(--ink-2); font-size: 17px; max-width: 56ch; }
.search { margin-top: 22px; max-width: 620px; position: relative; }
.search__results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; padding: 6px; border-radius: var(--radius); background: #12161b; border: 1px solid var(--line-2); box-shadow: var(--shadow); max-height: 340px; overflow: auto; }
.search__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: var(--radius-sm); background: transparent; border: 0; text-align: left; cursor: pointer; }
.search__item:hover, .search__item[aria-selected="true"] { background: var(--glass-2); }
.search__item .avatar { flex: 0 0 auto; }
.search__meta { font-size: 12px; color: var(--ink-3); }
.search__none { padding: 14px; font-size: 14px; color: var(--ink-3); }
.search__hint { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.top5 { display: grid; gap: 14px; }
@media (min-width: 640px) { .top5 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .top5 { grid-template-columns: repeat(4, 1fr); } }
.top5__list { display: grid; gap: 4px; margin-top: 6px; }
.top5__row { display: grid; grid-template-columns: 20px 28px 1fr auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--radius-sm); font-size: 14px; }
.top5__row:hover { background: var(--glass); }
.top5__rank { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.top5__row img { width: 28px; height: 28px; }
.top5__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.top5__val { font-family: var(--font-cond); font-weight: 700; font-size: 16px; }
.top5__more { margin-top: 10px; display: inline-flex; font-size: 13px; color: var(--accent-2); font-weight: 600; }

/* ---------- KPI tiles ---------- */
.kpi { padding: 14px 14px 12px; display: grid; gap: 4px; min-height: 96px; align-content: start; }
.kpi__label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.kpi__label .ico { width: 14px; height: 14px; color: var(--ink-3); }
.kpi__value { font-family: var(--font-cond); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: .01em; margin-top: 4px; }
.kpi__value small { font-size: 15px; color: var(--ink-3); font-weight: 700; margin-left: 2px; }
.kpi__sub { font-size: 12px; color: var(--ink-3); font-weight: 500; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi__delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); margin-top: 2px; }
.kpi__delta .ico { width: 12px; height: 12px; stroke-width: 2.5; }
.kpi__delta--up { color: var(--ok); }
.kpi__delta--down { color: #ff8a8e; }
.kpi__spark { margin-top: 6px; height: 26px; }
.kpi__spark svg { display: block; width: 100%; height: 26px; overflow: visible; }

/* ---------- Profile head ---------- */
.profile { display: grid; gap: 18px; padding: 22px 20px; overflow: hidden; }
.profile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--tier, var(--accent)) 16%, transparent), transparent 55%); pointer-events: none; }
.profile__id { position: relative; display: flex; align-items: center; gap: 16px; min-width: 0; }
.avatar { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: linear-gradient(135deg, #2a3140, #171b22); border: 1px solid var(--line-2); font-family: var(--font-cond); font-weight: 800; font-size: 24px; color: var(--ink-2); letter-spacing: .04em; overflow: hidden; flex: 0 0 auto; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--xs { width: 26px; height: 26px; border-radius: 8px; font-size: 11px; }
.avatar--sm { width: 36px; height: 36px; border-radius: 10px; font-size: 14px; }
.profile__name { font-size: clamp(26px, 4vw, 38px); line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile__meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-3); }
.profile__meta code { font-size: 12px; color: var(--ink-3); }
.profile__actions { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 860px) { .profile { grid-template-columns: 1fr auto; align-items: center; } }

/* Rank cards (one per mode) */
.ranks { display: grid; gap: 12px; }
@media (min-width: 640px) { .ranks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ranks { grid-template-columns: repeat(4, 1fr); } }
.rankcard { --tier: var(--tier-unranked); display: grid; grid-template-columns: 72px 1fr; gap: 6px 14px; padding: 16px; overflow: hidden; cursor: pointer; transition: border-color .2s, transform .2s; text-align: left; color: inherit; font: inherit; }
.rankcard:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tier) 50%, transparent); }
.rankcard[aria-pressed="true"] { border-color: color-mix(in srgb, var(--tier) 65%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tier) 35%, transparent), 0 16px 40px color-mix(in srgb, var(--tier) 12%, transparent); }
.rankcard::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 18% 30%, color-mix(in srgb, var(--tier) 22%, transparent), transparent 55%); opacity: .9; pointer-events: none; }
.rankcard > * { position: relative; }
.rankcard__crest { grid-row: 1 / span 3; width: 72px; height: 72px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.5)); align-self: center; }
.rankcard__mode { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); display: flex; justify-content: space-between; gap: 8px; }
.rankcard__pos { color: var(--ink-3); font-weight: 600; letter-spacing: .02em; text-transform: none; }
.rankcard__tier { font-family: var(--font-cond); font-weight: 800; font-size: 20px; color: var(--tier); letter-spacing: .03em; text-transform: uppercase; line-height: 1.1; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rankcard__rating { font-family: var(--font-cond); font-weight: 700; font-size: 16px; color: var(--ink); }
.rankcard__rating small { color: var(--ink-3); font-size: 12px; font-weight: 600; margin-left: 4px; }
.rankcard__bar { grid-column: 2; display: grid; gap: 4px; }
.meter { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--tier) 18%, rgba(255,255,255,.06)); overflow: hidden; }
.meter__fill { height: 100%; width: 0; border-radius: 999px; background: var(--tier); transition: width .6s cubic-bezier(.2,.7,.2,1); }
.meter__txt { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); font-weight: 600; letter-spacing: .02em; }
.rankcard__stats { grid-column: 2; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink-3); }
.rankcard__stats b { color: var(--ink-2); font-weight: 600; }
.t-unranked { --tier: var(--tier-unranked); } .t-bronze { --tier: var(--tier-bronze); } .t-silver { --tier: var(--tier-silver); } .t-gold { --tier: var(--tier-gold); }
.t-platinum { --tier: var(--tier-platinum); } .t-diamond { --tier: var(--tier-diamond); } .t-elite { --tier: var(--tier-elite); } .t-legend { --tier: var(--tier-legend); }
.tiertxt { color: var(--tier); }

/* ---------- Charts ---------- */
.chart { position: relative; width: 100%; }
.chart--h260 { min-height: 260px; height: 260px; }
.chart--h200 { min-height: 200px; height: 200px; }
.chart--h160 { min-height: 160px; height: 160px; }
.chart--h120 { min-height: 120px; height: 120px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; font-family: var(--font); }
.chart .ax text { fill: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .ax line, .chart .grid line { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.chart .ax .base { stroke: var(--line-2); }
.chart .band { opacity: .11; }
.chart .band-lbl { fill: var(--ink-3); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.chart .ln { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { opacity: .12; }
.chart .dot { stroke: var(--bg); stroke-width: 2; }
.chart .hit { fill: transparent; }
.chart .xhair { stroke: var(--line-2); stroke-width: 1; pointer-events: none; }
.chart .ref { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: none; opacity: .5; }
.chart .ref-lbl { fill: var(--ink-3); font-size: 10px; }
.chart .bar { rx: 4; }
.chart .bar:hover, .chart .bar.is-hot { filter: brightness(1.2); }
.chart .lbl { fill: var(--ink-2); font-size: 12px; }
.chart .lbl--strong { fill: var(--ink); font-weight: 600; }
.chart .lbl--muted { fill: var(--ink-3); font-size: 11px; }
.chart .focus-ring { fill: none; stroke: var(--accent); stroke-width: 2; }
.chart__empty { display: grid; place-items: center; text-align: center; padding: 0 12px; color: var(--ink-3); font-size: 13px; line-height: 1.5; }
.chart-tip { position: fixed; z-index: 90; pointer-events: none; min-width: 120px; max-width: 260px; padding: 8px 10px; border-radius: 10px; background: #12161b; border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 12px; color: var(--ink-2); }
.chart-tip__t { font-weight: 600; color: var(--ink-3); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.chart-tip__row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.chart-tip__key { display: inline-block; width: 12px; height: 2px; border-radius: 1px; flex: 0 0 auto; }
.chart-tip__row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.chart-tip__lbl { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--ink-2); margin-top: 10px; }
.legend__item { display: inline-flex; align-items: center; gap: 6px; }
.legend__key { width: 14px; height: 2px; border-radius: 1px; background: var(--k, var(--s1)); }
.legend__key--rect { height: 10px; border-radius: 2px; }
.legend__key--band { height: 10px; border-radius: 2px; opacity: .35; }
.chart-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.chart-table { margin-top: 12px; }
.chart-table summary { cursor: pointer; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.chart-table summary:hover { color: var(--ink-2); }

/* Horizontal bars (weapons) as HTML */
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 140px) 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.hbar__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.hbar__track { height: 10px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.hbar__fill { height: 100%; width: 0; border-radius: 999px; background: var(--s1); transition: width .6s cubic-bezier(.2,.7,.2,1); }
.hbar__fill--2 { background: var(--s2); }
.hbar__fill--3 { background: var(--s3); }
.hbar__val { font-variant-numeric: tabular-nums; color: var(--ink-2); display: flex; gap: 10px; min-width: 96px; justify-content: flex-end; }
.hbar__val b { color: var(--ink); font-weight: 600; }
.hbar__val small { color: var(--ink-3); }
.segbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; background: transparent; }
.segbar__part { height: 100%; width: 0; min-width: 0; }
.segbar__part:first-child { border-radius: 999px 0 0 999px; }
.segbar__part:last-child { border-radius: 0 999px 999px 0; }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -20px; padding: 0 20px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .c { text-align: center; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--glass); }
.tbl tbody tr.is-link { cursor: pointer; }
.tbl tbody tr.is-me { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.tbl tbody tr.is-me td { border-bottom-color: rgba(255,127,0,.25); }
.tbl .muted { color: var(--ink-3); }
.tbl .dim { color: var(--ink-2); }
.tbl a { color: inherit; }
.tbl a:hover { color: var(--accent-2); }
.tbl .name { display: inline-flex; align-items: center; gap: 10px; min-width: 0; max-width: 240px; }
.tbl .name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 9ch; }
.tbl .name img { width: 24px; height: 24px; flex: 0 0 auto; }
.tbl .rank { font-family: var(--font-cond); font-weight: 700; font-size: 15px; color: var(--ink-2); width: 44px; }
.tbl .rank--1 { color: var(--tier-gold); } .tbl .rank--2 { color: var(--tier-silver); } .tbl .rank--3 { color: var(--tier-bronze); }
.tbl .rating { font-family: var(--font-cond); font-weight: 700; font-size: 16px; }
.tbl .mode { font-weight: 600; }
.tbl .place { font-family: var(--font-cond); font-weight: 700; font-size: 15px; }
.tbl th button { appearance: none; border: 0; background: none; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.tbl th button:hover, .tbl th button[aria-sort] { color: var(--ink); }
.delta { font-weight: 700; font-variant-numeric: tabular-nums; }
.delta--pos { color: var(--ok); }
.delta--neg { color: #ff8a8e; }
.delta--zero { color: var(--ink-3); }
.res { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.res::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.res--win::before { background: var(--ok); }
.res--loss::before { background: var(--danger); }
.res--top::before { background: var(--tier-gold); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--ink-3); }
.pager__btns { display: flex; gap: 8px; }
.sticky-me { position: sticky; bottom: 12px; z-index: 5; margin-top: 12px; }
.sticky-me .tbl { background: #12161b; border: 1px solid rgba(255,127,0,.4); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.sticky-me .tbl td { border-bottom: 0; }

/* Podium */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; margin-bottom: 18px; }
.podium__slot { display: grid; justify-items: center; gap: 6px; padding: 18px 10px 14px; text-align: center; overflow: hidden; --tier: var(--tier-silver); }
.podium__slot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--tier) 22%, transparent), transparent 60%); pointer-events: none; }
.podium__slot > * { position: relative; }
.podium__slot--1 { order: 2; padding-top: 26px; padding-bottom: 22px; }
.podium__slot--2 { order: 1; }
.podium__slot--3 { order: 3; }
.podium__place { font-family: var(--font-cond); font-weight: 800; font-size: 12px; letter-spacing: .14em; color: var(--ink-3); }
.podium__slot--1 .podium__place { color: var(--tier-gold); }
.podium__slot--2 .podium__place { color: var(--tier-silver); }
.podium__slot--3 .podium__place { color: var(--tier-bronze); }
.podium__slot img { width: 64px; height: 64px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.5)); }
.podium__slot--1 img { width: 84px; height: 84px; }
.podium__name { font-family: var(--font-cond); font-weight: 700; font-size: 16px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium__slot--1 .podium__name { font-size: 20px; }
.podium__val { font-family: var(--font-cond); font-weight: 800; font-size: 22px; line-height: 1; }
.podium__sub { font-size: 12px; color: var(--ink-3); }
.podium__slot a:hover { color: var(--accent-2); }
@media (max-width: 479px) { .podium__slot img { width: 48px; height: 48px; } .podium__slot--1 img { width: 64px; height: 64px; } .podium__name { font-size: 14px; } }

/* ---------- Match detail ---------- */
.match-head { display: grid; gap: 12px; }
.match-head__facts { display: flex; flex-wrap: wrap; gap: 8px; }
.feed { display: grid; gap: 0; }
.feed--scroll { max-height: 720px; overflow-y: auto; padding-right: 6px; }
.feed__row { display: grid; grid-template-columns: 54px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: center; }
.feed__row:last-child { border-bottom: 0; }
.feed__t { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 12px; }
.feed__ev { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.feed__ev b { font-weight: 600; }
.feed__ev .ico { width: 14px; height: 14px; color: var(--ink-3); }
.feed__w { font-size: 12px; color: var(--ink-3); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.feed__hs { color: var(--accent-2); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.feed__me b { color: var(--accent-2); }
.team-a { color: var(--s2); } .team-b { color: var(--s1); }

/* ---------- Range ---------- */
.range-best { display: grid; gap: 8px; }
.range-best__row { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--glass); font-size: 13px; }
.range-best__score { font-family: var(--font-cond); font-weight: 800; font-size: 26px; line-height: 1; color: var(--ok); }
.range-best__score--mid { color: var(--accent-2); }
.range-best__score--low { color: #ff8a8e; }
.range-best__meta { color: var(--ink-3); font-size: 12px; }
.range-best__t { color: var(--ink-3); font-size: 12px; white-space: nowrap; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab { appearance: none; border: 0; background: none; padding: 10px 14px; color: var(--ink-2); font-weight: 600; font-size: 14px; cursor: pointer; position: relative; white-space: nowrap; }
.tab::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: transparent; border-radius: 2px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { background: var(--accent); }

/* ---------- Section titles ---------- */
.sect { margin-top: 28px; }
.sect__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.sect__head h2 { font-size: 22px; }
.sect__head .lede { font-size: 14px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 28px; color: var(--ink-3); font-size: 14px; }
.footer__inner { display: grid; gap: 18px; }
.footer__brand p { margin-top: 6px; }
.footer__claim { color: var(--ink-2); font-weight: 500; }
.footer__tree { margin-top: 10px; font-family: var(--font-cond); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.footer__sep { color: var(--accent); margin: 0 2px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer__links a { color: var(--ink-2); transition: color .15s; }
.footer__links a:hover { color: var(--accent-2); }
.footer__legal { font-size: 12px; line-height: 1.7; }
@media (min-width: 640px) { .footer__inner { grid-template-columns: 1fr auto; align-items: start; } .footer__legal { grid-column: 1 / -1; } }

/* ---------- Motion ---------- */
/* views swap without an entry animation: deterministic first paint, no opacity flash on slow devices */
.fade-in { animation: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .nav, .footer, .mockbar, .subnav { display: none; } }
.auth__logout { display: inline-flex; margin: 0; }

/* =====================================================================================================================
   v2 (2026-11-06): dashboard tiles, rank cards, rings, section nav, hit zones, calendar, sortable tables, weapon meta,
   compare, live panel. Nothing here may cause horizontal page scroll: wide content scrolls inside .tbl-wrap only.
   ===================================================================================================================== */
body { max-width: 100%; }
.mt { margin-top: 14px; }
.h3sub { font-size: 14px; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); margin-bottom: 8px; }
.num { font-variant-numeric: tabular-nums; }
.noscript { margin-top: 12px; display: grid; gap: 10px; }
.noscript a { color: var(--accent-2); text-decoration: underline; }
.page-head__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar--tight { gap: 8px; }
.select { max-width: 100%; }
.selectwrap { max-width: 100%; }
.mdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--ink-3); flex: 0 0 auto; }
.mdot--cargo { background: var(--s1); } .mdot--oilrig { background: var(--s2); } .mdot--deathmatch { background: var(--s3); } .mdot--duel { background: var(--s4); }
.legend__key--s1 { background: var(--s1); } .legend__key--s2 { background: var(--s2); } .legend__key--s3 { background: var(--s3); }
.legend__key--cargo, .segbar__part--cargo { background: var(--s1); } .legend__key--oilrig, .segbar__part--oilrig { background: var(--s2); }
.legend__key--deathmatch, .segbar__part--deathmatch { background: var(--s3); } .legend__key--duel, .segbar__part--duel { background: var(--s4); }
.skel--head { min-height: 150px; } .skel--rank { height: 248px; border-radius: var(--radius); } .skel--stile { height: 172px; border-radius: var(--radius); }
.skel--fill { height: 100%; min-height: 120px; } .skel--cal { height: 140px; } .skel--live { height: 150px; } .skel--top5 { height: 280px; border-radius: var(--radius); } .skel--vs { height: 96px; border-radius: var(--radius); }

/* ---------- stat tiles: 1 col phone, 2 tablet, 4 desktop; equal heights ---------- */
.grid--tiles { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 520px) { .grid--tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid--tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.stile { display: grid; grid-template-rows: auto 1fr auto auto; gap: 6px; padding: 14px 16px 12px; min-height: 172px; overflow: hidden; transition: border-color .2s, transform .2s; }
.stile::after { content: ""; position: absolute; inset: auto -30% -60% auto; width: 70%; height: 90%; border-radius: 50%; background: radial-gradient(circle, rgba(255,127,0,.10), transparent 70%); pointer-events: none; }
.stile:hover, .stile:focus-visible { border-color: var(--line-2); transform: translateY(-1px); }
.stile > * { position: relative; min-width: 0; }
.stile__head { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.stile__ico { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-2); flex: 0 0 auto; }
.stile__ico .ico { width: 13px; height: 13px; }
.stile__label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stile__body { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stile__value { font-family: var(--font-cond); font-weight: 800; font-size: clamp(30px, 2.4vw, 38px); line-height: 1; letter-spacing: .01em; white-space: nowrap; }
.stile__value small { font-size: .45em; color: var(--ink-3); font-weight: 700; margin-left: 3px; letter-spacing: .02em; }
.stile__ring { flex: 0 0 auto; }
.stile__spark { height: 34px; }
.stile__spark--empty { border-bottom: 1px dashed var(--line); height: 18px; margin-bottom: 16px; }
.stile__foot { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 18px; }
.stile--low .stile__value { color: var(--ink-2); }
.stile--low .stile__foot { color: var(--ink-3); font-style: italic; }
.dbadge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px 2px 5px; border-radius: 999px; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; flex: 0 0 auto; border: 1px solid transparent; }
.dbadge .ico { width: 11px; height: 11px; stroke-width: 2.8; }
.dbadge--good { color: var(--ok); background: rgba(79,209,139,.12); border-color: rgba(79,209,139,.25); }
.dbadge--bad { color: #ff8a8e; background: rgba(229,72,77,.12); border-color: rgba(229,72,77,.25); }
.dbadge--flat { color: var(--ink-3); background: var(--glass); border-color: var(--line); }
.spark { width: 100%; height: 34px; }
.spark--empty { height: 0; }
.spark svg { display: block; width: 100%; overflow: visible; cursor: crosshair; }
.spark__ref { stroke: var(--ink-3); stroke-dasharray: 2 3; opacity: .5; }
.spark__x { stroke: var(--line-2); }
.spark__end, .spark__dot { stroke: var(--bg); stroke-width: 1.5; }
.pips { display: flex; gap: 4px; align-items: flex-end; height: 34px; padding-bottom: 4px; }
.pip { flex: 1 1 0; max-width: 22px; height: 18px; border-radius: 4px; background: rgba(229,72,77,.55); }
.pip--w { background: var(--ok); height: 28px; } .pip--p { background: var(--tier-gold); height: 22px; }

/* ---------- rings ---------- */
.ring { display: block; overflow: visible; }
.ring__track { stroke: rgba(255,255,255,.08); }
.ring__arc { stroke: var(--accent); transition: stroke-dashoffset .9s cubic-bezier(.2,.7,.2,1); }
.ring--ok .ring__arc { stroke: var(--ok); } .ring--gold .ring__arc { stroke: var(--tier-gold); } .ring--danger .ring__arc { stroke: var(--danger); }
.ring--tier .ring__arc { stroke: var(--tier, var(--ink-3)); } .ring--tier .ring__track { stroke: color-mix(in srgb, var(--tier, #7c8593) 18%, rgba(255,255,255,.05)); }
.ring__txt { fill: var(--ink); font-family: var(--font-cond); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.ring__sub { fill: var(--ink-3); font-size: 9px; font-weight: 600; }

/* ---------- rank cards v2 ---------- */
.ranks { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .ranks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .ranks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rankcard { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 30px auto auto; gap: 10px; padding: 16px; min-height: 248px; align-content: start; }
.rankcard::before { background: radial-gradient(circle at 22% 38%, color-mix(in srgb, var(--tier) 26%, transparent), transparent 58%); }
.rankcard::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(90deg, transparent, var(--tier), transparent); opacity: .7; }
.rankcard--none::after, .rankcard--fresh::after { opacity: .2; }
.rankcard__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 20px; }
.rankcard__mode { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); display: block; }
.rankcard__pos { font-family: var(--font-cond); font-weight: 800; font-size: 13px; padding: 2px 8px; border-radius: 999px; color: var(--tier); background: color-mix(in srgb, var(--tier) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tier) 30%, transparent); letter-spacing: .02em; }
.rankcard__pos--muted { color: var(--ink-3); background: transparent; border-color: transparent; font-family: var(--font); font-weight: 600; font-size: 11px; }
.rankcard__pos:empty { display: none; }
.rankcard__main { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: center; }
.rankcard__crest { grid-row: auto; width: 88px; height: 88px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.55)); }
.rankcard__ringwrap { width: 88px; height: 88px; display: grid; place-items: center; }
.rankcard__elo { display: grid; gap: 2px; min-width: 0; }
.rankcard__num { font-family: var(--font-cond); font-weight: 800; font-size: 42px; line-height: .95; letter-spacing: .01em; color: var(--ink); }
.rankcard__num--muted { color: var(--ink-3); font-size: 34px; }
.rankcard__tier { font-family: var(--font-cond); font-weight: 800; font-size: 17px; color: var(--tier); letter-spacing: .04em; text-transform: uppercase; display: block; line-height: 1.15; }
.rankcard--placement .rankcard__tier, .rankcard--fresh .rankcard__tier, .rankcard--none .rankcard__tier { color: var(--ink-2); }
.rankcard__peak { font-size: 12px; color: var(--ink-3); font-weight: 500; line-height: 1.3; }
.rankcard__spark { height: 30px; min-width: 0; }
.rankcard__bar { grid-column: 1; display: grid; gap: 5px; min-height: 30px; align-content: start; }
.rankcard__bar--note { font-size: 12px; color: var(--ink-3); }
.rankcard__bar .meter { height: 7px; }
.rankcard__bar .meter__fill { background: linear-gradient(90deg, color-mix(in srgb, var(--tier) 60%, transparent), var(--tier)); box-shadow: 0 0 12px color-mix(in srgb, var(--tier) 45%, transparent); }
.meter__txt { gap: 8px; flex-wrap: wrap; }
.rankcard__stats { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 9px; }
.rankcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- profile head ---------- */
.profile__av { position: relative; flex: 0 0 auto; }
.profile__av img { position: absolute; right: -10px; bottom: -10px; width: 34px; height: 34px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.profile__txt { min-width: 0; }
.profile__txt .kicker { margin-bottom: 4px; }
.profile__actions .btn { gap: 6px; }

/* ---------- section nav (in-page tabs, pills, scroll on phone) ---------- */
.secnav { position: sticky; top: 64px; z-index: 30; margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter); background: rgba(11,13,16,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
@media (max-width: 859px) { .secnav { top: 106px; } }
.secnav__inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.secnav__inner::-webkit-scrollbar { display: none; }
.secnav__a { flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); background: var(--glass); white-space: nowrap; transition: color .15s, border-color .15s, background .15s; }
.secnav__a:hover { color: var(--ink); border-color: var(--line-2); }
.secnav__a.is-active { color: var(--accent-2); background: var(--accent-soft); border-color: rgba(255,127,0,.35); }
section[id] { scroll-margin-top: 130px; }

/* ---------- hit zones ---------- */
.grid--zones { align-items: stretch; }
@media (min-width: 1000px) { .grid--zones { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.zones { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.zones__facts { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.zfact { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); }
.zfact b { display: block; color: var(--ink); font-size: 13px; }
.zfact--plain { display: grid; gap: 0; }
.zfact--plain b { font-family: var(--font-cond); font-size: 26px; font-weight: 800; }
.bodymap { display: grid; grid-template-columns: minmax(110px, 160px) minmax(0, 1fr); gap: 18px; align-items: center; }
.bodymap--sm { grid-template-columns: minmax(90px, 120px) minmax(0, 1fr); gap: 14px; }
.bodymap__fig { min-width: 0; }
.bodymap__svg { display: block; width: 100%; height: auto; max-height: 340px; overflow: visible; }
.bodymap__floor { fill: rgba(255,255,255,.05); }
.bodymap__part { fill: var(--accent); stroke: rgba(255,255,255,.22); stroke-width: 1.2; transition: filter .15s, stroke .15s; }
.bodymap--taken .bodymap__part { fill: #e5484d; }
.bodymap__zone { cursor: pointer; }
.bodymap__zone.is-hot .bodymap__part { stroke: #fff; stroke-width: 2; filter: drop-shadow(0 0 8px rgba(255,127,0,.7)); }
.bodymap--taken .bodymap__zone.is-hot .bodymap__part { filter: drop-shadow(0 0 8px rgba(229,72,77,.7)); }
.bodymap__ping { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .35; }
.bodymap--taken .bodymap__ping { stroke: #e5484d; }
.bodymap__list { display: grid; gap: 4px; min-width: 0; }
.bodymap__row { display: grid; grid-template-columns: minmax(56px, 76px) minmax(30px, 1fr) 54px 48px; align-items: center; gap: 8px; font-size: 13px; padding: 4px 6px; border-radius: 8px; }
.bodymap__row:hover, .bodymap__row.is-hot, .bodymap__row:focus-visible { background: var(--glass-2); }
.bodymap__name { color: var(--ink-2); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bodymap__bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.bodymap__bar-fill { display: block; height: 100%; width: 0; background: var(--accent); border-radius: 999px; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.bodymap--taken .bodymap__bar-fill { background: #e5484d; }
.bodymap__pct { text-align: right; font-weight: 700; color: var(--ink); }
.bodymap__hits { text-align: right; color: var(--ink-3); font-size: 12px; }
@media (max-width: 419px) { .bodymap { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; } .bodymap__row { grid-template-columns: 58px minmax(20px, 1fr) 48px; } .bodymap__hits { display: none; } }

/* ---------- activity calendar ---------- */
.cal-wrap { width: 100%; min-width: 0; overflow: hidden; }
.cal { width: 100%; }
.cal svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.cal__m, .cal__d { fill: var(--ink-3); font-size: 10px; font-family: var(--font); }
.cal__c { fill: rgba(255,255,255,.05); }
.cal__c--1 { fill: rgba(255,127,0,.28); } .cal__c--2 { fill: rgba(255,127,0,.5); } .cal__c--3 { fill: rgba(255,127,0,.75); } .cal__c--4 { fill: #ff9a3c; }
.cal__focus { fill: none; stroke: #fff; stroke-width: 1.5; pointer-events: none; }
.cal-legend { display: inline-flex; align-items: center; gap: 4px; }
.cal-legend__c { display: inline-block; width: 11px; height: 11px; border-radius: 2px; background: rgba(255,255,255,.05); }
.cal-legend__c.cal__c--1 { background: rgba(255,127,0,.28); } .cal-legend__c.cal__c--2 { background: rgba(255,127,0,.5); } .cal-legend__c.cal__c--3 { background: rgba(255,127,0,.75); } .cal-legend__c.cal__c--4 { background: #ff9a3c; }

/* ---------- combat key/value grid ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 1300px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fact { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--glass); border: 1px solid var(--line); min-width: 0; }
.fact__l { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fact__v { font-family: var(--font-cond); font-weight: 800; font-size: 24px; line-height: 1.1; color: var(--ink); }
.fact__s { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 16px; }
.fact__note { grid-column: 1 / -1; font-size: 12px; color: var(--ink-3); }

/* ---------- tables v2: sortable headers, inline bars, sticky first columns on phones ---------- */
.tbl caption { text-align: left; }
.tbl th .sort-ind { display: inline-block; width: 8px; height: 8px; margin-left: 2px; opacity: .3; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
.tbl th[aria-sort] .sort-ind, .tbl th.is-sorted .sort-ind { opacity: 1; color: var(--accent-2); }
.tbl th[aria-sort="ascending"] .sort-ind { transform: rotate(-135deg) translate(-1px, -1px); }
.tbl th.is-sorted, .tbl th[aria-sort] { color: var(--ink); }
.tbl td.is-sorted { color: var(--ink); font-weight: 700; }
.tbl tbody tr.is-sel { background: rgba(118,170,255,.08); box-shadow: inset 3px 0 0 var(--info); }
.tbl tbody tr.is-hl { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.tbl--compact td, .tbl--compact th { padding: 6px 8px; }
.tbl .name__txt { display: grid; min-width: 0; line-height: 1.2; }
.tbl .name__txt small { font-size: 11px; font-weight: 600; letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl .name img { width: 26px; height: 26px; }
.tbl td a:not(.name) { text-decoration: none; }
.tbl tr.is-link td:first-child a { color: inherit; }
.cbar { display: inline-grid; grid-template-columns: 56px auto; align-items: center; gap: 8px; justify-content: end; }
.cbar__track { height: 6px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.cbar__fill { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--s1); transition: width .6s cubic-bezier(.2,.7,.2,1); }
.cbar__fill--s2 { background: var(--s2); }
.cbar__txt { min-width: 44px; text-align: right; }
.wname b { font-weight: 600; }
@media (max-width: 639px) {
  .hide-sm { display: none; }
  .tbl--sticky th:first-child, .tbl--sticky td:first-child { position: sticky; left: 0; z-index: 2; background: #101318; }
  .tbl--lb th:nth-child(2), .tbl--lb td:nth-child(2) { position: sticky; left: 44px; z-index: 2; background: #101318; box-shadow: 6px 0 8px -6px rgba(0,0,0,.6); }
  .tbl .name { max-width: 150px; }
  .cbar { grid-template-columns: 34px auto; }
}
.tbl--lb td.rating { font-size: 15px; }
.pager { flex-wrap: wrap; }
.pager__btns { align-items: center; }
.pager__n { font-size: 13px; color: var(--ink-2); padding: 0 6px; }

/* ---------- search / picker ---------- */
.search--compact { margin-top: 0; max-width: none; }
.search__txt { display: grid; min-width: 0; flex: 1 1 auto; }
.search__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search__item img { flex: 0 0 auto; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- home: live panel ---------- */
.live { padding: 18px 20px 20px; overflow: hidden; border-color: rgba(79,209,139,.2); }
.live::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(ellipse at 0% 0%, rgba(79,209,139,.10), transparent 50%), radial-gradient(ellipse at 100% 100%, rgba(255,127,0,.08), transparent 50%); pointer-events: none; }
.live > * { position: relative; }
.live.is-stale { border-color: var(--line); }
.live__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; }
.live__head h2 { font-size: 20px; display: inline-flex; align-items: center; gap: 10px; }
.live__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(79,209,139,.6); animation: livepulse 2.2s ease-out infinite; }
.live.is-stale .live__dot { background: var(--ink-3); animation: none; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(79,209,139,.55); } 100% { box-shadow: 0 0 0 12px rgba(79,209,139,0); } }
.live__nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; align-items: end; }
@media (min-width: 720px) { .live__nums { grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr)); } }
.live__big b { display: block; font-family: var(--font-cond); font-weight: 800; font-size: 56px; line-height: .9; color: var(--ok); }
.live.is-stale .live__big b { color: var(--ink-3); }
.live__big span, .live__num span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.live__num b { display: block; font-family: var(--font-cond); font-weight: 800; font-size: 28px; line-height: 1; }
.live__season { grid-column: 1 / -1; justify-self: start; }
.live__modes { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
@media (min-width: 900px) { .live__modes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lmode { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(0,0,0,.2); transition: border-color .15s, transform .15s; min-width: 0; }
.lmode:hover { border-color: var(--line-2); transform: translateY(-1px); }
.lmode__name { font-family: var(--font-cond); font-weight: 700; font-size: 16px; display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lmode__state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.lmode__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.lmode.is-running { border-color: rgba(79,209,139,.35); }
.lmode.is-running .lmode__state { color: var(--ok); }
.lmode.is-running .lmode__dot { background: var(--ok); }
.lmode__today { font-size: 12px; color: var(--ink-3); }

/* player of the week + meta teaser */
.potw__hero { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: var(--radius-sm); background: radial-gradient(circle at 12% 50%, color-mix(in srgb, var(--tier, var(--accent)) 22%, transparent), transparent 60%), var(--glass); border: 1px solid color-mix(in srgb, var(--tier, var(--accent)) 30%, transparent); --tier: var(--tier-unranked); }
.potw__hero.t-bronze, .potw__hero.t-silver, .potw__hero.t-gold, .potw__hero.t-platinum, .potw__hero.t-diamond, .potw__hero.t-elite, .potw__hero.t-legend { }
.potw__hero img { width: 96px; height: 96px; flex: 0 0 auto; filter: drop-shadow(0 8px 16px rgba(0,0,0,.5)); }
.potw__hero:hover { border-color: var(--tier); }
.potw__txt { display: grid; gap: 4px; min-width: 0; }
.potw__badge { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); }
.potw__name { font-family: var(--font-cond); font-weight: 800; font-size: 30px; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.potw__meta { font-size: 13px; color: var(--ink-2); }
.potw__rest { display: grid; gap: 4px; margin-top: 10px; }
.meta-head { display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(110px, 160px) 52px; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 0 8px 6px; }
.meta-head span:first-child { grid-column: 2; }
.meta-list { display: grid; gap: 2px; }
.meta-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(110px, 160px) 52px; gap: 10px; align-items: center; padding: 8px; border-radius: var(--radius-sm); font-size: 14px; }
.meta-row:hover { background: var(--glass); }
.meta-row__n { color: var(--ink-3); font-size: 12px; font-weight: 600; }
.meta-row__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta-row .cbar { grid-template-columns: minmax(40px, 1fr) auto; justify-content: stretch; }
.meta-row__acc { text-align: right; color: var(--ink-2); }
.top5__card h3 { display: flex; align-items: center; }

/* ---------- match ---------- */
.match-hero h1 { display: flex; align-items: center; }
.match-hero h1 .mdot { width: 12px; height: 12px; }
.ktl-wrap { position: relative; }
.ktl { display: block; width: 100%; height: 64px; }
.ktl__axis { stroke: var(--line-2); vector-effect: non-scaling-stroke; }
.ktl__tick { stroke: var(--line-2); vector-effect: non-scaling-stroke; }
.ktl__k { fill: var(--s2); cursor: pointer; }
.ktl__k--hs { fill: var(--accent); }
.ktl__k--npc { fill: var(--ink-3); }
.ktl__k--me { stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; }
.ktl__labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: -6px; }
.pdetail__grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .pdetail__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.feed { list-style: none; margin: 0; padding: 0; }
.feed__zone { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 1px 7px; border-radius: 6px; color: var(--ink-2); background: var(--glass-2); }
.feed__zone--head { color: var(--accent-ink); background: var(--accent); }
.feed__as { font-size: 12px; color: var(--info); }
.feed__attr { font-size: 11px; color: var(--ink-3); border-bottom: 1px dotted var(--ink-3); cursor: help; }
.pcell-in { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }

/* ---------- weapon meta ---------- */
.chart--h320 { min-height: 320px; height: 320px; }
.chart .bub__c { fill-opacity: .35; stroke-width: 1.5; stroke: currentColor; transition: fill-opacity .15s; }
.chart .bub { color: var(--accent-2); cursor: pointer; }
.chart .bub:hover .bub__c, .chart .bub:focus .bub__c, .chart .bub.is-hot .bub__c { fill-opacity: .75; }
.chart .bub:focus { outline: none; }
.chart .bub:focus .bub__c { stroke: #fff; stroke-width: 2; }
.chart .bub__l { fill: var(--ink-2); font-size: 11px; pointer-events: none; }
.wdetail { display: grid; gap: 14px; align-content: start; }
.wdetail .card__head { margin-bottom: 0; }
.wdetail__name { font-size: 30px; }
.wdetail__rings { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 0; }
@media (min-width: 640px) { .kv { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kv div { min-width: 0; }
.kv dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.kv dd { margin: 2px 0 0; font-family: var(--font-cond); font-weight: 700; font-size: 18px; }

/* ---------- compare ---------- */
.vs { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 760px) { .vs { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } }
.vs__slot { min-width: 0; }
.vs__card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-width: 0; }
.vs__card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 10% 50%, color-mix(in srgb, var(--tier, #7c8593) 22%, transparent), transparent 60%); pointer-events: none; }
.vs__card > * { position: relative; }
.vs__card img { width: 64px; height: 64px; flex: 0 0 auto; }
.vs__slot--a .vs__card { border-color: color-mix(in srgb, var(--s1) 40%, transparent); }
.vs__slot--b .vs__card { border-color: color-mix(in srgb, var(--s2) 40%, transparent); }
.vs__who { display: grid; min-width: 0; flex: 1 1 auto; }
.vs__name { font-family: var(--font-cond); font-weight: 800; font-size: 24px; line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vs__name:hover { color: var(--accent-2); }
.vs__meta { font-size: 12px; color: var(--ink-3); }
.vs__swap { justify-self: center; gap: 6px; }
.vs__vs { font-family: var(--font-cond); font-weight: 800; letter-spacing: .1em; }
.fly { display: grid; gap: 2px; }
.fly__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(96px, 170px) minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.fly__row:last-child { border-bottom: 0; }
.fly__row--head { font-family: var(--font-cond); font-weight: 800; font-size: 16px; border-bottom-color: var(--line-2); }
.fly__na { text-align: right; color: var(--s1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fly__nb { color: var(--s2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fly__lbl { text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .02em; }
.fly__side { display: grid; align-items: center; gap: 8px; min-width: 0; }
.fly__side--a { grid-template-columns: auto minmax(0, 1fr); }
.fly__side--a b { order: 0; }
.fly__side--b { grid-template-columns: minmax(0, 1fr) auto; }
.fly__side b { font-family: var(--font-cond); font-weight: 700; font-size: 16px; color: var(--ink-2); white-space: nowrap; }
.fly__side.is-win b { color: var(--ink); }
.fly__bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.05); overflow: hidden; display: flex; }
.fly__side--a .fly__bar { justify-content: flex-end; }
.fly__fill { display: block; height: 100%; width: 0; border-radius: 999px; opacity: .45; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.fly__fill--a { background: var(--s1); } .fly__fill--b { background: var(--s2); }
.fly__side.is-win .fly__fill { opacity: 1; }
.fly__score { font-family: var(--font-cond); font-weight: 800; font-size: 34px; display: flex; gap: 8px; align-items: baseline; }
.fly__sa { color: var(--s1); } .fly__sb { color: var(--s2); }
@media (max-width: 479px) { .fly__row { grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr); gap: 6px; } .fly__lbl { font-size: 11px; } .fly__side b { font-size: 14px; } }
.vs-zones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vs-zones .bodymap { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.vs-zones .bodymap__svg { max-height: 240px; }

/* ---------- podium links ---------- */
a.podium__slot { color: inherit; transition: transform .2s, border-color .2s; }
a.podium__slot:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tier) 50%, transparent); }
.podium__slot--1 img { width: 96px; height: 96px; }
.podium__slot img { width: 72px; height: 72px; }
@media (max-width: 479px) { .podium { gap: 6px; } .podium__slot { padding: 14px 6px 10px; } .podium__val { font-size: 18px; } }

/* ---------- misc ---------- */
.footer__links a[aria-current] { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .live__dot { animation: none; } .ring__arc, .cbar__fill, .fly__fill, .bodymap__bar-fill { transition: none; } }
@media (forced-colors: active) { .bodymap__part, .cal__c, .ring__arc { forced-color-adjust: none; } }
.grid--start { align-items: start; }

/* ---------- header: icon logout (360 px fit) ---------- */
.btn--icon { padding: 8px; }
@media (max-width: 379px) { .lang { padding: 3px 4px; } .lang__opt { padding: 5px 4px; } .nav__actions { gap: 4px; } .brand__word { font-size: 17px; } }

/* ---------- narrow body maps (weapon detail column, compare) ---------- */
.wdetail .bodymap { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
.wdetail .bodymap__fig { width: 100%; max-width: 150px; margin: 0 auto; }
.bodymap__row { grid-template-columns: minmax(48px, 76px) minmax(16px, 1fr) 52px 44px; }
@media (min-width: 1000px) and (max-width: 1299px) { .wdetail .bodymap__hits { display: none; } .wdetail .bodymap__row { grid-template-columns: minmax(48px, 76px) minmax(16px, 1fr) 52px; } }

/* ---------- privacy ---------- */
.privname { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-style: italic; }
.privname .ico { color: var(--ink-3); }
.tbl tbody tr.is-private { cursor: default; }
.tbl tbody tr.is-private td { color: var(--ink-3); }
.tbl tbody tr.is-private:hover { background: transparent; }
.privacy { display: grid; gap: 14px; border-color: rgba(118,170,255,.25); }
@media (min-width: 860px) { .privacy { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.privacy__txt { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.privacy__ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(118,170,255,.12); color: var(--info); flex: 0 0 auto; }
.privacy__ico .ico { width: 20px; height: 20px; }
.privacy.is-private .privacy__ico { background: var(--accent-soft); color: var(--accent-2); }
.privacy h2 { font-size: 18px; }
.privacy p { color: var(--ink-2); font-size: 14px; margin-top: 4px; max-width: 70ch; }
.privacy .seg[aria-busy="true"] { opacity: .6; pointer-events: none; }
.privpage { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 56px 20px; }
.privpage__lock { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 24px; background: radial-gradient(circle at 50% 30%, rgba(255,127,0,.25), rgba(255,127,0,.06)); border: 1px solid rgba(255,127,0,.3); color: var(--accent-2); }
.privpage__lock .ico { width: 38px; height: 38px; stroke-width: 1.6; }
.privpage h1 { font-size: clamp(28px, 4vw, 40px); }
.privpage p { color: var(--ink-2); max-width: 52ch; }
.privpage__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.chip--admin { color: var(--info); border-color: rgba(118,170,255,.35); background: rgba(118,170,255,.1); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: #12161b; border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14px; font-weight: 500; transform: translate(-50%, 140%); opacity: 0; transition: transform .25s ease, opacity .25s ease; max-width: calc(100vw - 32px); }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast--ok { border-color: rgba(79,209,139,.4); } .toast--ok .ico { color: var(--ok); }
.toast--err { border-color: rgba(229,72,77,.45); } .toast--err .ico { color: var(--danger); }

/* =====================================================================================================================
   v2.1 (06.11.): pagination, zebra tables, result pills, delta/streak chips, mode/weapon badges, mini meters
   ===================================================================================================================== */
.tbl--zebra tbody tr:nth-child(even) { background: rgba(255,255,255,.022); }
.tbl--zebra tbody tr:hover { background: rgba(255,255,255,.055); }
.tbl--zebra tbody tr.is-me, .tbl--zebra tbody tr.is-hl { background: var(--accent-soft); }
.tbl--zebra tbody tr.is-sel { background: rgba(118,170,255,.08); }
.tbl--rows td { height: 52px; padding-top: 6px; padding-bottom: 6px; }
.tbl--rows tbody tr { transition: background .15s ease; }
@media (max-width: 639px) { .tbl--zebra.tbl--sticky tbody tr:nth-child(even) td:first-child, .tbl--zebra.tbl--lb tbody tr:nth-child(even) td:nth-child(2) { background: #14171c; } }
.small { font-size: 12px; }
.swap-in { animation: swapin .28s cubic-bezier(.2,.7,.2,1); }
@keyframes swapin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* result pill + place badge */
.rpill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border: 1px solid transparent; }
.rpill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.rpill--win { color: var(--ok); background: rgba(79,209,139,.12); border-color: rgba(79,209,139,.3); }
.rpill--loss { color: #ff8a8e; background: rgba(229,72,77,.1); border-color: rgba(229,72,77,.28); }
.rpill--top3 { color: var(--tier-gold); background: rgba(240,196,64,.1); border-color: rgba(240,196,64,.28); }
.placebadge { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); background: var(--glass-2); border: 1px solid var(--line); }
/* elo delta + streak chips */
.dchip { display: inline-block; min-width: 54px; text-align: center; padding: 3px 8px; border-radius: 8px; font-size: 13px; font-weight: 700; border: 1px solid transparent; }
.dchip--pos { color: var(--ok); background: rgba(79,209,139,.12); border-color: rgba(79,209,139,.25); }
.dchip--neg { color: #ff8a8e; background: rgba(229,72,77,.1); border-color: rgba(229,72,77,.25); }
.dchip--zero { color: var(--ink-3); background: var(--glass); border-color: var(--line); }
.schip { display: inline-block; min-width: 36px; text-align: center; padding: 2px 7px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink-3); border: 1px solid var(--line); }
.schip--w.is-hot { color: var(--accent-2); background: var(--accent-soft); border-color: rgba(255,127,0,.35); }
.schip--l.is-hot { color: #ff8a8e; background: rgba(229,72,77,.1); border-color: rgba(229,72,77,.3); }
/* mode + weapon badges */
.mcell { display: inline-flex; align-items: center; gap: 9px; }
.mbadge { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 5px; border-radius: 6px; font-family: var(--font-cond); font-weight: 800; font-size: 11px; letter-spacing: .04em; color: var(--bg); }
.mbadge--cargo { background: var(--s1); } .mbadge--oilrig { background: var(--s2); } .mbadge--deathmatch { background: var(--s3); } .mbadge--duel { background: var(--s4); }
.wname { display: inline-flex; align-items: center; gap: 10px; }
.wbadge { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font-family: var(--font-cond); font-weight: 800; font-size: 12px; letter-spacing: .03em; color: var(--ink); background: linear-gradient(135deg, #2a3140, #171b22); border: 1px solid var(--line-2); flex: 0 0 auto; }
.wbadge--rifle { box-shadow: inset 0 -2px 0 var(--s1); } .wbadge--smg { box-shadow: inset 0 -2px 0 var(--s2); } .wbadge--pistol { box-shadow: inset 0 -2px 0 var(--s3); }
.wbadge--shotgun { box-shadow: inset 0 -2px 0 var(--s4); } .wbadge--bow { box-shadow: inset 0 -2px 0 var(--tier-gold); } .wbadge--other { box-shadow: inset 0 -2px 0 var(--ink-3); }
/* mini meter (accuracy) */
.mmeter { display: inline-grid; gap: 4px; justify-items: end; min-width: 64px; }
.mmeter__txt { font-size: 13px; color: var(--ink); }
.mmeter__track { display: block; width: 64px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.mmeter__fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, rgba(118,170,255,.6), var(--s2)); }
.tbl--sticky .mmeter, .tbl--sticky .cbar { vertical-align: middle; }
.wtoggle-row { display: flex; justify-content: center; margin-top: 10px; }

/* pagination */
.pager { margin-top: 10px; }
.pager--top { margin: 0 0 10px; }
.pager:empty { display: none; }
.pgn { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; width: 100%; }
.pgn__info { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.pgn__nums { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pgn__btn { appearance: none; min-width: 34px; height: 34px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; display: inline-grid; place-items: center; transition: background .15s, color .15s, border-color .15s; }
.pgn__btn:hover:not(:disabled) { color: var(--ink); border-color: var(--line-2); background: var(--glass-2); }
.pgn__btn.is-cur { color: var(--accent-ink); background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-color: transparent; cursor: default; }
.pgn__btn:disabled { opacity: .35; cursor: default; }
.pgn__arrow .ico { width: 15px; height: 15px; }
.pgn__gap { color: var(--ink-3); padding: 0 4px; }
.pgn--compact .pgn__btn { min-width: 30px; height: 30px; }
.select--sm { min-height: 34px; font-size: 13px; }
@media (max-width: 479px) { .pgn { justify-content: center; } .pgn--compact .pgn__info { display: none; } .pgn__btn { min-width: 32px; padding: 0 8px; } }

/* heatmap legend: readable */
.cal__m, .cal__d { font-size: 12px; }
.chart-foot { font-size: 13px; }
.cal-legend { font-size: 13px; gap: 5px; }
.cal-legend__c { width: 13px; height: 13px; border-radius: 3px; }

/* consistent card head spacing */
.card__head { margin-bottom: 16px; min-height: 36px; }
.card__head h2 { line-height: 1.15; }
@media (prefers-reduced-motion: reduce) { .swap-in { animation: none; } }
.card__head > * { min-width: 0; max-width: 100%; } .toolbar > .seg, .toolbar > .selectwrap { max-width: 100%; min-width: 0; }
