/* Публичные страницы ZaKoTH. Строится только на токенах (tokens.css) и повторяет
   макет handoff/ (ширина 1920, контент тянется, поля 56px). Файл самодостаточен:
   шелл платформы (`.zf-*`) сюда не подключается.

   Разделы: глобальное → каркас страницы (шапка / баннер / подвал) → компоненты
   UI Kit → страницы → адаптив. */

* { box-sizing: border-box; }

/* Атрибут hidden должен побеждать любые display-правила компонентов. */
[hidden] { display: none !important; }

html {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

body.koth-body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
}
/* Точечная сетка фона — как в макете: rgba-точка 1px с шагом 22px.
   Прибита к окну (как на сайте ZaFlag): при прокрутке едет контент, а сетка
   стоит. Фиксированный псевдоэлемент вместо background-attachment: fixed —
   тот не работает в мобильном Safari и при overflow на html. */
body.koth-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.5px) 0 0 / 22px 22px;
}

::selection { background: rgba(255, 255, 255, 0.25); }
/* Скроллбары — системные (в macOS наплывающие и исчезающие): любое
   ::-webkit-scrollbar-правило переключает Chrome на классический скроллбар,
   и справа постоянно висит полоса даже там, где прокрутки нет. */
input::placeholder,
textarea::placeholder { color: var(--text-dim); }

a { color: inherit; }

/* Пульсация «очки идут». Имя оставлено прежним: на него завязан scoreboard.js. */
@keyframes zfPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.zf-pulse { animation: zfPulse 2s ease-in-out infinite; }

.koth-skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--r-control);
}
.koth-skip:focus { left: 8px; }

/* ═══════════════════════════════════════════════════════════════════════════
   Каркас страницы: Global Header · Announcement Banner · Main · Global Footer
   ═══════════════════════════════════════════════════════════════════════════ */
.site {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.site-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 44px var(--page-x) 40px;
}

/* ── Global Header ── */
.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  /* Три колонки 1fr/auto/1fr: навигация всегда по центру окна, и её
     положение не зависит от ширины бренда и правого блока (индикатор SSE
     показывается не на всех страницах, кнопки зависят от логина). */
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  height: var(--topbar-h);
  padding: 0 var(--page-x);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
}
.brand__logo { display: block; flex: none; width: auto; height: 52px; }
.brand__rule { width: 1px; height: 12px; background: var(--border); }
.brand__game { max-width: min(20vw, 240px); overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--muted); }

/* Навигация — таблетка с активным табом */
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.site-nav .site-nav__mobile { display: none; }
.site-nav__item {
  display: inline-grid;
  padding: 7px 13px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--t), color var(--t);
}
/* Невидимая жирная копия подписи резервирует ширину под активное (600)
   начертание — пункты не «дышат» на пиксель при смене страницы. */
.site-nav__item::before {
  content: attr(data-label);
  grid-area: 1 / 1;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  font-weight: 600;
}
.site-nav__item > span { grid-area: 1 / 1; }
.site-nav__item:hover { color: var(--text); background: var(--surface-ghost); }
.site-nav__item.is-active { color: var(--text); background: var(--accent-soft); font-weight: 600; }
.site-nav__rule { width: 1px; height: 16px; margin: 0 6px; background: var(--border); }

.site-util { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.site-util__rule { width: 1px; height: 12px; background: var(--border); }
.site-util__logout { display: contents; }

/* ── Live-индикатор (шапка / подвал / hero) ── */
.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--success);
}
.live--sm { gap: 7px; font-size: 10px; font-weight: 600; letter-spacing: 0.6px; }
.live__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.live--sm .live__dot { width: 6px; height: 6px; }
.live[data-state="live"] .live__dot { animation: zfPulse 2s ease-in-out infinite; }
.live[data-state="stale"] { color: var(--warning); }
.live[data-state="offline"] { color: var(--danger); }
.live[data-state="off"] { color: var(--muted); }
.live[data-state="off"] .live__dot { animation: none; }

/* ── Announcement Banner ── */
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--banner-h);
  padding: 8px var(--page-x);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
}
.banner__content { display: flex; align-items: center; gap: 10px; min-width: 0; }
.banner__icon { width: 16px; height: 16px; flex: none; color: var(--text); }
.banner--warning .banner__icon { color: var(--warning); }
.banner--danger .banner__icon { color: var(--danger); }
.banner--danger { background: var(--danger-soft); }
.banner__text { overflow-wrap: anywhere; }
.banner__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.banner__close svg { width: 16px; height: 16px; }
.banner__close:hover { color: var(--text); background: var(--surface-ghost); }

/* ── Global Footer ── */
.site-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--footer-h);
  padding: 0 var(--page-x);
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.site-foot__meta { display: flex; align-items: center; gap: 18px; }
.site-foot__engine { font-size: 12px; font-weight: 500; color: var(--muted); }
.site-foot__build { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.site-foot__api {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--accent);
  text-decoration: none;
}
.site-foot__api:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════════════
   Компоненты (UI Kit) — источник истины handoff/html/ui-kit.html
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Иконки (спрайт _icons.html) ── */
.i { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.i--16 { width: 16px; height: 16px; }
.i--12 { width: 12px; height: 12px; }

/* ── Кнопки: primary / secondary / danger / ghost · 42px по умолчанию ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.1px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
}
.btn--sm { height: 32px; padding: 0 14px; font-size: 12px; }
.btn--md { height: 38px; padding: 0 16px; font-size: 13px; }
.btn--lg { height: 44px; padding: 0 20px; }
.btn__icon, .btn .i { width: 14px; height: 14px; flex: none; }
.btn--primary { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--secondary { background: var(--surface-raised); color: var(--text); border-color: var(--border); }
.btn--secondary:hover { border-color: var(--border-hover); }
.btn--ghost { background: transparent; color: var(--muted); }
.btn--ghost:hover { color: var(--text); background: var(--surface-ghost); }
.btn--danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(229, 72, 77, 0.24); }
.btn--danger:hover { background: rgba(229, 72, 77, 0.18); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.4; cursor: default; pointer-events: none; }
.btn:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.5); outline-offset: 0; }
.btn[aria-busy="true"] .i--spin, .i--spin { animation: kothSpin 1s linear infinite; }
@keyframes kothSpin { to { transform: rotate(360deg); } }
/* Квадратная иконочная кнопка (действия в строке таблицы, закрытие) */
.btn--icon { width: 42px; padding: 0; }
.btn--icon.btn--sm { width: 32px; }
.btn--icon.btn--md { width: 38px; }

/* ── Поле ввода со состояниями ── */
.field { display: flex; flex-direction: column; gap: 7px; }
.field__top { display: flex; justify-content: space-between; align-items: center; }
.field__label { font-size: 11px; font-weight: 500; color: var(--muted); }
.field__state { font-size: 10px; color: var(--muted); }
.input {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  font-family: var(--font-mono);
  font-size: 14px;
  transition: border-color var(--t), box-shadow var(--t);
}
.input--body { font-family: var(--font-body); }
.input::placeholder { color: var(--muted); }
.input:focus, .input:focus-within { outline: none; border-color: transparent; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); }
.input[aria-invalid="true"], .field--error .input { border-color: var(--danger); box-shadow: none; }
.input[aria-busy="true"], .field--busy .input { opacity: 0.6; }
.field__msg { font-size: 11px; color: var(--muted); }
.field--error .field__msg { color: var(--danger); }
.form-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(229, 72, 77, 0.24);
  border-radius: 9px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 12px;
  font-weight: 500;
}

/* ── Статус-метка режима игры ── */
.phase {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  background: var(--surface);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--muted);
}
.phase__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--idle); flex: none; }
.phase--running { color: var(--success); }
.phase--running .phase__dot { background: var(--success); animation: zfPulse 2s ease-in-out infinite; }
.phase--frozen { color: var(--info); }
.phase--frozen .phase__dot { background: var(--info); }
.phase--finished { color: var(--muted); }
.phase--finished .phase__dot { background: var(--muted); }
/* Компактный вариант — kicker в hero: без рамки */
.phase--bare { height: auto; padding: 0; border: 0; background: none; gap: 10px; }

/* ── Плашка режима (под шапкой): FREEZE / FINISHED / не настроена / stale / offline ── */
.plate {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-ghost);
}
.plate__icon { width: 18px; height: 18px; flex: none; color: var(--muted); }
.plate__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.plate__title { font-size: 15px; font-weight: 600; letter-spacing: -0.2px; color: var(--text); }
.plate__desc { font-size: 13px; line-height: 20px; color: var(--muted); }
.plate__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.plate__aside-label { font-size: 10px; font-weight: 500; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); }
.plate__aside-value { font-family: var(--font-mono); font-size: 20px; font-weight: 500; letter-spacing: -0.5px; color: var(--text); }
.plate__actions { display: flex; gap: 10px; flex: none; }
.plate--frozen { background: rgba(79, 199, 192, 0.08); border-color: rgba(79, 199, 192, 0.24); }
.plate--frozen .plate__icon, .plate--frozen .plate__aside-value { color: var(--info); }
.plate--finished { background: rgba(201, 179, 126, 0.08); border-color: rgba(201, 179, 126, 0.24); }
.plate--finished .plate__icon { color: var(--gold); }
.plate--warning { background: var(--warning-soft); border-color: rgba(217, 168, 84, 0.24); }
.plate--warning .plate__icon { color: var(--warning); }
.plate--danger { background: var(--danger-soft); border-color: rgba(229, 72, 77, 0.24); }
.plate--danger .plate__icon { color: var(--danger); }

/* Тонкие полосы состояния поверх блока: «данные устарели» / «переподключение» */
.strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(217, 168, 84, 0.24);
  border-radius: var(--r-control);
  background: var(--warning-soft);
  font-size: 11px;
  font-weight: 500;
  color: var(--warning);
}
.strip__meta { font-size: 10px; font-weight: 400; color: var(--muted); }
.strip__aside { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 600; letter-spacing: 0.6px; color: var(--muted); }
.strip__aside::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.strip--danger { border-color: rgba(229, 72, 77, 0.24); background: var(--danger-soft); color: var(--danger); gap: 10px; }
.pulse { position: relative; width: 14px; height: 14px; flex: none; display: grid; place-items: center; }
.pulse::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(229, 72, 77, 0.2); animation: kothPulseRing 1.6s ease-out infinite; }
.pulse::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }
@keyframes kothPulseRing { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(1.4); opacity: 0; } }

/* ── Панель-блок (карточка раздела) и его шапка ── */
.panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
  background: var(--surface);
}
.panel--tight { padding: 16px; border: 0; border-radius: var(--r-card); gap: 0; }
.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.panel__title { font-size: 11px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); }
.panel__extra { font-size: 11px; color: var(--muted); }
.panel__extra--mono { font-family: var(--font-mono); font-size: 10px; }

/* ── Пусто / ошибка данных (внутри панели) ── */
.empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 20px;
  text-align: center;
}
.empty__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--surface-faint);
  color: var(--muted);
}
.empty__icon .i { width: 18px; height: 18px; }
.empty--error .empty__icon { background: var(--danger-soft); color: var(--danger); }
.empty__title { font-size: 14px; font-weight: 500; letter-spacing: -0.2px; color: var(--text); }
.empty__desc { font-size: 12px; line-height: 18px; color: var(--muted); }
.empty__reason { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.empty__actions { display: flex; gap: 10px; margin-top: 4px; }

/* ── Скелетон ── */
.skel { background: var(--surface-hover); border-radius: 6px; animation: zfPulse 1.6s ease-in-out infinite; }
.skel--soft { background: var(--surface-faint); }
.skel--dot { width: 22px; height: 22px; border-radius: 7px; flex: none; }
.skel-row { display: flex; align-items: center; gap: 12px; height: 44px; }
.skel-row .skel { height: 12px; }
.skel-row .skel--dot { height: 22px; }
.skel-row__spacer { flex: 1; }

/* ── Метка состояния сервиса ── */
.health {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border-radius: var(--r-control);
  background: var(--surface-hover);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.health--healthy { background: var(--success-soft); color: var(--success); }
.health--down, .health--degraded { background: var(--danger-soft); color: var(--danger); }
.health--reset, .health--unknown { background: var(--surface-hover); color: var(--muted); }
/* Компактная — точка + подпись (боковая панель «Сервисы») */
.health--dot { height: auto; padding: 0; background: none !important; gap: 6px; }
.health--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── Ячейка очков в таблице ── */
.cell {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  width: 150px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  background: var(--surface-soft);
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
}
.cell--own { color: var(--text); font-weight: 500; }
.cell__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); flex: none; }
.cell--fb .i { color: var(--gold); }

/* ── First Blood ── */
.fb .i { display: none; width: 12px; height: 12px; }
.fb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 5px;
  border: 1px solid rgba(201, 179, 126, 0.24);
  border-radius: 4px;
  background: rgba(201, 179, 126, 0.12);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--gold);
}

/* ── Маркер типа события ── */
.marker {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface-hover);
  color: var(--muted);
  flex: none;
}
.marker .i { width: 14px; height: 14px; }
.marker--captured, .marker--recovered, .marker--capture_open, .marker--game_start, .marker--game_resume { background: var(--success-soft); color: var(--success); }
.marker--recaptured, .marker--capture_failed { background: rgba(217, 168, 84, 0.1); color: var(--warning); }
.marker--down, .marker--degraded { background: var(--danger-soft); color: var(--danger); }
.marker--first_blood { background: rgba(201, 179, 126, 0.12); color: var(--gold); }
.marker--jury, .marker--game_freeze { background: rgba(79, 199, 192, 0.1); color: var(--info); }
.marker--reset_by_reaper, .marker--hard_reset, .marker--system, .marker--announcement, .marker--hill_added, .marker--game_finish { background: var(--surface-hover); color: var(--muted); }
.marker-label { font-size: 10px; font-weight: 600; letter-spacing: 0.7px; text-transform: uppercase; }

/* ── Команда: цвет, инициалы, точка ── */
.team-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--team-color, var(--muted)); flex: none; }
.team-dot--round { border-radius: 50%; width: 6px; height: 6px; }
.team-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--team-color, var(--muted));
  color: var(--on-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  flex: none;
}
.team-avatar--lg { width: 48px; height: 48px; border-radius: 12px; font-size: 15px; }
.team-avatar--xl { width: 64px; height: 64px; border-radius: 16px; font-size: 22px; font-family: var(--font-body); font-weight: 600; }
.team-bar { height: 6px; border-radius: 3px; background: var(--team-color, var(--muted)); }

/* ── Часы площадки ── */
.clock { display: flex; flex-direction: column; gap: 8px; }
.clock__label { font-size: 10px; font-weight: 500; letter-spacing: 0.9px; text-transform: uppercase; color: var(--muted); }
.clock__value { font-family: var(--font-mono); font-size: 32px; font-weight: 500; letter-spacing: -1.2px; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.clock__note { font-size: 11px; color: var(--muted); }
.clock--stopped .clock__value { color: var(--muted); }
.clock--card { padding: 16px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface-soft); }
.clock--card .clock__label { font-size: 9px; letter-spacing: 0.8px; }

/* ── Пагинация ── */
.pager { display: flex; align-items: center; gap: 6px; }
.pager__item {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  background: var(--surface-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.pager__item:hover { color: var(--text); border-color: var(--border-hover); }
.pager__item.is-active { background: var(--surface-raised); border-color: var(--border-hover); color: var(--text); }
.pager__item[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
.pager__note { font-size: 11px; color: var(--muted); }

/* ── Тултип ── */
.tip {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  background: var(--surface-raised);
  box-shadow: var(--shadow-popover);
}
.tip__title { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--text); }
.tip__desc { font-size: 11px; color: var(--muted); }
/* ── Уведомление кабинета: одна рамка, разная заливка ── */
.notice {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-ghost);
}
.notice__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--surface-hover); color: var(--text); flex: none; }
.notice__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.notice__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.notice__title { font-size: 14px; font-weight: 600; letter-spacing: -0.2px; color: var(--text); }
.notice__time { font-size: 11px; color: var(--muted); white-space: nowrap; }
.notice__desc { font-size: 12px; line-height: 18px; color: var(--muted); }
.notice--warning { background: var(--warning-soft); }
.notice--warning .notice__icon { color: var(--warning); }
.notice--danger { background: rgba(229, 72, 77, 0.08); }
.notice--danger .notice__icon { color: var(--danger); }

/* ── Мета-чип (hero: «8 команд в игре») ── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  background: var(--surface-raised);
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
}
.chip__value { font-family: inherit; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--text); }
.chip--pin { height: 24px; padding: 0 8px; border: 0; border-radius: 6px; background: var(--surface-hover); font-size: 10px; font-weight: 500; letter-spacing: 0.4px; }

/* Множитель сервиса «×1.4» */
.mult { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }

/* ── Заголовок раздела с линией (UI Kit, Правила) ── */
.section-head { display: flex; align-items: center; gap: 20px; }
.section-head__title { font-family: var(--font-heading); font-size: 28px; font-weight: 600; letter-spacing: -1px; color: var(--text); white-space: nowrap; }
.section-head__rule { flex: 1; height: 1px; background: var(--border); }
.section-head__sub { font-size: 12px; color: var(--muted); white-space: nowrap; }
.specimen-label { font-size: 10px; font-weight: 600; letter-spacing: 0.9px; text-transform: uppercase; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════════════════════
   Скорборд `/` — handoff/html/scoreboard-{running,freeze,finished,empty}.html
   ═══════════════════════════════════════════════════════════════════════════ */
.board { display: flex; flex-direction: column; gap: 28px; width: 100%; min-width: 0; }
.board__plate { margin-bottom: -12px; }
/* Плашка потери связи — по признаку документа от live.js */
.board [data-stale] { display: none; }
html[data-live="stale"] .board [data-stale],
html[data-live="offline"] .board [data-stale] { display: flex; }
/* FREEZE: таблица приглушена, но читаема; FINISHED: live-индикаторы гаснут */
.board[data-phase="frozen"] .lb__table { opacity: 0.82; }
.board[data-phase="finished"] .row__score-dot,
.board[data-phase="finished"] .phase__dot { animation: none; }

/* ── Hero Band ── */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  grid-template-areas: "copy clock";
  align-items: center;
  gap: 32px;
  min-height: 240px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-band);
  background: var(--surface);
  overflow: hidden;
}
.hero__clock { grid-area: clock; position: relative; z-index: 1; gap: 8px; align-self: start; align-items: flex-end; }
.hero__clock .clock__label { font-size: 10px; letter-spacing: 0.9px; }
.hero__clock-value { font-size: 34px; letter-spacing: -1.2px; }
.board[data-phase="finished"] .hero__clock-value { color: var(--muted); }
.hero__art {
  position: absolute;
  right: 24px;
  bottom: -18px;
  height: 205px;
  width: auto;
  max-width: 35%;
  opacity: 0.45;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
  user-select: none;
}
.hero__copy { grid-area: copy; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.hero__kicker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.hero__kicker-rule { width: 1px; height: 11px; background: var(--border); }
.hero__round { min-width: 0; font-size: 11px; font-weight: 500; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); overflow-wrap: anywhere; }
.hero__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -1.6px;
  line-height: 1.15;
  color: var(--text);
  overflow-wrap: anywhere;
}
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__deadline { display: inline-flex; align-items: center; align-self: flex-start; flex-wrap: wrap; gap: 5px 10px; max-width: 100%; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--r-chip); background: var(--surface-soft); font-size: 11px; color: var(--muted); }
.hero__deadline strong { font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.hero__deadline[data-urgent="1"] { border-color: rgba(217, 168, 84, 0.5); }
.hero__deadline[data-urgent="1"] strong { color: var(--warning); }

/* ── Board Body: лидерборд 1fr + боковая панель 320 ── */
.board__body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.board__left { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
/* Боковые панели прилипают под шапкой при прокрутке (как оглавление на «Правилах»);
   на узких экранах они становятся обычными блоками под контентом. */
.rail, .tl__rail, .detail__rail { position: sticky; top: calc(var(--topbar-h) + 16px); align-self: start; }
.rail { display: flex; flex-direction: column; gap: 16px; margin-top: 66px; }
.rail__block { min-width: 0; }
.rail__feed { min-height: 330px; }
.rail__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}
.rail__more:hover { color: var(--text); }

/* Фильтры над таблицей */
.lb { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.lb__filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lb__search, .lb__select { position: relative; display: block; width: 172px; }
.lb__search .input, .lb__select .input { height: 46px; padding-right: 42px; background: var(--surface); font-size: 14px; font-weight: 500; letter-spacing: -0.1px; }
.lb__search .i, .lb__select > .i { position: absolute; right: 12px; top: 50%; width: 18px; height: 18px; stroke-width: 2; transform: translateY(-50%); color: var(--muted); pointer-events: none; transition: color var(--t), transform var(--t); }
.lb__select:hover > .i, .lb__select.is-open > .i { color: var(--text); }
.lb__select .input { appearance: none; -webkit-appearance: none; cursor: pointer; }
.lb__select .input option { background: var(--surface-raised); color: var(--text); }
.lb__reset { height: 46px; padding: 0 16px; gap: 6px; background: var(--surface); font-size: 13px; font-weight: 400; color: var(--muted); }
.lb__reset .i { width: 12px; height: 12px; }
.lb__reset:hover { color: var(--text); }
.lb__filters .input::placeholder { color: var(--muted); }
.lb__reset.is-active { color: var(--text); border-color: var(--border-hover); }

/* Кастомный список поверх нативного select (собирает ui.js) */
.lb__select[data-dd] .dd__native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dd__btn { display: block; width: 100%; cursor: pointer; text-align: left; line-height: 44px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.dd__btn--set { color: var(--text); }
.lb__select.is-open .dd__btn { border-color: var(--border-hover); }
.lb__select.is-open > .i { transform: translateY(-50%) rotate(180deg); }
.dd__menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  max-width: min(440px, calc(100vw - 2 * var(--page-x)));
  max-height: min(420px, calc(100vh - 120px));
  overflow-y: auto;
  display: none;
  flex-direction: column;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-popover);
}
.lb__select.is-open .dd__menu { display: flex; }
.dd__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px 9px 30px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  position: relative;
}
.dd__item:hover { background: var(--surface-ghost); }
.dd__item.is-selected::before { content: ""; position: absolute; left: 12px; top: 50%; width: 5px; height: 9px; border: solid var(--success); border-width: 0 1.5px 1.5px 0; transform: translateY(-60%) rotate(45deg); }
.dd__item:first-child { color: var(--muted); }

/* Таблица: карточка со строками */
.lb__table {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-panel);
}
.lb { --hill-col: 124px; }
.lb__head {
  display: flex;
  align-items: center;
  /* Те же горизонтальные отступы, что у содержимого строки (1px рамка + 20px),
     иначе заголовок колонки сервиса стоит левее её значений. */
  padding: 0 21px 14px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.1px;
  color: var(--muted);
}
.lb__head > * { flex: none; }
.lb__c-rank { width: 32px; }
.lb__c-team { flex: 1 1 auto !important; min-width: 0; }
.lb__c-trend { width: 84px; }
.lb__c-hill { width: var(--hill-col); min-width: 0; display: inline-flex; align-items: center; gap: 6px; padding-right: 12px; color: var(--muted); text-decoration: none; }
.lb__c-hill:hover { color: var(--text); }
.lb__c-hill-name { display: -webkit-box; min-width: 0; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.25; }
.lb__c-hill .mult { flex: none; color: rgba(255, 255, 255, 0.3); font-size: 11px; }
.lb__c-total { width: 96px; }
.lb__head--scroll { display: none; }
/* Подсветка выбранного в фильтре сервиса */
.lb__table[data-hill-focus] [data-hill-col] { opacity: 0.45; }
.lb__table[data-hill-focus] [data-hill-col].is-focus { opacity: 1; }

/* Строка команды */
.row {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  overflow: hidden;
  transition: border-color var(--t), background var(--t);
}
.row--leader { border-color: var(--border-hover); background: var(--surface-raised); }
.row--leader .row__main { background: var(--surface); }
.row--dq { opacity: 0.55; }
.row--dq .row__name { text-decoration: line-through; }
.row.is-filtered { display: none; }
.row__main { display: flex; align-items: center; min-height: 88px; padding: 0 20px; }
.row__main > * { flex: none; }
.row__rank { width: 32px; font-family: var(--font-mono); font-size: 13px; color: var(--gold); }
.row__team { flex: 1 1 auto !important; min-width: 0; display: flex; align-items: center; gap: 14px; }
.row__avatar { border-radius: 15px; font-family: var(--font-body); font-weight: 600; font-size: 15px; }
.row__copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row__name-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row__name { font-size: 17px; font-weight: 600; letter-spacing: -0.3px; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__name:hover { text-decoration: underline; }
.row__sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__jury { font-family: var(--font-mono); font-size: 11px; color: var(--info); }
.row__caps { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.row__caps .i { color: var(--muted); }
.row__caps-value { font-weight: 600; color: var(--text); }
/* Тренд: 4 столбика */
.row__trend { width: 84px; display: flex; align-items: flex-end; gap: 4px; height: 28px; }
.row__spark { width: 6px; height: 4px; border-radius: 2px 2px 0 0; background: rgba(255, 255, 255, 0.2); }
.row__spark--1 { height: 9px; background: rgba(255, 255, 255, 0.35); }
.row__spark--2 { height: 15px; background: rgba(255, 255, 255, 0.55); }
.row__spark--3 { height: 26px; background: var(--accent); }
/* Очки по сервису */
.row__score { width: var(--hill-col); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.row__score-value { font-size: 16px; letter-spacing: -0.2px; color: var(--text); font-variant-numeric: tabular-nums; }
.row__score-value { display: inline-flex; align-items: center; gap: 7px; }
.row__score-meta { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); white-space: nowrap; }
.row__score-meta--owner { color: var(--success); }
.row__score-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--success); animation: zfPulse 2s ease-in-out infinite; }
/* Всего + полоска доли */
.row__total { width: 96px; display: flex; flex-direction: column; gap: 8px; }
.row__total-value { font-size: 20px; font-weight: 600; letter-spacing: -0.6px; color: var(--accent); font-variant-numeric: tabular-nums; }
.row__share { display: block; width: 80px; height: 2px; }
.row__share-bar { display: block; height: 2px; border-radius: 1px; background: var(--team-color, var(--muted)); transition: width 600ms ease; }
/* Движение по местам — держим метку несколько секунд */
.row[data-move="up"] { background: rgba(62, 207, 142, 0.06); }
.row[data-move="down"] { background: rgba(229, 72, 77, 0.05); }
.koth-bump { animation: kothBump 0.9s ease-out; }
@keyframes kothBump { 0% { color: var(--success); } 100% { color: inherit; } }

/* ── Боковая панель: сервисы ── */
.svc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}
.svc:last-child { border-bottom: 0; }
.svc__copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.svc__title { display: flex; align-items: center; gap: 8px; }
.svc__name { font-size: 13px; font-weight: 600; letter-spacing: 0.3px; color: var(--text); }
.svc:hover .svc__name { text-decoration: underline; }
.svc__mult { padding: 2px 5px; border-radius: 4px; background: var(--surface-raised); font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--muted); }
.svc__owner { display: flex; align-items: center; gap: 7px; min-width: 0; }
.svc__owner-name { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc__ip { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.svc__ip code { font: inherit; }
.svc__name { text-decoration: none; }
.copy { display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; font: inherit; }
.copy:hover { color: var(--text); background: var(--surface-ghost); }
.copy-value { position: relative; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 0; border: 0; border-radius: 4px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.copy-value:hover [data-copy-value] { text-decoration: underline; text-underline-offset: 3px; }
.copy-value:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }
.copy-value__feedback { position: absolute; z-index: 5; left: 0; bottom: calc(100% + 6px); padding: 5px 8px; border: 1px solid var(--border-hover); border-radius: 5px; background: var(--surface-raised); color: var(--text); font-family: var(--font-body); font-size: 11px; font-weight: 400; line-height: 16px; white-space: nowrap; pointer-events: none; }
.copy-value__feedback:empty { display: none; }
.ttable__ip { display: inline-flex; align-items: center; gap: 6px; }
.ttable__ip code { font: inherit; }
.svc .health--dot { font-size: 10px; font-weight: 500; letter-spacing: 0.5px; flex: none; }

/* ── Боковая панель: лента ── */
.feed { position: relative; display: flex; flex-direction: column; padding-top: 18px; }
.feed::before { content: ""; position: absolute; left: 58px; top: 22px; bottom: 12px; width: 1px; background: var(--border); }
.feed__row { position: relative; display: flex; gap: 12px; padding-bottom: 20px; }
.feed__row:last-child { padding-bottom: 0; }
.feed__time { width: 40px; flex: none; padding-top: 1px; text-align: right; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.feed__rail { width: 14px; height: 16px; flex: none; display: grid; place-items: center; background: var(--surface); }
.feed__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.feed__row--first-blood .feed__dot { background: var(--gold); box-shadow: 0 0 0 3px rgba(201, 179, 126, 0.2); }
.feed__row--reset_by_reaper .feed__dot, .feed__row--hard_reset .feed__dot { background: var(--muted); }
.feed__row--down .feed__dot, .feed__row--degraded .feed__dot { background: var(--danger); }
.feed__row--recovered .feed__dot, .feed__row--captured .feed__dot { background: var(--success); }
.feed__row--recaptured .feed__dot { background: var(--warning); }
.feed__row--jury .feed__dot { background: var(--info); }
.feed__copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.feed__title { font-size: 13px; font-weight: 500; letter-spacing: -0.1px; color: var(--text); overflow-wrap: anywhere; }
.feed__source { min-width: 0; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.feed__empty { padding: 24px 0; text-align: center; font-size: 12px; color: var(--muted); }

/* ── Хронология владения ── */
.own {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-band);
  background: var(--surface);
}
.own__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.own__legend { display: flex; flex-wrap: wrap; gap: 18px; }
.own__legend-item { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; min-width: 0; font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.own__legend-item .team-dot { width: 10px; height: 10px; border-radius: 3px; }
.own__legend-item--idle { --team-color: var(--idle); }
.own__lanes { display: flex; flex-direction: column; gap: 10px; }
.lane { display: grid; grid-template-columns: 200px minmax(0, 1fr) 64px; align-items: center; gap: 16px; }
.lane__label { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: 0.4px; color: var(--muted); }
.lane__track { position: relative; flex: 1; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
/* Сегменты без подписей: команда — цветом (легенда выше) и тултипом по наведению */
.lane__seg {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px var(--surface);
  background: var(--team-color, var(--idle));
}
.lane__share { width: 64px; flex: none; text-align: right; font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--text); }

/* ── Игра не настроена ── */
.stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 64px;
  border: 1px solid var(--border);
  border-radius: var(--r-band);
  background: var(--surface);
  text-align: center;
}
.stub__logo { display: flex; align-items: center; gap: 12px; }
.stub__mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-hover); color: var(--text); }
.stub__wordmark { font-family: var(--font-heading); font-size: 24px; font-weight: 600; letter-spacing: -0.8px; color: var(--text); }
.stub__title { margin: 0; font-family: var(--font-heading); font-size: 40px; font-weight: 600; letter-spacing: -1.5px; color: var(--text); }
.stub__desc { margin: 0; max-width: 620px; font-size: 16px; line-height: 26px; color: var(--muted); }
.stub__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-top: 6px; }
.stub__actions .btn { height: 46px; }
.stub__status { display: flex; align-items: center; padding: 0 4px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-soft); }
.stub__item { display: flex; align-items: center; gap: 9px; padding: 14px 18px; font-size: 13px; font-weight: 500; letter-spacing: -0.1px; color: var(--text); }
.stub__value { font-weight: 400; color: var(--muted); }
.stub__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.stub__dot--ok { background: var(--success); }
.stub__rule { width: 1px; height: 20px; background: var(--border); }

/* Элементы, живущие только в компактных раскладках (см. адаптив ниже) */
.hero__stats, .row__strip, .row__note, .lb__legend, .site-burger { display: none; }
.stat { display: inline-flex; flex-direction: column; gap: 5px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--r-control); background: var(--surface); }
.stat__label { font-size: 9px; font-weight: 500; letter-spacing: 0.7px; text-transform: uppercase; color: var(--muted); }
.stat__value { font-family: var(--font-mono); font-size: 15px; font-weight: 500; letter-spacing: -0.3px; color: var(--text); font-variant-numeric: tabular-nums; }
.row__cells { display: contents; }
.row__score-hill { display: none; }
.lb__table[data-jeopardy="1"] { --jeopardy-columns: 1; --jeopardy-width: 176px; }
.lb__c-jeopardy, .row__jeopardy { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); }
.lb__c-jeopardy strong { color: var(--text); font-size: 13px; font-weight: 600; }
.lb__c-jeopardy > span { font-size: 11px; font-weight: 400; color: var(--muted); }
.row__jeopardy-label { display: none; font-size: 12px; font-weight: 600; color: var(--text); }
.row__jeopardy-label > span { font-size: 11px; font-weight: 400; color: var(--muted); }
.row__jeopardy-value { font-family: var(--font-mono); font-size: 16px; font-weight: 500; line-height: 24px; font-variant-numeric: tabular-nums; color: var(--text); overflow-wrap: anywhere; }

/* ═══════════════════════════════════════════════════════════════════════════
   Страницы сайта: общая шапка страницы, лента событий, правила, итоги, Hill,
   команда, API docs — handoff/html/{timeline,rules,results,hill-detail,team-detail,api-docs}.html
   ═══════════════════════════════════════════════════════════════════════════ */
/* ── Page Head ── */
.phead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-band);
  background: var(--surface);
}
.phead__copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.phead__title { margin: 0; font-family: var(--font-heading); font-size: 44px; font-weight: 600; letter-spacing: -1.6px; line-height: 1.15; color: var(--text); overflow-wrap: anywhere; }
/* Правая колонка шапки: карточка растягивается на ширину ряда кнопок под ней,
   часы и заметка остаются прижаты вправо. */
.phead__aside { display: flex; flex-direction: column; align-items: stretch; gap: 14px; flex: none; }
.phead__aside > .clock, .phead__aside > .chip--note { align-self: flex-end; }
/* Кнопки, лежащие в колонке напрямую (правила, лента), выравниваются по
   самой широкой — все одной ширины, цвета остаются свои. */
.phead__aside > .btn { align-self: stretch; }
.clock--right { align-items: flex-end; text-align: right; }
.chip--note { gap: 8px; font-size: 11px; }
.chip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }

/* ── Теги команды / сервиса в строках ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-raised);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.tag--mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.3px; color: var(--muted); }
.tag:hover { border-color: var(--border-hover); }

/* ── Лента событий (страница) ── */
.tl-filters { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.tl-filters__left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tl-filters__search { width: 240px; }
.tl-filters__kind { width: 210px; }
.tl-filters__right { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); }
.tl { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
/* Собственная карточка, а не .lb__table: та в узких раскладках становится
   прокручиваемым блоком и рисует полосу прокрутки по правому краю. */
.tl__feed { display: flex; flex-direction: column; gap: 10px; padding: 14px 12px 12px; border: 1px solid var(--border); border-radius: var(--r-panel); }
.tl__group-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 8px; }
.tl__group-head:not(:first-child) { padding-top: 16px; }
.ev {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 66px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
}
.ev--first_blood { background: rgba(201, 179, 126, 0.08); border-color: rgba(201, 179, 126, 0.3); }
.ev__time { width: 74px; flex: none; display: flex; flex-direction: column; gap: 2px; }
.ev__clock { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--text); }
.ev__ago { font-size: 10px; color: var(--muted); }
.ev__marker { width: 32px; height: 32px; }
.ev__type { width: 150px; flex: none; }
.ev--captured .ev__type, .ev--recovered .ev__type { color: var(--success); }
.ev--recaptured .ev__type { color: var(--warning); }
.ev--down .ev__type { color: var(--danger); }
.ev--first_blood .ev__type { color: var(--gold); }
.ev--jury .ev__type { color: var(--info); }
.ev--reaper .ev__type, .ev--system .ev__type { color: var(--muted); }
.ev__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ev__title { font-size: 14px; font-weight: 500; letter-spacing: -0.1px; color: var(--text); }
.ev__source { font-size: 11px; color: var(--muted); }
/* Правая часть строки не сжимает кнопку и дельту: усекается только имя команды. */
.ev__right { min-width: 300px; flex: none; display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.ev__right .tag { min-width: 0; max-width: 320px; }
.tag__text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ev__delta { width: 78px; flex: none; text-align: right; font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--muted); }
.ev__delta--plus { color: var(--success); }
.ev__delta--minus { color: var(--danger); }
.ev__more {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--muted);
  text-decoration: none;
  transition: color var(--t), border-color var(--t);
}
.ev__more .i { width: 16px; height: 16px; stroke-width: 2; }
a.ev__more:hover { color: var(--text); border-color: var(--border-hover); }
span.ev__more { visibility: hidden; }
.tl__pager { display: flex; justify-content: space-between; align-items: center; padding: 14px 8px 4px; }
.tl__rail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tl__rail > .panel { min-width: 0; }
.legend { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; }
.legend__row { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 8px; border-radius: var(--r-control); text-decoration: none; color: var(--muted); }
.legend__row:hover, .legend__row.is-active { background: var(--surface-faint); }
.legend__label { flex: 1; }
.legend__count { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--text); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding-top: 16px; }
.bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.bars__bar { display: block; width: 100%; max-width: 44px; min-height: 6px; border-radius: 4px; background: var(--surface-hover); }
.bars__col:last-child .bars__bar { background: var(--accent); }
.bars__label { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
/* Long games keep every hour available without expanding the timeline grid. */
.tl__rail .bars { min-width: 0; max-width: 100%; overflow-x: auto; overflow-y: hidden; }
.tl__rail .bars__col { flex: 1 0 20px; min-width: 20px; }
.links { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.link-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-card); text-decoration: none; color: var(--text); }
.link-card:hover { border-color: var(--border-hover); }
.link-card .i { color: var(--muted); }
.link-card > span { display: flex; flex-direction: column; gap: 3px; }
.link-card__title { font-size: 13px; font-weight: 500; }
.link-card__sub { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }

/* ── Правила ── */
.phead__lead { margin: 0; max-width: 760px; font-size: 15px; line-height: 23px; color: var(--muted); }
.rules { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.rules__content { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.rsec { display: flex; flex-direction: column; gap: 22px; min-width: 0; padding: 32px; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--surface); scroll-margin-top: 72px; }
.rsec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.rsec__copy { display: flex; flex-direction: column; gap: 8px; }
.rsec__num { font-size: 10px; font-weight: 600; letter-spacing: 0.9px; text-transform: uppercase; color: var(--muted); }
.rsec__title { margin: 0; font-family: var(--font-heading); font-size: 26px; font-weight: 600; letter-spacing: -0.9px; color: var(--text); }
.rsec__head .chip { font-size: 11px; flex: none; }
.rsec__p { margin: 0; font-size: 15px; line-height: 25px; color: var(--muted); }
.rsec__p b { color: var(--text); font-weight: 600; }
.rsec__p a { color: var(--text); }
.rsec__p--dim { font-size: 13px; line-height: 20px; }
.hill-description { white-space: pre-line; overflow-wrap: anywhere; }
.rsec code, .rcard code, .step code { font-family: var(--font-mono); font-size: 0.92em; padding: 1px 5px; border-radius: 4px; background: var(--surface-hover); color: var(--text); }
.flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.flow__card { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface-soft); }
.flow__top { display: flex; justify-content: space-between; align-items: center; }
.flow__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--surface-hover); color: var(--text); }
.flow__num { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--muted); }
.flow__title { font-size: 16px; font-weight: 600; letter-spacing: -0.3px; color: var(--text); }
.flow__desc { font-size: 13px; line-height: 20px; color: var(--muted); }
.formula { display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface-soft); }
.formula__label { font-size: 10px; font-weight: 600; letter-spacing: 0.9px; text-transform: uppercase; color: var(--muted); }
.formula__code { font-family: var(--font-mono); font-size: 19px; line-height: 29px; font-weight: 500; letter-spacing: -0.3px; color: var(--text); overflow-wrap: anywhere; }
.formula__note { font-size: 13px; line-height: 21px; color: var(--muted); }
.vars { display: flex; flex-direction: column; }
.vars__head, .vars__row { display: grid; grid-template-columns: 240px minmax(0, 1fr) 220px; gap: 12px; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--border); }
.vars__head { padding-bottom: 12px; font-size: 10px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); }
.vars__row { min-height: 52px; }
.vars__row:last-child { border-bottom: 0; }
.vars__row .vars__c1 { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--text); }
.vars__row .vars__c2 { font-size: 14px; letter-spacing: -0.1px; color: var(--muted); }
.vars__row .vars__c3 { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.example { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-card); background: var(--surface-ghost); font-size: 13px; line-height: 20px; color: var(--muted); }
.example .i { color: var(--text); flex: none; }
.twocol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rcard { display: flex; flex-direction: column; gap: 12px; padding: 20px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface-soft); }
.rcard__title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -0.3px; color: var(--text); }
.rcard__p { margin: 0; font-size: 13px; line-height: 20px; color: var(--muted); }
.rcard__p b { color: var(--text); }
.rlist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.rlist li { position: relative; padding-left: 16px; font-size: 13px; line-height: 20px; color: var(--muted); }
.rlist li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.bans { display: flex; flex-direction: column; gap: 10px; }
.ban { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface-soft); }
.ban__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--danger-soft); color: var(--danger); flex: none; }
.ban__copy { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ban__title { font-size: 14px; font-weight: 600; letter-spacing: -0.2px; color: var(--text); }
.ban__desc { font-size: 12px; line-height: 18px; color: var(--muted); }
.ban__penalty { flex: none; padding: 6px 10px; border-radius: 7px; background: var(--warning-soft); font-size: 11px; font-weight: 600; letter-spacing: 0.3px; color: var(--warning); }
.ban__penalty--dq { background: var(--danger-soft); color: var(--danger); }
.ttable { display: flex; flex-direction: column; }
.ttable__head, .ttable__row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr) minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--border); }
.ttable__head { padding-bottom: 12px; font-size: 10px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); }
.ttable__row { min-height: 52px; text-decoration: none; color: var(--muted); font-size: 13px; }
.ttable__row:hover { background: var(--surface-ghost); }
.ttable__row:last-child { border-bottom: 0; }
.ttable__name { min-width: 0; font-family: var(--font-mono); font-size: 13px; font-weight: 600; letter-spacing: 0.3px; color: var(--text); overflow-wrap: anywhere; }
.ttable__mono { font-family: var(--font-mono); font-size: 12px; }
.ttable__dim { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface-soft); }
.step__num { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--muted); }
.step__title { font-size: 15px; font-weight: 600; letter-spacing: -0.2px; color: var(--text); }
.step__desc { font-size: 13px; line-height: 20px; color: var(--muted); }
.term { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface-soft); overflow: hidden; }
.term__head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--border); }
.term__pre { margin: 0; padding: 18px; font-family: var(--font-mono); font-size: 13px; line-height: 22px; color: var(--text); white-space: pre-wrap; overflow-x: auto; }
.term__pre--plain { border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface-soft); color: var(--muted); }
.rsec__links { display: flex; gap: 10px; flex-wrap: wrap; }
.anchors { position: sticky; top: calc(var(--topbar-h) + 16px); display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); }
.anchors__rows { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; }
.anchors__row { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 10px; border-radius: var(--r-control); font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; }
.anchors__row:hover, .anchors__row.is-active { background: var(--surface-faint); color: var(--text); }
.anchors__num { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.anchors__foot { display: flex; justify-content: space-between; margin-top: 12px; padding: 12px 2px 0; border-top: 1px solid var(--border); font-size: 11px; color: var(--muted); }

/* ── Итоги ── */
.phead__actions { display: flex; gap: 10px; }
.phead__aside > .phead__actions > .btn { flex: 1 1 0; min-width: 0; }
.rsec__note { font-size: 12px; color: var(--muted); flex: none; }
.podium { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.podium--1 { grid-template-columns: minmax(0, 1fr); max-width: 480px; margin-inline: auto; }
.podium--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1000px; margin-inline: auto; }
.podium__col { grid-row: 1; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; min-height: 224px; padding: 24px; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--surface-ghost); container-type: inline-size; }
/* Placement follows display slots: tied ranks keep their actual labels/colors. */
.podium__col--slot-1 { grid-column: 2; min-height: 300px; }
.podium__col--slot-2 { grid-column: 1; margin-top: 48px; }
.podium__col--slot-3 { grid-column: 3; margin-top: 76px; }
.podium--1 .podium__col { grid-column: 1; }
.podium__col--1 { background: rgba(201, 179, 126, 0.08); border-color: rgba(201, 179, 126, 0.3); }
.podium__col--2 { background: rgba(255, 255, 255, 0.04); }
.podium__top { display: flex; justify-content: space-between; align-items: center; }
.podium__medal { display: flex; align-items: center; gap: 9px; }
.podium__medal-box { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--surface-hover); color: var(--muted); }
.podium__col--1 .podium__medal-box { color: var(--gold); }
.podium__place { font-size: 10px; font-weight: 600; letter-spacing: 0.9px; text-transform: uppercase; color: var(--muted); }
.podium__col--1 .podium__place { color: var(--gold); }
.podium__num { font-family: var(--font-mono); font-size: 28px; font-weight: 500; letter-spacing: -1px; color: var(--muted); }
.podium__col--1 .podium__num { color: var(--gold); }
.podium__copy { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; }
.podium__col--1 .podium__copy { padding-top: 26px; }
.podium__team { display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--font-heading); font-size: 24px; font-weight: 600; letter-spacing: -0.8px; color: var(--text); text-decoration: none; }
.podium__team-name { display: -webkit-box; min-width: 0; max-width: 100%; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.podium__col--1 .podium__team { font-size: 30px; letter-spacing: -1px; }
.podium__team .team-dot { width: 10px; height: 10px; border-radius: 3px; }
.podium__score { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; white-space: nowrap; font-family: var(--font-mono); font-size: clamp(20px, 12cqi, 40px); font-weight: 500; letter-spacing: -1.6px; line-height: 1; color: var(--text); }
.podium__col--1 .podium__score { font-size: clamp(20px, 15cqi, 52px); letter-spacing: -2px; color: var(--gold); }
.podium__unit { padding-bottom: 6px; font-family: var(--font-body); font-size: 13px; letter-spacing: 0; color: var(--muted); }
.podium__stats { display: flex; flex-wrap: wrap; gap: 12px 20px; padding-top: 16px; margin-top: 18px; border-top: 1px solid var(--border); }
.podium__stat { display: flex; flex-direction: column; gap: 5px; }
.podium__stat-label { font-size: 10px; font-weight: 500; letter-spacing: 0.6px; color: var(--muted); }
.podium__stat-value { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--text); }
.ftable { display: flex; flex-direction: column; min-width: 0; overflow-x: auto; }
.ftable__head, .ftable__row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 130px 200px 120px 150px; align-items: center; gap: 0; padding: 0 14px; border-bottom: 1px solid var(--border); }
.ftable__head { padding-bottom: 12px; font-size: 10px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); }
.ftable__row { min-height: 64px; text-decoration: none; color: var(--muted); }
.ftable__row--top { background: var(--surface-ghost); }
.ftable__row--dq { opacity: 0.55; }
.ftable__row:hover { background: var(--surface-faint); }
.ftable__place { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 14px; color: var(--text); }
.ftable__team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ftable__name { font-size: 15px; font-weight: 500; letter-spacing: -0.2px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ftable__mono { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.ftable__plus { color: var(--success); }
.ftable__minus { color: var(--danger); }
.ftable__score { font-family: var(--font-mono); font-size: 17px; font-weight: 500; letter-spacing: -0.4px; color: var(--text); }
.ftable__row--first .ftable__score { font-size: 20px; color: var(--gold); }
.svcgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.svccard { display: flex; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface-soft); }
.svccard__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-width: 0; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.svccard__name { min-width: 0; font-family: var(--font-mono); font-size: 15px; font-weight: 600; letter-spacing: 0.4px; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.svccard__meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.svccard__table { display: flex; flex-direction: column; flex: 1; }
.svccard__row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 70px; gap: 8px; align-items: center; min-height: 40px; border-bottom: 1px solid var(--border); }
.svccard__row--head { min-height: 0; padding-bottom: 8px; font-size: 10px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); }
.svccard__row:last-child { border-bottom: 0; }
.svccard__row > :nth-child(2), .svccard__row > :nth-child(3) { text-align: right; }
.svccard__team { font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svccard__pts { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--text); }
.svccard__foot { font-size: 11px; color: var(--muted); }
.jury { display: flex; flex-direction: column; }
.jury__row { display: grid; grid-template-columns: 30px minmax(120px, 0.6fr) minmax(0, 2fr) 90px 90px; gap: 14px; align-items: center; min-height: 56px; border-bottom: 1px solid var(--border); }
.jury__row:last-child { border-bottom: 0; }
.jury__team { font-size: 14px; font-weight: 600; color: var(--text); }
.jury__reason { font-size: 13px; color: var(--muted); }
.jury__when { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-align: right; }
.jury__delta { font-family: var(--font-mono); font-size: 15px; font-weight: 500; text-align: right; }

/* ── Страницы Hill и команды ── */
.crumb { color: inherit; text-decoration: none; }
.crumb:hover { color: var(--text); }
.phead__title-dim { color: var(--muted); }
.phead__title-row { display: flex; align-items: center; gap: 16px; }
.chip__value--ok { color: var(--success); }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; min-width: 0; }
.detail__main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.detail__rail { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.panel--card { gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: var(--r-panel); }
.panel--card .panel__head { padding-bottom: 14px; }
.rail__lead { margin: 0; font-size: 13px; line-height: 20px; color: var(--muted); }
.rail__hint { display: flex; gap: 9px; margin: 0; padding-top: 4px; font-size: 12px; line-height: 18px; color: var(--muted); }
.rail__hint .i { flex: none; margin-top: 3px; color: var(--warning); }
/* карточка владельца / места */
.owner-card, .rank-card { display: flex; flex-direction: column; gap: 16px; width: auto; min-width: 360px; padding: 20px; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--surface-soft); }
.owner-card__top, .rank-card__top { display: flex; justify-content: space-between; align-items: center; }
.owner-card__held { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.owner-card__identity { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.owner-card__copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.owner-card__name { font-family: var(--font-mono); font-size: 18px; font-weight: 600; color: var(--text); max-width: 300px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.owner-card__sub { font-size: 11px; color: var(--muted); }
.owner-card__gains, .rank-card__split { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.owner-card__gain, .rank-card__cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.owner-card__label { font-size: 10px; color: var(--muted); }
.owner-card__value { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--text); max-width: 220px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.owner-card__value--ok { color: var(--success); }
.rank-card__trend { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; letter-spacing: 0.4px; color: var(--gold); }
.rank-card__row { display: flex; align-items: center; gap: 14px; }
.rank-card__num { font-family: var(--font-heading); font-size: 52px; font-weight: 600; letter-spacing: -2px; line-height: 1; color: var(--text); }
.rank-card__sub { font-size: 12px; line-height: 18px; color: var(--muted); }
/* лента владения Hill */
.ownbar { position: relative; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.ownbar__seg { position: absolute; top: 0; bottom: 0; box-shadow: inset 0 0 0 1px var(--surface); background: var(--team-color, var(--muted)); }
.ownbar__seg--gap { background: rgba(255, 255, 255, 0.12); }
.ownbar__legend { padding-top: 4px; }
.ownbar__legend .hillcard__legend-name { max-width: 320px; }
.ownbar__axis { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
/* история чекера */
.ticks { display: grid; grid-template-columns: repeat(60, minmax(0, 1fr)); gap: 3px; }
.ticks__cell { display: block; aspect-ratio: 1 / 1.6; min-height: 26px; border-radius: 4px; background: var(--surface-hover); }
.ticks__cell--healthy { background: var(--success-soft); box-shadow: inset 0 0 0 1px rgba(62, 207, 142, 0.35); }
.ticks__cell--degraded { background: var(--warning-soft); box-shadow: inset 0 0 0 1px rgba(217, 168, 84, 0.4); }
.ticks__cell--down { background: var(--danger-soft); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, 0.4); }
.ticks__legend { display: flex; align-items: center; gap: 20px; font-size: 11px; color: var(--muted); }
.ticks__item { display: inline-flex; align-items: center; gap: 7px; }
.ticks__sw { width: 10px; height: 10px; border-radius: 2px; }
.ticks__sw--healthy { background: var(--success); }
.ticks__sw--degraded { background: var(--warning); }
.ticks__sw--down { background: var(--danger); }
.ticks__note { margin-left: auto; }
/* захваты */
.caps { display: flex; flex-direction: column; min-width: 0; overflow-x: auto; }
.caps__head, .caps__row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 200px 120px 80px; gap: 12px; align-items: center; border-bottom: 1px solid var(--border); }
.caps__head { padding-bottom: 12px; font-size: 10px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); }
.caps__row { min-height: 52px; }
.caps__row:last-child { border-bottom: 0; }
.caps__row > :nth-child(4), .caps__row > :nth-child(5), .caps__head > :nth-child(4), .caps__head > :nth-child(5) { text-align: right; }
.caps__team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 500; }
.caps__team a { min-width: 0; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.caps__now { font-size: 10px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--success); }
.caps__how { color: var(--muted); }
/* параметры / топ удержания */
.params { display: flex; flex-direction: column; }
.params__row { display: flex; justify-content: space-between; gap: 12px; min-height: 40px; align-items: center; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.params__row:last-child { border-bottom: 0; }
.params__v { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--text); text-align: right; }
.params__v--ok { color: var(--success); }
.params__v--warn { color: var(--warning); }
.holders { display: flex; flex-direction: column; gap: 14px; }
.holder { display: flex; flex-direction: column; gap: 6px; }
.holder__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.holder__name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.holder__val { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.holder__bar { display: block; height: 4px; border-radius: 2px; background: var(--surface-hover); overflow: hidden; }
.holder__bar > span { display: block; height: 100%; border-radius: 2px; background: var(--team-color, var(--muted)); }
.holder--idle { --team-color: var(--muted); }
.holder--idle .holder__name { color: var(--muted); }
/* команда: динамика, hill-карточки, лента, история, бейджи, сравнение */
.dyn { display: flex; align-items: flex-end; gap: 10px; height: 220px; }
.dyn__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; height: 100%; }
.dyn__val { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.dyn__bar { display: block; width: 100%; max-width: 72px; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--team-color, var(--muted)); opacity: 0.75; }
.dyn__bar--now { opacity: 1; }
.dyn__label { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.dyn__note { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.dyn__peak b { color: var(--warning); font-family: var(--font-mono); font-weight: 500; }
.hcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hcard { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface-soft); text-decoration: none; color: inherit; }
.hcard--own { border-color: color-mix(in srgb, var(--team-color, var(--muted)) 55%, transparent); }
.hcard__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-width: 0; }
.hcard__name { min-width: 0; font-family: var(--font-mono); font-size: 14px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.hcard .health--dot { font-size: 10px; }
.hcard__desc { font-size: 12px; color: var(--muted); }
.hcard__foot { display: flex; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.hcard--own .hcard__pts { color: var(--success); }
.tfeed { display: flex; flex-direction: column; }
.tfeed__row { display: grid; grid-template-columns: 56px 30px minmax(0, 1fr) 80px; gap: 14px; align-items: center; min-height: 56px; border-bottom: 1px solid var(--border); }
.tfeed__row:last-child { border-bottom: 0; }
.tfeed__copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tfeed__title { font-size: 14px; font-weight: 500; color: var(--text); }
.tfeed__source { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.hist { display: flex; flex-direction: column; }
.hist__row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.hist__row:last-child { border-bottom: 0; }
.hist__hill { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--text); }
.hist__meta { grid-column: 2; font-size: 11px; color: var(--muted); }
.hist__meta b { color: var(--success); font-weight: 600; }
.badges { display: flex; flex-direction: column; gap: 10px; }
.badge { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface-ghost); }
.badge--off { opacity: 0.45; }
.badge__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--surface-hover); color: var(--success); flex: none; }
.badge--off .badge__icon { color: var(--muted); }
.badge__copy { display: flex; flex-direction: column; gap: 3px; }
.badge__title { font-size: 13px; font-weight: 600; color: var(--text); }
.badge__desc { font-size: 11px; color: var(--muted); }
.cmp { display: flex; flex-direction: column; }
.cmp__row { display: grid; grid-template-columns: minmax(0, 1fr) 70px 70px; align-items: center; min-height: 34px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.cmp__row > :nth-child(2), .cmp__row > :nth-child(3) { text-align: right; font-family: var(--font-mono); }
.cmp__row--head { font-size: 10px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; }
.cmp__row:last-child { border-bottom: 0; }
.cmp__me { color: var(--text); font-weight: 500; }
.cmp__me--ok { color: var(--success); }
.phead--dq .phead__title { text-decoration: line-through; color: var(--muted); }

/* ── API docs ── */
.rules--nav-left { grid-template-columns: 300px minmax(0, 1fr); }
.api-docs-head { align-items: center; }
.api-docs-head .phead__lead { max-width: 560px; }
.api-docs-list .endpoint { grid-template-columns: 56px minmax(210px, 0.8fr) minmax(0, 1fr); }
.api-docs-list .endpoint__path { overflow-wrap: anywhere; }
.api-docs-list .rsec__p { margin-top: 2px; }
.api-base { gap: 12px; }
.api-base__value { font-family: var(--font-mono); font-size: 17px; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }
.term__ok { color: var(--success); }
.endpoints { display: flex; flex-direction: column; }
.endpoint { display: grid; grid-template-columns: 56px 240px minmax(0, 1fr) 110px; gap: 16px; align-items: center; min-height: 42px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; }
.endpoint:last-child { border-bottom: 0; }
.endpoint:hover .endpoint__path { text-decoration: underline; }
.endpoint__method { display: inline-flex; justify-content: center; padding: 3px 0; border-radius: 6px; background: var(--success-soft); font-family: var(--font-mono); font-size: 9px; font-weight: 600; letter-spacing: 0.6px; color: var(--success); }
.endpoint__path { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--text); }
.endpoint__desc { font-size: 13px; color: var(--muted); }
.endpoint__tag { justify-self: end; padding: 4px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 10px; color: var(--muted); }

/* ── Страницы ошибок 401 / 403 / 404 / 429 / 500 ── */
.site-main:has(> .err) { justify-content: center; align-items: center; }
.err { display: flex; flex-direction: column; align-items: center; gap: 28px; width: 760px; max-width: 100%; margin: auto; text-align: center; }
.err__chip { display: inline-flex; align-items: center; padding: 8px 13px; border: 1px solid var(--border); border-radius: var(--r-control); background: var(--surface-raised); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.4px; color: var(--muted); }
.err__code { font-family: var(--font-heading); font-size: 112px; font-weight: 600; letter-spacing: -5px; line-height: 1; color: var(--text); }
.err__copy { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.err__title { margin: 0; font-family: var(--font-heading); font-size: 30px; font-weight: 600; letter-spacing: -1px; color: var(--text); }
.err__lead { margin: 0; max-width: 600px; font-size: 15px; line-height: 24px; color: var(--muted); }
.err__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.err__suggest { display: flex; flex-direction: column; width: 100%; padding: 4px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-align: left; }
.err__suggest-row { display: flex; align-items: center; gap: 12px; height: 52px; border-bottom: 1px solid var(--border); text-decoration: none; }
.err__suggest-row:last-child { border-bottom: 0; }
.err__suggest-name { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--text); }
.err__suggest-desc { font-size: 12px; color: var(--muted); }
.err__tech { display: flex; justify-content: space-between; gap: 16px; width: 100%; padding: 16px 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); text-align: left; }
.err__tech-item { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.err__tech-label { font-size: 11px; color: var(--muted); }
.err__tech-value { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--text); overflow-wrap: anywhere; }

/* ── Вход / регистрация (handoff: login, register) ──
   Самостоятельные страницы без шапки и подвала: паддинг 24, gap 40, две
   панели с радиусом 20 на всю высоту окна. Цвета левой панели заданы
   напрямую — подобраны под картинку (так в макете). */
.site-main:has(> .auth) { padding: 24px; gap: 0; }
.auth {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 20px;
  flex: 1;
  min-height: 0;
}
.auth__side, .auth__card {
  position: relative;
  min-height: 0;
  border-radius: 20px;
  overflow: hidden;
}
.auth__side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  background: #0b1a14;
  isolation: isolate;
}
.auth__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
/* Скрим снизу: макетный градиент + плотное затемнение под самим текстом,
   чтобы заголовок и лид читались на светлых участках картинки */
.auth__scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 620px;
  background: linear-gradient(180deg, rgba(6, 14, 11, 0) 0%, rgba(6, 14, 11, 0.55) 45%, rgba(6, 14, 11, 0.92) 100%);
  z-index: -1;
}
.auth__brand {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  text-decoration: none;
}
.auth__brand-logo { display: block; width: 190px; max-width: 100%; height: auto; }
.auth__copy { display: flex; flex-direction: column; gap: 14px; }
.auth__title { margin: 0; font-family: var(--font-heading); font-size: 56px; font-weight: 600; line-height: 1.02; letter-spacing: -2.4px; color: #ffffff; }
.auth__lead { margin: 0; max-width: 560px; font-size: 16px; line-height: 1.6; color: #ffffff; }
.auth__meta { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3px; color: rgba(255, 255, 255, 0.85); }

.auth__card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.auth__col { display: flex; flex-direction: column; gap: 22px; width: 100%; max-width: 520px; }
.auth__card-title { margin: 0; font-family: var(--font-heading); font-size: clamp(23px, 3vw, 34px); font-weight: 600; line-height: 1.15; letter-spacing: -1.2px; color: var(--text); overflow-wrap: anywhere; }
.auth__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  height: 44px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
}
.auth__tab {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: background var(--t), color var(--t);
}
.auth__tab:hover { color: var(--text); }
.auth__tab.is-active { color: var(--text); background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--border); }
.auth__form { display: flex; flex-direction: column; gap: 22px; }
.auth__fields { display: flex; flex-direction: column; gap: 16px; }
.auth .field__state--mono { font-family: var(--font-mono); font-size: 11px; font-weight: 500; }
/* Поле: иконка 15px слева, прозрачный <input>, справа кнопка-действие (глазок) */
.input__icon { flex: none; width: 15px; height: 15px; color: var(--muted); }
.input__ctl { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.input__ctl:focus { outline: none; }
.input:focus-within { border-color: transparent; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); }
.input__reveal {
  display: grid;
  place-items: center;
  flex: none;
  height: 20px;
  padding: 0 0 0 10px;
  border: 0;
  border-left: 1px solid var(--border);
  border-radius: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.input__reveal .i { width: 15px; height: 15px; }
.input__reveal:hover { color: var(--text); }
/* Подсказка «Забыли пароль?» — по наведению/фокусу, сброса по почте нет */
.auth__tip { position: relative; cursor: help; text-decoration: underline dotted; }
.auth__tip-text {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 2;
  width: 260px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface-raised);
  color: var(--text);
  font-size: 11px;
  line-height: 1.45;
  text-decoration: none;
  box-shadow: var(--shadow-popover);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
}
.auth__tip:hover .auth__tip-text, .auth__tip:focus .auth__tip-text { opacity: 1; }
/* Индикатор надёжности пароля: 4 полоски 3px, уровень задаёт JS (data-level) */
.auth__strength { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.auth__strength-bars { display: flex; flex: 1; gap: 4px; }
.auth__strength-bars i { flex: 1; height: 3px; border-radius: 2px; background: var(--border); transition: background var(--t); }
.auth__strength-label { font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.auth__strength[data-level="1"] i:nth-child(-n + 1) { background: var(--danger); }
.auth__strength[data-level="2"] i:nth-child(-n + 2) { background: var(--warning); }
.auth__strength[data-level="3"] i:nth-child(-n + 3),
.auth__strength[data-level="4"] i:nth-child(-n + 4) { background: var(--success); }
.auth__strength[data-level="1"] .auth__strength-label { color: var(--danger); }
.auth__strength[data-level="2"] .auth__strength-label { color: var(--warning); }
.auth__strength[data-level="3"] .auth__strength-label,
.auth__strength[data-level="4"] .auth__strength-label { color: var(--success); }
/* Чекбокс 16×16: отмечен — заливка accent с галочкой 11px */
.auth__check { position: relative; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); cursor: pointer; }
.auth__check a { color: var(--text); }
.auth__check input { position: absolute; opacity: 0; width: 0; height: 0; }
.auth__check-box {
  display: grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--border-hover);
  border-radius: 5px;
  background: var(--surface-soft);
  color: transparent;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.auth__check-box .i { width: 11px; height: 11px; stroke-width: 3; }
.auth__check input:checked + .auth__check-box { background: var(--accent); border-color: var(--accent); color: #0a0a0a; }
.auth__check input:focus-visible + .auth__check-box { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5); }
.auth__actions { display: flex; flex-direction: column; gap: 10px; }
.auth__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--t), border-color var(--t);
}
.auth__btn .i { width: 15px; height: 15px; }
.auth__btn--primary { background: #ffffff; color: #0a0a0a; }
.auth__btn--primary:hover { background: #ececec; }
.auth__btn--secondary { background: var(--surface-raised); border-color: var(--border); color: var(--text); }
.auth__btn--secondary:hover { border-color: var(--border-hover); }
.auth__foot { margin: 0; padding-top: 22px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.auth__foot a { margin-left: 4px; font-weight: 600; color: var(--accent); text-decoration: none; }
.auth__foot a:hover { text-decoration: underline; }
.form-error--info { border-color: var(--border); background: var(--surface-faint, rgba(255, 255, 255, 0.05)); color: var(--text); }
@media (max-width: 1279px) {
  .site-main:has(> .auth) { padding: 16px; }
  .auth { gap: 16px; }
  .auth__side { padding: 32px; }
  .auth__title { font-size: 40px; letter-spacing: -1.4px; }
  .auth__card { padding: 32px 28px; }
}
@media (max-width: 767px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: minmax(360px, 42vh) auto; flex: none; }
  .auth__side { padding: 24px; }
  .auth__brand-logo { width: 150px; }
  .auth__title { font-size: 32px; letter-spacing: -1px; }
  .auth__lead { font-size: 14px; }
  .auth__card { padding: 24px 18px; }
}

/* ── Списки /hills/ и /teams/ ── */
.cards { display: grid; gap: 14px; }
.cards--hills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--teams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hillcard, .teamcard { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--border); border-radius: var(--r-panel); background: var(--surface); text-decoration: none; color: inherit; transition: border-color var(--t); }
.hillcard { position: relative; }
.hillcard__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.hillcard__link:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.5); outline-offset: 2px; }
.hillcard:hover, .teamcard:hover { border-color: var(--border-hover); }
.hillcard__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.hillcard__name { min-width: 0; overflow-wrap: anywhere; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 17px; font-weight: 600; letter-spacing: 0.4px; color: var(--text); }
.hillcard__kind { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--muted); }
.hillcard__address { position: relative; z-index: 2; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; max-width: 100%; min-height: 36px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface-soft); }
.hillcard__address:hover { border-color: var(--border-hover); background: var(--surface-hover); }
.hillcard__address-label { color: var(--text-dim); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.hillcard__address code { color: var(--teal); font-family: var(--font-mono); font-size: 12px; font-weight: 600; white-space: nowrap; user-select: all; }
.hillcard__owner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface-soft); }
.hillcard__owner-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hillcard__owner-name { font-size: 14px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.hillcard__owner-sub { font-size: 11px; color: var(--muted); }
.hillcard__lane-head { display: flex; justify-content: space-between; font-size: 10px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }
.hillcard__lane-head .ftable__mono { font-size: 10px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.hillcard__lane { position: relative; height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.hillcard__lane .lane__seg { padding: 0; border-radius: 0; box-shadow: inset 0 0 0 1px var(--surface); font-size: 0; }
.hillcard__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hillcard__legend-item { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font-size: 11px; color: var(--muted); }
/* Длинное имя не съедает строку: обрезается многоточием, целиком — в title */
.hillcard__legend-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hillcard__legend-item b { font-family: var(--font-mono); font-weight: 500; color: var(--text); }
.hillcard__legend-item--idle { --team-color: var(--idle); }
.hillcard__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.hillcard__foot > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.hillcard__foot > span:first-child { flex: 1; overflow: hidden; }
.hillcard__foot .fb { flex: none; }
.hillcard__fb-detail { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hillcard__foot > span:last-child { flex: none; white-space: nowrap; }
.owner-card__label--fb { color: var(--gold); }
.teamcard--first { border-color: rgba(201, 179, 126, 0.35); }
.teamcard--dq { opacity: 0.55; }
.teamcard__top { display: flex; align-items: center; gap: 14px; }
.teamcard__rank { width: 28px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.teamcard--first .teamcard__rank { color: var(--gold); }
.teamcard__copy { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.teamcard__name { font-size: 17px; font-weight: 600; letter-spacing: -0.3px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.teamcard--dq .teamcard__name { text-decoration: line-through; }
.teamcard__sub { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.teamcard__points { font-family: var(--font-mono); font-size: 22px; font-weight: 500; letter-spacing: -0.6px; color: var(--text); }
.teamcard--first .teamcard__points { color: var(--gold); }
.teamcard .row__strip { display: flex; gap: 4px; height: 8px; }
.teamcard .row__seg { flex: 1; height: 8px; border-radius: 2px; background: var(--border); }
.teamcard .row__seg.is-own { background: var(--team-color, var(--muted)); }
.teamcard__foot { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); }
.teamcard__foot > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }

/* ═══════════════════════════════════════════════════════════════════════════
   Адаптив (ТЗ п. 2.1): ≥1600 полный · 1280–1599 десктоп · 768–1279 планшет · <768 мобайл
   Макеты: table-3-desktop / table-10-desktop (1440), table-10-tablet (1024),
   mobile-3 / mobile-10-expanded (390).
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1599px) {
  :root { --page-x: 40px; }
  .site-main { gap: 24px; padding: 32px var(--page-x) 36px; }
  .board { gap: 24px; }

  .hero { grid-template-columns: minmax(0, 1fr) 220px; min-height: 220px; padding: 28px; }
  .hero__title { font-size: 34px; letter-spacing: -1.1px; }

  .board__body { grid-template-columns: minmax(0, 1fr); }
  .rail { margin-top: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .rail__block { align-self: start; }
  .rail__feed { min-height: 0; }
  .rail, .tl__rail, .detail__rail { position: static; }
  .lb__legend { display: flex; flex-wrap: wrap; gap: 20px; font-size: 12px; color: var(--muted); }
  .lb__legend-item { display: inline-flex; align-items: center; gap: 8px; }
  .lb__legend-item--mobile { display: none; }
  .lb__legend .row__score-dot { animation: none; }
  .lb__table[data-hill-focus] [data-hill-col] { opacity: 1; }
  .lb__table[data-hill-focus] [data-hill-col].is-focus { background: var(--surface-ghost); }
  .own__legend-item { font-size: 11px; }
  .phead { padding: 0; border: 0; border-radius: 0; background: transparent; align-items: center; }
  .phead__title { font-size: 30px; letter-spacing: -1.1px; }
  .phead .hero__meta { display: none; }
  .phead__aside .clock--right { padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--r-control); background: var(--surface); gap: 5px; }
  .phead__aside .hero__clock-value { font-size: 15px; letter-spacing: -0.3px; }
  .phead__aside .clock__label { font-size: 9px; }
  .phead__aside .chip--note { display: none; }
  .tl { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .rules { grid-template-columns: 1fr; }
  .detail { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .detail__rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
  .owner-card, .rank-card { min-width: 320px; }
  .hcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svcgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--hills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phead__actions .btn { height: 38px; }
  .anchors { display: none; }
  .phead__lead { font-size: 14px; line-height: 21px; }
  .tl__rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .ev__type { width: 120px; }
  .ev__right { width: auto; }
}

@media (max-width: 1279px) {
  .lb__filters .lb__search, .lb__filters .lb__select { width: 150px; }
}

@media (max-width: 1023px) {
  .phead { flex-direction: column; align-items: stretch; }
  .phead__aside { width: 100%; }
  .phead__title-row { min-width: 0; }
  .phead__title { min-width: 0; }
  .phead__actions { flex-wrap: wrap; }
  .phead__aside > .phead__actions > .btn { flex: 1 1 200px; }
  .detail__rail, .tl__rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Шапка с семью разделами перестаёт помещаться раньше мобильного брейкпоинта. */
@media (max-width: 1279px) {
  .site-head { display: flex; flex-wrap: wrap; height: auto; min-height: var(--topbar-h); padding: 0 var(--page-x); }
  .site-burger { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-right: 10px; padding: 0; border: 0; background: transparent; color: var(--text); cursor: pointer; }
  .brand { flex: 1; justify-content: flex-start; min-width: 0; }
  .brand__rule, .brand__game { display: none; }
  .site-nav { display: none; order: 10; width: 100%; flex-direction: column; align-items: stretch; margin: 0 0 12px; }
  .site-head.is-open .site-nav { display: flex; }
  .site-nav__rule { display: none; }
  .site-nav__item { padding: 10px 13px; font-size: 14px; }
  .site-nav .site-nav__mobile { display: inline-grid; }
  .site-nav__logout .site-nav__item { width: 100%; border: 0; background: none; font: inherit; color: var(--muted); text-align: left; cursor: pointer; }
  .site-util { gap: 8px; }
  .site-util__rule, .site-util .btn { display: none; }
  .site-util .live--sm { font-size: 10px; }
  .tl__feed, .tl__rail { min-width: 0; }
  .ev { flex-wrap: wrap; gap: 10px 12px; padding: 12px 14px; }
  .ev__time { flex-direction: row; gap: 8px; width: auto; align-items: baseline; }
  .ev__type { width: auto; }
  .ev__copy { flex-basis: 100%; }
  .ev__right { min-width: 0; width: 100%; flex-basis: 100%; flex-wrap: wrap; justify-content: flex-start; }
  .ev__right .tag { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .ev__delta { width: auto; margin-left: auto; }
}

/* Одна сетка для заголовка и строк. Команда и итог имеют устойчивую ширину,
   свободное место делится между сервисами; число сервисов не меняет ширину страницы. */
@media (min-width: 768px) {
  .ftable__head, .ftable__row { min-width: 860px; }
  .lb { --team-col: 208px; --hill-col: 180px; }
  /* В шапке перед Hill три служебные колонки, в row__cells — только Hill. */
  .lb__c-hill:nth-child(5n + 4), .row__score:nth-child(5n + 1) { --hill-color: #74a99d; }
  .lb__c-hill:nth-child(5n + 5), .row__score:nth-child(5n + 2) { --hill-color: #9a8bb7; }
  .lb__c-hill:nth-child(5n + 6), .row__score:nth-child(5n + 3) { --hill-color: #bd9b74; }
  .lb__c-hill:nth-child(5n + 7), .row__score:nth-child(5n + 4) { --hill-color: #7e99b5; }
  .lb__c-hill:nth-child(5n + 8), .row__score:nth-child(5n + 5) { --hill-color: #b38491; }
  .lb__table { gap: 0; padding: 0; background: var(--surface); overflow-x: auto; scrollbar-width: thin; }
  .lb__head, .row { width: 100%; min-width: calc(164px + var(--team-col) + var(--hill-col) * var(--hills, 0) + var(--jeopardy-width, 0px)); }
  .lb__head, .row__main { display: grid; grid-template-columns: 52px var(--team-col) 112px repeat(var(--hills, 0), minmax(var(--hill-col), 1fr)) repeat(var(--jeopardy-columns, 0), 176px); align-items: stretch; padding: 0; }
  .lb__table:not(:has(.lb__c-hill)) .lb__head,
  .lb__table:not(:has(.lb__c-hill)) .row__main { grid-template-columns: 52px var(--team-col) minmax(112px, 1fr) repeat(var(--jeopardy-columns, 0), 176px); }
  .lb__head { min-height: 80px; background: var(--surface-soft); border-bottom: 1px solid var(--border); font-size: 12px; }
  .lb__head > *, .row__main > * { width: auto; min-width: 0; }
  .lb__head > * { display: flex; align-items: center; padding: 14px 16px; background: var(--surface-soft); }
  .lb__c-rank, .row__rank { justify-content: center; }
  .lb__head .lb__c-hill { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 6px; border-left: 1px solid var(--border); background: color-mix(in srgb, var(--hill-color) 6%, var(--surface)); }
  .lb__c-hill::before { content: ""; display: block; flex: none; width: 22px; height: 3px; background: var(--hill-color); }
  .lb__c-hill-name { font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.35; }
  .lb__c-hill .mult { color: var(--muted); font-size: 10px; }
  .lb__c-total { color: var(--text); }
  .lb__c-trend, .row__trend { display: none; }
  .row { --row-bg: var(--surface); border: 0; border-radius: 0; overflow: visible; background: var(--row-bg); }
  .row--leader { --row-bg: var(--surface-raised); }
  .row + .row { border-top: 1px solid var(--border); }
  .row__main, .row--leader .row__main { min-height: 88px; background: var(--row-bg); }
  .row__rank, .row__team, .row__total { display: flex; align-items: center; padding: 16px; background: var(--row-bg); }
  .row__team { gap: 12px; }
  .row__avatar { width: 36px; height: 36px; border-radius: 10px; flex: none; font-size: 12px; }
  .row__name-line { flex-wrap: wrap; gap: 4px 8px; }
  .row__name { max-width: 100%; font-size: 15px; }
  .row__sub { width: 100%; font-size: 11px; }
  .row__caps { display: none; }
  .row__total { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
  .row__total-value { font-size: 19px; }
  .row--leader .row__total-value { color: var(--gold); }
  .row__score { width: auto; min-width: 0; padding: 16px; justify-content: center; border-left: 1px solid var(--border); background: color-mix(in srgb, var(--hill-color) 6%, var(--row-bg)); }
  .row__score-value { font-family: var(--font-mono); font-size: 15px; }
  .lb__head .lb__c-jeopardy, .row__main .row__jeopardy { margin: 10px 12px 10px 16px; padding: 12px 14px; align-items: flex-start; background: var(--surface-soft); }
  .lb__c-rank, .row__rank { position: sticky; left: 0; z-index: 3; }
  .lb__c-team, .row__team { position: sticky; left: 52px; z-index: 3; }
  .lb__c-total, .row__total { position: sticky; left: calc(52px + var(--team-col)); z-index: 3; border-right: 1px solid var(--border); }
  .lb__legend { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 11px; color: var(--muted); }
  .lb__legend-item { display: inline-flex; align-items: center; gap: 6px; }
  .lb__legend-item--mobile { display: none; }
}

@media (min-width: 768px) and (max-width: 1599px) {
  .row__avatar { display: none; }
}

@media (max-width: 767px) {
  :root { --page-x: 16px; --topbar-h: 56px; }
  .site-main { gap: 16px; padding: 18px var(--page-x) 22px; }
  .board { gap: 16px; }
  .board__plate { margin-bottom: 0; }
  .plate { display: grid; grid-template-columns: 18px minmax(0, 1fr); padding: 14px 16px; }
  .plate__copy { grid-column: 2; }
  .plate__aside { grid-column: 2; align-items: flex-start; }
  .plate__actions { grid-column: 1 / -1; flex-wrap: wrap; }
  .plate__actions .btn { width: 100%; }

  /* Шапка: бургер + бренд + LIVE; меню раскрывается вниз */
  .site-head { display: flex; flex-wrap: wrap; height: auto; min-height: var(--topbar-h); padding: 0 var(--page-x); }
  .site-burger { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-right: 10px; padding: 0; border: 0; background: transparent; color: var(--text); cursor: pointer; }
  .brand { flex: 1; justify-content: flex-start; }
  .brand__rule, .brand__game { display: none; }
  .brand__logo { height: 42px; }
  .site-nav { display: none; order: 10; width: 100%; flex-direction: column; align-items: stretch; margin: 0 0 12px; }
  .site-head.is-open .site-nav { display: flex; }
  .site-nav__rule { display: none; }
  .site-nav__item { padding: 10px 13px; font-size: 14px; }
  .site-util { gap: 8px; }
  .site-util__rule { display: none; }
  .site-util .btn { display: none; }
  .site-util .live--sm { font-size: 10px; }
  .banner { padding: 8px var(--page-x); }
  .banner__text { font-size: 13px; }

  /* Шапка страницы: kicker, название, три стата в ряд */
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 18px; min-height: 0; padding: 20px; }
  .hero__art, .hero__clock, .hero__meta { display: none; }
  .hero__copy { order: 0; gap: 10px; }
  .hero__kicker { gap: 8px; }
  .hero__title { font-size: 24px; letter-spacing: -0.9px; }
  .hero__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; order: 1; }
  .board[data-phase="finished"] .hero__stats { grid-template-columns: minmax(0, 1fr); }
  .stat { padding: 10px 12px; border-radius: 10px; }

  /* Фильтры: поиск + кнопка */
  .lb { gap: 12px; }
  .lb__filters { flex-wrap: nowrap; gap: 8px; }
  .lb__search { flex: 1; width: auto; }
  .lb__search .input { height: 40px; font-size: 13px; font-weight: 400; }
  .lb__filters .input::placeholder { color: var(--muted); }
  .lb__select { display: none; }
  .lb__reset { height: 40px; padding: 0 12px; }

  /* Карточки команд */
  .lb__table { display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; background: transparent; overflow: visible; }
  .lb__head { display: none; }
  /* Карточка — grid: 1-я строка (место · имя · очки), полоска, подпись */
  .row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; column-gap: 10px; row-gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
  .row--leader { border-color: var(--border); }
  .row__main { display: contents; }
  .row__rank { grid-column: 1; grid-row: 1; }
  .row__team { grid-column: 2; grid-row: 1; }
  .row__total { grid-column: 3; grid-row: 1; }
  .row__strip { grid-column: 1 / -1; grid-row: 2; }
  .row__note { grid-column: 1 / -1; grid-row: 3; }
  .row__cells { grid-column: 1 / -1; grid-row: 4; }
  .row__rank, .row__team, .row__total { position: static; height: auto; padding: 0; border: 0; background: transparent; }
  .row__rank { display: grid; place-items: center; width: 26px !important; height: 26px; border-radius: 8px; background: var(--surface-hover); font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--gold); }
  .row:not(.row--leader) .row__rank { color: var(--muted); }
  .row__team { display: flex; gap: 8px; min-width: 0; }
  .row__avatar, .row__caps, .row__sub, .row__share { display: none; }
  .row__team::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--team-color, var(--muted)); flex: none; }
  .row__name { font-size: 15px; font-weight: 600; letter-spacing: -0.3px; }
  .row__cells { display: none; }
  .row__jeopardy { grid-column: 1 / -1; grid-row: 4; flex-direction: row; justify-content: space-between; align-items: center; padding: 12px 14px; gap: 12px; }
  .row__jeopardy-label { display: flex; align-items: baseline; gap: 8px; }
  .row__total-value { font-family: var(--font-mono); font-size: 17px; font-weight: 500; letter-spacing: -0.4px; color: var(--text); }
  .row--leader .row__total-value { color: var(--gold); }
  .row__strip { display: flex; gap: 4px; height: 8px; }
  .row__seg { flex: 1; height: 8px; border-radius: 2px; background: var(--border); }
  .row__seg.is-own { background: var(--team-color, var(--muted)); }
  .row__note { display: block; font-size: 11px; color: var(--muted); }
  .lb__legend { gap: 8px; flex-direction: column; }
  .lb__legend-item:not(.lb__legend-item--mobile) { display: none; }
  .lb__legend-item--mobile { display: block; line-height: 16px; }

  /* Боковые блоки и лента владения */
  .rail { grid-template-columns: 1fr; }
  .own { padding: 16px; gap: 14px; border-radius: 14px; }
  .own__head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .own__lanes { gap: 14px; }
  .lane { grid-template-columns: minmax(0, 1fr) 40px; gap: 6px 8px; }
  .lane__label { grid-column: 1; grid-row: 1; }
  .lane__track { grid-column: 1 / -1; grid-row: 2; }
  .lane__share { grid-column: 2; grid-row: 1; width: 40px; font-size: 11px; }
  .lane__seg { font-size: 0; padding: 0; }

  .phead { flex-direction: column; align-items: stretch; gap: 10px; }
  .phead__title { font-size: 24px; letter-spacing: -0.9px; }
  .phead__aside { flex-direction: column; align-items: stretch; min-width: 0; }
  .tl-filters__left { width: 100%; }
  .tl-filters__search, .tl-filters__kind, .tl-filters .lb__select, .tl-filters .lb__search { width: 100%; }
  .tl-filters .lb__select { display: block; }
  .tl__rail { grid-template-columns: minmax(0, 1fr); }
  .ev { flex-wrap: wrap; gap: 10px 12px; padding: 12px 14px; }
  .ev__time { flex-direction: row; gap: 8px; width: auto; align-items: baseline; }
  .ev__type { width: auto; }
  .ev__copy { flex-basis: 100%; }
  .ev__right { flex-basis: 100%; justify-content: flex-start; }
  .ev__delta { width: auto; margin-left: auto; }
  .tl__pager { flex-direction: column; gap: 10px; align-items: flex-start; }
  .rsec { padding: 16px; gap: 16px; }
  .detail__rail { grid-template-columns: 1fr; }
  .owner-card, .rank-card { min-width: 0; }
  .hcards { grid-template-columns: 1fr; }
  .caps__head { display: none; }
  .caps__row { grid-template-columns: 60px minmax(0, 1fr) 70px; }
  .caps__row > :nth-child(3), .caps__row > :nth-child(5) { display: none; }
  .ticks { grid-template-columns: repeat(20, minmax(0, 1fr)); }
  .ticks__legend { flex-wrap: wrap; gap: 10px; }
  .ticks__note { margin-left: 0; flex-basis: 100%; }
  .dyn { height: 160px; gap: 4px; overflow-x: auto; }
  .dyn__col { flex: 1 0 26px; }
  .dyn__val, .dyn__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tfeed__row { grid-template-columns: 48px 30px minmax(0, 1fr) 60px; gap: 8px; }
  .phead__title-row .team-avatar--xl { width: 44px; height: 44px; font-size: 16px; border-radius: 12px; }
  .podium { grid-template-columns: minmax(0, 1fr); }
  .podium__col { grid-column: 1; grid-row: auto; min-height: 0; margin-top: 0; }
  .ftable__head { display: none; }
  .ftable__row { grid-template-columns: 40px minmax(0, 1fr) 90px; padding: 10px 0; }
  .ftable__row > :nth-child(3), .ftable__row > :nth-child(4), .ftable__row > :nth-child(5) { display: none; }
  .svcgrid { grid-template-columns: 1fr; }
  .cards--hills, .cards--teams { grid-template-columns: minmax(0, 1fr); }
  .jury__row { grid-template-columns: 30px minmax(0, 1fr) 80px; }
  .jury__reason { grid-column: 2 / -1; }
  .rsec__head { flex-direction: column; align-items: flex-start; }
  .rsec__title { font-size: 20px; }
  .flow, .twocol, .steps { grid-template-columns: 1fr; }
  .vars__head { display: none; }
  .vars__row { grid-template-columns: 1fr; gap: 4px; padding: 10px 0; }
  .ttable__head { display: none; }
  .ttable__row { grid-template-columns: 1fr 1fr; padding: 10px 0; }
  .formula__code { font-size: 15px; line-height: 23px; }
  .ban { flex-wrap: wrap; }
  .endpoint { grid-template-columns: 48px minmax(0, 1fr); gap: 6px 12px; padding: 8px 0; }
  .api-docs-list .endpoint { grid-template-columns: 48px minmax(0, 1fr); }
  .endpoint__desc { grid-column: 2; }
  .endpoint__tag { display: none; }
  .phead__aside > .phead__actions > .btn { flex: 1 1 100%; }
  .site-foot { min-height: 56px; }
  .site-foot__engine, .site-foot__api { display: none; }
  .stub { padding: 32px 16px; gap: 18px; }
  .stub__title { font-size: 26px; letter-spacing: -1px; }
  .stub__desc { font-size: 14px; line-height: 22px; }
  .stub__status { flex-wrap: wrap; justify-content: center; }
  .stub__actions { flex-direction: column; width: 100%; }
  .stub__actions .btn { width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Наследие: стили кабинета участника и форм входа/регистрации (koth-*).
   Эти страницы в макетах первого прохода отсутствуют и не перевёрстывались;
   секции, которые больше никто не использует, удалены.
   ═══════════════════════════════════════════════════════════════════════════ */
.koth-shell { display: contents; }
.koth-main { display: contents; }
/* ── Статус-бар игры ── */
.koth-status {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 26px 26px 22px;
  margin: 12px 0 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-window);
}
.koth-status__title {
  display: -webkit-box;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.3;
  margin: 10px 0 0;
  color: var(--text-bright);
  overflow-wrap: anywhere;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.koth-status__clock { text-align: right; }
.koth-clock__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.koth-clock__value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.1;
}
.koth-status__capture {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.koth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.koth-eyebrow__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); flex: none; }

/* ── Сетка панелей ── */
.koth-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1.2fr);
  gap: 18px;
  margin-bottom: 18px;
}
.koth-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 8px 4px 12px;
}
.koth-panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.koth-panel__head > span:first-child::before { content: "● "; color: var(--text-bright); font-size: 8px; }
.koth-panel__rule { flex: 1; height: 1px; background: var(--border); }
.koth-panel__more { font-size: 11px; color: var(--text-muted); text-decoration: none; }
.koth-panel__more:hover { color: var(--text); }

.koth-overview { display: grid; gap: 16px; margin-bottom: 18px; }
.koth-overview .koth-panel { min-width: 0; padding: 0; }
.koth-overview .koth-panel__head { padding: 18px 20px 0; }
.koth-overview .koth-panel__rule { min-width: 16px; }
.koth-overview .koth-doc { padding: 16px 20px 20px; }
.koth-overview .koth-doc > :first-child { margin-top: 0; }
.koth-overview .koth-doc > :last-child { margin-bottom: 0; }

/* ── Карточки Hill ── */
.koth-hillgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  padding: 4px 16px 8px;
}
.koth-hill {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  border-left: 3px solid var(--text-dim);
}
.koth-hill[data-health="healthy"] { border-left-color: var(--success); }
.koth-hill[data-health="degraded"] { border-left-color: var(--warning); }
.koth-hill[data-health="down"] { border-left-color: var(--danger); }

/* Захват — самый зрелищный момент KoTH. Когда владелец карточки меняется на
   глазах у зала, ненадолго подсвечиваем её: рамка вспыхивает и гаснет. Уважает
   prefers-reduced-motion (см. блок ниже). */
.koth-hill[data-captured] { animation: kothCapture 6s ease-out; }
.koth-hill[data-captured]::after {
  content: "захвачен";
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 2px 7px;
  border-radius: var(--r-chip);
  background: var(--success);
  color: #06120c;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: kothCaptureBadge 6s ease-out forwards;
}
@keyframes kothCapture {
  0%   { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0.0); border-left-color: var(--success); }
  8%   { box-shadow: 0 0 0 3px rgba(62, 207, 142, 0.55); }
  100% { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0.0); }
}
@keyframes kothCaptureBadge {
  0%, 70% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-2px); }
}
.koth-hill__top { display: flex; justify-content: space-between; align-items: baseline; }
.koth-hill__name { font-size: 15px; font-weight: 600; color: var(--text); }
.koth-hill__mult { font-family: var(--font-mono); font-size: 12px; color: var(--gold); }
.koth-hill__meta { display: flex; gap: 6px; flex-wrap: wrap; }
.koth-hill__address { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-mono); }
.koth-hill__address[hidden] { display: none; }
.koth-hill__addresslabel { font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.koth-hill__address code { color: var(--teal); font-size: 13px; }
.koth-copy-row { display: inline-flex; align-items: center; gap: 7px; }
.koth-copy-btn { height: 24px; padding: 0 8px; font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); }
.koth-chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: var(--r-chip);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 10.5px;
}
.koth-chip--muted { color: var(--text-muted); }
.koth-hill__owner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-top: 1px dashed var(--border-dashed);
  border-bottom: 1px dashed var(--border-dashed);
}
.koth-hill__ownerlabel { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.koth-hill__ownername { font-size: 14px; font-weight: 600; color: var(--text-bright); }
.koth-hill__none { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }
.koth-hill__health { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.koth-hill__scoring { margin-left: auto; color: var(--success); font-size: 11px; }
.koth-hill--empty { color: var(--text-dim); font-size: 13px; }

.koth-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }

/* ── Флеш новых значений ──
   Класс НЕ называть `koth-flash`: так зовётся тост-сообщение ниже, и его
   display/padding/border выигрывали у ячейки очков — та превращалась в коробку
   и переставала прижиматься вправо. Имя разведено намеренно. */
.koth-bump { animation: kothBump 0.9s ease-out; }
@keyframes kothBump {
  0% { color: var(--success); }
  100% { color: inherit; }
}

@media (max-width: 900px) {
  .koth-grid { grid-template-columns: 1fr; }
  .koth-status { flex-direction: column; align-items: flex-start; }
  .koth-status__clock { text-align: left; }
}

/* ── Кнопки скорборд-зоны ── */
.koth-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; padding: 0 16px; border-radius: var(--r-control);
  border: 1px solid var(--border); background: transparent; color: var(--text);
  font-size: 14px; font-family: var(--font-ui); cursor: pointer; text-decoration: none;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.koth-btn:hover { background: var(--hover); }
.koth-btn--sm { height: 30px; padding: 0 11px; font-size: 12px; }
.koth-btn--primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.koth-btn--primary:hover { background: var(--primary-hover); }
.koth-btn--ghost { color: var(--text-muted); }
.koth-btn--warn { border-color: rgba(217,168,84,0.5); color: var(--warning); }
.koth-btn--warn:hover { background: rgba(217,168,84,0.12); }
.koth-btn:disabled, .koth-btn:disabled:hover { cursor: not-allowed; opacity: 0.45; background: var(--surface-2); border-color: var(--border); color: var(--text-muted); }

/* ── Формы / auth ── */
.koth-auth {
  max-width: 440px; margin: 40px auto; padding: 30px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-window);
}
.koth-auth__title { font-family: var(--font-display); font-size: 28px; margin: 10px 0 22px; color: var(--text-bright); }
.koth-auth__alt { margin-top: 18px; font-size: 13px; color: var(--text-muted); }
.koth-auth__alt a { color: var(--success); }
.koth-form { display: flex; flex-direction: column; gap: 14px; }
.koth-form--pad { padding: 14px 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.koth-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-muted); }
.koth-field input, .koth-form input {
  height: 40px; padding: 0 13px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--r-control);
  color: var(--text); font-size: 14px; font-family: var(--font-ui); width: 100%;
}
.koth-field input:focus, .koth-form input:focus { outline: none; border-color: var(--border-strong); }
.koth-field input:disabled, .koth-form input:disabled { cursor: not-allowed; opacity: 0.55; }
.koth-field__hint { font-size: 11px; color: var(--text-dim); }
.koth-field__err, .koth-form__err { font-size: 12px; color: var(--danger); }

/* ── Дашборд команды ── */
.koth-secret { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.koth-secret__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.koth-secret__row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.koth-secret__val {
  flex: 1 1 170px; min-width: 0; overflow-x: auto; white-space: nowrap;
  font-family: var(--font-mono); font-size: 13px; color: var(--success);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px;
}
.koth-secret__hint { margin: 8px 0 0; font-size: 12px; color: var(--text-muted); }
.koth-secret__hint code, .koth-secret__label code { color: var(--teal); font-family: var(--font-mono); }
.koth-targets { display: flex; flex-direction: column; padding: 4px 6px 8px; }
.koth-target { padding: 12px 14px; border-top: 1px solid var(--border); }
.koth-target:first-child { border-top: none; }
.koth-target__top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.koth-target__name { min-width: 0; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.koth-target__meta { display: flex; gap: 8px; align-items: center; margin: 6px 0; flex-wrap: wrap; }
.koth-target__ip { font-family: var(--font-mono); font-size: 12px; color: var(--teal); }
.koth-target__owner { min-width: 0; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); overflow-wrap: anywhere; }
.koth-target__mine { color: var(--success); }
.koth-members { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 20px; }
.koth-member { max-width: 100%; font-family: var(--font-mono); font-size: 12px; color: var(--text); padding: 4px 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-chip); overflow-wrap: anywhere; }
.koth-dim { color: var(--text-dim); }

/* ── Флеш-сообщения (скорборд-зона) ── */
.koth-flashes { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 4px; }
.koth-flash { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-size: 13px; color: var(--text); }
.koth-flash__dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--text-muted); }
.koth-flash--success .koth-flash__dot { background: var(--success); }
.koth-flash--warning .koth-flash__dot { background: var(--warning); }
.koth-flash--error .koth-flash__dot { background: var(--danger); }

/* ── Объявление организатора ── */
.koth-announce {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 4px;
  padding: 12px 16px;
  border: 1px solid rgba(217, 168, 84, 0.35);
  border-left: 3px solid var(--warning);
  border-radius: var(--r-card);
  background: rgba(217, 168, 84, 0.08);
  color: var(--text);
  font-size: 13px;
}
.koth-announce__icon { color: var(--warning); }

/* ── Итоги ── */
.koth-lb__row--medal .koth-lb__pts { color: var(--gold); }
.koth-note {
  margin: 12px 0;
  padding: 10px 14px;
  border: 1px dashed var(--border-dashed);
  border-radius: var(--r-card);
  color: var(--text-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.koth-panel > .koth-note { margin-inline: 20px; }
.koth-footer__link { color: var(--text-muted); text-decoration: none; }
.koth-footer__link:hover { color: var(--text); }

/* ── Документация API ── */
.koth-doc { padding: 4px 20px 12px; font-size: 13px; line-height: 1.65; color: var(--text-muted); }
.koth-doc > .koth-secret { padding-inline: 0; margin-bottom: 16px; }
.koth-doc h2 {
  margin: 22px 0 8px;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-bright);
}
:where(.koth-doc) code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-chip);
  padding: 1px 5px;
}
.koth-doc a:not(.koth-btn):not(.btn) { color: var(--success); text-decoration: none; }
.koth-doc a:not(.koth-btn):not(.btn):hover { text-decoration: underline; }
.koth-pre {
  margin: 8px 0 0;
  padding: 12px 14px;
  overflow-x: auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.koth-pre code { border: 0; background: none; padding: 0; }
.koth-list { margin: 6px 0 0; padding-left: 18px; }
.koth-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.koth-table th,
.koth-table td {
  text-align: left;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.koth-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* Фильтры и постраничная навигация публичных страниц */
.koth-filters { display: flex; gap: 8px; align-items: center; margin: 12px 0 4px; }
.koth-select {
  padding: 7px 10px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--r-control);
  font-family: var(--font-ui); font-size: 13px;
}
.koth-pager { display: flex; gap: 14px; align-items: center; justify-content: center; padding: 14px 0 4px; font-size: 12px; }

/* Решения жюри на скорборде */
.koth-lb__dq {
  margin-left: 8px;
  padding: 1px 6px;
  border: 1px solid var(--danger);
  border-radius: var(--r-chip);
  color: var(--danger);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.koth-lb__adj {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--success);
}
.koth-lb__adj.is-penalty { color: var(--danger); }

/* ── Мобильный скорборд и доступность ────────────────────────────────────── */
@media (max-width: 720px) {
  /* Менять здесь --ui-zoom нельзя: media query вычисляется уже в зумированных
     координатах, поэтому правило вида «на узком экране zoom: 1» само себя
     отменяет — в полосе физических 721–900px условие истинно при одном значении
     zoom и ложно при другом. Вместо этого ужимаем сами блоки. */
  .koth-shell { padding: 0 12px 32px; }
  .koth-topbar { padding: 8px 0; gap: 4px; }
  /* Навигация в ОДНУ прокручиваемую строку, а не в три переносом: залипающая
     шапка высотой в пятую часть телефона съедала место у самих очков. Тот же
     приём, что в панели организатора (.ap-nav). */
  .koth-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 2px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .koth-nav::-webkit-scrollbar { display: none; }
  .koth-nav__link { padding: 7px 9px; font-size: 13px; white-space: nowrap; }
  .koth-status {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 16px 14px;
    margin: 8px 0 14px;
  }
  /* На телефоне шапка занимала целый экран: заголовок игры и часы были заданы
     под проектор. Здесь их роль другая — над ними ещё нужно увидеть команды. */
  .koth-status__title { font-size: 21px; margin-top: 6px; }
  .koth-clock__value { font-size: 20px; }
  .koth-brand__name { font-size: 17px; }
  .koth-brand__sub { display: none; }
  .koth-panel__head { padding: 11px 14px 9px; }
  .koth-doc, .koth-form--pad, .koth-secret, .koth-members { padding-inline: 14px; }
  .koth-panel > .koth-note { margin-inline: 14px; }
  .koth-targets { padding-inline: 0; }
  .koth-overview .koth-panel__head { padding: 14px 16px 0; }
  .koth-overview .koth-doc { padding: 12px 16px 16px; }
  .koth-lb__row { grid-template-columns: 28px minmax(0, 1fr) 72px; padding: 0 8px; gap: 8px; }
  .koth-hillgrid { grid-template-columns: 1fr; padding: 4px 12px 8px; }
  .koth-panel { overflow-x: auto; }
  .koth-table { min-width: 520px; }
  .koth-chart__svg { height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  .zf-pulse, .koth-bump, .koth-hill[data-captured] { animation: none !important; }
  .koth-hill[data-captured] { border-left-color: var(--success); }
  .koth-hill[data-captured]::after { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}

/* Видимый фокус для навигации с клавиатуры. */
.koth-nav__link:focus-visible,
.koth-btn:focus-visible,
.koth-select:focus-visible,
.koth-field input:focus-visible {
  outline: 2px solid var(--success);
  outline-offset: 2px;
}

/* Ссылка «к содержимому» для скринридеров и клавиатуры. */
.koth-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--success);
  border-radius: var(--r-control);
  color: var(--text-bright);
}
.koth-skip:focus { left: 12px; top: 12px; }

/* Точки подключения к целям */
.koth-target__access { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.koth-endpoint {
  display: inline-block;
  margin: 2px 6px 2px 0;
  padding: 2px 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-chip);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--teal);
  user-select: all;            /* адрес выделяется одним кликом */
}


/* Данные подключения читаются с телефона: длинные строки переносятся, а не уезжают. */
.koth-pre { white-space: pre-wrap; word-break: break-word; }
.koth-endpoint { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .koth-pre { font-size: 12px; padding: 10px; }
  .koth-target__access { gap: 6px; }
}


/* ── Индикатор связи ─────────────────────────────────────────────────────────
   «Живо» и «данные замерли» обязаны выглядеть по-разному: скорборд висит на
   проекторе часами, и молча замерший он неотличим от идущей игры. */
.koth-conn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.koth-conn__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  flex: none;
}
.koth-conn[data-state="live"] { color: var(--success); }
.koth-conn[data-state="stale"] { color: var(--warning); }
.koth-conn[data-state="stale"] .koth-conn__dot { background: var(--warning); }
.koth-conn[data-state="offline"] { color: var(--danger); }
.koth-conn[data-state="offline"] .koth-conn__dot { background: var(--danger); }

/* Потеря связи объявляется плашкой во всю ширину, а не приглушением доски.
   Скорборд смотрят с проектора из глубины зала: приглушённые цифры там просто
   не отличить от обычных, а понижать контраст ради индикации — плохая цена. */
.koth-stale {
  display: none;
  align-items: center;
  gap: 12px;
  margin: 12px 0 0;
  padding: 14px 18px;
  border: 1px solid rgba(229, 72, 77, 0.45);
  border-left: 4px solid var(--danger);
  border-radius: var(--r-card);
  background: rgba(229, 72, 77, 0.1);
  color: var(--text-bright);
  font-size: 17px;
}
.koth-stale__icon { color: var(--danger); font-size: 18px; }
html[data-live="stale"] .koth-stale,
html[data-live="offline"] .koth-stale { display: flex; }

/* ── Классы, которые шаблоны использовали, а стили не описывали ───────────────
   Найдены проверкой tests/test_misc.py: страница «Правила» помечала введённые в
   игру цели классом `.koth-ok`, которого не существовало, — «в игре» и
   «вводится позже» выглядели одинаково. Остальные три — контейнеры, которым
   нужен `min-width: 0`, иначе длинное название игры или команды растягивает
   grid-колонку и ломает раскладку вместо переноса. */
.koth-ok { color: var(--success); }
.koth-status__main { min-width: 0; }
.koth-teams,
.koth-hills { min-width: 0; }

/* Кнопки на страницах-заглушках (404/403/пустой скорборд): тупик должен
   предлагать выход, а не только сообщать о проблеме. */
.koth-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 22px;
}
/* Geo Hunt uses closed-round results instead of ownership metadata. */
.geo-results__row { display:grid; grid-template-columns:40px minmax(0,1fr) 100px 100px; gap:16px; align-items:center; padding:14px 0; border-bottom:1px solid var(--border); }
.geo-results__head { color:var(--muted); font-size:12px; }
.geo-results__row > :nth-child(n+3) { text-align:right; font-variant-numeric:tabular-nums; }
.geo-results__row > a { overflow-wrap:anywhere; text-decoration:none; }
.geo-results__row > a:hover { text-decoration:underline; }
.hillcard--geo { align-self:start; }
.hillcard--geo .hillcard__top { flex-wrap:nowrap; }
.hillcard--geo .hillcard__name { flex:1; }
.hillcard--geo .chip--pin { flex:none; }
.hillcard__phase { margin:0; color:var(--muted); font-size:12px; line-height:20px; }
.hillcard__stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0; padding:14px; border:1px solid var(--border); border-radius:var(--r-card); background:var(--surface-soft); }
.hillcard__stats > div { min-width:0; }
.hillcard__stats > div + div { border-left:1px solid var(--border); padding-left:14px; }
.hillcard__stats dt { color:var(--muted); font-size:11px; line-height:18px; }
.hillcard__stats dd { margin:4px 0 0; color:var(--text); font-family:var(--font-mono); font-size:18px; font-weight:500; line-height:24px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.hillcard__actions { display:flex; }
.hillcard__actions > a { position:relative; z-index:2; }
.phead--geo .hero__meta { display:flex; flex-wrap:wrap; }
.hcard--jeopardy .hcard__name { text-decoration:none; }
.hcard--jeopardy .hcard__name:hover { color:var(--muted); }
.jeopardy-results__row { display:grid; grid-template-columns:36px minmax(0,1fr) 110px; align-items:center; gap:12px; padding:14px 0; border-bottom:1px solid var(--border); }
.jeopardy-results__head { font-size:12px; color:var(--muted); }
.jeopardy-results__row > :last-child { text-align:right; font-variant-numeric:tabular-nums; }
.jeopardy-results__row > a { text-decoration:none; overflow-wrap:anywhere; }
.jeopardy-results__row > a:hover { text-decoration:underline; }
@media (max-width:767px) {
  .geo-results__row { grid-template-columns:26px minmax(0,1fr) 62px 65px; gap:8px; font-size:12px; }
}
