/* =====================================================================
   WZ TOURNAMENT TRACKER — style.css  (COD Warzone Military Edition)
   Palette: COD Black · WZ Lime · Tactical Orange · Zero Rainbow
   ===================================================================== */

/* ── VARIABLES: COD WARZONE PALETTE ── */
:root {
  /* Backgrounds — Military Black */
  --bg:    #08090c;
  --surf:  #0d0f14;
  --surf2: #13161d;
  --surf3: #1a1e28;
  --surf4: #222733;

  /* Borders — Ultra-subtle */
  --border:  rgba(255,255,255,0.05);
  --border2: rgba(255,255,255,0.10);
  --border3: rgba(255,255,255,0.18);

  /* Text — Tactical Warm White */
  --txt1: #eeeee6;
  --txt2: #808890;
  --txt3: #454c58;
  --txt4: #282e38;

  /* ── PRIMARY: WZ LIME ── */
  --accent:      #c8f500;
  --accent-dim:  rgba(200,245,0,0.07);
  --accent-glow: rgba(200,245,0,0.15);
  --accent-dark: #8aab00;

  /* Rankings — muted, not flashy */
  --gold:   #c9a72a;
  --gold-d: rgba(201,167,42,0.08);
  --silver: #8898a8;
  --bronze: #9a7054;

  /* States */
  --red:   #c42b2b;
  --warn:  #d97706;   /* Tactical Orange — Match Point */
  --warn-d: rgba(217,119,6,0.10);

  /* Layout */
  --sidebar: 230px;
  --topbar:  58px;
  --r:    5px;    /* Angular — military feel */
  --r-md: 8px;
  --r-lg: 10px;

  --shadow:    0 4px 20px rgba(0,0,0,0.65);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.75);

  --font-h: 'Orbitron', monospace;
  --font:   'Inter', sans-serif;
  --trans:  all 0.16s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt1);
  overflow: hidden;
  height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }
svg { fill: currentColor; }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surf3); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--surf4); }

/* ── CANVAS BACKGROUND ── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.25;
}

/* ── APP LAYOUT ── */
#app {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ═══════════════════════════════════════════
   SIDEBAR — Tactical HUD
   ═══════════════════════════════════════════ */
#sidebar {
  width: var(--sidebar);
  min-width: var(--sidebar);
  height: 100vh;
  background: var(--surf);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  flex-shrink: 0;
  transition: width 0.28s ease, min-width 0.28s ease;
}
#sidebar.collapsed { width: 52px; min-width: 52px; }
#sidebar.collapsed .brand-info,
#sidebar.collapsed .nav-item > span:not(.nav-bar):not(.nav-ico),
#sidebar.collapsed .nav-badge,
#sidebar.collapsed .mp-text-group { display: none; }
#sidebar.collapsed .nav-item { justify-content: center; padding: 0 14px; }
#sidebar.collapsed .brand { justify-content: center; padding: 18px 0; }
#sidebar.collapsed .mp-pill { padding: 10px 6px; justify-content: center; }

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border);
}
.brand-icon {
  font-size: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid rgba(200,245,0,0.15);
  border-radius: var(--r);
  flex-shrink: 0;
  color: var(--accent);
  font-style: normal;
}
.brand-name {
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 800;
  color: var(--txt1);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.brand-name span { color: var(--accent); }
.brand-sub {
  font-size: 9px;
  color: var(--txt3);
  letter-spacing: 2px;
  margin-top: 2px;
  text-transform: uppercase;
}

/* Nav */
.nav-links {
  flex: 1;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--r);
  color: var(--txt2);
  font-size: 12px;
  font-weight: 500;
  transition: var(--trans);
  position: relative;
  width: 100%;
  text-align: left;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.nav-item:hover { background: var(--surf2); color: var(--txt1); }
.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
  border-left: 2px solid var(--accent);
}
.nav-item:not(.active) { border-left: 2px solid transparent; }
.nav-bar { display: none; } /* replaced by border-left */
.nav-ico { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.8; }
.nav-item.active .nav-ico { opacity: 1; }
.nav-badge {
  margin-left: auto;
  background: var(--surf3);
  color: var(--txt3);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 2px;
  font-family: var(--font-h);
  letter-spacing: 1px;
}
.nav-item.active .nav-badge { background: var(--accent-dim); color: var(--accent-dark); }

/* Sidebar Footer — Match Point */
.sidebar-footer { padding: 10px 8px; border-top: 1px solid var(--border); }
.mp-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  background: var(--warn-d);
  border: 1px solid rgba(217,119,6,0.2);
  border-radius: var(--r);
}
.mp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warn);
  flex-shrink: 0;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
.mp-label {
  font-family: var(--font-h);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--warn);
  display: block;
  text-transform: uppercase;
}
.mp-winner { font-size: 11px; font-weight: 600; color: var(--txt1); display: block; }

/* ═══════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════ */
#main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* TopBar */
.topbar {
  height: var(--topbar);
  min-height: var(--topbar);
  background: rgba(13,15,20,0.95);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  backdrop-filter: blur(8px);
  gap: 12px;
  flex-shrink: 0;
}
.topbar-l { display: flex; align-items: center; gap: 12px; }
.topbar-r { display: flex; align-items: center; gap: 8px; }
.page-info h1 {
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--txt1);
  text-transform: uppercase;
}
.page-info p { font-size: 10px; color: var(--txt3); margin-top: 1px; letter-spacing: 0.5px; }

/* View Area */
.view-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--r);
  font-size: 12px;
  font-weight: 600;
  transition: var(--trans);
  white-space: nowrap;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-primary {
  background: var(--accent);
  color: #000;
  font-weight: 700;
}
.btn-primary:hover {
  background: #d4ff1a;
  box-shadow: 0 0 16px var(--accent-glow);
}
.btn-outline {
  background: transparent;
  border-color: var(--border2);
  color: var(--txt2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--txt2); }
.btn-ghost:hover { background: var(--surf2); color: var(--txt1); }
.btn-danger { background: rgba(196,43,43,0.12); border-color: rgba(196,43,43,0.25); color: var(--red); }
.btn-danger:hover { background: rgba(196,43,43,0.22); }
.icon-btn {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r);
  color: var(--txt2);
  transition: var(--trans);
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--surf2); color: var(--txt1); }

/* ═══════════════════════════════════════════
   FORM CONTROLS
   ═══════════════════════════════════════════ */
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label { font-size: 10px; font-weight: 600; color: var(--txt3); letter-spacing: 1.5px; text-transform: uppercase; }
.form-control {
  background: var(--surf2);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  color: var(--txt1);
  font-size: 12px;
  padding: 7px 10px;
  transition: var(--trans);
  outline: none;
  width: 100%;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(200,245,0,0.08); }
.form-control::placeholder { color: var(--txt3); }
select.form-control { cursor: pointer; }
input[type="number"].form-control::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ═══════════════════════════════════════════
   STATS ROW — all same color, no rainbow
   ═══════════════════════════════════════════ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-top: 2px solid var(--border2);   /* Same for all — no rainbow */
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: var(--trans);
  position: relative;
}
.stat-card:hover { border-color: var(--border2); border-top-color: var(--accent); }
.stat-label {
  font-family: var(--font-h);
  font-size: 8px;
  color: var(--txt3);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}
.stat-value {
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 700;
  color: var(--txt1);
  letter-spacing: 1px;
}
.stat-sub { font-size: 10px; color: var(--txt3); }

/* ═══════════════════════════════════════════
   PODIUM
   ═══════════════════════════════════════════ */
.podium-section { margin-bottom: 24px; }
.podium-title {
  font-family: var(--font-h);
  font-size: 8px;
  letter-spacing: 4px;
  color: var(--txt3);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  min-height: 180px;
}
.podium-item { display: flex; flex-direction: column; align-items: center; gap: 0; flex: 1; max-width: 220px; }
.podium-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--r-md) var(--r-md) 0 0;
  padding: 14px;
  width: 100%;
  text-align: center;
  transition: var(--trans);
  position: relative;
}
.podium-card:hover { background: var(--surf2); }

/* Each place — minimal color, not flashy */
.podium-place-1 .podium-card { border-top: 2px solid var(--gold); }
.podium-place-2 .podium-card { border-top: 2px solid var(--silver); }
.podium-place-3 .podium-card { border-top: 2px solid var(--bronze); }

.podium-medal { font-size: 22px; margin-bottom: 4px; display: block; }
.podium-team-color { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.podium-name {
  font-family: var(--font-h);
  font-size: 11px;
  font-weight: 700;
  color: var(--txt1);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.podium-score {
  font-size: 28px;
  font-weight: 700;
  font-family: var(--font-h);
  color: var(--txt1);
}
.podium-place-1 .podium-score { color: var(--accent); }
.podium-score-label { font-size: 8px; color: var(--txt3); letter-spacing: 2px; margin-top: 2px; font-family: var(--font-h); text-transform: uppercase; }
.podium-mp-badge {
  background: var(--warn-d);
  border: 1px solid rgba(217,119,6,0.25);
  color: var(--warn);
  font-size: 7px;
  font-weight: 700;
  font-family: var(--font-h);
  letter-spacing: 2px;
  padding: 3px 8px;
  border-radius: 2px;
  margin-top: 6px;
  display: inline-block;
  text-transform: uppercase;
}
.podium-stand {
  width: 100%;
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h);
  font-size: 14px;
  font-weight: 900;
  color: rgba(255,255,255,0.12);
  border: 1px solid var(--border);
  border-top: none;
}
.podium-place-1 .podium-stand { height: 70px; background: rgba(201,167,42,0.06); }
.podium-place-2 .podium-stand { height: 48px; background: rgba(136,152,168,0.04); }
.podium-place-3 .podium-stand { height: 34px; background: rgba(154,112,84,0.04); }

/* ═══════════════════════════════════════════
   TABLE — Clean, monochromatic
   ═══════════════════════════════════════════ */
.table-section {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.table-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surf2);
}
.table-title {
  font-family: var(--font-h);
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--txt3);
  text-transform: uppercase;
  font-weight: 700;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
thead th {
  background: var(--surf2);
  padding: 8px 12px;
  text-align: left;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--txt3);
  white-space: nowrap;
  position: sticky; top: 0; z-index: 1;
  font-family: var(--font-h);
}
tbody tr { border-bottom: 1px solid var(--border); transition: var(--trans); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.02); }

/* Top 3 rows — barely visible tint, not colorful */
tbody tr.row-rank1 { background: rgba(201,167,42,0.03); }
tbody tr.row-rank2 { background: rgba(136,152,168,0.02); }
tbody tr.row-rank3 { background: rgba(154,112,84,0.02); }
tbody tr.row-mp    { background: rgba(217,119,6,0.04); }

tbody td { padding: 10px 12px; color: var(--txt1); white-space: nowrap; }
tbody td.td-score {
  font-family: var(--font-h);
  font-size: 11px;
  color: var(--txt3);
  text-align: center;
}
tbody td.td-score.best { color: var(--accent); font-weight: 700; }
tbody td.td-total {
  font-family: var(--font-h);
  font-size: 13px;
  font-weight: 700;
  color: var(--txt1);
  text-align: right;
}
tbody td.td-rank {
  font-family: var(--font-h);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  min-width: 44px;
}
.rank-medal { font-size: 16px; }
.rank-num { color: var(--txt3); font-size: 11px; }

/* Team name cell */
.team-name-cell { display: flex; align-items: center; gap: 8px; }
.team-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; opacity: 0.85; }
.team-label { font-weight: 600; font-size: 12px; }
.mp-tag {
  font-family: var(--font-h);
  font-size: 7px;
  letter-spacing: 1.5px;
  color: var(--warn);
  background: var(--warn-d);
  border: 1px solid rgba(217,119,6,0.2);
  padding: 1px 5px;
  border-radius: 2px;
  text-transform: uppercase;
}

/* Qualification separator */
.qual-row td {
  background: var(--surf2);
  padding: 5px 12px;
  font-size: 8px;
  font-family: var(--font-h);
  letter-spacing: 3px;
  color: var(--txt4);
  text-transform: uppercase;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

/* Kill bar */
.kill-bar-cell { min-width: 110px; }
.kill-bar-bg { background: var(--surf3); border-radius: 2px; height: 4px; overflow: hidden; }
.kill-bar-fill { height: 100%; border-radius: 2px; transition: width 0.5s ease; opacity: 0.7; }

/* ═══════════════════════════════════════════
   MAPS VIEW
   ═══════════════════════════════════════════ */
.maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.map-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 16px;
  transition: var(--trans);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.map-card:hover { border-color: rgba(200,245,0,0.2); background: var(--surf2); }
.map-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.map-num { font-family: var(--font-h); font-size: 11px; color: var(--accent); font-weight: 700; letter-spacing: 2px; }
.map-preloaded { font-size: 9px; color: var(--txt3); background: var(--surf2); padding: 2px 6px; border-radius: 2px; border: 1px solid var(--border); font-family: var(--font-h); letter-spacing: 1px; }
.map-top3 { display: flex; flex-direction: column; gap: 6px; }
.map-top-item { display: flex; align-items: center; gap: 7px; }
.map-top-rank { font-size: 10px; width: 18px; }
.map-top-name { font-size: 11px; font-weight: 500; color: var(--txt1); flex: 1; }
.map-top-score { font-family: var(--font-h); font-size: 11px; color: var(--accent); }
.map-stats-row { display: flex; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.map-stat { font-size: 10px; color: var(--txt3); }
.map-stat strong { color: var(--txt2); font-weight: 600; }

/* ═══════════════════════════════════════════
   PLAYERS VIEW
   ═══════════════════════════════════════════ */
.players-controls { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.search-box {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 7px 12px;
  color: var(--txt1);
  font-size: 12px;
  outline: none;
  transition: var(--trans);
  width: 220px;
}
.search-box:focus { border-color: var(--accent); }
.search-box::placeholder { color: var(--txt3); }
.players-table-wrap { background: var(--surf); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }

/* ═══════════════════════════════════════════
   TEAMS VIEW
   ═══════════════════════════════════════════ */
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.team-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: var(--trans);
}
.team-card:hover { border-color: var(--border2); }
.team-card-banner { height: 3px; width: 100%; }  /* Thin stripe only */
.team-card-body { padding: 14px; }
.team-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.team-card-name { font-family: var(--font-h); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.team-card-score { font-family: var(--font-h); font-size: 20px; font-weight: 900; }
.team-card-rank { font-size: 10px; color: var(--txt3); margin-top: 2px; font-family: var(--font-h); letter-spacing: 1px; }
.team-players { display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.team-player-row { display: flex; align-items: center; justify-content: space-between; }
.team-player-name { font-size: 12px; font-weight: 500; }
.team-player-kills { font-family: var(--font-h); font-size: 10px; color: var(--txt2); }
.team-player-avg { font-size: 10px; color: var(--txt3); }
.team-card-footer { padding: 10px 14px; border-top: 1px solid var(--border); display: flex; gap: 8px; }

/* ═══════════════════════════════════════════
   SETTINGS VIEW
   ═══════════════════════════════════════════ */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.settings-section {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
}
.settings-section-title {
  font-family: var(--font-h);
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--txt3);
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
}
.mult-table { width: 100%; border-collapse: collapse; }
.mult-table th { font-size: 8px; color: var(--txt3); text-transform: uppercase; letter-spacing: 1px; padding: 5px 0; text-align: left; font-family: var(--font-h); }
.mult-table td { padding: 5px 0; }
.mult-input {
  background: var(--surf2);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  color: var(--txt1);
  font-size: 12px;
  padding: 5px 8px;
  width: 65px;
  outline: none;
  transition: var(--trans);
  text-align: center;
  font-family: var(--font-h);
}
.mult-input:focus { border-color: var(--accent); }
.placement-badge {
  font-family: var(--font-h);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 2px;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════ */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.82);
  z-index: 1000;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px;
  backdrop-filter: blur(6px);
  overflow-y: auto;
}
.modal-bg.hidden { display: none; }
.modal-box {
  background: var(--surf);
  border: 1px solid var(--border2);
  border-radius: var(--r-lg);
  width: 100%;
  max-width: 740px;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.22s ease;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surf2);
}
.modal-header h2 {
  font-family: var(--font-h);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.modal-body { padding: 16px 20px; max-height: 60vh; overflow-y: auto; }
.modal-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: var(--surf2);
}

/* Map entry modal */
.map-entry-table { width: 100%; border-collapse: collapse; }
.map-entry-table th {
  background: var(--surf2);
  padding: 7px 8px;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--txt3);
  text-transform: uppercase;
  text-align: left;
  position: sticky; top: 0; z-index: 2;
  font-family: var(--font-h);
  font-weight: 700;
}
.map-entry-table td { padding: 5px 5px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.map-entry-table tr:last-child td { border-bottom: none; }
.map-entry-table tr:hover td { background: rgba(255,255,255,0.015); }
.entry-team-name { font-size: 11px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.entry-score-cell {
  font-family: var(--font-h);
  font-size: 12px;
  font-weight: 700;
  color: var(--txt3);
  min-width: 55px;
  text-align: center;
}
.kills-input {
  width: 48px;
  background: var(--surf2);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  color: var(--txt1);
  font-size: 11px;
  padding: 4px 5px;
  text-align: center;
  outline: none;
  transition: var(--trans);
  font-family: var(--font-h);
}
.kills-input:focus { border-color: var(--accent); }
.placement-sel {
  background: var(--surf2);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  color: var(--txt1);
  font-size: 11px;
  padding: 4px 6px;
  outline: none;
  cursor: pointer;
  transition: var(--trans);
  width: 55px;
}
.placement-sel:focus { border-color: var(--accent); }
.map-name-input {
  background: var(--surf2);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  color: var(--txt1);
  font-size: 12px;
  padding: 7px 12px;
  outline: none;
  transition: var(--trans);
  font-family: var(--font-h);
  letter-spacing: 2px;
}
.map-name-input:focus { border-color: var(--accent); }
.modal-map-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }

/* ═══════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 2000;
  background: var(--surf2);
  border: 1px solid var(--border2);
  border-radius: var(--r);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 500;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.25s ease;
  max-width: 300px;
  font-family: var(--font-h);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.toast.hidden { display: none; }
.toast.success { border-left: 3px solid var(--accent); }
.toast.success::before { content: '✓'; color: var(--accent); font-weight: 700; margin-right: 2px; }
.toast.error { border-left: 3px solid var(--red); }
.toast.error::before { content: '✕'; color: var(--red); font-weight: 700; margin-right: 2px; }
.toast.info { border-left: 3px solid var(--silver); }
.toast.info::before { content: '·'; color: var(--silver); font-weight: 700; margin-right: 2px; }

/* ═══════════════════════════════════════════
   SECTION HELPERS
   ═══════════════════════════════════════════ */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title {
  font-family: var(--font-h);
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--txt3);
  text-transform: uppercase;
  font-weight: 700;
}
.sep { height: 1px; background: var(--border); margin: 20px 0; }
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; color: var(--txt3); text-align: center; gap: 10px;
}
.empty-state-icon { font-size: 40px; opacity: 0.3; }
.empty-state-title { font-family: var(--font-h); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.empty-state-sub { font-size: 12px; max-width: 280px; }

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(217,119,6,0.5); }
  50% { opacity: 0.4; box-shadow: 0 0 2px rgba(217,119,6,0.2); }
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.fade-in { animation: fade-in 0.25s ease; }
tbody tr { animation: fade-in 0.18s ease both; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  #sidebar { position: fixed; z-index: 200; transform: translateX(-100%); }
  #sidebar.open { transform: none; }
  .podium { flex-direction: column; align-items: center; }
  .podium-item { max-width: 100%; width: 100%; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .topbar { padding: 0 12px; }
  .view-area { padding: 12px; }
}

/* ═══════════════════════════════════════════
   TIMER WIDGET
   ═══════════════════════════════════════════ */
.timer-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surf2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 6px 12px;
  flex-shrink: 0;
}
.timer-label {
  font-family: var(--font-h);
  font-size: 7px;
  letter-spacing: 2px;
  color: var(--txt3);
  text-transform: uppercase;
  font-weight: 700;
}
.timer-display {
  font-family: var(--font-h);
  font-size: 18px;
  font-weight: 700;
  color: var(--txt2);
  letter-spacing: 3px;
  min-width: 60px;
  text-align: center;
  transition: color 0.3s;
}
.timer-display.running { color: var(--accent); }
.timer-display.alert { color: var(--warn); animation: pulse-timer 1s ease-in-out infinite; }
.timer-controls { display: flex; gap: 2px; }
.timer-btn {
  width: 26px; height: 26px;
  font-size: 10px;
  color: var(--txt3);
}
.timer-btn:hover { color: var(--accent); background: var(--surf3); }

@keyframes pulse-timer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ═══════════════════════════════════════════
   FORM BADGES
   ═══════════════════════════════════════════ */
.form-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-h);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 5px;
  border-radius: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-hot  { background: rgba(255,100,0,0.15); color: #ff6400; border: 1px solid rgba(255,100,0,0.3); }
.badge-up   { background: rgba(200,245,0,0.10); color: var(--accent); border: 1px solid rgba(200,245,0,0.2); }
.badge-down { background: rgba(196,43,43,0.10); color: var(--red); border: 1px solid rgba(196,43,43,0.2); }
.badge-peak { background: rgba(201,167,42,0.12); color: var(--gold); border: 1px solid rgba(201,167,42,0.25); }
.badge-surge { background: rgba(200,245,0,0.12); color: var(--accent); border: 1px solid rgba(200,245,0,0.2); }

/* PRO nav badge */
.nav-badge-pro {
  background: rgba(200,245,0,0.12) !important;
  color: var(--accent) !important;
  border: 1px solid rgba(200,245,0,0.25) !important;
  font-family: var(--font-h) !important;
  letter-spacing: 1px !important;
}

/* ═══════════════════════════════════════════
   ANALYTICS VIEW
   ═══════════════════════════════════════════ */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.analytics-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.analytics-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surf2);
}
.analytics-card-title {
  font-family: var(--font-h);
  font-size: 8px;
  letter-spacing: 3px;
  color: var(--txt3);
  text-transform: uppercase;
  font-weight: 700;
}
.analytics-card-body { padding: 14px 16px; }

/* Consistency bar */
.consistency-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.consistency-row:last-child { border-bottom: none; }
.cons-rank { font-family: var(--font-h); font-size: 10px; color: var(--txt3); min-width: 24px; text-align: center; }
.cons-name { font-size: 11px; font-weight: 600; flex: 1; min-width: 100px; }
.cons-bar-wrap { flex: 2; }
.cons-bar-bg { background: var(--surf3); border-radius: 2px; height: 5px; overflow: hidden; }
.cons-bar-fill { height: 100%; border-radius: 2px; background: var(--accent); transition: width 0.5s ease; }
.cons-score { font-family: var(--font-h); font-size: 11px; font-weight: 700; min-width: 34px; text-align: right; }
.cons-avg { font-size: 10px; color: var(--txt3); min-width: 44px; text-align: right; }

/* Map heatmap */
.heatmap-wrap { overflow-x: auto; }
.heatmap-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.heatmap-table th { 
  font-family: var(--font-h);
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--txt3);
  text-transform: uppercase;
  padding: 5px 4px;
  text-align: center;
  white-space: nowrap;
}
.heatmap-table td { padding: 3px 2px; text-align: center; }
.heat-cell {
  display: inline-block;
  min-width: 36px;
  padding: 3px 4px;
  border-radius: 2px;
  font-family: var(--font-h);
  font-size: 9px;
  font-weight: 700;
}
.heat-0 { background: rgba(255,255,255,0.03); color: var(--txt4); }
.heat-1 { background: rgba(200,245,0,0.06); color: var(--txt3); }
.heat-2 { background: rgba(200,245,0,0.12); color: var(--accent-dark); }
.heat-3 { background: rgba(200,245,0,0.22); color: var(--accent); }
.heat-win { background: rgba(200,245,0,0.35); color: var(--accent); font-weight: 900; border: 1px solid rgba(200,245,0,0.3); }

/* MVP card */
.mvp-showcase {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.mvp-card {
  flex: 1;
  min-width: 140px;
  background: var(--surf2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mvp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
}
.mvp-card.mvp-kills::before { background: var(--accent); }
.mvp-card.mvp-consistent::before { background: var(--gold); }
.mvp-card.mvp-team::before { background: var(--warn); }
.mvp-title { font-family: var(--font-h); font-size: 7px; letter-spacing: 2px; color: var(--txt3); text-transform: uppercase; margin-bottom: 8px; }
.mvp-icon { font-size: 24px; margin-bottom: 6px; display: block; }
.mvp-name { font-family: var(--font-h); font-size: 12px; font-weight: 700; color: var(--txt1); }
.mvp-stat { font-size: 10px; color: var(--txt3); margin-top: 3px; }

/* Kill distribution bar chart */
.kill-dist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.kill-dist-label { font-family: var(--font-h); font-size: 9px; color: var(--txt3); min-width: 28px; text-align: right; }
.kill-dist-bar-wrap { flex: 1; }
.kill-dist-bar { height: 18px; border-radius: 2px; background: var(--accent); opacity: 0.7; transition: width 0.5s ease; display: flex; align-items: center; padding-left: 6px; min-width: 2px; }
.kill-dist-val { font-family: var(--font-h); font-size: 9px; font-weight: 700; color: #000; white-space: nowrap; }

/* H2H compare */
.h2h-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}
.h2h-team {
  text-align: center;
  padding: 12px;
  background: var(--surf2);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}
.h2h-vs { font-family: var(--font-h); font-size: 16px; font-weight: 900; color: var(--txt3); text-align: center; }
.h2h-team-name { font-family: var(--font-h); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.h2h-team-score { font-family: var(--font-h); font-size: 22px; font-weight: 900; }
.h2h-stat-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
}
.h2h-stat-row:last-child { border-bottom: none; }
.h2h-stat-a { text-align: right; font-weight: 600; }
.h2h-stat-b { text-align: left; font-weight: 600; }
.h2h-stat-label { text-align: center; font-size: 9px; color: var(--txt3); font-family: var(--font-h); letter-spacing: 1px; text-transform: uppercase; }
.h2h-win { color: var(--accent); }
.h2h-lose { color: var(--txt3); }
.h2h-map-row {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 4px;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
  font-size: 10px;
}
.h2h-map-label { font-family: var(--font-h); font-size: 8px; text-align: center; color: var(--txt3); }
.h2h-map-score { font-family: var(--font-h); font-size: 11px; font-weight: 700; }
.h2h-a-score { text-align: right; }
.h2h-b-score { text-align: left; }

/* Prize column */
.prize-cell {
  font-family: var(--font-h);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-align: right;
  white-space: nowrap;
}
.prize-cell-none { color: var(--txt4); font-size: 10px; text-align: right; }

/* ═══════════════════════════════════════════
   BROADCAST OVERLAY MODE
   ═══════════════════════════════════════════ */
.overlay-hidden { display: none; }
.overlay-hidden.overlay-active {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.3s ease;
}
.overlay-exit-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r);
  color: var(--txt2);
  padding: 8px 16px;
  font-family: var(--font-h);
  font-size: 11px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--trans);
  z-index: 10000;
}
.overlay-exit-btn:hover { background: rgba(255,255,255,0.12); color: var(--txt1); }

/* Overlay content styles */
#overlay-content {
  width: 100%;
  max-width: 1400px;
  padding: 40px;
}
.overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(200,245,0,0.2);
}
.overlay-title {
  font-family: var(--font-h);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: #fff;
}
.overlay-title span { color: var(--accent); }
.overlay-subtitle { font-family: var(--font-h); font-size: 12px; color: var(--txt3); letter-spacing: 3px; margin-top: 4px; }
.overlay-mp-badge {
  background: var(--warn-d);
  border: 1px solid var(--warn);
  border-radius: var(--r-md);
  padding: 10px 20px;
  text-align: center;
}
.overlay-mp-title { font-family: var(--font-h); font-size: 8px; letter-spacing: 3px; color: var(--warn); text-transform: uppercase; }
.overlay-mp-name { font-family: var(--font-h); font-size: 18px; font-weight: 700; color: #fff; }
.overlay-rankings {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.overlay-row {
  display: grid;
  grid-template-columns: 52px 260px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--r-md);
  transition: var(--trans);
}
.overlay-row.ov-mp {
  background: rgba(217,119,6,0.08);
  border-color: rgba(217,119,6,0.25);
}
.overlay-row.ov-1st {
  background: rgba(200,245,0,0.06);
  border-color: rgba(200,245,0,0.2);
}
.ov-rank { font-family: var(--font-h); font-size: 16px; font-weight: 900; text-align: center; color: var(--txt3); }
.ov-rank-medal { font-size: 22px; text-align: center; }
.ov-name { display: flex; align-items: center; gap: 10px; }
.ov-dot { width: 10px; height: 10px; border-radius: 50%; }
.ov-team-name { font-family: var(--font-h); font-size: 16px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.ov-bar-wrap { display: flex; align-items: center; gap: 10px; }
.ov-bar-bg { flex: 1; height: 6px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.ov-bar-fill { height: 100%; border-radius: 2px; opacity: 0.7; }
.ov-score { font-family: var(--font-h); font-size: 26px; font-weight: 900; text-align: right; min-width: 80px; }
.ov-row-mp-tag { font-family: var(--font-h); font-size: 8px; letter-spacing: 2px; color: var(--warn); border: 1px solid var(--warn); padding: 2px 6px; border-radius: 2px; }
.overlay-footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.overlay-maps-info { font-family: var(--font-h); font-size: 10px; color: var(--txt3); letter-spacing: 2px; }
.overlay-timer-display { font-family: var(--font-h); font-size: 22px; font-weight: 700; color: var(--accent); letter-spacing: 4px; }


/* =====================================================================
   WZ TRACKER v3.0  NEW FEATURES CSS
   ===================================================================== */

/* NAV BADGE NEW */
.nav-badge-new { background: rgba(88,166,255,0.2); color: #58a6ff; border: 1px solid rgba(88,166,255,0.3); }

/* TOPBAR DIVIDER */
.topbar-divider { width: 1px; height: 22px; background: var(--border2); margin: 0 4px; }

/* UNDO/REDO */
#undo-btn, #redo-btn { width: 32px; height: 32px; opacity: 0.3; transition: opacity 0.2s; }
#undo-btn:not([disabled]), #redo-btn:not([disabled]) { opacity: 1; }
#undo-btn svg, #redo-btn svg { fill: var(--txt2); }
#undo-btn:not([disabled]):hover svg, #redo-btn:not([disabled]):hover svg { fill: var(--accent); }

/* KBD HINT */
.sidebar-kbd-hint { padding: 10px 14px; border-top: 1px solid var(--border); }
.kbd-hint-title { font-family: var(--font-h); font-size: 8px; letter-spacing: 2px; color: var(--txt4); margin-bottom: 8px; }
.kbd-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.kbd-row span { font-size: 10px; color: var(--txt3); }
kbd { font-family: var(--font-h); font-size: 9px; background: var(--surf3); border: 1px solid var(--border3); border-radius: 3px; padding: 2px 5px; color: var(--txt2); min-width: 44px; text-align: center; letter-spacing: 0.5px; }

/* OBS POPUP */
.obs-popup { position: absolute; top: 60px; right: 60px; z-index: 500; background: var(--surf2); border: 1px solid var(--border3); border-radius: var(--r); padding: 16px; min-width: 320px; box-shadow: 0 12px 40px rgba(0,0,0,0.6); }
.obs-popup.hidden { display: none; }
.obs-popup-title { font-family: var(--font-h); font-size: 10px; letter-spacing: 2px; color: var(--accent); margin-bottom: 12px; }
.obs-popup-body { display: flex; flex-direction: column; gap: 8px; }
.obs-link-row { display: flex; align-items: center; gap: 8px; }
.obs-link-label { flex: 1; font-size: 12px; color: var(--txt2); }
.obs-link-btn { font-family: var(--font-h); font-size: 9px; padding: 4px 10px; background: var(--accent-dim); border: 1px solid var(--accent-glow); color: var(--accent); border-radius: 3px; cursor: pointer; text-decoration: none; letter-spacing: 1px; }
.obs-link-btn:hover { background: var(--accent); color: #000; }
.obs-copy-btn { font-size: 10px; padding: 4px 8px; background: var(--surf3); border: 1px solid var(--border2); color: var(--txt2); border-radius: 3px; cursor: pointer; }
.obs-copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.obs-popup-note { font-size: 10px; color: var(--txt3); margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border); }

/* WAITING ROOM */
#waiting-room-mode { position: fixed; inset: 0; z-index: 3000; background: #000; display: flex; align-items: center; justify-content: center; flex-direction: column; }
#waiting-room-mode.overlay-hidden { display: none; }
#waiting-room-mode.overlay-active { display: flex; }
.wr-container { width: 100%; height: 100vh; background: radial-gradient(ellipse at center, #0d1220 0%, #050709 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.wr-scanlines { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.12) 2px, rgba(0,0,0,0.12) 4px); pointer-events: none; z-index: 1; }
.wr-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(200,245,0,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(200,245,0,0.03) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; }
.wr-content { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.wr-logo { font-family: var(--font-h); font-size: 58px; font-weight: 900; letter-spacing: 8px; color: var(--txt1); text-shadow: 0 0 40px rgba(200,245,0,0.3); }
.wr-logo span { color: var(--accent); }
.wr-tournament { font-family: var(--font-h); font-size: 13px; letter-spacing: 6px; color: var(--txt3); }
.wr-phase { font-family: var(--font-h); font-size: 16px; letter-spacing: 4px; color: var(--gold); border: 1px solid rgba(201,167,42,0.3); padding: 7px 22px; border-radius: 2px; }
.wr-countdown { display: flex; gap: 0; align-items: center; }
.wr-count-unit { display: flex; flex-direction: column; align-items: center; padding: 0 20px; }
.wr-count-unit + .wr-count-unit { border-left: 1px solid var(--border2); }
.wr-count-num { font-family: var(--font-h); font-size: 68px; font-weight: 900; line-height: 1; color: var(--accent); text-shadow: 0 0 30px rgba(200,245,0,0.4); min-width: 80px; text-align: center; }
.wr-count-label { font-family: var(--font-h); font-size: 9px; letter-spacing: 3px; color: var(--txt3); margin-top: 8px; }
.wr-status { font-family: var(--font-h); font-size: 11px; letter-spacing: 4px; color: var(--txt3); }
.wr-next-map-btn { font-family: var(--font-h); font-size: 11px; letter-spacing: 3px; background: transparent; border: 1px solid var(--accent); color: var(--accent); padding: 10px 24px; border-radius: 2px; cursor: pointer; transition: all 0.2s; }
.wr-next-map-btn:hover { background: var(--accent); color: #000; }

/* K/D */
.kd-badge { display: inline-flex; align-items: center; gap: 3px; font-family: var(--font-h); font-size: 9px; letter-spacing: 1px; padding: 2px 6px; border-radius: 2px; background: rgba(88,166,255,0.1); border: 1px solid rgba(88,166,255,0.2); color: #58a6ff; white-space: nowrap; }
.kd-badge.kd-elite { background: rgba(200,245,0,0.1); border-color: rgba(200,245,0,0.25); color: var(--accent); }
.kd-badge.kd-avg { background: rgba(201,167,42,0.1); border-color: rgba(201,167,42,0.2); color: var(--gold); }

/* STREAKS */
.streak-badge { display: inline-flex; align-items: center; gap: 3px; font-family: var(--font-h); font-size: 8px; letter-spacing: 1px; padding: 2px 5px; border-radius: 2px; white-space: nowrap; }
.streak-win { background: rgba(200,245,0,0.1); border: 1px solid rgba(200,245,0,0.25); color: var(--accent); }
.streak-lose { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2); color: #ef4444; }

/* PREDICTION */
.prediction-card { background: var(--surf2); border: 1px solid var(--border2); border-top: 2px solid var(--accent); border-radius: var(--r); padding: 16px; }
.prediction-title { font-family: var(--font-h); font-size: 9px; letter-spacing: 2px; color: var(--txt3); margin-bottom: 12px; }
.prediction-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pred-rank { font-family: var(--font-h); font-size: 11px; color: var(--txt3); min-width: 20px; }
.pred-name { flex: 1; font-size: 12px; font-weight: 600; color: var(--txt1); }
.pred-bar-wrap { width: 100px; }
.pred-bar-bg { height: 4px; background: var(--surf4); border-radius: 2px; overflow: hidden; }
.pred-bar-fill { height: 100%; background: var(--accent); border-radius: 2px; }
.pred-pct { font-family: var(--font-h); font-size: 12px; color: var(--accent); min-width: 36px; text-align: right; }

/* CHART */
.chart-canvas-wrap { position: relative; width: 100%; height: 260px; }
.analytics-chart-card { background: var(--surf2); border: 1px solid var(--border2); border-top: 2px solid var(--accent); border-radius: var(--r); padding: 20px; grid-column: 1/-1; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.chart-legend-item { display: flex; align-items: center; gap: 6px; font-size: 10px; color: var(--txt2); }
.chart-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.chart-no-data { display: flex; align-items: center; justify-content: center; height: 200px; font-family: var(--font-h); font-size: 11px; letter-spacing: 2px; color: var(--txt4); }

/* GROUPS */
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; padding: 12px 0; }
.group-card { background: var(--surf2); border: 1px solid var(--border2); border-radius: var(--r); overflow: hidden; }
.group-card-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--surf3); }
.group-card-title { font-family: var(--font-h); font-size: 12px; letter-spacing: 3px; color: var(--accent); }
.group-card-subtitle { font-size: 10px; color: var(--txt3); }
.group-table { width: 100%; border-collapse: collapse; }
.group-table th { font-family: var(--font-h); font-size: 8px; letter-spacing: 1.5px; color: var(--txt3); padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.group-table td { padding: 7px 12px; font-size: 12px; color: var(--txt2); border-bottom: 1px solid rgba(255,255,255,0.03); }
.group-table tr:last-child td { border-bottom: none; }
.group-table tr:hover td { background: var(--surf3); }
.group-qual-row td { color: var(--accent) !important; background: rgba(200,245,0,0.04) !important; }
.phase-btn { font-family: var(--font-h); font-size: 9px; letter-spacing: 2px; padding: 6px 14px; border-radius: 2px; border: 1px solid var(--border2); background: var(--surf2); color: var(--txt3); cursor: pointer; transition: all 0.15s; }
.phase-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.phase-btn:hover { border-color: var(--border3); color: var(--txt1); }
.groups-mgmt-bar { display: flex; gap: 10px; align-items: center; padding: 12px 16px; background: var(--surf2); border: 1px solid var(--border2); border-radius: var(--r); margin-bottom: 16px; flex-wrap: wrap; }

/* MAP NOTES */
.map-note-field { background: var(--surf3); border: 1px solid var(--border2); border-radius: var(--r); padding: 8px 12px; font-size: 12px; color: var(--txt2); font-family: var(--font-ui); width: 100%; resize: vertical; min-height: 60px; line-height: 1.5; box-sizing: border-box; }
.map-note-field:focus { outline: none; border-color: var(--accent); color: var(--txt1); }
.map-note-display { font-size: 11px; color: var(--txt3); font-style: italic; padding: 4px 0; }

/* UNDO INDICATOR */
.undo-indicator { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--surf3); border: 1px solid var(--border3); border-radius: 4px; padding: 8px 18px; font-family: var(--font-h); font-size: 10px; letter-spacing: 2px; color: var(--txt2); z-index: 9999; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.undo-indicator.show { opacity: 1; }

/* PHASE BANNER */
.phase-banner { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-h); font-size: 9px; letter-spacing: 3px; color: var(--gold); border: 1px solid rgba(201,167,42,0.3); background: rgba(201,167,42,0.06); padding: 5px 14px; border-radius: 2px; margin-bottom: 12px; }

/* TICKER */
.ticker-container { width: 100%; height: 44px; background: rgba(0,0,0,0.92); border-top: 2px solid var(--accent); display: flex; align-items: center; overflow: hidden; position: fixed; bottom: 0; left: 0; }
.ticker-label { font-family: var(--font-h); font-size: 10px; letter-spacing: 2px; color: var(--accent); background: rgba(200,245,0,0.12); padding: 0 16px; height: 100%; display: flex; align-items: center; white-space: nowrap; border-right: 1px solid rgba(200,245,0,0.2); flex-shrink: 0; }
.ticker-scroll { display: flex; animation: ticker-scroll 30s linear infinite; white-space: nowrap; }
.ticker-item { font-family: var(--font-h); font-size: 12px; color: var(--txt1); padding: 0 24px; display: flex; align-items: center; gap: 8px; letter-spacing: 1px; }
.ticker-kills { color: var(--accent); font-weight: 700; }
@keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* JSON DROP ZONE */
.json-drop-zone { border: 2px dashed var(--border2); border-radius: var(--r); padding: 24px; text-align: center; cursor: pointer; transition: all 0.2s; }
.json-drop-zone:hover, .json-drop-zone.drag-over { border-color: var(--accent); background: var(--accent-dim); }
.json-drop-zone p { font-size: 12px; color: var(--txt3); margin: 0; }
.json-drop-zone strong { font-family: var(--font-h); font-size: 11px; letter-spacing: 1px; color: var(--txt2); display: block; margin-bottom: 4px; }
