/* cs-predict — единый визуальный слой поверх функциональных стилей страниц. */

:root {
  --page: #101923;
  --surface-0: #0c141d;
  --surface-1: #172331;
  --surface-2: #1d2b3a;
  --surface-3: #243546;
  --text-primary: #edf4f5;
  --text-secondary: #b8c5ce;
  --muted: #7f919f;
  --grid: #293b4b;
  --baseline: #3b5061;
  --border: rgba(184, 204, 215, 0.13);

  --series-1: #46c7b0;
  --series-2: #ff7657;
  --series-3: #efbd55;
  --series-4: #76a9f0;
  --series-5: #a78be8;
  --series-6: #ef6d71;
  --series-7: #d77fae;
  --series-8: #8ebf69;

  --status-good: #56c99a;
  --status-warning: #efbd55;
  --status-serious: #ff8a5f;
  --status-critical: #ef6d71;

  --signal: #ff7657;
  --radar: #46c7b0;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow-card: 0 16px 40px rgba(1, 7, 12, 0.16);
  --shadow-pop: 0 24px 60px rgba(1, 7, 12, 0.46);
  --display: 'Bahnschrift Condensed', 'Arial Narrow', sans-serif;
  --body: 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Cascadia Mono', 'Consolas', monospace;
}

* { scrollbar-width: thin; scrollbar-color: var(--baseline) transparent; }
html { color-scheme: dark; scroll-behavior: smooth; }
html, body {
  min-height: 100%;
  background: var(--page);
  color: var(--text-primary);
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.55;
}
body {
  background:
    radial-gradient(900px 520px at 78% -120px, rgba(70, 199, 176, 0.07), transparent 66%),
    radial-gradient(620px 420px at 102% 34%, rgba(255, 118, 87, 0.035), transparent 70%),
    var(--page);
  background-attachment: fixed;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(126, 153, 169, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(126, 153, 169, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, transparent 18%, #000 55%, transparent 100%);
}

::selection { color: #07110f; background: var(--radar); }
a { color: var(--radar); text-underline-offset: 3px; }
a:hover { color: #70dbc8; }

h1, h2, h3 { color: var(--text-primary); }
h1 {
  font-family: var(--display);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.01em;
}
h1::after { display: none; }
h2 {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 620;
  line-height: 1.15;
  letter-spacing: 0.025em;
}
h3 { font-size: 14px; line-height: 1.35; }
.small { font-size: 12px; }
.muted { color: var(--muted); }

/* Каркас ------------------------------------------------------------------ */
.layout { min-height: 100vh; align-items: flex-start; }
.sidebar {
  flex: 0 0 258px;
  width: 258px;
  padding: 0 14px 14px;
  background:
    linear-gradient(180deg, rgba(70, 199, 176, 0.035), transparent 180px),
    var(--surface-0);
  border-right: 1px solid var(--border);
  box-shadow: 18px 0 50px rgba(0, 0, 0, 0.12);
}
.sidebar::after {
  content: '';
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 112px;
  background: linear-gradient(var(--radar), transparent);
}
.sidebar-head { display: flex; align-items: center; min-height: 92px; }
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 16px 10px;
  color: var(--text-primary);
}
.brand:hover { color: var(--text-primary); }
.brand-copy { display: flex; flex-direction: column; min-width: 0; }
.brand-copy strong, .login-brand strong {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: 0.055em;
  line-height: 1;
}
.brand-copy small {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand-radar {
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid rgba(70, 199, 176, 0.42);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49%, rgba(70,199,176,.3) 50%, transparent 51%),
    linear-gradient(transparent 49%, rgba(70,199,176,.3) 50%, transparent 51%),
    radial-gradient(circle, transparent 32%, rgba(70,199,176,.24) 34%, transparent 36%, transparent 64%, rgba(70,199,176,.18) 66%, transparent 68%);
}
.brand-radar::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: conic-gradient(from 22deg, rgba(70,199,176,.48), transparent 20%, transparent);
  animation: radar-sweep 5s linear infinite;
}
.brand-radar i {
  position: absolute;
  top: 9px;
  right: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 9px var(--signal);
}
@keyframes radar-sweep { to { transform: rotate(1turn); } }

.nav-toggle { display: none; }
.period-select {
  margin: 0 4px 15px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.025);
}
.period-select label {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .09em;
}
.period-select select {
  min-height: 35px;
  margin-top: 2px;
  background-color: var(--surface-0);
  border-color: transparent;
  font-size: 13px;
}

.nav { gap: 2px; }
.nav-group {
  margin: 20px 11px 7px;
  color: #667b8a;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
}
.nav .nav-group:first-child { margin-top: 2px; }
.nav a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #9eb0bc;
  font-size: 13px;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.nav a::before {
  content: attr(data-code);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 22px;
  margin-right: 9px;
  border-right: 1px solid var(--grid);
  color: #607786;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: -.02em;
  opacity: 1;
}
.nav a[data-code]::before { content: attr(data-code); }
.nav a::after {
  content: '';
  position: absolute;
  left: -4px;
  width: 2px;
  height: 0;
  background: var(--signal);
  transition: height .16s ease;
}
.nav a:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,.035);
  text-decoration: none;
}
.nav a.active {
  color: var(--text-primary);
  border-color: rgba(70,199,176,.13);
  background: linear-gradient(90deg, rgba(70,199,176,.105), rgba(70,199,176,.025));
  box-shadow: none;
}
.nav a.active::before { color: var(--radar); border-right-color: rgba(70,199,176,.26); }
.nav a.active::after { height: 20px; }

.system-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 5px 4px;
  padding: 12px 11px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
}
.system-status > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.system-status strong { font-size: 11px; font-weight: 600; }
.system-status small { color: var(--muted); font-size: 10px; white-space: nowrap; }
.system-status__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--status-warning);
  box-shadow: 0 0 0 4px rgba(239,189,85,.08);
}
.system-status[data-state="live"] .system-status__pulse {
  background: var(--status-good);
  box-shadow: 0 0 0 4px rgba(86,201,154,.08);
  animation: live-pulse 2.4s ease-out infinite;
}
.system-status[data-state="offline"] .system-status__pulse { background: var(--status-critical); }
@keyframes live-pulse { 50% { box-shadow: 0 0 0 8px rgba(86,201,154,0); } }

.nav-logout {
  width: calc(100% - 10px);
  margin: 10px 5px 0;
  border-color: var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.content {
  flex: 1 1 auto;
  width: calc(100% - 258px);
  max-width: none;
  padding: clamp(24px, 3vw, 48px);
}
.page { width: min(100%, 1460px); margin: 0 auto; }
.page > * {
  animation: reveal-up .44s cubic-bezier(.2,.75,.25,1) both;
}
.page > *:nth-child(2) { animation-delay: 35ms; }
.page > *:nth-child(3) { animation-delay: 70ms; }
.page > *:nth-child(4) { animation-delay: 105ms; }
.page > *:nth-child(5) { animation-delay: 140ms; }
.page > *:nth-child(n+6) { animation-delay: 175ms; }
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(12px); filter: blur(2px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.page-heading {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  margin: 0 0 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.page-heading__marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,118,87,.38);
  color: var(--signal);
  background:
    linear-gradient(90deg, transparent 48%, rgba(255,118,87,.11) 50%, transparent 52%),
    linear-gradient(transparent 48%, rgba(255,118,87,.11) 50%, transparent 52%);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -.03em;
}
.page-heading__marker::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  margin: -39px -39px 0 0;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px rgba(255,118,87,.75);
  animation: marker-blink 3.2s ease-in-out infinite;
}
@keyframes marker-blink { 50% { opacity: .28; transform: scale(.72); } }
.page-heading__copy h1 { margin: 0; }
.page-heading__copy p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Контент и иерархия ------------------------------------------------------ */
.section { margin-bottom: 32px; }
.section > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.section > h2::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--signal);
}
.grid-2, .grid-3 { gap: 18px; }

.card, .stat-tile, .upcoming-card {
  background: linear-gradient(145deg, rgba(255,255,255,.018), transparent 45%), var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.card { padding: clamp(16px, 2vw, 22px); }
.card, .stat-tile {
  transition: border-color .2s ease, background .2s ease, transform .2s cubic-bezier(.2,.75,.25,1), box-shadow .2s ease;
}
.card:hover { border-color: rgba(184,204,215,.22); transform: translateY(-2px); box-shadow: 0 20px 46px rgba(1,7,12,.21); }

.tiles {
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.stat-tile {
  position: relative;
  min-height: 116px;
  padding: 18px 18px 16px;
  overflow: hidden;
}
.stat-tile::after {
  content: '';
  position: absolute;
  right: 15px;
  bottom: 0;
  width: 24px;
  height: 2px;
  background: var(--radar);
  opacity: .55;
  transition: width .34s cubic-bezier(.2,.75,.25,1);
}
.stat-tile:hover { border-color: rgba(70,199,176,.3); transform: translateY(-3px); box-shadow: 0 18px 38px rgba(1,7,12,.22); }
.stat-tile:hover::after { width: calc(100% - 30px); transition: width .34s cubic-bezier(.2,.75,.25,1); }
.stat-tile__value {
  color: var(--text-primary);
  font-family: var(--display);
  font-size: 34px;
  font-weight: 580;
  line-height: 1;
  letter-spacing: .01em;
}
.stat-tile__label {
  margin-top: 12px;
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.stat-tile__sub { margin-top: 3px; color: var(--muted); font-size: 11px; }

.chart-card { margin-bottom: 0; overflow: hidden; }

/* Player training ledger: daily Steam deltas + FACEIT attribution. */
.training-dossier {
  overflow: hidden;
  background: linear-gradient(125deg, rgba(118, 169, 240, .08), transparent 40%), var(--surface-1);
}
.training-dossier__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.training-dossier__head p { margin: 0; }
.training-dossier__head h3 { margin: 4px 0 0; font-size: 25px; }
.training-dossier__head > p {
  color: var(--muted);
  font: 650 8px/1.4 var(--mono);
  text-transform: uppercase;
}
.training-dossier__metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--border);
}
.training-dossier__metrics > div { display: grid; gap: 7px; min-width: 0; padding: 17px 14px; }
.training-dossier__metrics > div:first-child { padding-left: 0; }
.training-dossier__metrics > div + div { border-left: 1px solid var(--border); }
.training-dossier__metrics span {
  color: var(--muted);
  font: 650 8px/1.2 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.training-dossier__metrics strong { font: 580 27px/1 var(--display); }
.training-dossier__metrics .is-outside strong { color: var(--radar); }
.training-dossier__metrics .is-mixed strong { color: var(--series-4); }
.training-dossier__metrics .is-unattributed strong { color: var(--muted); }
.training-ledger__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding: 16px 0 9px;
  color: var(--muted);
  font: 650 8px/1 var(--mono);
  text-transform: uppercase;
}
.training-ledger__legend span { display: inline-flex; align-items: center; gap: 6px; }
.training-ledger__legend i { width: 8px; height: 8px; border-radius: 2px; background: var(--grid); }
.training-ledger__legend .is-outside { background: var(--radar); }
.training-ledger__legend .is-mixed { background: var(--series-4); }
.training-ledger__legend .is-unattributed { background: var(--muted); }
.training-ledger__legend .is-faceit {
  border: 2px solid var(--status-warning);
  border-radius: 50%;
  background: transparent;
}
.training-ledger {
  display: grid;
  grid-template-columns: repeat(30, minmax(9px, 1fr));
  gap: 4px;
  height: 190px;
  padding-top: 14px;
  overflow-x: auto;
  border-top: 1px solid var(--border);
}
.training-ledger__day { display: grid; min-width: 9px; grid-template-rows: 16px 1fr 18px; outline: none; }
.training-ledger__day:focus-visible .training-ledger__track { outline: 1px solid var(--text-primary); }
.training-ledger__value { overflow: hidden; color: var(--muted); font: 600 7px/1 var(--mono); text-align: center; }
.training-ledger__track {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 120px;
  border-bottom: 1px solid var(--baseline);
  background: linear-gradient(to top, rgba(255, 255, 255, .025), transparent);
}
.training-ledger__bar {
  display: block;
  width: 100%;
  height: var(--training-height);
  min-height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--grid);
}
.training-ledger__day.is-outside_faceit .training-ledger__bar { background: var(--radar); }
.training-ledger__day.is-mixed .training-ledger__bar { background: var(--series-4); }
.training-ledger__day.is-unattributed .training-ledger__bar { background: var(--muted); }
.training-ledger__faceit {
  position: absolute;
  top: 5px;
  left: 50%;
  display: grid;
  width: 14px;
  height: 14px;
  place-items: center;
  transform: translateX(-50%);
  border: 1px solid var(--status-warning);
  border-radius: 50%;
  color: var(--status-warning);
  background: var(--surface-1);
  font: 700 6px/1 var(--mono);
}
.training-ledger time {
  padding-top: 5px;
  color: var(--muted);
  font: 600 7px/1 var(--mono);
  writing-mode: vertical-rl;
}
.training-ledger__empty {
  display: grid;
  min-height: 130px;
  place-items: center;
  padding: 24px;
  border: 1px dashed var(--baseline);
  color: var(--muted);
  text-align: center;
}
.training-dossier__note {
  padding-top: 13px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.chart-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  min-height: 24px;
  margin-bottom: 14px;
}
.chart-card h3 {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.chart-card__status {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.chart-card__status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.chart-card__status[data-state='ready'] { color: var(--status-good); }
.chart-card__status[data-state='error'] { color: var(--status-critical); }
.chart-card__status[data-state='empty'] { color: var(--muted); }
.chart-box {
  min-height: 210px;
  padding-top: 4px;
  isolation: isolate;
}
/* Один предметный жест: угловая метка прицела обозначает область измерения. */
.chart-box::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  border-right: 1px solid rgba(70,199,176,.32);
  border-bottom: 1px solid rgba(70,199,176,.32);
  pointer-events: none;
}
.chart-box canvas { opacity: 0; }
.chart-card[data-chart-state='ready'] .chart-box canvas {
  opacity: 1;
  animation: chart-arrive .36s ease both;
}
.chart-card[data-chart-state='loading'] .chart-box::before {
  content: '';
  position: absolute;
  inset: 10% 0;
  border-radius: 4px;
  background: linear-gradient(90deg, transparent, rgba(184,204,215,.045), transparent);
  background-size: 220% 100%;
  animation: chart-scan 1.35s linear infinite;
}
.chart-empty { min-height: 96px; margin: 0; padding: 28px 0; color: var(--muted); }
.page--updating [data-live-region] { transition: opacity .16s ease; }
.data-update-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -8px 0 24px;
  padding: 10px 12px 10px 15px;
  border: 1px solid rgba(70,199,176,.22);
  border-left: 2px solid var(--radar);
  border-radius: var(--radius-sm);
  background: rgba(70,199,176,.045);
  color: var(--text-secondary);
  font-size: 12px;
}
.data-update-notice strong { color: var(--text-primary); }
@keyframes chart-scan { to { background-position: -220% 0; } }
@keyframes chart-arrive {
  from { opacity: 0; transform: scale(.992); }
  to { opacity: 1; transform: scale(1); }
}
.chart-note { padding-top: 10px; border-top: 1px solid var(--border); }

/* Фильтры и действия ------------------------------------------------------ */
.filters {
  gap: 12px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(12,20,29,.48);
}
.card > .filters:first-child { margin-top: -4px; }
.filter {
  gap: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .065em;
  text-transform: uppercase;
}
input, select, button { font-family: var(--body); }
input[type="text"], input[type="search"], input[type="number"], input[type="password"], select, .sched-input {
  min-height: 38px;
  padding: 8px 11px;
  color: var(--text-primary);
  border: 1px solid var(--baseline);
  border-radius: var(--radius-sm);
  background: var(--surface-0);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.015);
  text-transform: none;
  letter-spacing: normal;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input::placeholder { color: #667986; }
input:hover, select:hover { border-color: #526a7c; }
input:focus, select:focus {
  outline: none;
  border-color: var(--radar);
  box-shadow: 0 0 0 3px rgba(70,199,176,.09);
}

.btn {
  min-height: 38px;
  padding: 8px 16px;
  border: 1px solid #ff896d;
  border-radius: var(--radius-sm);
  color: #1a1110;
  background: var(--signal);
  box-shadow: none;
  font-size: 13px;
  font-weight: 650;
  position: relative;
  overflow: hidden;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-115%);
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.22), transparent 80%);
  transition: transform .48s ease;
}
.btn:hover::after { transform: translateX(115%); }
.btn:hover { filter: none; color: #120d0c; background: #ff8c72; box-shadow: none; }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  color: var(--text-secondary);
  border-color: var(--baseline);
  background: transparent;
}
.btn--ghost:hover { color: var(--text-primary); border-color: var(--text-secondary); background: rgba(255,255,255,.04); }
.btn--sm { min-height: 30px; padding: 4px 10px; font-size: 11px; }
.btn--danger { color: var(--status-critical); border-color: rgba(239,109,113,.55); }
.detail-close { border-radius: 50%; background: var(--surface-0); }

.subnav { gap: 6px; margin: -14px 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.subnav a {
  padding: 5px 10px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.subnav a.active { color: var(--text-primary); background: var(--surface-3); }

/* Таблицы ----------------------------------------------------------------- */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(12,20,29,.22);
}
.card .table-wrap { border: 0; border-radius: 0; background: transparent; }
.data-table { border-collapse: separate; border-spacing: 0; }
.data-table th, .data-table td { padding: 11px 13px; border-bottom-color: var(--grid); }
.data-table th {
  height: 38px;
  color: #78909e;
  border-bottom-color: var(--baseline);
  background: rgba(12,20,29,.55);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .08em;
}
.card .data-table th { background: rgba(12,20,29,.28); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tr.clickable { transition: background .16s ease, box-shadow .16s ease; }
.data-table tr.clickable:hover { background: rgba(70,199,176,.052); box-shadow: inset 2px 0 0 rgba(70,199,176,.5); }
.data-table tr.clickable:focus-visible { outline-offset: -2px; }
.data-table tr.row-selected { box-shadow: inset 2px 0 0 var(--signal); }
.winner { color: var(--text-primary); font-weight: 650; }
.cell-clip { max-width: 360px; }

/* Состояния --------------------------------------------------------------- */
.badge, .tier-badge, .hltv-link, .bracket-group__tag, .bracket-tag, .bracket-map-pill {
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.badge { padding: 3px 7px; }
.badge--good { color: #78d9b1; background: rgba(86,201,154,.11); }
.badge--warning { color: #f2c96d; background: rgba(239,189,85,.105); }
.badge--critical { color: #f28c8f; background: rgba(239,109,113,.11); }
.badge--neutral { color: #9aadb9; background: rgba(154,173,185,.08); }
.prob-chip { border-radius: 5px; font-family: var(--mono); font-size: 11px; }

.empty-state {
  padding: 56px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 0, rgba(70,199,176,.07), transparent 44%),
    var(--surface-1);
}
.empty-state::before {
  content: 'NO DATA';
  display: block;
  margin-bottom: 14px;
  color: var(--radar);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .16em;
}
.error-block {
  padding: 18px 20px;
  border-color: rgba(239,109,113,.34);
  border-left: 3px solid var(--status-critical);
  background: rgba(239,109,113,.065);
}
.warn-note {
  border-left: 2px solid var(--status-warning);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgba(239,189,85,.055);
}
.spinner { min-height: 180px; justify-content: center; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.spinner::before { width: 22px; height: 22px; border-color: var(--grid); border-top-color: var(--radar); }
.spinner::after {
  content: '';
  width: 56px;
  height: 1px;
  margin-left: 4px;
  background: linear-gradient(90deg, var(--radar), transparent);
  transform-origin: left;
  animation: scan-line 1.25s ease-in-out infinite;
}
@keyframes scan-line { 50% { opacity: .25; transform: scaleX(.25); } }

.toasts { right: 22px; bottom: 22px; gap: 10px; }
.toast {
  min-width: 280px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  box-shadow: var(--shadow-pop);
}

/* Матчи, события и прогнозы ----------------------------------------------- */
.match-row { min-height: 50px; padding: 10px 8px; border-bottom-color: var(--grid); }
.match-row:hover { background: rgba(70,199,176,.04); }
.match-row__date { color: var(--muted); font-family: var(--mono); font-size: 10px; }
.match-row__score { border-radius: 4px; background: var(--surface-3); font-family: var(--mono); }
.match-header__teams {
  margin: 20px 0 12px;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 580;
  letter-spacing: .01em;
}
.match-header__score { color: var(--signal); font-family: var(--mono); font-size: .78em; }
.match-header__meta { margin-bottom: 28px; font-family: var(--mono); font-size: 10px; }
.round-sq { border-radius: 2px; background: var(--surface-3); }
.round-sq--t1 { background: rgba(70,199,176,.2); border-top-color: var(--series-1); }
.round-sq--t2 { background: rgba(239,109,113,.2); border-top-color: var(--series-6); }

.upcoming-day { margin-bottom: 28px; }
.upcoming-day__title {
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
}
.upcoming-day__list { gap: 9px; }
.upcoming-card {
  grid-template-columns: 68px 1fr minmax(180px, 260px);
  min-height: 76px;
  padding: 12px 18px;
}
.upcoming-card[role="link"]:hover { border-color: rgba(70,199,176,.38); background: var(--surface-2); }
.upcoming-card[role="link"] { transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.upcoming-card[role="link"]:hover { transform: translateX(4px); }
.upcoming-card__time { color: var(--radar); font-family: var(--mono); font-size: 15px; }
.upcoming-card__teams { font-weight: 600; }

.highlight-row {
  min-height: 58px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: rgba(12,20,29,.35);
}
.market-card, .combo-leg, .sched-row, .career-node {
  border-radius: var(--radius-sm);
  background: var(--surface-0);
}
.market-card { padding: 11px 13px; }
.market-card__kind { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; }
.combo-card__odds { color: var(--signal); font-family: var(--display); font-size: 24px; }
.win-split__label { font-family: var(--mono); font-size: 10px; }
.win-split__bar { height: 6px; background: var(--surface-0); }
.job-progress-bar { height: 5px; background: var(--surface-0); }
.job-progress-fill { background: linear-gradient(90deg, var(--radar), #7ad6c6); }

.bracket-toolbar { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(12,20,29,.35); }
.bracket-round__label { color: var(--text-secondary); font-family: var(--mono); font-size: 9px; letter-spacing: .07em; }
.bracket-match { border-radius: var(--radius-sm); background: var(--surface-1); }
.bracket-match:hover { border-color: rgba(70,199,176,.45); background: var(--surface-2); }
.bracket-match { transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.bracket-match:hover { transform: translateY(-2px); }
.bracket-match--upcoming { background: rgba(12,20,29,.34); }
.bracket-link--hot { stroke: var(--radar); }
.event-header__meta { margin-bottom: 22px; }

/* Карты, служебные формы и поиск ------------------------------------------ */
.search-select__list {
  top: calc(100% + 6px);
  padding: 6px;
  border-color: var(--baseline);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  box-shadow: var(--shadow-pop);
}
.search-select__item { min-height: 34px; padding: 7px 9px; border-radius: 5px; }
.search-select__item:hover, .search-select__item.active { background: rgba(70,199,176,.08); }
.heatmap-card { display: block; width: fit-content; }
.heatmap-stage { border-radius: var(--radius-sm); background: var(--surface-0); }
.heatmap-stage__radar { filter: brightness(.57) contrast(1.08) saturate(.76) hue-rotate(6deg); }
.heat-legend__bar { background: linear-gradient(90deg, #315b7c, var(--radar), var(--status-warning), var(--signal)); }
.sched-row { padding: 13px; }
.sched-field { font-family: var(--mono); font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.career-node { min-width: 142px; padding: 14px; }
.career-node:hover { border-color: var(--radar); background: var(--surface-2); }
.career-node { transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.career-node:hover { transform: translateY(-3px); }
.team-badge { border-radius: 50%; background: var(--surface-2); }

/* Авторизация ------------------------------------------------------------- */
.auth-shell { overflow-x: hidden; }
.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: clamp(40px, 8vw, 130px);
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  padding: 48px 0;
}
.login-context { position: relative; align-self: center; }
.login-context .eyebrow, .login-card .eyebrow {
  margin: 0 0 12px;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.login-context h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(52px, 7vw, 92px);
  line-height: .88;
  letter-spacing: -.01em;
}
.login-context > p:last-child { max-width: 480px; margin-top: 28px; color: var(--text-secondary); font-size: 17px; }
.login-radar {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 62%;
  width: 420px;
  height: 420px;
  transform: translate(-50%, -50%);
  opacity: .2;
  border: 1px solid var(--radar);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 52px, rgba(70,199,176,.28) 53px 54px);
}
.login-radar::before, .login-radar::after { content: ''; position: absolute; background: rgba(70,199,176,.45); }
.login-radar::before { top: 50%; left: 0; width: 100%; height: 1px; }
.login-radar::after { top: 0; left: 50%; width: 1px; height: 100%; }
.login-card { width: 100%; max-width: none; gap: 24px; padding: clamp(28px, 4vw, 42px); }
.login-brand { display: flex; align-items: center; gap: 12px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.login-card .login-title { margin: 0 0 10px; font-family: var(--display); font-size: 34px; }
.login-card .login-title::after { display: none; }
.login-card p { margin-bottom: 0; }
.login-card .btn { width: 100%; }

/* Адаптив ----------------------------------------------------------------- */
@media (max-width: 1100px) {
  .sidebar { flex-basis: 232px; width: 232px; }
  .content { width: calc(100% - 232px); padding: 28px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  body::before { display: none; }
  .layout { flex-direction: column; }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 80;
    width: 100%;
    height: auto;
    max-height: 100vh;
    padding: 0 14px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    overflow-y: auto;
  }
  .sidebar::after { display: none; }
  .sidebar-head { min-height: 68px; justify-content: space-between; }
  .brand { padding: 10px 4px; }
  .brand-radar { flex-basis: 32px; width: 32px; height: 32px; }
  .brand-copy small { display: none; }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-primary);
  }
  .nav-toggle > span:first-child, .nav-toggle > span:first-child::before, .nav-toggle > span:first-child::after {
    display: block;
    width: 17px;
    height: 1px;
    background: currentColor;
  }
  .nav-toggle > span:first-child { position: relative; }
  .nav-toggle > span:first-child::before, .nav-toggle > span:first-child::after { content: ''; position: absolute; left: 0; }
  .nav-toggle > span:first-child::before { top: -5px; }
  .nav-toggle > span:first-child::after { top: 5px; }
  .period-select, .nav, .system-status, .nav-logout { display: none; }
  .sidebar--open { padding-bottom: 14px; }
  .sidebar--open .period-select, .sidebar--open .nav, .sidebar--open .system-status, .sidebar--open .nav-logout { display: flex; }
  .sidebar--open .nav { flex-direction: column; width: 100%; }
  .sidebar--open .nav-group { display: block; }
  .sidebar--open .period-select { flex-direction: column; align-items: stretch; padding: 10px 12px; }
  .sidebar--open .period-select label { display: block; }
  .sidebar--open .period-select select { width: 100%; }
  .content { width: 100%; padding: 24px 18px 36px; }
  .page-heading { margin-bottom: 24px; }
  .login-page { grid-template-columns: 1fr; width: min(520px, calc(100% - 32px)); }
  .login-context { display: none; }
}

@media (max-width: 640px) {
  .content { padding: 20px 12px 32px; }
  .page-heading { grid-template-columns: 40px minmax(0,1fr); gap: 12px; padding-bottom: 18px; }
  .page-heading__marker { width: 40px; height: 40px; font-size: 9px; }
  .page-heading__copy h1 { font-size: 29px; }
  .page-heading__copy p { font-size: 12px; line-height: 1.45; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 12px; }
  .tiles { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .stat-tile { min-height: 104px; padding: 14px; }
  .stat-tile__value { font-size: 28px; }
  .filters { align-items: stretch; padding: 12px; }
  .filter, .filter--grow { width: 100%; min-width: 0; }
  .filter input, .filter select, .search-select { width: 100%; }
  .data-table th, .data-table td { padding: 9px 10px; }
  .upcoming-card { grid-template-columns: 54px 1fr; padding: 11px 12px; }
  .upcoming-card__prob { grid-column: 1 / -1; }
  .match-header__teams { gap: 9px; }
  .toasts { right: 10px; bottom: 10px; left: 10px; max-width: none; }
  .toast { min-width: 0; }
  .login-card { padding: 26px 22px; }
  .training-dossier__head { align-items: start; flex-direction: column; }
  .training-dossier__metrics { grid-template-columns: 1fr 1fr; }
  .training-dossier__metrics > div { padding: 14px 10px; }
  .training-dossier__metrics > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .training-dossier__metrics > div:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .training-ledger { grid-template-columns: repeat(30, minmax(12px, 1fr)); }
}

@media (hover: none) {
  .card:hover, .stat-tile:hover, .upcoming-card[role="link"]:hover,
  .bracket-match:hover, .career-node:hover { transform: none; }
  .btn:hover::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Просмотр раундов ========================================================= */
.round-library-intro {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(320px, 1.15fr);
  gap: 18px 64px;
  align-items: end;
  margin-bottom: 28px;
  padding: 30px;
  border: 1px solid var(--border);
  background:
    linear-gradient(120deg, rgba(70,199,176,.075), transparent 42%),
    var(--surface-0);
}
.round-library-intro .landing-kicker { grid-column: 1 / -1; margin: 0; }
.round-library-intro h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); line-height: .98; }
.round-library-intro > p:last-child { margin: 0; color: var(--text-secondary); font-size: 15px; }
.round-replay-deck {
  display: grid;
  grid-template-columns: 150px minmax(250px, .8fr) minmax(340px, 1.2fr);
  gap: 26px;
  align-items: stretch;
  margin: 0 0 34px;
  padding: 25px;
  border: 1px solid rgba(70,199,176,.3);
  background:
    linear-gradient(125deg, rgba(70,199,176,.075), transparent 44%),
    var(--surface-0);
}
.round-replay-deck__signal {
  position: relative;
  display: flex;
  min-height: 204px;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  overflow: hidden;
  border: 1px solid rgba(70,199,176,.25);
  background: #071017;
  color: var(--radar);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
}
.round-replay-deck__signal::after {
  content: '';
  position: absolute;
  inset: 41px 15px 40px;
  background: repeating-linear-gradient(to bottom, transparent 0 8px, rgba(70,199,176,.65) 8px 9px, transparent 9px 12px);
  clip-path: polygon(0 8%, 16% 31%, 31% 22%, 49% 67%, 66% 45%, 82% 79%, 100% 57%, 100% 66%, 82% 88%, 66% 55%, 49% 77%, 31% 32%, 16% 41%, 0 18%);
  opacity: .72;
}
.round-replay-deck__signal span:first-child { font-family: var(--display); font-size: 42px; line-height: .8; }
.round-replay-deck__signal span:last-child { align-self: flex-end; }
.round-replay-deck__signal i { position: absolute; inset: 50% 13px auto; height: 1px; background: rgba(255,118,87,.65); }
.round-replay-deck > header { display: flex; min-width: 0; flex-direction: column; justify-content: center; }
.round-replay-deck > header .landing-kicker { margin-bottom: 10px; }
.round-replay-deck > header h2 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); line-height: .95; }
.round-replay-deck > header > p:last-child { margin: 16px 0 0; color: var(--text-secondary); font-size: 12px; }
.round-replay-deck__controls { display: flex; min-width: 0; flex-direction: column; justify-content: center; }
.round-replay-deck__controls .round-intake-field { margin-bottom: 9px; }
.round-replay-deck__controls > .btn { width: 100%; min-height: 44px; }
.round-deck-selection {
  display: flex;
  min-height: 64px;
  margin: 2px 0 11px;
  padding: 10px 12px;
  flex-direction: column;
  justify-content: center;
  border-left: 2px solid var(--radar);
  background: rgba(70,199,176,.045);
}
.round-deck-selection > strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.round-deck-selection > span { overflow: hidden; color: var(--muted); font-family: var(--mono); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.round-deck-selection__metrics { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; overflow: visible !important; white-space: normal !important; }
.round-deck-selection__metrics b { padding: 3px 5px; border: 1px solid var(--grid); color: var(--text-secondary); font-weight: 500; }
.round-intake {
  margin: 0 0 34px;
  border: 1px solid var(--border);
  background: var(--surface-0);
}
.round-intake__head {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(300px, 1.2fr);
  gap: 28px 70px;
  align-items: end;
  padding: 24px 26px;
  border-bottom: 1px solid var(--border);
}
.round-intake__head > div { display: flex; flex-direction: column; }
.round-intake__head .landing-kicker { margin: 0 0 7px; }
.round-intake__head h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1; }
.round-intake__head > p { max-width: 650px; margin: 0; color: var(--text-secondary); font-size: 13px; }
.round-intake-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.round-intake-lane {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 25px 26px 27px;
  flex-direction: column;
  border-right: 1px solid var(--border);
}
.round-intake-lane:last-child { border-right: 0; }
.round-intake-lane::after {
  content: '';
  position: absolute;
  inset: auto 26px 0;
  height: 2px;
  background: var(--radar);
  opacity: .45;
}
.round-intake-lane--upload::after { background: var(--signal); }
.round-intake-lane__code { color: var(--radar); font-family: var(--mono); font-size: 8px; letter-spacing: .09em; }
.round-intake-lane--upload .round-intake-lane__code { color: var(--signal); }
.round-intake-lane h3 { margin: 7px 0 5px; font-family: var(--display); font-size: 22px; font-weight: 600; }
.round-intake-lane > p { min-height: 38px; margin: 0 0 17px; color: var(--muted); font-size: 11px; }
.round-intake-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 10px; }
.round-intake-field > span { color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
.round-intake-field input, .round-intake-field select { width: 100%; min-width: 0; }
.round-selected-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  min-height: 58px;
  margin: 3px 0 12px;
  padding: 10px 12px;
  border-left: 2px solid var(--radar);
  background: rgba(70,199,176,.045);
}
.round-selected-match > span { overflow: hidden; font-size: 12px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.round-selected-match > small { grid-column: 1 / -1; color: var(--muted); font-family: var(--mono); font-size: 8px; }
.round-selected-match > a { grid-column: 2; grid-row: 1; color: var(--radar); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.round-intake-lane > .btn { width: 100%; min-height: 44px; margin-top: auto; }
.round-intake-status {
  display: flex;
  min-height: 27px;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}
.round-intake-status > a { margin-left: auto; color: var(--radar); text-transform: uppercase; }
.round-intake-status > small { flex-basis: 100%; overflow-wrap: anywhere; color: var(--status-critical); }
.round-intake-status.is-error { color: var(--status-critical); }
.round-intake-status__dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--muted); }
.round-intake-status__dot.is-running { background: var(--signal); box-shadow: 0 0 0 4px rgba(255,118,87,.09); animation: round-job-pulse 1.2s ease-in-out infinite; }
.round-intake-status__dot.is-done { background: var(--radar); box-shadow: 0 0 0 4px rgba(70,199,176,.09); }
.round-intake-status__dot.is-failed { background: var(--status-critical); }
@keyframes round-job-pulse { 50% { opacity: .42; transform: scale(.72); } }
.demo-dropzone {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 126px;
  margin-bottom: 12px;
  padding: 18px;
  border: 1px dashed rgba(255,118,87,.42);
  background:
    linear-gradient(rgba(255,118,87,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,118,87,.035) 1px, transparent 1px),
    rgba(255,118,87,.025);
  background-size: 22px 22px;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.demo-dropzone:hover, .demo-dropzone:focus-visible, .demo-dropzone.is-dragging {
  border-color: var(--signal);
  outline: 0;
  background-color: rgba(255,118,87,.07);
}
.demo-dropzone.is-dragging { transform: translateY(-2px); }
.demo-dropzone.has-file { border-style: solid; border-color: rgba(70,199,176,.52); background-color: rgba(70,199,176,.035); }
.demo-dropzone[aria-disabled='true'] { pointer-events: none; opacity: .62; }
.demo-dropzone__reticle {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  color: var(--signal);
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  box-shadow: inset 0 0 0 7px var(--surface-0), inset 0 0 0 8px currentColor;
}
.demo-dropzone.has-file .demo-dropzone__reticle { color: var(--radar); }
.demo-dropzone__copy { display: flex; min-width: 0; flex-direction: column; }
.demo-dropzone__copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.demo-dropzone__copy small { margin-top: 4px; color: var(--muted); font-family: var(--mono); font-size: 8px; }
.round-attach-toggle { display: flex; min-height: 38px; gap: 9px; align-items: center; color: var(--text-secondary); font-size: 11px; cursor: pointer; }
.round-attach-toggle input { width: 16px; height: 16px; accent-color: var(--radar); }
.round-attach-toggle:has(input:disabled) { cursor: default; opacity: .48; }
.round-intake-map { margin-bottom: 12px; }
.demo-upload-meter { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: center; margin-top: 10px; }
.demo-upload-meter[hidden] { display: none; }
.demo-upload-meter > span { height: 4px; overflow: hidden; background: var(--grid); }
.demo-upload-meter i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--signal), var(--radar)); transition: width .12s linear; }
.demo-upload-meter b { min-width: 30px; color: var(--muted); font-family: var(--mono); font-size: 8px; text-align: right; }
.round-ready { margin-top: 4px; }
.round-ready > header { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(300px, 1.2fr); gap: 24px 60px; align-items: end; margin-bottom: 18px; padding-bottom: 17px; border-bottom: 1px solid var(--border); }
.round-ready > header > div { display: flex; flex-direction: column; }
.round-ready > header .landing-kicker { margin-bottom: 7px; }
.round-ready > header h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); line-height: 1; }
.round-ready > header > p { margin: 0; color: var(--text-secondary); font-size: 12px; }
.round-ready-state:empty { display: none; }
.round-library { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.round-library-card {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-1);
  color: var(--text-primary);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.round-library-card__open {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 18px;
  min-height: 176px;
  padding: 22px;
  color: var(--text-primary);
}
.round-library-card::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--radar), var(--signal), transparent 82%);
  transform: scaleX(.25);
  transform-origin: left;
  transition: transform .22s ease;
}
.round-library-card:hover { transform: translateY(-3px); border-color: rgba(70,199,176,.32); background: var(--surface-2); text-decoration: none; }
.round-library-card:hover::after { transform: scaleX(1); }
.round-library-card__open:hover { text-decoration: none; }
.round-library-card__meta { grid-column: 1 / -1; color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.round-library-card__open > strong { align-self: center; font-family: var(--display); font-size: 25px; font-weight: 600; }
.round-library-card__score { align-self: center; color: var(--signal); font-family: var(--mono); font-size: 21px; }
.round-library-card__maps { grid-column: 1 / -1; display: grid; gap: 6px; }
.round-library-card__map-row { display: flex; gap: 7px; align-items: center; }
.round-library-card__map-row > a { display: flex; min-width: 0; flex: 1; flex-wrap: wrap; gap: 6px; color: inherit; }
.round-library-card__map-row > a:hover { text-decoration: none; }
.round-library-card__maps i { padding: 4px 7px; border: 1px solid var(--grid); border-radius: 4px; color: var(--text-secondary); font-family: var(--mono); font-size: 9px; font-style: normal; }
.round-library-card__maps i.is-full { color: var(--radar); border-color: rgba(70,199,176,.26); background: rgba(70,199,176,.035); }
.round-library-card__open > b { grid-column: 1 / -1; align-self: end; color: var(--radar); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.round-library-card__map-delete {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid rgba(255,118,87,.28);
  border-radius: 4px;
  background: rgba(7,16,23,.88);
  color: #ff9279;
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
}
.round-library-card__map-delete:hover { border-color: rgba(255,118,87,.68); background: rgba(255,118,87,.1); }
.round-library-card__map-delete:disabled { opacity: .55; cursor: wait; }
.round-load-more { width: 100%; margin-top: -4px; }

.round-explorer-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--surface-0);
}
.round-explorer-head__back { color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.round-explorer-head > div { display: flex; min-width: 0; flex-direction: column; }
.round-explorer__title { overflow: hidden; font-family: var(--display); font-size: 22px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.round-explorer__subtitle { color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.round-map-picker { display: flex; align-items: center; gap: 9px; color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.round-map-picker select { min-width: 170px; }
.round-explorer-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: 16px; align-items: start; }
.round-explorer-stage-card, .round-event-panel { min-width: 0; }
.round-explorer-stage-card { padding: 18px; background: linear-gradient(150deg, rgba(70,199,176,.035), transparent 48%), var(--surface-1); }
.round-explorer-scoreline { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.round-explorer__map-score { overflow: hidden; font-family: var(--display); font-size: 19px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.round-explorer-live { display: flex; flex: 0 0 auto; gap: 8px; align-items: center; }
.round-explorer__clock { color: var(--text-secondary); font-family: var(--mono); font-size: 9px; font-weight: 500; white-space: nowrap; }
.round-explorer__alive { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; }
.round-explorer__alive i { font-style: normal; }
.round-explorer__alive em { color: var(--muted); font-style: normal; }
.round-explorer__alive .is-ct { color: var(--radar); }
.round-explorer__alive .is-t { color: var(--signal); }
.round-radar-stage {
  position: relative;
  width: min(100%, 680px);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(70,199,176,.28);
  border-radius: 6px;
  background: #071017;
  box-shadow: inset 0 0 58px rgba(1,7,12,.72);
}
.round-radar-stage::before {
  content: '';
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(70,199,176,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70,199,176,.09) 1px, transparent 1px);
  background-size: 20% 20%;
  opacity: .28;
}
.round-radar-stage.has-no-radar::after { content: 'Радар карты недоступен · события остаются в ленте'; position: absolute; inset: 50% 16px auto; z-index: 5; color: var(--muted); font-family: var(--mono); font-size: 9px; text-align: center; transform: translateY(-50%); }
.round-radar-stage__map, .round-radar-stage__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.round-radar-stage__map { z-index: 0; object-fit: contain; filter: brightness(.88) contrast(1.15) saturate(.76); }
.round-radar-stage__canvas { z-index: 2; }
.round-radar-stage__scan { position: absolute; z-index: 4; inset: 0; pointer-events: none; box-shadow: inset 0 0 52px 9px rgba(3,10,15,.58); }
.round-kill-feed {
  position: absolute;
  z-index: 6;
  inset: 13px 13px auto auto;
  display: flex;
  width: min(72%, 350px);
  margin: 0;
  padding: 0;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
  list-style: none;
}
.round-kill-feed:empty { display: none; }
.round-kill-feed__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 27px;
  padding: 4px 7px;
  border: 1px solid rgba(184,197,206,.2);
  border-left-color: var(--signal);
  background: rgba(4,11,16,.92);
  box-shadow: 0 4px 14px rgba(0,0,0,.24);
  font-family: var(--mono);
  animation: round-kill-in .16s ease-out both;
}
.round-kill-feed__player { overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.round-kill-feed__player:first-child { text-align: right; }
.round-kill-feed__player.is-ct { color: var(--radar); }
.round-kill-feed__player.is-t { color: var(--signal); }
.round-kill-feed__player.is-neutral { color: var(--text-secondary); }
.round-kill-feed__weapon { display: inline-flex; gap: 3px; align-items: center; color: var(--text-secondary); font-size: 7px; white-space: nowrap; }
.round-kill-feed__weapon i { padding: 1px 2px; color: var(--signal); border: 1px solid rgba(255,118,87,.35); font-size: 5px; font-style: normal; }
@keyframes round-kill-in { from { opacity: 0; transform: translateX(8px); } }
.round-progress { display: block; width: 100%; height: 18px; margin: 12px 0 8px; accent-color: var(--radar); cursor: pointer; }
.round-playback-controls { display: grid; grid-template-columns: 1fr minmax(150px, auto) auto 1fr; gap: 8px; align-items: stretch; }
.round-playback-controls .btn:first-child { justify-self: start; }
.round-playback-controls .btn:nth-child(2) { justify-self: center; }
.round-playback-controls .btn:last-child { justify-self: end; }
.round-playback-speed { display: flex; gap: 5px; align-items: center; color: var(--muted); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.round-playback-speed select { min-width: 118px; height: 100%; padding-block: 0; }
.round-grenade-legend { display: flex; gap: 7px 12px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; color: var(--muted); font-family: var(--mono); font-size: 8px; }
.round-grenade-legend > span:not(.round-grenade-legend__title) { display: inline-flex; gap: 5px; align-items: center; }
.round-grenade-legend__title { margin-right: 2px; color: var(--text-secondary); letter-spacing: .08em; }
.round-grenade-legend i { display: inline-grid; place-items: center; width: 18px; height: 18px; border: 1px solid currentColor; border-radius: 3px; font-size: 7px; font-style: normal; }
.round-grenade-legend .round-grenade-legend__route { padding-right: 11px; border-right: 1px solid var(--grid); color: var(--radar); }
.round-grenade-legend__route i { border-radius: 50%; background: rgba(70,199,176,.08); box-shadow: inset 0 0 0 2px rgba(4,11,16,.55); }
.round-grenade-legend .is-he { color: #ff9d4d; }
.round-grenade-legend .is-smoke { color: #91a7b8; }
.round-grenade-legend .is-fire { color: #ff654d; }
.round-grenade-legend .is-flash { color: #f6f1d3; }
.round-grenade-legend .is-decoy { color: #b892ff; }
.round-rail { display: flex; gap: 5px; margin-top: 14px; padding: 3px 0 8px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.round-rail__item {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--grid);
  border-radius: 4px;
  background: var(--surface-0);
  color: var(--muted);
  cursor: pointer;
}
.round-rail__item::before { content: ''; position: absolute; inset: -1px auto -1px -1px; width: 2px; background: var(--baseline); }
.round-rail__item.is-team1::before { background: var(--radar); }
.round-rail__item.is-team2::before { background: var(--status-critical); }
.round-rail__item small, .round-rail__item b { display: block; font-family: var(--mono); font-size: 8px; }
.round-rail__item b { margin-top: 2px; color: var(--text-secondary); }
.round-rail__item[aria-pressed='true'] { border-color: rgba(70,199,176,.55); background: rgba(70,199,176,.09); color: var(--radar); box-shadow: 0 0 0 1px rgba(70,199,176,.11); }
.round-event-panel { position: sticky; top: 18px; padding: 18px; }
.round-event-panel__head { display: flex; flex-direction: column; min-height: 70px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.round-event-panel__head small { color: var(--muted); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.round-event-panel__head strong { margin-top: 7px; font-family: var(--display); font-size: 19px; }
.round-event-panel__head span { color: var(--muted); font-family: var(--mono); font-size: 8px; }
.round-outcome { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 12px 0; background: var(--grid); }
.round-outcome > span { display: flex; flex-direction: column; padding: 9px; background: var(--surface-0); color: var(--muted); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.round-outcome strong { margin-top: 3px; color: var(--text-secondary); font-size: 9px; }
.round-roster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0 0 12px; }
.round-roster__side { min-width: 0; border: 1px solid var(--grid); background: var(--surface-0); }
.round-roster__side > header { display: flex; justify-content: space-between; padding: 6px 7px; border-bottom: 1px solid var(--grid); font-family: var(--mono); font-size: 7px; }
.round-roster__side > header span { color: var(--muted); }
.round-roster__side.is-ct > header b { color: var(--radar); }
.round-roster__side.is-t > header b { color: var(--signal); }
.round-roster__player { position: relative; display: grid; grid-template-columns: 17px minmax(0, 1fr) auto; gap: 5px; align-items: center; min-height: 29px; padding: 5px 6px 7px; overflow: hidden; }
.round-roster__slot { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; color: var(--ink); font-family: var(--mono); font-size: 6px; }
.round-roster__side.is-ct .round-roster__slot { background: var(--radar); }
.round-roster__side.is-t .round-roster__slot { background: var(--signal); }
.round-roster__name { overflow: hidden; font-size: 9px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.round-roster__hp { color: var(--muted); font-family: var(--mono); font-size: 6px; white-space: nowrap; }
.round-roster__meter { position: absolute; inset: auto 6px 3px; height: 1px; background: var(--grid); }
.round-roster__bar { display: block; width: 100%; height: 100%; background: var(--radar); transition: width .12s linear; }
.round-roster__side.is-t .round-roster__bar { background: var(--signal); }
.round-roster__player.is-dead, .round-roster__player.is-waiting { opacity: .37; }
.round-roster__player.is-dead .round-roster__name { text-decoration: line-through; }
.round-roster__player.is-flashed { background: rgba(246,241,211,.12); box-shadow: inset 2px 0 #f6f1d3; }
.round-roster__player.is-burning { background: rgba(255,101,77,.1); box-shadow: inset 2px 0 #ff654d; }
.round-roster__player.is-he-hit { background: rgba(255,157,77,.1); box-shadow: inset 2px 0 #ff9d4d; }
.round-event-list { display: flex; max-height: min(540px, 58vh); flex-direction: column; gap: 4px; margin: 0; padding: 0 4px 0 0; overflow-y: auto; list-style: none; }
.round-event { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 9px; align-items: center; min-height: 46px; padding: 7px 8px; border: 1px solid transparent; opacity: .34; transition: opacity .16s ease, border-color .16s ease, background .16s ease; }
.round-event.is-seen { opacity: .82; }
.round-event.is-current { border-color: rgba(70,199,176,.25); background: rgba(70,199,176,.045); opacity: 1; }
.round-event__type { display: inline-grid; place-items: center; min-height: 27px; border: 1px solid var(--grid); border-radius: 3px; font-family: var(--mono); font-size: 7px; font-weight: 700; }
.round-event.is-ct .round-event__type { color: var(--radar); border-color: rgba(70,199,176,.3); }
.round-event.is-t .round-event__type { color: var(--signal); border-color: rgba(255,118,87,.3); }
.round-event__copy { display: flex; min-width: 0; flex-direction: column; }
.round-event__copy strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.round-event__copy small { color: var(--muted); font-family: var(--mono); font-size: 8px; }
.round-event-panel .chart-note { margin: 14px 0 0; }

/* Публичный лендинг ======================================================= */
.landing-shell { overflow-x: hidden; }
.landing-shell::before { opacity: .24; mask-image: linear-gradient(#000, transparent 78%); }
.landing-nav {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1320px, calc(100% - 48px));
  min-height: 94px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.landing-nav .brand { justify-self: start; padding-left: 0; }
.landing-nav nav { display: flex; gap: 28px; }
.landing-nav nav a { color: var(--muted); font-size: 12px; }
.landing-nav nav a:hover { color: var(--text-primary); text-decoration: none; }
.landing-login { justify-self: end; min-height: 34px; padding: 6px 13px; }
.landing-shell main { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(400px, .9fr);
  gap: clamp(50px, 8vw, 130px);
  align-items: center;
  min-height: 680px;
  padding: 72px 0 76px;
}
.landing-kicker {
  margin: 0 0 17px;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.landing-kicker > span {
  display: inline-block;
  width: 24px;
  height: 1px;
  margin-right: 8px;
  background: var(--signal);
  vertical-align: 3px;
}
.landing-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(62px, 7.2vw, 108px);
  font-weight: 620;
  line-height: .85;
  letter-spacing: -.015em;
}
.landing-hero h1 em { color: var(--radar); font-style: normal; }
.landing-lead { max-width: 650px; margin: 30px 0 0; color: var(--text-secondary); font-size: 18px; line-height: 1.6; }
.landing-actions { display: flex; align-items: center; gap: 24px; margin-top: 30px; }
.landing-actions > a:not(.btn) { color: var(--text-secondary); font-size: 13px; }
.landing-actions > a:not(.btn):hover { color: var(--radar); text-decoration: none; }
.landing-actions > a span { display: inline-block; margin-left: 5px; transition: transform .18s ease; }
.landing-actions > a:hover span { transform: translateY(3px); }
.landing-hero__stats { display: flex; gap: 0; margin: 42px 0 0; }
.landing-hero__stats div { min-width: 120px; padding: 0 24px; border-left: 1px solid var(--border); }
.landing-hero__stats div:first-child { padding-left: 0; border-left: 0; }
.landing-hero__stats dt { color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.landing-hero__stats dd { margin: 5px 0 0; font-family: var(--display); font-size: 29px; font-weight: 580; }

.landing-radar-panel {
  position: relative;
  min-height: 480px;
  padding: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(70,199,176,.055), transparent 45%), rgba(12,20,29,.76);
  box-shadow: 0 40px 90px rgba(1,7,12,.26);
}
.landing-radar-panel::before, .landing-radar-panel::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--signal);
  opacity: .68;
}
.landing-radar-panel::before { top: -1px; left: -1px; border-top: 2px solid var(--signal); border-left: 2px solid var(--signal); }
.landing-radar-panel::after { right: -1px; bottom: -1px; border-right: 2px solid var(--signal); border-bottom: 2px solid var(--signal); }
.landing-replay__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.landing-replay__top span { display: inline-flex; align-items: center; gap: 6px; }
.landing-replay__top span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-good);
  box-shadow: 0 0 8px rgba(86,201,154,.6);
}
.landing-replay__top strong { color: var(--text-secondary); font-size: 9px; }
.landing-radar-grid {
  position: relative;
  width: min(100%, 370px);
  aspect-ratio: 1;
  margin: 14px auto 18px;
  overflow: hidden;
  border: 1px solid rgba(70,199,176,.32);
  border-radius: 5px;
  background: #071017;
  box-shadow: inset 0 0 42px rgba(1,7,12,.62);
}
.landing-radar-grid::before, .landing-radar-grid::after {
  content: '';
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}
.landing-radar-grid::before {
  opacity: .22;
  background-image:
    linear-gradient(rgba(70,199,176,.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(70,199,176,.11) 1px, transparent 1px);
  background-size: 25% 25%;
}
.landing-radar-grid::after { box-shadow: inset 0 0 42px 8px rgba(3,10,15,.52); }
.landing-radar-grid > img,
.landing-radar-grid > canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.landing-radar-grid > img {
  z-index: 0;
  object-fit: contain;
  opacity: .96;
  filter: brightness(.92) contrast(1.12) saturate(.72) hue-rotate(8deg);
}
.landing-radar-grid > canvas { z-index: 2; touch-action: pan-y; }
.landing-radar-time {
  position: absolute;
  z-index: 5;
  top: 10px;
  right: 11px;
  min-width: 46px;
  padding: 3px 5px;
  border: 1px solid rgba(184,204,215,.18);
  border-radius: 3px;
  background: rgba(7,16,23,.78);
  color: var(--text-primary);
  font-family: var(--mono);
  font-size: 10px;
  text-align: center;
}
.landing-death-feed {
  position: absolute;
  z-index: 5;
  right: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 7px;
  border-left: 2px solid var(--status-warning);
  background: rgba(7,16,23,.82);
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .02em;
  opacity: .68;
}
.landing-death-feed.is-kill { animation: landing-kill-feed .42s ease both; }
@keyframes landing-kill-feed { from { opacity: 0; transform: translateX(8px); } }
.landing-signal { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; padding: 14px 0 12px; border-top: 1px solid var(--border); }
.landing-signal span { display: flex; flex-direction: column; }
.landing-signal small { color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.landing-signal strong { margin-top: 3px; font-size: 13px; }
.landing-signal > b { align-self: center; color: var(--radar); font-family: var(--mono); font-size: 17px; }
.landing-replay-controls { display: flex; align-items: center; gap: 14px; min-height: 31px; }
.landing-round-tabs { display: flex; gap: 4px; }
.landing-round-tabs button,
.landing-replay-toggle {
  min-height: 27px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface-0);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: .04em;
  cursor: pointer;
}
.landing-round-tabs button { min-width: 36px; padding: 4px 7px; }
.landing-round-tabs button[aria-pressed='true'] { border-color: rgba(70,199,176,.46); color: var(--radar); background: rgba(70,199,176,.07); }
.landing-round-tabs button:focus-visible,
.landing-replay-toggle:focus-visible { outline: 2px solid var(--radar); outline-offset: 2px; }
.landing-replay-legend { display: flex; align-items: center; gap: 10px; margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 8px; }
.landing-replay-legend span { display: inline-flex; align-items: center; gap: 4px; }
.landing-replay-legend span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.landing-replay-legend .is-ct { color: var(--radar); }
.landing-replay-legend .is-t { color: var(--signal); }
.landing-replay-legend .is-death { color: var(--status-warning); }
.landing-replay-legend .is-death::before { border-radius: 0; clip-path: polygon(35% 0,50% 35%,65% 0,100% 35%,65% 50%,100% 65%,65% 100%,50% 65%,35% 100%,0 65%,35% 50%,0 35%); }
.landing-replay-toggle { padding: 4px 9px; }
.landing-replay-toggle[aria-pressed='true'] { color: var(--text-secondary); }
.landing-round-progress { height: 2px; margin-top: 12px; overflow: hidden; background: var(--grid); }
.landing-round-progress i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--radar), var(--signal)); }

.landing-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.landing-trust span { padding: 18px 20px; border-left: 1px solid var(--border); color: var(--muted); font-family: var(--mono); font-size: 9px; text-align: center; letter-spacing: .045em; text-transform: uppercase; }
.landing-trust span:first-child { border-left: 0; }
.landing-trust span::before { content: '◆'; margin-right: 8px; color: var(--radar); font-size: 7px; }

.landing-section { padding: 120px 0 0; scroll-margin-top: 30px; }
.landing-section__head { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(340px, 1.1fr); column-gap: 80px; align-items: end; margin-bottom: 40px; }
.landing-section__head .landing-kicker { grid-column: 1 / -1; }
.landing-section__head h2 { max-width: 650px; margin: 0; font-size: clamp(38px, 4.2vw, 62px); line-height: .98; }
.landing-section__head > p:last-child { max-width: 570px; margin: 0; color: var(--text-secondary); font-size: 15px; }

.landing-chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.landing-chart-card {
  min-height: 360px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.018), transparent 44%), var(--surface-1);
  box-shadow: var(--shadow-card);
  transition: transform .2s ease, border-color .2s ease;
}
.landing-chart-card:hover { transform: translateY(-3px); border-color: rgba(70,199,176,.26); }
.landing-chart-card--wide { grid-column: 1 / -1; min-height: 340px; }
.landing-chart-card > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.landing-chart-card small { color: var(--muted); font-family: var(--mono); font-size: 8px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
.landing-chart-card h3 { margin: 5px 0 0; font-family: var(--display); font-size: 22px; font-weight: 580; }
.landing-live { color: var(--status-good); font-family: var(--mono); font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.landing-live i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--status-good); box-shadow: 0 0 8px rgba(86,201,154,.65); }
.landing-line-chart { margin-top: 26px; }
.landing-line-chart svg { display: block; width: 100%; height: 205px; overflow: visible; }
.landing-line-chart polyline { stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw-line 1.5s .35s ease forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.landing-chart-labels { display: flex; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-size: 8px; }
.landing-bars { display: flex; flex-direction: column; gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.landing-bars li { display: grid; grid-template-columns: 96px minmax(0,1fr) 48px; gap: 12px; align-items: center; }
.landing-bars li > span { overflow: hidden; color: var(--text-secondary); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.landing-bars li > i { position: relative; display: block; height: 6px; background: var(--surface-0); }
.landing-bars li > i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--bar); background: linear-gradient(90deg, var(--radar), #67d1be); animation: landing-bar 1s cubic-bezier(.2,.75,.25,1) both; }
.landing-bars--coral li > i::after { background: linear-gradient(90deg, var(--signal), #efbd55); }
.landing-bars li > b { color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 500; text-align: right; }
@keyframes landing-bar { from { width: 0; } }
.landing-chart-card--quality { display: grid; grid-template-columns: 190px 1fr; gap: 28px; align-items: center; min-height: 250px; }
.landing-quality {
  --angle: calc(var(--quality) * 3.6deg);
  display: grid;
  place-items: center;
  width: 165px;
  height: 165px;
  border-radius: 50%;
  background: conic-gradient(var(--radar) var(--angle), var(--grid) 0);
}
.landing-quality::before { content: ''; grid-area: 1/1; width: 132px; height: 132px; border-radius: 50%; background: var(--surface-1); }
.landing-quality span { z-index: 1; grid-area: 1/1; display: flex; flex-direction: column; text-align: center; }
.landing-quality strong { font-family: var(--display); font-size: 36px; }
.landing-quality small { margin-top: 3px; }
.landing-chart-card--quality p { color: var(--text-secondary); }
.landing-chart-empty { color: var(--muted); font-size: 12px; }

.landing-section--metrics { padding-top: 140px; }
.landing-metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.landing-metric { min-height: 275px; padding: 30px 26px; border-left: 1px solid var(--border); transition: background .2s ease; }
.landing-metric:first-child { border-left: 0; }
.landing-metric:hover { background: rgba(70,199,176,.035); }
.landing-metric > span { display: inline-grid; place-items: center; width: 58px; height: 34px; color: var(--radar); border: 1px solid rgba(70,199,176,.3); font-family: var(--mono); font-size: 10px; font-weight: 700; }
.landing-metric h3 { margin: 60px 0 12px; font-family: var(--display); font-size: 22px; font-weight: 580; }
.landing-metric p { margin: 0; color: var(--muted); font-size: 13px; }

/* Demo-симулятор кейса ---------------------------------------------------- */
.landing-case-section { scroll-margin-top: 30px; }
.case-simulator {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 260px at 12% 0, rgba(167,139,232,.08), transparent 70%),
    var(--surface-0);
  box-shadow: 0 30px 80px rgba(1,7,12,.24);
}
.case-simulator__intro {
  display: grid;
  grid-template-columns: 250px minmax(0,1fr);
  gap: 36px;
  align-items: center;
  min-height: 240px;
  padding: 32px 38px;
  border-bottom: 1px solid var(--border);
}
.case-simulator__copy > small {
  color: var(--radar);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: .12em;
}
.case-simulator__copy h3 { margin: 6px 0 8px; font-family: var(--display); font-size: 34px; font-weight: 590; }
.case-simulator__copy > p { max-width: 590px; margin: 0; color: var(--text-secondary); }
.case-box {
  position: relative;
  width: 190px;
  height: 150px;
  margin: 24px auto 0;
  perspective: 700px;
  filter: drop-shadow(0 22px 22px rgba(0,0,0,.35));
}
.case-box__body {
  position: absolute;
  inset: 30px 0 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #587083;
  border-radius: 5px 5px 10px 10px;
  background:
    repeating-linear-gradient(135deg, transparent 0 13px, rgba(255,255,255,.025) 14px 15px),
    linear-gradient(145deg, #293d4e, #14232f);
  transform: rotateX(4deg) rotateY(-8deg);
}
.case-box__body::before, .case-box__body::after {
  content: '';
  position: absolute;
  background: rgba(70,199,176,.16);
}
.case-box__body::before { inset: 50% 0 auto; height: 1px; }
.case-box__body::after { inset: 0 auto 0 50%; width: 1px; }
.case-box__body i { position: absolute; width: 110px; height: 110px; border: 1px solid rgba(70,199,176,.18); border-radius: 50%; }
.case-box__body b { z-index: 1; color: var(--radar); font-family: var(--display); font-size: 30px; letter-spacing: .05em; text-shadow: 0 0 22px rgba(70,199,176,.35); }
.case-box__lid {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: -5px;
  width: 200px;
  height: 38px;
  border: 1px solid #6b8291;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(#344c5d, #1b2b37);
  transform: rotateX(12deg) rotateY(-8deg);
  transform-origin: 18% 100%;
  transition: transform .35s ease;
}
.case-box__lid::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 38px; height: 15px; transform: translateX(-50%); border: 1px solid #718797; border-radius: 3px; background: #15242f; }
.case-simulator:hover .case-box__lid { transform: rotateX(6deg) rotateY(-8deg) translateY(-4px); }
.case-simulator[data-case-state="rolling"] .case-box { animation: case-rumble .28s ease-in-out infinite alternate; }
.case-simulator[data-case-state="rolling"] .case-box__lid { transform: rotateX(-22deg) rotateY(-8deg) translate(-3px,-13px); }
@keyframes case-rumble { to { transform: translateX(2px) rotate(.35deg); } }
.case-odds { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.case-rarity { padding: 4px 7px; border: 1px solid currentColor; border-radius: 4px; font-family: var(--mono); font-size: 8px; letter-spacing: .025em; opacity: .84; }
.case-rarity--restricted { color: #76a9f0; }
.case-rarity--classified { color: #a78be8; }
.case-rarity--covert { color: #ef6d71; }
.case-rarity--rare { color: #efbd55; }

.case-machine { padding: 34px 38px 38px; }
.case-window {
  position: relative;
  height: 202px;
  overflow: hidden;
  border: 1px solid var(--baseline);
  background:
    linear-gradient(90deg, rgba(12,20,29,.95), transparent 15%, transparent 85%, rgba(12,20,29,.95)),
    #111d28;
  box-shadow: inset 0 0 46px rgba(0,0,0,.35);
}
.case-window::before, .case-window::after {
  content: '';
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  width: 18%;
  pointer-events: none;
}
.case-window::before { left: 0; background: linear-gradient(90deg, #0c141d, transparent); }
.case-window::after { right: 0; background: linear-gradient(-90deg, #0c141d, transparent); }
.case-window__marker {
  position: absolute;
  z-index: 8;
  top: -1px;
  bottom: -1px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(var(--signal), rgba(255,118,87,.25), var(--signal));
  box-shadow: 0 0 16px rgba(255,118,87,.52);
  pointer-events: none;
}
.case-window__marker::before, .case-window__marker::after { content: ''; position: absolute; left: 50%; width: 0; height: 0; transform: translateX(-50%); border-right: 8px solid transparent; border-left: 8px solid transparent; }
.case-window__marker::before { top: 0; border-top: 10px solid var(--signal); }
.case-window__marker::after { bottom: 0; border-bottom: 10px solid var(--signal); }
.case-simulator[data-case-state="rolling"] .case-window__marker { animation: case-marker .55s ease-in-out infinite alternate; }
@keyframes case-marker { to { filter: brightness(1.5); box-shadow: 0 0 28px rgba(255,118,87,.8); } }
.case-track { display: flex; gap: 10px; width: max-content; height: 100%; padding: 10px; will-change: transform; }
.case-item {
  position: relative;
  flex: 0 0 190px;
  width: 190px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--rarity);
  background: linear-gradient(155deg, color-mix(in srgb, var(--rarity) 8%, transparent), transparent 55%), var(--surface-1);
}
.case-item--restricted { --rarity: #76a9f0; }
.case-item--classified { --rarity: #a78be8; }
.case-item--covert { --rarity: #ef6d71; }
.case-item--rare { --rarity: #efbd55; }
.case-item__image, .case-result__image {
  display: block;
  object-fit: contain;
  object-position: center;
  background: #101923;
}
.case-item__image { width: 100%; height: 140px; }
.case-item > span {
  display: block;
  overflow: hidden;
  padding: 10px;
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.case-item--rare::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(239,189,85,.18), transparent 70%);
  animation: rare-shine 2.2s ease-in-out infinite;
}
@keyframes rare-shine { 55%,100% { transform: translateX(120%); } }
.case-controls { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.case-controls > span { color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .045em; text-transform: uppercase; }
.case-open { min-width: 180px; }
.case-sound {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 10px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 5px;
  background: rgba(255,255,255,.02);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}
.case-sound:hover { color: var(--radar); border-color: rgba(70,199,176,.42); background: rgba(70,199,176,.06); transform: translateY(-1px); }
.case-sound:focus-visible { outline: 2px solid var(--radar); outline-offset: 2px; }
.case-sound[aria-pressed="false"] { color: var(--muted); opacity: .72; }
.case-sound__icon { display: grid; place-items: center; width: 28px; height: 20px; color: var(--radar); border: 1px solid currentColor; border-radius: 3px; font-family: var(--mono); font-size: 7px; font-weight: 700; letter-spacing: .08em; }
.case-sound[aria-pressed="false"] .case-sound__icon { color: var(--muted); text-decoration: line-through; }
.case-sound__label { font-family: var(--mono); font-size: 8px; letter-spacing: .04em; text-transform: uppercase; }
.case-result {
  display: grid;
  grid-template-columns: 118px 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--rarity) 50%, transparent);
  border-left: 3px solid var(--rarity);
  background: color-mix(in srgb, var(--rarity) 5%, var(--surface-1));
  animation: case-result-in .45s cubic-bezier(.2,.75,.25,1) both;
}
.case-result[hidden] { display: none; }
.case-result--restricted { --rarity: #76a9f0; }
.case-result--classified { --rarity: #a78be8; }
.case-result--covert { --rarity: #ef6d71; }
.case-result--rare { --rarity: #efbd55; }
@keyframes case-result-in { from { opacity: 0; transform: translateY(-8px) scale(.99); } }
.case-result__image { width: 118px; height: 70px; }
.case-result > span { display: flex; flex-direction: column; }
.case-result small { color: var(--rarity); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.case-result strong { margin-top: 4px; font-family: var(--display); font-size: 23px; font-weight: 580; }

.landing-method { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; padding: 50px; border: 1px solid var(--border); background: var(--surface-0); }
.landing-method h2 { max-width: 480px; margin: 0; font-size: clamp(38px, 4vw, 58px); line-height: .98; }
.landing-method ol { margin: 0; padding: 0; list-style: none; }
.landing-method li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--border); }
.landing-method li:first-child { padding-top: 0; }
.landing-method li:last-child { border-bottom: 0; }
.landing-method li > b { color: var(--signal); font-family: var(--mono); font-size: 10px; }
.landing-method li span { display: flex; flex-direction: column; }
.landing-method li strong { font-size: 15px; }
.landing-method li small { margin-top: 5px; color: var(--muted); font-size: 12px; }

.landing-cta { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; margin: 120px 0 80px; padding: 34px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.landing-cta .landing-kicker { margin-bottom: 5px; }
.landing-cta h2 { margin: 0; font-size: 27px; }
.landing-footer { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; width: min(1320px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 44px; color: var(--muted); border-top: 1px solid var(--border); font-size: 11px; }
.landing-footer > span { color: var(--text-secondary); font-family: var(--display); font-size: 16px; letter-spacing: .05em; }
.landing-footer p { margin: 0; text-align: center; }

.has-js .landing-reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.75,.25,1); }
.has-js .landing-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1000px) {
  .landing-nav { grid-template-columns: 1fr auto; }
  .landing-nav nav { display: none; }
  .landing-hero { grid-template-columns: 1fr; }
  .landing-radar-panel { width: min(620px, 100%); min-height: 420px; }
  .landing-trust { grid-template-columns: 1fr 1fr; }
  .landing-trust span:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
  .landing-trust span:nth-child(4) { border-top: 1px solid var(--border); }
  .landing-section__head { grid-template-columns: 1fr; gap: 22px; }
  .landing-metric-grid { grid-template-columns: 1fr 1fr; }
  .landing-metric:nth-child(3) { border-left: 0; border-top: 1px solid var(--border); }
  .landing-metric:nth-child(4) { border-top: 1px solid var(--border); }
  .landing-method { gap: 45px; padding: 38px; }
}

@media (max-width: 680px) {
  .landing-nav, .landing-shell main, .landing-footer { width: min(100% - 28px, 1320px); }
  .landing-nav { min-height: 74px; }
  .landing-nav .brand-copy small { display: none; }
  .landing-login { min-height: 32px; padding: 5px 9px; font-size: 10px; }
  .landing-hero { min-height: 0; gap: 50px; padding: 70px 0; }
  .landing-hero h1 { font-size: clamp(50px, 15vw, 72px); }
  .landing-lead { font-size: 15px; }
  .landing-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .landing-hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); }
  .landing-hero__stats div { min-width: 0; padding: 0 12px; }
  .landing-hero__stats dd { font-size: 22px; }
  .landing-radar-panel { min-height: 0; padding: 12px; overflow: hidden; }
  .landing-radar-grid { width: min(100%, 360px); }
  .landing-replay__top { align-items: flex-start; flex-direction: column; gap: 5px; }
  .landing-signal { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .landing-signal strong { overflow-wrap: anywhere; }
  .landing-signal span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .landing-signal > b { grid-column: 2; grid-row: 1; }
  .landing-replay-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: center; }
  .landing-round-tabs button, .landing-replay-toggle { min-height: 44px; }
  .landing-replay-legend { grid-column: 1 / -1; order: 3; width: 100%; margin-left: 0; justify-content: space-between; }
  .landing-replay-toggle { margin-left: 0; }
  .landing-trust { grid-template-columns: 1fr; }
  .landing-trust span { border-top: 1px solid var(--border); border-left: 0; }
  .landing-trust span:first-child { border-top: 0; }
  .landing-section { padding-top: 88px; }
  .landing-section__head { margin-bottom: 28px; }
  .landing-section__head h2 { font-size: 39px; }
  .landing-chart-grid { grid-template-columns: 1fr; }
  .landing-chart-card--wide { grid-column: auto; }
  .landing-chart-card { min-height: 320px; padding: 18px; }
  .landing-chart-card--quality { grid-template-columns: 1fr; }
  .landing-bars li { grid-template-columns: 78px 1fr 42px; gap: 8px; }
  .landing-metric-grid { grid-template-columns: 1fr; }
  .landing-metric { min-height: 220px; border-top: 1px solid var(--border); border-left: 0; }
  .landing-metric:first-child { border-top: 0; }
  .landing-metric h3 { margin-top: 38px; }
  .case-simulator__intro { grid-template-columns: 1fr; gap: 12px; padding: 24px 18px; text-align: center; }
  .case-box { transform: scale(.82); margin-top: 0; margin-bottom: -10px; }
  .case-odds { justify-content: center; }
  .case-machine { padding: 20px 12px 22px; }
  .case-window { height: 178px; }
  .case-track { gap: 8px; padding: 8px; }
  .case-item { flex-basis: 160px; width: 160px; }
  .case-item__image { height: 120px; }
  .case-controls { align-items: stretch; flex-direction: column; }
  .case-open { width: 100%; }
  .case-sound { justify-content: center; width: 100%; }
  .case-controls > span { text-align: center; }
  .case-result { grid-template-columns: 88px 1fr; gap: 12px; }
  .case-result__image { width: 88px; height: 58px; }
  .case-result .btn { grid-column: 1 / -1; width: 100%; }
  .landing-method { grid-template-columns: 1fr; gap: 40px; padding: 27px 22px; }
  .landing-cta { grid-template-columns: auto 1fr; padding: 28px 0; }
  .landing-cta .btn { grid-column: 1 / -1; width: 100%; }
  .landing-footer { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .landing-footer p { text-align: center; }
}

/* Mobile workspace -----------------------------------------------------------
   Navigation behaves as an overlay panel; dense data stays readable through
   deliberate horizontal scrolling instead of squeezing every column. */
.nav-backdrop { display: none; }

@media (max-width: 900px) {
  body.nav-open { overflow: hidden; }
  .layout { padding-top: 68px; }
  .sidebar {
    position: fixed;
    inset: 0 0 auto;
    display: block;
    height: 68px;
    max-height: 100dvh;
    padding-right: max(14px, env(safe-area-inset-right));
    padding-left: max(14px, env(safe-area-inset-left));
    overflow: hidden;
    overscroll-behavior: contain;
    box-shadow: 0 12px 34px rgba(1, 7, 12, .3);
  }
  .sidebar--open {
    width: min(100%, 430px);
    height: auto;
    max-height: 100dvh;
    padding-bottom: max(14px, env(safe-area-inset-bottom));
    overflow-y: auto;
    box-shadow: 0 28px 70px rgba(1, 7, 12, .72);
  }
  .sidebar-head {
    position: sticky;
    top: 0;
    z-index: 2;
    min-height: 67px;
    background: var(--surface-0);
  }
  .nav-toggle {
    min-width: 44px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
  }
  .nav-toggle > span:first-child,
  .nav-toggle > span:first-child::before,
  .nav-toggle > span:first-child::after { transition: top .18s ease, transform .18s ease, background .18s ease; }
  .sidebar--open .nav-toggle { border-color: rgba(70,199,176,.36); background: rgba(70,199,176,.06); }
  .sidebar--open .nav-toggle > span:first-child { background: transparent; }
  .sidebar--open .nav-toggle > span:first-child::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    transform-origin: center;
  }
  .sidebar--open .nav-toggle > span:first-child::after {
    top: 0;
    left: 50%;
    transform: translateX(-50%) rotate(-45deg);
    transform-origin: center;
  }
  .sidebar--open .period-select { margin-top: 6px; }
  .sidebar--open .nav { padding-bottom: 4px; }
  .sidebar--open .nav a { min-height: 44px; }
  .sidebar--open .period-select select { min-height: 44px; }
  .nav-backdrop:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(2, 8, 13, .68);
    backdrop-filter: blur(3px);
    cursor: default;
  }
  .content { min-height: calc(100dvh - 68px); }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 82px; }
  .content {
    padding: 20px max(14px, env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
  }
  .page-heading {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 11px;
    margin-bottom: 22px;
  }
  .page-heading__marker { width: 38px; height: 38px; }
  .page-heading__copy h1 { font-size: clamp(27px, 8.5vw, 32px); overflow-wrap: anywhere; }
  .section { margin-bottom: 26px; }
  .section > h2 { font-size: 19px; }
  .card { padding: 16px; }
  .card:hover { transform: none; }
  .btn:not(.btn--sm),
  input[type="text"], input[type="search"], input[type="number"], input[type="password"], select, .sched-input {
    min-height: 44px;
  }
  .detail-close { width: 40px; height: 40px; flex: 0 0 40px; }

  .filters { gap: 10px; }
  .filters > .filter,
  .filters > .filter--grow { flex: 1 1 180px; width: auto; min-width: 0; }
  .filters > .filters {
    flex: 1 1 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .subnav {
    flex-wrap: nowrap;
    max-width: 100%;
    margin-bottom: 20px;
    padding-bottom: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav a { flex: 0 0 auto; min-height: 36px; display: inline-flex; align-items: center; }

  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-color: var(--radar) var(--surface-0);
  }
  .data-table { min-width: 100%; font-size: 12px; }
  .data-table th, .data-table td { height: 42px; padding: 8px 10px; }
  .data-table th:first-child,
  .data-table td:first-child:not(.empty-cell) {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface-1);
    box-shadow: 10px 0 16px -16px rgba(0,0,0,.95);
  }
  .data-table th:first-child { z-index: 2; background: var(--surface-0); }
  .card .data-table td:first-child:not(.empty-cell) { background: #172331; }

  .chart-box { height: clamp(230px, 76vw, 320px) !important; }
  .chart-card__head { margin-bottom: 10px; }
  .data-update-notice { align-items: stretch; flex-direction: column; }
  .market-grid, .combo-grid { grid-template-columns: minmax(0, 1fr); }
  .combo-leg__pick { align-items: flex-start; flex-direction: column; }
  .pagination { flex-wrap: wrap; gap: 8px; }
  .pagination .btn { flex: 1 1 calc(50% - 4px); }
  .pagination .muted { flex: 1 0 100%; order: -1; text-align: center; }
  .bracket-toolbar { align-items: stretch; flex-direction: column; }
  .bracket-toolbar .btn { width: 100%; }
  .bracket { gap: 28px; scroll-snap-type: x proximity; }
  .bracket-round { flex-basis: min(236px, 78vw); scroll-snap-align: start; }
  .career-graph-wrap { scroll-snap-type: x proximity; }
  .career-node { scroll-snap-align: start; }
  .heatmap-card { width: 100%; }

  .match-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; min-height: 52px; }
  .match-row__date { flex-basis: auto; }
  .match-row__teams { gap: 5px; }
  .match-header__teams { font-size: 19px; }
  .match-header__score { font-size: 24px; }
  .upcoming-card__teams { line-height: 1.35; }
  .upcoming-card__prob .win-split { width: 100%; min-width: 0; }
  .veto-seq, .veto-pos { display: flex; flex-wrap: wrap; }
  .empty-state { padding: 34px 14px; }
}

@media (max-width: 520px) {
  .brand-copy strong { font-size: 17px; }
  .filters > .filter,
  .filters > .filter--grow { flex-basis: 100%; width: 100%; }
  .filters > .btn { width: 100%; }
  .sched-payload, .sched-field { width: 100%; }
  .sched-input--num, .sched-input--name { width: 100%; }
  .sched-row-actions { width: 100%; margin-left: 0; }
  .sched-row-actions .btn { flex: 1; }
  .landing-nav, .landing-shell main, .landing-footer { width: min(100% - 24px, 1320px); }
  .landing-nav { gap: 10px; }
  .landing-nav .brand { gap: 8px; }
  .landing-nav .brand-radar { flex-basis: 30px; width: 30px; height: 30px; }
  .landing-hero { padding: 52px 0 64px; }
  .landing-hero h1 { font-size: clamp(42px, 14vw, 62px); }
  .landing-lead { margin-top: 22px; }
  .landing-actions .btn { width: 100%; text-align: center; }
  .landing-hero__stats { margin-top: 32px; }
  .landing-hero__stats div { padding: 0 8px; }
  .landing-hero__stats dt { font-size: 8px; }
  .landing-hero__stats dd { font-size: 20px; }
  .landing-section__head h2, .landing-method h2 { font-size: clamp(33px, 10.5vw, 42px); }
  .landing-chart-card { min-height: 0; }
  .landing-chart-card--wide { min-height: 290px; }
  .landing-line-chart svg { height: 175px; }
  .landing-quality { width: 145px; height: 145px; }
  .landing-quality::before { width: 116px; height: 116px; }
  .landing-metric { min-height: 0; padding: 26px 20px; }
  .case-simulator__copy h3 { font-size: 30px; }
  .case-odds { align-items: center; flex-direction: column; }
  .case-window { height: 166px; }
  .case-item { flex-basis: 148px; width: 148px; }
  .case-item__image { height: 110px; }
  .login-page { width: min(100% - 24px, 520px); min-height: 100dvh; }
  .login-card { padding: 24px 18px; }
  .login-card .login-title { font-size: 30px; }
}

@media (max-width: 370px) {
  .tiles { grid-template-columns: 1fr; }
  .stat-tile { min-height: 94px; }
  .landing-login { padding-inline: 7px; font-size: 9px; }
}

@media (max-width: 1150px) {
  .round-explorer-layout { grid-template-columns: minmax(0, 1fr); }
  .round-event-panel { position: static; }
  .round-event-list { max-height: 330px; }
}

@media (max-width: 760px) {
  .round-library-intro { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px; }
  .round-library-intro .landing-kicker { grid-column: auto; }
  .round-replay-deck { grid-template-columns: 118px minmax(0, 1fr); gap: 20px; padding: 22px; }
  .round-replay-deck__signal { min-height: 170px; }
  .round-replay-deck__controls { grid-column: 1 / -1; }
  .round-ready > header { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .round-intake__head { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 22px; }
  .round-intake-grid { grid-template-columns: minmax(0, 1fr); }
  .round-intake-lane { padding: 22px; border-right: 0; border-bottom: 1px solid var(--border); }
  .round-intake-lane:last-child { border-bottom: 0; }
  .round-intake-lane::after { right: 22px; left: 22px; }
  .round-library { grid-template-columns: minmax(0, 1fr); }
  .round-explorer-head { grid-template-columns: minmax(0, 1fr) auto; }
  .round-explorer-head__back { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .round-replay-deck { grid-template-columns: minmax(0, 1fr); padding: 17px; }
  .round-replay-deck__signal { min-height: 92px; }
  .round-replay-deck__signal::after { inset-block: 30px 27px; }
  .round-replay-deck > header h2 { font-size: 34px; }
  .round-replay-deck__controls { grid-column: auto; }
  .round-intake__head, .round-intake-lane { padding: 17px; }
  .round-intake__head h2 { font-size: 28px; }
  .round-intake-lane::after { right: 17px; left: 17px; }
  .round-selected-match { grid-template-columns: minmax(0, 1fr); }
  .round-selected-match > a { grid-column: 1; grid-row: auto; margin-top: 4px; }
  .demo-dropzone { grid-template-columns: 48px minmax(0, 1fr); gap: 12px; min-height: 112px; padding: 14px; }
  .demo-dropzone__reticle { width: 48px; height: 48px; box-shadow: inset 0 0 0 5px var(--surface-0), inset 0 0 0 6px currentColor; }
  .round-grenade-legend { gap: 7px 10px; }
  .round-grenade-legend__title { flex-basis: 100%; }
  .round-library-card { min-height: 164px; }
  .round-library-card__open { min-height: 162px; padding: 17px; }
  .round-library-card__open > strong { font-size: 21px; }
  .round-explorer-head { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px; }
  .round-map-picker { align-items: stretch; flex-direction: column; gap: 4px; }
  .round-map-picker select { width: 100%; min-width: 0; }
  .round-explorer-stage-card, .round-event-panel { padding: 12px; }
  .round-explorer-scoreline { align-items: flex-start; flex-direction: column; gap: 6px; }
  .round-explorer__map-score { width: 100%; font-size: 16px; }
  .round-radar-stage { width: 100%; }
  .round-kill-feed { inset: 8px 8px auto; width: auto; }
  .round-kill-feed__row { min-height: 24px; gap: 4px; padding: 3px 5px; }
  .round-kill-feed__player { font-size: 7px; }
  .round-kill-feed__weapon { font-size: 6px; }
  .round-playback-controls { grid-template-columns: 1fr 1.35fr 1fr; gap: 5px; }
  .round-playback-controls .btn { width: 100%; min-width: 0; min-height: 44px; padding-inline: 6px; font-size: 9px; }
  .round-playback-speed { grid-column: 1 / -1; grid-row: 2; justify-self: end; min-height: 36px; }
  .round-playback-speed select { height: 36px; }
  .round-explorer-live { width: 100%; justify-content: space-between; }
  .round-outcome { grid-template-columns: minmax(0, 1fr); }
}
