/* Legit-Proof.com. Dark by default to match the logo, light on request. */

@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0e0e10;
  --bg-head: #141417;
  --surface: #18181c;
  --surface-hover: #202026;
  --line: #27272e;
  --line-strong: #35353e;
  --text: #ededf0;
  --text-2: #b0b0ba;
  --text-3: #8b8b96;
  --red: #e10600;
  --red-hover: #ff1d12;
  --red-text: #ff4a40;
  --win: #34d399;
  --win-bg: rgba(52, 211, 153, .14);
  --loss: #fb7185;
  --loss-bg: rgba(251, 113, 133, .14);
  --tie: #b0b0ba;
  --tie-bg: rgba(176, 176, 186, .14);
  --unscored: #3a3a43;
  --shadow: 0 12px 32px rgba(0, 0, 0, .5);
  --radius: 10px;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f3f3f5;
    --bg-head: #ffffff;
    --surface: #ffffff;
    --surface-hover: #f6f6f8;
    --line: #e3e3e8;
    --line-strong: #d0d0d8;
    --text: #131316;
    --text-2: #4e4e58;
    --text-3: #6c6c77;
    --red: #d70000;
    --red-hover: #b80000;
    --red-text: #c00000;
    --win: #047857;
    --win-bg: #d1fae5;
    --loss: #be123c;
    --loss-bg: #ffe4e6;
    --tie: #52525b;
    --tie-bg: #ececf0;
    --unscored: #d4d4dc;
    --shadow: 0 12px 32px rgba(20, 20, 30, .14);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--sans);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--red-text); }
:focus-visible { outline: 2px solid var(--red-text); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, p { margin: 0; }
code, kbd, .mono { font-family: var(--mono); font-size: .86em; }
kbd { border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 .3em; }
.muted { color: var(--text-3); }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
abbr[title] { text-decoration: none; cursor: help; }
.break { overflow-wrap: anywhere; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
.page { padding-bottom: 8px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: #fff; color: #000; padding: 8px 12px; border-radius: 6px; }

/* Header. The logo's background is a gradient from #0b0b0b at its top
   edge to #1c1c1c at its bottom. The bar carries the same gradient across
   the logo's rows and the edge colours above and below it, so the logo
   sits on it seamlessly with room to breathe. */
.site-header {
  --brand-pad: 16px;
  background: linear-gradient(#0b0b0b var(--brand-pad), #1c1c1c calc(var(--brand-pad) + 84px));
  border-bottom: 2px solid #bb0000;
  color: #ededf0;
}
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; }
.brand { display: block; flex: none; padding-block: var(--brand-pad); }
.brand img { display: block; }
.nav { display: flex; gap: 24px; }
.nav a {
  font: 600 1.05rem/1 var(--display); text-transform: uppercase; letter-spacing: .1em;
  color: #c4c4cc; padding: 8px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current] { color: #fff; border-bottom-color: var(--red); }
.site-header .searchbox { margin-left: auto; flex: 0 1 360px; }

/* Search box: the same component in the header and the home page hero. */
.searchbox { display: flex; gap: 10px; }
.searchbox-field { position: relative; flex: 1; min-width: 0; }
.searchbox input {
  width: 100%; font: inherit; font-size: .95rem; color: #f2f2f4;
  padding: .62rem 2.4rem .62rem 2.4rem; border-radius: 8px;
  border: 1px solid #383841; background: #0f0f12;
}
.searchbox input::placeholder { color: #8b8b96; }
.searchbox input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225, 6, 0, .28); }
.searchbox input::-webkit-search-cancel-button { display: none; }
.searchbox-icon {
  position: absolute; left: .8rem; top: 50%; translate: 0 -50%; width: 16px; height: 16px;
  fill: none; stroke: #8b8b96; stroke-width: 2; stroke-linecap: round; pointer-events: none;
}
.searchbox-key {
  position: absolute; right: .7rem; top: 50%; translate: 0 -50%;
  color: #8b8b96; border-color: #3a3a43; font-size: .75rem; pointer-events: none;
}
.searchbox input:focus ~ .searchbox-key, .searchbox input:not(:placeholder-shown) ~ .searchbox-key { display: none; }
.site-header .searchbox .btn { display: none; }

/* Suggestions, added by app.js. */
.suggest {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0;
  margin: 0; padding: 6px; list-style: none; max-height: min(70vh, 520px); overflow: auto;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow);
}
.suggest-group {
  padding: 8px 10px 4px; color: var(--text-3);
  font: 600 .74rem var(--display); letter-spacing: .14em; text-transform: uppercase;
}
.suggest-item a {
  display: grid; grid-template-columns: 16px 1fr; gap: 0 10px; align-items: center;
  padding: 7px 10px; border-radius: 6px; color: var(--text);
}
.suggest-item[aria-selected="true"] a, .suggest-item a:hover { background: var(--surface-hover); color: var(--text); }
.suggest-icon { width: 16px; height: 16px; image-rendering: pixelated; }
.suggest-label { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-meta { grid-column: 2; font-size: .8rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Buttons. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 700 1.02rem/1 var(--display); text-transform: uppercase; letter-spacing: .1em;
  padding: .8rem 1.4rem; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--red); color: #fff; white-space: nowrap;
}
.btn:hover { background: var(--red-hover); color: #fff; }
.btn-quiet { background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); padding: .62rem 1rem; }
.btn-quiet:hover { background: var(--surface-hover); color: var(--text); }

/* Shared type. */
.kicker {
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
  font: 600 .88rem/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--red-text);
}
.section-title {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font: 700 1.25rem/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase;
}
.section-title::before { content: ""; flex: none; width: 4px; height: 1em; background: var(--red); border-radius: 1px; }
.section-title .more {
  margin-left: auto; font: 500 .9rem var(--sans); letter-spacing: 0; text-transform: none; color: var(--text-2);
}
.section-title .more:hover { color: var(--red-text); }
.count {
  font: 600 .74rem/1.6 var(--sans); letter-spacing: 0; text-transform: none;
  color: var(--text-2); background: var(--surface-hover); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px;
}
.block { margin-top: 40px; }
.empty, .result-note { color: var(--text-2); margin-top: 16px; }
.result-note a, .notice a, .lede a { color: var(--red-text); font-weight: 600; }
.notice {
  margin-top: 28px; padding: 12px 16px; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--red); border-radius: 8px;
}
.caption { margin-top: 10px; font-size: .82rem; color: var(--text-3); }

.gi { width: 16px; height: 16px; flex: none; margin-right: 6px; vertical-align: -3px; image-rendering: pixelated; }
.gi-lg {
  flex: none; width: 44px; height: 44px; padding: 6px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line); image-rendering: pixelated;
}
.gi-ph { display: grid; place-items: center; font: 700 1.3rem var(--display); color: var(--text-3); }
/* The old site's icons are 16px pixel art; the newer ones scale smoothly. */
.gi:not([src*=".gif"]), .gi-lg:not([src*=".gif"]), .suggest-icon:not([src*=".gif"]) { image-rendering: auto; }

.badge {
  display: inline-block; font: 700 .74rem/1.55 var(--display); letter-spacing: .1em;
  color: var(--text-2); border: 1px solid var(--line-strong); border-radius: 4px; padding: 0 .4rem;
}
.tag {
  font: 500 .78rem var(--mono); color: var(--text-3);
  border: 1px solid var(--line); border-radius: 4px; padding: 0 .3rem; white-space: nowrap;
}
.tag-lg { font-size: .4em; vertical-align: middle; padding: .1em .4em; }
.chip {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px 10px;
  font-size: .8rem; color: var(--text-2); background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px; white-space: nowrap;
}
.chip .gi { margin-right: 4px; }
.rec { white-space: nowrap; font-variant-numeric: tabular-nums; }
.w, .rec .w { color: var(--win); }
.l, .rec .l { color: var(--loss); }

/* Home. */
.hero {
  position: relative; color: #f2f2f4;
  background: #111 url("img/hero.jpg") right top / cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14, 14, 16, .97) 0%, rgba(14, 14, 16, .88) 38%, rgba(14, 14, 16, .3) 75%, rgba(14, 14, 16, .15));
}
.hero-inner { position: relative; padding-block: clamp(48px, 9vw, 104px) clamp(72px, 10vw, 120px); }
.hero .kicker { color: #ff4a40; }
.hero-title {
  max-width: 17ch; margin: 4px 0 16px;
  font: 700 clamp(2.6rem, 7vw, 4.6rem)/.95 var(--display); text-transform: uppercase; letter-spacing: .005em;
}
.hero-title span { color: #ff2a20; }
.hero-lede { max-width: 50ch; font-size: 1.1rem; color: #c8c8d0; }
.hero .searchbox { max-width: 640px; margin-top: 28px; }
.hero .searchbox input { font-size: 1.1rem; padding: 1rem 1rem 1rem 3rem; border-color: #44444e; background: rgba(12, 12, 15, .9); }
.hero .searchbox-icon { left: 1.1rem; width: 20px; height: 20px; }
.hero .searchbox-key { right: 1rem; }
.hero-hint { margin-top: 12px; font-size: .88rem; color: #9a9aa6; }
.hero-hint code, .hero-hint kbd { color: #d4d4dc; border-color: #44444e; }

.totals {
  position: relative; z-index: 1; margin: -40px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.totals div { padding: 18px 24px; }
.totals div + div { border-left: 1px solid var(--line); }
.totals dt, .stat dt {
  font: 600 .74rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3);
}
.totals dd { margin: 4px 0 0; font: 700 clamp(1.8rem, 4vw, 2.6rem)/1 var(--display); font-variant-numeric: tabular-nums; }

.league-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.league-grid-lg { margin-top: 32px; }
.league-card {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, transform .15s;
}
.league-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--red);
  opacity: 0; transition: opacity .15s;
}
.league-card:hover { color: inherit; border-color: var(--line-strong); transform: translateY(-2px); }
.league-card:hover::before { opacity: 1; }
.league-abbr { font: 700 2.6rem/1 var(--display); letter-spacing: .03em; }
.league-name { color: var(--text-2); }
.league-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px; font-size: .84rem; color: var(--text-3); }
.league-stats b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.league-games { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chip-more { color: var(--text-3); }

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 40px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.bars a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 8px 10px; border-radius: 8px; }
.bars a:hover { background: var(--surface); color: inherit; }
.bar-label { display: flex; align-items: center; min-width: 0; font-weight: 500; }
.bar-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-value { font-variant-numeric: tabular-nums; color: var(--text-2); font-size: .9rem; }
.bar-track { grid-column: 1 / -1; display: block; width: 100%; height: 4px; border-radius: 2px; background: var(--line); }
.bar-track rect { fill: var(--red); }

.leaderboard { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.leaderboard li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 16px; }
.leaderboard li + li { border-top: 1px solid var(--line); }
.rank { font: 700 1.25rem var(--display); color: var(--text-3); text-align: center; font-variant-numeric: tabular-nums; }
.leaderboard li:nth-child(-n+3) .rank { color: var(--red-text); }
.lb-team { min-width: 0; }
.lb-team a { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-meta { display: block; font-size: .8rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-meta .gi { width: 12px; height: 12px; vertical-align: -1px; margin-right: 4px; }
.lb-record { font-size: .95rem; }
.otd .otd-year { width: auto; font-size: .95rem; color: var(--text-3); }
.otd li:nth-child(-n+3) .rank { color: var(--text-3); }
.otd-teams { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-team .otd-teams a { display: inline; }
.otd-vs { margin: 0 .3em; font-size: .8rem; color: var(--text-3); }
.otd-lost { color: var(--text-2); font-weight: 500; }
.otd .lb-record { font-variant-numeric: tabular-nums; }

.ctas { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) { .ctas { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(110deg, rgba(225, 6, 0, .18), transparent 55%), var(--surface);
}
.cta-mcp { background: linear-gradient(250deg, rgba(225, 6, 0, .18), transparent 55%), var(--surface); }
.cta h2 { font: 700 1.7rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.cta p { color: var(--text-2); margin-top: 4px; }

/* Page headers. */
.page-head { background: var(--bg-head); border-bottom: 1px solid var(--line); padding: 20px 0 28px; }
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; font-size: .86rem; color: var(--text-3); }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 .55rem; color: var(--line-strong); }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--red-text); }
.head-main { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; padding-top: 6px; }
.head-title { min-width: 0; max-width: 100%; }
.head-title-icon { display: flex; align-items: center; gap: 16px; }
.page-head h1 { font: 700 clamp(2.1rem, 5vw, 3.3rem)/1 var(--display); letter-spacing: .005em; overflow-wrap: anywhere; }
.abbr-big { color: var(--red-text); }
.head-meta { margin-top: 10px; color: var(--text-2); }
.head-meta a { color: var(--text); font-weight: 600; }
.head-meta a:hover { color: var(--red-text); }
.head-meta b { color: var(--text); }
.head-stats {
  display: flex; margin: 0; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.stat { padding: 10px 20px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat dd { margin: 2px 0 0; font: 700 1.75rem/1.05 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.jump .chip:hover { color: var(--text); border-color: var(--line-strong); }
.jump .muted { margin-left: 4px; }
.steam-ids { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 12px; }
.steam-ids .mono { color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 7px; }
.steam-ids a { margin-left: 4px; color: var(--red-text); font-weight: 600; font-size: .9rem; }

.form-strip { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.form-label { font: 600 .74rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.form { display: flex; flex-wrap: wrap; gap: 3px; list-style: none; margin: 0; padding: 0; }
.form li { width: 10px; height: 10px; border-radius: 2px; background: var(--unscored); }
.form .form-W { background: var(--win); }
.form .form-L { background: var(--loss); }
.form .form-T { background: var(--tie); }

/* Tables. */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th {
  padding: 11px 14px; text-align: left; white-space: nowrap; color: var(--text-3);
  font: 600 .74rem var(--display); letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.table td { padding: 10px 14px; vertical-align: middle; }
.table tbody tr + tr td { border-top: 1px solid var(--line); }
.table tbody tr:hover { background: var(--surface-hover); }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table .primary a { font-weight: 600; }
.table .rank { width: 3.2rem; text-align: center; font-size: 1.05rem; }
.table th.rank { font-size: .74rem; }
.table .mono { font-size: .82rem; color: var(--text-2); }
.table .mono a:hover { color: var(--red-text); }
.th-note { margin-left: 6px; letter-spacing: .04em; text-transform: none; font: 500 .74rem var(--sans); }
.uid { font-size: .78rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.games { display: inline-flex; align-items: center; white-space: nowrap; }
.games .muted { margin-left: 4px; }
.steam-link {
  margin-left: 4px; font: 600 .7rem/1.5 var(--display); letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3); border: 1px solid var(--line); border-radius: 4px; padding: 0 .35rem;
}
.tenure { min-width: 220px; width: 40%; }
.tenure-bar { display: block; width: 100%; height: 6px; margin-bottom: 4px; border-radius: 3px; }
.tenure-bar .track { fill: var(--line); }
.tenure-bar .span { fill: var(--red); }
.tenure-dates { font-size: .8rem; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill {
  display: inline-block; min-width: 1.8rem; padding: 0 .35rem; text-align: center; border-radius: 4px;
  font: 700 .82rem/1.55 var(--display); letter-spacing: .06em;
  color: var(--tie); background: var(--tie-bg);
}
.pill-W { color: var(--win); background: var(--win-bg); }
.pill-L { color: var(--loss); background: var(--loss-bg); }
.note { font-size: .8rem; color: var(--text-3); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0; }
.facts div { padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.facts dt { font: 600 .74rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.facts dd { margin: 2px 0 0; }

/* Toolbars, tabs and pagination. */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.filter { display: flex; gap: 8px; flex: 1 1 280px; max-width: 440px; }
.filter input {
  flex: 1; min-width: 0; font: inherit; color: var(--text); padding: .58rem .85rem;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px;
}
.filter input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(225, 6, 0, .2); }
.segmented { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.segmented a { padding: .5rem .95rem; font-size: .88rem; color: var(--text-2); }
.segmented a + a { border-left: 1px solid var(--line-strong); }
.segmented a:hover { color: var(--text); background: var(--surface-hover); }
.segmented a[aria-current] { color: var(--bg); background: var(--text); font-weight: 600; }
.toolbar + .table-wrap, .result-note + .table-wrap { margin-top: 14px; }

.tabs { display: flex; gap: 4px; margin-top: 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a {
  padding: 10px 14px; margin-bottom: -1px; white-space: nowrap; color: var(--text-2);
  font: 600 1.02rem var(--display); letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current] { color: var(--text); border-bottom-color: var(--red); }
.tabs .count { margin-left: 4px; }
.tabs + .block { margin-top: 28px; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 20px; }
.pager a, .pager span {
  min-width: 2.4rem; padding: .4rem .65rem; text-align: center; font-variant-numeric: tabular-nums;
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
}
.pager a:hover { border-color: var(--line-strong); }
.pager .current { color: #fff; background: var(--red); border-color: var(--red); font-weight: 600; }
.pager .gap { background: none; border-color: transparent; }

/* Games. */
.game-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.game-tile {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 14px; align-items: center;
  padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.game-tile .gi-lg { grid-row: span 2; }
.game-tile:hover { color: inherit; border-color: var(--line-strong); background: var(--surface-hover); }
.gt-name { align-self: end; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gt-meta { align-self: start; font-size: .8rem; color: var(--text-3); }

/* Careers. */
.career { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 40px; }
@media (min-width: 960px) { .career { grid-template-columns: minmax(0, 1fr) 320px; } }
.timeline { list-style: none; margin: 0; padding: 0; }
.tl-year { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
.tl-label { position: sticky; top: 12px; align-self: start; padding-top: 8px; font: 700 1.5rem/1 var(--display); color: var(--text-3); }
.tl-entries { list-style: none; margin: 0; padding: 0 0 18px 20px; border-left: 2px solid var(--line); }
.tl-entry { position: relative; margin-bottom: 10px; padding: 11px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tl-entry::before {
  content: ""; position: absolute; left: -28px; top: 17px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--red);
}
.tl-team { display: flex; align-items: center; gap: 2px 8px; flex-wrap: wrap; }
.tl-team a { font-weight: 600; font-size: 1.02rem; }
.tl-team .gi { margin-right: 0; }
.tl-record { margin-left: auto; font-size: .9rem; }
.tl-meta { margin-top: 4px; font-size: .86rem; color: var(--text-2); }
.tl-meta a { color: var(--text); }
.tl-meta a:hover { color: var(--red-text); }
.tl-meta .badge { margin-right: 4px; }
.tl-dates { margin-top: 2px; font-size: .8rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.tl-pugs { border-left: 3px solid var(--line-strong); }

/* PUGs and scoreboards. */
.block .block { margin-top: 24px; }
.sub-title {
  margin-bottom: 12px; font: 700 1rem/1.2 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2);
}
.lede { margin-top: -4px; max-width: 70ch; color: var(--text-2); }
.bars .bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 8px 10px; }
.lb-rating { font: 700 1.2rem var(--display); font-variant-numeric: tabular-nums; }
.pug-summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1px; margin: 0 0 14px; overflow: hidden;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
}
.pug-summary div { padding: 10px 16px; background: var(--surface); }
.pug-summary dt { font: 600 .74rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.pug-summary dd { margin: 2px 0 0; font: 700 1.4rem/1.1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }

.match-head .kicker { justify-content: center; }
.scoreline {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px 20px;
  margin-top: 10px;
}
.sl-side { display: flex; align-items: center; gap: 12px 24px; min-width: 0; }
.sl-home { justify-content: flex-end; text-align: right; }
.sl-away { flex-direction: row-reverse; justify-content: flex-end; }
.sl-name { font-size: clamp(1.3rem, 3.4vw, 2.2rem); line-height: 1.1; min-width: 0; }
.sl-name a:hover { color: var(--red-text); }
.sl-score { font-size: clamp(2.8rem, 8vw, 4.6rem); font-variant-numeric: tabular-nums; color: var(--text-2); }
.sl-score.sl-W { color: var(--win); }
.sl-score.sl-L { color: var(--loss); }
.sl-sep { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--text-3); }
.match-meta { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; margin-top: 16px; }
.match-meta > span + span::before { content: "·"; margin: 0 .55em; color: var(--text-3); }
.scoreboard { table-layout: fixed; min-width: 560px; }
.scoreboard th:first-child { width: 34%; }
.scoreboard td.primary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.side-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 10px 16px; }
.side-list li + li { border-top: 1px solid var(--line); }
.side-list a { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-meta { margin-left: auto; font-size: .8rem; color: var(--text-3); }
.notice-ban { border-left-color: var(--loss); }
.ban-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--loss); border-radius: var(--radius); }
.ban-list li { padding: 11px 16px; }
.ban-list li + li { border-top: 1px solid var(--line); }
.ban-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ban-meta { margin-top: 2px; font-size: .82rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ban-meta a { color: var(--text-2); font-weight: 600; }
.ban-note { margin-top: 4px; font-size: .88rem; color: var(--text-2); overflow-wrap: anywhere; }
.ban-link { display: inline-block; margin-top: 4px; font-size: .85rem; font-weight: 600; color: var(--red-text); }

/* Search. */
.search-head { padding-top: 32px; }
.search-head h1 { font: 700 clamp(2rem, 5vw, 3rem)/1.05 var(--display); overflow-wrap: anywhere; }
.tips { margin: 20px 0 0; padding: 16px 20px 16px 36px; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tips li + li { margin-top: 6px; }
.tips b { color: var(--text); }

/* The MCP server's page. */
.endpoint { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.endpoint code {
  font-size: 1.05rem; color: var(--text); padding: .55rem .9rem; overflow-wrap: anywhere;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px;
}
.page-head .caption { margin-top: 12px; }
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.client { min-width: 0; padding: 16px 20px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.client h3 { margin-bottom: 8px; font: 700 1.15rem/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.client p { color: var(--text-2); }
.client p + p, .client p + pre, .client pre + p { margin-top: 10px; }
.client b { color: var(--text); }
.client pre {
  margin: 0; padding: 10px 12px; overflow-x: auto; font-size: .92rem; line-height: 1.45;
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
}
.client pre code { font-size: .82rem; white-space: pre-wrap; }
.tool-list { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.tool-list div { padding: 11px 16px; }
.tool-list div + div { border-top: 1px solid var(--line); }
.tool-list dt { font-weight: 600; }
.tool-list dt code { margin-left: 6px; font-weight: 400; color: var(--text-3); }
.tool-list dd { margin: 2px 0 0; font-size: .9rem; color: var(--text-2); }

.error-page { padding-top: 48px; }
.error-code { font: 700 clamp(5rem, 16vw, 9rem)/.9 var(--display); color: var(--red); }
.error-page h1 { font: 700 2.2rem var(--display); text-transform: uppercase; letter-spacing: .04em; margin-top: 8px; }
.error-page .lede { margin-top: 10px; max-width: 55ch; color: var(--text-2); }

.site-footer { margin-top: 72px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--text-3); }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--red-text); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }

@media (max-width: 860px) {
  .site-header { --brand-pad: 12px; }
  .bar { justify-content: center; gap: 0 20px; padding-bottom: 12px; }
  .nav { width: 100%; justify-content: center; padding: 0 0 10px; }
  .site-header .searchbox { margin: 0; flex: 1 1 100%; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .sl-side { flex-direction: column-reverse; gap: 4px; }
  .sl-home, .sl-away { text-align: center; }
  .totals { grid-template-columns: repeat(2, 1fr); }
  .totals div:nth-child(3) { border-left: 0; }
  .totals div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .head-stats { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero .searchbox { flex-direction: column; }
  .tl-year { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tl-label { position: static; padding: 0; }
  .tl-record { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
