/* CSlobby v3 — Eternal Blue Sky (Мөнх хөх тэнгэр).
   Night-navy sky ground, khadag-silk blue ONLY on things you can press,
   Soyombo gold for ranks and winners, green for free / ready, red ONLY for
   live state. Montserrat ExtraBold caps for display (Unbounded was dropped: it falls back on Ө Ү ₮), Golos Text body, JetBrains
   Mono for every figure. */

:root {
  --ground: #081428;
  --rail: #061022;
  --panel: #0d1d38;
  --inset: #0a1830;
  --raise: #163061;
  --line: #1d3561;
  --line-2: #2a4777;

  --ink: #f3f6fb;
  --ink-2: #b7c6de;
  --ink-3: #8a9dbd;

  --act: #1f6fe0;
  --act-hi: #2f8bff;
  --act-ink: #ffffff;
  --sky: #5aa2ff;
  --gold: #e8c25a;
  --gold-bg: #2a2410;
  --led: #ff4b4b;
  --led-glow: rgba(255, 75, 75, .45);
  --led-bg: #2e1220;
  --on: #35c46a;
  --on-bg: #0f2a24;
  --off: #1b2c4c;
  --warn: #ff9a6b;
  --warn-bg: #2d1a1c;

  --f-display: "Montserrat", "Arial Black", sans-serif;
  --f-body: "Golos Text", system-ui, sans-serif;
  --f-num: "JetBrains Mono", ui-monospace, monospace;

  --r-sm: 8px;
  --r: 12px;
  --gap: 18px;
  --pad: 20px;
  --top-offset: 0px;
  --rail-w: 232px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-2) var(--ground); }
body {
  background: var(--ground);
  color: var(--ink);
  font: 15px/1.5 var(--f-body);
  /* scores, K/D and counters update in place: digits keep their width.
     font-feature-settings survives the `font:` shorthand, font-variant-numeric does not. */
  font-feature-settings: "tnum" 1;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(47, 139, 255, .18);
}
a, button, .btn, .chip, .tab, label, summary { touch-action: manipulation; }
[id] { scroll-margin-top: 72px; }
h2, h3 { text-wrap: balance; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink-2); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--act); color: var(--act-ink); }
:focus-visible { outline: 2px solid var(--act); outline-offset: 2px; border-radius: 4px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; border: 2px solid var(--ground); }
input::placeholder { color: var(--ink-3); opacity: 1; }
input, textarea { caret-color: var(--act); }

.ic { width: 18px; height: 18px; flex: none; }
.ic.ic-wide { width: 26px; margin: 0 -4px; }  /* wide weapon silhouettes (AK-47) */
.ic.ic-img { width: 28px; height: 22px; margin: 0 -5px; object-fit: contain; opacity: .8; transition: opacity .15s; }  /* skin thumbnail as menu icon */
.rail-link:hover .ic-img, .rail-link.is-on .ic-img { opacity: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; font-size: 16px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--act); color: var(--act-ink); padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 8px; }
.num, .mono { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
[hidden] { display: none !important; }

/* ── Shell ─────────────────────────────────────────────────────────────── */
.shell { display: grid; grid-template-columns: var(--rail-w) minmax(0, 1fr); min-height: calc(100vh - var(--top-offset)); }
.rail {
  position: sticky; top: var(--top-offset); align-self: start;
  height: calc(100vh - var(--top-offset));
  background: var(--rail); border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.rail-top { display: flex; align-items: center; justify-content: space-between; padding: 22px 18px 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name { font: 800 17px/1 var(--f-display); letter-spacing: .02em; }
.brand-tag { font: 600 12px/1 var(--f-num); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.rail-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 7px; cursor: pointer; }
.rail-nav { display: flex; flex-direction: column; gap: 2px; padding: 4px 12px 16px; flex: 1; }
.rail-group { font: 600 12.5px/1 var(--f-body); color: var(--ink-3); margin: 18px 10px 8px; }
.rail-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: var(--r-sm);
  color: var(--ink-2); text-decoration: none; font-weight: 500;
  transition: background .15s, color .15s;
}
.rail-link .ic { color: var(--ink-3); transition: color .15s; }
.rail-link:hover { background: var(--panel); color: var(--ink); }
.rail-link:hover .ic { color: var(--ink-2); }
.rail-link.is-on { background: var(--raise); color: #fff; font-weight: 600; }
.rail-link.is-on .ic { color: var(--act); }
.rail-v2 { margin-left: auto; font: 700 11px/1 var(--f-num); letter-spacing: .08em; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 3px; padding: 3px 4px; }
.rail-me { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
.me:hover { border-color: var(--line-2); }
.me img { width: 34px; height: 34px; border-radius: var(--r-sm); object-fit: cover; background: var(--raise); }
.me-name { font-weight: 600; line-height: 1.25; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.me-name small { display: block; font: 600 12px/1.4 var(--f-body); color: var(--sky); }
.rail-quiet { color: var(--ink-3); }

.main { padding: 28px 32px 56px; min-width: 0; outline: none; }
.main > * + * { margin-top: var(--gap); }

/* ── Page head ─────────────────────────────────────────────────────────── */
.page-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.page-title { margin-right: auto; min-width: 0; }
.page-title h1 { font: 800 25px/1.15 var(--f-display); letter-spacing: 0; text-transform: uppercase; text-wrap: balance; }
.page-title p { color: var(--ink-2); margin-top: 6px; max-width: 70ch; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ── Panels ────────────────────────────────────────────────────────────── */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: var(--pad); min-width: 0; }
.panel-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h2 { font: 800 15px/1.3 var(--f-display); letter-spacing: 0; text-transform: uppercase; }
.panel-head .meta { font: 500 13px/1.3 var(--f-body); color: var(--ink-3); }
.panel-head .more { margin-left: auto; font-size: 13.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.panel-head .more:hover { color: var(--ink); }
.panel-head .more .ic { width: 15px; height: 15px; }
.cols { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; }
.cols-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack { display: grid; gap: var(--gap); align-content: start; min-width: 0; }
.cols-side { grid-template-columns: minmax(0, 1fr) 340px; }

/* ── Buttons & fields ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: transparent; color: var(--ink);
  font: 600 15px/1 var(--f-body); text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { background: var(--raise); border-color: #3a5a8c; }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 17px; height: 17px; }
.btn-go { background: var(--act); border-color: var(--act); color: var(--act-ink); }
.btn-go:hover { background: var(--act-hi); border-color: var(--act-hi); }
.btn-quiet { border-color: transparent; color: var(--ink-2); }
.btn-quiet:hover { color: var(--ink); }
.btn-danger { color: var(--warn); border-color: #5a3440; }
.btn-danger:hover { background: var(--warn-bg); border-color: var(--warn); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .45; cursor: not-allowed; transform: none; }
.btn.is-loading { cursor: progress; }
.btn.is-loading::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font: 600 13px/1.3 var(--f-body); color: var(--ink-2); }
.input, .select {
  min-height: 44px; padding: 0 14px;
  background: var(--inset); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  color: var(--ink); transition: border-color .15s;
}
.input:hover, .select:hover { border-color: #3a5a8c; }
.input:focus, .select:focus { outline: none; border-color: var(--act); box-shadow: 0 0 0 3px rgba(47, 139, 255, .18); }
.input.code { font: 700 17px/1 var(--f-num); letter-spacing: .14em; text-transform: uppercase; }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23bdbcb5' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.join-form { display: flex; gap: 8px; }
.join-form .input { width: 190px; }

/* ── The seat board (signature) ────────────────────────────────────────── */
.seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px; }
.seat {
  position: relative;
  display: flex; flex-direction: column;
  padding: 12px 14px 12px;
  background: var(--inset); border: 1px solid var(--line); border-radius: var(--r);
  text-decoration: none; min-width: 0;
}
.seat-num { font: 800 40px/1 var(--f-display); letter-spacing: -.02em; color: #2a4777; transition: color .4s var(--ease); }
.seat-screen { height: 6px; border-radius: 2px; background: var(--off); margin: 12px 0 10px; transition: background .5s var(--ease), box-shadow .5s var(--ease); }
.seat-line { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seat-sub { font: 500 12.5px/1.4 var(--f-body); color: var(--ink-3); }
.seat.is-live .seat-num { color: var(--ink); }
.seat.is-live .seat-screen { background: var(--led); animation: power-on .9s var(--ease) both; }
.seat.is-loaded .seat-num { color: var(--ink-2); }
.seat.is-loaded .seat-screen { background: repeating-linear-gradient(90deg, var(--led) 0 8px, var(--led-bg) 8px 14px); } /* taste-skill-ignore: striped = "loaded, not started" status, not decoration */
.seat.is-free .seat-num { color: #b7c6de; }
.seat.is-free .seat-screen { background: var(--on); animation: power-on .9s var(--ease) both; }
.seat.is-rented .seat-num { color: var(--ink-2); }
.seat.is-rented .seat-screen { background: var(--ink-3); }
.seat.is-offline { opacity: .55; }
.seat.is-skeleton .seat-num, .seat.is-skeleton .seat-line, .seat.is-skeleton .seat-sub { color: transparent; background: var(--raise); border-radius: 4px; }
.seat.is-skeleton .seat-num { width: 64px; }
@keyframes power-on { 0% { opacity: .2; filter: brightness(2.2); } 40% { opacity: 1; } 100% { filter: none; } }
.seats-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font: 500 12.5px/1 var(--f-num); color: var(--ink-3); }
.seats-legend i { display: inline-block; width: 18px; height: 5px; border-radius: 2px; margin-right: 7px; vertical-align: 2px; }

/* ── Tables ────────────────────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.tbl th {
  font: 600 12.5px/1.2 var(--f-body); color: var(--ink-3);
  text-align: left; padding: 0 10px 10px; white-space: nowrap;
}
.tbl th.r, .tbl th.n { text-align: right; }
.tbl td { padding: 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, .025); }
.tbl .r { text-align: right; }
.tbl .n { font: 600 14px/1 var(--f-num); text-align: right; white-space: nowrap; }
.tbl .id { font: 600 13px/1 var(--f-num); color: var(--ink-3); width: 1%; white-space: nowrap; }
.tbl .w { font-weight: 700; color: #fff; }
.tbl .l { color: var(--ink-3); }
.tbl .row-link { text-decoration: none; }
.tbl .row-link:hover { text-decoration: underline; }
.tbl th button { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.tbl th button:hover { color: var(--ink); }
.tbl th button:focus-visible { outline: 2px solid var(--act); outline-offset: 2px; }
.tbl th[aria-sort] { color: var(--act); }
.tbl tr.is-me td { background: rgba(47, 139, 255, .08); }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font: 700 12px/1 var(--f-num); letter-spacing: .1em; color: var(--led); }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--led); }
.vs { color: var(--ink-3); font-size: 13px; padding: 0 6px; }

.map { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.map-thumb { width: 44px; height: 26px; border-radius: 4px; object-fit: cover; background: var(--raise); filter: saturate(.85); flex: none; }
.map-name { font: 600 14px/1 var(--f-body); color: var(--ink-2); }

.res { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 5px; font: 700 12px/1 var(--f-num); }
.res-win { background: var(--on-bg); color: var(--on); }
.res-loss { background: var(--led-bg); color: #ff6b6b; }
/* W–L figures: wins green, losses red (same pair as the W / L badges). */
.c-win { color: var(--on); }
.c-loss { color: #ff6b6b; }
.figure b .c-win, .figure b .c-loss { display: inline; margin: 0; font: inherit; letter-spacing: inherit; }
.figure b .c-win { color: var(--on); }
.figure b .c-loss { color: #ff6b6b; }
.res-tie { background: var(--raise); color: var(--ink-2); }

/* Rank numerals: one fixed size ramp carries rank */
.rank { font: 800 16px/1 var(--f-display); color: var(--ink-3); width: 1%; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl .rank { text-align: right; padding-right: 16px; }
.rank-1 { font-size: 28px; color: var(--gold); }
.rank-2 { font-size: 24px; color: var(--ink); }
.rank-3 { font-size: 20px; color: var(--ink-2); }
.player { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; min-width: 0; }
.player:hover { text-decoration: underline; }

/* ── Big figures (match header, profile) ───────────────────────────────── */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.figure { padding: 16px 18px; background: var(--inset); }
.figure + .figure { border-left: 1px solid var(--line); }
.figure b { display: block; font: 800 25px/1.1 var(--f-display); letter-spacing: 0; }
.figure b { font-variant-numeric: tabular-nums; }
.figure span { display: block; margin-top: 8px; font: 500 13px/1.2 var(--f-body); color: var(--ink-3); }

/* ── Chips, tabs, filters ──────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2);
  font: 600 13px/1 var(--f-body); text-decoration: none; background: none; cursor: pointer;
}
.chip:hover { color: var(--ink); border-color: #3a5a8c; }
.chip[aria-pressed="true"], .chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--ground); }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tab { all: unset; cursor: pointer; padding: 10px 14px; font: 600 14px/1 var(--f-body); color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--act); }
.tab:focus-visible { outline: 2px solid var(--act); outline-offset: -2px; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font: 500 13px/1 var(--f-num); color: var(--ink-3); }
.pager .btn { min-height: 36px; }

/* ── Empty / notice ────────────────────────────────────────────────────── */
.empty { padding: 34px 20px; text-align: center; color: var(--ink-2); }
.empty h3 { font: 600 16px/1.35 var(--f-body); color: var(--ink); margin-bottom: 8px; }
.empty p { max-width: 52ch; margin: 0 auto; }
.empty .btn { margin-top: 18px; }
.notice { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line-2); background: var(--inset); }
.notice .ic { width: 22px; height: 22px; color: var(--ink-2); }
.notice b { display: block; }
.notice p { color: var(--ink-2); font-size: 14px; }

/* ── Toasts ────────────────────────────────────────────────────────────── */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  pointer-events: auto; min-width: 260px; max-width: 380px;
  padding: 12px 16px; border-radius: var(--r); background: var(--raise); border: 1px solid var(--line-2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .45); font-weight: 500;
  animation: toast-in .35s var(--ease) both;
}
.toast.is-error { border-color: #6b3a27; color: #ffd6c6; background: var(--warn-bg); }
.toast.is-ok { border-color: #245a38; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .cols, .cols-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  :root { --pad: 16px; --gap: 16px; }
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; }
  .page-actions { width: 100%; }
  .page-actions > .btn, .page-actions > .join-form { flex: 1 1 auto; }
  .btn { white-space: normal; text-align: center; line-height: 1.2; }
  .btn-lg { padding: 10px 16px; }
  .rail { position: sticky; top: var(--top-offset); z-index: 20; height: auto; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .rail-top { padding: 12px 16px; }
  .rail-toggle { display: inline-flex; }
  .rail-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--rail); border-bottom: 1px solid var(--line); max-height: calc(100dvh - var(--top-offset) - 60px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: max(20px, env(safe-area-inset-bottom)); box-shadow: 0 24px 40px rgba(0, 0, 0, .5); }
  .rail.is-open .rail-nav { display: flex; }
  .main { padding: 20px 16px 48px; }
  .page-title h1 { font-size: 20px; }
  .cols-even { grid-template-columns: minmax(0, 1fr); }
  .join-form { width: 100%; }
  .join-form .input { flex: 1; width: auto; }
  .seats { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .seat-num { font-size: 32px; }
  .figure + .figure { border-left: 0; }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figure:nth-child(n+3) { border-top: 1px solid var(--line); }
  .figure:nth-child(even) { border-left: 1px solid var(--line); }
  .hide-sm { display: none; }
}
.show-xs { display: none; }
.field-search { margin-left: auto; min-width: 220px; }
.lb-sub { font: 500 12.5px/1.4 var(--f-body); color: var(--ink-3); margin-top: 2px; }
.tbl .player, .tbl-names td { overflow-wrap: anywhere; }
.field-grow { flex: 1; min-width: 220px; max-width: 360px; }

/* ── Phone: touch targets ≥ 44px, no iOS input zoom, one-row chip scroller ── */
@media (max-width: 900px) {
  .rail-toggle { width: 44px; height: 44px; justify-content: center; align-items: center; }
  .input, .select, textarea, .hsearch input { font-size: 16px; }
  .chip { min-height: 40px; }
  .btn-sm { min-height: 40px; }
  .tab { padding: 14px 14px; }
  html.rail-locked, html.rail-locked body { overflow: hidden; }
  .pager .btn { min-height: 44px; }
  /* Row links: same look, a full-row-height hit area. */
  .tbl .player, .tbl .row-link { padding: 11px 0; margin: -11px 0; }
  /* Names: the whole cell is the target, not just the glyphs ("icy"). */
  .tbl .player { display: flex; width: 100%; }
  .tbl th .row-link { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: flex-end; margin: -12px 0; }
  .brand { min-height: 44px; }
  /* Inline links that stand alone: 44px tall hit area, same line box. */
  .hit, .panel-head .more { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }
}
@media (max-width: 560px) {
  .field-grow { min-width: 0; }
  .chips-scroll { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 0 var(--pad) 2px; }
  .chips-scroll::-webkit-scrollbar { display: none; }
  .chips-scroll .chip { flex: none; }
  .xs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tbl .lb-sub { white-space: nowrap; }
  .tbl-names .map-thumb { width: 34px; height: 22px; }
  .tbl-names td { overflow-wrap: break-word; }
  .tbl th, .tbl td { padding-left: 7px; padding-right: 7px; }
  /* Wide stat tables scroll inside their frame; the player column stays put. */
  .tbl-pin th:first-child, .tbl-pin td:first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); max-width: 132px; }
  .tbl-pin td:first-child { box-shadow: 1px 0 0 var(--line); }
  .hide-xs { display: none; }
  .show-xs { display: block; }
  .field-search { margin-left: 0; width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Figures: explicit tabular digits (the `font:` shorthand in page CSS resets font-variant-numeric). */
body .tbl td, body .tile b, body .figure b, body .score-num, body .rank, body .srv-line, body .srv-num, body .tops-name small, body .chip-n, body .online, body .grid-meta, body .lb-sub, body .num, body .mono { font-variant-numeric: tabular-nums; }
