/* ===== 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('/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('/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('/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('/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: 84px;
  -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;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--surface2);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.topbar-logo img {
  width: 100%; height: 100%;
  border-radius: 11px;
  object-fit: contain;
  display: block;
}
/* СЃС‚РµРєР»СЏРЅРЅС‹Р№ Р±Р»РёРє, РїСЂРѕС…РѕРґСЏС‰РёР№ РїРѕ Р»РѕРіРѕС‚РёРїСѓ (С‚РѕР»СЊРєРѕ transform вЂ” РґС‘С€РµРІРѕ) */
.topbar-logo::after {
  content: "";
  position: absolute;
  top: -15%;
  width: 45%; height: 130%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.4) 45%, rgba(255, 255, 255, 0.12) 55%, transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  will-change: transform;
  animation: logoShine 3.6s ease-in-out infinite;
}
@keyframes logoShine {
  0%   { transform: skewX(-20deg) translateX(-200%); }
  55%  { transform: skewX(-20deg) translateX(520%); }
  100% { transform: skewX(-20deg) translateX(520%); }
}
.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 16px;
  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 { font-size: 12.5px; color: var(--muted); padding: 6px 16px 10px; line-height: 1.5; }
.upcoming-pred b { color: var(--text); }
.upcoming-pred.pre { color: var(--muted2); font-size: 12px; }
.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; }
}

.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: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50;
  display: flex;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(13, 19, 30, 0.95));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 26px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
  padding: 6px 8px;
  transform: translateZ(0);
}
[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: 5px;
  padding: 8px 0 7px;
  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); }
.nav-btn.active { color: var(--amber); }
.nav-btn.active::before {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}
/* С‚РѕРЅРєР°СЏ СЃРІРµС‚СЏС‰Р°СЏСЃСЏ Р»РёРЅРёСЏ-РёРЅРґРёРєР°С‚РѕСЂ РЅР°Рґ Р°РєС‚РёРІРЅРѕР№ РєРЅРѕРїРєРѕР№ */
.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; }
}
.nav-icon {
  position: relative;
  width: 48px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.nav-icon svg {
  width: 23px; height: 23px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}
.nav-btn.active .nav-icon svg {
  transform: translateY(-1.5px) scale(1.12);
  filter: drop-shadow(0 0 7px rgba(240, 176, 74, 0.75));
}
.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 {
  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); }

/* РїСѓР»СЊСЃРёСЂСѓСЋС‰РёР№ 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-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 {
  margin: 12px 14px;
  padding: 16px;
  border: 1px dashed rgba(255, 200, 87, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 200, 87, 0.06), rgba(255, 92, 104, 0.05));
  text-align: center;
}
.lock-icon { font-size: 30px; margin-bottom: 6px; filter: blur(1.5px); }
.lock-text { font-family: var(--font-display); font-size: 15px; color: var(--text); letter-spacing: 0.3px; }
.lock-sub { color: var(--muted); font-size: 12px; margin: 4px 0 12px; line-height: 1.5; }
.lock-btns { display: flex; flex-direction: column; gap: 8px; max-width: 260px; margin: 0 auto; }
.lock-btn {
  background: var(--amber);
  color: #1a1406;
  font-weight: 800;
  font-size: 13px;
  padding: 11px 14px;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}
.lock-btn.secondary {
  background: transparent;
  color: var(--amber);
  border: 1px solid rgba(255, 200, 87, 0.5);
}
.lock-btn.big { width: 100%; margin: 6px 0; }
.lock-btn:disabled { opacity: 0.6; }

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;
}
.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;
  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); }
  .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: flex; flex-direction: column; 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;
}
.cs2-maps .map-chip .mc-label { flex: 0 0 48px; 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: flex; gap: 8px; margin: 12px 0 10px; flex-wrap: nowrap; }
.cs2-map-tab {
  flex: 1 1 0; 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: 6px 8px; 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 {
  border-radius: 14px;
  border: 1px solid rgba(255, 184, 77, 0.35);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 22px rgba(255, 184, 77, 0.18);
  background: rgba(20, 30, 48, 0.7);
}
.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 {
  padding: 10px 14px 4px;
  gap: 8px;
}
.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;
}
@keyframes gameShine {
  0% { left: -60%; }
  55% { left: 130%; }
  100% { left: 130%; }
}

/* ===== 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; }

/* ===== 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;
}

/* ===== РљРђР РўРћР§РљР (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"] .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-top: 8px;
  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 12px 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); }

/* ===== RuKassa paywall ===== */
.rk-paywall { display: flex; flex-direction: column; gap: 10px; padding: 4px 2px 8px; }
.rk-head { font-family: var(--font-display); font-size: 19px; font-weight: 800; text-align: center; }
.rk-sub { text-align: center; color: var(--hint); font-size: 13.5px; margin-top: -4px; }
.rk-feats { display: flex; flex-direction: column; gap: 6px; background: rgba(84,160,245,.07); border: 1px solid rgba(84,160,245,.22); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.rk-tariffs { display: flex; flex-direction: column; gap: 8px; }
.rk-tariff { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; padding: 11px 14px; border-radius: 12px; border: 1.6px solid var(--stroke, #2a3550); background: var(--panel, #101623); cursor: pointer; }
.rk-tariff .tariff-price { font-size: 17px; font-weight: 800; }
.rk-per { font-size: 12px; color: var(--hint); }
.rk-tariff.rk-selected { border-color: #54a0f5; box-shadow: 0 0 0 1px #54a0f5 inset; }
.rk-tariff.rk-popular .rk-badge { position: absolute; top: -9px; right: 10px; background: linear-gradient(135deg, #f5a623, #f7c948); color: #10131a; font-size: 10px; font-weight: 800; letter-spacing: .6px; padding: 2px 8px; border-radius: 8px; }
.rk-tariff.rk-match .tariff-title2 { font-size: 14px; }
.rk-cta { width: 100%; background: linear-gradient(135deg, #2f7fe0, #54a0f5); border: none; color: #fff; font-weight: 800; }
.rk-cta:active { transform: scale(.985); }
.rk-trust { text-align: center; font-size: 12.5px; color: var(--hint); }
.rk-dismiss { background: none; border: none; color: var(--hint); font-size: 13.5px; padding: 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rk-method { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 14px; border-radius: 12px; border: 1.6px solid var(--stroke, #2a3550); background: var(--panel, #101623); cursor: pointer; font-size: 14.5px; }
.rk-method:active { border-color: #54a0f5; }
.rk-m-ico { font-size: 22px; }
