/* ===== Self-hosted fonts (immutable cache, versioned filenames) ===== */
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/app/fonts/exo2-v1-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Exo 2';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('/app/fonts/exo2-v1-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Russo One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/app/fonts/russoone-v1-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Russo One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/app/fonts/russoone-v1-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* ============================================================
   Dota 2 Analytics вЂ” Dota-СЌСЃС‚РµС‚РёРєР° (Radiant vs Dire)
   ============================================================ */

:root {
  --bg0: #070b12;
  --bg1: #0b1018;
  --bg2: #0e1622;
  --surface: #141d2b;
  --surface2: #1b2738;
  --surface3: #24344b;
  --border: #223144;
  --border2: #31445c;
  --text: #e9eff6;
  --muted: #8ba0b5;
  --muted2: #5d7184;

  --radiant: #3ee6b4;
  --radiant-deep: #1fae87;
  --radiant-bg: rgba(62, 230, 180, 0.12);
  --dire: #ff5c68;
  --dire-deep: #e23a48;
  --dire-bg: rgba(255, 92, 104, 0.12);
  --amber: #f0b04a;
  --amber-deep: #d9942e;
  --amber-bg: rgba(240, 176, 74, 0.14);
  --accent: #54a0f5;
  --green: #3fd46e;
  --nick: #ff5c68;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --glow-rad: 0 0 18px rgba(62, 230, 180, 0.35);
  --glow-dir: 0 0 18px rgba(255, 92, 104, 0.35);
  --glow-amber: 0 0 18px rgba(240, 176, 74, 0.4);

  --font-body: 'Exo 2', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Russo One', 'Exo 2', system-ui, sans-serif;
}

[data-theme="light"] {
  --bg0: #eef2f7;
  --bg1: #e6ebf2;
  --bg2: #dde5ee;
  --surface: #ffffff;
  --surface2: #eef2f8;
  --surface3: #dfe7f1;
  --border: #d6deea;
  --border2: #b7c5d6;
  --text: #17202e;
  --muted: #55677c;
  --muted2: #8393a6;

  --radiant: #0fae83;
  --radiant-bg: rgba(15, 174, 131, 0.12);
  --dire: #d83a4b;
  --dire-bg: rgba(216, 58, 75, 0.1);
  --amber: #b57a16;
  --amber-deep: #96620f;
  --amber-bg: rgba(181, 122, 22, 0.12);
  --accent: #2b74c9;
  --nick: #d83a4b;

  --shadow: 0 10px 30px rgba(30, 50, 80, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-width: thin; scrollbar-color: var(--border2) transparent; }

body {
  font-family: var(--font-body);
  font-weight: 500;
  background:
    radial-gradient(1000px 520px at 85% -8%, rgba(62, 230, 180, 0.07), transparent 60%),
    radial-gradient(900px 560px at -12% 22%, rgba(255, 92, 104, 0.06), transparent 55%),
    radial-gradient(760px 420px at 50% 118%, rgba(84, 160, 245, 0.05), transparent 60%),
    var(--bg0);
  color: var(--text);
  min-height: 100vh;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
  line-height: 1.42;
}

::selection { background: rgba(84, 160, 245, 0.35); }

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

/* ===== TOPBAR ===== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: linear-gradient(180deg, rgba(20, 29, 43, 0.97), rgba(7, 11, 18, 0.88));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
}
[data-theme="light"] .topbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(230, 235, 242, 0.9));
}
.topbar-logo {
  position: relative;
  width: 40px; height: 40px; flex: none;
  display: flex; align-items: center; justify-content: center;
  /* frame removed by owner request */
}
.topbar-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
/* СЃС‚РµРєР»СЏРЅРЅС‹Р№ Р±Р»РёРє, РїСЂРѕС…РѕРґСЏС‰РёР№ РїРѕ Р»РѕРіРѕС‚РёРїСѓ (С‚РѕР»СЊРєРѕ transform вЂ” РґС‘С€РµРІРѕ) */
/* logo shine removed by owner request */
.topbar-titles { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.topbar-title {
  font-family: var(--font-display);
  font-size: 15px; line-height: 1.15; letter-spacing: 0.4px;
  background: linear-gradient(90deg, #fff, #a9c4dc);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.topbar-title span { display: block; }
.topbar-title span + span { font-size: 12px; letter-spacing: 1.6px; opacity: 0.8; }
[data-theme="light"] .topbar-title {
  background: linear-gradient(90deg, #17202e, #3b4d63);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.topbar-sub { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: 0.2px; }
.topbar-live {
  margin-left: auto; flex: none;
  display: flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 20px;
  background: var(--radiant-bg);
  border: 1px solid rgba(62, 230, 180, 0.4);
  color: var(--radiant);
  font-size: 11px; font-weight: 800; letter-spacing: 1px;
}
.topbar-live.off { opacity: 0.35; border-color: var(--border); color: var(--muted); background: var(--surface2); }
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--radiant);
  animation: livePulse 1.5s infinite;
}
.topbar-live.off .live-dot { background: var(--muted2); animation: none; }

/* ===== TABS ===== */
.tabs {
  display: flex;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  position: sticky; top: 63px; z-index: 30;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  flex: 1;
  min-width: max-content;
  padding: 14px 16px;
  background: none; border: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  position: relative;
}
.tab-btn:active { background: var(--surface2); }
.tab-btn.active {
  color: var(--amber);
  border-bottom-color: var(--amber);
}
.tab-btn.active::after {
  content: ''; position: absolute; left: 20%; right: 20%; bottom: -2px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  filter: blur(0.5px);
}
.tab-content { padding: 14px 12px; max-width: 780px; margin: 0 auto; }

/* ===== SECTION TITLE ===== */
.sec-title {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 13px; letter-spacing: 1px;
  color: var(--muted);
  text-transform: uppercase;
  padding: 4px 4px 12px;
}
.sec-title::before {
  content: ''; width: 4px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, var(--radiant), var(--amber));
  box-shadow: var(--glow-amber);
}

/* ===== TOURNAMENT ===== */
.tournament {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fadeInUp 0.4s ease both;
  position: relative;
}
.tournament::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}
.tournament:nth-child(2) { animation-delay: 0.04s; }
.tournament:nth-child(3) { animation-delay: 0.08s; }
.tournament:nth-child(4) { animation-delay: 0.12s; }
.tournament:nth-child(5) { animation-delay: 0.16s; }
.tournament:nth-child(n+6) { animation-delay: 0.2s; }

.tournament-header {
  display: flex; align-items: center;
  padding: 13px 16px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 13.5px; font-weight: 400;
  gap: 10px;
  user-select: none;
  transition: background 0.2s;
}
.tournament-header:active { background: var(--surface2); }
.tournament-logo {
  width: 32px; height: 32px; border-radius: 9px;
  object-fit: contain; background: var(--surface2);
  flex: none; border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.tournament-name {
  flex: 1; letter-spacing: 0.2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tournament-count {
  color: var(--amber); font-size: 11px;
  background: var(--amber-bg); border: 1px solid rgba(240, 176, 74, 0.35);
  padding: 2px 10px; border-radius: 20px;
  font-family: var(--font-body); font-weight: 700;
  letter-spacing: 0.3px;
}
.tournament-arrow {
  transition: transform 0.25s ease;
  color: var(--muted); font-size: 12px;
}
.tournament.collapsed .tournament-arrow { transform: rotate(-90deg); }
.tournament-matches {
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.012), transparent 30%);
}
.tournament.collapsed .tournament-matches { display: none; }

/* ===== MATCH CARD ===== */
.match-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  transition: background 0.15s, transform 0.1s, border-color 0.2s;
}
.match-card.clickable { cursor: pointer; }
.match-card.clickable:active { background: var(--surface3); transform: scale(0.99); }

/* ===== SERIES BADGE + MAP CHIPS ===== */
.series-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 9px;
  font-size: 11px; font-weight: 800;
  color: var(--amber);
  background: var(--amber-bg);
  border: 1px solid rgba(240, 176, 74, 0.4);
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.map-chips {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px;
  padding: 10px 16px 10px;
}
.map-chip {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  flex: 0 1 calc((100% - 16px) / 3);
  min-width: 0;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 11px; font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.3px;
  line-height: 1;
}
.map-chip small { font-size: 10px; opacity: 0.9; }
.mc-logo { height: 10px; width: auto; border-radius: 2px; flex: none; }
.mc-live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--dire);
  animation: liveDotPulse 1.2s infinite;
  flex: none;
}
.map-chip.finished {
  color: var(--radiant);
  border-color: rgba(62, 230, 180, 0.5);
  background: var(--radiant-bg);
}
.map-chip.live {
  color: var(--dire);
  border-color: var(--dire);
  background: rgba(255, 92, 104, 0.1);
  animation: liveRedPulse 1.6s infinite;
}
.map-chip.picks { color: var(--amber); border-color: rgba(240, 176, 74, 0.45); }
.map-chip.upcoming { color: var(--muted2); }

/* ===== MAP STATE ===== */
.map-title { font-weight: 800; font-size: 13px; color: var(--text); }
.map-state-live { color: var(--radiant); font-weight: 800; font-size: 12px; letter-spacing: 1px; }
.map-state-picks { color: var(--amber); font-weight: 800; font-size: 12px; }
.map-state-upcoming { color: var(--muted); font-weight: 800; font-size: 12px; }

/* ===== MATCH ROW ===== */
.match-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 12px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
  background: var(--surface2);
}
#live-list .match-row {
  border-bottom: none;
  padding-bottom: 2px;
}
#live-list .upcoming-pred {
  padding-bottom: 2px;
}
.match-row:last-child { border-bottom: none; }

.team-col { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.team-line {
  display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600;
  min-height: 24px;
}
.team-line .match-score, .team-line .result-win { margin-left: auto; }
.cs2-rank { flex: none; color: var(--amber); font-size: 11px; font-weight: 800; margin-left: 4px; }
.score-wrap {
  flex: none;
  display: flex; align-items: center; gap: 4px;
}
.series-score-col {
  flex: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 16px;
}
.score-wrap .series-score {
  font-family: inherit;
  font-weight: 800; font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
  white-space: nowrap;
  letter-spacing: 0;
  text-align: center;
  padding: 0;
  min-height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.score-col {
  flex: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  min-width: 28px;
}
.score-col .match-score {
  min-height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.team-logo {
  width: 24px; height: 24px; border-radius: 6px;
  object-fit: contain; background: var(--surface2);
  flex: none; border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.mid-col {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--muted); font-size: 11.5px; min-width: 58px;
}
.match-score {
  font-weight: 800; font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.result-win { color: var(--green); font-weight: 800; font-size: 12px; letter-spacing: 0.3px; }

/* ===== Р•Р”РРќРђРЇ РЎР•РўРљРђ Р РђРЎРџРРЎРђРќРР• / Р Р•Р—РЈР›Р¬РўРђРўР« (РєР°Рє LIVE) ===== */
#schedule-list .match-row,
#results-list .match-row {
  border-bottom: none;
  padding-bottom: 2px;
}
#schedule-list .score-wrap,
#results-list .score-wrap {
  align-items: center;
}
#schedule-list .score-col,
#results-list .score-col {
  min-width: 44px;
  gap: 8px;
}
#schedule-list .match-score.pct-rad { color: var(--radiant); }
#schedule-list .match-score.pct-dir { color: var(--dire); }
#results-list .match-score { font-size: 17px; }
#results-list .result-win {
  background: var(--radiant-bg);
  border: 1px solid rgba(62, 230, 180, 0.4);
  border-radius: 20px;
  padding: 2px 9px;
  font-size: 10.5px;
  letter-spacing: 0.4px;
}
#results-list .team-line .result-win { margin-left: 0; }

/* ===== PROB BAR ===== */
.prob-bar {
  height: 9px; border-radius: 6px;
  background:
    linear-gradient(90deg, var(--radiant) 0%, var(--radiant) var(--r), var(--dire) var(--r), var(--dire) 100%);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
  margin: 2px 16px 0;
  position: relative;
}
.prob-bar::after {
  content: ''; position: absolute; top: 0; left: var(--r); width: 2px; height: 100%;
  background: rgba(255, 255, 255, 0.9);
  transform: translateX(-1px);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}
.upcoming-pred {
  display: flex; align-items: center; gap: 8px;
  margin: 8px 12px 10px; padding: 6px 10px;
  border-radius: 8px;
  background: rgba(84, 160, 245, 0.08);
  border: 1px solid rgba(84, 160, 245, 0.2);
  font-size: 12.5px; color: var(--text);
  line-height: 1.5;
}
.upcoming-pred b { color: var(--accent); font-weight: 700; }
.upcoming-pred.pre { color: var(--muted2); font-size: 12px; background: rgba(255,255,255,0.03); border-color: var(--border); }
.upcoming-pred.pre b { color: var(--muted2); font-weight: 600; }
.upcoming-pred.our { color: var(--accent); font-weight: 500; }
.upcoming-pred.our b { color: var(--accent); }
.pre-note { font-size: 11.5px; color: var(--muted2); margin-top: 3px; }

/* ===== LOADING / EMPTY / SKELETON ===== */
.loading {
  color: var(--muted); text-align: center; padding: 44px 20px;
  font-size: 14px; font-weight: 600;
}
.loading::before {
  content: ''; display: block; width: 28px; height: 28px;
  margin: 0 auto 14px; border-radius: 50%;
  border: 3px solid var(--border2);
  border-top-color: var(--amber);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty {
  color: var(--muted); text-align: center; padding: 44px 20px;
  font-size: 13.5px; font-weight: 600;
}

/* ===== EMPTY GUIDE (variant C: minimal, no card) ===== */
.empty-guide {
  text-align: center;
  padding: 58px 28px 42px;
  color: var(--muted);
}
.eg-icon {
  color: var(--amber);
  margin-bottom: 14px;
}
.eg-icon svg { display: inline-block; }
.eg-icon .eg-pulse {
  animation: eg-pulse 2.4s ease-in-out infinite;
  transform-origin: center;
}
@keyframes eg-pulse {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.7; }
}
.eg-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.01em;
  margin-bottom: 8px;
}
.eg-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 300px;
  margin: 0 auto;
}
.eg-divider {
  width: 36px;
  height: 1px;
  background: var(--border2);
  margin: 18px auto 14px;
  opacity: 0.7;
}
.eg-actions { display: flex; justify-content: center; }
.eg-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 20px;
  border: 1px solid var(--amber-deep);
  background: var(--amber-bg);
  color: var(--amber);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.eg-btn:active { transform: scale(0.98); }
@media (prefers-reduced-motion: reduce) {
  .eg-icon .eg-pulse { animation: none; opacity: 0.4; }
  .eg-btn { transition: none; }
}

/* PERF: skip layout/paint for off-screen list cards. `auto` in
   contain-intrinsic-size keeps the last measured height, so the scrollbar
   does not jump. Unsupported WebViews simply ignore both properties. */
.match-card, .sp-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 110px;
}

.sk-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 14px; padding: 14px;
  overflow: hidden; position: relative;
}
.sk-line {
  height: 14px; border-radius: 7px; margin: 8px 0;
  background: linear-gradient(90deg, var(--surface2) 25%, var(--surface3) 37%, var(--surface2) 55%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
.sk-line.w70 { width: 70%; }
.sk-line.w50 { width: 50%; }
.sk-line.w40 { width: 40%; }
.sk-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.sk-avatar { width: 36px; height: 36px; border-radius: 10px; flex: none; background: var(--surface2); }
.sk-lines { flex: 1; }
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed; left: 4px; right: 4px; bottom: calc(4px + env(safe-area-inset-bottom)); z-index: 50;
  display: flex;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.15), rgba(13, 19, 30, 0.22));
  backdrop-filter: blur(36px) saturate(130%) brightness(1.02);
  -webkit-backdrop-filter: blur(36px) saturate(130%) brightness(1.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  padding: 1px 1px;
  transform: translateZ(0);
}
/* Fallback for browsers without backdrop-filter support */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bottom-nav {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(13, 19, 30, 0.95));
  }
}
/* Fallback for browsers without backdrop-filter support */

[data-theme="light"] .bottom-nav {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(240, 244, 250, 0.95));
  box-shadow:
    0 12px 40px rgba(15, 25, 45, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.nav-btn {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 2px 0 2px;
  background: none; border: none;
  color: var(--muted2);
  cursor: pointer;
  transition: color 0.3s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
/* В«РїСЂРѕР¶РµРєС‚РѕСЂВ»-РїРёР»СЋР»СЏ Р·Р° РёРєРѕРЅРєРѕР№ Р°РєС‚РёРІРЅРѕР№ РєРЅРѕРїРєРё */
.nav-btn::before {
  content: "";
  position: absolute;
  left: 50%; top: 4px;
  width: 52px; height: 44px;
  transform: translateX(-50%) scale(0.4);
  border-radius: 16px;
  background: radial-gradient(120% 120% at 50% 20%,
    rgba(240, 176, 74, 0.28), rgba(240, 176, 74, 0.07) 55%, transparent 75%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
  pointer-events: none;
}
.nav-btn:active { transform: scale(0.96); color: var(--amber); }
.nav-btn.active { color: var(--amber); }
/* DISABLED: ::before aura (orange glow) behind active icon
.nav-btn.active::before {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}
END DISABLED */
/* С‚РѕРЅРєР°СЏ СЃРІРµС‚СЏС‰Р°СЏСЃСЏ Р»РёРЅРёСЏ-РёРЅРґРёРєР°С‚РѕСЂ РЅР°Рґ Р°РєС‚РёРІРЅРѕР№ РєРЅРѕРїРєРѕР№ */
/* DISABLED: ::after bar + navIndicator keyframes
.nav-btn.active::after {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 26px; height: 3px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--amber), #ffe1a0, var(--amber), transparent);
  box-shadow: 0 0 10px rgba(240, 176, 74, 0.9);
  transform-origin: center;
  animation: navIndicator 2.4s ease-in-out infinite;
}
@keyframes navIndicator {
  0%, 100% { transform: translateX(-50%) scaleX(0.85); opacity: 0.75; }
  50% { transform: translateX(-50%) scaleX(1.15); opacity: 1; }
}
END DISABLED */
.nav-icon {
  position: relative;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-icon svg {
  width: 23px; height: 23px;
  transition: width 0.2s ease, height 0.2s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}
/* PNG-иконка (маска, наследует цвет раздела) */
.nav-icon-img {
  display: inline-block;
  width: 23px; height: 23px;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  transition: width 0.2s ease, height 0.2s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}
.bet-icon {
  -webkit-mask-image: url('/app/icons/bet-icon.png');
  mask-image: url('/app/icons/bet-icon.png');
}
.nav-btn.active .nav-icon svg,
.nav-btn.active .nav-icon-img {
  zoom: 1.13;
  /* width: 26px !important; height: 26px !important; -- replaced with zoom */
  /* transform: translateY(-1.5px) scale(1.12) !important; -- switched to width/height */
  /* filter: drop-shadow(0 0 7px rgba(240, 176, 74, 0.75));  -- disabled */
}
.nav-btn.active .nav-icon {
  transform: translateY(-1px);
}
.nav-label {
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.5px;
  transition: letter-spacing 0.3s ease;
}
.nav-btn.active .nav-label { letter-spacing: 0.9px; }
.nav-btn:not(.active):hover .nav-icon svg,
.nav-btn:not(.active):hover .nav-icon-img {
  transform: translateY(-1px) scale(1.05);
  filter: drop-shadow(0 0 4px rgba(240, 176, 74, 0.35));
}
.nav-btn:not(.active):hover { color: var(--muted); }
/* :active must win over :hover so a tap paints amber instantly. */
.nav-btn:not(.active):active { color: var(--amber); }
/* Purely visual press feedback; never changes app state or scroll. */
.mp-chip.mp-tap-active, .mp-section-btn.mp-tap-active, .nav-btn.mp-tap-active,
.mp-chip.mp-tap-active:not(.active):hover,
.mp-section-btn.mp-tap-active:not(.active):hover,
.nav-btn.mp-tap-active:not(.active):hover { color: var(--amber) !important; }
/* Amber must land in the SAME frame as the touch. The inherited
   `transition: color 0.3s ease` made the highlight fade in slowly and,
   with a blocked main thread, looked like the button never reacted. */
.nav-btn.active, .nav-btn.mp-tap-active { transition: color 0s; }

/* PRESS-FEEDBACK: every tappable control answers on the same frame.
   `touch-action: manipulation` removes the double-tap-zoom click delay in
   mobile WebViews; transition-duration:0 keeps the pressed state from
   fading in slowly. */
a, button, [role="button"], .btn, .eg-btn, .mp-chip, .mp-section-btn,
.nav-btn, .tournament-header, .match-card.clickable {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
a:active, button:active, [role="button"]:active,
.btn:active, .eg-btn:active, .mp-chip:active, .mp-section-btn:active,
.nav-btn:active, .tournament-header:active {
  transition-duration: 0s !important;
}
button.mp-tap-active:not(.nav-btn):not(.mp-chip):not(.mp-section-btn):not(:disabled),
a.mp-tap-active:not(.nav-btn),
[role="button"].mp-tap-active,
.btn.mp-tap-active,
.eg-btn.mp-tap-active,
.tournament-header.mp-tap-active {
  opacity: 0.85;
  transition-duration: 0s !important;
}


/* РїСѓР»СЊСЃРёСЂСѓСЋС‰РёР№ LIVE-Р±РµР№РґР¶ РІ СѓРіР»Сѓ РёРєРѕРЅРєРё LIVE */
.nav-live-badge {
  position: absolute;
  top: 5px; right: 6px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--dire);
  box-shadow: 0 0 8px rgba(255, 92, 104, 0.9);
  animation: navLivePulse 1.6s ease-in-out infinite;
}
@keyframes navLivePulse {
  0%, 100% { transform: scale(0.85); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* ===== ANALYTICS (РєР°СЂС‚РѕС‡РєРё) ===== */
.analytics-table { width: 100%; border-collapse: collapse; }
.analytics-table th, .analytics-table td {
  padding: 11px 12px; text-align: right; font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.analytics-table th {
  color: var(--muted); font-weight: 800; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.6px;
}
.analytics-table td:first-child { text-align: left; }
.analytics-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.analytics-card h3 { margin-bottom: 6px; font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.h3-team { display: inline-flex; align-items: center; gap: 6px; }
.h3-vs { color: var(--muted); font-weight: 400; }

/* hero cards */
.hero-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  position: relative; overflow: hidden;
  animation: fadeInUp 0.4s ease both;
  transition: transform 0.15s, border-color 0.2s;
}
.hero-card:nth-child(2) { animation-delay: 0.04s; }
.hero-card:nth-child(3) { animation-delay: 0.08s; }
.hero-card:nth-child(4) { animation-delay: 0.12s; }
.hero-card:nth-child(5) { animation-delay: 0.16s; }
.hero-card:nth-child(n+6) { animation-delay: 0.2s; }
.hero-card:active { transform: scale(0.99); }
.hero-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--radiant), var(--amber));
}
.hc-rank {
  font-family: var(--font-display);
  font-size: 13px; color: var(--muted);
  width: 22px; text-align: center; flex: none;
}
.hc-rank.top { color: var(--amber); text-shadow: var(--glow-amber); }
.hc-avatar {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  object-fit: cover; background: var(--surface2);
  border: 1px solid var(--border2);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}
.hc-info { flex: 1; min-width: 0; }
.hc-name { font-family: var(--font-display); font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; font-weight: 600; }
.hc-bar {
  height: 6px; border-radius: 3px; margin-top: 7px;
  background: var(--surface3);
  overflow: hidden; position: relative;
}
.hc-bar i {
  position: absolute; inset: 0 auto 0 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--radiant-deep), var(--radiant));
  animation: barGrow 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
@keyframes barGrow { from { width: 0; } }
.hc-stat {
  font-family: var(--font-display);
  font-size: 17px; color: var(--amber);
  font-variant-numeric: tabular-nums;
  flex: none; min-width: 56px; text-align: right;
}
.hc-stat small { display: block; font-family: var(--font-body); font-size: 9.5px; color: var(--muted); letter-spacing: 0.6px; text-transform: uppercase; }

/* team cards */
.team-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.4s ease both;
}
.team-card:nth-child(2) { animation-delay: 0.04s; }
.team-card:nth-child(3) { animation-delay: 0.08s; }
.team-card:nth-child(4) { animation-delay: 0.12s; }
.team-card:nth-child(5) { animation-delay: 0.16s; }
.team-card:nth-child(n+6) { animation-delay: 0.2s; }
.t-rank {
  font-family: var(--font-display);
  font-size: 14px; width: 26px; text-align: center; flex: none;
  color: var(--muted);
}
.t-rank.gold { color: #ffd24a; text-shadow: 0 0 12px rgba(255, 210, 74, 0.6); }
.t-rank.silver { color: #cdd6e0; }
.t-rank.bronze { color: #d99a6c; }
.t-logo {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  object-fit: contain; background: var(--surface2);
  border: 1px solid var(--border);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.t-body { flex: 1; min-width: 0; }
.t-name { font-family: var(--font-display); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; font-weight: 600; }
.t-bar {
  height: 6px; border-radius: 3px; margin-top: 7px;
  background: var(--surface3); overflow: hidden; position: relative;
}
.t-bar i {
  position: absolute; inset: 0 auto 0 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--dire-deep), var(--amber));
  animation: barGrow 0.7s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
.t-wr {
  font-family: var(--font-display);
  font-size: 17px; color: var(--amber);
  font-variant-numeric: tabular-nums; flex: none; min-width: 56px; text-align: right;
}
.t-wr small { display: block; font-family: var(--font-body); font-size: 9.5px; color: var(--muted); letter-spacing: 0.6px; text-transform: uppercase; }

/* player cards */
.player-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.4s ease both;
}
.player-card:nth-child(2) { animation-delay: 0.04s; }
.player-card:nth-child(3) { animation-delay: 0.08s; }
.player-card:nth-child(4) { animation-delay: 0.12s; }
.player-card:nth-child(5) { animation-delay: 0.16s; }
.player-card:nth-child(n+6) { animation-delay: 0.2s; }
.pc-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  background: linear-gradient(135deg, var(--surface3), var(--surface2));
  border: 1px solid var(--border2);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
.pc-body { flex: 1; min-width: 0; }
.pc-name { font-family: var(--font-display); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; font-weight: 600; }
.pc-kda { font-size: 11px; color: var(--muted2); font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pc-wr {
  font-family: var(--font-display);
  font-size: 16px; color: var(--green);
  font-variant-numeric: tabular-nums; flex: none; min-width: 56px; text-align: right;
}
.pc-wr small { display: block; font-family: var(--font-body); font-size: 9.5px; color: var(--muted); letter-spacing: 0.6px; text-transform: uppercase; }

/* ===== COUNTERS ===== */
.input-group { margin-bottom: 14px; }
.input-group label { display: block; color: var(--muted); font-size: 12.5px; margin-bottom: 7px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
select, input[type=number] {
  width: 100%; padding: 14px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text); border-radius: 12px; font-size: 14px; font-weight: 600;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
select:focus, input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(84, 160, 245, 0.15); }
.btn {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  color: #1a1300;
  border: none; border-radius: 13px;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 800; cursor: pointer;
  letter-spacing: 0.4px;
  box-shadow: var(--glow-amber);
  transition: transform 0.1s, box-shadow 0.2s, filter 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.5; box-shadow: none; }
[data-theme="light"] .btn { color: #fff; }

.ctr-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.ctr-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 12px; padding: 10px 12px;
  animation: fadeInUp 0.35s ease both;
}
.ctr-item:nth-child(2) { animation-delay: 0.04s; }
.ctr-item:nth-child(3) { animation-delay: 0.08s; }
.ctr-item:nth-child(4) { animation-delay: 0.12s; }
.ctr-item:nth-child(n+5) { animation-delay: 0.16s; }
.ctr-hero { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); flex: none; }
.ctr-name { flex: 1; font-weight: 700; font-size: 13.5px; }
.ctr-meta { font-size: 11.5px; color: var(--muted); font-weight: 600; flex: none; }
.ctr-wr { font-family: var(--font-display); color: var(--dire); font-size: 15px; font-variant-numeric: tabular-nums; }

/* ===== PREDICT ===== */
.hero-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px; margin: 10px 0 4px;
}
.hero-btn {
  background: var(--surface2); border: 2px solid var(--border);
  border-radius: 12px; padding: 6px 4px;
  color: var(--text); font-size: 10px; cursor: pointer; text-align: center;
  transition: border-color 0.15s, background 0.15s, transform 0.1s, box-shadow 0.15s;
  font-weight: 600; line-height: 1.15;
  position: relative;
}
.hero-btn:active { transform: scale(0.95); }
.hero-btn .hid {
  display: block; font-family: var(--font-display); font-size: 13px;
  margin-bottom: 3px; color: var(--muted);
  transition: color 0.15s;
}
.hero-btn .pick-img {
  display: block; width: 100%; aspect-ratio: 1; border-radius: 8px;
  object-fit: cover; margin-bottom: 4px;
  background: var(--surface3);
  border: 1px solid var(--border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero-btn:hover .pick-img { transform: scale(1.06); }
.hero-btn:active .pick-img { transform: scale(0.95); }
.hero-btn.selected .pick-img { box-shadow: 0 0 10px rgba(240, 176, 74, 0.35); }
.hero-btn.selected {
  border-color: var(--amber);
  background: linear-gradient(180deg, rgba(240, 176, 74, 0.2), rgba(240, 176, 74, 0.06));
  box-shadow: 0 0 14px rgba(240, 176, 74, 0.25);
}
.hero-btn.selected .hid { color: var(--amber); }
.hero-btn.selected::before {
  content: attr(data-num);
  position: absolute; top: -6px; right: -6px; z-index: 2;
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  color: #1a1300; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 8px rgba(240, 176, 74, 0.6);
}
.team-block {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.team-block h4 {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 14px; margin-bottom: 10px;
  letter-spacing: 0.4px;
}
.team-block h4 .tb-count { margin-left: auto; font-family: var(--font-body); font-size: 11px; color: var(--amber); background: var(--amber-bg); border: 1px solid rgba(240,176,74,0.35); padding: 1px 8px; border-radius: 20px; }
.tb-rad .tb-tag, .tb-rad h4 { color: var(--radiant); }
.tb-dir .tb-tag, .tb-dir h4 { color: var(--dire); }
.tb-tag {
  width: 9px; height: 9px; border-radius: 3px; flex: none;
  box-shadow: var(--glow-rad);
}
.tb-dir .tb-tag { background: var(--dire); box-shadow: var(--glow-dir); }
.tb-rad .tb-tag { background: var(--radiant); }

.pred-result {
  margin-top: 16px; padding: 18px;
  background:
    radial-gradient(400px 140px at 50% 0%, rgba(240, 176, 74, 0.12), transparent 70%),
    var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius); text-align: center;
  box-shadow: var(--shadow);
}
.pred-radiant { color: var(--radiant); font-family: var(--font-display); font-size: 24px; }
.pred-dire { color: var(--dire); font-family: var(--font-display); font-size: 24px; }
.pred-verdict {
  margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--text);
}
.pred-verdict b { color: var(--amber); }
.pred-verdict small { display: block; color: var(--muted); font-weight: 600; font-size: 11.5px; margin-top: 2px; }
.pred-bar-wrap { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; }
.pred-bar-wrap .pb-side { font-weight: 800; font-size: 11px; letter-spacing: 0.6px; }
.pb-side.rad { color: var(--radiant); }
.pb-side.dir { color: var(--dire); }
.pred-bar-wrap .prob-bar { flex: 1; margin: 0; }

/* ===== CABINET ===== */
.cabinet { padding: 20px 16px; max-width: 780px; margin: 0 auto; }
.cabinet-user { color: var(--muted); font-size: 14px; margin-bottom: 16px; font-weight: 600; }
.cabinet-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.cabinet-hero { display: flex; align-items: center; gap: 14px; }
.cabinet-hero-icon {
  width: 52px; height: 52px; border-radius: 14px; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  background: linear-gradient(135deg, var(--radiant-bg), var(--amber-bg));
  border: 1px solid var(--border2);
  box-shadow: var(--glow-amber);
}
.cabinet-hero h3 { font-family: var(--font-display); font-size: 17px; margin-bottom: 4px; }
.cabinet-hero p { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.cabinet-card .btn { margin-bottom: 0; }
.about-block h3 { font-size: 14px; margin-bottom: 8px; color: var(--amber); font-family: var(--font-display); letter-spacing: 0.3px; }
.about-block p { color: var(--muted); font-size: 13px; line-height: 1.65; font-weight: 500; }

/* ===== CABINET: Р±Р°Р»Р°РЅСЃ Рё С‚Р°СЂРёС„С‹ ===== */
.cabinet-balance {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, var(--surface), var(--surface2));
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.cab-balance-left { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cab-balance-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.cab-balance-value {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--amber);
  letter-spacing: 0.5px;
}
.cab-balance-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.cab-topup-btn { margin-bottom: 0; }
.cab-status {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.cab-status.ok { color: var(--radiant); border-color: rgba(62, 230, 180, 0.3); }
.cab-timer { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.cab-sub-btn { margin-top: 10px; padding: 11px 15px; font-size: 13.5px; border-radius: 11px; }
.cab-block-title {
  font-family: var(--font-display); font-size: 15px; color: var(--text);
  letter-spacing: 0.3px; margin-bottom: 10px;
}
.cab-balance-block { padding: 14px 16px; }
.cab-balance-rows { display: flex; flex-direction: column; gap: 8px; }
.cab-balance-row {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 13.5px; color: var(--muted); font-weight: 600;
}
.cab-balance-row b {
  font-family: var(--font-display); font-size: 16px; color: var(--amber);
  font-variant-numeric: tabular-nums; letter-spacing: 0.3px;
}
.cab-unlocked { color: var(--muted); font-size: 13px; margin: -6px 0 12px; padding-left: 2px; font-weight: 600; }

.tariffs { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.tariff-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  color: var(--text);
  font-family: var(--font-body);
  transition: border-color .15s ease, transform .1s ease;
}
.tariff-card:active { transform: scale(0.99); }
.tariff-card.sub { border-color: rgba(62, 230, 180, 0.35); }
.tariff-card.match { border-color: rgba(255, 200, 87, 0.35); }
.tariff-title2 { flex: 1 1 auto; font-weight: 700; font-size: 14px; }
.tariff-price { font-family: var(--font-display); font-size: 15px; color: var(--amber); white-space: nowrap; }
.tariff-buy-btn {
  background: var(--amber);
  color: #1a1406;
  font-weight: 800;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 10px;
  white-space: nowrap;
}
.tariff-page { text-align: center; }
.tariff-hero { font-size: 40px; margin: 6px 0 8px; }
.tariff-title { font-family: var(--font-display); font-size: 18px; margin-bottom: 6px; }
.tariff-price { font-family: var(--font-display); font-size: 22px; color: var(--amber); margin: 4px 0; }
.tariff-note { color: var(--muted); font-size: 12.5px; line-height: 1.55; margin-bottom: 14px; }
.tariff-ok { color: var(--radiant); font-weight: 700; font-size: 13.5px; padding: 10px 0; }
.tariff-err { color: var(--dire); font-weight: 600; font-size: 13px; padding: 10px 0; }
.topup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.topup-amt { display: block; width: 100%; }
#cabinet-msg, #tariff-page-msg, #topup-msg { min-height: 20px; }

/* ===== PROMO CODE (РїРѕР»Рµ РІРІРѕРґР° РїСЂРѕРјРѕРєРѕРґР°) ===== */
.promo-input {
  width: 100%;
  padding: 15px;
  margin-bottom: 10px;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.promo-input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(240, 176, 74, 0.18);
}
.promo-input::placeholder {
  color: var(--muted2);
  letter-spacing: 0.3px;
  font-weight: 500;
  text-transform: none;
}

/* ===== LOCK BOX (компактный пейволл: статус + тариф/кредит) ===== */
.lock-box {
  position: relative;
  margin: 10px 0;
  padding: 14px 14px 12px;
  border: 1px solid rgba(255, 200, 87, 0.22);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(255, 200, 87, 0.08), transparent 60%),
    var(--surface);
  text-align: center;
  overflow: hidden;
}
.lock-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.lock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 200, 87, 0.12);
  border: 1px solid rgba(255, 200, 87, 0.3);
  font-size: 13px;
  line-height: 1;
}
.lock-text {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.3px;
}
.lock-statuses {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  margin: 9px 0 11px;
}
.lock-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.lock-status b { color: var(--text); font-weight: 700; }
.lock-status.ok { color: rgba(110, 216, 154, 0.9); }
.lock-status.ok b { color: #6ed89a; }
.lock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4a5568;
  flex: none;
}
.lock-dot.ok {
  background: #6ed89a;
  box-shadow: 0 0 6px rgba(110, 216, 154, 0.6);
}
.lock-err { color: #ff7b8a; font-size: 12px; font-weight: 600; }
.lock-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: 320px;
  margin: 0 auto;
}
/* Held matches (no credit button): single full-width CTA */
.lock-btns.single { grid-template-columns: 1fr; }
.lock-btn {
  background: var(--amber);
  color: #1a1406;
  font-weight: 800;
  font-size: 12.5px;
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  box-shadow: 0 2px 10px rgba(255, 200, 87, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.lock-btn:hover { box-shadow: 0 3px 16px rgba(255, 200, 87, 0.4); }
.lock-btn:active { transform: scale(0.97); }
.lock-btn.secondary {
  background: rgba(255, 200, 87, 0.07);
  color: var(--muted);
  border: 1px solid rgba(255, 200, 87, 0.16);
  box-shadow: none;
  cursor: default;
}
.lock-btn.secondary.has-credits {
  background: transparent;
  color: var(--amber);
  border: 1.5px solid rgba(255, 200, 87, 0.75);
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 200, 87, 0.12);
}
.lock-btn.secondary.has-credits:hover {
  background: rgba(255, 200, 87, 0.08);
  box-shadow: 0 0 16px rgba(255, 200, 87, 0.28);
}
.lock-btn.secondary.has-credits:active { transform: scale(0.97); }
.lock-btn:disabled { opacity: 0.55; }
.lock-btn.big { width: 100%; margin: 6px 0; box-shadow: 0 2px 10px rgba(255, 200, 87, 0.25); }
@media (prefers-reduced-motion: reduce) {
  .lock-btn, .lock-btn.secondary.has-credits { transition: none; }
}

h4 { margin: 16px 0 8px; color: var(--text); }

/* ===== UPCOMING / PREDICTION ===== */
.upcoming-time { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.src-badge {
  display: inline-block; margin-left: 6px; padding: 2px 8px;
  font-size: 10px; border-radius: 20px; text-transform: uppercase;
  background: var(--amber-bg); color: var(--amber);
  border: 1px solid rgba(240, 176, 74, 0.35);
  font-weight: 800; letter-spacing: 0.5px;
}
/* ===== NEWS (BO3.gg) ===== */
.news-chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 12px;
  scrollbar-width: none;
}
.news-chips::-webkit-scrollbar { display: none; }
.news-chip {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 800; letter-spacing: .3px;
  background: var(--card, #1c2230); color: var(--muted);
  border: 1px solid var(--border); cursor: pointer; white-space: nowrap;
}
.news-chip.active {
  background: var(--amber-bg, rgba(240,176,74,.15));
  color: var(--amber, #f0b04a);
  border-color: rgba(240,176,74,.45);
}
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-card {
  display: flex; gap: 12px; text-decoration: none; color: inherit;
  background: var(--card, #1c2230); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px; overflow: hidden;
}
.news-card:active { opacity: .8; }
.news-img { flex: 0 0 96px; width: 96px; height: 76px; border-radius: 9px; overflow: hidden; background: #111; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-body { min-width: 0; flex: 1; }
.news-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 5px; }
.news-cat { font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--amber, #f0b04a); }
.news-date { font-size: 10.5px; color: var(--muted); }
.news-title { font-size: 13.5px; font-weight: 800; line-height: 1.3; }
.news-desc { font-size: 11.5px; color: var(--muted); margin-top: 5px; line-height: 1.35; }
.news-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.news-tag {
  font-size: 9.5px; padding: 2px 7px; border-radius: 10px;
  background: rgba(120,140,170,.15); color: #9fb3cc;
  border: 1px solid rgba(120,140,170,.3);
}
.news-card { cursor: pointer; }
/* news preview dialog */
.news-dialog-img { width: 100%; height: 180px; border-radius: 12px; overflow: hidden; background: #111; margin-bottom: 12px; }
.news-dialog-img img { width: 100%; height: 100%; object-fit: cover; }
.news-dialog-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.news-dialog-title { font-size: 17px; font-weight: 800; line-height: 1.3; margin-bottom: 12px; }
.news-dialog-text { font-size: 13px; line-height: 1.55; color: var(--text, #e8edf5); }
.news-dialog-text + .news-tags { margin-top: 12px; }
.news-dialog-note { font-size: 11px; color: var(--muted); margin: 16px 0 10px; font-style: italic; }
.news-full-text { margin-top: 14px; font-size: 13px; line-height: 1.6; color: var(--text, #e8edf5); }
.news-full-text p { margin: 0 0 12px; }
.news-full-text h2, .news-full-text h3, .news-full-text h4 {
  font-size: 14.5px; font-weight: 800; margin: 18px 0 8px; color: var(--amber, #f0b04a);
}
.news-full-text a { color: var(--amber, #f0b04a); text-decoration: underline; }
.news-full-text blockquote {
  margin: 12px 0; padding: 8px 12px; border-left: 3px solid var(--amber, #f0b04a);
  background: rgba(240,176,74,.08); border-radius: 0 8px 8px 0;
}
.news-full-text ul, .news-full-text ol { margin: 8px 0 12px; padding-left: 20px; }
.news-full-text li { margin-bottom: 5px; }


/* BO3 tournament context (stage / bracket) */
.stage-badge {
  display: inline-block; margin: 2px 0 2px 6px; padding: 2px 8px;
  font-size: 10px; border-radius: 20px; font-weight: 800;
  letter-spacing: .3px; white-space: nowrap;
  background: rgba(120,140,170,.15); color: #9fb3cc;
  border: 1px solid rgba(120,140,170,.35);
}
.stage-badge.stage-lower  { background: rgba(231,76,60,.15); color: #ff8b7a; border-color: rgba(231,76,60,.35); }
.stage-badge.stage-grand  { background: rgba(240,176,74,.15); color: var(--amber); border-color: rgba(240,176,74,.4); }
.stage-badge.stage-upper  { background: rgba(46,204,113,.15); color: #6ee7a8; border-color: rgba(46,204,113,.35); }
.stage-decider { margin-left: 4px; opacity: .9; font-weight: 700; }
.spike-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.spike-table th, .spike-table td { padding: 7px 9px; font-size: 12px; text-align: center; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.spike-table th { color: var(--muted); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.spike-verdict { font-size: 12.5px; color: var(--muted); margin-top: 8px; font-weight: 600; }
.picks-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.chip {
  font-size: 10px; padding: 3px 7px; border-radius: 9px; background: var(--surface2);
  border: 1px solid var(--border); font-weight: 700;
}
.chip.rad { color: var(--radiant); border-color: rgba(62, 230, 180, 0.4); }
.chip.dir { color: var(--dire); border-color: rgba(255, 92, 104, 0.4); }

/* ===== HERO PICKS (LIVE) ===== */
.hero-picks-row {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px 16px;
  border-top: 1px dashed var(--border);
  background: rgba(0, 0, 0, 0.14);
}
.hero-picks-row:empty { display: none; }
.hero-picks { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-end; }
.hero-picks.rad { border-left: 3px solid var(--radiant); padding-left: 9px; }
.hero-picks.dir { border-left: 3px solid var(--dire); padding-left: 9px; }
.hero-pick {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  width: 44px; position: relative;
}
.hero-pick .pick-order {
  position: absolute; top: -5px; left: -5px; z-index: 2;
  width: 16px; height: 16px; border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--amber-deep));
  color: #1a1300; font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 6px rgba(240, 176, 74, 0.5);
}
.hero-icon {
  width: 38px; height: 38px; border-radius: 9px;
  object-fit: cover; background: var(--surface2);
  border: 1px solid var(--border);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.35);
}
.hero-pick-name {
  font-size: 8.5px; line-height: 1.1; text-align: center;
  color: var(--muted); max-width: 44px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(62, 230, 180, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(62, 230, 180, 0); }
}
@keyframes liveDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 92, 104, 0.5); }
  50% { box-shadow: 0 0 0 4px rgba(255, 92, 104, 0); }
}
@keyframes liveOrangePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240, 176, 74, 0.4); }
  50% { box-shadow: 0 0 0 5px rgba(240, 176, 74, 0); }
}
@keyframes liveRedPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 92, 104, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(255, 92, 104, 0); }
}

/* ===== DIALOG ===== */
.dialog-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, 0.68);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(4px);
}
.dialog-overlay.show { opacity: 1; pointer-events: auto; }
.dialog {
  width: 100%; max-width: 720px;
  max-height: 92vh;
  display: flex; flex-direction: column;
  background:
    radial-gradient(600px 260px at 90% 0%, rgba(62, 230, 180, 0.05), transparent 60%),
    var(--bg2);
  border: 1px solid var(--border2);
  border-top-left-radius: 22px; border-top-right-radius: 22px;
  box-shadow: 0 -12px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(48px);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.3, 1);
  overflow: hidden;
}
.dialog-overlay.show .dialog { transform: translateY(0); }
.dialog-title {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 15px; letter-spacing: 0.3px;
}
.dialog-close {
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); font-size: 13px; cursor: pointer;
  padding: 5px 12px; border-radius: 9px; font-weight: 800;
  font-family: var(--font-body);
  transition: color 0.2s, border-color 0.2s, transform 0.1s;
}
.dialog-close:active { color: var(--dire); border-color: var(--dire); transform: scale(0.95); }
.dialog-body { padding: 18px; overflow-y: auto; }

/* ===== DETAIL ===== */
.detail-head { margin-bottom: 16px; }
.detail-teams {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 10px;
}
.detail-team { display: flex; align-items: center; gap: 9px; flex: 1; }
.detail-team.dir { justify-content: flex-end; text-align: right; }
.detail-team span { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.2px; }
.detail-team .team-logo { width: 32px; height: 32px; border-radius: 8px; }
.detail-team.rad { color: var(--radiant); }
.detail-team.dir { color: var(--dire); }
.detail-vs {
  color: var(--muted); font-size: 11.5px; flex: none;
  background: var(--surface2); border: 1px solid var(--border);
  padding: 4px 12px; border-radius: 20px; font-weight: 800;
  letter-spacing: 0.5px;
}
.detail-meta { color: var(--muted); font-size: 12px; text-align: center; font-weight: 600; }
.series-score {
  text-align: center;
  font-family: var(--font-display);
  font-size: 28px; letter-spacing: 4px;
  color: var(--text);
  padding: 4px 0 10px;
  font-variant-numeric: tabular-nums;
}
.series-score b { font-weight: 400; }

/* ===== MAP CARD ===== */
.map-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* ===== MAP TABS ===== */
.map-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.map-tabs::-webkit-scrollbar { display: none; }
.map-tab {
  flex: 0 1 calc((100% - 16px) / 3);
  min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px; font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.3px;
}
.map-tab small { font-size: 10px; opacity: 0.9; }
.map-tab .mc-logo { height: 10px; }
.map-tab .mc-live-dot { width: 9px; height: 9px; }
.map-tab.finished {
  color: var(--radiant);
  border-color: rgba(62, 230, 180, 0.5);
  background: var(--radiant-bg);
}
.map-tab.live {
  color: var(--dire);
  border-color: var(--dire);
  background: rgba(255, 92, 104, 0.1);
  animation: liveRedPulse 1.6s infinite;
}
.map-tab.picks { color: var(--amber); border-color: rgba(240, 176, 74, 0.45); }
.map-tab.upcoming { color: var(--muted2); }
.map-tab.active {
  box-shadow: var(--glow-amber);
  border-color: var(--amber);
}
.map-pane { display: none; }
.map-pane.active { display: block; animation: mapOpen 0.3s ease; }
.map-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 4px 0 12px;
}
.map-head .map-minute { color: var(--muted); font-size: 12px; }
.map-winner { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--green); }
.map-result {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 4px 0 10px;
}
.mr-score {
  font-family: var(--font-display);
  font-size: 17px; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.mr-dur { color: var(--muted); font-size: 12px; }
.between-maps {
  color: var(--amber); font-size: 12px; font-weight: 800;
}

/* ===== PICK/BAN (draft) ===== */
.pb-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; padding: 12px 0 6px;
}
.pb-block.rad { border-left: 3px solid var(--radiant); padding-left: 11px; }
.pb-block.dire { border-left: 3px solid var(--dire); padding-left: 11px; }
.pb-label {
  font-size: 10.5px; color: var(--muted); font-weight: 800;
  margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.6px;
}
.pb-picks { display: flex; gap: 5px; flex-wrap: wrap; }
.pb-hero {
  width: 44px; height: 44px; border-radius: 10px; overflow: hidden;
  background: var(--surface2); border: 1px solid var(--border2);
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.35);
  position: relative;
}
.pb-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-hero .pb-num {
  position: absolute; top: 2px; left: 2px;
  width: 15px; height: 15px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff; font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.pb-empty { font-size: 11px; color: var(--muted); }
.pb-bans {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  margin-top: 10px; opacity: 0.62;
}
.pb-ban-tag { font-size: 10px; color: var(--muted); margin-right: 2px; text-transform: uppercase; letter-spacing: 0.4px; font-weight: 800; }
.pb-bans .pb-hero { width: 28px; height: 28px; border-radius: 7px; }
.pb-bans .pb-hero .pb-num { display: none; }

/* ===== EXPLANATION ===== */
.explanation {
  margin-top: 14px; padding: 12px 14px;
  background: var(--surface2);
  border-radius: 12px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
}
.expl-title { font-size: 11px; font-weight: 800; color: var(--accent); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.6px; }
.expl-line { font-size: 12.5px; color: var(--text); line-height: 1.55; padding: 2px 0; font-weight: 500; }

/* ===== ANALYTICS ACCORDION ===== */
.analytics-block { max-width: 320px; }
.analytics-toggle {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 9px 13px; margin-top: 10px;
  background: var(--surface2); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 10px;
  cursor: pointer; font: inherit; text-align: left;
  color: var(--accent); font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.6px;
  -webkit-tap-highlight-color: transparent;
}
.analytics-toggle:active { background: var(--surface3); }
.analytics-label { flex: 1; }
.analytics-arrow { font-size: 10px; color: var(--muted); transition: transform 0.2s ease; }
.analytics-block.open .analytics-arrow { transform: rotate(180deg); }
.analytics-body {
  margin-top: 8px; padding: 10px 13px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px;
}
.analytics-body[hidden] { display: none; }

/* ===== PLAYERS TABLE ===== */
.players-wrap { margin-top: 14px; overflow-x: auto; }
.players-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.players-table th, .players-table td {
  padding: 7px 9px; text-align: center;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.players-table th { color: var(--muted); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.players-table td:first-child { text-align: left; }
.p-hero { display: flex; align-items: center; gap: 7px; font-weight: 600; }
.mini-hero { width: 25px; height: 25px; border-radius: 6px; object-fit: cover; flex: none; border: 1px solid var(--border); }
.p-side-row td { background: var(--surface2); font-family: var(--font-display); font-size: 12px; letter-spacing: 0.3px; }
.p-side.rad { color: var(--radiant); text-align: left; }
.p-side.dire { color: var(--dire); text-align: right; }

/* ===== TASKS DIALOG ===== */
.task-item {
  display: flex; gap: 12px;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  background: var(--surface2);
}
.task-badge { font-size: 18px; flex: none; }
.task-body { flex: 1; }
.task-title { font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.task-text { color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.task-done { border-left: 3px solid var(--green); }
.task-info { border-left: 3px solid var(--accent); }
.task-todo { border-left: 3px solid var(--muted); }

/* ===== V7 MODEL BLOCK ===== */
.v7-block {
  margin: 14px 16px 4px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.v7-toggle {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  padding: 12px 14px;
  background: none; border: none;
  color: var(--text); font-size: 13px; font-weight: 800;
  cursor: pointer;
  text-align: left;
  letter-spacing: 0.2px;
}
.v7-toggle .v7-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); flex: none;
  box-shadow: 0 0 8px rgba(240, 176, 74, 0.7);
}
.v7-toggle .v7-arrow {
  margin-left: auto; color: var(--muted); font-size: 11px;
  transition: transform 0.25s ease;
}
.v7-block.open .v7-arrow { transform: rotate(180deg); }
.v7-content { display: none; padding: 4px 14px 14px; }
.v7-block.open .v7-content { display: block; animation: mapOpen 0.25s ease; }

.v7-section-title {
  font-size: 10.5px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.6px;
  margin: 12px 0 7px;
}
.v7-section-title:first-child { margin-top: 6px; }

.v7-formulas { display: flex; flex-direction: column; gap: 5px; }
.formula-row {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px 10px;
}
.formula-name {
  flex: 1; font-size: 11px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600;
}
.formula-val {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.formula-val.rad { color: var(--radiant); }
.formula-val.dir { color: var(--dire); }

.v7-components {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.comp-item {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
}
.comp-label {
  font-size: 10px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.4px;
}
.comp-val { font-family: var(--font-display); font-size: 15px; font-variant-numeric: tabular-nums; }
.comp-val.rad { color: var(--radiant); }
.comp-val.dir { color: var(--dire); }
.comp-val.bal { color: var(--amber); }

/* ===== LIVE FACTORS ===== */
.live-factors {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 16px 10px;
}
.factor-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.factor-chip.rad { color: var(--radiant); border-color: rgba(62, 230, 180, 0.4); background: var(--radiant-bg); }
.factor-chip.dir { color: var(--dire); border-color: rgba(255, 92, 104, 0.4); background: var(--dire-bg); }
.factor-chip.warn { color: var(--amber); border-color: rgba(240, 176, 74, 0.45); background: var(--amber-bg); }
.factor-chip .fc-label { font-weight: 600; opacity: 0.85; }
.factor-chip .fc-val { font-weight: 800; }
.factor-chip.mega {
  color: #fff; border-color: var(--amber);
  background: linear-gradient(135deg, rgba(240, 176, 74, 0.4), rgba(255, 92, 104, 0.3));
  box-shadow: 0 0 12px rgba(240, 176, 74, 0.3);
}

@media (hover: hover) {
  .match-card:hover { border-color: var(--border2); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
  .sp-card:hover { border-color: var(--border2); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
  .hero-card:hover, .team-card:hover, .player-card:hover { border-color: var(--border2); }
}

@keyframes mapOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== PLAYER SIDES (СЃРѕСЃС‚Р°РІС‹: РЅРёРєРё + РёРєРѕРЅРєРё РіРµСЂРѕРµРІ) ===== */
.player-sides {
  display: flex;
  gap: 10px;
  padding: 4px 0 12px;
}
.ps-col {
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}
.ps-col.rad { border-top: 2px solid var(--radiant); }
.ps-col.dir { border-top: 2px solid var(--dire); }
.ps-title {
  font-size: 10px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 6px 8px; color: var(--muted);
}
.ps-col.rad .ps-title { color: var(--radiant); background: var(--radiant-bg); }
.ps-col.dir .ps-title { color: var(--dire); background: var(--dire-bg); }
.ps-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 6px 8px;
}
.ps-row + .ps-row { border-top: 1px solid rgba(255, 255, 255, 0.04); }
.ps-pos {
  width: 16px; height: 16px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800;
  border-radius: 50%;
  color: var(--muted2);
  border: 1px solid var(--border2);
  background: var(--surface2);
}
.ps-ava {
  flex: none; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
}
.ps-icon {
  width: 44px; height: 44px; flex: none;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface2);
}
.ps-ico-empty { background: var(--surface3); }
.ps-info {
  flex: none; width: 44px;
  min-width: 0;
  text-align: center;
}
.ps-name {
  display: block;
  width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 9px; font-weight: 800;
  color: var(--nick);
  line-height: 1.25;
}
.ps-hero { display: block; color: var(--muted2); font-size: 9px; }
.ps-stats {
  display: block;
  font-size: 7.5px; line-height: 1.5;
  color: var(--muted);
}
.ps-lvl { display: block; white-space: nowrap; }
.ps-level {
  display: inline;
  font-size: 7.5px; font-weight: 800;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.ps-sep { display: inline; color: var(--muted2); }
.ps-kda {
  display: inline;
  font-size: 7.5px; font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ps-nw {
  display: block;
  font-size: 7.5px; font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ===== MINI-MAP (Р±Р°С€РЅРё) ===== */
#live-map-zone { padding: 0; }
.mm-wrap {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: #0a0f14;
}
.mini-map {
  display: block;
  width: 100%;
  height: auto;
}
.mm-up { fill: none; stroke: rgba(255, 92, 104, 0.55); stroke-width: 1.4; stroke-dasharray: 3 2; opacity: 0.5; }
.mm-note {
  font-family: var(--font-body); font-size: 5.5px; font-weight: 700;
  fill: #5d7184;
  letter-spacing: 0.5px;
}
.mm-top {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(10, 15, 20, 0.82);
  border: 1px solid rgba(255, 92, 104, 0.35);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}
.mm-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff3b4d;
  animation: livePulse 1.3s ease-in-out infinite;
}
.mm-clock {
  font-family: var(--font-display);
  font-size: 14px;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}
.mm-foot {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 7px 12px;
  font-size: 10.5px; font-weight: 800;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border);
}
.mm-side.rad { color: var(--radiant); }
.mm-side.dir { color: var(--dire); }

[data-theme="light"] .mm-foot { background: rgba(255, 255, 255, 0.5); }

/* ===== MINI-MAP v2 (РєР°СЂС‚Р° 7.41, С‚РѕС‡РЅС‹Рµ РїРѕР·РёС†РёРё, СЂРѕС€Р°РЅ) ===== */
.mm-wrap { --mmw: 380px; }
.mm2 {
  position: relative;
  width: 100%;
  height: auto;
  background: #0d1218;
  user-select: none;
  touch-action: manipulation;
}
.mm2::before {
  content: "";
  display: block;
  padding-top: 100%;
}
.mm2-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  opacity: .96;
  pointer-events: none;
}
.mm2-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mm2-mark { position: absolute; transform: translate(-50%, -50%); }
.mm2-tower {
  width: calc(var(--mmw) * 0.026);
  height: calc(var(--mmw) * 0.026);
  border-radius: 50%;
  border: calc(var(--mmw) * 0.0032) solid #000;
  box-shadow: 0 0 0 calc(var(--mmw) * 0.002) rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.5);
}
.mm2-tower.rad { background: var(--radiant); box-shadow: 0 0 0 calc(var(--mmw) * 0.002) rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.5); }
.mm2-tower.dir { background: var(--dire); box-shadow: 0 0 0 calc(var(--mmw) * 0.002) rgba(0,0,0,.55), 0 1px 3px rgba(0,0,0,.5); }
.mm2-tower.down {
  background: transparent;
  border: calc(var(--mmw) * 0.0032) solid #5a6a7a;
  box-shadow: 0 0 0 calc(var(--mmw) * 0.002) rgba(0,0,0,.4);
}
.mm2-tower.down::after {
  content: "вњ•";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #8b9cb0;
  font-size: calc(var(--mmw) * 0.019);
  font-weight: 700; line-height: 1;
}
.mm2-ancient {
  width: calc(var(--mmw) * 0.042);
  height: calc(var(--mmw) * 0.042);
  border-radius: calc(var(--mmw) * 0.013);
  border: calc(var(--mmw) * 0.004) solid #000;
  box-shadow: 0 0 0 calc(var(--mmw) * 0.002) rgba(0,0,0,.6);
  transform: translate(-50%, -50%) rotate(45deg);
}
.mm2-ancient.rad { background: var(--radiant); }
.mm2-ancient.dir { background: var(--dire); }
.mm2-ancient.down {
  background: #141c24;
  border: calc(var(--mmw) * 0.004) solid #4a5a6a;
  color: transparent;
  box-shadow: none;
}
.mm2-ancient.down::after {
  content: "вњ•";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(-45deg);
  color: #8b9cb0;
  font-size: calc(var(--mmw) * 0.024);
  font-weight: 700;
}
.mm2-barrack {
  width: calc(var(--mmw) * 0.017);
  height: calc(var(--mmw) * 0.017);
  border-radius: calc(var(--mmw) * 0.004);
  border: calc(var(--mmw) * 0.0022) solid #000;
  box-shadow: 0 0 0 calc(var(--mmw) * 0.0018) rgba(0,0,0,.4);
}
.mm2-barrack.rad { background: var(--radiant); }
.mm2-barrack.dir { background: var(--dire); }
.mm2-barrack.down { background: #141c24; border-color: #4a5a6a; }
.mm2-roshan { position: absolute; transform: translate(-50%, -50%); }
.mm2-ring {
  width: calc(var(--mmw) * 0.036);
  height: calc(var(--mmw) * 0.036);
  border-radius: 50%;
  border: calc(var(--mmw) * 0.0032) dashed rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
}
.mm2-inner {
  width: calc(var(--mmw) * 0.013);
  height: calc(var(--mmw) * 0.013);
  border-radius: 50%;
  background: rgba(255,255,255,.28);
}
.mm2-top {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  width: calc(100% - 20px);
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(10, 15, 20, 0.82);
  border: 1px solid rgba(255, 92, 104, 0.35);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
}
.mm2-team {
  display: flex; align-items: center; gap: 5px;
  min-width: 0; flex: 1 1 0;
}
.mm2-team.dir { justify-content: flex-end; }
.mm2-team-logo { display: flex; flex: none; }
.mm2-team-logo .team-logo { width: 20px; height: 20px; border-radius: 5px; }
.mm2-team-name {
  font-size: 11.5px; font-weight: 800;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}
.mm2-team-kills {
  font-size: 15px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  flex: none;
}
.mm2-killbox {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  flex: none;
}
.mm2-gold {
  position: absolute;
  top: calc(100% + 7px); left: 50%;
  transform: translateX(-50%);
  font-size: 10.5px; font-weight: 800;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}
.mm2-team.rad .mm2-team-name, .mm2-team.rad .mm2-team-kills { color: var(--radiant); }
.mm2-team.dir .mm2-team-name, .mm2-team.dir .mm2-team-kills { color: var(--dire); }
.mm2-top .mm-clock { flex: none; margin: 0 2px; }
.mm2-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px;
  background: var(--surface2);
  border-top: 1px solid var(--border);
}
.mm2-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  min-width: 0;
}
.mm2-label {
  font-size: 9.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.mm2-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.mm2-row + .mm2-row { margin-top: 5px; }
.mm2-sw { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mm2-sw.rad { background: var(--radiant); }
.mm2-sw.dir { background: var(--dire); }
.mm2-bars { display: flex; gap: 1px; flex: 1; min-width: 0; }
.mm2-bar-seg {
  width: calc(var(--mmw) * 0.012);
  height: 9px;
  border-radius: 1px;
  background: #2a3947;
  flex-shrink: 0;
}
.mm2-bar-seg.on.rad { background: var(--radiant); }
.mm2-bar-seg.on.dir { background: var(--dire); }
.mm2-cnt { font-size: 11px; font-weight: 700; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.mm2-cnt small { font-size: 9px; font-weight: 600; color: var(--muted); }
.mm2-net-row { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mm2-net-row + .mm2-net-row { margin-top: 4px; }
.mm2-net-rad { color: var(--radiant); }
.mm2-net-dir { color: var(--dire); }
.mm2-roshan-list { display: flex; flex-direction: column; gap: 4px; }
.mm2-roshan-row { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; min-width: 0; }
.mm2-roshan-row .mm2-no { color: var(--muted); font-weight: 600; font-size: 10px; flex-shrink: 0; }
.mm2-roshan-row .mm2-sw { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mm2-roshan-row .mm2-tm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm2-roshan-row .mm2-tm.rad { color: var(--radiant); }
.mm2-roshan-row .mm2-tm.dir { color: var(--dire); }
[data-theme="light"] .mm2-stats { background: rgba(255, 255, 255, 0.55); }

/* ================= CS2 РІРєР»Р°РґРєР° ================= */
.game-switch {
  display: flex;
  gap: 6px;
  padding: 8px 12px 2px;
}
.game-btn {
  flex: 1;
  padding: 7px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface2);
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.game-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cs2-maps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 6px; padding: 10px 16px 10px;
}
.cs2-maps .map-chip {
  display: flex; align-items: center; justify-content: flex-start; gap: 8px;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  border-radius: 9px;
  font-size: 11px; font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.3px;
  line-height: 1;
  overflow: hidden;
}
.cs2-maps .map-chip .mc-label { flex: 0 0 auto; text-align: left; color: var(--amber); }
.cs2-maps .map-chip .mc-map {
  overflow: hidden; text-overflow: ellipsis;
  min-width: 0; flex: 1 1 auto; text-align: left;
}
.cs2-maps .map-chip .mc-score { flex: none; }
.cs2-maps .map-chip .mc-live-dot { flex: none; }
.cs2-maps .map-chip .mc-live-text {
  flex: none; color: var(--dire); font-size: 9px; font-weight: 800;
  letter-spacing: 0.4px;
}
.cs2-maps .map-chip.finished {
  color: var(--radiant);
  border-color: rgba(62, 230, 180, 0.5);
  background: var(--radiant-bg);
}
.cs2-maps .map-chip.live {
  color: var(--dire);
  border-color: var(--dire);
  background: rgba(255, 92, 104, 0.1);
  animation: liveRedPulse 1.6s infinite;
}
.cs2-maps .map-chip.upcoming { color: var(--muted2); }
.cs2-maps .map-chip .mc-score { color: var(--text); }
.cs2-badge {
  display: inline-block; padding: 2px 9px; border-radius: 9px;
  font-size: 11px; font-weight: 800;
  color: var(--amber);
  background: var(--amber-bg);
  border: 1px solid rgba(240, 176, 74, 0.4);
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.cs2-badge.live {
  color: var(--radiant);
  border-color: rgba(62, 230, 180, 0.5);
  background: var(--radiant-bg);
}
.cs2-badge.sched { color: var(--muted2); border-color: var(--border); background: var(--surface); }
.cs2-badge.done {
  color: var(--radiant);
  border-color: rgba(62, 230, 180, 0.5);
  background: var(--radiant-bg);
}
.cs2-time { color: var(--muted); font-weight: 600; font-size: 11.5px; }
.cs2-mapsum { color: var(--muted); font-size: 11.5px; }
.cs2-detail-maps { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.cs2-detail-map {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px; font-size: 13px;
}
.cs2-detail-map .mc-map { color: var(--muted); font-size: 11px; }
.cs2-streams { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.cs2-stream { font-size: 12px; color: var(--muted); }
.team-logo, .team-logo-sm {
  width: 24px; height: 24px; border-radius: 6px;
  object-fit: contain; background: var(--surface2);
  flex: none; border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.detail-team .team-logo { width: 30px; height: 30px; }
.match-score.win { color: var(--radiant); font-weight: 800; }
.cs2-tabs { display: flex; border-bottom: 1px solid var(--border); margin: 12px 0 0; }
.cs2-tabs .tab-btn { flex: 1; }
.cs2-ptables { display: flex; flex-direction: column; gap: 10px; }
.cs2-ptable {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
}
.cs2-ptable-head {
  padding: 7px 12px; font-size: 11px; font-weight: 800;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px;
  background: var(--surface3); border-bottom: 1px solid var(--border);
}
.cs2-prow {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.cs2-prow:last-child { border-bottom: none; }
.cs2-pname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cs2-pstat { color: var(--muted); font-weight: 700; min-width: 40px; text-align: right; }
.cs2-prating { min-width: 40px; text-align: right; font-weight: 800; }
.cs2-prating.pos { color: var(--radiant); }
.cs2-prating.neg { color: var(--muted); }
.cs2-pnote { margin-top: 8px; font-size: 11.5px; color: var(--muted); text-align: center; }

.cs2-live-block { margin-top: 10px; }
.cs2-live-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.cs2-live-map { font-weight: 800; color: var(--text); }
.cs2-live-round { text-align: right; }
.cs2-live-tag { color: var(--amber); font-size: 11px; font-weight: 800; letter-spacing: 0.5px; margin-top: 4px; }
.cs2-side { color: var(--muted); font-size: 10px; font-weight: 600; }

.cs2-map-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px; margin: 12px 0 10px;
}
.cs2-map-tab {
  min-width: 0;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 9px; padding: 8px 6px; font-size: 11px; cursor: pointer;
  color: var(--muted); white-space: nowrap; font-weight: 800; letter-spacing: 0.3px;
}
.cs2-map-tab.active {
  color: var(--radiant);
  border-color: rgba(62, 230, 180, 0.5);
  background: var(--radiant-bg);
}
.cs2-map-num { flex-shrink: 0; font-weight: 800; color: var(--amber); }
.cs2-map-name {
  flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  font-weight: 700;
}
.cs2-map-score { flex-shrink: 0; font-weight: 800; color: var(--text); }
.cs2-live-dot { flex-shrink: 0; color: var(--amber); font-weight: 800; font-size: 9px; }
.cs2-map-body { margin-top: 4px; }
.cs2-map-title {
  font-size: 12px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.4px; margin: 0 0 6px;
  display: flex; align-items: baseline; gap: 8px;
}
.cs2-map-mini { color: var(--text); font-weight: 800; }

/* ============================================================
   PREMIUM OVERRIDE вЂ” С‚РµСЃС‚РѕРІР°СЏ СЃС‚СЂР°РЅРёС†Р° (/app-test)
   РўС‘РјРЅР°СЏ СЃС‚РµРєР»СЏРЅРЅР°СЏ РїСЂРµРјРёСѓРј-С‚РµРјР°: aurora-С„РѕРЅ, glass-РєР°СЂС‚РѕС‡РєРё,
   Р·РѕР»РѕС‚С‹Рµ Р°РєС†РµРЅС‚С‹, РЅРµРѕРЅРѕРІС‹Рµ СЃРІРµС‡РµРЅРёСЏ. Р’СЃРµ Р°РЅРёРјР°С†РёРё вЂ” transform/opacity.
   ============================================================ */

:root {
  --bg0: #04070d;
  --bg1: #080d16;
  --bg2: #0c1320;
  --surface: rgba(17, 25, 40, 0.72);
  --surface2: rgba(24, 35, 55, 0.78);
  --surface3: rgba(34, 49, 76, 0.85);
  --border: rgba(140, 165, 200, 0.16);
  --border2: rgba(170, 195, 230, 0.28);
  --text: #f2f6fb;
  --muted: #9db0c6;
  --muted2: #64778d;

  --radiant: #3ee6b4;
  --radiant-deep: #1fae87;
  --radiant-bg: rgba(62, 230, 180, 0.14);
  --dire: #ff5c68;
  --dire-deep: #e23a48;
  --dire-bg: rgba(255, 92, 104, 0.14);
  --amber: #ffb84d;
  --amber-deep: #e08f2a;
  --amber-bg: rgba(255, 184, 77, 0.14);
  --accent: #6cb4ff;
  --green: #3fd46e;
  --nick: #ff5c68;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.55);
  --glow-rad: 0 0 20px rgba(62, 230, 180, 0.45);
  --glow-dir: 0 0 20px rgba(255, 92, 104, 0.45);
  --glow-amber: 0 0 22px rgba(255, 184, 77, 0.45);

  --font-body: 'Exo 2', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Russo One', 'Exo 2', system-ui, sans-serif;
}

body {
  background:
    radial-gradient(1100px 560px at 85% -10%, rgba(62, 230, 180, 0.10), transparent 60%),
    radial-gradient(900px 600px at -15% 25%, rgba(255, 92, 104, 0.08), transparent 55%),
    radial-gradient(800px 460px at 50% 120%, rgba(108, 180, 255, 0.08), transparent 60%),
    radial-gradient(700px 380px at 15% 75%, rgba(255, 184, 77, 0.05), transparent 55%),
    linear-gradient(180deg, #050810, #04070d 60%);
  background-attachment: fixed;
}

/* ===== TOPBAR: СЃС‚РµРєР»СЏРЅРЅР°СЏ С€Р°РїРєР° СЃ Р·РѕР»РѕС‚С‹Рј СЃРІРµС‡РµРЅРёРµРј ===== */
.topbar {
  background: linear-gradient(180deg, rgba(9, 14, 24, 0.88), rgba(5, 9, 16, 0.78));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 184, 77, 0.14);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  padding: 12px 16px;
}
/* topbar-logo frame removed (second def) */
.topbar-title {
  background: linear-gradient(90deg, #fff, #ffd98a 55%, #ffb84d);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.topbar-sub { letter-spacing: 0.4px; }
.topbar-live {
  border: 1px solid rgba(62, 230, 180, 0.55);
  background: linear-gradient(135deg, rgba(62, 230, 180, 0.22), rgba(62, 230, 180, 0.08));
  box-shadow: 0 0 18px rgba(62, 230, 180, 0.3);
  padding: 6px 13px;
}

/* ===== GAME SWITCH: РїСЂРµРјРёР°Р»СЊРЅС‹Рµ СЃРµРіРјРµРЅС‚С‹ ===== */
.game-switch {
  position: sticky;
  top: 67px;            /* высота .topbar (sticky top:0) */
  z-index: 35;
  padding: 10px 14px 4px;
  gap: 8px;
  background: linear-gradient(180deg, rgba(7, 11, 18, 0.97), rgba(7, 11, 18, 0.88));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
[data-theme="light"] .game-switch {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(240, 244, 250, 0.92));
}
.game-btn {
  border-radius: 12px;
  border: 1px solid rgba(140, 165, 200, 0.2);
  background: rgba(20, 30, 48, 0.6);
  color: var(--muted);
  padding: 8px 0;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.game-btn.active {
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.9), rgba(224, 143, 42, 0.95));
  color: #1a1200;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(255, 184, 77, 0.45);
  font-weight: 800;
}
.game-btn.active::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  animation: gameShine 2.8s ease-in-out infinite; will-change:transform;
}
@keyframes gameShine {
  0% { transform: skewX(-20deg) translateX(0); }
  55%, 100% { transform: skewX(-20deg) translateX(422%); }
}

/* ===== TABS: СЃС‚РµРєР»СЏРЅРЅС‹Рµ РїРёР»СЋР»Рё ===== */
.tabs { gap: 6px; padding: 10px 14px 4px; }
.tab-btn {
  border-radius: 11px;
  background: rgba(20, 30, 48, 0.55);
  border: 1px solid rgba(140, 165, 200, 0.18);
  color: var(--muted);
  padding: 8px 14px;
  transition: all 0.25s ease;
}
.tab-btn.active {
  background: linear-gradient(135deg, rgba(62, 230, 180, 0.25), rgba(62, 230, 180, 0.08));
  border-color: rgba(62, 230, 180, 0.55);
  color: var(--radiant);
  box-shadow: 0 0 16px rgba(62, 230, 180, 0.25);
}

/* ===== TOURNAMENT: СЃС‚РµРєР»СЏРЅРЅР°СЏ СЃРµРєС†РёСЏ ===== */
.tournament {
  background: linear-gradient(180deg, rgba(20, 30, 48, 0.55), rgba(13, 20, 34, 0.5));
  border: 1px solid rgba(140, 165, 200, 0.16);
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.tournament-header {
  background: linear-gradient(180deg, rgba(255, 184, 77, 0.06), transparent);
  border-bottom: 1px solid rgba(140, 165, 200, 0.12);
}
.tournament-name { letter-spacing: 0.3px; }
.tournament-count {
  background: rgba(255, 184, 77, 0.14);
  border: 1px solid rgba(255, 184, 77, 0.3);
  color: var(--amber);
}

/* ===== MATCH CARD: РїСЂРµРјРёР°Р»СЊРЅР°СЏ РєР°СЂС‚РѕС‡РєР° ===== */
.match-card {
  background: linear-gradient(180deg, rgba(24, 35, 55, 0.5), rgba(14, 22, 36, 0.45));
  border: 1px solid rgba(140, 165, 200, 0.16);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.25s;
}
.match-card.clickable:active { transform: scale(0.99); }
.match-card .match-row { background: transparent; }

.sp-card {
  background: linear-gradient(180deg, rgba(24, 35, 55, 0.5), rgba(14, 22, 36, 0.45));
  border: 1px solid rgba(140, 165, 200, 0.16);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.25s;
}
.sp-card .sp-row { background: transparent; }

/* ===== team-line: РїРѕРґС‡С‘СЂРєРЅСѓС‚С‹Р№ Р°РєС†РµРЅС‚ ===== */
.team-line { border-radius: 10px; transition: background 0.2s; }
.team-logo, .team-logo-sm {
  border-radius: 8px;
  border: 1px solid rgba(170, 195, 230, 0.25);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}

/* ===== Р•Р”РРќРђРЇ РЎР•РўРљРђ Р РђРЎРџРРЎРђРќРР• / Р Р•Р—РЈР›Р¬РўРђРўР« (РїСЂРµРјРёСѓРј) ===== */
#schedule-list .match-row,
#results-list .match-row {
  border-bottom: none;
  padding-bottom: 2px;
}
#schedule-list .score-col,
#results-list .score-col {
  min-width: 48px;
  gap: 8px;
}
#schedule-list .match-score.pct-rad {
  color: var(--radiant);
  text-shadow: 0 0 14px rgba(62, 230, 180, 0.45);
}
#schedule-list .match-score.pct-dir {
  color: var(--dire);
  text-shadow: 0 0 14px rgba(255, 92, 104, 0.45);
}
#schedule-list .score-wrap .score-col {
  background: rgba(20, 30, 48, 0.55);
  border: 1px solid rgba(140, 165, 200, 0.16);
  border-radius: 12px;
  padding: 6px 10px;
  min-width: 52px;
}
#results-list .match-score {
  font-size: 17px;
  text-shadow: 0 0 12px rgba(62, 230, 180, 0.35);
}
#results-list .match-score.win { color: var(--radiant); }
#results-list .result-win {
  background: linear-gradient(135deg, rgba(62, 230, 180, 0.22), rgba(62, 230, 180, 0.08));
  border: 1px solid rgba(62, 230, 180, 0.5);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 10.5px;
  letter-spacing: 0.4px;
  box-shadow: 0 0 12px rgba(62, 230, 180, 0.2);
}
#results-list .team-line .result-win { margin-left: 0; }
#schedule-list .mid-col,
#results-list .mid-col {
  font-size: 11px;
  color: var(--muted2);
  gap: 5px;
}
#schedule-list .src-badge,
#results-list .src-badge {
  background: rgba(255, 184, 77, 0.14);
  border-color: rgba(255, 184, 77, 0.35);
  color: var(--amber);
  box-shadow: 0 0 10px rgba(255, 184, 77, 0.12);
}

/* ===== SEC TITLE: Р·РѕР»РѕС‚РѕР№ ===== */
.sec-title { letter-spacing: 0.6px; }
.sec-title::before {
  background: linear-gradient(180deg, var(--amber), var(--amber-deep));
  box-shadow: 0 0 12px rgba(255, 184, 77, 0.6);
  border-radius: 3px;
}

/* ===== PROB BAR: РЅРµРѕРЅРѕРІС‹Р№ ===== */
.prob-bar {
  height: 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}
.prob-bar::after {
  border-radius: 6px;
  background: linear-gradient(90deg, var(--radiant), var(--amber));
  box-shadow: 0 0 14px rgba(62, 230, 180, 0.4);
}

/* ===== РљРќРћРџРљР: Р·РѕР»РѕС‚РѕР№ РіСЂР°РґРёРµРЅС‚ + Р±Р»РёРє ===== */
.btn {
  background: linear-gradient(135deg, #ffc35c, #e08f2a);
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(255, 184, 77, 0.35);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0; left: -60%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: gameShine 3.2s ease-in-out infinite; will-change:transform;
}

/* ===== РљРђР РўРћР§РљР (hero/team/player/analytics) ===== */
.hero-card, .team-card, .player-card, .analytics-card {
  background: linear-gradient(180deg, rgba(24, 35, 55, 0.5), rgba(14, 22, 36, 0.45));
  border: 1px solid rgba(140, 165, 200, 0.16);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.hero-card::before {
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(62, 230, 180, 0.5);
}
.hc-avatar, .t-logo, .pc-avatar {
  border-radius: 12px;
  border: 1px solid rgba(170, 195, 230, 0.25);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.hc-rank.top, .hc-stat, .t-wr { text-shadow: 0 0 14px rgba(255, 184, 77, 0.35); }

/* ===== CABINET: СЃС‚РµРєР»СЏРЅРЅС‹Р№ ===== */
.cabinet-card, .cabinet-balance, .cab-status {
  background: linear-gradient(180deg, rgba(24, 35, 55, 0.55), rgba(14, 22, 36, 0.5));
  border: 1px solid rgba(140, 165, 200, 0.18);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.cabinet-balance {
  background: linear-gradient(135deg, rgba(255, 184, 77, 0.12), rgba(24, 35, 55, 0.5));
}
.cab-balance-value {
  text-shadow: 0 0 18px rgba(255, 184, 77, 0.4);
}
.tariff-card {
  background: linear-gradient(180deg, rgba(24, 35, 55, 0.5), rgba(14, 22, 36, 0.45));
  border-radius: 16px;
  border: 1px solid rgba(140, 165, 200, 0.18);
}
.tariff-card.sub { border-color: rgba(62, 230, 180, 0.45); box-shadow: 0 0 16px rgba(62, 230, 180, 0.15); }
.tariff-card.match { border-color: rgba(255, 184, 77, 0.45); box-shadow: 0 0 16px rgba(255, 184, 77, 0.15); }

/* ===== INPUTS: РїСЂРµРјРёР°Р»СЊРЅС‹Рµ РїРѕР»СЏ ===== */
select, input[type=number], .promo-input {
  background: rgba(20, 30, 48, 0.7);
  border: 1px solid rgba(140, 165, 200, 0.25);
  border-radius: 13px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
}
select:focus, input:focus, .promo-input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 184, 77, 0.18), inset 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ===== DIALOG: РїСЂРµРјРёР°Р»СЊРЅР°СЏ С€С‚РѕСЂРєР° ===== */
.dialog {
  background:
    radial-gradient(600px 260px at 90% 0%, rgba(62, 230, 180, 0.08), transparent 60%),
    linear-gradient(180deg, rgba(16, 24, 40, 0.97), rgba(8, 12, 22, 0.98));
  border: 1px solid rgba(140, 165, 200, 0.2);
  border-top-left-radius: 26px; border-top-right-radius: 26px;
  box-shadow: 0 -18px 60px rgba(0, 0, 0, 0.7);
}
.dialog-title {
  background: linear-gradient(180deg, rgba(255, 184, 77, 0.08), transparent);
  border-bottom: 1px solid rgba(140, 165, 200, 0.14);
}
.dialog-close {
  border-radius: 10px;
  border-color: rgba(140, 165, 200, 0.25);
}
.detail-vs {
  border-color: rgba(255, 184, 77, 0.3);
  color: var(--amber);
  background: rgba(255, 184, 77, 0.1);
  box-shadow: 0 0 12px rgba(255, 184, 77, 0.15);
}

/* ===== CS2: РїСЂРµРјРёР°Р»СЊРЅС‹Рµ С‡РёРїС‹ Рё Р±Р»РѕРєРё ===== */
.cs2-badge {
  border-radius: 10px;
  border: 1px solid rgba(255, 184, 77, 0.4);
}
.cs2-badge.live, .cs2-badge.done { border-color: rgba(62, 230, 180, 0.5); }
.cs2-maps .map-chip {
  border-radius: 11px;
  background: rgba(20, 30, 48, 0.55);
  border: 1px solid rgba(140, 165, 200, 0.18);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}
.cs2-maps .map-chip.finished {
  border-color: rgba(62, 230, 180, 0.5);
  background: linear-gradient(135deg, rgba(62, 230, 180, 0.16), rgba(62, 230, 180, 0.05));
}
.cs2-maps .map-chip.live {
  border-color: rgba(255, 92, 104, 0.6);
  background: linear-gradient(135deg, rgba(255, 92, 104, 0.16), rgba(255, 92, 104, 0.05));
}
.cs2-ptable {
  background: rgba(20, 30, 48, 0.55);
  border-radius: 12px;
  border: 1px solid rgba(140, 165, 200, 0.16);
}
.cs2-ptable-head { background: rgba(34, 49, 76, 0.6); }

/* ===== SKELETON: РјСЏРіРєРёР№ РїСѓР»СЊСЃ ===== */
.sk-card, .sk-line, .sk-avatar {
  background: linear-gradient(90deg, rgba(24, 35, 55, 0.5), rgba(34, 49, 76, 0.6), rgba(24, 35, 55, 0.5));
  background-size: 200% 100%;
  animation: skPulse 1.4s ease-in-out infinite;
  border-radius: 10px;
}
@keyframes skPulse {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ===== LIGHT THEME Р°РґР°РїС‚Р°С†РёСЏ ===== */
[data-theme="light"] {
  --bg0: #e9eef6;
  --bg1: #eef2f9;
  --bg2: #e2e9f3;
  --surface: rgba(255, 255, 255, 0.8);
  --surface2: rgba(240, 245, 252, 0.9);
  --surface3: rgba(224, 233, 244, 0.95);
  --border: rgba(35, 60, 95, 0.14);
  --border2: rgba(35, 60, 95, 0.22);
  --text: #141d2b;
  --muted: #4a5f78;
  --muted2: #7a8ca1;
  --amber: #c07f16;
  --amber-deep: #96620f;
  --amber-bg: rgba(192, 127, 22, 0.12);
}
[data-theme="light"] body {
  background:
    radial-gradient(1100px 560px at 85% -10%, rgba(62, 230, 180, 0.10), transparent 60%),
    radial-gradient(900px 600px at -15% 25%, rgba(255, 92, 104, 0.06), transparent 55%),
    linear-gradient(180deg, #f2f6fc, #e9eef6 60%);
}
[data-theme="light"] .topbar {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(240, 245, 252, 0.75));
  border-bottom: 1px solid rgba(35, 60, 95, 0.12);
}
[data-theme="light"] .tournament,
[data-theme="light"] .match-card, [data-theme="light"] .sp-card,
[data-theme="light"] .hero-card, [data-theme="light"] .team-card,
[data-theme="light"] .player-card, [data-theme="light"] .analytics-card,
[data-theme="light"] .cabinet-card, [data-theme="light"] .tariff-card,
[data-theme="light"] .cabinet-balance, [data-theme="light"] .cab-status {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(35, 60, 95, 0.14);
  box-shadow: 0 8px 24px rgba(35, 60, 95, 0.12);
}
[data-theme="light"] .btn {
  background: linear-gradient(135deg, #f0b04a, #d9942e);
  box-shadow: 0 6px 18px rgba(192, 127, 22, 0.3);
}
[data-theme="light"] #schedule-list .score-wrap .score-col {
  background: rgba(240, 245, 252, 0.9);
  border-color: rgba(35, 60, 95, 0.14);
  box-shadow: none;
}
[data-theme="light"] #results-list .result-win {
  background: rgba(62, 230, 180, 0.16);
  border-color: rgba(31, 174, 135, 0.4);
  box-shadow: none;
}
[data-theme="light"] .game-btn.active {
  background: linear-gradient(135deg, #f0b04a, #d9942e);
  color: #fff;
}/* ===== АНАЛИТИКА: шторки (дышащие столбики + секции) ===== */
.ana-bars { width: 15px; height: 15px; flex: 0 0 15px; }
.ana-bars rect { fill: var(--amber, #f5a623); }
.ana-bars .ab1 { animation: anaBreathe1 1.6s ease-in-out infinite; transform-origin: bottom; }
.ana-bars .ab2 { animation: anaBreathe2 1.6s ease-in-out .25s infinite; transform-origin: bottom; }
.ana-bars .ab3 { animation: anaBreathe3 1.6s ease-in-out .5s infinite; transform-origin: bottom; }
@keyframes anaBreathe1 { 0%,100% { transform: scaleY(.45); } 50% { transform: scaleY(1); } }
@keyframes anaBreathe2 { 0%,100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
@keyframes anaBreathe3 { 0%,100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  .ana-bars rect { animation: none !important; transform: none !important; }
}

/* Шторка в live-карточке и в детале (единый стиль с .analytics-shutter) */
.analytics-shutter.ana-live,
.analytics-shutter.ana-map,
.analytics-shutter.ana-ser {
  margin: 8px 12px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 10px);
  overflow: hidden;
  background: var(--surface2);
}
.analytics-shutter.ana-live > .analytics-shutter-header,
.analytics-shutter.ana-map > .analytics-shutter-header,
.analytics-shutter.ana-ser > .analytics-shutter-header {
  display: flex; align-items: center; gap: 7px;
  width: 100%; padding: 9px 12px;
  background: transparent; border: none; cursor: pointer;
  color: var(--text); font: inherit;
}
.analytics-shutter.ana-live > .analytics-shutter-header:active,
.analytics-shutter.ana-map > .analytics-shutter-header:active,
.analytics-shutter.ana-ser > .analytics-shutter-header:active { background: var(--surface3); }
.analytics-shutter .analytics-label {
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--accent, var(--amber, #f5a623));
  flex: 1; text-align: left;
}
.analytics-shutter .analytics-arrow { transition: transform .2s ease; color: var(--hint); font-size: 12px; }
.analytics-shutter.open .analytics-arrow { transform: rotate(180deg); }
.analytics-shutter-body { padding: 2px 10px 10px; }
.analytics-shutter-body[hidden] { display: none; }

/* Секции формата Б */
.ana-sec { margin-top: 7px; }
.ana-sec:first-child { margin-top: 4px; }
.ana-sec-title {
  font-size: 9.5px; font-weight: 800; letter-spacing: .8px;
  text-transform: uppercase; color: var(--hint); margin-bottom: 3px;
}
.ana-sec .expl-line { font-size: 12.5px; line-height: 1.45; color: var(--text); }

/* Прогресс «Анализирую N%» */
.ana-progress { padding: 10px 2px 4px; }
.ana-progress-label { font-size: 12.5px; color: var(--hint); margin-bottom: 7px; }
.ana-progress-label .ana-pct { color: var(--amber, #f5a623); font-weight: 700; }
.ana-progress-bar {
  height: 6px; border-radius: 4px; background: var(--surface3);
  overflow: hidden; position: relative;
}
.ana-progress-bar i {
  display: block; height: 100%; width: 1%;
  background: linear-gradient(90deg, var(--amber, #f5a623), #ffd166);
  border-radius: 4px; transition: width .18s ease;
}
/* ===== Деталь матча: шапка в стиле списка (команды друг под другом) ===== */
.detail-match-row { border-bottom: none; padding: 10px 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); }
.detail-match-row .team-line span { font-family: var(--font-display); font-size: 13.5px; letter-spacing: .2px; }
.detail-match-row .team-line .match-score { font-size: 17px; font-weight: 800; }
.detail-match-row .mid-col { display: flex; align-items: center; justify-content: flex-end; padding-right: 4px; }
.detail-match-row .live-min { color: var(--hint); }

/* ===== Premium paywall (стек-оверлей поверх матча) ===== */
/* Свой слой выше .dialog-overlay (z-index 100): закрытие paywall
   не закрывает диалог матча под ним. */
.rk-overlay {
  position: fixed; inset: 0; z-index: 140;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
  backdrop-filter: blur(4px);
}
.rk-overlay.show { opacity: 1; pointer-events: auto; }
.rk-sheet {
  position: relative;
  width: 100%; max-width: 720px;
  background:
    radial-gradient(420px 150px at 50% 0%, rgba(255, 200, 87, 0.07), transparent 65%),
    var(--bg2);
  border: 1px solid var(--border2);
  border-top-left-radius: 22px; border-top-right-radius: 22px;
  box-shadow: 0 -12px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(56px);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
  overflow: hidden;
  padding: 18px 16px calc(14px + env(safe-area-inset-bottom, 0px));
}
.rk-overlay.show .rk-sheet { transform: translateY(0); }
.rk-x {
  position: absolute; top: 10px; right: 12px;
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--muted); font-size: 13px; cursor: pointer;
  padding: 5px 12px; border-radius: 9px; font-weight: 800;
  font-family: var(--font-body);
  transition: color 0.2s, border-color 0.2s, transform 0.1s;
}
.rk-x:active { color: var(--dire); border-color: var(--dire); transform: scale(0.95); }
.rk-body { max-height: 86vh; overflow-y: auto; }

/* --- заголовок --- */
.rk-head2 { display: flex; align-items: center; gap: 11px; margin: 2px 0 12px; padding-right: 44px; }
.rk-crown {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: rgba(255, 200, 87, 0.1);
  border: 1px solid rgba(255, 200, 87, 0.28);
  font-size: 19px;
}
.rk-title { font-family: var(--font-display); font-size: 16.5px; letter-spacing: 0.3px; color: var(--text); }
.rk-sub2 { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* --- тарифные radio-ряды --- */
.rk-rows { display: flex; flex-direction: column; gap: 7px; }
.rk-row {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.09);
  cursor: pointer;
  font-family: var(--font-body);
  color: var(--text);
  opacity: 0; transform: translateY(10px);
  animation: rk-row-in 0.28s ease-out forwards;
  animation-delay: calc(var(--i, 0) * 40ms);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
@keyframes rk-row-in { to { opacity: 1; transform: translateY(0); } }
.rk-row.sel {
  background: rgba(255, 200, 87, 0.07);
  border-color: rgba(255, 200, 87, 0.55);
  box-shadow: 0 0 14px rgba(255, 200, 87, 0.1);
}
.rk-radio {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 2px solid rgba(255, 255, 255, 0.25);
  position: relative;
  transition: border-color 0.18s ease;
}
.rk-row.sel .rk-radio { border-color: var(--amber); }
.rk-row.sel .rk-radio::after {
  content: ''; position: absolute; inset: 3px;
  border-radius: 50%; background: var(--amber);
  animation: rk-dot-in 0.18s ease-out;
}
@keyframes rk-dot-in { from { transform: scale(0); } to { transform: scale(1); } }
.rk-row-main { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.rk-row-name { font-weight: 700; font-size: 14px; }
.rk-row-per { font-size: 11.5px; color: var(--muted); }
.rk-row-price {
  font-family: var(--font-display);
  font-size: 15px; color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.rk-row.sel .rk-row-price { color: var(--amber); }
.rk-old {
  font-size: 12px; font-weight: 400;
  color: var(--muted); text-decoration: line-through;
  margin-right: 4px;
}
.rk-disc {
  display: inline-block;
  margin-top: 3px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.3px;
  color: #2fbf71; background: rgba(47, 191, 113, 0.12);
  border: 1px solid rgba(47, 191, 113, 0.38);
  padding: 1px 7px; border-radius: 8px;
  white-space: nowrap;
}
.rk-badge {
  position: absolute; top: -7px; left: 12px;
  background: linear-gradient(135deg, #f5a623, #f7c948);
  color: #10131a; font-size: 9.5px; font-weight: 800;
  letter-spacing: 0.7px; padding: 2px 8px; border-radius: 8px;
}

/* --- разовые покупки --- */
.rk-once-label {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 10.5px; letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 13px 0 7px;
}
.rk-once-label::before, .rk-once-label::after {
  content: ''; height: 1px; flex: 1;
  background: rgba(255, 255, 255, 0.08);
}
.rk-once { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rk-once-btn {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 9px 8px;
  border-radius: 11px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text); cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.rk-once-btn small { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.rk-once-btn:active { transform: scale(0.97); }
.rk-once-btn:hover { border-color: rgba(255, 200, 87, 0.4); background: rgba(255, 200, 87, 0.04); }

/* --- CTA + подпись + skip --- */
.rk-cta2 {
  width: 100%;
  margin-top: 13px;
  padding: 13px 14px;
  border: none; border-radius: 13px;
  background: linear-gradient(135deg, #f5a623, #f7c948);
  color: #1a1406; font-family: var(--font-body);
  font-weight: 800; font-size: 15px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(255, 190, 70, 0.3);
  transition: box-shadow 0.2s ease, transform 0.12s ease;
  font-variant-numeric: tabular-nums;
}
.rk-cta2:hover { box-shadow: 0 6px 24px rgba(255, 190, 70, 0.45); }
.rk-cta2:active { transform: scale(0.98); }
.rk-note {
  text-align: center; color: var(--muted);
  font-size: 11px; margin-top: 7px;
}
.rk-later {
  display: block; width: 100%;
  margin-top: 4px; padding: 9px;
  background: none; border: none;
  color: var(--muted); opacity: 0.75;
  font-size: 13.5px; font-family: var(--font-body);
  cursor: pointer;
}
.rk-later:hover { opacity: 1; }

/* --- шаг 2: способ оплаты --- */
/* Промокод-строка: поле ввода растягивается, кнопка — ровно по тексту.
   Grid не подходит (кнопка фиксированной ширины не «дышит» с текстом),
   поэтому flex + auto-ширина кнопки + одинаковые паддинги/высота. */
.rk-promo { display: flex; align-items: stretch; gap: 8px; margin: 2px 0 10px; }
.rk-promo .promo-input { flex: 1 1 auto; min-width: 0; padding: 10px 12px; font-size: 14px; margin-bottom: 0; }
.rk-promo .btn {
  margin: 0;
  flex: 0 0 auto;
  width: auto;
  padding: 10px 16px;
  font-size: 13.5px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  white-space: nowrap;
}
.rk-method {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer; font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.rk-method:hover { border-color: rgba(255, 200, 87, 0.35); background: rgba(255, 200, 87, 0.04); }
.rk-method:active { transform: scale(0.99); }
.rk-method small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 1px; }
.rk-m-ico { font-size: 20px; }
.rk-method span:nth-child(2) { flex: 1; }
.rk-m-price { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--amber); white-space: nowrap; }
.rk-backlink {
  display: block; width: 100%;
  background: none; border: none;
  color: var(--muted); font-size: 13.5px;
  padding: 9px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  font-family: var(--font-body);
}
.rk-backlink:hover { color: var(--text); }

/* --- кабинет: CTA-кнопка блока тарифов --- */
.rk-cta { width: 100%; background: linear-gradient(135deg, #2f7fe0, #54a0f5); border: none; color: #fff; font-weight: 800; box-shadow: 0 2px 10px rgba(84, 160, 245, 0.25); }
.rk-cta:hover { box-shadow: 0 3px 16px rgba(84, 160, 245, 0.4); }
.rk-cta:active { transform: scale(.985); }

@media (prefers-reduced-motion: reduce) {
  .rk-overlay, .rk-sheet, .rk-row, .rk-radio::after, .rk-cta2, .rk-once-btn, .rk-method {
    transition: none !important; animation: none !important;
  }
  .rk-row { opacity: 1; transform: none; }
}


/* ===== PREMIUM ЛЕНТА (roulette screen) ===== */
.rl-head { text-align:center; margin:14px 0 2px; }
.rl-kick { font-size:10px; letter-spacing:4px; color:#7a6f95; text-transform:uppercase; }
.rl-title {
  font-family:'Russo One', sans-serif; font-size:24px; letter-spacing:3px; margin-top:4px; color:#fff;
  text-shadow:0 0 8px rgba(255,45,85,.9), 0 0 26px rgba(255,45,85,.55), 0 2px 0 rgba(0,0,0,.6);
}
.rl-marquee {
  position:relative; width:min(96vw,560px); margin:14px auto 0; padding:10px;
  border-radius:22px; background:linear-gradient(180deg,#171225,#0b0916);
  border:1px solid rgba(255,45,85,.35);
  box-shadow:0 20px 55px rgba(0,0,0,.6), 0 0 40px rgba(255,45,85,.12), inset 0 1px 0 rgba(255,255,255,.06);
}
.rl-wrap { position:relative; border-radius:14px; overflow:hidden;
  background:linear-gradient(180deg,#0d0a18,#060512);
  border:1px solid rgba(0,229,255,.22);
  box-shadow:inset 0 0 40px rgba(0,0,0,.7); }
.rl-mask { position:relative; height:150px; touch-action:pan-y;
  -webkit-mask:linear-gradient(90deg,transparent 0,#000 11%,#000 89%,transparent 100%);
  mask:linear-gradient(90deg,transparent 0,#000 11%,#000 89%,transparent 100%); }
.rl-reel { position:absolute; top:14px; left:0; height:122px; display:flex; gap:11px; padding:0 6px; will-change:transform; }
.rl-reel.blur { filter:blur(2.5px); }
.rl-card {
  flex:0 0 112px; width:112px; height:122px; border-radius:14px; position:relative;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px;
  background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.01) 34%,rgba(0,0,0,.34)),#12101f;
  border:1.6px solid var(--rc,#4a4468);
  box-shadow:0 6px 18px rgba(0,0,0,.55), inset 0 0 20px color-mix(in srgb,var(--rc) 22%,transparent);
  overflow:hidden;
}
.rl-card::before { content:''; position:absolute; top:0; left:0; right:0; height:5px;
  background:linear-gradient(90deg,transparent,var(--rc),transparent); box-shadow:0 0 14px var(--rc); }
.rl-card::after { content:''; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(115deg,transparent 32%,rgba(255,255,255,.22) 48%,transparent 60%);
  background-size:240% 100%; animation:rlHolo 3s linear infinite; }
@keyframes rlHolo { 0%{background-position:150% 0} 100%{background-position:-60% 0} }
.rl-ring { width:58px; height:58px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:radial-gradient(circle,color-mix(in srgb,var(--rc) 30%,transparent) 0%,transparent 72%); }
.rl-ring svg { width:46px; height:46px; filter:drop-shadow(0 3px 9px rgba(0,0,0,.65)); }
.rl-num { font-family:'Russo One',sans-serif; font-size:24px; line-height:1; color:#fff;
  text-shadow:0 2px 8px rgba(0,0,0,.8),0 0 14px color-mix(in srgb,var(--rc) 60%,transparent); }
.rl-lbl { font-size:7.8px; font-weight:900; letter-spacing:1.2px; text-transform:uppercase; color:var(--rc);
  text-align:center; padding:0 3px; line-height:1.25; }
.rl-card.hitwin { animation:rlWin .62s ease-in-out infinite; border-color:var(--rc);
  box-shadow:0 0 30px color-mix(in srgb,var(--rc) 75%,transparent),0 0 70px color-mix(in srgb,var(--rc) 40%,transparent),inset 0 0 26px color-mix(in srgb,var(--rc) 45%,transparent);
  z-index:5; }
@keyframes rlWin { 0%,100%{transform:scale(1)} 50%{transform:scale(1.07)} }
.rl-pointer { position:absolute; left:50%; top:-6px; bottom:-6px; width:3px; transform:translateX(-50%);
  background:linear-gradient(180deg,transparent,var(--c-cyan,#00e5ff) 15%,#fff 50%,var(--c-cyan,#00e5ff) 85%,transparent);
  box-shadow:0 0 16px 3px rgba(0,229,255,.8),0 0 44px 8px rgba(0,229,255,.35);
  z-index:6; animation:rlPtr 1.1s ease-in-out infinite; }
@keyframes rlPtr { 0%,100%{opacity:.92} 50%{opacity:1} }
.rl-pointer::before,.rl-pointer::after { content:''; position:absolute; left:50%; transform:translateX(-50%); border:10px solid transparent; }
.rl-pointer::before { top:0; border-top:13px solid #00e5ff; filter:drop-shadow(0 0 6px #00e5ff); }
.rl-pointer::after { bottom:0; border-bottom:13px solid #00e5ff; filter:drop-shadow(0 0 6px #00e5ff); }
.rl-flash { position:absolute; inset:0; pointer-events:none; z-index:7; opacity:0;
  background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.85) 0%,rgba(0,229,255,.25) 40%,transparent 70%); }
.rl-flash.go { animation:rlFlash .55s ease-out; }
@keyframes rlFlash { 0%{opacity:0} 12%{opacity:1} 100%{opacity:0} }
.rl-hint { position:absolute; right:12px; bottom:10px; padding:4px 11px; border-radius:999px;
  background:rgba(0,229,255,.1); border:1px solid rgba(0,229,255,.45); color:#a8f4ff;
  font-size:9px; font-weight:900; letter-spacing:1.4px; text-transform:uppercase; z-index:6; pointer-events:none;
  animation:rlNudge 2s ease-in-out infinite; transition:opacity .4s; }
.rl-hint.gone { opacity:0; }
@keyframes rlNudge { 0%,100%{transform:translateX(0)} 50%{transform:translateX(4px)} }

.rl-sub, .rl-cta {
  display:block; margin:16px auto 0; width:min(86vw,312px); padding:16px; border:none; border-radius:16px;
  font-family:'Russo One',sans-serif; font-size:15px; letter-spacing:2px; text-transform:uppercase;
  cursor:pointer; position:relative; overflow:hidden;
}
.rl-sub { background:linear-gradient(90deg,#21e6ff,#7b2ff7); color:#fff; display:none;
  box-shadow:0 8px 26px rgba(33,230,255,.35), inset 0 1px 0 rgba(255,255,255,.4); }
.rl-sub.pulse { animation:rlPulse .8s ease-in-out infinite; }
@keyframes rlPulse { 0%,100%{transform:scale(1);box-shadow:0 8px 26px rgba(33,230,255,.35)} 50%{transform:scale(1.04);box-shadow:0 10px 34px rgba(33,230,255,.6)} }
.rl-cta { background:linear-gradient(180deg,#ff4d6d,#c9124a 58%,#8f0c38); color:#fff;
  box-shadow:0 10px 30px rgba(255,45,85,.5), inset 0 2px 0 rgba(255,255,255,.45), inset 0 -4px 0 rgba(0,0,0,.35);
  text-shadow:0 2px 4px rgba(0,0,0,.4); }
.rl-cta::after { content:''; position:absolute; top:0; left:-60%; width:40%; height:100%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.4),transparent); animation:rlSweep 2.2s ease-in-out infinite; will-change:transform; }
@keyframes rlSweep { 0%{transform:translateX(0)} 60%,100%{transform:translateX(475%)} }
.rl-cta[disabled] { filter:grayscale(.85) brightness(.55); cursor:default; }
.rl-cta[disabled]::after { display:none; }
.rl-cta.locked { filter:grayscale(.85) brightness(.55); }
.rl-timer { margin:11px auto 4px; color:#7a6f95; font-size:12px; font-weight:700; letter-spacing:1px;
  font-variant-numeric:tabular-nums; text-transform:uppercase; text-align:center; }

/* ===== ПРИЗЫ: плавающая FAB (иконка без рамки) + окно-шторка ===== */
.rl-fab {
  position: fixed;
  right: 16px;
  bottom: calc(65px + env(safe-area-inset-bottom));
  z-index: 80;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  transition: transform 150ms ease;
  -webkit-tap-highlight-color: transparent;
}
.rl-fab:active { transform: scale(0.94); }
.rl-fab:focus-visible { outline: 2px solid #00e5ff; outline-offset: 2px; }
/* gift растягиваем на всю площадь кнопки */
.rl-fab .rl-gift-svg { width: 54px; height: 54px; }
.rl-fab[aria-expanded="false"] .rl-gift-svg { filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55)); }
.rl-fab[aria-expanded="true"] .rl-gift-svg { filter: drop-shadow(0 0 7px rgba(0, 229, 255, 0.8)); }

.rl-fab .rl-gift { transform-origin: 12px 20px; animation: rlGift 2.8s ease-in-out infinite; }
@keyframes rlGift { 0%,100%{transform:rotate(0)} 8%{transform:rotate(-4deg)} 16%{transform:rotate(3deg)} 24%{transform:rotate(0)} }
.rl-fab .rl-sparkles path { stroke-dasharray:2 2.2; animation:rlSpk 1.9s ease-in-out infinite; }
.rl-fab .rl-sparkles path:nth-child(2) { animation-delay:.26s; }
.rl-fab .rl-sparkles path:nth-child(3) { animation-delay:.52s; }
@keyframes rlSpk { 0%,100%{opacity:0;transform:scale(.6)} 50%{opacity:1;transform:scale(1.25)} }

.rl-backdrop { position: fixed; inset: 0; z-index: 84; background: rgba(5, 4, 12, 0.62);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .22s ease; }
.rl-backdrop.show { opacity: 1; }
.rl-backdrop[hidden] { display: none; }

.rl-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
  max-width: 720px; margin: 0 auto; max-height: 86vh; overflow-y: auto; overscroll-behavior: contain;
  background: linear-gradient(180deg, rgba(20, 29, 43, 0.99), rgba(11, 16, 24, 0.99));
  border-top: 1px solid rgba(0, 229, 255, 0.34);
  border-radius: 18px 18px 0 0;
  padding: 12px 16px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -14px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(24px); opacity: 0;
  transition: transform .22s cubic-bezier(.2, .9, .3, 1), opacity .2s ease;
  display: flex; flex-direction: column; align-items: center; gap: 10px; }
[data-theme="light"] .rl-sheet { background: linear-gradient(180deg, #ffffff, #f2f5fb); }
.rl-sheet.show { transform: translateY(0); opacity: 1; }
.rl-sheet.close { transform: translateY(24px); opacity: 0; }
/* display:flex перебивает UA-правило [hidden] — прячем явно */
.rl-sheet[hidden] { display: none; }

.rl-sheet-head { position: relative; width: 100%; text-align: center; padding-right: 40px; }
.rl-sheetclose { position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  background: transparent; border: 1px solid rgba(122, 111, 149, 0.45); border-radius: 10px;
  color: #7a6f95; width: 32px; height: 32px; font-size: 13px; cursor: pointer; }
[data-theme="light"] .rl-sheetclose { color: #6b6a8f; }
.rl-sheetclose:hover { color: #fff; border-color: #7a6f95; }

/* keep dots/toast anchored to the FAB (nav-icon is position:relative) */
.rl-fab .nav-icon { width: 54px; height: 54px; }

.rl-dot { position:absolute; top:2px; right:8px; width:13px; height:13px; border-radius:50%;
  background:radial-gradient(circle at 35% 30%,#8bffb8,#2ecc71 55%,#128a43); border:2.5px solid #0d131e; display:none; }
.rl-dot.show { display:block; animation:rlDot 1.4s infinite; }
@keyframes rlDot { 0%{box-shadow:0 0 0 0 rgba(46,204,113,.6)} 70%{box-shadow:0 0 0 11px rgba(46,204,113,0)} 100%{box-shadow:0 0 0 0 rgba(46,204,113,0)} }
.rl-ftimer { position:absolute; bottom:100%; left:50%; transform:translateX(-50%);
  display:none; padding:3px 8px; border-radius:999px;
  background:rgba(10,15,25,.92); border:1px solid rgba(0,229,255,.4); color:#8ff0ff;
  font-size:10px; font-weight:800; line-height:1.2; letter-spacing:.5px; white-space:nowrap;
  font-variant-numeric:tabular-nums; direction:ltr; }
.rl-ftimer.show { display:block; }
.rl-toast { position:absolute; bottom:calc(100% + 9px); left:50%; transform:translateX(-50%) translateY(10px);
  padding:5px 9px; border-radius:999px; background:linear-gradient(90deg,#ff2d55,#00e5ff);
  color:#fff; font-size:10px; font-weight:900; letter-spacing:.8px; text-transform:uppercase; white-space:nowrap;
  box-shadow:0 8px 24px rgba(255,45,85,.5); opacity:0; pointer-events:none; transition:opacity .3s,transform .3s; z-index:60; }
.rl-toast .rl-arrow { position:absolute; top:100%; left:50%; transform:translateX(-50%);
  border:6px solid transparent; border-top-color:#00e5ff; }
.rl-toast.show { opacity:1; transform:translateX(-50%) translateY(0); animation:rlBob 1.5s .3s infinite ease-in-out; }
@keyframes rlBob { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(-4px)} }

/* мягкое ripple-кольцо от иконки — только когда спин реально доступен (.rl-ready) */
.rl-fab.rl-ready .nav-icon::before { content:''; position:absolute; inset:-2px; border-radius:50%;
  border:2px solid rgba(0,229,255,.42); pointer-events:none; opacity:0;
  animation:rlRipple 3.2s 2.5s ease-out infinite; }
@keyframes rlRipple { 0%{transform:scale(.72); opacity:.55} 37.5%{transform:scale(1.45); opacity:0} 100%{transform:scale(1.45); opacity:0} }
.rl-fab[aria-expanded="true"] .nav-icon::before { animation:none; opacity:0; }

/* drop overlay */
.rl-overlay { position:fixed; inset:0; background:rgba(5,4,12,.9); backdrop-filter:blur(7px); -webkit-backdrop-filter:blur(7px);
  display:flex; align-items:center; justify-content:center; opacity:0; pointer-events:none; transition:opacity .25s; z-index:120; }
.rl-overlay.show { opacity:1; pointer-events:auto; }
.rl-dropcard { width:min(86vw,330px); text-align:center; padding:30px 24px 26px; border-radius:20px;
  background:linear-gradient(180deg,rgba(22,17,38,.97),rgba(10,8,20,.98));
  border:2px solid var(--dc,#4a4468);
  box-shadow:0 0 80px color-mix(in srgb,var(--dc) 55%,transparent),0 30px 80px rgba(0,0,0,.9);
  transform:scale(.7) translateY(30px); opacity:0; transition:transform .45s cubic-bezier(.2,1.6,.4,1),opacity .3s; }
.rl-overlay.show .rl-dropcard { transform:scale(1) translateY(0); opacity:1; }
.rl-rarity { display:inline-block; padding:5px 18px; border-radius:999px; background:var(--dc); color:#07070d;
  font-size:10px; font-weight:900; letter-spacing:2.5px; text-transform:uppercase; margin-bottom:14px; }
.rl-dropico { height:78px; display:flex; align-items:center; justify-content:center; margin-bottom:10px;
  background:radial-gradient(circle,color-mix(in srgb,var(--dc) 26%,transparent) 0%,transparent 70%); border-radius:50%; }
.rl-dropico svg { width:72px; height:72px; filter:drop-shadow(0 6px 20px color-mix(in srgb,var(--dc) 70%,transparent)); }
.rl-droptitle { font-family:'Russo One',sans-serif; font-size:28px; color:#fff;
  text-shadow:0 3px 12px rgba(0,0,0,.6),0 0 22px color-mix(in srgb,var(--dc) 55%,transparent); }
.rl-dropsub { color:#7a6f95; font-size:12.5px; margin:10px 0 20px; }
.rl-dropok { width:100%; padding:14px; border:none; border-radius:13px; font-family:'Russo One',sans-serif;
  font-size:14px; letter-spacing:1.5px; text-transform:uppercase; color:#fff; background:var(--dc); cursor:pointer;
  box-shadow:0 6px 20px color-mix(in srgb,var(--dc) 55%,transparent); }
@media (prefers-reduced-motion: reduce) {
  .rl-dot.show,.rl-toast.show,.rl-cta::after,.rl-card::after,.rl-title,.rl-pointer,.rl-card.hitwin,
  .rl-fab .rl-gift,.rl-gift-svg .rl-sparkles path,.rl-sub.pulse { animation:none !important; }
  .rl-fab .nav-icon::before { animation:none !important; opacity:0; }
  .rl-sheet,.rl-backdrop { transition:none !important; }
}

/* платный спин без ожидания */
.rl-paid {
  display:none; margin:12px auto 0; width:min(86vw,312px); padding:13px;
  border:1.5px solid rgba(255,207,63,.45); border-radius:16px;
  background:linear-gradient(180deg, rgba(255,207,63,.14), rgba(255,207,63,.05)), #12101f;
  color:#ffe9a8; font-family:'Russo One',sans-serif; font-size:13px; letter-spacing:1.2px;
  text-transform:uppercase; cursor:pointer; position:relative; overflow:hidden;
  box-shadow:0 6px 20px rgba(255,207,63,.15), inset 0 1px 0 rgba(255,255,255,.12);
}
.rl-paid::after { content:''; position:absolute; top:0; left:-60%; width:40%; height:100%;
  background:linear-gradient(100deg, transparent, rgba(255,255,255,.25), transparent);
  animation:rlSweep 2.6s ease-in-out infinite; will-change:transform; }
.rl-paid:active { transform:translateY(2px); }

/* Stage 2.2: invisible spacer watched by IntersectionObserver to grow
   the list limit (progressive loading). */
.list-sentinel { height: 1px; width: 100%; }

/* ===== Stage M.1: multi-game shell "Спорт / Киберспорт" ===== */
/* Ряд 1: разделы. Контейнер #game-switch остался прежним (sticky), внутри
   теперь две строки: секции + плитки игр (букмекер-паттерн). */
#game-switch { display: block; padding: 10px 14px 6px; }
.mp-sections { display: flex; gap: 6px; }
.mp-section-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 0; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface2); color: var(--muted); font-family: inherit;
  font-size: 13.5px; font-weight: 800; letter-spacing: .3px; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease,
    box-shadow .2s ease;
}
/* Иконки — монохромные чёрные SVG: на тёмной теме инвертируем в белые,
   на светлой оставляем чёрными. Активная секция — амбер-градиент,
   иконка там тёмная (как и текст #1a1200). */
.mp-sec-ico, .mp-chip-ico { flex: none; display: block; filter: invert(1); }
[data-theme="light"] .mp-sec-ico,
[data-theme="light"] .mp-chip-ico { filter: none; }
.mp-sec-ico { width: 18px; height: 18px; }
.mp-section-btn.active .mp-sec-ico { filter: none; }
[data-theme="light"] .mp-section-btn.active .mp-sec-ico { filter: invert(1); }
.mp-section-btn.active {
  background: linear-gradient(135deg, rgba(255, 184, 77, .92), rgba(224, 143, 42, .95));
  color: #1a1200; border-color: transparent; font-weight: 800;
  box-shadow: 0 4px 18px rgba(255, 184, 77, .35);
}
[data-theme="light"] .mp-section-btn.active {
  background: linear-gradient(135deg, #ffb84d, #e08f2a); color: #fff;
}

/* Ряд 2: чипы. Базовый пилюля-стиль .mp-chip остаётся для фильтров времени
   (.mp-chip.tf, ряд 3); игровые плитки — модификатор .mp-tile:
   квадратная плашка с иконкой + короткая подпись, гориз. скролл сохранён. */
.mp-chips {
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 10px 0 2px; scroll-snap-type: x proximity;
}
.mp-chips::-webkit-scrollbar { display: none; }
.mp-chip {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 20px; white-space: nowrap;
  border: 1px solid var(--border); background: var(--surface2); color: var(--muted);
  font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
  transition: all .2s ease; scroll-snap-align: start;
}
.mp-chip.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: 0 3px 14px rgba(37, 99, 235, .35);
}
.mp-chip.mp-tile {
  display: flex; flex-direction: column; align-items: center;
  width: 68px; padding: 6px 4px 7px; border-radius: 12px; white-space: normal;
  font-family: var(--font-body); font-size: 10px; position: relative;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease,
    transform .18s ease, color .2s ease;
}
.mp-chip-tile {
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 10px;
  background: var(--surface3); margin-bottom: 5px;
}
.mp-chip-ico { width: 26px; height: 26px; }
.mp-chip-label {
  display: block; width: 100%; overflow: hidden; text-overflow: ellipsis;
  text-transform: uppercase; letter-spacing: .4px; line-height: 1.25;
  max-height: 2.6em; text-align: center;
}
.mp-chip.mp-tile.active {
  background: var(--surface2); color: var(--text);
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), 0 3px 16px rgba(240, 176, 74, .3);
}
.mp-chip.mp-tile.active .mp-chip-tile {
  background: linear-gradient(135deg, rgba(240, 176, 74, .18), rgba(240, 176, 74, .06));
}
.mp-chip.mp-tile.soon .mp-chip-tile { opacity: .55; }
.mp-chip.mp-tile:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) {
  .mp-chip.mp-tile, .mp-chip.mp-tile:active { transition: none; transform: none; }
}
.mp-chip-soon {
  position: absolute; top: 3px; right: 3px;
  padding: 1px 5px; border-radius: 8px;
  background: rgba(255, 184, 77, .16); color: #ffb84d; font-size: 8.5px;
  font-weight: 800; text-transform: uppercase; letter-spacing: .4px;
  line-height: 1.4;
}
[data-theme="light"] .mp-chip-soon { background: rgba(224, 143, 42, .14); color: #b06a12; }
.mp-live-dot {
  display: none;
  position: absolute; top: 5px; right: 5px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--dire);
  animation: liveDotPulse 1.2s infinite;
}
.mp-live-dot.on { display: block; }

/* Заглушка неготового раздела */
.mp-soon {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 44px 22px; text-align: center; color: var(--muted);
}
.mp-soon-ico { color: var(--accent); opacity: .75; margin-bottom: 4px; }
.mp-soon-title { font-size: 19px; font-weight: 800; color: var(--text); }
.mp-soon-text { font-size: 13.5px; line-height: 1.55; max-width: 300px; }

/* ===== Stage M.3: sports (ESPN) — карточки, деталь матча ===== */
/* Stage M.6: ряд 3 шёлла — фильтры времени ближайших матчей
   (Все/1ч/3ч/6ч/12ч/1день; рендерит games.js, виден только на
   вкладке «Расписание»). */
.mp-search-box {
  position: relative; display: flex; align-items: center; flex-shrink: 0;
}
.mp-search-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--muted); pointer-events: none; z-index: 1;
}
.mp-search-input {
  flex: 0 0 180px;
  padding-left: 32px;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border2); border-radius: 20px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color .25s, box-shadow .25s, width .3s;
  scroll-snap-align: start;
}
.mp-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.mp-search-input::placeholder { color: var(--muted); }
.mp-search-clear {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.08); color: var(--muted);
  font-size: 12px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background .2s, color .2s;
  scroll-snap-align: start;
}
.mp-search-clear:hover { background: rgba(255,255,255,0.15); color: var(--text); }
#mp-filters {
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; padding: 2px 0 6px; scroll-snap-type: x proximity;
}
#mp-filters::-webkit-scrollbar { display: none; }
#mp-filters:empty { display: none; }
#mp-filters:not(.mp-sched) .mp-chip.tf { display: none; }
.mp-chip.tf { padding: 5px 12px; font-size: 12px; scroll-snap-align: start; }

/* Карточка матча спорта: строка внутри .tournament-matches (не карточка-
   в-карточке): без собственной коробки, только разделитель снизу. */
.sp-card {
  display: block;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px 9px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
  margin-bottom: 10px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s, transform 0.1s, border-color 0.2s;
}
.sp-card:active { background: var(--surface3); transform: scale(0.99); }
.sp-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sp-row { display: flex; align-items: center; gap: 10px; }
.sp-teams { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.sp-tline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sp-tname {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 14px; font-weight: 700; color: var(--text);
}
.sp-logo {
  width: 20px; height: 20px; object-fit: contain; flex: none;
  background: var(--surface2); border-radius: 6px;
}
.sp-logo-empty {
  width: 20px; height: 20px; flex: none; border-radius: 6px;
  background: var(--surface2); border: 1px solid var(--border);
}
.sp-mid { flex: none; width: 66px; display: flex; justify-content: center; }
.sp-scorecol {
  flex: none; width: 54px; display: flex; flex-direction: column;
  align-items: flex-end; gap: 5px;
  font-variant-numeric: tabular-nums;
}
.sp-score { font-size: 15px; font-weight: 800; color: var(--text); line-height: 20px; }
.sp-score.w { color: var(--radiant); }
.sp-score.w { color: var(--text); }
.sp-score.empty { visibility: hidden; }
.sp-badge {
  display: inline-block; padding: 2px 9px; border-radius: 9px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.3px;
  white-space: nowrap; text-transform: uppercase;
}
.sp-badge.live {
  color: #ff6d78; background: var(--dire-bg);
  border: 1px solid rgba(255, 92, 104, 0.4);
  animation: spPulse 1.6s ease-in-out infinite;
}
.sp-badge.done { color: var(--muted); background: var(--surface3); border: 1px solid var(--border); }
.sp-badge.sched { color: var(--accent); background: rgba(84, 160, 245, 0.12); border: 1px solid rgba(84, 160, 245, 0.3); }
[data-theme="light"] .sp-badge.sched { background: rgba(43, 116, 201, 0.1); }
@keyframes spPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .sp-badge.live { animation: none; } }

.sp-meta {
  display: flex; gap: 8px; margin-top: 6px; padding-left: 28px;
  font-size: 12px; color: var(--muted); flex-wrap: wrap;
}
.sp-clock { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 700; }
.sp-odds { margin-top: 4px; padding-left: 28px; font-size: 11.5px; color: var(--muted2); }
.sp-odds b { color: var(--amber); font-weight: 700; }

/* Заглушки спорта */
.sp-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 36px 20px; text-align: center;
}
.sp-empty-t { font-size: 16px; font-weight: 800; color: var(--text); }
.sp-empty-s { font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 300px; }

/* ===== Деталь матча спорта (в диалоге) ===== */
.sp-detail { padding: 2px 0 8px; }
.sp-d-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 6px 0 2px;
}
.sp-d-team { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sp-d-team .sp-logo { width: 34px; height: 34px; border-radius: 9px; }
.sp-d-tname {
  font-size: 13px; font-weight: 700; color: var(--text); text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.sp-d-trec { font-size: 11.5px; color: var(--muted); text-align: center; }
.sp-d-score {
  flex: none; font-family: var(--font-display); font-size: 24px;
  color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: 1px;
  padding: 0 6px;
}
.sp-d-sec { padding: 14px 0 4px; border-top: 1px solid var(--border); margin-top: 10px; }
.sp-d-sec:first-of-type { border-top: none; margin-top: 4px; }
.sp-d-sec h3 {
  font-size: 12px; font-weight: 800; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 10px;
}

/* Прогноз */
.sp-pred { display: flex; gap: 10px; margin-bottom: 10px; }
/* Спортивная карточка: прогноз в стиле киберспорта */
.sp-card .sp-pred {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px; margin-bottom: 0; padding: 6px 10px;
  border-radius: 8px;
  background: rgba(84, 160, 245, 0.08);
  border: 1px solid rgba(84, 160, 245, 0.2);
  font-size: 12.5px; color: var(--text);
}
.sp-card .sp-pred b { color: var(--accent); font-weight: 700; }
.sp-pb-side { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.sp-pb-val {
  font-family: var(--font-display); font-size: 26px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sp-pb-side:first-child .sp-pb-val { color: var(--accent); }
.sp-pb-name { font-size: 12px; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-pred-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--surface3); }
.sp-pred-bar .ph { background: var(--accent); }
.sp-pred-bar .pa { background: var(--muted2); }
.sp-pred-note { margin-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.sp-pred-note b { color: var(--text); }
.sp-basis-b {
  display: inline-block; margin-left: 3px; padding: 1px 7px; border-radius: 8px;
  background: var(--amber-bg); color: var(--amber); font-size: 10.5px;
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.4px;
}

/* Форма (последние 5) */
.sp-form-team {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 5px 0; min-width: 0;
}
.sp-f-name {
  flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; font-size: 13px; color: var(--text); font-weight: 600;
}
.sp-f-games { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.sp-f-games::-webkit-scrollbar { display: none; }
.sp-fg {
  flex: none; min-width: 26px; padding: 2px 5px; border-radius: 7px;
  text-align: center; font-size: 11px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: var(--surface3); color: var(--muted);
}
.sp-fg.w { background: var(--radiant-bg); color: var(--radiant); }
.sp-fg.d { background: var(--surface3); color: var(--muted); }
.sp-fg.l { background: var(--dire-bg); color: var(--dire); }

/* Личные встречи */
.sp-h2h { padding: 4px 0; font-size: 13px; color: var(--muted); }

/* Статистика: значение-лейбл-значение */
.sp-stat-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; padding: 5px 0; align-items: center; }
.sp-sv { font-size: 13.5px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.sp-stat-row .sp-sv:last-child { text-align: right; }
.sp-sl { font-size: 12px; color: var(--muted); text-align: center; }

/* Ход матча */
.sp-kev { display: flex; gap: 10px; padding: 4px 0; align-items: baseline; }
.sp-k-time { flex: none; width: 40px; font-size: 12px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.sp-k-text { font-size: 13px; color: var(--text); line-height: 1.45; }

/* Рынок */
.sp-odds-line { padding: 4px 0; font-size: 13px; color: var(--muted); }
.sp-odds-line b { color: var(--text); }

.ps-sub{display:inline-block;margin-left:6px;padding:1px 6px;font-size:10px;font-weight:700;letter-spacing:.06em;color:#ffb020;border:1px solid #ffb020;border-radius:8px;vertical-align:middle;}

/* anti-flicker: entrance animations only on first paint; stable digit width */
.painted .tournament, .painted .match-card { animation: none; }
.match-score, .series-score, .live-min { font-variant-numeric: tabular-nums; }

/* ===== GLOBAL LOADING BAR (NProgress-style) ===== */
.loading-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 9999; pointer-events: none;
  background: linear-gradient(90deg, var(--accent, #54a0f5), var(--amber, #ffb020), var(--accent, #54a0f5));
  background-size: 200% 100%;
  animation: loadingBarSlide 1.2s ease-in-out infinite;
  opacity: 0; transition: opacity 0.2s ease;
  transform: translateZ(0);
}
.loading-bar.active { opacity: 1; }
@keyframes loadingBarSlide {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.loading-bar::after {
  content: '';
  position: absolute; right: 0; top: 0;
  width: 80px; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6));
  box-shadow: 0 0 8px rgba(84, 160, 245, 0.8), 0 0 4px rgba(84, 160, 245, 0.6);
}

/* ===== SKELETON ENHANCED (discipline switch) ===== */
.sk-card-discipline {
  background: var(--surface, #182337);
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: var(--radius, 12px);
  margin-bottom: 14px;
  padding: 14px;
  overflow: hidden;
  position: relative;
  animation: skPulse 1.4s ease-in-out infinite;
}
.sk-card-discipline .sk-line { margin: 8px 0; }
/* Stage F: football prediction — clean readable cards */
.sp-fb-card {
  margin-top: 10px; padding: 13px 13px 12px; border-radius: 13px;
  background: linear-gradient(180deg, rgba(84,160,245,.11), rgba(84,160,245,.03));
  border: 1px solid rgba(84,160,245,.22);
}
.sp-fb-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
.sp-fb-head-title { font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.7px; color:var(--muted); }
.sp-fb-head-model { font-size:10px; color:var(--muted2); background:rgba(255,255,255,.06); padding:2px 8px; border-radius:8px; }
.sp-fb-outcomes { display:flex; gap:7px; }
.sp-fb-out {
  flex:1; min-width:0; text-align:center; padding:9px 4px 8px; border-radius:10px;
  background:rgba(0,0,0,.18); border:1px solid transparent;
}
.sp-fb-out.is-fav { border-color:rgba(84,160,245,.55); background:rgba(84,160,245,.13); }
.sp-fb-out-val { font-family:var(--font-display); font-size:21px; font-weight:800; font-variant-numeric:tabular-nums; color:var(--text); }
.sp-fb-out.is-fav .sp-fb-out-val { color:var(--accent); }
.sp-fb-out-name { margin-top:3px; font-size:11px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.sp-fb-bar { display:flex; height:7px; margin-top:10px; border-radius:4px; overflow:hidden; background:var(--surface3); }
.sp-fb-bar i { display:block; height:100%; }
.sp-fb-bar .h { background:#3fb27f; }
.sp-fb-bar .d { background:#9aa3ae; }
.sp-fb-bar .a { background:#4d9de0; }
.sp-fb-bar .o { background:#8b6ff0; }
.sp-fb-bar .u { background:#5a6270; }
.sp-fb-total { margin-top:12px; padding-top:11px; border-top:1px solid var(--border); }
.sp-fb-total-head { font-size:12px; color:var(--muted); margin-bottom:6px; }
.sp-fb-total-head b { color:var(--text); font-size:15px; font-family:var(--font-display); }
.sp-fb-total-values { display:flex; justify-content:space-between; font-size:12px; color:var(--muted); margin-bottom:6px; }
.sp-fb-total-values b { color:var(--text); font-variant-numeric:tabular-nums; }
.sp-fb-lambda {
  margin-top:11px; display:flex; align-items:center; justify-content:space-between;
  font-size:12px; color:var(--muted);
}
.sp-fb-lambda b { font-size:15px; color:var(--text); font-variant-numeric:tabular-nums; }
.sp-fb-mini {
  margin-top:8px; padding:8px 10px; border-radius:9px;
  background:rgba(84,160,245,.08); border:1px solid rgba(84,160,245,.2);
}
.sp-fb-mini-head { font-size:11.5px; color:var(--muted); }
.sp-fb-mini-head b { color:var(--accent); }
.sp-fb-mini-picks { display:flex; gap:5px; margin-top:6px; }
.sp-fb-mini-pick {
  flex:1; min-width:0; text-align:center; padding:4px 2px; border-radius:6px;
  background:rgba(0,0,0,.18); font-size:10px; color:var(--muted);
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.sp-fb-mini-pick b { display:block; font-size:13px; color:var(--text); font-variant-numeric:tabular-nums; }
.sp-fb-mini-total { margin-top:6px; font-size:11px; color:var(--muted); }
.sp-fb-mini-total b { color:var(--text); }
.sp-fb-insight {
  margin-top:10px; padding:12px; border-radius:12px;
  background:var(--surface, rgba(0,0,0,.2)); border:1px solid var(--border);
}
.sp-fb-insight-title {
  font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.6px;
  color:var(--muted); margin-bottom:8px;
}
.sp-fb-team-row { display:flex; align-items:center; gap:8px; padding:6px 0; border-bottom:1px solid var(--border); font-size:12px; }
.sp-fb-team-row:last-child { border-bottom:none; }
.sp-fb-side-tag {
  flex:none; width:20px; height:20px; border-radius:6px; display:grid; place-items:center;
  font-size:10px; font-weight:800; background:rgba(84,160,245,.15); color:var(--accent);
}
.sp-fb-team-name { flex:1; min-width:0; color:var(--text); font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sp-fb-formation { font-family:var(--font-display); color:var(--text); }
.sp-fb-status { font-size:10px; padding:2px 7px; border-radius:8px; background:var(--amber-bg); color:var(--amber); white-space:nowrap; }
.sp-fb-coach { font-size:11px; color:var(--muted); margin:2px 0 4px 28px; }
.sp-fb-xg-row {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:6px 0; border-bottom:1px solid var(--border); font-size:12px; color:var(--muted);
}
.sp-fb-xg-row:last-child { border-bottom:none; }
.sp-fb-xg-row b { color:var(--text); font-variant-numeric:tabular-nums; }

/* Model source badge on match cards and detail */
.sp-model-tag {
  display:inline-block; margin-left:6px; padding:2px 7px; border-radius:8px;
  font-size:9.5px; font-weight:800; letter-spacing:.2px; white-space:nowrap;
  vertical-align:middle;
}
.sp-model-tag.full { background:rgba(62,178,127,.16); color:#4fd39a; border:1px solid rgba(62,178,127,.35); }
.sp-model-tag.lite { background:rgba(129,143,158,.16); color:#a9b6c4; border:1px solid rgba(129,143,158,.35); }
.sp-model-tag.market { background:rgba(139,111,240,.16); color:#b9a4ff; border:1px solid rgba(139,111,240,.35); }
.sp-fb-mini-head .sp-model-tag { margin-left:5px; }
.sp-fb-head .sp-model-tag { margin:0 8px 0 6px; }


/* ===== Streams in match detail (variant C) ===== */
.streams-block{margin:12px 0 14px;border:1px solid var(--border);border-radius:11px;background:var(--surface2);padding:11px 12px}
.streams-title{font-family:var(--font-display);font-size:13px;color:var(--text);display:flex;align-items:center;gap:7px}
.streams-count{font-family:var(--font-display);font-size:10px;color:#9cc9ff;background:rgba(84,160,245,.15);border:1px solid rgba(84,160,245,.4);border-radius:20px;padding:1px 7px}
.streams-sub{font-size:10.5px;color:var(--muted);margin:3px 0 9px;line-height:1.4}
.stream-row{display:flex;align-items:center;gap:9px;padding:6px 0;border-top:1px solid var(--border)}
.stream-row:first-of-type{border-top:0}
.stream-thumb{width:64px;height:36px;border-radius:6px;object-fit:cover;flex:none;background:#060a11}
.stream-thumb-empty{display:block}
.stream-info{flex:1;min-width:0}
.stream-info b{font-family:var(--font-display);font-size:11.5px;font-weight:400;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stream-info span{font-size:10px;color:var(--muted)}
.stream-open{flex:none;padding:5px 9px;border-radius:7px;border:1px solid rgba(84,160,245,.45);background:rgba(84,160,245,.14);color:#a9d1ff;font-family:'Exo 2',sans-serif;font-weight:700;font-size:10.5px;cursor:pointer}
.stream-modal{display:none;position:fixed;inset:0;z-index:200;align-items:center;justify-content:center;padding:14px;background:rgba(2,5,10,.9);backdrop-filter:blur(4px)}
.stream-modal.show{display:flex}
.stream-modal-box{width:min(720px,100%);background:#0d131e;border:1px solid var(--border);border-radius:13px;overflow:hidden;box-shadow:0 22px 60px rgba(0,0,0,.6)}
.stream-modal-head{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid var(--border);background:var(--surface2)}
.stream-modal-head b{font-family:var(--font-display);font-size:12px;font-weight:400;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stream-modal-close{flex:none;width:26px;height:26px;border-radius:6px;border:1px solid var(--border);background:transparent;color:var(--muted);font-size:15px;line-height:1;cursor:pointer}
.stream-modal-player{position:relative;aspect-ratio:16/9;background:#000}
.stream-modal-player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.stream-modal-foot{display:flex;justify-content:flex-end;gap:8px;padding:9px 12px;flex-wrap:wrap}
.stream-modal-external{font-size:11px;color:#a9d1ff;text-decoration:none;border:1px solid rgba(84,160,245,.4);border-radius:7px;padding:5px 10px}
.stream-modal-fullscreen{font-family:'Exo 2',sans-serif;font-weight:700;font-size:11px;color:#a9d1ff;background:rgba(84,160,245,.14);border:1px solid rgba(84,160,245,.4);border-radius:7px;padding:5px 10px;cursor:pointer}
.stream-modal-fullscreen:active{background:rgba(84,160,245,.26)}
[data-theme="light"] .streams-block{background:#fff}


/* ===== Сравнение команд (шторка, открыта для всех) ===== */
.cmp-row{padding:10px 0;border-top:1px solid var(--border)}
.cmp-row:first-of-type{border-top:0}
.cmp-row-label{text-align:center;font-size:10.5px;color:var(--muted);margin-bottom:7px}
.cmp-bars{display:flex;align-items:center;gap:10px}
.cmp-side{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.cmp-side.right{align-items:flex-end}
.cmp-val{font-family:var(--font-display);font-size:14px;color:var(--text);white-space:nowrap}
.cmp-val.win{color:var(--radiant)}
.cmp-val.small{font-size:12px}
.cmp-track{width:100%;height:6px;border-radius:5px;background:rgba(255,255,255,.06);overflow:hidden;display:flex}
.cmp-side.right .cmp-track{justify-content:flex-end}
.cmp-fill{height:100%;border-radius:5px;background:linear-gradient(90deg,#2b74c9,#54a0f5)}
.cmp-side.right .cmp-fill{background:linear-gradient(270deg,#7a5cff,#a98bff)}
.cmp-fill.win{background:linear-gradient(90deg,#1d9e78,#3ee6b4)}
.cmp-side.right .cmp-fill.win{background:linear-gradient(270deg,#1d9e78,#3ee6b4)}
.cmp-center{width:110px;flex:none;text-align:center;font-size:9.5px;color:var(--muted2)}
.cmp-note{font-size:10px;color:var(--muted2);text-align:center;margin-top:5px}
.cmp-note b{color:var(--text)}
.cmp-verdict{margin:12px 0 0;padding:10px 12px;border-radius:10px;border:1px solid rgba(84,160,245,.35);background:rgba(84,160,245,.08);font-size:11.5px;line-height:1.55;color:var(--text)}
.cmp-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}
@media(max-width:600px){.cmp-cols{grid-template-columns:1fr}}
.cmp-col{border:1px solid var(--border);border-radius:10px;padding:10px;background:var(--surface)}
.cmp-col b{font-family:var(--font-display);font-size:11.5px;font-weight:400;display:block;margin-bottom:7px}
.cmp-titem{font-size:10.5px;color:var(--text);padding:5px 0;border-top:1px solid var(--border);line-height:1.4}
.cmp-titem span{color:var(--muted);font-size:9.5px}
.cmp-tier{font-family:var(--font-display);font-size:8.5px;color:var(--amber);border:1px solid rgba(240,176,74,.35);border-radius:4px;padding:1px 4px;margin-left:4px}
.cmp-fitem{display:flex;align-items:center;gap:7px;font-size:10.5px;color:var(--text);border-top:1px solid var(--border);padding-top:5px;margin-top:5px}
.cmp-fitem:first-of-type{border-top:0;margin-top:0}
.cmp-res{font-family:var(--font-display);font-size:9px;width:18px;height:18px;flex:none;display:inline-flex;align-items:center;justify-content:center;border-radius:5px}
.cmp-res.w{color:var(--radiant);background:var(--radiant-bg)}
.cmp-res.l{color:var(--dire);background:var(--dire-bg)}
.cmp-sc{font-family:var(--font-display);font-size:10.5px}
.cmp-op{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}
.cmp-dt{font-size:9.5px;color:var(--muted2)}
.cmp-icon{width:15px;height:15px;flex:0 0 15px}
.cmp-icon line,.cmp-icon path{stroke:var(--amber);stroke-width:1.6;fill:none;stroke-linecap:round}
.cmp-icon circle{fill:var(--amber)}
.cmp-icon .cmp-beam{animation:cmpRock 2.6s ease-in-out infinite;transform-origin:12px 6px}
@keyframes cmpRock{0%,100%{transform:rotate(-7deg)}50%{transform:rotate(7deg)}}
@media (prefers-reduced-motion: reduce){.cmp-icon .cmp-beam{animation:none!important;transform:none!important}}
/*.generic-каркас шторки для details/summary (compare), не только .ana-* */
.analytics-shutter{margin:8px 12px 10px;border:1px solid var(--border);border-radius:var(--radius-sm,10px);overflow:hidden;background:var(--surface2)}
.analytics-shutter>.analytics-shutter-header{display:flex;align-items:center;gap:7px;width:100%;padding:9px 12px;background:transparent;border:none;cursor:pointer;color:var(--text);font:inherit;list-style:none}
.analytics-shutter>summary.analytics-shutter-header::-webkit-details-marker{display:none}
.analytics-shutter>summary.analytics-shutter-header::marker{content:none}
.analytics-shutter>.analytics-shutter-header:active{background:var(--surface3)}
.analytics-shutter[open] .analytics-arrow{transform:rotate(180deg)}
.cmp-loading{padding:12px 2px;font-size:11px;color:var(--muted);line-height:1.5}
