/* Zombiez v3 design system: "Toxic Arcade". Tokens, layout and every shared component.
   Spec: DESIGN.md. Usage and class reference: FOUNDATION.md. Pages add only layout in
   /css/pages/<page>.css; they never define new colours. Dark only. */

/* ═══ 1. Tokens ═══════════════════════════════════════════ */
:root {
  color-scheme: dark;
  /* surfaces */
  --bg: #0b0d0a; --bg-2: #10130e;
  --panel: #151912; --panel-2: #1b2017; --panel-3: #222a1c;
  --line: #2a3224; --line-2: #3a4532;
  /* text */
  --ink: #eef3e6; --muted: #a6b09c; --dim: #8a957f;
  /* accents */
  --toxic: #b6ff3b; --toxic-deep: #6fbf1f; --toxic-ink: #0d1406;
  --amber: #ffb300; --amber-deep: #c98a00; --amber-ink: #140d00;
  --red: #ff5a47; --red-ink: #1a0400;
  --epic: #c77dff; --info: #5ce1e6;
  /* rarity */
  --r-common: #a6b09c; --r-rare: #5ca8ff; --r-epic: #c77dff; --r-legendary: #ffb300; --r-wonder: #b6ff3b; --r-miracle: #ff5a47;
  /* seats (players in one match, seat order) */
  --seat-1: #b6ff3b; --seat-2: #5ce1e6; --seat-3: #ffb300; --seat-4: #ff6fae; --seat-5: #c77dff; --seat-6: #ff8a4c;
  /* podium */
  --gold: #ffb300; --silver: #dfe6d6; --bronze: #d98b4a;
  /* glows (display numbers and badges only) */
  --glow-g: 0 0 18px rgba(182, 255, 59, .45), 0 0 2px rgba(182, 255, 59, .9);
  --glow-a: 0 0 18px rgba(255, 179, 0, .45), 0 0 2px rgba(255, 179, 0, .9);
  --glow-r: 0 0 18px rgba(255, 90, 71, .45), 0 0 2px rgba(255, 90, 71, .9);
  /* type */
  --f-display: 'Bungee', 'Impact', system-ui, sans-serif;
  --f-ui: 'Chakra Petch', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-num: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --t-hero: clamp(44px, 9vw, 104px);
  --t-h1: clamp(32px, 5.5vw, 56px);
  --t-h2: clamp(26px, 4vw, 40px);
  --t-h3: 20px;
  --t-stat-xl: clamp(48px, 8vw, 88px);
  --t-stat: 28px;
  --t-body: 16px; --t-small: 14px; --t-label: 12px; --t-eyebrow: 13px;
  /* spacing */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  /* shape */
  --r: 4px; --r-sm: 2px; --r-pill: 999px; --cut: 14px;
  --clip-cut: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  --clip-hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  --sh-1: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 8px 24px rgba(0, 0, 0, .35);
  --sh-2: 0 0 0 1px var(--line-2), 0 18px 48px rgba(0, 0, 0, .5);
  /* layout */
  --wrap: 1240px; --gutter: 16px; --topbar: 62px;
  /* motion */
  --d-fast: 120ms; --d: 220ms; --d-slow: 480ms; --ease: cubic-bezier(.2, .8, .2, 1);
  --hazard: repeating-linear-gradient(-45deg, var(--amber) 0 10px, #000 10px 20px);
}
@media (min-width: 760px) { :root { --gutter: 28px; } }

/* ═══ 2. Base ═════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar) + 12px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 500 var(--t-body)/1.55 var(--f-ui); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body > main { flex: 1 0 auto; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--toxic); text-underline-offset: 3px; }
a:hover { color: #d4ff8a; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { padding-left: 1.2em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s-6) 0; }
code, kbd { font: 700 .92em var(--f-num); color: var(--toxic); background: rgba(182, 255, 59, .08); border: 1px solid rgba(182, 255, 59, .25); padding: 1px 6px; border-radius: 3px; }
::selection { background: var(--toxic); color: var(--toxic-ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--amber); color: var(--amber-ink); padding: 10px 16px; font-weight: 700; text-decoration: none; }
.skip:focus { left: 8px; }

/* ═══ 3. Type utilities ═══════════════════════════════════ */
.t-hero { font: 400 var(--t-hero)/.92 var(--f-display); text-transform: uppercase; letter-spacing: -.01em; }
.t-h1, .h1 { font: 400 var(--t-h1)/1 var(--f-display); text-transform: uppercase; }
.t-h2, .h2 { font: 400 var(--t-h2)/1.05 var(--f-display); text-transform: uppercase; }
.t-h3, .h3 { font: 700 var(--t-h3)/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .04em; }
.t-stat-xl { font: 800 var(--t-stat-xl)/1 var(--f-num); font-variant-numeric: tabular-nums; }
.t-stat { font: 700 var(--t-stat)/1.1 var(--f-num); font-variant-numeric: tabular-nums; }
.t-small { font-size: var(--t-small); line-height: 1.45; }
.label { font: 700 var(--t-label)/1.3 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 var(--s-3); font: 700 var(--t-eyebrow)/1.3 var(--f-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--toxic); }
.eyebrow--amber { color: var(--amber); }
.eyebrow--red { color: var(--red); }
.eyebrow__n { font: 800 12px/1 var(--f-num); letter-spacing: .04em; color: var(--toxic-ink); background: var(--toxic); padding: 4px 6px; border-radius: var(--r-sm); }
.eyebrow--amber .eyebrow__n { background: var(--amber); color: var(--amber-ink); }
.eyebrow .chev { display: inline-block; animation: blink 1.2s steps(2, start) infinite; }
.num, .mono { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.num { font-weight: 700; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.toxic { color: var(--toxic); } .amber { color: var(--amber); } .red { color: var(--red); }
.glow-g { text-shadow: var(--glow-g); } .glow-a { text-shadow: var(--glow-a); } .glow-r { text-shadow: var(--glow-r); }
.prose { max-width: 68ch; color: var(--muted); }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose h2 { font: 400 var(--t-h2)/1.05 var(--f-display); text-transform: uppercase; color: var(--ink); margin: var(--s-7) 0 var(--s-4); }
.prose h3 { font: 700 var(--t-h3)/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); margin: var(--s-6) 0 var(--s-3); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.t-hero, .t-h1, .t-h2, .t-h3, .t-stat, .t-stat-xl, .label, .eyebrow { margin-top: 0; }
p.t-hero, p.t-h1, p.t-h2, p.t-h3, p.t-stat, p.t-stat-xl { margin-bottom: 0; }

/* ═══ 4. Layout ═══════════════════════════════════════════ */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 880px; }
.section { padding: var(--s-8) 0; }
@media (min-width: 1080px) { .section { padding: var(--s-9) 0; } }
.section--tight { padding: var(--s-6) 0; }
.section--band { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section + .section--flush { padding-top: 0; }
.stack { display: grid; gap: var(--s-4); }
.stack--lg { gap: var(--s-6); }
.stack--sm { gap: var(--s-2); }
.stack > * { margin-top: 0; margin-bottom: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.row--between { justify-content: space-between; }
.row--end { justify-content: flex-end; }
.grid { display: grid; gap: var(--s-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.split { display: grid; gap: var(--s-5); }
@media (min-width: 1080px) { .split { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; } .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); } .split--side { grid-template-columns: minmax(0, 1fr) 360px; } }
/* horizontal scroll row (mobile lists: maps, weapons) */
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78%, 1fr); gap: var(--s-3); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--s-2); scrollbar-width: thin; }
.hscroll > * { scroll-snap-align: start; }
@media (min-width: 760px) { .hscroll { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); overflow: visible; } }

/* ═══ 5. Textures ═════════════════════════════════════════ */
.crt { position: relative; isolation: isolate; }
.crt::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 3; border-radius: inherit; background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); mix-blend-mode: screen; }
.hazard-edge { position: relative; }
.hazard-edge::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; background: var(--hazard); }
@media (max-width: 759px) { .hazard-edge::before { width: auto; right: 0; bottom: auto; height: 10px; } }
.tape { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 14px; background: var(--hazard); }
.tape > span { background: #000; color: var(--amber); padding: 4px 12px; font: 400 15px/1.1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; border: 2px solid var(--amber); }
.tape--tilt { transform: rotate(-3deg); }
.grid-floor { position: absolute; left: -10%; right: -10%; bottom: -2px; height: 62%; pointer-events: none;
  background-image: linear-gradient(rgba(182, 255, 59, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(182, 255, 59, .16) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(520px) rotateX(62deg); transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 10%, transparent 85%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
  animation: gridrun 3.5s linear infinite; }
.glow-bg { background-image: radial-gradient(900px 420px at 85% -10%, rgba(182, 255, 59, .08), transparent 60%); }

/* ═══ 6. Top bar, drawer, search overlay ══════════════════ */
.topbar { position: sticky; top: 0; z-index: 60; background: rgba(11, 13, 10, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; gap: var(--s-4); height: var(--topbar); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--toxic); flex-shrink: 0; }
.brand:hover { color: var(--toxic); }
.brand__mark { width: 30px; height: 30px; filter: drop-shadow(0 0 6px rgba(182, 255, 59, .5)); }
.brand__word { font: 400 22px/1 var(--f-display); letter-spacing: .02em; color: var(--ink); }
.brand__tag { display: none; font: 600 11px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); border-left: 1px solid var(--line-2); padding-left: 10px; }
@media (min-width: 1180px) { .brand__tag { display: inline; } }
.nav { display: none; gap: 2px; margin-left: var(--s-2); }
.nav__link { position: relative; display: inline-flex; align-items: center; height: 44px; padding: 0 12px; text-decoration: none; font: 600 14px/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-radius: var(--r); }
.nav__link:hover { color: var(--ink); background: var(--panel); }
.nav__link[aria-current="page"] { color: var(--toxic); }
.nav__link[aria-current="page"]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--toxic); box-shadow: var(--glow-g); }
@media (min-width: 960px) { .nav { display: flex; } .nav-toggle { display: none !important; } }
.topbar__end { margin-left: auto; display: flex; align-items: center; gap: var(--s-2); }
.iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); color: var(--muted); text-decoration: none; transition: color var(--d-fast), border-color var(--d-fast); }
.iconbtn:hover { color: var(--ink); border-color: var(--line-2); }
.livepill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); text-decoration: none; font: 700 12px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.livepill:hover { color: var(--ink); }
.livepill__dot, .livedot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex-shrink: 0; display: inline-block; }
.livepill.is-live { color: var(--toxic); border-color: rgba(182, 255, 59, .4); background: rgba(182, 255, 59, .06); }
.livepill.is-live .livepill__dot, .livedot.is-live { background: var(--toxic); box-shadow: var(--glow-g); animation: pulse 1.6s infinite; }
.livepill[aria-current="page"] { color: var(--ink); border-color: var(--toxic); }
.livedot.is-red { background: var(--red); box-shadow: var(--glow-r); animation: pulse 1.2s infinite; }
.account { display: flex; }
.account__btn span { display: none; }
@media (min-width: 560px) { .account__btn span { display: inline; } }
.account__avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; clip-path: var(--clip-hex); background: var(--toxic); color: var(--toxic-ink); font: 800 12px/1 var(--f-num); }
.drawer { display: grid; border-top: 1px solid var(--line); padding: var(--s-2) var(--gutter) var(--s-4); background: rgba(11, 13, 10, .97); max-height: calc(100vh - var(--topbar)); overflow-y: auto; }
.drawer__link { display: flex; align-items: center; min-height: 48px; padding: 0 4px; text-decoration: none; color: var(--ink); font: 600 16px var(--f-ui); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.drawer__link[aria-current="page"] { color: var(--toxic); }
@media (min-width: 960px) { .drawer { display: none !important; } }
@media (max-width: 420px) { .topbar__in { gap: 10px; } .brand__word { font-size: 19px; } .livepill { padding: 0 10px; } .topbar__end { gap: 6px; } .topbar .account { display: none; } }
@media (max-width: 359px) { .brand__word { display: none; } }

.searchov { position: fixed; inset: 0; z-index: 120; display: grid; justify-items: center; align-items: start; padding: 10vh var(--gutter) var(--s-4); background: rgba(5, 7, 4, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.searchov__panel { width: min(640px, 100%); background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--sh-2); clip-path: var(--clip-cut); }
.searchov__form { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.searchov__ico { color: var(--toxic); }
.searchov__input { flex: 1; min-width: 0; height: 48px; background: transparent; border: 0; outline: 0; font: 600 20px/1 var(--f-ui); color: var(--ink); }
.searchov__input::placeholder { color: var(--dim); }
.searchov__input::-webkit-search-cancel-button { display: none; }
.searchov__list { list-style: none; margin: 0; padding: var(--s-2) 0; max-height: 55vh; overflow-y: auto; }
.searchov__list:empty { display: none; }
.searchov__opt a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); padding: 10px var(--s-4); text-decoration: none; color: var(--ink); }
.searchov__opt[aria-selected="true"] a, .searchov__opt a:hover { background: var(--panel-3); }
.searchov__hint { margin: 0; padding: var(--s-3) var(--s-4); font-size: var(--t-small); color: var(--dim); border-top: 1px solid var(--line); }

/* ═══ 7. Footer ═══════════════════════════════════════════ */
.foot { margin-top: auto; border-top: 1px solid var(--line); background: #090b08; padding: var(--s-6) 0 var(--s-5); }
.foot__row { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .foot__row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.foot__row--meta { margin-top: var(--s-5); font-size: 13px; color: var(--dim); }
.foot__row--meta::before { content: ''; grid-column: 1 / -1; height: 1px; background: var(--line); margin-bottom: var(--s-2); }
.foot__row--meta p { margin: 0; }
.foot__brand p { margin: var(--s-2) 0 0; color: var(--dim); font-size: var(--t-small); max-width: 40em; }
.foot__brand .brand__word { font-size: 20px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 0 var(--s-4); }
.foot__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font: 600 14px var(--f-ui); text-transform: uppercase; letter-spacing: .06em; }
.foot__nav a:hover { color: var(--toxic); }
.foot__right { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-5); }
.foot__right a { color: var(--muted); }
.foot__sync { display: inline-flex; align-items: center; gap: 8px; }

/* ═══ 8. Buttons, links ═══════════════════════════════════ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; text-decoration: none; font: 700 15px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; border: 2px solid transparent; border-radius: 0; background: var(--panel-2); color: var(--ink); white-space: nowrap; transition: transform var(--d-fast), background var(--d-fast), color var(--d-fast), border-color var(--d-fast); }
.btn:active { transform: translateY(1px); }
.btn--amber { background: var(--amber); color: var(--amber-ink); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.btn--amber:hover { background: #ffc633; color: var(--amber-ink); }
.btn--toxic { background: var(--toxic); color: var(--toxic-ink); clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.btn--toxic:hover { background: #ccff70; color: var(--toxic-ink); }
.btn--ghost { border-color: var(--line-2); background: rgba(255, 255, 255, .02); color: var(--ink); }
.btn--ghost:hover { border-color: var(--toxic); color: var(--toxic); }
.btn--sm { min-height: 44px; padding: 0 14px; font-size: 13px; gap: 8px; }
.btn--big { min-height: 58px; padding: 0 28px; font-size: 16px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn--block { width: 100%; }
.more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 700 13px/1.2 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--toxic); text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--toxic); font: 700 13px/1.2 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; min-height: 32px; }
.linkbtn:hover { text-decoration: underline; }

/* ═══ 9. Headers ══════════════════════════════════════════ */
.phead { position: relative; padding: var(--s-7) 0 var(--s-6); border-bottom: 1px solid var(--line); background: radial-gradient(800px 300px at 15% 0%, rgba(182, 255, 59, .08), transparent 70%); }
.phead__in { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .phead__in { grid-template-columns: minmax(0, 1fr) auto; align-items: end; } }
.phead__title { font: 400 var(--t-h1)/1 var(--f-display); text-transform: uppercase; overflow-wrap: anywhere; }
.phead__title em { font-style: normal; color: var(--toxic); }
.phead__lede { margin: var(--s-3) 0 0; max-width: 46em; color: var(--muted); font-size: 17px; }
.phead__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.sechead { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s-1) var(--s-5); margin-bottom: var(--s-5); }
.sechead .eyebrow { grid-column: 1 / -1; margin-bottom: var(--s-1); }
.sechead__t { font: 400 var(--t-h2)/1.05 var(--f-display); text-transform: uppercase; }
.sechead__sub { grid-column: 1 / -1; margin: var(--s-1) 0 0; color: var(--muted); max-width: 52em; }
@media (max-width: 559px) { .sechead { grid-template-columns: minmax(0, 1fr); } }
.subhead { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); margin-bottom: var(--s-3); }
.subhead h3 { font: 700 16px/1.2 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; }

/* ═══ 10. Panels ══════════════════════════════════════════ */
.panel { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; }
.panel--pad { padding: var(--s-5); }
@media (max-width: 559px) { .panel--pad { padding: var(--s-4); } }
.panel--raised { background: var(--panel-2); }
.panel--toxic { border-color: rgba(182, 255, 59, .45); }
.panel--amber { border-color: rgba(255, 179, 0, .5); background: linear-gradient(135deg, rgba(255, 179, 0, .08), transparent 60%), var(--panel); }
.panel--red { border-color: rgba(255, 90, 71, .5); }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.panel__head h3 { font: 700 14px/1.2 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; }
.panel__body { padding: var(--s-4); }
.cut { clip-path: var(--clip-cut); border-radius: 0; }
/* cut-corner edge accents: draws the diagonals that the clip removes. Add <span class="edge__br"></span> inside. */
.edge { position: relative; }
.edge::before, .edge > .edge__br { content: ''; position: absolute; width: var(--cut); height: var(--cut); z-index: 4; pointer-events: none; }
.edge::before { left: 0; top: 0; background: linear-gradient(-45deg, transparent calc(50% - 1.5px), var(--edge, var(--line-2)) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)); }
.edge > .edge__br { right: 0; bottom: 0; background: linear-gradient(-45deg, transparent calc(50% - 1.5px), var(--edge, var(--line-2)) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)); }
.edge--toxic { --edge: var(--toxic); } .edge--amber { --edge: var(--amber); } .edge--red { --edge: var(--red); }

/* ═══ 11. Chips and badges ════════════════════════════════ */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font: 700 11.5px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; background: transparent; }
.chip i { font-size: 10px; }
.chip--toxic { color: var(--toxic); border-color: rgba(182, 255, 59, .5); background: rgba(182, 255, 59, .07); }
.chip--amber { color: var(--amber); border-color: rgba(255, 179, 0, .5); background: rgba(255, 179, 0, .08); }
.chip--red { color: var(--red); border-color: rgba(255, 90, 71, .5); background: rgba(255, 90, 71, .07); }
.chip--info { color: var(--info); border-color: rgba(92, 225, 230, .45); background: rgba(92, 225, 230, .06); }
.chip--fill-amber { color: var(--amber-ink); background: var(--amber); border-color: var(--amber); }
.chip--fill-toxic { color: var(--toxic-ink); background: var(--toxic); border-color: var(--toxic); }
.chip--fill-red { color: var(--red-ink); background: var(--red); border-color: var(--red); }
.chip--live .livedot { width: 7px; height: 7px; }
.chip--lg { height: 32px; padding: 0 12px; font-size: 13px; }
/* removable filter chip */
.chip--x { padding-right: 0; gap: 0; }
.chip--x button { display: grid; place-items: center; width: 28px; height: 26px; margin-left: 4px; background: none; border: 0; border-left: 1px solid var(--line-2); color: var(--muted); }
.chip--x button:hover { color: var(--red); }
.tier { --tc: var(--muted); display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border-radius: var(--r-sm); color: var(--tc); background: color-mix(in srgb, var(--tc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 45%, transparent); font: 700 12px/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tier__rr { font: 700 12px/1 var(--f-num); color: var(--ink); opacity: .8; }
.tier--lg { height: 36px; padding: 0 14px; font-size: 14px; }
.lvl { --lc: var(--toxic); position: relative; display: inline-grid; place-items: center; min-width: 34px; height: 30px; padding: 0 6px; clip-path: var(--clip-hex); background: var(--lc); color: var(--toxic-ink); font: 800 12px/1 var(--f-num); }
.lvl__wrap { display: inline-flex; align-items: center; gap: 6px; }
.prestige { color: var(--amber); font-size: 11px; letter-spacing: 1px; white-space: nowrap; }
.verified { display: inline-block; width: 16px; height: 16px; color: var(--toxic); vertical-align: -3px; flex-shrink: 0; }
.rarity { --rc: var(--r-common); font: 700 11px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--rc); }
.rarity--common { --rc: var(--r-common); } .rarity--rare { --rc: var(--r-rare); } .rarity--epic { --rc: var(--r-epic); } .rarity--legendary { --rc: var(--r-legendary); } .rarity--wonder { --rc: var(--r-wonder); } .rarity--miracle { --rc: var(--r-miracle); }
.seatdot { --sc: var(--seat-1); display: inline-block; width: 9px; height: 9px; border-radius: 2px; background: var(--sc); flex-shrink: 0; }
.seat-1 { --sc: var(--seat-1); } .seat-2 { --sc: var(--seat-2); } .seat-3 { --sc: var(--seat-3); } .seat-4 { --sc: var(--seat-4); } .seat-5 { --sc: var(--seat-5); } .seat-6 { --sc: var(--seat-6); }
/* player name: link or hidden-player redaction bar */
.pname { font-weight: 700; color: var(--ink); text-decoration: none; }
a.pname:hover { color: var(--toxic); text-decoration: underline; }
.pname--hidden { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-weight: 600; }
.pname--hidden::before { content: ''; display: inline-block; width: 3.2em; height: .9em; background: #000; border: 1px solid var(--line-2); }
.names { display: inline; }

/* ═══ 12. Hex round badge ═════════════════════════════════ */
.hex { --c: var(--toxic); --hs: 64px; position: relative; width: var(--hs); height: calc(var(--hs) * 1.08); flex-shrink: 0; display: grid; place-items: center; text-align: center; color: var(--c); }
.hex::before { content: ''; position: absolute; inset: 0; clip-path: var(--clip-hex); background: var(--c); }
.hex::after { content: ''; position: absolute; inset: 2px; clip-path: var(--clip-hex); background: radial-gradient(circle at 50% 30%, #172012, #0c1009 70%); }
.hex > span { position: relative; z-index: 1; display: grid; justify-items: center; }
.hex__l { font: 700 calc(var(--hs) * .13)/1 var(--f-ui); letter-spacing: .14em; color: var(--muted); margin-bottom: 2px; }
.hex__n { font: 400 calc(var(--hs) * .36)/1 var(--f-display); text-shadow: 0 0 12px currentColor; }
.hex--sm { --hs: 44px; } .hex--sm .hex__l { display: none; }
.hex--lg { --hs: 96px; }
.hex--xl { --hs: 132px; }
.hex--amber { --c: var(--amber); } .hex--red { --c: var(--red); } .hex--dim { --c: var(--line-2); color: var(--dim); }
.hex--pulse { animation: hexglow 2.4s ease-in-out infinite; }
.hex--long .hex__n { font-size: calc(var(--hs) * .27); }

/* ═══ 13. Stat tiles ══════════════════════════════════════ */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); background: var(--line); gap: 1px; }
@media (min-width: 560px) { .tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .tiles--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .tiles--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tile { background: var(--panel); padding: 14px 16px; min-width: 0; }
.tiles--ghost .tile { background: rgba(16, 19, 14, .82); }
.tile__l { display: block; font: 700 var(--t-label)/1.3 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.tile__v { display: block; margin-top: 6px; font: 700 var(--t-stat)/1.1 var(--f-num); font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; }
.tile__v small { font: 700 13px var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin-left: 4px; }
.tile__s { display: block; margin-top: 4px; font-size: var(--t-small); color: var(--muted); }
.tile__s a { color: var(--muted); }
.tile--accent .tile__v { color: var(--amber); text-shadow: var(--glow-a); }
.tile--toxic .tile__v { color: var(--toxic); }
.tile--xl .tile__v { font: 800 var(--t-stat-xl)/1 var(--f-num); }
.tile--empty .tile__v { font: 600 14px/1.4 var(--f-ui); color: var(--dim); letter-spacing: 0; text-transform: none; padding-top: 6px; }
a.tile { text-decoration: none; color: inherit; transition: background var(--d-fast); }
a.tile:hover { background: var(--panel-2); }

/* ═══ 14. Tables ══════════════════════════════════════════ */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); background: var(--panel); -webkit-overflow-scrolling: touch; }
.table-wrap.is-scroll::after { content: ''; position: sticky; float: right; right: 0; top: 0; width: 28px; height: 100%; margin-top: -100%; pointer-events: none; background: linear-gradient(90deg, transparent, var(--panel)); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { position: sticky; top: 0; z-index: 2; background: var(--panel-2); text-align: left; padding: 12px 14px; font: 700 var(--t-label)/1.3 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); white-space: nowrap; border-bottom: 1px solid var(--line); }
.table td { padding: 0 14px; height: 52px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table--compact td { height: 44px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--panel-2); }
.table tr.is-me { background: var(--panel-3); box-shadow: inset 3px 0 0 var(--toxic); }
.table .n, .table th.n { text-align: right; font-family: var(--f-num); font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.table .sticky { position: sticky; left: 0; z-index: 1; background: inherit; }
.table th.sticky { z-index: 3; }
.table tbody tr { background: var(--panel); }
.table th button { display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; min-height: 32px; }
.table th button::after { content: '\2195'; opacity: .4; font-size: 11px; }
.table th[aria-sort="descending"] button::after { content: '\2193'; opacity: 1; color: var(--toxic); }
.table th[aria-sort="ascending"] button::after { content: '\2191'; opacity: 1; color: var(--toxic); }
.table__meta { display: block; font-size: 12.5px; color: var(--dim); }
@media (max-width: 759px) { .table .hide-sm { display: none; } }
@media (min-width: 760px) { .table .show-sm { display: none; } }

/* ═══ 15. Leaderboard rows, podium, record run ════════════ */
.lb { display: grid; }
.lb-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); min-height: 60px; padding: 8px 18px; text-decoration: none; color: inherit; border-bottom: 1px solid rgba(42, 50, 36, .7); }
.lb-row:last-child { border-bottom: 0; }
a.lb-row:hover { background: rgba(182, 255, 59, .05); color: inherit; }
a.lb-row:hover .lb-row__name { color: var(--toxic); }
.lb-row.is-me { background: var(--panel-3); box-shadow: inset 3px 0 0 var(--toxic); }
.lb-row__pos { font: 400 18px/1 var(--f-display); color: var(--dim); }
.lb-row__pos sup { font: 700 10px var(--f-ui); letter-spacing: .06em; margin-left: 1px; }
.lb-row--1 .lb-row__pos { color: var(--gold); text-shadow: var(--glow-a); font-size: 24px; }
.lb-row--2 .lb-row__pos { color: var(--silver); font-size: 21px; }
.lb-row--3 .lb-row__pos { color: var(--bronze); font-size: 20px; }
.lb-row__name { display: block; font: 700 16px/1.25 var(--f-ui); text-transform: uppercase; letter-spacing: .03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.lb-row__name .pname--hidden { text-transform: none; }
.lb-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 2px; font-size: 12.5px; color: var(--dim); }
.lb-row__meta .seatdot { width: 7px; height: 7px; }
.lb-row__val { text-align: right; font: 800 20px/1 var(--f-num); font-variant-numeric: tabular-nums; color: var(--toxic); }
.lb-row--1 .lb-row__val { text-shadow: var(--glow-g); }
.lb-row__val small { display: block; margin-top: 4px; font: 700 10px/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); text-shadow: none; }
.lb-row--free { border: 1px dashed var(--line-2); border-width: 0 0 1px; }
.lb-row--free .lb-row__pos { color: var(--dim); text-shadow: none; }
.lb-row--free .lb-row__name { color: var(--dim); font-weight: 600; letter-spacing: .1em; }
.lb-row--free .lb-row__meta { color: var(--dim); }
.lb-row--team .lb-row__name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lb-row--team .lb-row__name .pname { text-transform: uppercase; }
.lb-row--team .lb-row__name .amp { color: var(--dim); font-weight: 500; text-transform: none; }
@media (max-width: 420px) { .lb-row { grid-template-columns: 38px minmax(0, 1fr) auto; padding: 8px 12px; gap: 10px; } .lb-row__val { font-size: 18px; } }

.podium { display: grid; gap: var(--s-3); }
@media (min-width: 760px) { .podium { grid-template-columns: 1fr 1.15fr 1fr; align-items: end; } .podium > :nth-child(1) { order: 2; } .podium > :nth-child(2) { order: 1; } .podium > :nth-child(3) { order: 3; } }
.podium__step { position: relative; display: grid; justify-items: center; gap: var(--s-2); padding: var(--s-5) var(--s-4) var(--s-4); text-align: center; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--pc, var(--line-2)); min-width: 0; text-decoration: none; color: inherit; }
a.podium__step:hover { background: var(--panel-2); color: inherit; }
.podium__step--1 { --pc: var(--gold); padding-top: var(--s-6); background: linear-gradient(180deg, rgba(255, 179, 0, .1), transparent 60%), var(--panel); }
.podium__step--2 { --pc: var(--silver); } .podium__step--3 { --pc: var(--bronze); }
.podium__place { font: 400 28px/1 var(--f-display); color: var(--pc); }
.podium__step--1 .podium__place { font-size: 40px; text-shadow: var(--glow-a); }
.podium__name { font: 700 17px/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .03em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium__val { font: 800 26px/1 var(--f-num); color: var(--toxic); }
.podium__val small { display: block; margin-top: 4px; font: 700 10px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.podium__step--free { border-style: dashed; color: var(--dim); }

.recordrun { position: relative; display: grid; gap: var(--s-4); padding: var(--s-5); border: 1px solid rgba(255, 179, 0, .5); background: radial-gradient(600px 240px at 0% 0%, rgba(255, 179, 0, .13), transparent 70%), var(--panel); clip-path: var(--clip-cut); --edge: var(--amber); }
@media (min-width: 760px) { .recordrun { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s-6); padding: var(--s-5) var(--s-6); } }
.recordrun__round { display: grid; justify-items: start; }
.recordrun__round .label { color: var(--amber); }
.recordrun__n { font: 400 clamp(72px, 14vw, 132px)/.9 var(--f-display); color: var(--amber); text-shadow: var(--glow-a); }
.recordrun__who { font: 700 clamp(18px, 2.4vw, 24px)/1.25 var(--f-ui); text-transform: uppercase; letter-spacing: .02em; }
.recordrun__who .amp { color: var(--dim); text-transform: none; font-weight: 500; }
.recordrun__meta { margin-top: var(--s-2); display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: var(--t-small); }
.recordrun__meta b { font-family: var(--f-num); color: var(--ink); }

/* ═══ 16. Player card ═════════════════════════════════════ */
.pcard { --tc: var(--toxic); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); align-items: center; padding: var(--s-4); background: var(--panel); border: 1px solid var(--line); text-decoration: none; color: inherit; min-width: 0; }
a.pcard:hover { border-color: var(--line-2); background: var(--panel-2); color: inherit; }
.pcard__hex { position: relative; width: 64px; height: 70px; display: grid; place-items: center; }
.pcard__hex::before { content: ''; position: absolute; inset: 0; clip-path: var(--clip-hex); background: var(--tc); }
.pcard__hex::after { content: ''; position: absolute; inset: 3px; clip-path: var(--clip-hex); background: var(--panel-2); }
.pcard__hex span { position: relative; z-index: 1; font: 400 22px/1 var(--f-display); color: var(--tc); }
.pcard__name { font: 700 18px/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard__title { font-size: 13px; color: var(--amber); font-weight: 700; letter-spacing: .04em; }
.pcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
.pcard__stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pcard__stats div { background: var(--bg-2); padding: 8px; text-align: center; }
.pcard__stats b { display: block; font: 800 17px/1 var(--f-num); }
.pcard__stats span { display: block; margin-top: 4px; font: 700 9.5px/1.2 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.pcard--lg { grid-template-columns: auto minmax(0, 1fr); padding: var(--s-5); background: transparent; border: 0; }
.pcard--lg .pcard__hex { width: 104px; height: 114px; }
.pcard--lg .pcard__hex span { font-size: 36px; }
.pcard--lg .pcard__name { font: 400 var(--t-h1)/1 var(--f-display); white-space: normal; overflow-wrap: anywhere; }
.pcard--hidden { color: var(--dim); }
.pcard--hidden .pcard__hex::before { background: var(--line-2); }
.pcard--hidden .pcard__name { color: var(--dim); }
.redact-bar { display: inline-block; height: 1em; width: 7em; background: #000; border: 1px solid var(--line-2); vertical-align: -2px; }

/* ═══ 17. Match card ══════════════════════════════════════ */
.mgrid { display: grid; gap: var(--s-3); }
@media (min-width: 760px) { .mgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .mgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 759px) { .mgrid--cap > :nth-child(n+5) { display: none; } }
.mcard { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-3) var(--s-4); padding: var(--s-4); border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: inherit; min-width: 0; align-content: start; transition: border-color var(--d-fast), transform var(--d-fast); }
a.mcard:hover { border-color: var(--line-2); transform: translateY(-2px); color: inherit; }
a.mcard:hover .mcard__map { color: var(--toxic); }
.mcard__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mcard__map { font: 700 17px/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .04em; margin: 4px 0 2px; }
.mcard__when { font-size: 12.5px; color: var(--dim); }
.mcard__players { grid-column: 1 / -1; display: grid; gap: 4px; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.mcard__p { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); min-height: 24px; }
.mcard__p::before { content: ''; width: 4px; height: 18px; background: var(--sc, var(--line-2)); border-radius: 1px; }
.mcard__p b { font-family: var(--f-num); color: var(--ink); font-size: 13px; }
.mcard__nums { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 16px; font: 700 13px/1 var(--f-num); color: var(--ink); }
.mcard__nums span { display: inline-flex; align-items: center; gap: 6px; }
.mcard__nums i { color: var(--dim); font-size: 12px; }
.mcard--feature { border-color: rgba(255, 179, 0, .5); background: linear-gradient(135deg, rgba(255, 179, 0, .1), transparent 60%), var(--panel); }
@media (min-width: 1080px) { .mcard--feature { grid-row: span 2; align-content: start; } }
.mcard--cta { display: flex; flex-direction: column; justify-content: center; gap: 6px; border-style: dashed; border-color: rgba(182, 255, 59, .35); background: rgba(182, 255, 59, .03); min-height: 160px; }
.mcard--cta strong { font: 400 20px/1.1 var(--f-display); text-transform: uppercase; color: var(--toxic); }
.mcard--cta span { font-size: 14px; color: var(--muted); }

/* ═══ 18. Scoreboard (live match centre, final scoreboard) ═ */
.scoreboard { border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.scoreboard--live { border-color: rgba(255, 90, 71, .5); }
.scoreboard__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px var(--s-4); padding: var(--s-3) var(--s-4); background: var(--panel-2); border-bottom: 1px solid var(--line); }
.scoreboard__map { font: 700 16px/1.2 var(--f-ui); text-transform: uppercase; letter-spacing: .04em; margin-right: auto; }
.scoreboard__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.scoreboard__facts div { background: var(--bg-2); padding: 10px var(--s-3); }
.scoreboard__facts b { display: block; font: 800 22px/1 var(--f-num); color: var(--ink); }
.scoreboard__facts b.is-round { color: var(--toxic); text-shadow: var(--glow-g); }
.scoreboard__facts b.is-text { font: 700 15px/1.25 var(--f-ui); text-transform: uppercase; letter-spacing: .04em; padding-top: 3px; overflow-wrap: anywhere; }
.scoreboard__facts span { display: block; margin-top: 4px; font: 700 10px/1.2 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.scoreboard__rows { list-style: none; margin: 0; padding: 0; }
.sb-row { display: grid; grid-template-columns: 4px minmax(0, 1fr) repeat(3, minmax(44px, auto)); align-items: center; gap: var(--s-3); padding: 8px var(--s-4); border-bottom: 1px solid var(--line); font-size: 14px; }
.sb-row:last-child { border-bottom: 0; }
.sb-row::before { content: ''; width: 4px; height: 26px; background: var(--sc, var(--line-2)); border-radius: 1px; }
.sb-row__name { min-width: 0; }
.sb-row__name > :first-child { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-row__state { font: 700 10.5px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sb-row__state--down { color: var(--amber); } .sb-row__state--dead { color: var(--red); } .sb-row__state--out { color: var(--toxic); }
.sb-row__n { text-align: right; font: 700 14px/1 var(--f-num); color: var(--ink); }
.sb-row__n small { display: block; margin-top: 3px; font: 700 9px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.sb-row--head { font: 700 10px/1 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding-top: 10px; padding-bottom: 10px; }
.sb-row--head::before { background: transparent; height: 1px; }
.sb-row.is-dead .sb-row__name, .sb-row.is-dead .sb-row__n { color: var(--muted); }
.sb-row.is-dead .sb-row__name .pname:not(.pname--hidden) { color: var(--muted); }
@media (min-width: 760px) { .sb-row { grid-template-columns: 4px minmax(0, 1fr) repeat(5, minmax(56px, auto)); } }
@media (max-width: 759px) { .sb-row .wide-only { display: none; } }

/* ═══ 19. Weapon card, overclock strip, bars ══════════════ */
.wcard { --c: var(--r-common); position: relative; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5) var(--s-4) var(--s-4); border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: inherit; overflow: hidden; min-width: 0; transition: border-color var(--d-fast), transform var(--d-fast); }
.wcard::before { content: ''; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--c); box-shadow: 0 0 14px var(--c); }
a.wcard:hover { border-color: var(--c); transform: translateY(-3px); color: inherit; }
.wcard--rare { --c: var(--r-rare); } .wcard--epic { --c: var(--r-epic); } .wcard--legendary { --c: var(--r-legendary); } .wcard--wonder { --c: var(--r-wonder); } .wcard--miracle { --c: var(--r-miracle); }
.wcard__tier { font: 700 11px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--c); }
.wcard__name { font: 400 22px/1.05 var(--f-display); text-transform: uppercase; }
.wcard__src { font-size: 13px; color: var(--dim); }
.wcard__src b { font-family: var(--f-num); color: var(--amber); }
.wcard__bars { display: grid; gap: 8px; margin-top: auto; }
.wcard--classified { background: repeating-linear-gradient(-45deg, rgba(182, 255, 59, .03) 0 12px, transparent 12px 24px), var(--panel); border-color: rgba(182, 255, 59, .35); }
.wcard__big { font: 800 clamp(36px, 6vw, 52px)/1 var(--f-num); color: var(--c); text-shadow: 0 0 18px color-mix(in srgb, var(--c) 50%, transparent); }
.wcard__big small { display: block; margin-top: 6px; font: 700 11px var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); text-shadow: none; }
.wcard__stamp { position: absolute; top: 14px; right: -34px; transform: rotate(35deg); width: 140px; text-align: center; padding: 4px 0; background: #000; color: var(--toxic); font: 700 10px/1 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; border-block: 1px solid var(--toxic); }
.bar { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; font: 700 11px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.bar__t { display: block; height: 6px; background: #0d100b; border: 1px solid var(--line); overflow: hidden; }
.bar__f { display: block; height: 100%; background: var(--bc, var(--c, var(--toxic))); box-shadow: 0 0 8px var(--bc, var(--c, var(--toxic))); transform-origin: left; transform: scaleX(var(--v, 0)); transition: transform 1s var(--ease); }
.bar b { font: 800 12px/1 var(--f-num); color: var(--ink); min-width: 48px; text-align: right; }
.bars-pending .bar__f { transform: scaleX(0); }
.oc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; align-items: end; }
.oc__t { display: grid; place-items: end center; padding-bottom: 5px; height: calc(18px + var(--i, 1) * 4px); font: 800 11px/1 var(--f-num); color: var(--toxic-ink); background: linear-gradient(0deg, var(--amber), var(--toxic)); border-radius: var(--r-sm); }
.oc--tall .oc__t { height: calc(24px + var(--i, 1) * 7px); }

/* ═══ 20. Map card, map plot ══════════════════════════════ */
.mapcard { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: inherit; overflow: hidden; min-width: 0; transition: border-color var(--d-fast), transform var(--d-fast); }
a.mapcard:hover { border-color: var(--toxic); transform: translateY(-3px); color: inherit; }
.mapcard__art { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 50% 50%, #142010, #0a0d08 75%); }
.mapcard__art .mapplot { position: absolute; inset: 0; }
.mapcard__art .mapplot svg { width: 100%; height: 100%; }
.mapcard__badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; gap: 6px; flex-wrap: wrap; }
.mapcard__body { padding: var(--s-4) var(--s-5) var(--s-5); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.mapcard__name { font: 400 28px/1 var(--f-display); text-transform: uppercase; }
.mapcard__by { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.mapcard__blurb { margin: 0; color: var(--muted); font-size: 15px; }
.mapcard__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: auto; background: var(--line); border: 1px solid var(--line); }
.mapcard__stats div { background: var(--bg-2); padding: 10px 6px; text-align: center; min-width: 0; }
.mapcard__stats b { display: block; font: 800 17px/1 var(--f-num); }
.mapcard__stats span { display: block; margin-top: 4px; font: 700 9.5px/1.2 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.mapcard--sealed .mapcard__art .mapplot { filter: grayscale(1) brightness(.55); }
.mapcard--sealed .mapcard__name { color: var(--muted); }
.mapcard__tape { position: absolute; left: -6%; right: -6%; top: 50%; z-index: 2; transform: translateY(-50%) rotate(-6deg); }
.mapcard__note { font-size: 13.5px; color: var(--amber); margin: 0; }

.mapplot { position: relative; color: var(--toxic); }
.mapplot svg { display: block; width: 100%; height: auto; overflow: visible; }
.mapplot text { font-family: var(--f-ui); font-weight: 700; letter-spacing: .08em; }
.mp-grid { stroke: rgba(182, 255, 59, .08); }
.mp-ring { fill: none; stroke: rgba(182, 255, 59, .22); }
.mp-tick { stroke: rgba(182, 255, 59, .4); }
.mp-lbl { fill: var(--ink); font-size: 3.1px; paint-order: stroke; stroke: #0b0d0a; stroke-width: .9px; }
.mp-lbl--toxic { fill: var(--toxic); } .mp-lbl--amber { fill: var(--amber); } .mp-lbl--dim { fill: var(--muted); }
.mp-coord { fill: var(--dim); font-size: 2.6px; }
.mp-sweep { transform-origin: 0 0; animation: sweep 8s linear infinite; }
.mp-pulse { transform-box: fill-box; transform-origin: center; animation: mppulse 2.4s ease-out infinite; }
.mapplot [data-layer] { transition: opacity var(--d); }
.mapplot.hide-walls [data-layer="walls"], .mapplot.hide-perks [data-layer="perks"], .mapplot.hide-crates [data-layer="crates"], .mapplot.hide-ammo [data-layer="ammo"],
.mapplot.hide-squad [data-layer="squad"], .mapplot.hide-horde [data-layer="horde"], .mapplot.hide-debris [data-layer="debris"], .mapplot.hide-bench [data-layer="bench"],
.mapplot.hide-armoury [data-layer="armoury"], .mapplot.hide-exfil [data-layer="exfil"], .mapplot.hide-gates [data-layer="gates"], .mapplot.hide-labels [data-layer="labels"] { opacity: 0; pointer-events: none; }
.mp-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-3); }
.mp-legend button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 10px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--ink); font: 700 11.5px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; }
.mp-legend button[aria-pressed="false"] { color: var(--dim); background: transparent; border-style: dashed; }
.mp-legend button[aria-pressed="false"] .mp-key { opacity: .35; }
.mp-key { width: 12px; height: 12px; flex-shrink: 0; }
.mp-legend--static span { display: inline-flex; align-items: center; gap: 6px; font: 700 11px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 10px; }
.mapplot--plate { background: #0d100b; border: 1px solid var(--line-2); }

/* ═══ 21. Charts ══════════════════════════════════════════ */
.chart { margin: 0; min-width: 0; }
.chart__svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__axis { fill: var(--dim); font: 700 11px var(--f-ui); letter-spacing: .08em; }
.chart__line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart__area { opacity: .16; }
.chart__dot { stroke: var(--bg); stroke-width: 1.5; }
.chart__val { fill: var(--ink); font: 700 11px var(--f-num); }
.chart__cap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s-2) var(--s-4); margin-top: var(--s-2); font-size: 13px; color: var(--muted); }
.chart__legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.chart__legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart__legend i { width: 12px; height: 3px; border-radius: 2px; background: var(--k, var(--toxic)); display: inline-block; }
.chart__table { margin-top: var(--s-3); }
.chart__table[hidden] { display: none; }
.chart__tip { position: absolute; z-index: 5; pointer-events: none; padding: 6px 10px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--sh-2); font: 600 12.5px/1.4 var(--f-ui); color: var(--ink); white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); }
.chart__wrap { position: relative; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hbar { --c: var(--toxic); display: grid; grid-template-columns: minmax(90px, 38%) minmax(0, 1fr) auto; align-items: center; gap: var(--s-3); font-size: 14px; }
.hbar__l { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-weight: 600; }
.hbar__l small { display: block; font-size: 11.5px; color: var(--dim); font-weight: 600; letter-spacing: .04em; }
.hbar__l a { color: var(--ink); text-decoration: none; }
.hbar__l a:hover { color: var(--toxic); }
.hbar__t { height: 10px; background: #0d100b; border: 1px solid var(--line); overflow: hidden; }
.hbar__f { display: block; height: 100%; background: var(--c); transform-origin: left; transform: scaleX(var(--v, 0)); transition: transform var(--d-slow) var(--ease); }
.hbar__v { font: 800 13px/1 var(--f-num); color: var(--ink); min-width: 3.5em; text-align: right; }
@media (max-width: 479px) { .hbar { grid-template-columns: minmax(0, 1fr) auto; } .hbar__t { grid-column: 1 / -1; grid-row: 2; } }
.spark { display: inline-block; vertical-align: middle; }
.donut { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-4); align-items: center; }
.donut svg { width: 132px; height: 132px; }
/* In a narrow panel (or on a phone) the legend goes under the ring so names are never cut short. */
.chart:has(> .donut) { container-type: inline-size; }
@container (max-width: 459px) { .donut { grid-template-columns: minmax(0, 1fr); justify-items: center; } .donut .hbars { width: 100%; } }
@media (max-width: 519px) { .donut { grid-template-columns: minmax(0, 1fr); justify-items: center; } .donut .hbars { width: 100%; } }
.donut__c1 { fill: var(--ink); font: 800 20px var(--f-num); }
.donut__c2 { fill: var(--dim); font: 700 8.5px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; }

/* ═══ 22. Tabs, segmented controls, selects, pagination ═══ */
.tabs { display: flex; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; min-height: 48px; padding: 0 16px; background: none; border: 0; border-bottom: 2px solid transparent; font: 700 13px/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: color var(--d-fast), background var(--d-fast); }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--toxic); border-bottom-color: var(--toxic); background: var(--panel-3); }
.tabs--fill .tab { flex: 1 0 auto; }
.tabpanel:focus-visible { outline-offset: -3px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--panel); }
.seg button { min-height: 40px; padding: 0 14px; background: none; border: 0; border-right: 1px solid var(--line-2); font: 700 12.5px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.seg button:last-child { border-right: 0; }
.seg button:hover { color: var(--ink); background: var(--panel-2); }
.seg button[aria-pressed="true"] { background: var(--toxic); color: var(--toxic-ink); }
.field { display: grid; gap: 6px; }
.field > span { font: 700 var(--t-label)/1.3 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.select, .input { min-height: 44px; padding: 0 36px 0 12px; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); color: var(--ink); font: 600 14px var(--f-ui); }
.select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.input { padding-right: 12px; }
.select:hover, .input:hover { border-color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; align-items: end; gap: var(--s-3); }
.filters__active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: var(--s-3); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; margin-top: var(--s-5); }
.pager a, .pager button, .pager span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); text-decoration: none; font: 700 14px/1 var(--f-num); border-radius: var(--r); }
.pager a:hover, .pager button:hover { border-color: var(--line-2); color: var(--ink); }
.pager [aria-current="page"] { background: var(--toxic); border-color: var(--toxic); color: var(--toxic-ink); }
.pager span { border-color: transparent; background: none; }
.pager .pager__txt { font-family: var(--f-ui); letter-spacing: .08em; text-transform: uppercase; font-size: 12.5px; }

/* ═══ 23. Empty states, skeletons, notices ════════════════ */
.empty { display: grid; justify-items: center; gap: var(--s-2); text-align: center; padding: var(--s-6) var(--s-5); color: var(--muted); border: 1px dashed var(--line-2); }
.empty__ico { position: relative; width: 56px; height: 60px; display: grid; place-items: center; color: var(--amber); font-size: 20px; margin-bottom: var(--s-1); }
.empty__ico::before { content: ''; position: absolute; inset: 0; clip-path: var(--clip-hex); background: var(--line-2); }
.empty__ico::after { content: ''; position: absolute; inset: 1.5px; clip-path: var(--clip-hex); background: var(--bg); }
.empty__ico i { position: relative; z-index: 1; }
.empty__t { font: 700 15px/1.3 var(--f-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.empty__b { margin: 0; font-size: 14px; max-width: 34em; }
.empty .btn { margin-top: var(--s-2); }
.empty--compact { grid-template-columns: auto minmax(0, 1fr); justify-items: start; text-align: left; padding: var(--s-4); gap: 2px var(--s-4); }
.empty--compact .empty__ico { grid-row: span 3; width: 44px; height: 48px; font-size: 16px; margin: 0; }
.empty--compact .btn { margin-top: var(--s-2); }
.empty--bare { border: 0; }
.sk { position: relative; overflow: hidden; background: var(--panel); border: 1px solid var(--line); min-height: var(--sk-h, 120px); }
.sk::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .035), transparent); transform: translateX(-100%); animation: sk 1.4s linear infinite; }
.sk-line { display: block; height: 12px; margin: 8px 0; background: var(--panel-2); border-radius: 2px; }
.notice { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border: 1px solid var(--line-2); border-left: 3px solid var(--amber); background: var(--panel); font-size: var(--t-small); color: var(--muted); }
.notice i { color: var(--amber); margin-top: 3px; }
.notice--error { border-left-color: var(--red); } .notice--error i { color: var(--red); }
.notice--ok { border-left-color: var(--toxic); } .notice--ok i { color: var(--toxic); }
.sitrep { padding: var(--s-4); border: 1px dashed var(--line-2); color: var(--muted); font-size: 15px; }
.sitrep strong { color: var(--ink); display: block; font: 700 15px/1.3 var(--f-ui); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }

/* ═══ 24. Toast ═══════════════════════════════════════════ */
.toasts { position: fixed; z-index: 150; left: 50%; bottom: var(--s-4); transform: translateX(-50%); display: grid; gap: var(--s-2); width: min(420px, calc(100% - 2 * var(--gutter))); pointer-events: none; }
@media (min-width: 760px) { .toasts { left: auto; right: var(--s-5); transform: none; bottom: var(--s-5); } }
.toast { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); background: var(--panel-2); box-shadow: var(--sh-2); border-left: 3px solid var(--toxic); font-size: 14px; color: var(--ink); pointer-events: auto; animation: toastin var(--d) var(--ease); }
.toast i { color: var(--toxic); }
.toast--info { border-left-color: var(--amber); } .toast--info i { color: var(--amber); }
.toast--error { border-left-color: var(--red); } .toast--error i { color: var(--red); }
.toast__x { margin-left: auto; background: none; border: 0; color: var(--dim); width: 32px; height: 32px; }
.toast.is-out { opacity: 0; transform: translateY(6px); transition: opacity var(--d), transform var(--d); }

/* ═══ 25. Redaction spoiler ═══════════════════════════════ */
.redact { position: relative; display: inline; padding: 0 2px; background: #000; color: transparent; border: 0; border-radius: 1px; font: inherit; text-align: left; cursor: pointer; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: background var(--d), color var(--d); user-select: none; }
.redact:hover, .redact:focus-visible { background: #11150e; box-shadow: 0 0 0 1px var(--line-2); }
.redact:hover::after, .redact:focus-visible::after { content: attr(data-hint); position: absolute; left: 4px; top: 50%; transform: translateY(-50%); font: 700 10.5px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--amber); white-space: nowrap; }
.redact[aria-expanded="true"] { background: transparent; color: inherit; cursor: text; user-select: text; box-shadow: none; }
.redact[aria-expanded="true"]::after { content: none; }
.redact--block { display: block; width: 100%; padding: 6px 8px; }

/* ═══ 26. Ticker ══════════════════════════════════════════ */
.ticker { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); background: #0e110c; overflow: hidden; }
.ticker__tag { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 26px 0 16px; background: var(--toxic); color: var(--toxic-ink); font: 700 12px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.ticker__track { position: relative; flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ticker__rail { display: flex; width: max-content; animation: tick var(--tick-dur, 60s) linear infinite; }
.ticker:hover .ticker__rail, .ticker:focus-within .ticker__rail { animation-play-state: paused; }
.ticker__item { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 24px; white-space: nowrap; font: 600 14px/1 var(--f-ui); color: var(--muted); border-right: 1px solid var(--line); text-decoration: none; }
.ticker__item i { color: var(--toxic); }
.ticker__item b { color: var(--ink); font-weight: 700; }
.ticker__item em { font-style: normal; font-family: var(--f-num); font-weight: 800; color: var(--amber); }
a.ticker__item:hover b { color: var(--toxic); }

/* ═══ 27. Countdown, tier ladder, progress ════════════════ */
.countdown { display: flex; gap: 6px; }
.cd { min-width: 62px; text-align: center; padding: 10px 6px 8px; background: #0d0b05; border: 1px solid rgba(255, 179, 0, .35); border-radius: var(--r); }
.cd b { display: block; font: 800 30px/1 var(--f-num); color: var(--amber); text-shadow: var(--glow-a); font-variant-numeric: tabular-nums; }
.cd span { display: block; margin-top: 6px; font: 700 10px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 420px) { .cd { min-width: 0; flex: 1; } .cd b { font-size: 24px; } }
.ladder { display: grid; gap: var(--s-2); }
.ladder__bar { display: flex; height: 16px; gap: 2px; }
.ladder__seg { --tc: var(--muted); flex: 1 1 0; min-width: 6px; background: color-mix(in srgb, var(--tc) 30%, #0d100b); border-top: 3px solid var(--tc); position: relative; }
.ladder__seg.has { background: var(--tc); }
.ladder__labels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 2px; }
.ladder__labels span { font: 700 10.5px/1.3 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--tc, var(--muted)); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ladder__labels b { display: block; font: 800 13px/1.2 var(--f-num); color: var(--ink); }
@media (max-width: 559px) { .ladder__labels span { font-size: 0; } .ladder__labels b { font-size: 12px; } }
.progress { height: 8px; background: #0d100b; border: 1px solid var(--line); overflow: hidden; }
.progress__f { display: block; height: 100%; width: calc(var(--v, 0) * 100%); background: linear-gradient(90deg, var(--toxic-deep), var(--toxic)); box-shadow: 0 0 10px rgba(182, 255, 59, .4); }
.progress--amber .progress__f { background: linear-gradient(90deg, var(--amber-deep), var(--amber)); }

/* ═══ 28. Motion helpers ══════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--d-slow) var(--ease), transform var(--d-slow) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.flash { animation: flash 600ms ease-out; }
.odo { display: flex; justify-content: center; gap: 4px; }
.odo__d { position: relative; width: clamp(24px, 7vw, 48px); height: clamp(40px, 11vw, 72px); overflow: hidden; background: linear-gradient(180deg, #0d1409, #19240f 50%, #0d1409); border: 1px solid #2c3d22; border-radius: var(--r); box-shadow: inset 0 0 10px rgba(0, 0, 0, .8); }
.odo__d::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .55); }
.odo__s { display: flex; flex-direction: column; transition: transform 1.2s var(--ease); }
.odo__s span { display: grid; place-items: center; height: clamp(40px, 11vw, 72px); font: 800 clamp(24px, 6.8vw, 48px)/1 var(--f-num); color: var(--toxic); text-shadow: var(--glow-g); }
.odo__sep { align-self: flex-end; font: 800 clamp(18px, 5vw, 30px)/1 var(--f-num); color: var(--toxic-deep); padding-bottom: 4px; }

/* ═══ 29. Keyframes, reduced motion ═══════════════════════ */
@keyframes pulse { 50% { opacity: .35; } }
@keyframes blink { to { visibility: hidden; } }
@keyframes gridrun { from { background-position: 0 0; } to { background-position: 0 64px; } }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes sk { to { transform: translateX(100%); } }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes mppulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes hexglow { 50% { filter: drop-shadow(0 0 10px currentColor); } }
@keyframes flash { from { background-color: rgba(182, 255, 59, .28); } to { background-color: transparent; } }
@keyframes toastin { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker__track { mask-image: none; -webkit-mask-image: none; }
  .ticker__rail { width: auto; flex-wrap: wrap; animation: none; }
  .ticker__rail [aria-hidden="true"] { display: none; }
  .mp-sweep, .mp-pulse, .grid-floor { animation: none !important; }
  .mp-sweep { display: none; }
  .eyebrow .chev { animation: none; visibility: visible; }
}
