/* Shared styles for stats_site/ (Phase 1 aggregate views) -- purpose-built
   for table-heavy aggregate pages, not a fork of role_taxonomy/match_page_v3/
   index_v3.html's 4000-line match-page file, which carries a lot of
   radar-canvas/grenade-layer CSS this project doesn't need.

   Identity ("btrams bureau"): Space Indigo #2B2D42 / Lavender Grey #8D99AE /
   Platinum #EDF2F4 / Punch Red #EF233C / Classic Crimson #D80032. Indigo is
   the ink and the masthead + table-header bands, Platinum the page, white
   the panels, Lavender only for control borders / soft separators (too
   light for text -- --muted is a darkened lavender). Punch Red is the
   decorative highlight (bison, masthead stripe, headline bar); Crimson is
   the red for anything carrying text (active nav block, link hover) since
   white on Punch Red is only ~4.2:1. Square corners, no shadows, Open Sans
   body + heavy Arial headlines/labels/figures. Data colours (CT blue / T
   gold, win green / loss red, --hi / --lo, veto scale) keep their meaning.
   --accent is the chrome fill for active controls, --on-accent its text. */
@font-face {font-family:"Open Sans";font-style:normal;font-weight:400;font-display:swap;src:url("fonts/open-sans-400.ttf") format("truetype");}
@font-face {font-family:"Open Sans";font-style:normal;font-weight:600;font-display:swap;src:url("fonts/open-sans-600.ttf") format("truetype");}
@font-face {font-family:"Open Sans";font-style:normal;font-weight:700;font-display:swap;src:url("fonts/open-sans-700.ttf") format("truetype");}
:root {
  --bg: #edf2f4; --panel: #ffffff; --border: #2b2d42; --text: #2b2d42;
  --muted: #5e687d; --line: #8d99ae; --grid: #dde3e8;
  --accent: #2b2d42; --on-accent: #edf2f4; --accent2: #d80032;
  --brand: #ef233c; --brand-ink: #d80032;
  --band: #2b2d42; --on-band: #edf2f4;
  --head-bg: #e3e9ed; --row-hover: #edf2f4;
  --good: #1a7f37; --good-bg: rgba(26,127,55,.13); --bad-bg: rgba(216,0,50,.11);
  --ct-color: #2563eb; --t-color: #d9a21b;
  --gold: #e0a100;   /* decoration only (the "What's map affinity?" box: its rule and the bison's marks); not the T side, which --t-color keeps */
  --ct-track: #dbeafe; --t-track: #f7e7bd;
  --hi: #7040b0; --lo: #0f7a76;
  --warn: color-mix(in srgb, var(--t-color) 55%, var(--text));   /* "partial data": a darkened T gold, ~4.9:1 on white */
  --font-body: "Open Sans", Arial, sans-serif;
  --font-head: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --logo-plate: transparent;   /* behind team logos: the panel colour in dark mode (the drawings have white outlines), nothing in light mode */
}
@media (prefers-color-scheme: dark) {
  :root {
    --logo-plate: var(--panel);
    --bg: #1e2030; --panel: #2b2d42; --border: #8d99ae; --text: #edf2f4;
    --muted: #a9b3c4; --line: #5a6379; --grid: #3a3d55;
    --accent: #edf2f4; --on-accent: #2b2d42; --accent2: #ff5a6e;
    --brand: #ef233c; --brand-ink: #ff5a6e;
    --band: #15161f; --on-band: #edf2f4;
    --head-bg: #34374f; --row-hover: #33364d;
    --good: #4ac26b; --good-bg: rgba(74,194,107,.16); --bad-bg: rgba(255,90,110,.17);
    --ct-color: #60a5fa; --t-color: #f0c24b;
    --gold: #ffc533;
    --ct-track: #1e3a5f; --t-track: #4a3a12;
    --hi: #b9a1f0; --lo: #4cc4bd;
    --warn: color-mix(in srgb, var(--t-color) 75%, var(--text));
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; padding: 20px; background: var(--bg); color: var(--text);
  font: 13px/1.5 var(--font-body);
}
#app { max-width: 1180px; margin: 0 auto; }
a { color: var(--text); font-weight: 600; text-decoration: none; }
a:hover { color: var(--brand-ink); text-decoration: underline; text-decoration-thickness: 2px; }

.panel {
  background: var(--panel); border: none; border-top: 3px solid var(--border); border-radius: 0;
  padding: 16px 18px 18px; margin-bottom: 20px;
}
/* A panel that opens straight into a table: the table's header band is the
   rule, so drop the panel's own rule and padding around the table. */
.panel:has(> .table-scroll:first-child) { border-top: none; padding: 0; }
/* Headings: Arial Bold, capitalised rather than all-caps. h1 keeps its
   source casing (it's often a team name -- "paiN", "9z" -- which
   text-transform: capitalize would mangle); h2s keep their
   source casing too (they were capitalised until 2026-10-26: "Rank over time" read "Rank Over Time"). */
h1 {
  font-family: var(--font-head); font-size: 40px; font-weight: 700; line-height: 1.1;
  letter-spacing: -.015em; margin: 0 0 8px;
}
h1::after { content: ""; display: block; width: 48px; height: 5px; background: var(--brand); margin-top: 10px; }
/* team.html: the bar takes the team's colour; the outline keeps white / near-background colours visible. */
h1.team-colored::after { background: var(--team-color); box-shadow: inset 0 0 0 1px var(--border); }
h2 {
  font-family: var(--font-head); font-size: 18px; margin: 0 0 12px; font-weight: 700;
  letter-spacing: -.005em; color: var(--text);      /* source casing: no auto-capitalising (user, 2026-10-26) */
}
.subtitle { color: var(--muted); font-size: 13px; margin-bottom: 18px; }

/* Masthead -- same on every stats_site page: a full-bleed indigo band with a
   Punch Red stripe along the bottom, red bison + wordmark, bold caps nav
   where the current page is a crimson block. Full-bleed via border-image
   outset (ink overflow, so no horizontal scrollbar) rather than 100vw;
   margin-top cancels body's top padding so the band touches the top. */
/* #siteNav {
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
  margin: -20px 0 30px; padding: 16px 0 18px; color: var(--on-band);
  border-image: linear-gradient(to top, var(--brand) 4px, var(--band) 4px) fill 0 / / 0 100vmax;
  font: 700 12px/1 var(--font-head);
} */

#siteNav a {
  color: var(--on-band); font-weight: 700; padding: 7px 10px;
  text-transform: uppercase; letter-spacing: .04em;
}
#siteNav a:hover { color: var(--on-band); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
/* Crimson in both themes: white on it is ~5.3:1 (dark mode's lighter
   --brand-ink would only reach ~3:1). */
#siteNav a.active { background: #d80032; color: #fff; text-decoration: none; }
#siteNav .site-title {
  display: inline-flex; align-items: center; gap: 10px; margin-right: 22px;
  color: var(--on-band); font-weight: 700; font-size: 21px; text-transform: lowercase; letter-spacing: -.02em;
}
/* The menu (common.js renderSiteNav): THE BTRAMS / THE STATS / THE BUREAU roll out a list on hover, focus or tap;
   Contact and Donate sit beside them. The current page's group gets the crimson block. */
#siteNav a.site-title { padding: 0; }
#siteNav a.site-title:hover { text-decoration: none; }
.nav-items { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px; margin-left: auto; }   /* right-aligned */
#siteNav .nav-top {
  display: inline-flex; align-items: center; gap: 6px; color: var(--on-band); background: none; border: none;
  font: 700 14px/1 var(--font-head); text-transform: uppercase; letter-spacing: .04em; padding: 9px 13px; cursor: pointer;
}
#siteNav .nav-toggle::after { content: ""; border: 5px solid transparent; border-top-color: currentColor; border-bottom: 0; margin-top: 2px; }
#siteNav .nav-group.current > .nav-toggle, #siteNav a.nav-top.active { background: #d80032; color: #fff; text-decoration: none; }
#siteNav .nav-toggle:hover, #siteNav .nav-group:hover > .nav-toggle { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
#siteNav .nav-toggle:focus-visible, #siteNav .nav-item:focus-visible, #siteNav a.nav-top:focus-visible { outline: 2px solid var(--on-band); outline-offset: 2px; }
.nav-group { position: relative; }
/* padding-top bridges the gap under the button, so the pointer can travel into the list without it closing */
.nav-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 40; min-width: 230px; padding-top: 8px;
}
.nav-group:hover > .nav-menu, .nav-group:focus-within > .nav-menu, .nav-group.open > .nav-menu { display: block; }
.nav-menu.nav-menu-left { left: auto; right: 0; }
.nav-menu::before { content: ""; display: block; height: 4px; background: var(--brand); }
#siteNav .nav-item {
  display: block; background: var(--band); color: var(--on-band); padding: 11px 16px;
  font: 700 13px/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .04em; text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--on-band) 12%, transparent);
}
#siteNav a.nav-item:hover { background: color-mix(in srgb, var(--on-band) 10%, var(--band)); color: var(--on-band); text-decoration: none; }
#siteNav a.nav-item.active { box-shadow: inset 4px 0 0 var(--brand); }
#siteNav .nav-soon { color: color-mix(in srgb, var(--on-band) 50%, var(--band)); cursor: default; }   /* faded text, solid row */
#siteNav .nav-soon i {
  font: 700 9px var(--font-head); font-style: normal; letter-spacing: .04em; border: 1px solid currentColor;
  padding: 1px 4px; margin-left: 8px; vertical-align: 1px;
}

/* The bison: a mask (not an <img>) so its colour is a token, and so no
   page's nav markup has to change. */
#siteNav .site-title::before {
  content: ""; width: 58px; height: 46px; flex-shrink: 0; background: var(--on-band);
  -webkit-mask: url("bison.svg") no-repeat center / contain;
  mask: url("bison.svg") no-repeat center / contain;
}

/* Site search (common.js renderSiteSearch): a box right of the menu; its results drop down in the menu's own style
   (band rows under a Punch Red bar), best match first, each row tagged Player / Team / Tournament / Map. A phone shows a magnifier that
   opens the box as its own row. The magnifier is a mask, so its colour is a token. */
.site-search { position: relative; display: flex; align-items: center; margin-left: 10px; }
.search-box { position: relative; }
#siteNav .site-search input {
  width: 190px; box-sizing: border-box; padding: 8px 10px 8px 30px; border: 1px solid color-mix(in srgb, var(--on-band) 35%, transparent);
  border-radius: 0; background: color-mix(in srgb, var(--on-band) 8%, var(--band)); color: var(--on-band);
  font: 13px/1.2 var(--font-body);
}
#siteNav .site-search input::placeholder { color: color-mix(in srgb, var(--on-band) 60%, var(--band)); }
#siteNav .site-search input:focus { outline: 2px solid var(--on-band); outline-offset: 1px; }
#siteNav .site-search input::-webkit-search-cancel-button { filter: invert(1); }
.search-box::before, .search-toggle::before {
  content: ""; display: block; width: 14px; height: 14px; background: var(--on-band); pointer-events: none;
  -webkit-mask: var(--search-icon) no-repeat center / contain; mask: var(--search-icon) no-repeat center / contain;
}
.site-search { --search-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='6.5' cy='6.5' r='5' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M10.3 10.3 15 15' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.search-box::before { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); opacity: .75; }
.search-toggle { display: none; padding: 9px 11px; background: none; border: none; cursor: pointer; }
.search-toggle:focus-visible { outline: 2px solid var(--on-band); outline-offset: 2px; }
.search-list {
  position: absolute; top: 100%; right: 0; z-index: 45; width: 340px; max-width: calc(100vw - 32px);
  max-height: min(70vh, 480px); overflow-y: auto; padding-top: 8px;
}
.search-list[hidden] { display: none; }
.search-list::before { content: ""; display: block; height: 4px; background: var(--brand); }
.search-list > a, .search-note { background: var(--band); }
.search-hit .sh-kind {
  margin-left: auto; padding-left: 12px; flex: none; font: 700 10px/1 var(--font-head); text-transform: uppercase;
  letter-spacing: .06em; color: color-mix(in srgb, var(--on-band) 55%, var(--band));
}
#siteNav a.search-hit {
  display: flex; align-items: center; gap: 0; padding: 8px 14px; color: var(--on-band); text-transform: none;
  letter-spacing: normal; font: 600 13px/1.3 var(--font-body); text-decoration: none;
}
#siteNav a.search-hit[aria-selected="true"] { background: color-mix(in srgb, var(--on-band) 12%, var(--band)); box-shadow: inset 4px 0 0 var(--brand); }
.search-hit .sh-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-hit .sh-aka { margin-left: 8px; flex: none; font-weight: 400; font-size: 12px; color: color-mix(in srgb, var(--on-band) 65%, var(--band)); }
.search-note { padding: 11px 14px; color: color-mix(in srgb, var(--on-band) 75%, var(--band)); font: 13px/1.4 var(--font-body); }
@media (max-width: 700px) {
  .search-toggle { display: block; }
  .search-box { display: none; }
  .site-search.open { flex: 1 0 100%; margin: 6px 0 0; }
  .site-search.open .search-box { display: block; flex: 1; }
  #siteNav .site-search input { width: 100%; }
  .site-search.open .search-toggle { order: 1; }          /* the magnifier closes it again, right of the box */
  .search-list { left: 0; right: 0; width: auto; max-width: none; }
}

/* Stat tiles */
.stat-tiles { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.stat-tile {
  background: var(--panel); border-top: 3px solid var(--border); border-radius: 0; padding: 10px 16px; min-width: 110px;
}
.stat-tile .tile-value { font-family: var(--font-head); font-size: 28px; font-weight: 900; font-variant-numeric: tabular-nums; }
.stat-tile .tile-label { font-family: var(--font-head); font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* Tables -- the header is an indigo band. */
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
thead th {
  text-align: left; padding: 8px 8px; background: var(--band); color: var(--on-band);
  font: 700 11px/1.3 var(--font-head); text-transform: uppercase; letter-spacing: .05em;
  border-bottom: none; white-space: nowrap;
}
tbody td { padding: 8px 8px; border-bottom: 1px solid var(--grid); }
tbody tr:hover { background: var(--row-hover); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.good-text { color: var(--good); font-weight: 700; }
/* Signed above/below-average figures (teams.html's "vs avg" columns). --good
   for above; --accent2 is this palette's red (--bad-bg is the same hue). */
.delta-pos { color: var(--good); }
.delta-neg { color: var(--accent2); }
/* ± one standard error after a K−EEK/24 figure (weapons.html leaderboard): small and muted, it qualifies the number */
.pm-se { color: var(--muted); font-size: 10.5px; margin-left: 4px; font-weight: 400; }
/* The neutral pair of the vs-avg cell: --hi / --lo, as on map.html's tiles (not the CT blue / T gold, not green / red). */
.delta-hi { color: var(--hi); }
.delta-lo { color: var(--lo); }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.table-scroll { overflow-x: auto; }
/* 1px border in the muted-border token, not just the raw team color -- some
   real team colors (FURIA's near-black, Spirit's dark gray) would otherwise
   vanish against the dark-mode background with nothing to outline them. */
.team-swatch { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; border: 1px solid var(--border); }

/* Win-rate meter -- a 2-segment 100%-stacked horizontal bar (dataviz skill's
   mark spec: thin, 4px rounded ends only at the true bar ends, 2px surface
   gap between the two segments, direct labels only where they fit). */
.meter-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.meter-row:last-child { margin-bottom: 0; }
.meter-label { width: 92px; flex-shrink: 0; color: var(--muted); font-size: 12px; }
.meter-track {
  flex: 1; height: 22px; border-radius: 0; display: flex; overflow: hidden;
  background: var(--grid);
}
.meter-seg {
  height: 100%; display: flex; align-items: center; justify-content: center;
  font-size: 11.5px; font-weight: 700; color: #fff; white-space: nowrap;
}
.meter-seg.ct { background: var(--ct-color); border-radius: 0; }
.meter-seg.t { background: var(--t-color); color: #3a2f00; border-radius: 0; }
.meter-gap { width: 2px; background: var(--panel); flex-shrink: 0; }
.meter-note { font-size: 11px; color: var(--muted); margin-left: 102px; }
.meter-legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--muted); margin: 4px 0 14px 102px; }
.meter-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.legend-dot.ct { background: var(--ct-color); }
.legend-dot.t { background: var(--t-color); }

/* Mini meter -- compact version embedded in an all-X table cell */
.mini-meter { display: flex; align-items: center; gap: 1px; width: 100px; height: 14px; }
.mini-meter .meter-seg { font-size: 9.5px; font-weight: 700; }
.mini-meter .meter-seg.ct, .mini-meter .meter-seg.t { border-radius: 0; }

/* Shared date-range filter bar (maps.html + map.html) -- a quiet byline
   row (rule underneath, no filled box) rather than a toolbar. Its
   label/input/select chrome is shared with .filter-bar below via the
   combined selectors further down, so both variants get identical-looking
   controls even though only .date-filter itself is boxed-vs-ruled. */
.date-filter {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 11px 0; margin-bottom: 18px; font-size: 12px;
  background: transparent; border: none; border-bottom: 1px solid var(--border);
}
/* .filter-date-row (not a bare ".filter-bar label") so this never fights
   .ms-row's own display/color on the Require-all / tournament checkbox
   rows living elsewhere in the same bar. */
.date-filter label, .filter-date-row label { display: flex; align-items: center; gap: 5px; color: var(--muted); }
.date-filter input[type=date], .date-filter select, .date-filter input[type=number],
.filter-bar input[type=date], .filter-bar select, .filter-bar input[type=number], .toolbar input[type=number] {
  padding: 4px 6px; border: 1px solid var(--line); border-radius: 0;
  background: var(--panel); color: var(--text); font: 12px var(--font-body);
}
/* .date-filter input[type=number], .filter-bar input[type=number], .toolbar input[type=number] { width: 56px; -moz-appearance: textfield; } */
.date-filter input[type=number]::-webkit-outer-spin-button, .filter-bar input[type=number]::-webkit-outer-spin-button,
.date-filter input[type=number]::-webkit-inner-spin-button, .filter-bar input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.date-filter-reset {
  padding: 5px 11px; border: 1px solid var(--border); border-radius: 0;
  background: var(--panel); color: var(--text); cursor: pointer;
  font: 700 11px var(--font-head); text-transform: uppercase; letter-spacing: .04em;
}
.date-filter-reset:hover { background: var(--accent); color: var(--on-accent); }
.date-filter-hint { color: var(--muted); font-size: 11px; }
.date-filter-active { color: var(--text); font-weight: 700; }

/* Multi-row filter bar (matches.html + series.html) -- grouped into a
   primary row (Map/Date -- what you touch on every visit), a secondary row
   (Tournament/Format/Event/Tier/Match type -- narrowing context), and a
   tertiary row (Team/Team rank/Map picked by -- team-specific digging).
   Rule-separated, not boxed, matching the rest of the page's "fewer boxes"
   chrome. */
/* No bottom rule: the table panel right below opens with its own 2px rule. */
.filter-bar {
  display: flex; flex-direction: column; gap: 16px;
  padding: 16px 0 20px; margin-bottom: 8px;
}
.filter-primary { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px 24px; }
/* A wrapping flex row, not equal grid columns: the Event slider is ~240 px wide, so a ~180 px column (1400 px window)
   let it run under Tier. Each group takes its own width and the row wraps when it runs out. */
.filter-secondary {
  display: flex; flex-wrap: wrap; gap: 14px 32px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.filter-secondary > .filter-group { flex: none; max-width: 100%; }
.filter-group { min-width: 0; }
.filter-date-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* the date range inside the Format / Event / Tier / Stage row (ui/filters.js): From over To */
.filter-secondary:has(> .row-date) { column-gap: 18px; }
.filter-secondary:has(> .row-date):first-child { border-top: 0; padding-top: 0; }
.filter-secondary > .row-date .filter-date-row { flex-direction: column; align-items: flex-start; gap: 8px; }
.filter-secondary > .row-date .filter-date-row label { display: flex; align-items: center; gap: 8px; }

/* Team's rank-min/max, its either/both/opponent mode, and its VRS/HLTV
   slider are one continuous control, not three stacked ones -- a plain
   wrapping flex row keeps them side by side instead of grid-locking each
   into its own equal-width column (Team rank's combined width varies too
   much for that to look right). */
.filter-tertiary { display: flex; flex-wrap: wrap; gap: 16px 28px; padding-top: 14px; border-top: 1px solid var(--line); }
.filter-inline-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

/* .ms-row/.ms-group-label -- generic "one filter-group's label" +
   "one checkbox+label row" styles, originally written for a checkbox-list
   map/team widget that's since been replaced (see .chip-group and
   .team-tag-input below); still actively used for the "Require all
   selected teams" checkbox row and every filter group's kicker label
   (applied to a <div> for multi-control groups, a <label for> for
   single-control ones -- display:block keeps both look identical). */
.ms-row {
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text);
  cursor: pointer; padding: 2px 0; white-space: nowrap;
}
.ms-row input[type=checkbox] { cursor: pointer; flex-shrink: 0; }
.ms-group-label {
  display: block; color: var(--text); font: 700 11px var(--font-head); margin-bottom: 6px;
  text-transform: uppercase; letter-spacing: .05em;
}

/* Optional click-to-expand hint next to a .ms-group-label, e.g. Map's
   "what is this?" on series.html -- explains a filter's semantics without
   permanently occupying page space like a subtitle would. A real toggle
   button (not a title-attr tooltip) since hover tooltips don't expand on
   click/tap and are easy to miss. */
.filter-help-toggle {
  background: none; border: none; padding: 0; margin-left: 4px;
  font: 10.5px var(--font-body); text-transform: none; letter-spacing: normal;
  color: var(--muted); cursor: pointer; text-decoration: underline;
}
.filter-help-toggle:hover { color: var(--text); }
.filter-help-text {
  font-size: 11.5px; color: var(--muted);
  margin: 4px 0 8px; max-width: 420px;
}
.filter-help-text.hidden { display: none; }

/* Chip = a toggleable checkbox rendered as a pill button (map filter) --
   same interaction as a checkbox (independent on/off per chip, unlike a
   single-select segmented control). One straight line -- scrolls
   horizontally rather than wrapping if it ever doesn't fit. */
.chip-group { display: flex; flex-wrap: nowrap; gap: 5px; overflow-x: auto; max-width: 100%; }
.chip {
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 0;
  background: var(--panel); color: var(--text); font: 600 11.5px var(--font-body); cursor: pointer;
  user-select: none; flex-shrink: 0;
}
.chip:hover { border-color: var(--border); }
.chip.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

.chip-actions { display: flex; gap: 8px; margin-top: 5px; }
.link-btn {
  background: none; border: none; padding: 0; color: var(--muted);
  font-size: 11px; cursor: pointer; text-decoration: underline;
}
.link-btn:hover { color: var(--text); }

/* Tournament checkbox list: same .ms-row checkbox-row styling, just
   stacked instead of chips (an explicit ask for checkboxes over a plain
   dropdown). Rolls out from a trigger button, same open/close-on-outside-
   click shape as .team-suggestions below. */
.tournament-list { display: flex; flex-direction: column; }
.tournament-dropdown { position: relative; }
.tournament-dropdown-btn {
  display: block; min-width: 160px; text-align: left;
  padding: 4px 10px; border: 1px solid var(--line); border-radius: 0;
  background: var(--panel); color: var(--text); font: 12px var(--font-body); cursor: pointer;
}
.tournament-dropdown-btn::after { content: " \25BE"; }
.tournament-dropdown-btn:hover { border-color: var(--border); }
.tournament-dropdown-panel {
  position: absolute; left: 0; top: 100%; margin-top: -1px; min-width: 100%;
  background: var(--panel); border: 2px solid var(--border); border-radius: 0;
  padding: 6px 10px; max-height: 200px; overflow-y: auto; z-index: 10;
  white-space: nowrap;
}
.tournament-dropdown-panel.hidden { display: none; }

/* Column picker (teams.html) -- reuses the tournament dropdown; only the
   panel's anchoring/size differ (right-aligned, taller: it lists every
   column grouped, not ~10 tournament names). */
.table-toolbar { display: flex; justify-content: flex-end; margin: 0 0 8px; }
.col-picker .tournament-dropdown-btn { min-width: 0; }
.col-picker .tournament-dropdown-panel { left: auto; right: 0; min-width: 200px; max-height: 380px; }
.col-picker-group { margin: 8px 0 3px; }

/* Hover tooltip for table cells (teams.html's W–L columns) -- same
   panel/border/shadow language as the dropdown panels rather than the
   browser's native title tooltip (slow to appear, unstyled). Fixed-position
   and positioned by script; pointer-events:none so it never steals hover
   from the cell that summoned it. */
.cell-tip {
  position: fixed; z-index: 200; pointer-events: none; white-space: pre; /* pre: a tip may hold a line break */
  padding: 4px 9px; font-size: 12px; font-variant-numeric: tabular-nums;
  background: var(--panel); color: var(--text);
  border: 2px solid var(--border); border-radius: 0;
}
.cell-tip.hidden { display: none; }

/* Themed scrollbar, opt-in: .h-scroll for horizontal (teams.html's table and
   its mirrored top scrollbar), .v-scroll for vertical (team.html's tournament
   list). A slim pill thumb in a soft track,
   muted until hovered/dragged, in place of the browser's default bar.
   Chromium/Safari take the ::-webkit-scrollbar rules; Firefox (which lacks
   that selector) falls back to the standard properties. Not set together:
   Chromium 121+ would ignore the pseudo-elements if the standard
   properties were present. The transparent border + padding-box clip is
   what makes the thumb/track look thinner than their grab area. */
.h-scroll::-webkit-scrollbar { height: 14px; }
.v-scroll::-webkit-scrollbar { width: 14px; }
.h-scroll::-webkit-scrollbar-track, .v-scroll::-webkit-scrollbar-track {
  background: var(--grid); border: 4px solid transparent; background-clip: padding-box; border-radius: 0;
}
.h-scroll::-webkit-scrollbar-thumb, .v-scroll::-webkit-scrollbar-thumb {
  background: var(--muted); border: 4px solid transparent; background-clip: padding-box; border-radius: 0;
}
.h-scroll::-webkit-scrollbar-thumb:hover, .h-scroll::-webkit-scrollbar-thumb:active,
.v-scroll::-webkit-scrollbar-thumb:hover, .v-scroll::-webkit-scrollbar-thumb:active { background: var(--text); background-clip: padding-box; }
@supports not selector(::-webkit-scrollbar) {
  .h-scroll, .v-scroll { scrollbar-width: thin; scrollbar-color: var(--muted) var(--grid); }
}
/* Sized by its 1px-tall inner spacer plus the scrollbar itself. */
.scroll-top { overflow-x: auto; overflow-y: hidden; margin-bottom: 2px; }
.scroll-top > div { height: 1px; }
.scroll-top.hidden { display: none; }

/* Pinned first column for a wide table scrolling horizontally inside
   .table-scroll. border-collapse:separate because in the collapsed model a
   sticky cell's borders belong to the table grid and scroll away with it. */
table.sticky-first { border-collapse: separate; border-spacing: 0; }
/* nowrap on every cell: a squeezed table should scroll, not break "25–16"
   after the dash. */
table.sticky-first td { white-space: nowrap; }
table.sticky-first .team-col, table.sticky-first .team-cell {
  position: sticky; left: 0; background: var(--panel);
  box-shadow: inset -1px 0 0 var(--border);
}
table.sticky-first .team-col { z-index: 2; }
table.sticky-first thead .team-col { background: var(--band); box-shadow: none; }
table.sticky-first .team-cell { z-index: 1; }
table.sticky-first tbody tr:hover .team-cell { background: var(--row-hover); }

/* Sliding segmented control (rank-type/event-tier/match-type radio groups)
   -- unlike this project's existing static `.seg` convention (instant
   color-swap, no motion), the selected option's pill background actually
   slides to its new position via a transitioning absolutely-positioned
   thumb behind the labels. Width/position are percentages of the option
   count, computed in JS (renderMatchFilterBar's sliderGroupHtml/
   updateSliders) -- no pixel measurement needed. */
/* inline-grid with 1fr columns, not flex:1 -- flex can't equalise when the
   longest label's min-content exceeds an equal share, but auto-sized 1fr
   grid tracks all grow to the widest label, which is exactly what the
   100/options.length thumb math assumes. */
.slider-group {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  border: 1px solid var(--line); border-radius: 0; background: var(--panel); padding: 0;
}
.slider-thumb {
  position: absolute; top: 0; bottom: 0; border-radius: 0;
  background: var(--accent); transition: left .18s ease; z-index: 0;
}
.slider-group label {
  position: relative; z-index: 1; padding: 4px 10px; font: 600 11.5px var(--font-body);
  cursor: pointer; color: var(--text); user-select: none; white-space: nowrap;
  transition: color .18s ease; text-align: center;
}
.slider-group label.active { color: var(--on-accent); }
.slider-group input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }

/* Team filter: a text input with autocomplete suggestions, selected teams
   shown as removable tags above the input -- a multi-select combobox
   instead of a checkbox list or single dropdown. */
.team-tag-input {
  position: relative; border: 1px solid var(--line); border-radius: 0;
  background: var(--panel); padding: 5px 6px; min-width: 220px; max-width: 100%;
}
.team-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.team-tags:not(:empty) { margin-bottom: 4px; }
.team-tag {
  display: inline-flex; align-items: center; gap: 4px; background: var(--accent);
  color: var(--on-accent); border-radius: 0; padding: 2px 6px 2px 9px; font: 600 11.5px var(--font-body); white-space: nowrap;
}
.team-tag button {
  background: none; border: none; color: var(--on-accent); cursor: pointer; font-size: 13px;
  line-height: 1; padding: 0 1px; opacity: .85;
}
.team-tag button:hover { opacity: 1; }
.team-tag-input input[type=text] {
  border: none; outline: none; background: transparent; color: var(--text);
  font-size: 12px; width: 100%; padding: 2px 1px;
}
.team-suggestions {
  position: absolute; left: -1px; right: -1px; top: 100%; margin-top: 0;
  background: var(--panel); border: 2px solid var(--border); border-radius: 0;
  max-height: 160px; overflow-y: auto; z-index: 10;
}
.team-suggestions.hidden { display: none; }
.team-suggestion { padding: 5px 9px; font-size: 12px; cursor: pointer; color: var(--text); }
.team-suggestion:hover { background: var(--accent); color: var(--on-accent); }

.crumb { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.map-name-cap { text-transform: capitalize; }
.empty-state { color: var(--muted); font-size: 12.5px; padding: 20px 0; text-align: center; }

/* matches.html's Team1/Score/Team2 matchup columns: "#1 FURIA | 3-13 | HEROIC #17" */
.matchup-team-right { text-align: right; }
.matchup-team-left { text-align: left; }
.matchup-score-cell {
  text-align: center; font: 900 14px var(--font-head); font-variant-numeric: tabular-nums;
  color: var(--text); white-space: nowrap;
}
/* The Score column's header shares the cell class: keep it a normal band label. */
thead th.matchup-score-cell { color: var(--on-band); font: 700 11px/1.3 var(--font-head); }
.matchup-team { font-weight: 700; }
.matchup-rank { color: var(--muted); font: 700 11px var(--font-head); font-variant-numeric: tabular-nums; margin: 0 5px; }

/* ── Team detail page (team.html) ─────────────────────────────────────── */
.stat-tile .tile-sub { font-size: 11.5px; color: var(--muted); margin-top: 1px; font-variant-numeric: tabular-nums; }

/* Sub-tabs under the header/filters/tiles (the one filter bar above them
   governs every tab and stays put while tabs switch). The strip sticks to the
   top of the viewport while a long tab scrolls; its z-index (20) sits below the
   filter dropdowns (30). */
.tab-strip {
  position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 4px 20px; align-items: center;
  margin: 0 -20px 16px; padding: 8px 20px 0; background: var(--bg);
  border-bottom: 2px solid var(--border); font: 700 11.5px var(--font-head);
}
.tab-strip[hidden] { display: none; }
.tab-strip button {
  font: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; cursor: pointer;
  color: var(--muted); background: none; border: none; border-bottom: 4px solid transparent;
  padding: 4px 1px 7px; margin-bottom: -2px;
}
.tab-strip button:hover, .tab-strip button.active { color: var(--text); }
.tab-strip button.active { border-bottom-color: var(--brand); }
.tab-strip button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Recent-form strip: one letter chip per series, oldest to newest. The
   letter (W/L) carries the result; color only reinforces it. */
.form-strip { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: -4px 0 16px; }
.form-strip .form-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-right: 6px; }
.form-chip {
  width: 22px; height: 22px; border-radius: 0; display: inline-flex; align-items: center;
  justify-content: center; font: 900 11px var(--font-head); cursor: default;
}
.form-chip.w { background: var(--good-bg); color: var(--good); }
.form-chip.l { background: var(--bad-bg); color: var(--accent2); }

/* Low-sample map-pool rows: still listed, visibly de-emphasised, and their
   vs-average figures drop the green/red so they don't read as a verdict. */
tr.low-sample td { opacity: .55; }
.low-n-tag {
  font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  border: 1px solid var(--muted); border-radius: 0; padding: 0 4px; margin-left: 6px; white-space: nowrap;
}
.delta-mute { color: var(--muted); }
/* Partial maps (rounds missing from the demo -- common.js partialTexts): a muted warning, not the error red. The
   pill sits next to a score; the dagger marks an aggregated row, explained by the footnote under its table. */
.partial-pill {
  font: 700 10px var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--warn);
  border: 1px solid var(--warn); background: color-mix(in srgb, var(--t-color) 10%, transparent);
  padding: 0 4px; margin-left: 6px; white-space: nowrap; vertical-align: 1px; cursor: help;
}
.partial-mark { color: var(--warn); font-weight: 700; margin-left: 2px; cursor: help; }
.partial-footnote { font-size: 12px; color: var(--muted); margin: 8px 0 0; max-width: 900px; }
.panel:has(> .table-scroll:first-child) > .partial-footnote { margin: 8px 12px 10px; }
.partial-banner {
  border-left: 4px solid var(--warn); background: color-mix(in srgb, var(--t-color) 10%, var(--panel));
  padding: 8px 12px; margin: 0 0 16px; font-size: 13px;
}
.partial-banner strong { color: var(--warn); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; font-size: 11px; margin-right: 8px; }
.cell-delta { font-size: 11px; margin-left: 5px; }
.verdict-line { font-size: 12.5px; margin: 0 0 12px; color: var(--text); }
.verdict-line .verdict-sep { color: var(--muted); margin: 0 8px; }
.panel-note { font-size: 12px; color: var(--muted); margin: -4px 0 10px; }
/* weapons.html's table notes: one definition per line, the full width (the shared notes box caps at 1050px) */
.wp-notes .wp-def { display: block; margin-top: 6px; }
.wp-notes .wp-def:first-child { margin-top: 0; }
.table-notes .panel-note.wp-notes { max-width: none; }
td.wrap { white-space: normal; }
.table-scroll table.compact td, .table-scroll table.compact th { padding-left: 6px; padding-right: 6px; }

/* Rank-over-time line chart. Emphasis form: the rank type the filter bar is
   set to is the accent line, the other one is a muted gray line. Every
   colour is a site token, so dark mode follows the page. */
.chart-wrap { position: relative; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); margin: 0 0 6px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend-line { width: 16px; height: 0; border-top: 2px solid; border-radius: 1px; display: inline-block; }
.legend-line.primary { border-color: var(--accent); }
.legend-line.secondary { border-color: var(--muted); }
.chart-legend .legend-right { margin-left: auto; display: inline-flex; align-items: center; gap: 16px; }
.chart-toggle { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; white-space: nowrap; }
.chart-toggle input { cursor: pointer; margin: 0; }
.legend-band { width: 14px; height: 10px; border-radius: 2px; display: inline-block; background: var(--accent); opacity: .18; }
.rank-chart .tourn-band { fill: var(--accent); opacity: .09; }
svg.rank-chart { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
svg.rank-chart:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.rank-chart .grid { stroke: var(--grid); stroke-width: 1; }
.rank-chart .axis-text { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.rank-chart .end-label { fill: var(--text); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rank-chart .series-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.rank-chart .series-line.primary { stroke: var(--accent); }
.rank-chart .series-line.secondary { stroke: var(--muted); }
.rank-chart .dot { stroke: var(--panel); stroke-width: 2; }
.rank-chart .dot.primary { fill: var(--accent); }
.rank-chart .dot.secondary { fill: var(--muted); }
.rank-chart .crosshair { stroke: var(--muted); stroke-width: 1; }
.chart-tip {
  position: absolute; z-index: 15; pointer-events: none; padding: 6px 10px; font-size: 12px;
  background: var(--panel); color: var(--text); border: 2px solid var(--border); border-radius: 0;
  font-variant-numeric: tabular-nums; min-width: 150px;
}
.chart-tip.hidden { display: none; }
.chart-tip .tip-head { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.chart-tip .tip-row { display: flex; align-items: center; gap: 7px; }
.chart-tip .tip-row strong { font-size: 13px; }
.chart-tip .tip-row .tip-name { color: var(--muted); }
.chart-tip .tip-key { width: 12px; border-top: 2px solid; display: inline-block; }
.chart-tip .tip-key.primary { border-color: var(--accent); }
.chart-tip .tip-key.secondary { border-color: var(--muted); }
.chart-tip .tip-foot { color: var(--muted); font-size: 11px; margin-top: 4px; }
details.chart-table { margin-top: 10px; font-size: 12px; }
details.chart-table summary { cursor: pointer; color: var(--muted); }
details.chart-table table { margin-top: 8px; }
details.chart-table.hidden { display: none; }
td.nowrap { white-space: nowrap; }
/* team.html: the filter bar's tournament list must open ABOVE the sticky
   jump-nav (z-index 20) and stay compact -- ~5 rows, half a sixth showing to
   signal it scrolls. */
body.team-page .tournament-dropdown-panel { z-index: 30; max-height: 140px; }
body.team-page .col-picker .tournament-dropdown-panel { max-height: 380px; }   /* the Players table's column picker */
#playersPanel .toolbar h2 { margin: 0; }
#playersPanel .col-picker { margin-left: auto; }

/* ── Veto board (team.html, Map pool tab) ─────────────────────────────────
   A diverging scale for the seven veto labels, laid out avoided -> wanted
   along each 100%-stacked bar: rust arm = the team avoided the map, navy arm =
   the team wanted it, gray midpoint = neutral (a first ban AGAINST the team
   says little about it). Three steps per arm, ordered by
   strength, derived from the site's own --accent2 / --accent mixed into the
   panel surface at 100/72/50%; each arm passes the dataviz ordinal check
   (monotone lightness, dL >= .06, pale end >= 2:1 on the surface) in both
   themes. -ink is the readable text colour on that step. Blue/rust is
   colour-blind-safe. */
:root {
  --veto-first-ban: #a8442f;          --veto-first-ban-ink: #ffffff;
  --veto-later-ban: #c07869;          --veto-later-ban-ink: #201f1c;
  --veto-picked-against: #d4a297;     --veto-picked-against-ink: #201f1c;
  --veto-first-ban-against: #aca697;  --veto-first-ban-against-ink: #201f1c;
  --veto-later-ban-against: #97a6bc;  --veto-later-ban-against-ink: #201f1c;
  --veto-decider: #697f9e;            --veto-decider-ink: #ffffff;
  --veto-picked-by: #2f4d78;          --veto-picked-by-ink: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --veto-first-ban: #d98871;          --veto-first-ban-ink: #171613;
    --veto-later-ban: #a56b59;          --veto-later-ban-ink: #171613;
    --veto-picked-against: #7d5446;     --veto-picked-against-ink: #f5f2ea;
    --veto-first-ban-against: #726e62;  --veto-first-ban-against-ink: #f5f2ea;
    --veto-later-ban-against: #586678;  --veto-later-ban-against-ink: #f5f2ea;
    --veto-decider: #7085a1;            --veto-decider-ink: #171613;
    --veto-picked-by: #8fadd6;          --veto-picked-by-ink: #171613;
  }
}
.veto-banner { border: 1px dashed var(--accent2); color: var(--accent2); padding: 6px 10px; border-radius: 0; font-size: 12px; margin: 0 0 10px; }
.veto-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.veto-legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.veto-legend i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.veto-legend .veto-axis-cap { margin-left: auto; }
td.veto-plot-cell { min-width: 300px; width: 55%; padding-top: 6px; padding-bottom: 6px; }
.veto-plot { position: relative; height: 24px; width: 100%; }
.veto-seg {
  position: absolute; top: 3px; height: 18px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: default;
  outline: 1px solid var(--panel); outline-offset: -1px;
}
.veto-seg.out-left { border-radius: 4px 0 0 4px; }
.veto-seg.out-right { border-radius: 0 4px 4px 0; }

/* maps.html: a CT/T win% cell is tinted in that side's colour when the map
   favours the side (--k = how strongly, 0..1); the pinned totals row. */
td.tint-ct { background: color-mix(in srgb, var(--ct-color) calc(var(--k, 0) * 38%), transparent); }
td.tint-t  { background: color-mix(in srgb, var(--t-color) calc(var(--k, 0) * 38%), transparent); }
tfoot tr.totals-row td { border-top: 2px solid var(--text); border-bottom: none; font-weight: 700; }

/* map.html's long tables (every team, every map played): a vertical scroll of its own with the header kept in view. */
.table-scroll.tall-scroll { max-height: 480px; overflow-y: auto; }
.tall-scroll thead th { position: sticky; top: 0; z-index: 1; background: var(--band); }
.tall-scroll table tfoot tr td { position: sticky; bottom: 0; z-index: 1; background: var(--panel); color: var(--text); font-weight: 700; border-top: 2px solid var(--line); }
tr.totals-row-inline td { border-top: 2px solid var(--text); font-weight: 700; }

/* Comparison tiles (map.html): a figure, an arrow + difference against a baseline, a label, and the baseline as the sub
   line. tone-value = green up / red down (a rate better or worse than the pool's); tone-neutral = purple up / teal down
   (--hi / --lo; not the CT blue / T gold, not green / red) for figures where more is not better. The arrow carries the direction; colour only reinforces it. */
.tile-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; }
.tile-row .stat-tile { min-width: 0; }
.cmp-tile .tile-value { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 7px; }
.tile-delta { font-size: 11.5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tile-delta.tone-value.up { color: var(--good); }
.tile-delta.tone-value.down { color: var(--accent2); }
.tile-delta.tone-neutral.up { color: var(--hi); }
.tile-delta.tone-neutral.down { color: var(--lo); }
.tile-delta.level { color: var(--muted); font-weight: 400; }

/* map.html's minimum-sample counters (Teams tab), one inside each team table's panel. Reuses .date-filter's row and its
   input chrome, without its rule; the - / + buttons are .date-filter-reset ones made square-ish. */
.panel-counter { padding: 0; margin: 0 0 12px; border-bottom: none; }
.step-btn { padding: 3px 9px; line-height: 1; }
/* A wide table (maps.html with every optional column on) squeezes the first column: keep the totals label on one line. */
.totals-row td:first-child { white-space: nowrap; }

/* ── Match page (match.html, Module 7i): one played map ─────────────────────────────────────────────────────────────
   Chart marks use their own CT / T steps (--ct-mark / --t-mark): the light pair is the site's own data colours; the dark
   pair is darker than --ct-color / --t-color, because those (tuned for text and meters) fail the dataviz lightness band
   for a chart FILL on the dark panel -- validated with the dataviz skill's validate_palette.js, 2026-10-05. The gold's
   2.3:1 against white is the documented relief case: the Economy tab ships a round-by-round table view. */
:root { --ct-mark: #2563eb; --t-mark: #d9a21b; --radar-bg: #1b1d29; --bomb: #ef6a1f; --hl-mark: #c026d3; }
@media (prefers-color-scheme: dark) { :root { --ct-mark: #4a8ff7; --t-mark: #b8891f; --hl-mark: #d946ef; } }
/* --hl-mark: the Economy chart's highlight, validated with the dataviz skill's validate_palette.js beside the CT / T
   marks (light vs #fff, dark vs #2b2d42: lightness, chroma, CVD and normal-vision separation all pass). */

/* Match title: the page's h1, in three columns across the full width and three aligned rows -- team name | score | team
   name, a bar in the team's colour (where other pages' h1s carry the red one) | map | bar, ranks | half scores | ranks --
   then the event facts in a box across the full width. */
.match-banner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px 18px; margin: 4px 0 18px; }
.mb-team { min-width: 0; }
.mb-team.right { text-align: right; }
.mb-team.team-name { display: flex; align-items: center; font: 700 clamp(22px, 2.8vw, 40px)/1.1 var(--font-head); letter-spacing: -.015em; overflow-wrap: anywhere; }
.mb-team.team-name .team-logo { margin: 0 14px 0 0; box-sizing: border-box; width: clamp(48px, 5vw, 66px); height: clamp(48px, 5vw, 66px); padding: 5px; }
.mb-team.team-name.right { justify-content: flex-end; }
.mb-team.team-name.right .team-logo { margin: 0 0 0 14px; }
.mb-team.team-name a { color: inherit; text-decoration: none; }
.mb-team.team-name a:hover { text-decoration: underline; }
.mb-team.team-name.loser { color: var(--muted); }
.mb-bar { display: inline-block; vertical-align: middle; width: clamp(48px, 5vw, 66px); height: 5px; box-shadow: inset 0 0 0 1px rgba(43,45,66,.25); }
.mb-team.rank { font: 700 12px var(--font-head); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.match-banner .score { font: 700 48px/1 var(--font-head); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: center; }
.match-banner .score .sep { color: var(--muted); margin: 0 8px; font-weight: 700; }
.match-banner .score .lose { color: var(--muted); }
.mb-map { text-align: center; font: 700 14px var(--font-head); color: var(--muted); }
.half-line { text-align: center; font: 700 13px var(--font-head); color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* The map info and the round strip share a row (info first); on narrow screens the strip drops below it. */
.rounds-row { display: flex; gap: 0 18px; align-items: stretch; flex-wrap: wrap; }
.rounds-row > #roundsPanel { flex: 999 1 560px; min-width: 0; }
.rounds-row > .mb-info { flex: 1 1 250px; }   /* grows only once it wraps onto its own line */
.mb-info { font-size: 13px; color: var(--muted); line-height: 1.55; }
.mb-info h2 { text-transform: none; }   /* "Map info", as written */
@media (max-width: 700px) { .match-banner .score { font-size: 34px; } .match-banner { gap: 6px 10px; } }
.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; }
.half-line b { font-weight: 700; }
.side-ct { color: var(--ct-color); }
.side-t { color: var(--t-color); }

/* Round strip: one column per round, a row per team; the winner's cell holds an icon in the colour of the side it won
   on (the icon's shape carries how the round ended, so the meaning never rests on colour alone). */
.round-strip-wrap { overflow-x: auto; padding-bottom: 2px; }
.round-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 26px; grid-template-rows: auto var(--rs-cell, 26px) var(--rs-cell, 26px) auto; gap: 2px; align-items: stretch; min-width: max-content; }
.round-strip .rs-label { grid-column: 1; font: 700 12px var(--font-head); color: var(--muted);
  display: flex; align-items: center; white-space: nowrap; padding-right: 8px; }
.round-strip .rs-num { font: 700 calc(10px + (var(--rs-cell, 26px) - 26px) * .15) var(--font-head); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.round-strip .rs-score { padding-top: 4px; font: 600 10px var(--font-head); color: var(--muted); text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.round-strip .rs-cell { background: var(--head-bg); display: flex; align-items: center; justify-content: center; cursor: pointer; border: 2px solid transparent; }
.round-strip .rs-cell.win.ct { background: var(--ct-track); color: var(--ct-mark); }
.round-strip .rs-cell.win.t { background: var(--t-track); color: var(--t-mark); }
.round-strip .rs-cell svg { width: calc(var(--rs-cell, 26px) * .54); height: calc(var(--rs-cell, 26px) * .54); display: block; }
/* a round missing from the demo: hatched, no winner, not clickable */
.legend-dot.nodata, .round-strip .rs-nodata {
  border: 2px solid transparent; cursor: help;
  background: repeating-linear-gradient(135deg, var(--head-bg) 0 4px, color-mix(in srgb, var(--warn) 35%, var(--head-bg)) 4px 6px);
}
.round-strip .rs-cell.selected { border-color: var(--brand); }
.round-strip .rs-gap { width: 8px; }
.round-strip .rs-cell:hover { border-color: var(--border); }
.rs-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.rs-legend span { display: inline-flex; align-items: center; gap: 5px; }
.rs-legend svg { width: 12px; height: 12px; }
.series-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.series-nav[hidden] { display: none; }
.series-nav .ui-button { text-decoration: none; }

/* Segmented toggle (All / CT / T, playback speed, nuke level): a row of square buttons. */
.seg { display: inline-flex; border: 1px solid var(--line); background: var(--panel); }
.seg button { font: 600 11.5px var(--font-body); padding: 4px 10px; background: none; border: none; color: var(--text); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.active { background: var(--accent); color: var(--on-accent); }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 12px; }
.toolbar .sb-cols { margin-left: auto; }   /* the scoreboard's column picker, at the toolbar's right end */
.sb-range { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.sb-range input { width: 52px; font: inherit; padding: 3px 4px; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 0; }
.toolbar .tb-label { font: 700 11px var(--font-head); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* Scoreboard */
.score-team-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px; font: 700 15px var(--font-head); }
/* The team-colour bar, the rounds won (the full wording is the hover text), the plated logo, the name. */
.score-team-head { align-items: stretch; gap: 10px; margin: 0 0 10px; font-size: 17px; }
.score-team-head .tn-swatch { width: 4px; height: auto; align-self: stretch; margin: 0; }
.score-team-head .team-logo { box-sizing: border-box; width: 40px; height: 40px; padding: 4px; margin: 0; align-self: center; }
.score-team-head .sth-won { align-self: center; min-width: 1.6em; text-align: right; font: 700 26px var(--font-head); font-variant-numeric: tabular-nums; }
.score-team-head .sth-name { align-self: center; line-height: 1.25; }
table.scoreboard td.player { font-weight: 600; white-space: nowrap; }
table.scoreboard tfoot td { font-weight: 700; border-top: 2px solid var(--border); padding: 7px 8px; }
/* Fixed layout like the Players table: a modest Player column, the numeric columns share the rest evenly. */
table.scoreboard { table-layout: fixed; }
table.scoreboard th { white-space: normal; }
table.scoreboard td.num { white-space: nowrap; }
table.scoreboard tr.sb-groups th { text-align: center; font: 700 12px var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--text); padding: 9px 0 7px; background: var(--head-bg); border-bottom: 0; }
table.scoreboard .sb-g-start { border-left: 2px solid var(--line); }
table.scoreboard tr.sb-groups + tr th { padding-top: 4px; }
table.scoreboard th:first-child, table.scoreboard td:first-child { width: 190px; }
table.scoreboard th.wb-head, table.scoreboard td.wb-cell { width: 110px; }
/* Player | stats divider, and a clear break between the two teams (and between the filters and the first team). */
table.scoreboard tr > :nth-child(2) { border-left: 2px solid var(--line); }
.scoreboard-gap { height: 0; margin: 30px 0 26px; border-top: 2px solid var(--line); }

/* Economy chart */
.econ-chart { width: 100%; height: auto; display: block; overflow: visible; }
.econ-chart .grid { stroke: var(--grid); stroke-width: 1; }
.econ-chart .axis { stroke: var(--border); stroke-width: 1.5; }
.econ-chart .axis-text { fill: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.econ-chart .team-text { fill: var(--text); font: 700 11px var(--font-head); }
.econ-chart .bar.ct { fill: var(--ct-mark); }
.econ-chart .bar.t { fill: var(--t-mark); }
.econ-chart .won { fill: var(--text); }
.econ-chart .divider { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.econ-chart .hit { fill: transparent; cursor: default; }
.econ-chart .hit:hover, .econ-chart .hit.active { fill: var(--text); fill-opacity: .06; }
.chart-legend-row { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.chart-legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend-row i { width: 12px; height: 12px; display: inline-block; }
.chart-legend-row i.ct { background: var(--ct-mark); }
.chart-legend-row i.t { background: var(--t-mark); }
.chart-legend-row i.won { width: 7px; height: 7px; border-radius: 50%; background: var(--text); }
.buy-tag { font: 700 10px var(--font-head); text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
details.table-view { margin-top: 12px; font-size: 12px; }
details.table-view summary { cursor: pointer; color: var(--muted); }
details.table-view table { margin-top: 8px; }

/* Radar */
.radar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
@media (max-width: 900px) { .radar-layout { grid-template-columns: 1fr; } }
.radar-stage { position: relative; background: var(--radar-bg); aspect-ratio: 1 / 1; width: 100%; max-width: 760px; }
.radar-stage canvas { display: block; width: 100%; height: 100%; }
.radar-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #c9cfdb; font-size: 13px; text-align: center; padding: 20px; }
.radar-msg[hidden] { display: none; }
.radar-side { display: flex; flex-direction: column; gap: 12px; }
.radar-round-head { display: flex; align-items: center; gap: 8px; }
.radar-round-head .round-title { font: 700 16px var(--font-head); flex: 1; }
.radar-round-head .round-sub { display: block; font: 400 12px var(--font-body); color: var(--muted); }
.icon-btn { font: 700 13px var(--font-head); background: var(--panel); color: var(--text); border: 1px solid var(--line); padding: 4px 10px; cursor: pointer; }
.icon-btn:hover { border-color: var(--border); }
.icon-btn:disabled { opacity: .4; cursor: default; }
.play-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.play-btn { min-width: 74px; }
.clock { font: 700 22px var(--font-head); font-variant-numeric: tabular-nums; }
.clock-sub { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.clock-sub.bomb { color: var(--bomb); font-weight: 700; }
.scrub-wrap { position: relative; padding-top: 10px; }
.scrub-wrap input[type=range] { width: 100%; margin: 0; accent-color: var(--accent); }
.scrub-marks { position: absolute; left: 0; right: 0; top: 0; height: 9px; pointer-events: none; }
.scrub-marks i { position: absolute; top: 0; width: 2px; height: 9px; transform: translateX(-1px); }
.scrub-marks i.ct { background: var(--ct-mark); }
.scrub-marks i.t { background: var(--t-mark); }
.scrub-marks i.plant { background: var(--bomb); height: 9px; width: 3px; }
.scrub-scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.check-row { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; }
.check-row label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.roster-live { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.roster-live .rl-team { font: 700 11px var(--font-head); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }
.roster-live .rl-row { display: grid; grid-template-columns: 1fr auto; gap: 0 6px; font-size: 11.5px; padding: 2px 0; border-bottom: 1px solid var(--grid); }
.roster-live .rl-row.dead { opacity: .45; }
.roster-live .rl-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roster-live .rl-wpn { color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.roster-live .hp { grid-column: 1 / -1; height: 3px; background: var(--grid); margin-top: 2px; }
.roster-live .hp i { display: block; height: 3px; }
.roster-live .hp i.ct { background: var(--ct-mark); }
.roster-live .hp i.t { background: var(--t-mark); }
.bomb-dot { display: inline-block; width: 7px; height: 7px; background: var(--bomb); margin-left: 4px; vertical-align: middle; }
.killfeed { max-height: 330px; overflow-y: auto; border-top: 2px solid var(--border); }
.killfeed .kf-row { display: grid; grid-template-columns: 38px 1fr; gap: 6px; padding: 5px 4px; font-size: 12px; border-bottom: 1px solid var(--grid); cursor: pointer; }
.killfeed .kf-row:hover { background: var(--row-hover); }
.killfeed .kf-row.future { opacity: .45; }
.killfeed .kf-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.killfeed .kf-line { min-width: 0; }
.killfeed .kf-wpn { color: var(--muted); margin: 0 4px; white-space: nowrap; }
.killfeed .kf-flag { display: inline-block; font: 700 9.5px var(--font-head); border: 1px solid var(--line); color: var(--muted); padding: 0 3px; margin-left: 3px; vertical-align: 1px; }
.killfeed .kf-flag.trade { border-color: var(--good); color: var(--good); }
.killfeed .kf-arrow { color: var(--muted); margin-left: 3px; }
.killfeed .kf-assist { display: block; font-size: 11px; color: var(--muted); }
.killfeed .kf-empty { color: var(--muted); font-size: 12px; padding: 10px 4px; }
.radar-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--panel); color: var(--text); border: 2px solid var(--border);
  padding: 4px 9px; font-size: 12px; white-space: pre; font-variant-numeric: tabular-nums; }
.radar-tip[hidden] { display: none; }
/* a live player's hover card (the user's sketch, 2026-10-13): name | HP over armour | gun; grenades / kit underneath */
.radar-tip.card { padding: 0; border: none; background: none; white-space: normal; }
.pt-card { display: grid; grid-template-columns: auto auto auto; grid-template-areas: "name vit gun" "name kit kit";
  align-items: center; gap: 2px 12px; padding: 7px 14px 7px 12px; background: var(--hud-card); color: var(--hud-text);
  border: 2px solid var(--hud-ct); border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.pt-card.t { border-color: var(--hud-t); }
.pt-name { grid-area: name; font: 700 18px var(--font-head); white-space: nowrap; }
.pt-round { font: 600 11px var(--font-body); color: var(--hud-muted); margin-left: 5px; }
.pt-vitals { grid-area: vit; font: 700 12px var(--font-body); line-height: 1.25; text-align: right; white-space: nowrap; }
.pt-ar { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-height: 14px; }
.pt-gun { grid-area: gun; display: flex; align-items: center; }
.pt-kit { grid-area: kit; display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.kbd-hint { font-size: 11px; color: var(--muted); }

/* Radar tab, v2 (the old single-map page's Player positions panel, ported): controls left, the square radar right, the
   playback row under both, then each player's status and the kill feed. */
.rc-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-areas: "col canvas" "play play"; gap: 14px 18px; align-items: start; }
.rc-col { grid-area: col; display: flex; flex-direction: column; gap: 10px; font-size: 12px; max-height: 960px; overflow-y: auto; padding-right: 4px; }
.rc-canvas-col { grid-area: canvas; }
.rc-canvas-col .radar-stage { max-width: 780px; }
.rc-playback { grid-area: play; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rc-playback.disabled { opacity: .4; pointer-events: none; }
.rc-playback .scrub-wrap { flex: 1 1 260px; }
.rc-playback select, .rc-playback input[type=number], .rc-row input[type=number], .rc-grid2 select {
  font: inherit; padding: 2px 4px; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 0; }
.rc-playback input[type=number], .rc-row input[type=number] { width: 58px; }
.rc-tail { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }

/* L7 F2: equipment icons -- single-tone art drawn as a mask in the text colour (assets/equipment/, icons.js) */
.eq { display: inline-block; flex: none; vertical-align: middle; background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-position: center; mask-position: center; }
.eq.eq-bomb { color: var(--bomb); }

/* the broadcast HUD above the map (the user's second picture): team cards, the clock between them. Always dark, like
   the radar under it; fill = HP in the side colour. */
:root { --hud-bg: #10121a; --hud-card: #1d2030; --hud-text: #f4f6fa; --hud-muted: #9aa1b5; --hud-dead: #2a2c36;
  --hud-ct: #3b6fd1; --hud-t: #9a6d12; --hud-ct-text: #8fb6ff; --hud-t-text: #f0c35a; }
.rc-round-title { font: 700 13px var(--font-head); margin: 0 0 6px; }
.rc-round-title .delta-mute { font-weight: 400; }
.rc-hud { display: grid; grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr); gap: 6px; max-width: 860px;
  background: var(--hud-bg); color: var(--hud-text); padding: 6px; margin-bottom: 6px; }
.hud-team { min-width: 0; }
.hud-team-name { font: 700 10.5px var(--font-head); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 4px 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-team-name.ct { color: var(--hud-ct-text); }
.hud-team-name.t { color: var(--hud-t-text); }
.hud-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
.hud-card { position: relative; background: var(--hud-card); padding: 3px 4px 0; min-height: 52px; overflow: hidden; cursor: default;
  display: flex; flex-direction: column; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.hud-card > * { position: relative; }
.hud-card .hud-fill { position: absolute; left: 0; top: 0; bottom: 31px; background: var(--hud-ct); transition: width .15s; }
.hud-card.t .hud-fill { background: var(--hud-t); }
.hud-row { display: flex; align-items: center; justify-content: space-between; gap: 2px; min-height: 12px; }
.hud-kit { display: flex; align-items: center; gap: 1px; min-width: 0; overflow: hidden; }
/* the gun on a row of its own, so the wide rifle art is never cut off */
.hud-gun { flex: 1; justify-content: flex-start; min-height: 18px; }
.hud-gun .eq { max-width: 100%; }                 /* an AWP is wider than a narrow card: the mask scales down to fit */
.hud-name { display: flex; justify-content: space-between; align-items: baseline; gap: 3px; font: 700 11px var(--font-head);
  height: 16px; line-height: 16px; margin: 0 -4px; padding: 0 4px; background: rgba(0,0,0,.35); white-space: nowrap; }
.hud-name > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* HP on its own row under the name, so the name gets the card's full width */
.hud-hp { font: 700 12px var(--font-head); font-variant-numeric: tabular-nums; height: 15px; line-height: 15px; text-align: right; }
.hud-card:not(.dead):hover { box-shadow: inset 0 0 0 2px #ffffff; }
.hud-card.dead { background: var(--hud-dead); color: var(--hud-muted); }
.hud-card.dead .hud-gun { justify-content: center; opacity: .7; }
.hud-empty { font: 700 11px var(--font-head); text-transform: uppercase; color: var(--hud-muted); padding: 4px 2px; }
.hud-empty span { display: block; font: 400 11.5px var(--font-body); text-transform: none; margin-top: 4px; }
/* the clock: fixed width and height, so a status change never moves anything */
.hud-clock { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--hud-card); padding: 2px 3px; }
.hud-clock .clock { color: var(--hud-text); line-height: 1.1; }
.hud-clock .clock-sub { color: var(--hud-muted); font-size: 10px; line-height: 1.2; height: 24px; overflow: hidden; }
.hud-clock.bomb .clock { color: #ff5b4d; }
.hud-clock .clock-sub.bomb { color: #ff8a6b; }
.rc-canvas-col .radar-stage { max-width: 774px; width: 90%; }   /* 10% under the old 860px / full width */
@media (max-width: 900px) { .rc-canvas-col .radar-stage { width: 100%; max-width: 860px; } }   /* stacked layout: full width */
@media (max-width: 900px) {
  .rc-hud { grid-template-columns: 1fr; }
  .hud-clock { flex-direction: row; gap: 8px; }
  .hud-clock .clock-sub { height: auto; }
}
/* the in-game kill feed, in the map's top-right corner (the last few seconds' kills) */
.radar-feed { position: absolute; top: 8px; right: 8px; z-index: 4; display: flex; flex-direction: column; align-items: flex-end;
  gap: 3px; max-width: calc(100% - 16px); pointer-events: none; }
.rf-row { display: flex; align-items: center; gap: 5px; padding: 3px 7px; background: rgba(12,13,20,.82); color: var(--hud-text);
  font: 700 11.5px var(--font-body); white-space: nowrap; cursor: pointer; pointer-events: auto; border: 1px solid transparent; }
.rf-row:hover { border-color: var(--hud-muted); }
.rf-row.team { border-color: #c2410c; }
.rf-ct { color: var(--hud-ct-text); }
.rf-t { color: var(--hud-t-text); }
.rf-plus, .rf-round { color: var(--hud-muted); font-weight: 400; }
.rf-flag { font: 700 9px var(--font-head); color: var(--hud-muted); border: 1px solid rgba(255,255,255,.25); padding: 0 3px; }
/* the Utility tab: per-team tables, then the map's best grenades */
.ut-team { font: 700 14px var(--font-head); margin: 14px 0 6px; }
.ut-team:first-child { margin-top: 4px; }
.ut-table { width: 100%; }
.ut-table tfoot td { font-weight: 700; border-top: 2px solid var(--border); }
.ut-best { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .ut-best { grid-template-columns: 1fr; } }
.ut-best h3 { font: 700 13px var(--font-head); margin: 0 0 6px; }
.ut-best ol { margin: 0; padding-left: 20px; }
.ut-best li { margin-bottom: 8px; font-size: 12.5px; }
.ut-best li > span:first-child { font-weight: 700; }

/* L7 F2: the round's utility per player */
.rc-utility { margin-top: 14px; }
.rc-utility[hidden] { display: none; }
.ru-head { font: 700 11px var(--font-head); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.ru-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }   /* one side opened never stretches the other */
@media (max-width: 900px) { .ru-grid { grid-template-columns: minmax(0, 1fr); } }
.ru-grid > * { min-width: 0; max-width: 100%; overflow-x: auto; }   /* a wide table scrolls inside its own box, never the page (390 px) */
.ru-grid > table { display: block; }   /* overflow needs a block box: the table's rows sit in an anonymous table inside it */
.ru-table { width: 100%; }
.ru-table th.ru-team.ct { color: var(--ct-color); }
.ru-table th.ru-team.t { color: var(--t-color); }
.ru-table .ru-name { font-weight: 600; white-space: nowrap; }
.ru-table .ru-icons { white-space: nowrap; }
.ru-table .ru-icons .eq { margin-right: 2px; }
.ru-detail .ru-nade-name { white-space: nowrap; }
.ru-detail .ru-ok { color: var(--good); font-weight: 700; text-align: center; }
.ru-detail-row > td { padding-top: 0; }
/* the full kill list, folded under the playback row */
.rc-kills { margin-top: 14px; }
.rc-kills > summary { cursor: pointer; font: 700 11px var(--font-head); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.rc-kills > summary .delta-mute { font-weight: 400; }
@media (max-width: 900px) { .rc-layout { grid-template-columns: 1fr; grid-template-areas: "canvas" "play" "col"; } .rc-col { max-height: none; } }
.rc-block { border-top: 1px solid var(--grid); padding-top: 8px; }
.rc-block:first-child { border-top: none; padding-top: 0; }
.rc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px;
  font: 700 11px var(--font-head); text-transform: uppercase; letter-spacing: .04em; }
.rc-links { font: 400 11.5px var(--font-body); text-transform: none; letter-spacing: 0; color: var(--muted); }
.rc-links .link-btn.active { color: var(--text); font-weight: 700; text-decoration: underline; }
.rc-team { margin-bottom: 8px; }
.rc-team-head { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; margin-bottom: 3px; }
.rc-team-head .rc-team-name { font-weight: 700; }
.rc-team-head label { display: inline-flex; align-items: center; gap: 3px; cursor: pointer; font-weight: 700; }
.rc-player { display: flex; align-items: center; gap: 6px; padding: 1px 0 1px 2px; cursor: pointer; }
.player-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 3px solid; margin-right: 4px; vertical-align: -1px; flex-shrink: 0; }
.rc-rounds { display: flex; align-items: flex-start; gap: 6px; }
.rc-round-grid { display: flex; flex-wrap: wrap; gap: 3px; flex: 1; }
.rc-round-grid button { width: 27px; height: 23px; padding: 0; font: 700 10.5px var(--font-head); cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font-variant-numeric: tabular-nums; }
.rc-round-grid button.ct-won { box-shadow: inset 0 -3px 0 var(--ct-mark); }
.rc-round-grid button.t-won { box-shadow: inset 0 -3px 0 var(--t-mark); }
.rc-round-grid button.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.rc-grid2 { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; align-items: center; margin-top: 6px; }
.rc-row { display: flex; align-items: center; gap: 6px 8px; flex-wrap: wrap; margin-top: 6px; }
.rc-row .tb-label { min-width: 62px; }
.rc-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.rc-more summary { cursor: pointer; color: var(--muted); margin-top: 8px; }
.rc-h2h { margin-top: 8px; font-weight: 700; }
.rc-summary { background: var(--head-bg); padding: 6px 8px; font-size: 12px; }
.rc-status { color: var(--muted); font-size: 11.5px; margin-left: 8px; }
.seg button:disabled { opacity: .4; cursor: default; }

/* Scoreboard: the EEK breakdown under a player's row (Weapons), and each weapon's duels */
table.scoreboard td.wb-cell { width: 1%; white-space: nowrap; text-align: right; }
.wb-btn { font: 600 11.5px var(--font-body); padding: 2px 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; }
.wb-btn.open { background: var(--border); color: var(--panel); border-color: var(--border); }
table.scoreboard tr.wb-row > td { background: var(--head-bg); padding: 10px 12px 12px; }
.wb-note { font-size: 12px; color: var(--muted); margin-bottom: 6px; max-width: 900px; }
.wb-note.wp-notes { max-width: none; }
.wb-nodule td { color: var(--muted); }
.wb-empty { font-size: 12px; color: var(--muted); padding: 4px 0; }
table.wb-table, table.wb-duel-table { width: auto; min-width: 560px; background: var(--panel); }
table.wb-table td, table.wb-table th { padding: 4px 10px; }
tr.wb-weapon { cursor: pointer; }
tr.wb-weapon:hover, tr.wb-weapon:focus-visible, tr.wb-duel:hover, tr.wb-duel:focus-visible { background: var(--head-bg); outline: none; }
tr.wb-weapon.open { font-weight: 700; }
.wb-caret { display: inline-block; width: 1em; color: var(--muted); }
tr.wb-duels > td { padding: 4px 0 8px 22px !important; }
tr.wb-duel { cursor: pointer; }
td.wb-inv { color: var(--muted); max-width: 320px; }
table.wb-table tfoot td { font-weight: 700; border-top: 2px solid var(--border); }

/* Economy: the highlight toggle and the buy matrices */
.econ-chart .band { fill: transparent; }
.econ-chart .band.hl { fill: var(--hl-mark); fill-opacity: .12; }
.econ-chart .bar.hl { fill: var(--hl-mark); }
.chart-legend-row i.hl { background: var(--hl-mark); }
.econ-hl-count { font-size: 12px; color: var(--muted); }
.buy-matrices { display: flex; flex-wrap: wrap; gap: 18px 36px; align-items: flex-start; }
.buy-matrices > * { min-width: 0; max-width: 100%; overflow-x: auto; }   /* the gun-round matrix scrolls in its box on a phone */
.bm-title { font: 700 11px var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 6px; }
table.buy-matrix { width: auto; border-collapse: separate; border-spacing: 3px; }
table.buy-matrix th { font: 700 12px var(--font-head); padding: 4px 8px; text-align: center; background: transparent !important;
  color: var(--text); position: static; text-transform: none; letter-spacing: 0; box-shadow: none; }
table.buy-matrix tbody th { text-align: right; }
table.buy-matrix th.bm-corner { text-align: left; font-weight: 400; font-size: 11px; color: var(--muted); line-height: 1.3; }
table.buy-matrix th.bm-corner span { display: block; }
td.bm-cell { width: 92px; height: 54px; text-align: center; vertical-align: middle; background: var(--head-bg); cursor: default; padding: 4px; }
td.bm-cell[data-rounds]:hover, td.bm-cell[data-rounds]:focus-visible { outline: 2px solid var(--hl-mark); outline-offset: -2px; }
td.bm-cell.empty { color: var(--muted); background: none; border: 1px dashed var(--grid); }
.bm-score { display: block; font: 700 17px var(--font-head); font-variant-numeric: tabular-nums; color: var(--muted); }
.bm-score b { font-weight: 700; }
.bm-score b.bm-lead { color: var(--text); }
.bm-n { display: block; font-size: 11px; color: var(--muted); }

/* ── Series page (series_detail.html, Module 7j): one series ─────────────────────────────────────────────────────────
   The match page's banner / info box / round strip / scoreboard / buy matrices, plus a card per map (in play order, the
   unplayed picks greyed) and the veto steps. */
/* three columns, read left to right: pick / ban, the maps, the game info. Under 1200px the maps take a full row on top and
   the other two sit side by side below; on a phone everything stacks (maps, pick / ban, info). */
.series-cols { display: grid; grid-template-columns: 250px minmax(0, 1fr) 250px; gap: 0 18px; align-items: stretch; }      /* equal-height panels: a Bo1 or a 2-0 has a short Maps panel beside a veto list of seven fixed-height steps, and their bottoms used to disagree */
.series-cols > .panel { min-width: 0; margin-bottom: 18px; }
.series-cols > #mapsPanel { order: 2; }
.series-cols > #vetoPanel { order: 1; }
.series-cols > #eventInfo { order: 3; }
@media (max-width: 1199px) {
  .series-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .series-cols > #mapsPanel { order: 0; grid-column: 1 / -1; }
}
@media (max-width: 700px) { .series-cols { grid-template-columns: minmax(0, 1fr); } .series-cols > .panel { grid-column: 1; } }
/* the veto column is as tall as the Maps panel beside it: its strips share the height (between 40 and 72px each) */
.series-cols > #vetoPanel { align-self: stretch; display: flex; flex-direction: column; }
.series-cols > #vetoPanel[hidden] { display: none; }
.sd-vsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.series-cols, .mb-info, .mb-pic { --veto-bg: #2b2d42; --veto-ban-bg: #7a1c2a; }   /* the palette's dark blue, in both themes: the strips carry white text */
.sd-vstep { position: relative; flex: 1 1 0; min-height: 52px; max-height: 72px; background: var(--veto-bg); overflow: hidden; display: flex; align-items: flex-end; color: #fff; }
.sd-vstep img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.sd-vscore { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); z-index: 1; font: 700 17px Arial, sans-serif; }
.sd-vscore .lose { color: rgba(255,255,255,.6); }
.sd-vscore.np { font: italic 12px var(--font-body); color: rgba(255,255,255,.7); }
.sd-vhit { position: absolute; inset: 0; z-index: 3; }
.sd-vstep.linked:hover { outline: 2px solid #fff; outline-offset: -2px; }
.sd-vstep.linked:has(.sd-vhit:focus-visible) { outline: 2px solid #fff; outline-offset: -2px; }
.sd-vbar { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; z-index: 2; }
.sd-vtext { position: relative; z-index: 1; display: flex; flex-direction: column; padding: 6px 10px 6px 12px; min-width: 0; line-height: 1.25; }
.sd-vmap { font: 700 15px Arial, sans-serif; }
.sd-vwho { font-size: 12px; color: rgba(255,255,255,.85); }
.sd-vwho b { font: 700 10px Arial, sans-serif; text-transform: uppercase; letter-spacing: .04em; margin-right: 4px; color: #fff; }
.sd-vstep.first_ban, .sd-vstep.later_ban { background: var(--veto-ban-bg); }
.sd-vstep.first_ban img, .sd-vstep.later_ban img { filter: grayscale(1); }
.sd-vstep.first_ban .sd-vmap, .sd-vstep.later_ban .sd-vmap { text-decoration: line-through; color: rgba(255,255,255,.7); }
.sd-vstep.decider { outline: 2px solid var(--muted); outline-offset: -2px; }
/* the map's picture on the match page: the veto strip's look (the photo at 30% on the dark blue), the map's name over it */
/* the match page's Rounds panel: the strip and its legend sit in the middle of what is left under the heading */
.rounds-row > #roundsPanel { display: flex; flex-direction: column; }
.rounds-row > #roundsPanel[hidden] { display: none; }
#roundsPanel .round-strip-wrap { margin-top: auto; }
#roundsPanel .round-strip { margin: 0 auto; }
#roundsPanel .rs-legend { justify-content: center; margin: 14px 0 auto; }
.rounds-row > .mb-pic { flex: 0 0 96px; position: relative; padding: 0; overflow: hidden; background: var(--veto-bg); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; color: #fff; }
.mb-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.mb-pic span { position: relative; padding: 12px 10px; font: 700 22px Arial, sans-serif; writing-mode: vertical-rl; transform: rotate(180deg); }
.mb-pic[hidden] { display: none; }
@media (max-width: 900px) { .rounds-row > .mb-pic { flex: 1 1 100%; min-height: 90px; margin-bottom: 18px; } .mb-pic span { writing-mode: horizontal-tb; transform: none; } }
.mi-row { display: flex; flex-direction: column; padding: 6px 0; border-top: 1px solid var(--grid); }
.mi-row:first-of-type { border-top: none; }
.mi-label { font: 700 10px var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.mi-val { color: var(--text); font-size: 13px; }
.mi-link { padding-top: 8px; border-top: 1px solid var(--grid); }
.sd-map { padding: 10px 0 12px; border-top: 1px solid var(--grid); }
.sd-map:first-child { border-top: none; padding-top: 2px; }
.sd-map-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; }
.sd-map-n { font: 700 11px var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.sd-map-name { font: 700 15px var(--font-head); }
.sd-map-how, .sd-map-np { font-size: 12px; color: var(--muted); }
.sd-map-score { font: 700 15px var(--font-head); font-variant-numeric: tabular-nums; }
.sd-map-score .sep { color: var(--muted); margin: 0 3px; }
.sd-map-score .lose, .sd-map-line .lose { color: var(--muted); }
.sd-map-open { margin-left: auto; font-size: 12px; }
.sd-map.unplayed .sd-map-name { color: var(--muted); }
.sd-map.unplayed .sd-map-np { font-style: italic; }
/* a map outside the Maps selector's scope: dimmed, still readable and clickable */
.sd-map.out-of-scope .round-strip, .sd-map.out-of-scope .sd-map-head > :not(.sd-map-open) { opacity: .45; }
/* a buy-matrix cell's rounds while it is hovered (the Economy tab) */
.round-strip .rs-cell.hl { box-shadow: inset 0 0 0 2px var(--hl-mark); }
.sd-one-map { font-size: 12px; }
.veto-word { font: 700 10.5px var(--font-head); text-transform: uppercase; letter-spacing: .04em; }
.veto-word.picked_by { color: var(--good); }
.veto-word.first_ban, .veto-word.later_ban { color: var(--accent2); }
.veto-word.decider { color: var(--muted); }
td.sd-plot { min-width: 220px; width: 30%; }
.half-line.sd-map-line { white-space: normal; max-width: min(46vw, 440px); margin: 0 auto; }   /* "ancient 5–13, mirage 5–13, ..." wraps on a phone instead of widening the banner */
table.scoreboard th.wb-head { position: relative; }   /* its .sr-only label is absolute: anchored here it stays inside the table's scroll box instead of widening the page on a phone */
@media (max-width: 700px) { .mb-team.rank { white-space: normal; } }   /* "VRS #4 · HLTV #10" wraps in its banner column on a phone */
@media (max-width: 700px) { .half-line.sd-map-line { max-width: 28vw; font-size: 11px; } }   /* leaves the team names their width */

/* 7j round 2: the series info's veto lines, the swing-round list, and the affinity comparison chart. The chart's two team
   marks are categorical slots 7 / 5 of the dataviz reference palette (violet, magenta) -- validated with validate_palette.js
   as a pair on #fff (light: all gates pass; magenta 2.7:1 -> relief: every bar carries its value, the table above) and on
   #2b2d42 (dark: all pass). Not the teams' own colours (unvalidated) and not CT blue / T gold (they mean sides here). */
:root { --aff-a: #4a3aa7; --aff-b: #e87ba4; }
@media (prefers-color-scheme: dark) { :root { --aff-a: #9085e9; --aff-b: #d55181; } }
h3.sd-sub { font: 700 11px var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 14px 0 6px; }
.mb-info h3.sd-sub { margin-top: 10px; }
ol.sd-veto-lines { margin: 0; padding-left: 20px; font-size: 12.5px; line-height: 1.6; }
ol.sd-veto-lines li.picked_by { color: var(--text); font-weight: 600; }
ol.sd-veto-lines li.decider { font-style: italic; }
.aff-chart { width: 100%; max-width: 900px; height: auto; display: block; overflow: visible; }
.aff-chart .grid { stroke: var(--grid); stroke-width: 1; }
.aff-chart .aff-zero { stroke: var(--border); stroke-width: 1.5; }
.aff-chart .axis-text { fill: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
.aff-chart .aff-map { fill: var(--text); font: 700 12.5px var(--font-head); }
.aff-chart .aff-val { fill: var(--text); font-size: 11px; font-variant-numeric: tabular-nums; }
.aff-chart .aff-bar.a { fill: var(--aff-a); }
.aff-chart .aff-bar.b { fill: var(--aff-b); }
.aff-chart .aff-bar.low { fill-opacity: .4; }
.aff-chart .aff-hit { fill: transparent; }
.aff-chart .aff-hit:hover { fill: var(--text); fill-opacity: .05; }
.chart-legend-row i.aff-a { background: var(--aff-a); }
.chart-legend-row i.aff-b { background: var(--aff-b); }
.chart-legend-row i.aff-low { background: var(--muted); opacity: .4; }
.aff-chart .aff-sep { stroke-dasharray: 2 3; }

/* ── tournament.html (Module 7k) ─────────────────────────────────────────── */
.tn-chain { font-size: 12.5px; color: var(--muted); margin: -4px 0 12px; }
.tn-chain b { color: var(--text); }
.muted { color: var(--muted); }
.tn-qual { line-height: 1.6; }
.tn-nowrap { white-space: nowrap; }
/* a team's hand-drawn logo (teamLogo() in common.js); the plate keeps black logos visible in dark mode */
.team-logo { display: inline-block; flex: none; object-fit: contain; background: var(--logo-plate); border-radius: 6px; padding: 2px; vertical-align: middle; margin-right: 8px; }
/* the text column stretches to the logo's height: name (and its colour bar) at the top, rank line at the bottom */
.team-head { display: flex; align-items: stretch; gap: 26px; margin: 22px 0 14px; }
.team-head > div { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-width: 0; }
.team-head .team-logo { margin: 0; padding: 8px; width: clamp(96px, 16vw, 152px); height: clamp(96px, 16vw, 152px); }
.team-head h1 { margin-bottom: 0; font-size: clamp(40px, 6.5vw, 78px); line-height: .95; }
.team-head h1.team-colored::after { width: clamp(80px, 11vw, 128px); height: 9px; margin-top: 16px; }
.team-head .subtitle { margin: 0; line-height: 1.2; }
/* the team colour bar left of a name */
.tn-swatch { display: inline-block; width: 4px; height: 13px; margin-right: 6px; vertical-align: -2px; flex: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
#placeTable tr.tn-tier-start td { border-top: 2px solid var(--grid); }
#placeTable td:first-child { white-space: nowrap; font-weight: 600; }
#placeTable tr.tn-qualified td:first-child { color: var(--good); }
/* a match box (brackets + the Swiss board) */
.tn-bx { display: flex; flex-direction: column; justify-content: center; gap: 1px; box-sizing: border-box;
  border: 1px solid var(--line); background: var(--panel); padding: 3px 7px; color: var(--text); text-decoration: none;
  font-size: 12px; line-height: 1.35; }
a.tn-bx:hover { border-color: var(--border); }
.tn-inferred { opacity: .7; border-style: dashed !important; }
/* brackets: absolutely placed boxes over an SVG of elbow lines */
.tn-groups { display: flex; flex-wrap: wrap; gap: 18px 28px; }
/* a round-robin group: standing + a half grid of the results (row i x column j, j after i) */
.tn-rr { min-width: 0; max-width: 100%; }
.tn-rr-table { border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.tn-rr-table th, .tn-rr-table td { padding: 0; }
.tn-rr-th { font: 600 11px var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-align: left; padding: 0 10px 6px 0 !important; vertical-align: bottom; white-space: nowrap; }
.tn-rr-th.num { text-align: right; }
.tn-rr-colhead { width: 62px; height: 118px; vertical-align: bottom; padding: 0 0 6px 0 !important; }
.tn-rr-v { display: block; writing-mode: vertical-rl; transform: rotate(180deg); margin: 0 auto; max-height: 112px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font: 600 11.5px var(--font-body); color: var(--muted); cursor: help; }
.tn-rr-table td { height: 34px; }
.tn-rr-rank { width: 22px; font-weight: 700; color: var(--muted); }
.tn-rr-team { padding-right: 12px !important; white-space: nowrap; min-width: 150px; }
.tn-rr-wl { padding-right: 12px !important; font-variant-numeric: tabular-nums; font-weight: 600; }
.tn-rr-next { padding-right: 14px !important; white-space: nowrap; font-size: 11.5px; }
.tn-rr-adv .tn-rr-next { color: var(--good); font-weight: 600; }
.tn-rr-h2h { font: 700 9px var(--font-head); letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line); padding: 0 3px; margin-left: 4px; cursor: help; vertical-align: 1px; }
.tn-rr-cell { position: relative; width: 62px; min-width: 62px; text-align: center; border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tn-rr-cell a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 34px; color: inherit; text-decoration: none; }
.tn-rr-cell a:hover { background: rgba(127,127,127,.14); }
.tn-rr-w { background: var(--good-bg); color: var(--text); font-weight: 600; }
.tn-rr-l { background: var(--bad-bg); color: var(--muted); }
.tn-rr-none { color: var(--muted); border-style: dashed; }
.tn-rr-blank { border: 0; }
.tn-rr-cell .tn-bx-partial { top: 1px; right: 3px; }
.tn-bracket { min-width: 0; max-width: 100%; }
.tn-bracket-wide { flex: 1 1 100%; }
.tn-side { margin-bottom: 10px; }
.tn-side-title { font: 600 11px var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 4px 0 4px; }
.tn-br-scroll { overflow-x: auto; max-width: 100%; padding-bottom: 4px; }
.tn-br { position: relative; }
.tn-br > .tn-bx { position: absolute; }
.tn-pool > .tn-bx { position: relative; }
.tn-bx-partial { position: absolute; top: 0; right: 1px; margin: 0; font-size: 9px; line-height: 1; }
.tn-br-lines { position: absolute; left: 0; top: 0; pointer-events: none; }
.tn-br-lines path { fill: none; stroke: var(--line); stroke-width: 1.5; }
.tn-col-head { position: absolute; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: help; }
/* Swiss board (HLTV-style): a column per round, pools stacked, result boxes green / red */
.tn-sw-scroll { overflow-x: auto; max-width: 100%; padding-bottom: 4px; }
.tn-sw-board { display: flex; gap: 22px; align-items: stretch; min-width: max-content; }
.tn-sw-col { display: flex; flex-direction: column; justify-content: center; gap: 14px; min-width: 150px; }
.tn-sw-col > .tn-pool { width: 150px; }
.tn-pool { display: flex; flex-direction: column; gap: 5px; }
.tn-pool > .tn-bx { height: 48px; }
.tn-pool-head { font: 700 12.5px var(--font-head); color: var(--muted); cursor: help; }
.tn-res-row { display: flex; gap: 6px; }
.tn-res-box { flex: 1; min-width: 124px; padding: 6px 8px; font-size: 12px; line-height: 1.7; }
.tn-res-box .tn-pool-head { color: inherit; text-align: center; cursor: default; }
.tn-res-adv { background: var(--good-bg); border: 1px solid var(--good); }
.tn-res-out { background: var(--bad-bg); border: 1px solid var(--brand-ink); }
.tn-res-team { display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-res-team a { color: var(--text); }
/* the tiles under the event name (and the upcoming ones above the list) */
.tn-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 14px 0 16px; }
.tn-tile { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); background: var(--panel); padding: 12px 14px; color: var(--text); text-decoration: none; min-width: 0; }
a.tn-tile:hover { border-color: var(--border); }
.tn-tile-label { font: 600 11px var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tn-tile-main { display: flex; align-items: center; font-size: 20px; font-weight: 700; line-height: 1.2; min-width: 0; }
.tn-tile-main .team-logo { margin: 0 8px 0 0; }
.tn-tile-main .tn-swatch { height: 26px; vertical-align: baseline; }
.tn-tile-sub { font-size: 12.5px; color: var(--muted); }
/* the event page's row: the upset tile, a whole match line, is the widest */
.tn-tiles-event { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2.3fr); }
@media (max-width: 1000px) { .tn-tiles-event { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); } .tn-tile-up { grid-column: 1 / -1; } }
.tn-tile-up .tn-tile-main { gap: 10px; font-size: 17px; }
.tn-tile-up .tn-tile-main .team-logo { margin: 0; }
.tn-up-side { display: flex; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 0; }
.tn-up-right { justify-content: flex-start; }
.tn-up-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-up-score { flex: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tn-up-side .tn-swatch { margin: 0; }
.tn-rank-ctl { display: flex; align-items: center; gap: 10px; }
.tn-ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.map-thumb { width: 56px; height: 32px; object-fit: cover; vertical-align: middle; margin-right: 10px; }
/* match boxes: LOGO 2-1 LOGO */
.tn-bx .team-logo { margin: 0; padding: 1px; flex: none; }
.tn-bx-compact { flex-direction: row; align-items: center; justify-content: space-between; padding: 3px 8px; gap: 6px; }
.tn-bx-side { display: flex; align-items: center; gap: 4px; min-width: 0; }
.tn-bx-side .tn-swatch { margin: 0; height: 26px; vertical-align: baseline; }
.tn-bx-side.tn-bx-lost .team-logo { opacity: .4; }
.tn-bx-mid { font-variant-numeric: tabular-nums; font-size: 17px; white-space: nowrap; }
.tn-bx-mid b { font-weight: 700; } .tn-bx-mid b.lose { font-weight: 400; color: var(--muted); }
.tn-bx-q { font-size: 11px; color: var(--muted); min-width: 34px; text-align: center; }
.tn-res-team .team-logo, .tn-rr-team .team-logo { margin: 0 6px 0 0; }
/* results */
.tn-stakes { display: inline-block; align-self: flex-start; font-size: 10.5px; color: var(--muted); border: 1px solid var(--grid); padding: 0 5px; border-radius: 8px; white-space: nowrap; }
.tn-stakes.tn-elimination, .tn-stakes.tn-decider { color: var(--brand-ink); border-color: var(--bad-bg); }
.tn-stakes.tn-advancement, .tn-stakes.tn-seeding { color: var(--good); border-color: var(--good-bg); }
.tn-stakes.tn-title { color: var(--text); font-weight: 700; }
.tn-round-head { font-size: 12.5px; font-weight: 700; margin: 12px 0 4px; }
.tn-results { table-layout: fixed; width: 100%; min-width: 640px; }
.tn-results td { font-size: 12.5px; }
.tn-results td:nth-child(1) { width: 6.5em; color: var(--muted); white-space: nowrap; }
.tn-results td:nth-child(2), .tn-results td:nth-child(4) { width: 11em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tn-results td:nth-child(3) { width: 3.5em; text-align: center; white-space: nowrap; }
.tn-results td:nth-child(6) { width: 5.5em; text-align: right; }
.tn-results td.tn-r-win { font-weight: 700; }
.tn-results td.tn-r-score .lose { color: var(--muted); font-weight: 400; }
.tn-results td.tn-r-maps { font-size: 12px; }
.tn-min input { width: 4em; margin-left: 4px; }
td.tn-date { white-space: nowrap; }

/* ── player.html (Module 7h) ──────────────────────────────────────────── */
/* a figure where lower is better (DPR): down = green, up = red */
.tile-delta.tone-inv.up { color: var(--accent2); }
.tile-delta.tone-inv.down { color: var(--good); }
.pl-flag { font-size: .8em; margin-right: 10px; vertical-align: 2px; }
/* player.html header: map.html's hero (.map-hero, dark in both themes) with the team's logo for the photo, faint on the right; the
   team colour is the bar down the left, a rectangle as everywhere; the chips are the team history */
.map-hero.pl-hero { min-height: 190px; border-left: 10px solid var(--tc);
  background: linear-gradient(90deg, rgba(43,45,66,1) 0%, rgba(43,45,66,.96) 50%, rgba(43,45,66,.82) 100%), var(--img) right 6% center / auto 150% no-repeat, #2b2d42; }
.pl-hero .crumb { margin-bottom: 14px; }
.pl-b-top { display: flex; gap: 16px; align-items: center; margin-top: auto; }
.pl-b-top .team-logo { width: 64px; height: 64px; padding: 5px; object-fit: contain; background: var(--logo-plate); border-radius: 6px; display: block; }
.pl-b-team { font: 700 12px var(--font-head); color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .06em; }
.map-hero.pl-hero h1 { margin: 2px 0 4px; }
.pl-b-sub { color: rgba(255,255,255,.85); font-size: 14px; }
.pl-b-sub a { color: rgba(255,255,255,.85); }
.pl-b-sub a:hover { color: #fff; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pl-chip { font: inherit; font-size: 13px; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.28); border-left: 6px solid var(--cc); padding: 4px 10px; cursor: pointer; border-radius: 0;
  transition: background .15s ease, border-color .15s ease; }
.pl-chip small { opacity: .75; font-size: inherit; }
.pl-chip:hover { border-color: #fff; border-left-color: var(--cc); }
.pl-chip.active { background: #fff; color: #2b2d42; border-color: #fff; border-left-color: var(--cc); }
.pl-chip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 760px) { .map-hero.pl-hero { min-height: 0; } .pl-b-top .team-logo { width: 48px; height: 48px; } }
@media (prefers-reduced-motion: reduce) { .pl-chip { transition: none; } }
.pl-side-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 4px 0 14px; }
.pl-pending { font-size: 12.5px; color: var(--muted); }
table tfoot td.pl-total { font-weight: 700; }
/* player.html Utility panel (B2): Baseball Savant-style percentile sliders, Flashes / Damage subtabs with histograms */
.pct-row { display: grid; grid-template-columns: minmax(110px, 180px) minmax(0, 1fr) 70px; align-items: center; gap: 0 10px; padding: 8px 0; }
.pct-label { font: 700 12px var(--font-head); }
.pct-track { position: relative; height: 6px; margin: 0 16px; background: var(--grid); border-radius: 3px; }
.pct-track i { position: absolute; top: -3px; width: 2px; height: 12px; margin-left: -1px; background: var(--line); border-radius: 1px; }
.pct-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; opacity: .4; }
.pct-dot { position: absolute; top: 50%; z-index: 1; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
  color: #fff; font: 700 11px/26px var(--font-head); text-align: center; box-shadow: 0 0 0 2px var(--panel); }
.pct-value { text-align: right; font: 700 14px var(--font-head); font-variant-numeric: tabular-nums; }
.pct-row.main { padding: 12px 0 14px; }
.pct-row.main .pct-label { font-size: 15px; }
.pct-row.main .pct-track { height: 9px; }
.pct-row.main .pct-dot { width: 36px; height: 36px; margin: -18px 0 0 -18px; font-size: 14px; line-height: 36px; }
.pct-row.main .pct-value { font-size: 22px; }
.pct-row.pct-scale { padding: 0; }
.pct-scale-words { display: flex; justify-content: space-between; margin: 0 16px; font: 700 10px var(--font-head); text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); }
.pct-small { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.pl-subtabs { display: flex; gap: 22px; margin: 22px 0 12px; border-bottom: 2px solid var(--border); }
.pl-subtabs button { margin-bottom: -2px; padding: 6px 2px; background: none; border: none; border-bottom: 3px solid transparent; cursor: pointer;
  color: var(--muted); font: 700 12.5px var(--font-head); text-transform: uppercase; letter-spacing: .05em; }
.pl-subtabs button.active { color: var(--text); border-bottom-color: var(--brand); }
.pl-subtabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pl-hist { margin-bottom: 8px; }
.pl-hist svg { display: block; max-width: 100%; height: auto; }
.pl-hist .bar { fill: var(--accent); opacity: .85; }
.pl-hist .pool { fill: none; stroke: var(--lo); stroke-width: 2; }   /* all players: teal, not red (red = worse) */
.pl-hist .pool-dot { fill: var(--lo); }
.pl-hist .grid { stroke: var(--grid); }
.pl-hist .hit { fill: transparent; }
.pl-hist text { fill: var(--muted); font: 10px var(--font-body); }
.pl-hist-head { font-size: 12.5px; margin: 2px 0 6px; }
.pl-hist-legend { margin-left: 10px; color: var(--muted); white-space: nowrap; }
.pl-hist-legend .lg-bar, .pl-hist-legend .lg-pool { display: inline-block; vertical-align: middle; margin: 0 4px 0 8px; }
.pl-hist-legend .lg-bar { width: 10px; height: 10px; background: var(--accent); }
.pl-hist-legend .lg-pool { width: 14px; height: 2px; background: var(--lo); }
.pl-hist-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
@media (max-width: 900px) { .pl-hist-pair { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .pct-small { grid-template-columns: minmax(0, 1fr); }
  .pct-row { grid-template-columns: 100px minmax(0, 1fr) 54px; }
  .pct-track, .pct-scale-words { margin: 0 12px; }
  .pct-scale-words span:nth-child(2) { display: none; }               /* "Average" -- no room between the end words */
  .pct-small > div + div .pct-scale { display: none; }                 /* the columns stack: one scale row is enough */
}
/* the Filters button (common.js setupFilterToggle): the filter bar folds away under it */
.filter-toggle { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--border);
  background: var(--panel); color: var(--text); font: 700 12px var(--font-head); text-transform: uppercase; letter-spacing: .05em; cursor: pointer; }
.filter-toggle svg { width: 13px; height: 13px; fill: currentColor; }
.filter-toggle.open { background: var(--accent); color: var(--on-accent); }
.filter-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.filter-count { min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.filter-count[hidden] { display: none; }
#filterWrap { margin-bottom: 6px; }
.filter-toggle-row { margin: 0 0 14px; }
/* player.html Overview tiles: map.html's stat tiles (.st-*, below), four categories; these are the player page's own differences */
.pl-hint { text-decoration: underline dotted; cursor: help; }
.st-grid.pl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .st-grid.pl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .st-grid.pl-grid { grid-template-columns: minmax(0, 1fr); } }
.pl-grid .st-dots { gap: 5px; }          /* up to 15 stats in a category: the squares a little smaller than map.html's */
.pl-grid .st-dot { width: 7px; height: 7px; }
.pl-grid .st-label .help-q { margin-left: 4px; }
.st-rank { font-size: 12px; color: var(--muted); }
.st-sub { font-size: 12px; color: var(--muted); }
/* the opened category's chart: a bar per qualified player from the average (the dashed centre), better to the right, him marked;
   a scroll box (the pool runs to 150+ players) that opens on his row. The bars grow out of the centre line, as map.html's grow in */
.pl-crows { position: relative; max-height: min(760px, 75vh); margin-top: 10px; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--grid); }
.st-crow.pl-crow { grid-template-columns: minmax(90px, 140px) 72px minmax(0, 1fr); min-height: 30px; }
.pl-crow .st-cname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-crow .st-cname a { color: inherit; text-decoration: none; }
.pl-crow .st-cname a:hover { text-decoration: underline; }
.pl-crow .st-cname small { font-weight: 400; color: var(--muted); }
.pl-ctrack { position: relative; display: block; height: 16px; margin-right: 12px; }
.pl-ctrack > i { position: absolute; left: 50%; top: -7px; bottom: -7px; width: 0; border-left: 2px dashed var(--accent2); }
.pl-cbar { position: absolute; top: 0; bottom: 0; opacity: .5; transform-origin: left center; animation: pl-grow .45s cubic-bezier(.2,.7,.2,1) both; transition: opacity .15s ease; }
.pl-cbar.neg { transform-origin: right center; }
.pl-crow:hover .pl-cbar, .pl-crow.me .pl-cbar { opacity: 1; }
@keyframes pl-grow { from { transform: scaleX(0); } to { transform: none; } }
@media (max-width: 640px) { .st-crow.pl-crow { grid-template-columns: 92px 62px minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .pl-cbar { animation: none; transition: none; } }
/* Overview: Performance | Playstyle side by side (one column under 900 px) */
.pl-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: stretch; }
@media (max-width: 900px) { .pl-two { grid-template-columns: minmax(0, 1fr); } }
/* At a glance (player Overview, ticket 06): lollipop rows in a fixed-height box; a longer tab scrolls inside it */
.pl-glance { margin: 0; min-width: 0; }
.gl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 8px; }
.gl-head h2 { margin: 0; }
.gl-head .seg button { font-size: 12px; padding: 3px 8px; }
.gl-box { height: 420px; overflow-y: auto; overflow-x: hidden; }
.gl-sec { font: 700 10px var(--font-head); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); height: 24px; display: flex; align-items: flex-end; padding-bottom: 3px; }
.gl-sec.rule { border-top: 1px dashed var(--grid); margin-top: 4px; height: 28px; }
.gl-scale, .gl-row { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr) 112px; gap: 0 10px; }
.gl-scale { height: 18px; font-size: 10.5px; color: var(--muted); }
.gl-scale span { grid-column: 2; grid-row: 1; }
.gl-scale span:nth-child(2) { text-align: center; } .gl-scale span:nth-child(3) { text-align: right; }
.gl-row { height: 34px; align-items: center; cursor: pointer; font-size: 13px; }
.gl-row:hover { background: var(--grid); }
.gl-row.cur { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.gl-lab { display: flex; align-items: center; gap: 4px; min-width: 0; }
.gl-q { flex: none; width: 20px; display: inline-flex; }
.gl-q .help-q { margin-left: 0; }
.gl-name { line-height: 1.15; overflow-wrap: anywhere; }
.gl-name a { color: inherit; }
.gl-trk { position: relative; height: 100%; }
.gl-trk::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--grid); }
.gl-mid { position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1px; background: var(--muted); opacity: .5; }
.gl-tick { position: absolute; top: calc(50% - 3px); height: 6px; width: 1px; background: var(--muted); opacity: .5; }
.gl-line { position: absolute; top: calc(50% - 1.5px); height: 3px; }
.gl-dot { position: absolute; top: calc(50% - 6px); width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--panel); box-sizing: content-box; margin-top: -2px; }
.gl-verdict { line-height: 1.2; min-width: 0; }
.gl-verdict b { display: block; font-size: 13px; white-space: nowrap; }
.gl-verdict small { display: block; font-size: 10.5px; color: var(--muted); }
.gl-cb { position: sticky; top: 0; z-index: 2; background: var(--panel); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 2px 0 6px; font-size: 12px; color: var(--muted); }
.gl-cb .seg button { font-size: 12px; padding: 3px 8px; }
.gl-note { margin: 8px 0 0; }
/* the other tabs (2026-11-02): Clutches reuses the At a glance rows; Matches is one row per series */
.pl-cl-rows { max-width: 760px; margin: 6px 0 16px; }
.gl-row.static { cursor: default; }
.gl-row.static:hover { background: none; }
.pl-series .pl-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.pl-series .pl-sub a { color: inherit; }
#matchesTable.pl-series td, #matchesTable.pl-series td:first-child { white-space: normal; }   /* workspace.css keeps matches.html's first column on one line */
.pl-series td.pl-maps { min-width: 120px; }
.pl-mapchip { display: inline-block; margin: 2px 6px 2px 0; padding: 1px 6px; font-size: 12px; white-space: nowrap; border-left: 3px solid var(--line); color: var(--text); text-decoration: none; background: var(--head-bg); }
.pl-mapchip.w { border-left-color: var(--good); } .pl-mapchip.l { border-left-color: var(--accent2); }
.pl-mapchip:hover { text-decoration: underline; }
#weaponsTable tr.pl-other td { color: var(--muted); }
@media (max-width: 600px) { .pl-series .pl-hide-sm { display: none; } .pl-series td.pl-maps { min-width: 0; } .pl-mapchip { font-size: 11px; padding: 1px 4px; } }
/* K - xK against D - xD (ticket 08): fills the grid cell beside At a glance; the svg is drawn at the box's measured size */
.pl-scatter { margin: 0; min-width: 0; display: flex; flex-direction: column; }
.pl-scatter h2 { margin: 0 0 8px; }
.sc-box { flex: 1; min-height: 320px; position: relative; }
.sc-box svg { position: absolute; inset: 0; overflow: visible; font-size: 11px; fill: var(--muted); outline-offset: 2px; }
.sc-grid { stroke: var(--grid); } .sc-grid.zero { stroke: var(--muted); stroke-opacity: .6; }
.sc-diag { stroke: var(--muted); stroke-opacity: .7; stroke-dasharray: 5 4; }
.sc-small { font-size: 10.5px; }
.sc-dot { fill: var(--muted); fill-opacity: .45; }
.sc-pt { fill: transparent; }
.sc-me { fill: var(--gold); stroke: var(--panel); stroke-width: 2; } .sc-me.grey { fill: var(--muted); }
.sc-on { fill: var(--text); stroke: var(--panel); stroke-width: 2; }
.sc-name { fill: var(--text); font-weight: 700; font-size: 12px; paint-order: stroke; stroke: var(--panel); stroke-width: 4px; stroke-linejoin: round; }
@media (max-width: 520px) { .gl-scale, .gl-row { grid-template-columns: 104px minmax(0, 1fr) 96px; gap: 0 6px; } .gl-verdict b { font-size: 12px; } .gl-q { width: 18px; } .gl-head .seg button { padding: 3px 6px; } }
.pl-meta { font-size: 12.5px; color: var(--muted); margin: -4px 0 6px; }
#styleNote, #clutchNote { margin: 10px 0 12px; }   /* definitions under the sliders, not against them */
/* Clutches tab: a situation row opens that situation's clutches */
tr.pl-cl-row { cursor: pointer; }
tr.pl-cl-row td:first-child::before { content: "▸"; display: inline-block; width: 14px; color: var(--muted); }
tr.pl-cl-row.open td:first-child::before { content: "▾"; }
tr.pl-cl-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
tr.pl-cl-list > td { padding: 4px 0 14px 14px; background: var(--row-hover); }
.pl-cl-list table { width: 100%; }
.pl-cl-list td, .pl-cl-list th { font-size: 12px; }
td.pl-saved { color: var(--muted); font-weight: 700; }
td.pl-w { color: var(--good); font-weight: 700; }
td.pl-l { color: var(--accent2); font-weight: 700; }
table.scoreboard td.player a { color: inherit; }

/* ── index.html (L1, the home page) ───────────────────────────────────── */
/* A game-style main menu: big stacked caps items on the left, the selected one a
   masthead-indigo block with the Punch Red stripe; on the right a panel previewing
   whichever item is selected. Below 760px the panel goes and the menu is the page. */
.home { display: grid; grid-template-columns: minmax(250px, 340px) minmax(0, 1fr); gap: 28px; align-items: start; }
.home-menu { display: flex; flex-direction: column; }
/* Section labels ("btrams", "stats", "bureau"): lowercase like the wordmark, in red. */
.home-group-label {
  font: 700 13px var(--font-head); color: var(--brand-ink); letter-spacing: -.01em;
  margin: 0 0 6px; padding-left: 14px;
}
.home-group-label:not(:first-child) { margin-top: 22px; }
.home-item {
  display: block; position: relative; padding: 9px 36px 10px 14px; border-left: 5px solid transparent;
  color: var(--text); cursor: pointer; outline: none;
}
.home-item:hover { text-decoration: none; color: var(--text); }
/* Item labels follow the page headings: Arial Bold, source casing ("Players"). */
.home-item .hi-label { display: block; font: 700 26px/1.1 var(--font-head); letter-spacing: -.015em; }
.home-item .hi-desc { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; font-weight: 400; }
.home-item::after {
  content: "\2192"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  font: 900 20px var(--font-head); opacity: 0;
}
.home-item.selected { background: var(--band); color: var(--on-band); border-left-color: var(--brand); }
.home-item.selected .hi-desc { color: var(--on-band); opacity: .75; }
.home-item.selected::after { opacity: 1; }
.home-item:focus-visible { box-shadow: inset 0 0 0 2px var(--brand); }
.home-item.soon .hi-label::after {
  content: "soon"; text-transform: uppercase; margin-left: 8px; font: 700 9.5px var(--font-head); letter-spacing: .04em; color: var(--muted);
  border: 1px solid var(--line); padding: 1px 4px; vertical-align: 4px;
}
.home-item.soon.selected .hi-label::after { color: var(--on-band); border-color: var(--on-band); }
.home-item.soon::after { content: ""; }

.home-preview {
  background: var(--panel); border-top: 3px solid var(--border); padding: 22px 24px 24px; min-height: 520px;
}
.hp-kicker { font: 700 11px var(--font-head); color: var(--brand-ink); text-transform: uppercase; letter-spacing: .08em; }
.hp-title { font: 700 28px/1.15 var(--font-head); letter-spacing: -.015em; margin: 4px 0 16px; }   /* h2: capitalized, as on every page */
.hp-body p { font-size: 14px; max-width: 60ch; }
.hp-note { color: var(--muted); font-size: 12.5px; margin-top: 12px; }
.hp-muted { color: var(--muted); }
.hp-table td { padding: 7px 8px; }
.hp-table td.hp-rank { color: var(--muted); font: 700 12px var(--font-head); width: 2em; }
.hp-more {
  display: inline-block; margin-top: 18px; padding: 8px 14px; background: var(--accent); color: var(--on-accent);
  font: 700 12px var(--font-head); text-transform: uppercase; letter-spacing: .05em;
}
.hp-more:hover { background: #d80032; color: #fff; text-decoration: none; }
.hp-split { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 22px; align-items: start; }
.hp-radar { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--band); display: block; }
.hp-bar-cell { width: 55%; }
.hp-bar { display: block; height: 8px; background: var(--line); }
.hp-list { font-size: 14px; padding-left: 18px; }
.hp-list li { margin-bottom: 6px; }
@media (max-width: 760px) {
  .home { grid-template-columns: 1fr; }
  .home-preview { display: none; }
  .home-item.selected { background: none; color: var(--text); border-left-color: transparent; }
  .home-item.selected .hi-desc { color: var(--muted); opacity: 1; }
  .home-item.selected::after { opacity: 0; }
  .home-item.soon.selected .hi-label::after { color: var(--muted); border-color: var(--line); }
}

/* ── fine_print.html (L2, The Fine Print; lab-* classes from its Stat lab days) ──────────────────────────────────────── */
.lab-text { font-size: 14px; margin: 0 0 12px; }
.lab-small { font-size: 12.5px; color: var(--muted); }
.lab-list { padding-left: 20px; }
.lab-list li { margin-bottom: 5px; }
.lab-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 18px; margin: 4px 0 14px; }
.lab-controls label { display: flex; flex-direction: column; gap: 4px; font: 700 11px var(--font-head); color: var(--muted);
  text-transform: uppercase; letter-spacing: .04em; }
.lab-controls[hidden], .lab-controls label[hidden] { display: none; }
.lab-controls select, .lab-controls input[type=text] {
  font: 13px var(--font-body); color: var(--text); background: var(--panel); border: 1px solid var(--line);
  border-radius: 0; padding: 5px 8px; min-width: 160px;
}
.lab-btn {
  padding: 7px 14px; background: var(--accent); color: var(--on-accent); border: none; cursor: pointer;
  font: 700 12px var(--font-head); text-transform: uppercase; letter-spacing: .05em;
}
.lab-btn:hover { background: #d80032; color: #fff; }

/* The duel: two fighter cards either side of "vs", each ending in its big EEK figure. */
.lab-duel { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: stretch; margin: 6px 0 16px; }
.lab-fighter { background: var(--bg); border-top: 3px solid var(--border); padding: 14px 18px 16px; }
.lab-fighter.won { border-top-color: var(--good); }
.lab-fighter.lost { border-top-color: var(--accent2); }
.lab-fighter .lab-controls { margin-bottom: 10px; }
.lab-fighter-name { font: 700 20px var(--font-head); margin-bottom: 8px; }
.lab-class { font: 700 12px var(--font-head); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.lab-big { font: 900 64px/1 var(--font-head); font-variant-numeric: tabular-nums; }
.lab-big-label { font: 700 11px var(--font-head); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
/* EEK and, once a winner is picked, the frag against it, side by side. */
.lab-figures { display: flex; align-items: flex-start; gap: 12px 36px; flex-wrap: wrap; margin-top: 10px; }
.lab-outcome { padding-top: 12px; }
.lab-gap { font: 900 44px/1 var(--font-head); font-variant-numeric: tabular-nums; }
/* Middle column: the two "who won" buttons around "vs". */
.lab-middle { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 12px; }
.lab-vs { text-align: center; font: 900 22px var(--font-head); color: var(--muted); text-transform: uppercase; }
.lab-win-btn {
  padding: 16px 18px; background: var(--panel); color: var(--text); border: 2px solid var(--line); cursor: pointer;
  font: 900 16px var(--font-head); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
}
.lab-win-btn:hover { border-color: var(--border); }
.lab-win-btn.active { background: var(--good); border-color: var(--good); color: #fff; }
.lab-ladder { display: flex; flex-direction: column; gap: 2px; max-width: 720px; }
.lab-pair { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 32px; align-items: start; }
.lab-pair .lab-rung { grid-template-columns: 120px 1fr; }
@media (max-width: 1100px) { .lab-pair { grid-template-columns: minmax(0, 1fr); } }
.lab-rung { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 6px 10px; border-left: 5px solid transparent; background: var(--bg); }
.lab-rung.active { background: var(--band); color: var(--on-band); border-left-color: var(--brand); }
.lab-rung-name { font: 700 13px var(--font-head); }
.lab-rung-weapons { font-size: 12.5px; color: var(--muted); }
.lab-rung.active .lab-rung-weapons { color: var(--on-band); opacity: .8; }
.lab-tag { margin-left: 6px; padding: 0 4px; font: 700 10px var(--font-head); background: var(--brand); color: #fff; vertical-align: 1px; }
table.lab-grid { width: auto; }
table.lab-grid th[scope=row] { text-align: left; font: 700 12px var(--font-head); padding: 8px 10px; white-space: nowrap; }
table.lab-grid td { min-width: 78px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
table.lab-grid td.selected { outline: 3px solid var(--brand); outline-offset: -3px; }
table.lab-grid td.low-n { color: var(--muted); font-weight: 400; }
table.lab-fights { max-width: 760px; }
/* L17 xK walkthroughs: the followed player's fights are highlighted */
#xkExKills tr.selected td { background: color-mix(in srgb, var(--brand) 9%, transparent); }
#xkExTabs { margin: 0 0 12px; }
/* The Usage section's K-EEK/24 scale: red -> neutral -> green, ticks below, named examples above. */
.lab-scale { position: relative; width: 100%; box-sizing: border-box; max-width: 900px; margin: 22px auto 6px; padding: 0 2px; }   /* width: a flex parent with auto margins would shrink it to nothing (390 px) */
.lab-scale-marks { position: relative; height: 40px; }
.lab-scale-mark { position: absolute; bottom: 0; font-size: 12.5px; white-space: nowrap; padding-bottom: 8px; }
.lab-scale-mark strong { font: 900 15px var(--font-head); }
.lab-scale-mark::after { content: ""; position: absolute; bottom: -14px; width: 3px; height: 22px; background: var(--text); }
.lab-scale-mark.left { transform: translateX(-1.5px); }
.lab-scale-mark.left::after { left: 0; }
.lab-scale-mark.right { transform: translateX(calc(-100% + 1.5px)); }
.lab-scale-mark.right::after { right: 0; }
.lab-scale-bar { height: 14px; background: linear-gradient(to right, var(--accent2), color-mix(in srgb, var(--accent2) 35%, var(--bg)) 33%,
  var(--bg) 50%, color-mix(in srgb, var(--good) 35%, var(--bg)) 67%, var(--good)); border: 1px solid var(--line); }
.lab-scale-ticks { position: relative; height: 44px; }
.lab-scale-ticks div { position: absolute; top: 0; transform: translateX(-50%); padding-top: 9px; text-align: center;
  font-size: 12px; color: var(--muted); }
.lab-scale-ticks div::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 6px; background: var(--line); }
.lab-scale-ticks strong { display: block; font: 700 13px var(--font-head); color: var(--text); }
@media (max-width: 700px) {
  .lab-duel { grid-template-columns: minmax(0, 1fr); }   /* minmax(0, ...): a bare 1fr won't shrink below the selects (320 px) */
  .lab-controls select { min-width: 0; max-width: 100%; }
  .lab-middle { flex-direction: row; }
  .lab-win-btn { flex: 1; }
  .lab-big { font-size: 48px; }
}

/* The Fine Print, L10 (#clawbacks) and L11 (#xc): the man-state grid's even states, the round walk, the xC figure and
   its terms. */
table.lab-grid td.even-state { box-shadow: inset 0 0 0 1px var(--border); }
table.lab-grid td.walk-on { outline: 3px solid var(--brand); outline-offset: -3px; }
.lab-walk-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.lab-walk-btns .lab-btn.ct { background: var(--ct-color); color: #fff; }
.lab-walk-btns .lab-btn.t { background: var(--t-color); color: #1b1b1b; }
.lab-walk-btns .lab-btn:disabled { opacity: .4; cursor: default; }
.lab-btn.quiet { background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.lab-btn.quiet:hover { border-color: var(--border); background: var(--panel); color: var(--text); }
.lab-flag { margin-left: 6px; padding: 0 5px; font: 700 10px var(--font-head); text-transform: uppercase; letter-spacing: .04em;
  background: var(--brand); color: #fff; vertical-align: 1px; }
.lab-xc { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px 36px; margin: 6px 0 14px; }

/* ── weapons.html (L3) ────────────────────────────────────────────────── */
tr.wp-class-row td { background: var(--head-bg); font: 700 11px var(--font-head); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 8px; }
tr.wp-class-row:hover { background: none; }
td.wp-rank { color: var(--muted); font: 700 12px var(--font-head); width: 2.5em; }
.wp-picker { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.wp-group { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: center; }
.wp-class {
  text-align: left; background: none; border: none; border-left: 4px solid var(--line); padding: 3px 8px; cursor: pointer;
  font: 700 12px var(--font-head); color: var(--text);
}
.wp-class:hover { border-left-color: var(--border); }
.wp-class.active { border-left-color: var(--brand); }
.wp-group .chip-group { flex-wrap: wrap; }
@media (max-width: 700px) { .wp-group { grid-template-columns: 1fr; gap: 4px; } }
/* weapons page (2026-11-06): icon-tile picker, gun icons in the tables, the teams beside a player's name */
.wp-ic { display: inline-flex; align-items: center; justify-content: center; width: 48px; margin-right: 8px; vertical-align: middle; color: var(--text); }
.wp-ic .eq { max-width: 100%; }
.wp-name, .wp-player { display: inline-flex; align-items: center; white-space: nowrap; }
.wp-group:has(.wp-tiles) { align-items: start; }
.wp-group:has(.wp-tiles) .wp-class { min-height: 36px; display: flex; align-items: center; }
.wp-tiles { display: flex; flex-wrap: wrap; gap: 6px; }
.wp-tile { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 0;
  color: var(--text); font: 600 12.5px var(--font-body); cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.wp-tile .wp-ic { width: 52px; margin-right: 0; color: inherit; }
.wp-tile:hover { border-color: var(--border); }
.wp-tile:focus-visible, .wp-class:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wp-tile.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.wp-tile.rare:not(.active) { opacity: .55; }
.wp-tile.pop { animation: wp-pop .28s cubic-bezier(.2, .8, .3, 1.4); }
@keyframes wp-pop { 0% { transform: scale(.94); } 55% { transform: scale(1.05); } 100% { transform: scale(1); } }
.wp-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.wp-picker-title { font: 700 11px var(--font-head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wp-picker-actions { display: inline-flex; gap: 8px; }
.wp-btn { white-space: nowrap; font: 700 12.5px var(--font-body); padding: 7px 14px; background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: 0; cursor: pointer;
  transition: background-color .15s ease, color .15s ease; }
.wp-btn:hover { background: var(--accent); color: var(--on-accent); }
.wp-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wp-btn[hidden] { display: none; }
.table-tools-min label { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px var(--font-body); color: var(--muted); white-space: nowrap; }
.table-tools-min input { width: 76px; padding: 7px 8px; font: 600 13px var(--font-body); background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 0; }
.subtitle.wp-sub-quiet { margin: 0; min-height: 0; }
.wp-teams { display: inline-flex; gap: 4px; margin-right: 8px; vertical-align: middle; }
.wp-team { display: inline-flex; }
.wp-teams .team-logo { margin: 0; }
@media (prefers-reduced-motion: reduce) { .wp-tile { transition: none; } .wp-tile.pop { animation: none; } }
#leaderboardPanel .lab-controls input[type=number] {
  font: 13px var(--font-body); color: var(--text); background: var(--panel); border: 1px solid var(--line);
  border-radius: 0; padding: 5px 8px; width: 110px;
}

/* ── contact.html (L5) ────────────────────────────────────────────────── */
/* Bug report left, feature request right; stacked below 900px. */
.rp-forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.rp-forms .panel { margin-bottom: 0; }
@media (max-width: 900px) { .rp-forms { grid-template-columns: minmax(0, 1fr); } }
.rp-panel h2 { margin-bottom: 4px; }
.rp-sub { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.rp-field { display: flex; flex-direction: column; gap: 5px; margin: 0 0 16px; border: none; padding: 0; }
.rp-field legend, .rp-label { font: 700 11px var(--font-head); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; padding: 0; }
.rp-optional { text-transform: none; letter-spacing: 0; font-weight: 400; font-family: var(--font-body); }
.rp-field input[type=text], .rp-field input[type=email], .rp-field textarea {
  font: 14px/1.5 var(--font-body); color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 0; padding: 7px 10px; width: 100%;
}
.rp-field textarea { resize: vertical; min-height: 120px; }
.rp-field input:focus, .rp-field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
/* fit-content: inside .rp-field's column flex the group would otherwise stretch to the full width */
.rp-seg { width: fit-content; }
.rp-seg label { font: 600 12.5px var(--font-body); padding: 6px 12px; cursor: pointer; position: relative; }
.rp-seg label + label { border-left: 1px solid var(--line); }
.rp-seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.rp-seg label:has(input:checked) { background: var(--accent); color: var(--on-accent); }
.rp-seg label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.rp-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rp-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rp-status { font-size: 13.5px; }
.rp-status.ok { color: var(--good); font-weight: 600; }
.rp-status.err { color: var(--accent2); font-weight: 600; }
.lab-btn:disabled { opacity: .5; cursor: default; }
.rp-fallback { font-size: 13px; color: var(--muted); margin: 16px 0 0; }
@media (max-width: 560px) { .rp-seg { flex-wrap: wrap; } }

/* ── roadmap.html (L9) ───────────────────────────────────────────────────── */
.rm-intro { font-size: 14.5px; margin: 0 0 18px; }
.rm-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; align-items: start; }
.rm-columns > .rm-section { min-width: 0; }
@media (max-width: 900px) { .rm-columns { grid-template-columns: 1fr; } }
.rm-vote-note { font-size: 13px; color: var(--muted); border-left: 3px solid var(--line); padding: 4px 0 4px 10px; margin: 0 0 22px; }
.rm-section { margin: 0 0 28px; }
.rm-section > h2 { margin-bottom: 4px; }
.rm-sub { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
/* a tile in the same vocabulary as the overview's cards: 1px grid border, panel ground, a muted small-caps kicker over a big bold title,
   the description muted, the votes along the bottom under a rule */
.rm-item { position: relative; display: flex; flex-direction: row; align-items: flex-start; gap: 18px; margin-bottom: 12px; padding: 22px 24px 22px 28px;
  border: 1px solid var(--grid); border-top: 1px solid var(--grid); }
.rm-item::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 5px; background: var(--brand); }   /* the colour rectangle */
.rm-item:hover { border-color: var(--line); }
.rm-main { flex: 1; min-width: 0; }
#sec-planned .rm-list { counter-reset: rm; }
#sec-planned .rm-item { counter-increment: rm; }
#sec-planned .rm-main::before { content: "0" counter(rm); display: block; margin-bottom: 8px; font: 700 11px var(--font-head); letter-spacing: .08em; color: var(--muted); }
.rm-main h3 { font: 700 24px/1.2 var(--font-head); letter-spacing: -.5px; margin: 0 0 10px; }
.rm-main p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.rm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.rm-tag { font: 700 10.5px var(--font-head); text-transform: uppercase; letter-spacing: .04em; border: 1px solid var(--line); padding: 2px 6px; }
.rm-votes { display: flex; gap: 6px; flex: none; }
.rm-btn {
  position: relative;   /* anchors the .sr-only label */
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-width: 52px; padding: 6px 8px; cursor: pointer;
  background: var(--panel); color: var(--text); border: 1px solid var(--line);
  font: 700 12px var(--font-head);
}
.rm-btn .rm-n { font-size: 15px; font-variant-numeric: tabular-nums; }
.rm-btn:hover { border-color: var(--border); }
.rm-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.rm-btn:disabled { cursor: progress; }
.rm-up[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.rm-star[aria-pressed="true"] { background: var(--accent2); color: var(--panel); border-color: var(--accent2); }
.rm-shipped summary { cursor: pointer; list-style-position: inside; margin-bottom: 10px; }
.rm-shipped summary h2 { display: inline; }
@media (max-width: 560px) {
  .rm-item.card { flex-direction: column; gap: 12px; padding: 18px 16px 16px 22px; }
  .rm-main h3 { font-size: 21px; }
}

/* ── team.html Playstyle tab (L14 C4) ─────────────────────────────────── */
.ps-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.ps-toolbar .panel-note { margin: 0; }
.ps-sub { font: 700 12.5px var(--font-head); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 18px 0 8px; }
.stat-tile.low-n { opacity: .5; }
table.ps-grid { width: auto; }
table.ps-grid th[scope=row] { text-align: left; font: 700 12px var(--font-head); padding: 8px 10px; white-space: nowrap; }
table.ps-grid td { min-width: 84px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
table.ps-grid td.low-n, #psSiteTable td.low-n { opacity: .5; font-weight: 400; }
table.ps-grid td.empty, #psSiteTable td.empty { color: var(--muted); font-weight: 400; }
.ps-n { display: block; font-size: 10.5px; font-weight: 400; color: var(--muted); }
.ps-delta { font-size: 11px; }
/* the man-state diamond: squares on a grid turned 45 degrees, each cell's text turned back upright */
.ms-diamond-wrap { overflow-x: auto; padding: 4px 0 8px; }
.ms-canvas { position: relative; margin: 0 auto; }
.ms-cell { position: absolute; transform: rotate(45deg); border: 1px solid var(--line); background-color: var(--panel);
  display: flex; align-items: center; justify-content: center; cursor: default; }
.ms-cell.even { border: 2px solid var(--border); }
.ms-cell.low-n { opacity: .45; }
.ms-cell > span { transform: rotate(-45deg); display: flex; flex-direction: column; align-items: center; line-height: 1.15;
  font: 700 13px var(--font-body); font-variant-numeric: tabular-nums; }
.ms-cell > span b { font: 700 10.5px var(--font-head); color: var(--muted); }

/* map.html (review 2026-10-19): the sticky nodes, the slider rows, the conversion table and the economy matrix */
.map-nodes { margin: 0 0 14px; padding: 8px 0 10px; background: var(--bg); border-bottom: 1px solid var(--grid); }
/* the filters hang under the site nav instead, so they can be changed while reading further down */
body:has(.map-hero) #filterBar { position: sticky; top: 80px; z-index: 40; margin-bottom: 14px; }
.map-nodes .stat-tile { padding: 8px 12px; }
.map-nodes .stat-tile .tile-value { font-size: 22px; }
.ms-mark { position: absolute; top: -3px; width: 2px; height: 12px; margin-left: -1px; background: var(--muted); }
.ms-mark u { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); text-decoration: none; text-transform: uppercase; white-space: nowrap; font: 700 9px var(--font-head); letter-spacing: .04em; color: var(--muted); opacity: .6; }
.ms-mark { opacity: .7; cursor: default; }
.ms-mark::before { content: ""; position: absolute; inset: -10px -3px; }
.ms-mark:hover { opacity: 1; z-index: 2; }
.ms-mark:hover u { opacity: 1; color: var(--text); }
.ms-mark:hover::after { content: attr(data-val); position: absolute; top: 15px; left: 50%; transform: translateX(-50%); padding: 1px 5px; background: var(--panel); border: 1px solid var(--grid); color: var(--text); font: 700 10px var(--font-head); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pct-dot u.ms-self { position: absolute; left: 50%; transform: translateX(-50%); text-decoration: none; text-transform: uppercase; font-family: var(--font-head); font-weight: 700; letter-spacing: .04em; bottom: 28px; opacity: 1; color: var(--text); font-size: 10px; line-height: 1; white-space: nowrap; }
.pct-row.map-slider { grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) 76px; padding: 10px 0; }
.ms-wrap { min-width: 0; }
.ms-ends { display: flex; justify-content: space-between; gap: 8px; margin: 9px 16px 0; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ms-ends em { font-style: normal; text-transform: capitalize; }
.ms-ends .ms-avg { text-align: center; }
.ms-ends span:last-child { text-align: right; }
.conv-table th.group { text-align: center; border-left: 1px solid var(--grid); }
.conv-table td, .conv-table th[scope=row] { white-space: nowrap; }
.conv-table .cv-delta { font-size: 11px; line-height: 1.2; }
.econ-table td { min-width: 72px; text-align: center; }
.econ-table td b { display: block; font-size: 14px; }
.econ-table .econ-n { display: block; font-size: 10.5px; color: var(--muted); }
.econ-table td.econ-empty { color: var(--muted); }
.econ-table tr.econ-total th, .econ-table tr.econ-total td { border-top: 2px solid var(--line); }
@media (max-width: 760px) {
  .map-nodes { top: 0; position: static; }
  .pct-row.map-slider { grid-template-columns: 96px minmax(0, 1fr) 58px; }
  .ms-ends { margin: 9px 12px 0; font-size: 10px; }
  .ms-ends .ms-avg { display: none; }
}

.ms-tag { margin-left: 6px; padding: 1px 6px; border: 1px solid var(--line); color: var(--muted); font: 700 10px var(--font-head); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.conv-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 8px; }
.conv-controls .ms-group-label { margin: 0; }
.econ-wrap { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 28px; }
.econ-wrap .table-scroll { flex: none; max-width: 100%; }
.econ-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.econ-head h3 { margin: 0; font: 800 15px var(--font-head); }
.econ-swatch { display: inline-block; width: 6px; height: 16px; margin-right: 8px; vertical-align: -2px; }
.econ-swatch.ct { background: var(--ct-color); } .econ-swatch.t { background: var(--t-color); }
.econ-hint { margin-top: -10px; font-size: 12px; color: var(--muted); }
.econ-pistol { display: inline-block; padding: 3px 10px; border: 1px solid var(--grid); font-size: 12px; }
.econ-pistol b { font-size: 14px; margin: 0 4px; } .econ-pistol i { font-style: normal; font-size: 10.5px; color: var(--muted); }
.econ-pistol.tint-ct { background: color-mix(in srgb, var(--ct-color) calc(var(--k, 0) * 38%), transparent); }
.econ-pistol.tint-t { background: color-mix(in srgb, var(--t-color) calc(var(--k, 0) * 38%), transparent); }
.econ-switch { margin-bottom: 14px; }
.econ-wrap[data-view="ct"] .econ-side[data-side="t"], .econ-wrap[data-view="t"] .econ-side[data-side="ct"] { display: none; }
.econ-compact td.econ-near { opacity: .45; }
.econ-compact td.econ-near:hover { opacity: 1; }
.econ-side { display: flex; flex-direction: column; flex: none; width: max-content; gap: 18px; max-width: 100%; }
.econ-table td.econ-all, .econ-table th.econ-all { border-left: 2px solid var(--econ-rule); font-weight: 800; }
.econ-table tr.econ-total td, .econ-table tr.econ-total th { border-top: 2px solid var(--econ-rule); }
.econ-table td.econ-all b { font-size: 16px; }
.econ-table, .econ-table.econ-pistol { width: auto; }
.econ-pistol { min-width: 150px; }
@media (min-width: 761px) { .pct-row.map-slider { grid-template-columns: minmax(150px, 230px) minmax(0, 1fr) 76px; } }
.econ-pistol td { min-width: 110px; }

.econ-table { --econ-rule: color-mix(in srgb, var(--muted) 28%, transparent); }
.econ-table th[scope=row].econ-all { border-left: 0; }
.econ-metric { margin-left: 10px; padding: 2px 9px; background: var(--head-bg); color: var(--text); font: 800 12px var(--font-head); letter-spacing: .05em; text-transform: uppercase; vertical-align: middle; }
.econ-key { margin: 0 0 12px; font-size: 14px; }
.econ-axes { font-weight: 400; color: var(--muted); }

/* map.html: score distribution (a details block above the maps played) */
.score-hist { margin: 0 0 14px; }
.score-hist summary { cursor: pointer; font: 700 12px var(--font-head); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 4px 0; }
.hist-table { min-width: 760px; }
.hist-table td.hist-cell { background: linear-gradient(to top, color-mix(in srgb, var(--accent) 22%, transparent) var(--w, 0%), transparent var(--w, 0%)); }
.hist-table td.hist-all { background: linear-gradient(to top, color-mix(in srgb, var(--muted) 22%, transparent) var(--w, 0%), transparent var(--w, 0%)); }
.hist-table th, .hist-table td { text-align: center; }
.hist-table th[scope=row] { text-align: left; }
#pickedBySel { min-height: 34px; }

/* maps.html: one tile per map, a colour bar, the name, maps played and a Stats button */
/* 60-column grid: every row of tiles fills the full width (a row of k tiles spans 60/k each, set per tile as --span by renderTiles in maps.html) */
.map-tiles { position: relative; display: grid; grid-auto-rows: 1fr; grid-template-columns: repeat(60, minmax(0, 1fr)); gap: 12px 0; margin: 0 -6px 24px; }   /* no column gap: 59 of them would be wider than a phone; the tiles' side margins make the 12px */
.map-tile { grid-column: span var(--span, 12); margin: 0 6px; position: relative; overflow: hidden; background: #2b2d42; border: 1px solid var(--grid); min-width: 0; padding: 18px 20px 16px 22px; min-height: 150px; color: #fff; text-decoration: none; display: flex; flex-direction: column; justify-content: space-between; }   /* the veto strips' look: photo on the palette's dark blue, in both themes */
.map-tile:hover { color: #fff; text-decoration: none; }   /* the global a:hover would underline and recolour the whole tile */
.map-tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; transition: opacity .2s; }
.map-tile::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(43,45,66,.92), rgba(43,45,66,0) 70%); pointer-events: none; }
.map-tile:hover .map-tile-img, .map-tile.top:hover .map-tile-img { opacity: .75; }   /* .top is more specific than plain :hover, so it needs its own */
.map-tile > :not(.map-tile-img) { position: relative; z-index: 2; }
.map-tile-head { display: flex; align-items: center; gap: 12px; }
.map-tile-name { font: 700 clamp(20px, 2.2vw, 28px)/1.2 var(--font-head); text-transform: capitalize; }
.map-tile-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 10px; margin-top: 12px; color: rgba(255,255,255,.8); font-size: 13px; }
.map-tile-played { display: flex; align-items: baseline; gap: 6px; }
.map-tile-played b { font: 700 24px/1 var(--font-head); color: #fff; }
.map-tile-btn { font: 700 12px/1 var(--font-head); padding: 9px 16px; border: 1px solid rgba(255,255,255,.55); background: rgba(43,45,66,.6); color: #fff; text-decoration: none; }
.map-tile:hover .map-tile-btn, .map-tile:focus-visible .map-tile-btn { background: #fff; color: #2b2d42; }
.map-tile.top .map-tile-img { opacity: .55; }
.map-tile.leaving { position: absolute; margin: 0; pointer-events: none; z-index: 3; }
@media (max-width: 900px) {
  .map-tile { grid-column: span 30; }
  .map-tile:last-child:nth-child(odd) { grid-column: span 60; }
}
.tn-swatch-after { margin-right: 0; margin-left: 6px; }

/* match.html utility tab: the three groups (flashes / HE and fire / smokes) and the shaded cells */
.ut-table th.ut-g-head { text-align: center; }
.ut-table .ut-g-start { border-left: 2px solid var(--line); }
.ut-table td.ut-heat { background: color-mix(in srgb, var(--accent) calc(var(--k, 0) * 28%), transparent); }
h3.ut-team .tn-swatch { height: 16px; vertical-align: -2px; }
.sb-fp { margin-top: 14px; }
.mi-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0; }
.mi-tags:empty { display: none; }
.mi-row:has(> .mi-tags:empty), .mi-row:has(> #seriesLine:empty) { display: none; }
.mi-tag { font: 700 11px/1 var(--font-head); padding: 5px 8px; border: 1px solid var(--grid); color: var(--text); text-decoration: none; background: var(--panel); }
.mi-tag:hover { background: var(--grid); }
table.scoreboard th.keep-case { text-transform: none; }
.ut-table td.ut-heat-orange { background: color-mix(in srgb, #e8731a calc(var(--k, 0) * 38%), transparent); }
.upcoming-list { margin: 0; padding-left: 18px; line-height: 1.8; }
.panel-note:empty { display: none; }

/* series_detail.html: Veto insights next to the side-by-side chart */
.vi-row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
@media (max-width: 960px) { .vi-row { grid-template-columns: minmax(0, 1fr); } }
.vi-boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.vi-box { border: 1px solid var(--grid); background: var(--panel); padding: 10px 12px; }
.vi-box.fav { border-color: var(--good); background: var(--good-bg); }
.vi-box-team { font: 700 13px var(--font-head); }
.vi-box-num { font: 700 28px/1.3 var(--font-head); }
.vi-box.fav .vi-box-num { color: var(--good); }
.vi-box-sub { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.vi-card { border: 1px solid var(--grid); border-left: 4px solid var(--brand); background: var(--panel); padding: 8px 12px; margin-bottom: 8px; }
.vi-title { font: 700 11px var(--font-head); letter-spacing: .06em; color: var(--brand); }
.vi-text { font-size: 13.5px; margin: 2px 0; }
.vi-when { font-size: 11px; color: var(--muted); }
.rank-extremes { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 13px; margin: 0 0 8px; }
.rank-extremes:empty { display: none; }

/* team.html Playstyle: sliders, the insight cards, two panels side by side */
.ps-sliders .pct-row.map-slider:first-child { padding-top: 2px; }
.ps-side-by-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 450px); gap: 16px 24px; align-items: start; }
@media (max-width: 900px) { .ps-side-by-side { grid-template-columns: minmax(0, 1fr); } }
.ps-insight { border: 1px solid var(--grid); border-left: 4px solid var(--brand); background: var(--panel); padding: 4px 14px 8px; }
.ps-insight { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 20px; }   /* strengths | weaknesses (2026-10-19) */
.ps-insight .ps-ins-note { grid-column: 1 / -1; }
@media (max-width: 560px) { .ps-insight { grid-template-columns: minmax(0, 1fr); } }
.ps-insight .ps-sub { margin: 8px 0 6px; }
.ps-insight p { margin: 0 0 8px; font-size: 13px; line-height: 1.5; }
.ps-ins-word { font: 700 11px var(--font-head); text-transform: uppercase; letter-spacing: .04em; margin-right: 4px; }
.ps-ins-note { font-size: 11.5px; }
.ps-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; align-items: start; }
@media (max-width: 1100px) { .ps-pair { grid-template-columns: minmax(0, 1fr); } }
.ps-pair .pct-row.map-slider { grid-template-columns: minmax(110px, 160px) minmax(0, 1fr) 62px; }
.overview-tile.team-accent { box-shadow: inset 0 3px 0 var(--tile-accent); }
/* a tie: the top accent is split between the teams (--tile-accent is then a gradient) */
.stat-tile.overview-tile.team-accent-split { box-shadow: none; background-image: var(--tile-accent); background-size: 100% 3px; background-repeat: no-repeat; background-position: top; }
/* the team line of a tile: [bar logo name] per team, one even gap between the parts */
.stat-tile .tile-sub.tile-teams { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.tile-teams .tile-team { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.tile-teams .tn-swatch, .tile-teams .team-logo { margin: 0; vertical-align: baseline; }
.tile-teams .team-logo { width: 20px; height: 20px; padding: 2px; box-sizing: border-box; }
.tile-teams .tn-swatch { height: 16px; }
.tile-teams .tile-and, .tile-teams .tile-detail { margin: 0; }
.tile-teams .tile-detail::before { content: "·"; margin-right: 6px; }
.kc-seg-wrap { display: inline-flex; align-items: center; gap: 8px; margin-right: 14px; }

/* player.html Utility: Flashes left, Damage right */
.pl-util-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; }
@media (max-width: 900px) { .pl-util-cols { grid-template-columns: minmax(0, 1fr); } }

/* phones: the slider ticks keep their hover/aria value but lose their crowded code labels; the pinned Averages row scrolls with the table */
@media (max-width: 760px) {
  .ms-mark u { display: none; }
  .tall-scroll table tfoot tr td { position: static; }
}

/* ── Map stats (maps.html): ONE card -- chart | picker side by side, the definition as its foot ───────── */
.mstats-title { margin: 0 0 10px; }
.panel.mstats-card { display: grid; grid-template-columns: minmax(0, 1fr) 260px; padding: 0; margin: 0 0 20px; }
.mstats-main { padding: 18px 22px 20px; min-width: 0; }
.mstats-chart { min-width: 0; }
.mstats-picker { display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-left: 1px solid var(--grid); background: var(--bg); grid-column: 2; grid-row: 1; }
.mstats-def { grid-column: 1; grid-row: 2; display: flex; align-content: center; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 13px 22px; border-top: 1px solid var(--grid);
  background: var(--head-bg); font-size: 13px; }
.mstats-def-title { font: 700 13px/1.4 var(--font-head); }
.mstats-def span { line-height: 1.4; }

.mstats-bars { --name-w: 92px; --val-w: 116px; position: relative; padding-right: 36px; }
.mstats-head, .mstats-row { display: grid; grid-template-columns: var(--name-w) var(--val-w) minmax(0, 1fr); align-items: center; }
.mstats-head { padding-bottom: 6px; border-bottom: 2px solid var(--border); }
.mstats-th { padding: 4px 0; background: none; border: 0; text-align: left; cursor: pointer; color: var(--muted);
  font: 700 11px var(--font-head); letter-spacing: .04em; text-transform: uppercase; }
.mstats-th:hover, .mstats-th[aria-sort] { color: var(--text); }
.mstats-th:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mstats-arrow { margin-left: 5px; font-size: 9px; }
.mstats-axis { position: relative; height: 16px; }
.mstats-axis span { position: absolute; top: 3px; left: calc(var(--f) * 100%); transform: translateX(-50%); font: 600 10px var(--font-body); color: var(--muted); }
.mstats-axis span:first-child { transform: none; }
.mstats-axis span:last-child { transform: translateX(-100%); }

/* quarter gridlines behind the bars, on the bar column only */
.mstats-body { position: relative; margin-bottom: 26px; }
.mstats-body::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; left: calc(var(--name-w) + var(--val-w)); pointer-events: none;
  background: linear-gradient(to right, var(--grid) 1px, transparent 1px) 0 0 / 25% 100%; border-right: 1px solid var(--grid); }
.mstats-row { position: relative; min-height: 56px; border-bottom: 1px solid var(--grid); }
.mstats-row:last-of-type { border-bottom: 0; }
.mstats-row:hover { background: var(--row-hover); }
.mstats-name { padding-left: 2px; font: 700 14px var(--font-head); color: var(--text); text-decoration: none; }
.mstats-name:hover { text-decoration: underline; }
.mstats-val { padding-right: 14px; text-align: right; font: 700 15px var(--font-head); font-variant-numeric: tabular-nums; }
.mstats-th.num { padding-right: 14px; text-align: right; }
.mstats-track { position: relative; display: block; height: 32px; }
.mstats-bar { position: absolute; left: var(--l, 0%); top: 0; bottom: 0; width: var(--p); background: var(--img) center / cover, #2b2d42;   /* the photo, dimmed by the ::after veil below until its row is hovered */ transition: width .28s cubic-bezier(.2,.7,.2,1), left .28s cubic-bezier(.2,.7,.2,1); }
/* the average: one dashed line down the whole bar column, labelled at its foot */
.mstats-avg { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px dashed var(--accent2); z-index: 2;
  left: calc(var(--name-w) + var(--val-w) + (100% - var(--name-w) - var(--val-w)) * var(--at)); }
.mstats-zero { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--text); z-index: 1;
  left: calc(var(--name-w) + var(--val-w) + (100% - var(--name-w) - var(--val-w)) * var(--at)); }
.mstats-zero::before { content: ""; position: absolute; top: 0; bottom: 0; left: -7px; width: 12px; }
.mstats-avg::before { content: ""; position: absolute; top: 0; bottom: 0; left: -7px; width: 12px; }
.mstats-avg span { position: absolute; top: 100%; left: 0; transform: translate(-50%, 3px); padding: 1px 6px; white-space: nowrap;
  background: var(--accent2); color: #fff; font: 700 10px var(--font-head); }

.mstats-cat-btn { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 8px; background: none; border: 0; text-align: left;
  font: 700 14px var(--font-head); color: var(--text); cursor: pointer; }
.mstats-cat-btn:hover { background: var(--row-hover); }
.mstats-cat-btn:focus-visible, .mstats-stat:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.mstats-chev { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
.mstats-cat.open .mstats-chev { transform: rotate(45deg); }
.mstats-cat-body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .2s ease-out, visibility 0s .2s; }
.mstats-cat.open .mstats-cat-body { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .2s ease-out; }
.mstats-cat-inner { overflow: hidden; min-height: 0; display: flex; flex-direction: column; padding-left: 24px; }
.mstats-stat { padding: 7px 10px; background: none; border: 0; border-left: 3px solid transparent; text-align: left; font: 600 13px var(--font-body); color: var(--text); cursor: pointer; }
.mstats-stat:hover { background: var(--row-hover); }
.mstats-stat.active { border-left-color: var(--accent2); background: var(--panel); }
.mstats-soon { padding: 6px 10px 8px; font-size: 12px; color: var(--muted); }
@media (max-width: 900px) {
  .panel.mstats-card { grid-template-columns: minmax(0, 1fr); }
  .mstats-picker { border-left: 0; border-top: 1px solid var(--grid); grid-column: auto; grid-row: auto; }
  .mstats-scope { grid-column: auto; grid-row: auto; border-left: 0; }
  .mstats-scope.idle { display: none; }
  .mstats-def { grid-column: auto; grid-row: auto; }
  .mstats-main { padding: 14px 14px 16px; }
  .mstats-def { padding: 12px 14px; }
  .mstats-bars { --name-w: 70px; --val-w: 68px; padding-right: 12px; }
  .mstats-th.num { white-space: normal; line-height: 1.15; }
}
@media (prefers-reduced-motion: reduce) { .mstats-bar, .mstats-cat-body, .mstats-chev { transition: none; } }

/* the round-type scope (round-level stats): the card's bottom-right cell, always there so the layout never moves. CT buy x T buy, each a multiselect with Any */
.mstats-scope { grid-column: 2; grid-row: 2; min-height: 148px; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 12px 10px 14px; min-width: 0;
  border-left: 1px solid var(--grid); border-top: 1px solid var(--grid); background: color-mix(in srgb, var(--ct-mark) 9%, var(--panel)); }
.mstats-scope-label { font: 700 11px var(--font-head); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.mstats-scope-note { font-size: 12px; line-height: 1.35; color: var(--muted); }
.mstats-scope-row { display: flex; align-items: center; gap: 6px; }
.mstats-vs { font-size: 11px; color: var(--muted); }
.mstats-ms { position: relative; flex: 1 1 0; min-width: 0; }
.mstats-ms-btn { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 36px; padding: 6px 22px 6px 8px; background: var(--bg); border: 1px solid var(--line);
  color: var(--text); font: 600 12px var(--font-body); cursor: pointer; position: relative; }
.mstats-ms-sum { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mstats-ms-btn::after { content: ""; position: absolute; right: 9px; top: 50%; width: 5px; height: 5px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.mstats-ms-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mstats-ms-side { padding: 1px 6px; font: 700 10px var(--font-head); color: #fff; }
.mstats-ms-side.ct { background: var(--ct-mark); }
.mstats-ms-side.t { background: var(--t-mark); color: #1b1d29; }
.mstats-ms[data-side="t"] .mstats-ms-panel { left: auto; right: 0; }
.mstats-ms-panel { position: absolute; z-index: 20; bottom: calc(100% + 4px); left: 0; min-width: 170px; padding: 6px 0; background: var(--panel); border: 1px solid var(--border); }
.mstats-ms-panel[hidden] { display: none; }
.mstats-ms-opt { display: flex; align-items: center; gap: 9px; padding: 7px 12px; font: 600 13px var(--font-body); cursor: pointer; }
.mstats-ms-opt:hover { background: var(--row-hover); }
.mstats-ms-opt.any { border-bottom: 1px solid var(--grid); margin-bottom: 4px; }
.mstats-ms-opt.off { color: var(--muted); opacity: .5; cursor: not-allowed; }
.mstats-ms-opt.off:hover { background: none; }
.mstats-row.low .mstats-bar { opacity: .4; }
.mstats-row.low .mstats-name, .mstats-row.low .mstats-val { color: var(--muted); }
@media (max-width: 900px) {
  .mstats-scope { grid-column: auto; grid-row: auto; border-left: 0; }
  .mstats-scope.idle { display: none; }
}
@media (max-width: 900px) { .mstats-scope { min-height: 0; } }
/* Many categories open: the stat picker scrolls inside the card instead of stretching it (its content does not count towards
   the row height -- height 0 + min-height 100% -- so the chart sets it). On phone it stacks and grows as before. */
@media (min-width: 901px) {
  .mstats-picker { height: 0; min-height: 100%; overflow-y: auto; overscroll-behavior: contain; }
}

/* split bars (Sidedness): every map the same total width; the headline colour (blue = CT, yellow = T) leads on the left. The map
   picture is stretched across the whole track behind the bars, which are translucent so it shows through. */
.mstats-track.pic { background: var(--img) center / cover, var(--head-bg); }
.mstats-bar.split { display: flex; background: none; }
.mstats-bar.split .seg { display: flex; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; padding: 0 8px; font: 700 12px var(--font-head); font-variant-numeric: tabular-nums; }
.mstats-bar.split .seg:first-child { flex: 0 0 var(--b); transition: flex-basis .28s cubic-bezier(.2,.7,.2,1); }
.mstats-bar.split .seg:last-child { flex: 1 1 0; justify-content: flex-end; }
.mstats-bar.split .seg.ct { background: color-mix(in srgb, var(--ct-mark) 72%, transparent); color: #fff; }
.mstats-bar.split .seg.t { background: color-mix(in srgb, var(--t-mark) 72%, transparent); color: #1b1d29; }

/* a reference line in a split chart (side win%: 50%): solid, in the text colour, labelled at its head */
.mstats-mid { position: absolute; top: 0; bottom: 0; width: 0; border-left: 2px solid var(--text); z-index: 1;
  left: calc(var(--name-w) + var(--val-w) + (100% - var(--name-w) - var(--val-w)) * var(--at)); }
.mstats-mid::before { content: ""; position: absolute; top: 0; bottom: 0; left: -7px; width: 12px; }
.mstats-mid span { position: absolute; bottom: 100%; left: 0; transform: translate(-50%, -3px); padding: 1px 6px; white-space: nowrap;
  background: var(--text); color: var(--bg); font: 700 10px var(--font-head); }
.mstats-axis span.mid { color: var(--text); font-weight: 800; }

/* the Both / CT / T switch of the sided stats (in the scope cell) */
.mstats-seg { display: flex; }
.mstats-seg button { flex: 1 1 0; padding: 7px 0; background: var(--bg); border: 1px solid var(--line); margin-left: -1px; color: var(--text); font: 700 12px var(--font-body); cursor: pointer; }
.mstats-seg button:first-child { margin-left: 0; }
.mstats-seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; z-index: 1; position: relative; }
.mstats-seg button.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mstats-seg button.on.ct { background: var(--ct-mark); border-color: var(--ct-mark); color: #fff; }
.mstats-seg button.on.t { background: var(--t-mark); border-color: var(--t-mark); color: #1b1d29; }
.mstats-bar.split .seg.win { background: color-mix(in srgb, var(--good) 72%, transparent); color: #fff; }
/* the lean bar: A's photo and B's photo, side by side with a gap, no tint (A and B are not sides, so no side colours); the figure sits on a dark chip */
.mstats-bar.split .seg.sa, .mstats-bar.split .seg.sb { background: var(--img) center / cover, var(--head-bg); background-clip: padding-box; color: #fff; }
.mstats-bar.split .seg.sa { border-right: 2px solid transparent; }   /* the gap is cut out of the two segments' own edges (transparent border, photo clipped to the padding box), so the split stays exact */
.mstats-bar.split .seg.sb { border-left: 2px solid transparent; }
.mstats-bar.split .seg.sa i, .mstats-bar.split .seg.sb i { background: rgba(43,45,66,.78); padding: 2px 6px; }
.mstats-bar.split .seg.loss { background: color-mix(in srgb, var(--accent2) 72%, transparent); color: #fff; }
/* a split segment too narrow for its figure: the figure sits just outside it -- past the right end of the track for the trailing
   segment, over the other colour for the leading one */
.mstats-bar.split .seg i { font-style: normal; }
.mstats-bar.split .seg.narrow { position: relative; overflow: visible; }
.mstats-bar.split .seg.narrow i { position: absolute; left: 100%; margin-left: 6px; color: var(--text); }
.mstats-bar.split .seg.narrow:first-child i { color: #fff; }
.mstats-bar.split .seg.narrow:first-child[data-over="t"] i { color: #1b1d29; }
.mstats-bars { padding-right: 46px; }
@media (max-width: 900px) { .mstats-bars { padding-right: 36px; } }

/* per-site stats (Bombsites): two rows per map, so the rows are half as tall and the card keeps its height */
.mstats-bars.sites .mstats-row { min-height: 28px; }
.mstats-bars.sites .mstats-track { height: 20px; }
.mstats-bars.sites .mstats-name { font-size: 13px; }
.mstats-bars.sites .mstats-val { font-size: 13px; }
.mstats-bars.sites .mstats-bar.split .seg { font-size: 11px; }
.mstats-site { text-transform: none; }
/* phone width: five axis labels do not fit a track this narrow; keep the ends and the middle (the 50% line's label stays) */
@media (max-width: 640px) { .mstats-axis span:nth-child(2), .mstats-axis span:nth-child(4) { display: none; } }

/* map.html Overview: takeaways strip and the map profile (thin rows: value, bar from the average map, gap, rank) */
.pf-take { margin: 0; padding-left: 18px; }
.pf-take li { margin: 3px 0; }
.pf-group h3 { margin: 14px 0 2px; font: 800 13px var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.pf-row { display: grid; grid-template-columns: minmax(150px, 230px) 64px minmax(0, 1fr) 72px 70px; align-items: center; gap: 0 12px; padding: 4px 0; border-top: 1px solid var(--grid); }
.pf-label { font-weight: 700; }
.pf-val { text-align: right; font-variant-numeric: tabular-nums; }
.pf-bar { position: relative; height: 6px; background: var(--grid); }
.pf-bar i { position: absolute; left: 50%; top: -3px; width: 2px; height: 12px; margin-left: -1px; background: var(--line); }
.pf-bar span { position: absolute; top: 0; height: 100%; }
.pf-gap { text-align: right; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pf-rank { text-align: right; font-size: 12px; white-space: nowrap; }
.pf-small .pf-val, .pf-small .pf-bar { opacity: .5; }
@media (max-width: 760px) {
  .pf-row { grid-template-columns: minmax(0, 1fr) 56px 60px; gap: 2px 8px; }
  .pf-label { grid-column: 1 / 2; }
  .pf-val { grid-column: 2; grid-row: 1; }
  .pf-gap { grid-column: 3; grid-row: 1; }
  .pf-bar { grid-column: 1 / 3; grid-row: 2; }
  .pf-rank { grid-column: 3; grid-row: 2; }
}

/* map.html header: the map photo on the palette's dark blue, as the map tiles (both themes) */
.map-hero { position: relative; display: flex; flex-direction: column; margin-bottom: 14px; padding: 18px 24px 16px; min-height: 210px; background: linear-gradient(90deg, rgba(43,45,66,.92) 0%, rgba(43,45,66,.55) 60%, rgba(43,45,66,.25) 100%), var(--img) center / cover, #2b2d42; color: #fff; border: 1px solid var(--grid); }
.map-hero h1, .map-hero .subtitle, .map-hero .crumb, .map-hero .crumb a { color: #fff; }
.map-hero .subtitle { opacity: .85; }
.map-hero .crumb a { text-decoration: none; opacity: .85; }
.map-hero .crumb a:hover { opacity: 1; text-decoration: underline; }
.map-hero h1 { margin: auto 0 4px; font-size: clamp(40px, 6vw, 64px); line-height: 1; }
.map-hero h1::after { display: none; }
.map-hero .subtitle { margin: 0; }
@media (max-width: 760px) { .map-hero { padding: 14px 16px 14px; min-height: 170px; } }

/* map.html stat tiles, in maps.html's look: six small tiles (this map's headline figure against the average map as two bars), and under
   the row the opened tile's stats as maps.html chart rows (photo bars, CT blue / T gold splits, the dashed average), full width. */
.st-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
/* a category: its title above (a button: it opens the category's stats under the row), then the tile, a strip of one card per stat that scrolls sideways */
.st-cat { display: flex; flex-direction: column; min-width: 0; }
.st-cat-title { margin: 0 0 6px; font: 700 14px var(--font-head); }
/* the opener: a full-width button on the tile's foot, labelled, with a caret that turns when it is open */
.st-cat-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px 12px; border: 0; border-top: 1px solid var(--grid); background: none;
  font: 700 13px var(--font-head); color: var(--text); cursor: pointer; }
.st-cat-btn::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.st-cat-btn[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.st-cat-btn:hover { background: var(--row-hover); }
.st-cat-btn[aria-expanded="true"] { box-shadow: inset 0 -3px 0 var(--accent2); }
.st-cat-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.panel.st-tile { display: flex; flex: 1; flex-direction: column; width: 100%; min-width: 0; margin: 0; padding: 0; overflow: hidden; }
.st-cat.open .st-tile { border-top-color: var(--accent2); }
.st-stage { position: relative; flex: 1; display: flex; min-width: 0; }
.st-strip { flex: 1; min-width: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.st-strip::-webkit-scrollbar { display: none; }
.st-strip:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.st-card { display: flex; flex-direction: column; flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.st-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 10px 14px 30px; }      /* the foot is left clear for the dots */
/* the stat's name on its own strip, two lines high so every card's figure starts at the same place */
.st-label { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-height: 50px; padding: 6px 14px; background: var(--head-bg); border-bottom: 1px solid var(--grid); font: 700 15px/1.2 var(--font-head); }
.st-valrow { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; margin-top: 4px; }
.st-big { font: 700 26px/1 var(--font-head); font-variant-numeric: tabular-nums; }
.st-rel { display: flex; flex-direction: column; align-items: flex-end; margin-left: auto; text-align: right; font-size: 12px; line-height: 1.25; color: var(--muted); font-variant-numeric: tabular-nums; }
.st-rel b { font-weight: 700; color: var(--text); }   /* the gap is coloured as the bar's fill (CT blue / T gold, teal / purple) */
/* a spacer above the bar group (bar, ends, verdict): flex:1 soaks up any leftover height in the card, so that group sticks to the
   card's foot and lines up with the sibling tiles' in the same grid row, even when a card has an extra line above it
   (player.html's optional .st-sub) that a sibling's doesn't. Empty when the content already fills the card. */
.st-fill { flex: 1 1 auto; }
/* the lean: the average is the dashed centre (its figure under it), the fill runs toward the most extreme map in view (blue / gold for sides, teal / purple otherwise) */
.st-div { position: relative; display: block; height: 18px; margin-top: 12px; background: var(--grid); }
.st-div > span { position: absolute; top: 0; bottom: 0; }
.st-div > i { position: absolute; left: 50%; top: -4px; bottom: -4px; width: 0; border-left: 2px dashed var(--accent2); }
.st-ends { display: grid; grid-template-columns: 1fr auto 1fr; font: 700 10px var(--font-head); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.st-ends em { font-style: normal; }
.st-ends em:last-child { text-align: right; }
.st-ends .st-mid-label { text-align: center; letter-spacing: 0; color: var(--text); font-variant-numeric: tabular-nums; }
.st-verdict { font: 700 14px/1.25 var(--font-head); }
.st-verdict.flat { font-weight: 600; color: var(--muted); }
.st-card.low .st-div > span { opacity: .5; }
/* the strip's controls: the stat's place among the category's (a square each, the shown one filled) and the two arrows */
.st-nav { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; align-items: center; justify-content: space-between; padding: 0 6px; pointer-events: none; }
.st-nav > * { pointer-events: auto; }
.st-dots { display: flex; gap: 6px; }
.st-dot { width: 8px; height: 8px; padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; }
.st-dot[aria-current="true"] { background: var(--text); border-color: var(--text); }
.st-step { width: 26px; height: 26px; padding: 0; border: 0; background: none; font: 700 20px/1 var(--font-head); color: var(--muted); cursor: pointer; }
.st-step:hover { color: var(--text); background: var(--row-hover); }
.st-dot:focus-visible, .st-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }

/* the opened category grows open under the row and shrinks away (grid rows 0fr -> 1fr; hidden once shut so nothing in it takes focus) */
.st-detail { display: grid; grid-template-rows: 0fr; margin: 0; visibility: hidden;
  transition: grid-template-rows .32s cubic-bezier(.2,.7,.2,1), margin .32s cubic-bezier(.2,.7,.2,1), visibility 0s .32s; }
.st-detail.open { grid-template-rows: 1fr; margin: 16px 0 20px; visibility: visible; transition: grid-template-rows .32s cubic-bezier(.2,.7,.2,1), margin .32s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.st-detail-clip { min-height: 0; overflow: hidden; }
.st-detail.open.settled .st-detail-clip { overflow: visible; }      /* the filter pop-out may hang over the foot of a short panel */
.panel.st-detail-card { display: grid; grid-template-columns: minmax(250px, 34%) minmax(0, 1fr); grid-template-areas: "hl hr" "list chart"; margin: 0; padding: 0; border-top-color: var(--accent2); opacity: 0; transform: translateY(-8px); transition: opacity .22s ease, transform .32s cubic-bezier(.2,.7,.2,1); }
.st-detail.open .st-detail-card { opacity: 1; transform: none; }
.st-head-l { grid-area: hl; display: flex; flex-direction: column; justify-content: center; gap: 12px; min-width: 0; padding: 14px 22px; border-bottom: 1px solid var(--grid); }
.st-hl-top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
/* the chosen stat's head: on the neutral strip colour, with a larger title, and it flashes when another stat is picked, so the change is seen */
.st-head-r { grid-area: hr; min-width: 0; padding: 14px 22px 12px; border-bottom: 1px solid var(--grid); border-left: 1px solid var(--grid); background: var(--head-bg); }
.st-head-r.flash { animation: st-flash .8s ease-out; }
.st-head-r.flash > * { animation: st-swap .35s cubic-bezier(.2,.7,.2,1); }
@keyframes st-flash { from { background: color-mix(in srgb, var(--line) 55%, var(--panel)); } to { background: var(--head-bg); } }
@keyframes st-swap { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.st-detail-title { margin: 0; font: 700 18px var(--font-head); }
.st-detail-sub { font-size: 12px; color: var(--muted); }
/* two columns: the stats of the category (left), the chart of the chosen one (right) */
.st-list { grid-area: list; margin: 0; padding: 0; list-style: none; border-right: 1px solid var(--grid); }
.st-item { display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; align-items: center; gap: 10px; width: 100%; padding: 11px 14px 11px 19px; border: 0; border-bottom: 1px solid var(--grid);
  border-left: 3px solid transparent; background: none; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.st-list li:last-child .st-item { border-bottom: 0; }
.st-item:hover { background: var(--row-hover); }
.st-item[aria-pressed="true"] { background: var(--head-bg); border-left-color: var(--accent2); }
.st-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.st-item-title { display: block; font: 700 14px/1.25 var(--font-head); }
.st-item-sub { display: block; font-size: 12px; color: var(--text); }
.st-item-sub.flat { color: var(--muted); }
.st-item-val { font: 700 14px var(--font-head); font-variant-numeric: tabular-nums; }
.st-item-go { font: 700 20px/1 var(--font-head); color: var(--line); transition: transform .15s ease, color .15s ease; }
.st-item:hover .st-item-go, .st-item[aria-pressed="true"] .st-item-go { color: var(--text); transform: translateX(2px); }
.st-chart { grid-area: chart; min-width: 0; padding: 14px 22px 18px; }
.st-chart-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 14px; margin-bottom: 2px; }
.st-chart-title { margin: 0; font: 700 22px/1.15 var(--font-head); }
.st-chart-def { margin: 6px 0 4px; font-size: 13px; line-height: 1.45; }
.st-chart-sub { margin: 0; }
.st-crow { display: grid; grid-template-columns: 88px 64px minmax(0, 1fr); align-items: center; min-height: 36px; border-bottom: 1px solid var(--grid); }
.st-crow:last-child { border-bottom: 0; }
.st-crow:hover { background: var(--row-hover); }
.st-crow.me { background: color-mix(in srgb, var(--accent2) 20%, var(--panel)); box-shadow: inset 3px 0 0 var(--accent2); }
.st-cname { padding-left: 10px; font: 400 13px var(--font-head); }
.st-crow.me .st-cname { font-weight: 800; }

.st-crow .mstats-val { padding-right: 12px; font-size: 14px; }
.st-crow .mstats-track { height: 24px; margin-right: 38px; }   /* room beside the bar for a narrow segment's figure (maps.html does the same) */
.st-chart .mstats-bar { animation: st-grow .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes st-grow { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .st-head-r.flash, .st-head-r.flash > * { animation: none; } .st-detail, .st-detail.open, .st-detail-card, .st-item-go { transition: none; } .st-chart .mstats-bar { animation: none; } }
/* the average map: the dashed line of maps.html, down the bar */
.st-avg { position: absolute; top: -3px; bottom: -3px; left: calc(var(--at) * 100%); width: 0; border-left: 2px dashed var(--accent2); z-index: 2; pointer-events: none; }
.st-mid { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; border-left: 2px solid var(--text); z-index: 1; pointer-events: none; }
@media (max-width: 1000px) { .st-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .st-card { min-height: 0; }
  .st-body { padding: 8px 12px 30px; }
  .st-label { padding: 6px 12px; }
  .panel.st-detail-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "hl" "list" "hr" "chart"; }
  .st-head-l { padding: 14px 14px 10px; }
  .st-head-r { padding: 12px 14px 10px; border-left: 0; border-top: 1px solid var(--grid); }
  .st-chart-title { font-size: 19px; }
  .st-list { border-right: 0; border-bottom: 1px solid var(--grid); }
  .st-chart { padding: 12px 14px 14px; }
  .st-crow { grid-template-columns: 72px 62px minmax(0, 1fr); }
}

/* map.html Teams tab: affinity (up) against RW% vs avg (across). Squares in team colour; the good / bad corners get a faint tint. */
.quad-wrap { width: 100%; margin-top: 8px; }
.quad-wrap svg { display: block; max-width: 100%; font-family: var(--font-body); }
.quad-good { fill: var(--good-bg); }
.quad-bad { fill: var(--bad-bg); }
.quad-never { fill: var(--head-bg); fill-opacity: .55; }
.quad-grid { stroke: var(--grid); stroke-width: 1; }
.quad-axis { stroke: var(--text); stroke-width: 1.5; }
.quad-tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.quad-title { fill: var(--muted); font: 700 11px var(--font-head); }
.quad-corner { fill: var(--text); font: 700 15px var(--font-head); opacity: .55; }
.quad-corner-sub { fill: var(--muted); font-size: 11px; }
.quad-pt { stroke: var(--panel); stroke-width: 1.5; }
.quad-pt:hover { stroke: var(--text); }
.quad-plate { fill: var(--logo-plate); }
.quad-logo:hover .quad-plate { stroke: var(--text); stroke-width: 1.5; }
.quad-empty { fill: var(--muted); font-size: 13px; }

/* the bars' photos (maps and bombsites) sit under a veil of the palette's dark blue, the map tiles' look; hovering the row lifts it */
.mstats-bar:not(.split)::after, .mstats-bar.split .seg.sa::after, .mstats-bar.split .seg.sb::after {
  content: ""; position: absolute; inset: 0; background: rgba(43, 45, 66, .58); pointer-events: none; transition: opacity .2s ease; }
.mstats-bar.split .seg.sa, .mstats-bar.split .seg.sb { position: relative; }
.mstats-bar.split .seg.sa i, .mstats-bar.split .seg.sb i { position: relative; z-index: 1; }
.mstats-row:hover .mstats-bar::after, .st-crow:hover .mstats-bar::after, .st-crow.me .mstats-bar::after,
.mstats-row:hover .mstats-bar .seg::after, .st-crow:hover .mstats-bar .seg::after, .st-crow.me .mstats-bar .seg::after { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .mstats-bar::after, .mstats-bar .seg::after { transition: none; } }

/* headtohead.html: the team pickers, the two-column team panels, the predicted / real veto. Tokens only; team colours stay
   rectangles (.tn-swatch, .mb-bar). */
.h2h-pick { margin-bottom: 14px; }
.h2h-pickers { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; margin-bottom: 12px; }
.h2h-slot { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); background: var(--bg); }
.h2h-slot:focus-within { border-color: var(--accent); }
.h2h-logo { flex: none; width: 96px; height: 96px; background: var(--logo-plate); border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; }
.h2h-logo:has(img) { border-style: solid; }
.h2h-logo .team-logo { width: 96px; height: 96px; margin: 0; padding: 8px; box-sizing: border-box; }
.h2h-combo { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.h2h-combo input { width: 100%; font: 700 clamp(18px, 2vw, 26px)/1.2 var(--font-head); padding: 6px 8px; background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.h2h-slot-bar { display: block; height: 5px; width: 48px; }
.h2h-slot-meta { font: 700 12px var(--font-head); color: var(--muted); min-height: 1em; }
.h2h-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 20; margin: 2px 0 0; padding: 0; list-style: none; background: var(--panel); border: 1px solid var(--line); max-height: 340px; overflow-y: auto; }
.h2h-list li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; cursor: pointer; }
.h2h-list li.hi { background: var(--accent); color: var(--on-accent); }
.h2h-list li.off { opacity: .4; cursor: default; }
.h2h-list li.none { color: var(--muted); cursor: default; }
.h2h-opt-logo { flex: none; width: 28px; height: 28px; background: var(--logo-plate); border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center; }
.h2h-opt-logo:has(img) { border-style: solid; }
.h2h-opt-logo .team-logo { width: 28px; height: 28px; margin: 0; padding: 2px; box-sizing: border-box; }
.h2h-opt-name { flex: 1; font-weight: 600; }
.h2h-opt-rank { font: 700 11px var(--font-head); opacity: .75; }
@media (max-width: 760px) { .h2h-pickers { grid-template-columns: minmax(0, 1fr); } .h2h-swap { justify-self: center; transform: rotate(90deg); } .h2h-logo { width: 64px; height: 64px; } .h2h-logo .team-logo { width: 64px; height: 64px; } }
.h2h-swap { font: 700 18px/1 var(--font-head); padding: 6px 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.h2h-swap:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.h2h-filters { margin: 14px 0 14px; padding: 10px 14px; border: 1px solid var(--line); background: var(--panel); gap: 10px 28px; }
.h2h-filter-grp { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.h2h-filter-grp[hidden] { display: none; }
.h2h-custom { display: inline-flex; align-items: center; gap: 6px; }
.h2h-rank-in { display: inline-flex; align-items: center; gap: 6px; font: 700 14px var(--font-head); }
.h2h-rank-in input { width: 72px; padding: 6px 8px; font: 700 14px var(--font-head); background: var(--panel); color: var(--text); border: 1px solid var(--line); }
.h2h-help { font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.h2h-empty { padding: 28px 0; color: var(--muted); }
.h2h-clear { margin-left: auto; font: 600 11.5px var(--font-body); padding: 4px 10px; background: none; border: 1px solid var(--line); color: var(--text); }
.h2h-clear:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.match-banner .form-strip { margin: 0; }
.match-banner .mb-team.right.form-strip { justify-content: flex-end; }
.h2h-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; align-items: start; }
.h2h-cols > .panel { min-width: 0; margin-bottom: 18px; }
@media (max-width: 1100px) { .h2h-cols { grid-template-columns: minmax(0, 1fr); } }
.h2h-team h2 { display: flex; align-items: center; gap: 8px; }
.h2h-take { list-style: none; margin: 10px 0 0; padding: 0; font-size: 12.5px; line-height: 1.6; }
.h2h-take li { padding: 2px 0; }
select.h2h-step { min-width: 150px; }
.h2h-hit, .h2h-miss { font: 700 13px var(--font-head); cursor: default; }
.h2h-hit { color: var(--good); }
.h2h-miss { color: var(--muted); }
tr.in-play td:first-child { box-shadow: inset 4px 0 0 var(--brand); }
.h2h-inplay { font: 700 10px var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-left: 4px; white-space: nowrap; }
.h2h-stack > .panel { margin-bottom: 18px; }
.h2h-team td .low-n-tag { white-space: nowrap; }
#mapChips { flex-wrap: wrap; max-width: 100%; }
#mapChips button { border-bottom: 1px solid var(--line); }

/* the chosen stat's head: its text on the left; on the right the link and the round filter (maps.html's pickers, opening downward over the list and the bars) */
.st-head-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: start; }
.st-head-r { min-height: 120px; }      /* the tallest stat head (three lines of text) sets the row, so the left half never changes height between stats */
.st-hr-main { min-width: 0; }
.st-hr-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; min-width: 0; }
.st-chart-link { font-size: 12px; }
.st-scope { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.st-scope .mstats-scope-row { width: 100%; }
.st-scope .mstats-seg { width: 100%; }
.st-scope .mstats-ms-panel { bottom: auto; top: calc(100% + 4px); }
.st-scope-tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 11px var(--font-body); color: var(--muted); }
@media (max-width: 1100px) { .st-head-r { min-height: 0; grid-template-columns: minmax(0, 1fr); } .st-hr-side { align-items: flex-start; } }

/* the Filter button under "Open in Map stats", and the pop-out with the round type and side controls */
.st-filter { position: relative; }
.st-filter-btn { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font: 700 12px var(--font-head); cursor: pointer; }
.st-filter-btn:hover { border-color: var(--text); }
.st-filter-btn.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.st-filter-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.st-filter-pop { position: absolute; z-index: 30; right: 0; top: calc(100% + 6px); width: 320px; max-width: calc(100vw - 32px); padding: 12px 14px 14px; background: var(--panel); border: 2px solid var(--border); text-align: left; }
.st-filter-pop[hidden] { display: none; }
@media (max-width: 1100px) { .st-filter-pop { right: auto; left: 0; } }

/* map.html Teams table: team names stay on one line; the column keeps room for the longest ones */
#recordsTable th:first-child, #recordsTable td:first-child { min-width: 170px; white-space: nowrap; }

/* a minimum (map.html Teams) that sits in the table's search row, right of the row count: label, - / + and the number share the search box's 36px height and look */
.min-ctl { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; margin-left: 12px; }
.min-ctl .ms-group-label { margin: 0 10px 0 0; line-height: 36px; }
.min-ctl .step-btn, .min-ctl input { box-sizing: border-box; height: 36px; margin: 0; border: 1px solid var(--grid); background: var(--bg); color: var(--text); border-radius: 0; font: 12px var(--font-body); }
.min-ctl .step-btn { width: 32px; padding: 0; cursor: pointer; }
.min-ctl .step-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.min-ctl input { width: 52px; padding: 0 4px; text-align: center; border-left: 0; border-right: 0; -moz-appearance: textfield; appearance: textfield; }
.min-ctl input::-webkit-outer-spin-button, .min-ctl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.min-ctl input:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* the Affinity vs results controls: the chart's own minimum and the low-sample toggle; low-sample logos sit on a different plate */
.quad-ctl { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin: 4px 0 10px; }
.quad-ctl .min-ctl { margin-left: 0; }
.quad-ctl .ui-button { height: 36px; }
.quad-ctl .ui-button[aria-pressed="true"], .quad-ctl .ui-button[aria-pressed="true"]:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.quad-plate.low { fill: var(--head-bg); stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 2; }
.quad-logo.low image { opacity: .8; }

/* a tip with a team logo (data-tip-logo): logo left, a rule, then the name and the lines */
.cell-tip.rich:not(.hidden) { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; }
.cell-tip.rich .tip-logo { width: 52px; height: 52px; object-fit: contain; flex: none; background: var(--logo-plate); padding: 2px; }
.cell-tip.rich .tip-body { display: flex; flex-direction: column; gap: 2px; padding-left: 12px; border-left: 2px solid var(--border); }
.cell-tip.rich .tip-body b { font-size: 13px; margin-bottom: 6px; }
.cell-tip.rich .tip-body b.delta-pos, .cell-tip.rich .tip-body b.delta-neg { margin: 0; font-size: inherit; }

/* map.html: "What's map affinity?", open by default; the alarmed bison (my Paint drawing) peeks in from the box's left edge, his body running off it */
.aff-explain { position: relative; overflow: hidden; width: fit-content; max-width: 100%; margin: 0 0 14px; padding: 12px 20px 12px 16px; background: var(--head-bg); border: 1px solid var(--grid); border-left: 5px solid var(--gold); }
.aff-explain[open] { min-height: 132px; padding-left: 112px; }
.aff-explain summary { cursor: pointer; font: 700 15px var(--font-head); color: var(--text); }
.aff-explain p { margin: 6px 0 0; font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 680px; }
/* the sidebar's bison (bison-peek.svg, as a mask so its colour is a token) peeks in from the left edge, body running off it; gold marks over his head */
.aff-explain-bison { position: absolute; left: 0; bottom: 0; width: 76px; height: 108px; background: var(--text); -webkit-mask: url("bison-peek.svg") no-repeat left bottom / contain; mask: url("bison-peek.svg") no-repeat left bottom / contain; pointer-events: none; }
.aff-explain-marks { position: absolute; left: 14px; top: 6px; width: 44px; height: auto; pointer-events: none; }
.aff-explain:not([open]) .aff-explain-bison, .aff-explain:not([open]) .aff-explain-marks { display: none; }
@media (max-width: 700px) { .aff-explain[open] { min-height: 112px; padding-left: 84px; } .aff-explain-bison { width: 60px; height: 86px; } .aff-explain-marks { left: 8px; width: 38px; } }
.veto-legend-lead { font-weight: 700; color: var(--text); }

/* fine_print.html, Map affinity: the weights table runs the full width; each row carries its veto colour (the same colours as the affinity table's bars) as a stripe and a weight chip */
table.lab-fights.aff-weights { max-width: none; width: 100%; }
.aff-weights td { padding-top: 13px; padding-bottom: 13px; }
.aff-weights td:first-child { white-space: nowrap; font-weight: 700; width: 220px; box-shadow: inset 6px 0 0 var(--k); padding-left: 20px; }
.aff-weights td.num { width: 130px; white-space: nowrap; text-align: center; }
.aff-weights td:last-child { color: var(--text); }
.aff-w { display: inline-block; min-width: 76px; padding: 4px 10px; background: var(--k); color: var(--k-ink); font: 700 13px var(--font-body); font-variant-numeric: tabular-nums; text-align: center; }
.aff-weights tr[data-k="picked_by"] { --k: var(--veto-picked-by); --k-ink: var(--veto-picked-by-ink); }
.aff-weights tr[data-k="decider"] { --k: var(--veto-decider); --k-ink: var(--veto-decider-ink); }
.aff-weights tr[data-k="later_ban_against"] { --k: var(--veto-later-ban-against); --k-ink: var(--veto-later-ban-against-ink); }
.aff-weights tr[data-k="first_ban_against"] { --k: var(--veto-first-ban-against); --k-ink: var(--veto-first-ban-against-ink); }
.aff-weights tr[data-k="later_ban"] { --k: var(--veto-later-ban); --k-ink: var(--veto-later-ban-ink); }
.aff-weights tr[data-k="picked_against"] { --k: var(--veto-picked-against); --k-ink: var(--veto-picked-against-ink); }
.aff-weights tr[data-k="first_ban"] { --k: var(--veto-first-ban); --k-ink: var(--veto-first-ban-ink); }
.aff-weights tbody tr { background: color-mix(in srgb, var(--k) 9%, transparent); }

/* fine_print.html, Map affinity in practice: one card per team, the logo big on the left, the title and the season beside it, then the veto bars */
.aff-card { margin: 20px 0 8px; border: 1px solid var(--line); background: var(--panel); }
.aff-card-head { display: flex; align-items: center; gap: 20px; padding: 16px 20px; background: var(--head-bg); border-bottom: 1px solid var(--line); }
.aff-card-head .team-logo { width: 72px; height: 72px; padding: 6px; margin: 0; }
.aff-card-title { font: 700 26px/1.15 var(--font-head); letter-spacing: -.01em; }
.aff-card-sub { margin-top: 4px; font-size: 15px; color: var(--muted); }
.aff-card .table-scroll { margin: 0; }
table.aff-ex { width: 100%; }
#panel-affinity .table-scroll + .lab-text { margin-top: 16px; }
#affExamples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; align-items: start; }
#affExamples .veto-legend { grid-column: 1 / -1; }
#affExamples td.veto-plot-cell { min-width: 150px; width: auto; }
#affExamples .aff-card-head { padding: 14px 16px; gap: 16px; }
#affExamples .aff-card-title { font-size: 22px; }
@media (max-width: 1000px) { #affExamples { grid-template-columns: minmax(0, 1fr); } }

/* the tall tables' Score header is a plain band cell like its neighbours (the shared matchup-score-cell header rule lightened it) */
.tall-scroll thead th.matchup-score-cell { background: var(--band); color: var(--on-band); }
/* map.html Matches: Picked by / Team played sit in the search row */
.match-ctl { gap: 8px; flex-wrap: wrap; }
.match-ctl .ms-group-label { margin: 0 0 0 8px; line-height: 36px; }
.match-ctl .ms-group-label:first-child { margin-left: 0; }
.match-ctl select { height: 36px; }
.match-ctl select { box-sizing: border-box; height: 36px; min-width: 150px; padding: 0 30px 0 12px; border: 1px solid var(--grid); border-radius: 0; background-color: var(--bg); color: var(--text); font: 12px var(--font-body);
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 15px, calc(100% - 12px) 15px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.match-ctl select:hover { border-color: var(--text); }
.match-ctl select:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
/* map.html Matches opens straight on its toolbar (no heading), so the shared flush-table panel would run the table to the panel's edges: give it side margins */
#matchesPanel { padding: 0 20px 18px; }
#matchesPanel > .table-tools:first-child { padding-left: 0; padding-right: 0; }

/* the column pickers in a table's toolbar (Teams, Players...): same size and weight as Compact / Share / CSV, a columns icon in front and a real chevron behind */
.table-actions .tournament-dropdown-btn { display: inline-flex; align-items: center; gap: 8px; box-sizing: border-box; height: 36px; min-height: 36px; padding: 0 12px; font: 600 12px var(--font-body); }
.table-actions .tournament-dropdown-btn::before { content: ""; width: 14px; height: 14px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 4h18v16H3zM9 4v16M15 4v16'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 4h18v16H3zM9 4v16M15 4v16'/%3E%3C/svg%3E") center / contain no-repeat; }
.table-actions .tournament-dropdown-btn::after { content: ""; width: 6px; height: 6px; flex: none; margin: -3px 0 0 2px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); opacity: .7; }
.table-actions .tournament-dropdown-btn[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(-135deg); }
.table-actions .tournament-dropdown-btn:hover { border-color: var(--text); }
.h2h-est { font: 700 11px/1 var(--font-head); color: var(--muted); text-decoration: none; vertical-align: super; margin-left: 2px; padding: 0 2px; }
.h2h-est:hover, .h2h-est:focus-visible { color: var(--accent2); }
.h2h-help.flash { animation: h2hFlash 1.6s ease-out; }
@keyframes h2hFlash { 0%, 40% { background: var(--good-bg); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .h2h-help.flash { animation: none; background: var(--good-bg); } }
/* headtohead.html: one page, three sections */
.h2h-sec { margin: 0 0 30px; }
.h2h-sec-title { font: 900 clamp(22px, 2.6vw, 30px)/1.1 var(--font-head); letter-spacing: -.01em; margin: 26px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--text); text-transform: none; }
/* the veto board: one card per step, the predicted map and the real one as map photos */
.h2h-vsteps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.h2h-vstep { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--line); background: var(--bg); }
.h2h-vhead { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.h2h-vnum { font: 900 15px var(--font-head); }
.h2h-vteam { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.h2h-vlabel { font: 700 10px var(--font-head); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 4px; }
.h2h-vtile { position: relative; display: flex; align-items: flex-end; width: 100%; min-height: 64px; padding: 6px 8px; overflow: hidden; border: 0; background: var(--veto-bg, #2b2d42); color: #fff; text-align: left; font: inherit; }
.h2h-vtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.h2h-vtile.first_ban, .h2h-vtile.later_ban { background: var(--veto-ban-bg, #7a1c2a); }
.h2h-vtile.first_ban img, .h2h-vtile.later_ban img { filter: grayscale(1); opacity: .28; }
.h2h-vtile.first_ban .h2h-vname, .h2h-vtile.later_ban .h2h-vname { text-decoration: line-through; opacity: .85; }
.h2h-vtile.picked_by img, .h2h-vtile.decider img { opacity: .85; }
.h2h-vname { position: relative; z-index: 1; font: 700 15px var(--font-head); text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.h2h-vbar { position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 5px; }
.h2h-vtag { position: absolute; z-index: 1; right: 4px; top: 4px; }
.h2h-vtile.empty { background: transparent; border: 1px dashed var(--line); color: var(--muted); align-items: center; justify-content: center; }
button.h2h-real { cursor: pointer; }
button.h2h-real:hover { outline: 2px solid var(--accent); }
button.h2h-real:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.h2h-vchoose { font-size: 12px; text-align: center; width: 100%; }
.h2h-pop { position: absolute; z-index: 30; top: 100%; left: 0; margin-top: 2px; width: 230px; max-width: 80vw; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 8px; background: var(--panel); border: 1px solid var(--accent); }
.h2h-vsteps > .h2h-vstep:nth-child(n+5) .h2h-pop { left: auto; right: 0; }
.h2h-popmap { position: relative; display: flex; align-items: flex-end; min-height: 48px; padding: 4px 6px; overflow: hidden; border: 0; background: var(--veto-bg, #2b2d42); color: #fff; font: 700 12px var(--font-head); text-align: left; }
.h2h-popmap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.h2h-popmap span { position: relative; z-index: 1; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.h2h-popmap:hover, .h2h-popmap:focus-visible { outline: 2px solid var(--accent); }
.h2h-popmap[aria-selected="true"] { outline: 2px solid var(--good); }
.h2h-popclear { grid-column: 1 / -1; padding: 5px; font: 600 12px var(--font-body); background: none; border: 1px solid var(--line); color: var(--text); }
/* headtohead.html: the maps in play, one tab per map */
#mapTabs { margin-top: 14px; }
.h2h-tabsub { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 4px; }
#mapTabs button.active .h2h-tabsub { color: var(--text); }
.h2h-role { font: 600 12px var(--font-body); color: var(--muted); text-transform: none; letter-spacing: 0; }
.h2h-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 4px 0 10px; }
.h2h-stat { border: 1px solid var(--grid); background: var(--panel); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.h2h-stat b { font: 700 22px/1.2 var(--font-head); }
.h2h-stat-l { font: 700 10.5px var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.h2h-stand { border: 1px solid var(--grid); border-left: 4px solid var(--brand); background: var(--panel); padding: 8px 12px; margin-bottom: 8px; font-size: 12.5px; line-height: 1.5; }
.h2h-stand.best { border-left-color: var(--good); }
.h2h-stand.worst { border-left-color: var(--accent2); }
.h2h-stand-t { font: 700 10.5px var(--font-head); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
/* the latest maps on a map: one row each, result chip | score | opponent (logo, name, rank) | date over the event */
.h2h-recent { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--grid); background: var(--panel); }
.h2h-recent:not(.open) li.extra { display: none; }
.h2h-recent:has(+ .h2h-more) { margin-bottom: 0; }
.h2h-more { display: block; width: 100%; margin: 0 0 12px; padding: 7px 10px; border: 1px solid var(--grid); border-top: 0; background: var(--head-bg); color: var(--text); font: 700 12px var(--font-head); cursor: pointer; }
.h2h-more:hover { background: var(--row-hover); }
.h2h-more:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.h2h-recent li + li { border-top: 1px solid var(--grid); }
.h2h-recent a { display: grid; grid-template-columns: 26px 54px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; color: var(--text); font-weight: 400; text-decoration: none; }
.h2h-recent a:hover { background: var(--row-hover); text-decoration: none; color: var(--text); }
.h2h-res-wl { display: inline-grid; place-items: center; height: 22px; font: 800 12px var(--font-head); color: #fff; background: var(--good); }
.h2h-recent .l .h2h-res-wl { background: var(--accent2); }
:root[data-theme="dark"] .h2h-res-wl { color: var(--bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .h2h-res-wl { color: var(--bg); } }
.h2h-res-score { font: 700 14px var(--font-head); font-variant-numeric: tabular-nums; }
.h2h-res-opp { display: flex; align-items: center; gap: 7px; min-width: 0; }
.h2h-res-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2h-res-when { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.h2h-res-ev { max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; }
@media (max-width: 700px) { .h2h-recent a { grid-template-columns: 24px 48px minmax(0, 1fr); } .h2h-res-when { grid-column: 2 / -1; align-items: flex-start; flex-direction: row; gap: 8px; } .h2h-res-ev { max-width: none; } }
.h2h-sub { font: 800 19px/1.2 var(--font-head); letter-spacing: -.005em; margin: 26px 0 10px; text-transform: none; }
.h2h-mapmeet { margin-top: 0; }
.h2h-mapmeet .h2h-sub { margin-top: 0; font-size: 16px; }
/* the VRS / HLTV switch: a sliding knob, the chosen word in bold */
.h2h-switch { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px; background: none; border: 0; color: var(--muted); font: 700 12px var(--font-head); cursor: pointer; }
.h2h-sw-track { position: relative; width: 40px; height: 20px; border: 1px solid var(--line); background: var(--panel); }
.h2h-sw-track i { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; background: var(--accent); transition: transform .18s ease; }
.h2h-switch.hltv .h2h-sw-track i { transform: translateX(20px); }
.h2h-switch:not(.hltv) .h2h-sw-l[data-r="vrs"], .h2h-switch.hltv .h2h-sw-l[data-r="hltv"] { color: var(--text); }
.h2h-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .h2h-sw-track i { transition: none; } }

/* "One fight: who wins" widget (xK tab, section 1): a made-up map and two players on the left, one row per fact on the right (DRAFT 2026-10-30) */
.ww { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin: 10px 0; align-items: start; }
.ww-stage { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 8px; }
.ww-map { width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.ww-floor { fill: var(--panel); }
.ww-site { fill: none; stroke: var(--line); stroke-dasharray: 4 3; }
.ww-sitetag { fill: var(--text); font: 700 13px var(--font-head); text-anchor: middle; paint-order: stroke; stroke: var(--panel); stroke-width: 4px; }
.ww-wall { fill: var(--line); }
.ww-sight { stroke: var(--text); stroke-width: 2.5; stroke-dasharray: 6 5; }
.ww-node circle { fill: #fff; stroke: var(--text); stroke-width: 2.5; transition: fill .35s, stroke .35s; }
.ww-node text { font: 700 11px var(--font-head); text-anchor: middle; fill: #fff; opacity: 0; transition: opacity .35s; pointer-events: none; }
.ww-map:not(.s0) .ww-node.ct circle { fill: var(--ct-color); stroke: var(--ct-color); }
.ww-map:not(.s0) .ww-node.t circle { fill: var(--t-color); stroke: var(--t-color); }
.ww-map:not(.s0) .ww-node.t text { fill: #1e2030; }
.ww-map:not(.s0) .ww-node text { opacity: 1; }
.ww-tag { font: 700 13px var(--font-head); text-anchor: middle; fill: var(--text); opacity: 0; transition: opacity .35s; paint-order: stroke; stroke: var(--panel); stroke-width: 4px; }
.ww-map:not(.s0):not(.s1) .ww-tag { opacity: 1; }
.ww-bar { display: flex; height: 28px; font: 700 13px var(--font-head); }
.ww-bar span { display: flex; align-items: center; padding: 0 8px; white-space: nowrap; overflow: hidden; transition: width .35s; }
.ww-bar .ct { background: var(--line); color: var(--text); }
.ww-bar .t { flex: 1; background: var(--grid); color: var(--text); justify-content: flex-end; }
.ww:not([data-s="0"]) .ww-bar .ct { background: var(--ct-color); color: #fff; }
.ww:not([data-s="0"]) .ww-bar .t { background: var(--t-color); color: #1e2030; }
.ww-controls { display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); background: var(--panel); padding: 10px; }
.ww-body-in > .ww-controls { margin: 0 0 12px; background: none; }
.ww-counts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.ww-count { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ww-count span { min-width: 64px; }
.ww-count b { min-width: 1.2em; text-align: center; font-variant-numeric: tabular-nums; }
.ww-count button { font: 700 14px var(--font-head); width: 28px; height: 28px; padding: 0; border: 2px solid var(--border); background: var(--panel); color: var(--text); cursor: pointer; }
.ww-count button:disabled { opacity: .4; cursor: default; }
.ww-count.ct button { border-color: var(--ct-color); } .ww-count.t button { border-color: var(--t-color); }
.ww-counts[hidden] { display: none; }
.ww-sec { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 8px; }
.ww-sec[hidden] { display: none; }
.ww-sec.ww-man { border-top: 0; padding-top: 0; }
.ww-sec.ww-man .ww-counts { align-items: center; }
.ww-man-h { font: 700 11px var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; }
.ww-sec h5 { margin: 0; font: 700 11px var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ww-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.ww-list { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ww-list-h { font: 700 12px var(--font-head); }
.ww-list.ct .ww-list-h { color: var(--ct-color); } .ww-list.t .ww-list-h { color: var(--warn); }
.ww-pick > summary { list-style: none; display: flex; align-items: center; gap: 8px; font: 13px var(--font-body); padding: 4px 8px; min-height: 30px; border: 2px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; }
.ww-pick > summary::-webkit-details-marker { display: none; }
.ww-pick > summary::after { content: "▾"; margin-left: auto; color: var(--muted); }
.ww-pick[open] > summary::after { content: "▴"; }
.ww-list.ct .ww-pick > summary { border-color: var(--ct-color); background: var(--ct-track); } .ww-list.t .ww-pick > summary { border-color: var(--t-color); background: var(--t-track); }
.ww-pick > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ww-opts { display: flex; flex-direction: column; gap: 3px; margin-top: 3px; }
.ww-list button { display: flex; align-items: center; gap: 8px; text-align: left; font: 13px var(--font-body); padding: 4px 8px; min-height: 28px; border: 2px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; }
.ww-ic { display: flex; align-items: center; gap: 3px; width: 62px; flex: none; }
.ww-list button[aria-pressed="true"] { color: var(--text); }
.ww-list.ct button[aria-pressed="true"] { border-color: var(--ct-color); background: var(--ct-track); }
.ww-list.t button[aria-pressed="true"] { border-color: var(--t-color); background: var(--t-track); }
.ww-list button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ww-mapwrap { position: relative; }
.ww-gun { position: absolute; transform: translateY(-50%); display: none; align-items: center; padding: 3px 6px; background: var(--panel); border: 1px solid var(--line); color: var(--text); opacity: 0; transition: opacity .35s; }
.ww-gun.on { display: flex; opacity: 1; }
.ww-gun .eq + .eq { margin-left: 4px; }
.ww-extra circle { stroke-width: 2.5; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); transition: opacity .35s, transform .35s; }
.ww-extra.ct circle { fill: var(--ct-color); stroke: var(--ct-color); } .ww-extra.t circle { fill: var(--t-color); stroke: var(--t-color); }
.ww-extra.on circle { opacity: 1; transform: none; }
.ww-rows { display: flex; flex-direction: column; gap: 8px; }
.ww-row { border: 1px solid var(--line); border-left: 3px solid var(--line); background: var(--panel); transition: border-color .3s, background .3s; }
.ww-row.cur { border-left-color: var(--brand); }
.ww-row.next, .ww-row.soon { border-style: dashed; background: none; }
.ww-row.soon { opacity: .6; }
.ww-head { all: unset; box-sizing: border-box; width: 100%; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 9px 12px; font-size: 14px; cursor: default; }
.ww-head:not(:disabled) { cursor: pointer; }
.ww-head:not(:disabled):hover b { text-decoration: underline; }
.ww-head:focus-visible, .ww-actions button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ww-row.next .ww-head, .ww-row.soon .ww-head { color: var(--muted); }
.ww-body { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s ease, visibility 0s .4s; }
.ww-row.cur .ww-body { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .4s ease, visibility 0s; }
.ww-body-in { overflow: hidden; min-height: 0; padding: 0 12px; opacity: 0; transition: opacity .3s; }
.ww-row.cur .ww-body-in { opacity: 1; transition: opacity .4s .15s; }
.ww-body p { margin: 0 0 10px; font-size: 14px; }
.ww-actions { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 12px; }
.ww-actions button { font: 700 13px var(--font-head); padding: 6px 12px; border: 2px solid var(--border); background: var(--panel); color: var(--text); cursor: pointer; }
.ww-actions button:disabled { opacity: .4; cursor: default; }
.ww-actions button[hidden] { display: none; }
.ww-actions .ww-next { margin-left: auto; }
.ww-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.ww-delta { color: var(--muted); font-weight: 400; margin-left: 4px; }
.ww-delta.up, .ww-delta.down { font-weight: 700; padding: 1px 7px; margin-left: 6px; }
.ww-delta.up { background: var(--ct-color); color: #fff; }       /* a step that helps the CT: blue; one that helps the T: gold */
.ww-delta.down { background: var(--t-color); color: #1e2030; }
@media (max-width: 700px) { .ww { grid-template-columns: minmax(0, 1fr); } .ww-stage { position: static; } }
@media (prefers-reduced-motion: reduce) { .ww-node circle, .ww-node text, .ww-tag, .ww-bar span, .ww-extra circle, .ww-row, .ww-body, .ww-body-in { transition: none !important; } }
.ww-sec.ww-man .ww-counts { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; }
.ww-sec.ww-man .ww-count.t { justify-self: end; }
.ww-sec.ww-man .ww-man-h { order: 0; }
.ww-ic { width: 54px; }
.ww-pick > summary, .ww-list button { white-space: nowrap; }
@media (max-width: 420px) { .ww-sec.ww-man .ww-counts { grid-template-columns: 1fr; } .ww-sec.ww-man .ww-count.t { justify-self: start; } }
.ww-sec.ww-man .ww-count span { min-width: 0; }
.ww-sec.ww-man .ww-count { gap: 6px; }
.ww-ic .eq { max-width: 100%; }
[data-pick^="a"] .ww-ic, [data-wwa] .ww-ic { width: 26px; }

/* the weapons and armour rows follow the man-advantage row: the CT's control, the factor's name between, the T's control */
.ww-tri { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: start; }
.ww-tri .ww-man-h { line-height: 30px; padding: 0 4px; }
.ww-tri .ww-list.t .ww-radio { justify-content: flex-end; }
.ww-radio { display: flex; gap: 4px; }
.ww-radio button { display: flex; align-items: center; justify-content: center; gap: 3px; min-width: 42px; height: 30px; padding: 0 6px; border: 2px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; }
.ww-x { font: 700 14px var(--font-head); line-height: 1; }
.ww-radio button[aria-checked="true"] { color: var(--text); }
.ww-list.ct .ww-radio button[aria-checked="true"] { border-color: var(--ct-color); background: var(--ct-track); }
.ww-list.t .ww-radio button[aria-checked="true"] { border-color: var(--t-color); background: var(--t-track); }
.ww-radio button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 420px) { .ww-tri { grid-template-columns: minmax(0, 1fr); } .ww-tri .ww-man-h { text-align: left; line-height: 1.4; } }
.ww-tri .ww-pick { width: 150px; max-width: 100%; }
.ww-tri .ww-list.ct .ww-pick { justify-self: start; }
.ww-tri .ww-list.t .ww-pick { margin-left: auto; }
.ww-tri .ww-pick { width: 128px; }
.ww-tri .ww-pick > summary, .ww-tri .ww-opts button { gap: 6px; padding: 4px 6px; overflow: hidden; text-overflow: ellipsis; }
.ww-tri .ww-pick .ww-ic { width: 34px; }

.ww-dist { display: flex; flex-direction: column; gap: 6px; }
.ww-dist-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ww-dist input[type=range] { width: 100%; accent-color: var(--brand); }
.ww-try { align-self: flex-start; font: 700 12px var(--font-head); padding: 5px 10px; border: 2px solid var(--border); background: var(--panel); color: var(--text); cursor: pointer; }
.ww-try.on { background: var(--t-track); border-color: var(--t-color); }

.ww-pick.wide { width: 100%; }
.ww-pick.wide > summary { background: var(--panel); border-color: var(--line); }
.ww-pick.wide .ww-opts button { display: block; width: 100%; text-align: left; font: 13px var(--font-body); padding: 4px 8px; border: 2px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; }
.ww-pick.wide .ww-opts button[aria-pressed="true"] { color: var(--text); border-color: var(--brand); }
.ww-toggle { font: 700 12px var(--font-head); padding: 6px 10px; min-height: 30px; border: 2px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; }
.ww-list.ct .ww-toggle[aria-pressed="true"] { border-color: var(--ct-color); background: var(--ct-track); color: var(--text); }
.ww-list.t .ww-toggle[aria-pressed="true"] { border-color: var(--t-color); background: var(--t-track); color: var(--text); }
.ww-tri .ww-list.t .ww-toggle { margin-left: auto; }
.ww-ring { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-dasharray: 4 3; opacity: 0; transition: opacity .35s; }
.ww-ring.on { opacity: 1; }
.ww-c4 { position: absolute; transform: translate(-50%, -50%); display: none; width: 22px; height: 22px; background-color: var(--brand); -webkit-mask: url(equipment/c4.png) center / contain no-repeat; mask: url(equipment/c4.png) center / contain no-repeat; }
.ww-c4.on { display: block; }

.ww-try[hidden] { display: none; }
/* the weapon pickers take their whole column (the longest name, "Premium rifles", has to fit beside its icon) */
.ww-tri { gap: 6px; }
.ww-tri .ww-pick { width: 100%; }
.ww-tri .ww-man-h { padding: 0 2px; }
.ww-tri .ww-pick > summary, .ww-tri .ww-opts button { font-size: 12.5px; gap: 5px; padding: 4px 5px; }
.ww-tri .ww-pick .ww-ic { width: 30px; }
.ww-tri .ww-pick > summary::after { margin-left: auto; padding-left: 4px; }
.ww-tri .ww-pick > summary, .ww-tri .ww-opts button { font-size: 12px; }
.ww-tri .ww-pick .ww-ic { width: 26px; }
.ww-tri .ww-pick > summary::after { padding-left: 2px; font-size: 10px; }

/* the last step's two toggles: equal, centred, one on each side of the factor's name */
.ww-tri .ww-list .ww-toggle { width: 100%; margin: 0; text-align: center; outline: none; }
.ww-tri .ww-list .ww-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ww-toggle[aria-pressed="true"]::before { content: "✓ "; }
.ww-controls > .ww-bar { margin-top: 2px; }

.ww-actions .ww-skip { margin-left: auto; font: 13px var(--font-body); padding: 6px 4px; border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; }
.ww-skip[hidden] { display: none; }
.ww-skip:not([hidden]) + .ww-next { margin-left: 8px; }
.ww-skip:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ww-row .ww-sum { margin: 0 0 10px; }

.ww-controls[hidden] { display: none; }

/* the "who fights whom" widget (xK tab, section 2): the who-wins widget's layout, with four players and a line per pair */
.wf-lines line { stroke: var(--text); stroke-linecap: round; transition: stroke-width .35s, opacity .35s; }
.wf-tag rect { fill: var(--panel); stroke: var(--line); }
.wf-tag text { font: 700 12px var(--font-head); fill: var(--text); text-anchor: middle; }
.wf-player circle { stroke: var(--panel); stroke-width: 2.5; transition: cx .35s, cy .35s; }
.wf-player.ct circle { fill: var(--ct-color); } .wf-player.t circle { fill: var(--t-color); }
.wf-name { font: 700 12px var(--font-head); fill: var(--text); text-anchor: middle; paint-order: stroke; stroke: var(--panel); stroke-width: 4px; }
.wf-pos { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px 8px; align-items: center; }
.wf-pos-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wf-pos-col label { display: flex; flex-direction: column; gap: 2px; font: 700 12px var(--font-head); }
.wf-pos-col.ct label span { color: var(--ct-color); } .wf-pos-col.t label span { color: var(--warn); }
.wf-pos-col select { font: 13px var(--font-body); padding: 4px 6px; border: 2px solid var(--line); background: var(--panel); color: var(--text); min-width: 0; }
.wf-pos-col.ct select { border-color: var(--ct-color); } .wf-pos-col.t select { border-color: var(--t-color); }
.wf-pos .ww-toggle { width: 100%; }
.ww-sec .ww-try { margin-top: 2px; }
.wf-shares { display: flex; flex-direction: column; gap: 8px; }
.wf-share { display: grid; grid-template-columns: minmax(0, 9em) minmax(0, 1fr) 3.4em 3em; gap: 2px 8px; align-items: center; font-size: 13px; }
.wf-share .wf-d { font: 700 12px var(--font-head); font-style: normal; text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.wf-why { grid-column: 1 / -1; font-size: 12px; color: var(--muted); line-height: 1.35; }
.wf-why em { font-style: normal; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wf-share-bar { position: relative; }
.wf-share-bar s { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--muted); }
.wf-shares-key { margin: 6px 0 0; }
.wf-shares-key:empty { display: none; }
.wf-share span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-share-bar { height: 12px; background: var(--grid); }
.wf-share-bar i { display: block; height: 100%; background: var(--text); transition: width .35s; }
.wf-share b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .wf-pos { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .wf-lines line, .wf-player circle, .wf-share-bar i { transition: none; } }
.ww-controls > .ww-sec:first-child { border-top: 0; padding-top: 0; }

.wf-try { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.wf-try .wf-try-note { margin: 0; flex: 1 1 14em; }
.wf-try .wf-try-note:empty { display: none; }

/* The Fine Print's putting-it-together widget (xK section 3): a 1v2 on the radar, each T's fight numbers by their name, then the accounting table */
.pt-lines line { stroke: var(--text); stroke-linecap: round; opacity: .8; }
.pt-lines line.pt-maybe { stroke-dasharray: 5 6; opacity: .6; }
.pt-lines line.pt-off { opacity: .2; }
.pt-lines line.pt-on { opacity: 1; }
.pt-player circle { stroke: var(--panel); stroke-width: 3; }
.pt-player.ct circle { fill: var(--ct-color); } .pt-player.t circle { fill: var(--t-color); }
.pt-player.pt-dead circle { opacity: .35; }
.pt-name, .pt-tag { font: 700 15px var(--font-head); fill: var(--text); paint-order: stroke; stroke: var(--panel); stroke-width: 4px; stroke-linejoin: round; }
.pt-tag { font-weight: 400; font-size: 14px; }
.pt-kits { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pt-kitc { display: inline-flex; align-items: center; gap: 5px; font: 700 12px var(--font-head); }
.pt-kitc.ct b { color: var(--ct-color); } .pt-kitc.t b { color: var(--warn); }
.pt-kbtns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.pt-kbtns .ww-toggle { width: 100%; text-align: left; }
.wf-share-bar.pt-q { background: var(--t-color); }
.wf-share-bar.pt-q i { background: var(--ct-color); }
.pt-up { align-self: flex-start; font: 13px var(--font-body); padding: 2px 0; border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; }
.pt-up:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.pt-tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pt-tbl th, .pt-tbl td { padding: 4px 6px; text-align: right; white-space: nowrap; }
.pt-tbl thead th { font: 700 11px var(--font-head); color: var(--muted); border-bottom: 1px solid var(--line); text-transform: none; letter-spacing: 0; }
.pt-tbl th:first-child { text-align: left; }
.pt-tbl tbody th { font: 700 12.5px var(--font-head); }
.pt-tbl tbody th.ct { color: var(--ct-color); } .pt-tbl tbody th.t { color: var(--warn); }
.pt-tbl tfoot th, .pt-tbl tfoot td { border-top: 1px solid var(--line); color: var(--muted); font-weight: 400; }
.pt-how { margin: 6px 0 0; }
.pt-how:empty { display: none; }
@media (max-width: 420px) { .pt-kbtns { grid-template-columns: minmax(0, 1fr); } }
.pt-gun { position: absolute; transform: translateY(-50%); display: flex; align-items: center; padding: 2px 5px; background: var(--panel); border: 1px solid var(--line); color: var(--text); pointer-events: none; }
.pt-gun.ct { border-color: var(--ct-color); } .pt-gun.t { border-color: var(--t-color); }
.pt-gun.left { transform: translate(-100%, -50%); }

/* The Fine Print's softening widget (Impact tab): two player cards with health bars, the credit table below */
.sf-stage { gap: 10px; }
.sf-cards { display: flex; flex-direction: column; gap: 10px; }
.sf-card { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 2px solid var(--line); background: var(--panel); }
.sf-card.ct { border-color: var(--ct-color); background: var(--ct-track); } .sf-card.t { border-color: var(--t-color); background: var(--t-track); }
.sf-top { display: flex; align-items: center; gap: 8px; font: 700 14px var(--font-head); }
.sf-top span:not(.sf-gun) { font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.sf-gun { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.sf-hp { display: flex; height: 14px; background: var(--grid); }
.sf-hp i { display: block; background: var(--good); transition: width .35s; }
.sf-hp u { display: block; text-decoration: none; background: var(--bad-bg); border-left: 1px solid var(--line); transition: width .35s; }
.sf-card em { font: 700 12px var(--font-head); font-style: normal; font-variant-numeric: tabular-nums; }
.sf-from { margin: 0; }
.sf-causes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sf-causes .ww-toggle { width: 100%; }
.sf-worth { margin: 0; }
.sf-note { margin: 6px 0 0; }
@media (max-width: 420px) { .sf-causes { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .sf-hp i, .sf-hp u { transition: none; } }
.ww-controls[hidden] { display: none; }

/* The Fine Print's "Impact & xK" tab, sections 4 to 8 (2026-11-01): the family ladder, the worked tables, the split bar and the playing-style scatter */
.im-ladder { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 0; }
.im-ladder li { display: flex; flex-direction: column; gap: 1px; padding: 6px 0 6px 14px; border-left: 3px solid var(--line); position: relative; }
.im-ladder li:last-child { border-left-color: var(--brand); }
.im-ladder b { font: 700 13px var(--font-head); }
.im-ladder span { font-size: 13px; color: var(--muted); }
.im-h3 { font: 700 13px var(--font-head); margin: 18px 0 6px; }
.im-how { margin-top: 10px; }
.im-how summary { cursor: pointer; font: 600 12.5px var(--font-body); color: var(--muted); }
.im-how summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.im-how p { margin-top: 8px; }
.im-tbl th:first-child { white-space: normal; }
.im-tbl tr.im-sum th, .im-tbl tr.im-sum td { border-top: 1px solid var(--line); font-weight: 700; }
.im-tbl tr.im-total th, .im-tbl tr.im-total td { border-top: 2px solid var(--line); }
.im-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 8px; }
.im-controls label { font: 600 12px var(--font-body); display: inline-flex; align-items: center; gap: 6px; }
.im-controls select { font: 12px var(--font-body); padding: 3px 6px; border: 1px solid var(--line); background: var(--panel); color: var(--text); }
.im-chart { position: relative; }
.im-svg { display: block; width: 100%; height: auto; }
.im-grid { stroke: var(--grid); stroke-width: 1; }
.im-zero { stroke: var(--line); stroke-width: 1.5; }
.im-tick { font: 10.5px var(--font-body); fill: var(--muted); }
.im-axis { font: 600 11px var(--font-body); fill: var(--muted); }
.im-dot { fill: var(--line); fill-opacity: .75; stroke: var(--panel); stroke-width: 1; }
.im-dot.awp { fill: var(--hi); fill-opacity: .85; }
.im-dot.named { stroke: var(--text); stroke-width: 1.5; fill-opacity: 1; }
.im-dot.hot { stroke: var(--text); stroke-width: 2; }
.im-dot:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.im-name { font: 700 11px var(--font-head); fill: var(--text); paint-order: stroke; stroke: var(--panel); stroke-width: 3px; stroke-linejoin: round; }
.im-tip { position: absolute; z-index: 2; pointer-events: none; padding: 5px 8px; background: var(--panel); border: 1px solid var(--text); font: 12px/1.35 var(--font-body); white-space: nowrap; }
.im-bars { display: flex; flex-direction: column; gap: 12px; }
.im-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 600 12px var(--font-body); }
.im-legend span { display: inline-flex; align-items: center; gap: 5px; }
.im-legend .im-seg { position: static; display: inline-block; width: 12px; height: 12px; }
.im-brow { display: grid; grid-template-columns: 74px minmax(0, 1fr) 54px; align-items: center; gap: 2px 10px; }
.im-bn { font: 700 13px var(--font-head); }
.im-btrack { position: relative; height: 18px; background: var(--grid); }
.im-seg { position: absolute; top: 0; bottom: 0; }
.im-seg.won { background: var(--accent); }
.im-seg.picked { background: var(--line); }
.im-seg.soft { background: var(--hi); }
.im-zl { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--text); }
.im-tot { position: absolute; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: var(--brand); border: 2px solid var(--panel); transform: rotate(45deg); text-decoration: none; }
.im-legend .im-tot { position: static; display: inline-block; margin: 0 2px 0 0; }
.im-bnum { font: 700 13px var(--font-head); text-align: right; font-variant-numeric: tabular-nums; }
.im-bline { grid-column: 1 / -1; margin: 0; }
@media (max-width: 480px) { .im-brow { grid-template-columns: minmax(0, 1fr) 54px; } .im-btrack { grid-column: 1 / -1; grid-row: 2; } .im-bline { grid-row: 3; } }
.im-tbl tfoot td { text-align: left; white-space: normal; }
/* team.html hero: the Latest lineup strip under the name (the chips are links to the players' pages) */
.tl-lineup { align-items: center; min-height: 32px; }
.tl-wait { color: rgba(255,255,255,.7); }
.tl-label { font: 700 12px var(--font-head); color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .06em; margin-right: 4px; }
.tl-lineup .pl-chip { text-decoration: none; }
/* team.html Overview: the Economy row's heading, the man-state diamond inside the Playstyle drawer, its outlines and the Strongest / Weakest rows */
.tm-row-title { margin: 6px 0 10px; font: 700 14px var(--font-head); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.st-extra { grid-column: 1 / -1; }
.st-extra:empty { display: none; }
.tm-diamond { padding: 0; }
.tm-diamond .ps-side-by-side { display: block; }      /* the diamond on top, the lists under it: side by side it was clipped */
.tm-diamond .ms-diamond-wrap { display: flex; justify-content: center; margin-bottom: 12px; }
.tm-diamond .ms-diamond { margin: 0 auto; }
.tm-diamond .st-chart-title { margin: 0 0 2px; }
.tm-diamond .st-chart-def { margin: 0 0 6px; }
.ms-cell[data-mark="good"] { border: 2px solid var(--good); }
.ms-cell[data-mark="bad"] { border: 2px solid var(--accent2); }
.ms-cell.hl { outline: 3px solid var(--text); outline-offset: 2px; z-index: 2; }
.tm-ins-row { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 3px 6px; margin: 0 -6px 2px; cursor: default; }
.tm-ins-row:hover { background: var(--grid); }
.tm-ins-row small { color: var(--muted); }
.pl-grid .st-dots.many { gap: 3px; }          /* team.html's Playstyle tile has 22 stats */
.pl-grid .st-dots.many .st-dot { width: 5px; height: 5px; }
.gl-head .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }      /* team.html's six At a glance tabs on a phone */
.gl-head .seg::-webkit-scrollbar { display: none; }
.gl-head .seg button { flex: none; }
/* team.html Economy tab: the four groups as columns, every stat a row with a bar from the average; a click opens its drawer */
.st-col .st-colpanel { padding: 6px 0 8px; }
.st-colhead { padding: 4px 14px 8px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--grid); margin-bottom: 4px; min-height: 1.4em; }
.st-colrow { display: grid; grid-template-columns: minmax(0, 1fr) 64px 48px; align-items: center; gap: 0 10px; width: 100%; padding: 7px 14px; border: 0; background: none; font: inherit; font-size: 13px; text-align: left; color: var(--text); cursor: pointer; }
.st-colrow:hover { background: var(--grid); }
.st-colrow[aria-pressed="true"] { background: var(--grid); box-shadow: inset 3px 0 0 var(--accent2); }
.st-colrow:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
.st-colrow.low { opacity: .55; }
.st-colname { min-width: 0; }
.st-colval { text-align: right; font-variant-numeric: tabular-nums; }
.st-grid.tm-onecol { grid-template-columns: minmax(0, 1fr); }
/* team.html Economy tab's lead: bars as wide as their rounds, as tall as RW% vs the average team */
#econChart h2 { margin: 0 0 4px; }
.ec-chart { display: flex; gap: 14px; align-items: stretch; margin-top: 8px; }
.ec-group { min-width: 0; display: flex; flex-direction: column; padding: 8px 10px 8px; border: 1px solid var(--grid); background: var(--bg); }
.ec-gtitle { font: 700 11.5px var(--font-head); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding-bottom: 6px; border-bottom: 1px solid var(--grid); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-bars { display: flex; gap: 7px; flex: 1; }
.ec-bucket { min-width: 48px; display: flex; flex-direction: column; border: 0; padding: 0; background: none; font: inherit; color: var(--text); cursor: pointer; }
.ec-bucket:hover .ec-plot, .ec-bucket:focus-visible .ec-plot { background: var(--grid); }
.ec-bucket:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.ec-plot { position: relative; height: 200px; margin: 18px 0; }
.ec-zero { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--muted); }
.ec-bar { position: absolute; left: 2px; right: 2px; min-height: 2px; }
.ec-val { position: absolute; left: 50%; transform: translateX(-50%); font: 700 11px var(--font-head); white-space: nowrap; padding: 1px 0; }
.ec-name { margin-top: 6px; font-size: 12px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
.ec-n { font-size: 11px; color: var(--muted); text-align: center; }
.ec-bucket.low .ec-bar { opacity: .45; }
@media (max-width: 700px) { .ec-chart { flex-direction: column; } .ec-plot { height: 150px; } }
.ec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; margin-bottom: 6px; }
.ec-head h2 { margin: 0; }
.ec-legend { font-style: italic; font-size: 12.5px; color: var(--muted); }
.ec-dot { margin: 0 8px; }
/* team.html Man states: the diamond and the conversions as one panel; the conversion bars get a real track */
.tm-states h2 { margin: 0 0 4px; }
.tm-states-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 0 28px; align-items: start; margin-top: 10px; }
@media (max-width: 900px) { .tm-states-grid { grid-template-columns: minmax(0, 1fr); } }
.tm-states .st-col .st-cat-title { display: none; }
.tm-states .st-colpanel { border: 0; box-shadow: none; background: none; padding: 0; margin: 0; }
.tm-states .st-colhead { padding: 0 0 8px; font-size: 13px; }
.tm-states .st-colrow { grid-template-columns: minmax(0, 1fr) minmax(120px, 46%) 56px; padding: 9px 8px; font-size: 14px; }
.tm-states .st-colrow .st-div { height: 14px; }
.tm-states .st-colrow:hover { background: var(--grid); }
.st-colrow .st-div { margin-top: 0; }
/* the Man states tab's ranked chart sits under the conversion rows, in the same panel: no card of its own */
.tm-states .st-detail.open { margin: 14px 0 0; }
.tm-states .st-detail-card { border-top: 1px solid var(--grid); padding-top: 10px; }
.tm-states .st-head-r { padding: 0 0 8px; background: none; }
.tm-states .st-chart { padding: 0; }
/* Man states (prototype E, 2026-11-05): left = the diamond over the conversion rows, right = the ranked chart. The right column takes no
   height of its own (absolute inside its grid cell), so the chart ends where the left column ends and scrolls inside */
.tm-states h2 { margin: 0 0 12px; }
.tm-states-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; margin-top: 0; }
.tm-states-left { min-width: 0; }
.tm-states-right { position: relative; min-width: 0; min-height: 360px; }
.tm-states-right > .st-detail { position: absolute; inset: 0; margin: 0; }
.tm-states-right > .st-detail.open { margin: 0; }
.tm-states-right .st-detail-clip { height: 100%; }
.tm-states-right .st-detail-card { height: 100%; display: flex; flex-direction: column; border-top: 0; padding-top: 0; }
.tm-states-right .st-head-r { display: block; min-height: 0; padding: 0 0 10px; border: 0; background: none; }
.tm-states-right .st-chart-title { font: 700 13px var(--font-head); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.tm-states-right .st-chart-def { margin: 6px 0 2px; font-size: 15px; font-weight: 700; color: var(--text); }
.tm-states-right .st-chart { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tm-states-right .pl-crows { flex: 1; max-height: none; margin-top: 4px; }
.tm-caption { margin: 8px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.tm-diamond .tm-caption { margin: 0 0 16px; }
.tm-diamond .ms-diamond-wrap { margin-bottom: 8px; }
.tm-states-left #tilesC { margin: 0; }
@media (max-width: 900px) {
  .tm-states-grid { grid-template-columns: minmax(0, 1fr); }
  .tm-states-right { position: static; min-height: 0; margin-top: 16px; }
  .tm-states-right > .st-detail { position: static; }
  .tm-states-right .pl-crows { max-height: 480px; }
}

/* Map pool chart (ticket 09): a round map picture per map, ringed green / red by its gap to the average team */
.mc-box { min-height: 340px; margin: 4px 0 6px; }
.mc-dot { cursor: pointer; }
.mc-dot .mc-bg { fill: var(--panel); }
.mc-dot.low { opacity: .45; }
.mc-ring { fill: none; stroke-width: 3; }
.mc-ring.up { stroke: var(--good); } .mc-ring.down { stroke: var(--accent2); } .mc-ring.flat { stroke: var(--muted); stroke-opacity: .55; }
.mc-dot.on .mc-ring { stroke-width: 4.5; }
.mc-dot.on { opacity: 1; }
.mc-box[hidden] { display: none; }


/* Map pool: the chart beside the verdict and the maps never played */
.mp-top { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; margin: 4px 0 14px; }
.mp-top .mc-box { min-height: 320px; margin: 0; }
.mp-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mp-sub { display: block; font-size: 11px; line-height: 1.25; }
.mp-side { display: flex; flex-direction: column; gap: 18px; }
.mp-side h3 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mp-v { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.mp-v-label { flex: 0 0 100%; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mp-thumb { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.mp-side .panel-note { margin: 6px 0 0; }
@media (max-width: 900px) { .mp-top { grid-template-columns: minmax(0, 1fr); } }
.mp-thumb-link { display: inline-flex; flex: 0 0 auto; } .mp-thumb-link:hover .mp-thumb { outline: 2px solid var(--text); }
.mp-col .mp-v { flex-wrap: nowrap; align-items: flex-start; }
.mp-col .mp-v > span { min-width: 0; }
.mp-col .mp-thumb { margin-top: 2px; }
.mc-band { fill: var(--grid); fill-opacity: .35; }
.mc-ring.never { stroke: var(--accent2); stroke-dasharray: 3 2; stroke-width: 2.5; }
.mc-never.low { opacity: .5; }

/* team.html Results: one block per tournament (newest two open), its series under it */
.rs-list { display: flex; flex-direction: column; gap: 10px; }
.rs-event { border: 1px solid var(--line); background: var(--panel); }
.rs-head { display: grid; grid-template-columns: minmax(0, 1fr) auto repeat(4, 78px); gap: 6px 16px; align-items: center; padding: 12px 16px; cursor: pointer; list-style: none; border-left: 4px solid var(--line); }
.rs-head::-webkit-details-marker { display: none; }
.rs-event[open] > .rs-head { border-bottom: 1px solid var(--line); border-left-color: var(--text); }
.rs-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rs-name a { font-weight: 700; font-size: 15px; color: var(--text); }
.rs-name::before { content: "▸"; position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; }
.rs-event[open] .rs-name::before { content: "▾"; }
.rs-head { position: relative; padding-left: 26px; }
.rs-dates { font-size: 12px; color: var(--muted); }
.rs-place { padding: 3px 9px; font-size: 12px; font-weight: 700; border: 1px solid var(--line); color: var(--text); white-space: nowrap; }
.rs-place.p1 { background: #e0a100; border-color: #e0a100; color: #1b1b1b; }
.rs-place.p2 { background: #b8bec7; border-color: #b8bec7; color: #1b1b1b; }
.rs-place.p3 { background: #b07a4a; border-color: #b07a4a; color: #fff; }
.rs-place.p1 b { font-weight: 700; }
.rs-place.none { color: var(--muted); }
.rs-stat { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.rs-stat b { font-size: 14px; }
.rs-stat i { font-style: normal; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.rs-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(150px, 1.1fr) 92px minmax(0, 1.8fr) auto; gap: 6px 14px; align-items: center; padding: 8px 16px 8px 26px; border-bottom: 1px solid var(--grid); }
.rs-row:last-child { border-bottom: 0; }
.rs-when { display: block; font-size: 13px; min-width: 0; }
.rs-when i { font-style: normal; font-size: 11px; color: var(--muted); }
.rs-stage { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-opp { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rs-res { white-space: nowrap; }
.rs-score { display: inline-block; min-width: 54px; padding: 2px 6px; font-weight: 700; font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; }
.rs-score.w { background: var(--good-bg); color: var(--good); } .rs-score.l { background: var(--bad-bg); color: var(--accent2); }
.rs-maps { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.rs-map { padding: 2px 7px; font-size: 12px; border: 1px solid var(--line); border-left: 3px solid var(--line); color: var(--text); white-space: nowrap; }
.rs-map.w { border-left-color: var(--good); } .rs-map.l { border-left-color: var(--accent2); }
a.rs-map:hover { border-color: var(--text); }
.rs-link { font-size: 12px; white-space: nowrap; }
@media (max-width: 760px) {
  .rs-head { grid-template-columns: minmax(0, 1fr) auto; }
  .rs-stat { align-items: flex-start; }
  .rs-row { grid-template-columns: 1fr auto; padding-left: 16px; }
  .rs-maps, .rs-link { grid-column: 1 / -1; }
}

/* team.html H2H: a record board, one row per opponent */
.hh-board { border: 1px solid var(--line); }
.hh-row { display: grid; grid-template-columns: minmax(150px, 1.3fr) minmax(120px, 1fr) repeat(3, 70px) 150px auto; gap: 6px 16px; align-items: center; padding: 9px 16px; border-bottom: 1px solid var(--grid); }
.hh-row:last-child { border-bottom: 0; }
.hh-opp { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; }
.hh-bar { position: relative; display: flex; justify-content: center; height: 12px; background: linear-gradient(var(--muted), var(--muted)) center / 1px 100% no-repeat; }
.hh-bar .l, .hh-bar .w { position: absolute; top: 1px; bottom: 1px; }
.hh-bar .l { right: 50%; background: var(--accent2); opacity: .8; }
.hh-bar .w { left: 50%; background: var(--good); opacity: .85; }
.hh-stat { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.hh-stat b { font-size: 14px; }
.hh-stat i { font-style: normal; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.hh-last { display: flex; gap: 3px; justify-content: flex-end; }
.hh-sq { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.hh-sq.w { background: var(--good-bg); color: var(--good); } .hh-sq.l { background: var(--bad-bg); color: var(--accent2); }
.hh-link { font-size: 12px; white-space: nowrap; }
.hh-more { margin-top: 10px; }
#h2hSort button.active { background: var(--text); color: var(--panel); }
@media (max-width: 760px) {
  .hh-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .hh-bar { grid-column: 1 / -1; order: 9; }
  .hh-stat:nth-of-type(n+2), .hh-link { display: none; }
  .hh-last { grid-column: 1 / -1; justify-content: flex-start; }
}
.toolbar .tab-search { margin-left: auto; max-width: 280px; }      /* the search sits top right of the panel */
.tab-search.table-search::after { top: 50%; margin-top: 3px; }
.hh-opp a, .rs-opp a { font-size: 16px; font-weight: 700; }

/* Man states: the bar chart stands in for the list of rows (the rows stay in the page, hidden, to drive the ranked chart) */
.st-states-chart { margin-top: 14px; }
.st-states-chart .ec-head h2 { font-size: 17px; }
.st-states-chart .ec-plot { height: 150px; }
.ec-bucket.on .ec-plot { background: var(--grid); }
.ec-bucket.on .ec-name { font-weight: 700; }
.st-states-chart { min-width: 0; }
.st-states-chart .ec-chart { gap: 8px; }
.st-states-chart .ec-group { padding: 8px 6px; }
.st-states-chart .ec-bars { gap: 4px; }
.st-states-chart .ec-bucket { min-width: 30px; }
.st-states-chart .ec-name { font-size: 11px; }
.st-states-chart .ec-val { font-size: 10px; }

/* the Side toggle in the filter bar's quick row (team.html, player.html): the right end, before "More filters" */
.filter-quick .quick-side { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.filter-quick .quick-side[hidden] { display: none; }
.filter-quick .quick-side + .filter-toggle { margin-left: 0; }
.filter-quick .quick-side[hidden] + .filter-toggle { margin-left: auto; }      /* the toggle is hidden on this tab: the button keeps the far right */
.quick-side .tb-label { font: 700 10px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.quick-side .date-filter-hint { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
@media (max-width: 900px) { .quick-side .date-filter-hint { display: none; } }
@media (max-width: 700px) { .filter-quick .quick-side { grid-column: 1 / -1; margin-left: 0; } }

#playersPanel .toolbar .pl-tool-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* player.html Weapons: the "All players" button at the end of a row */
.wp-all-cell { text-align: right; white-space: nowrap; }
.wp-all { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; font: 700 11px var(--font-head); letter-spacing: .05em; text-transform: uppercase; color: var(--text); text-decoration: none; border: 1px solid var(--line); border-radius: 2px; background: transparent; transition: background .15s, color .15s, border-color .15s; }
.wp-all span { transition: transform .15s; }
.wp-all:hover, .wp-all:focus-visible { background: var(--text); color: var(--panel); border-color: var(--text); outline: none; }
.wp-all:hover span, .wp-all:focus-visible span { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .wp-all, .wp-all span { transition: none; } }
.wp-other-btn { all: unset; cursor: pointer; font-weight: 700; }
.wp-other-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.wp-other-btn::before { content: "▸"; display: inline-block; width: 1em; color: var(--muted); }      /* drawn in CSS: the cell's text stays "Other (N)" */
.wp-other-btn[aria-expanded="true"]::before { content: "▾"; }
#weaponsTable tr.pl-sub td:first-child { padding-left: 34px; color: var(--muted); }
#weaponsTable tr.pl-sub { background: var(--head-bg); }

/* player.html hero: a pixel portrait over the faint team logo on the right, standing on the banner's bottom edge. Shown at a whole multiple of its own size (100 px art: 200 px, 100 px
   on a phone) with no smoothing, so no pixel is invented */
.pl-pixel { position: absolute; right: calc(6% + 56px); bottom: 0; width: 200px; height: 200px; image-rendering: pixelated; image-rendering: crisp-edges; pointer-events: none; }
.pl-pixel[hidden] { display: none; }
@media (max-width: 760px) { .pl-pixel { width: 100px; height: 100px; right: 12px; } }
