/* ============================================================
   base.css — CSS custom properties, resets, global layout
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap');

/* ── Custom properties ────────────────────────────────── */
:root {
  --bg:        #0a0c12;
  --surface:   #111520;
  --card:      #161b28;
  --border:    #232a3b;
  --accent:    #c8a84b;
  --accent2:   #3d6bff;
  --live:      #ff3b3b;
  --text:      #e8eaf0;
  --muted:     #6b7591;
  --win:       #2aad6a;
  --draw:      #c8a84b;
  --loss:      #ff3b3b;
  --radius:    6px;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

/* ── Reset ────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { font-size: 14px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: var(--font-body); cursor: pointer; }

/* ── Pages ────────────────────────────────────────────── */
main { padding-top: 0; }

.page {
  display: none;
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}
.page.active { display: block; }

/* ── Section headers ──────────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--text);
}

/* ── Pills / badges ───────────────────────────────────── */
.pill {
  background: var(--border);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 59, 59, .15);
  color: var(--live);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live);
  flex-shrink: 0;
  animation: blink 1s infinite;
}

/* ── Animations ───────────────────────────────────────── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: .2; }
}

/* ── Legend ───────────────────────────────────────────── */
.legend {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
}
.lc {
  width: 3px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Column legend ────────────────────────────────────────── */
.col-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}
.col-legend strong {
  color: var(--text);
  font-weight: 600;
  margin-right: 2px;
}

/* ── Update ticker ────────────────────────────────────── */
.update-line {
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  margin-bottom: 10px;
}
.update-line span { color: var(--accent); }

/* ── Hero banner ──────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0d1424, #111b35 50%, #0d1a20);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(200,168,75,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-logo {
  flex-shrink: 0;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* White SVG on dark background — no filter needed */
}
.hero-logo-fallback {
  font-size: 52px;
}
.hero-text h1 {
  font-family: var(--font-display);
  font-size: 38px;
  letter-spacing: 3px;
  color: var(--accent);
  line-height: 1;
}
.hero-text p {
  color: var(--muted);
  margin-top: 5px;
  font-size: 12px;
}
.hero-stats {
  display: flex;
  gap: 28px;
  margin-left: auto;
  flex-shrink: 0;
}
.hero-stat { text-align: center; }
.hero-stat .n {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--text);
  letter-spacing: 1px;
}
.hero-stat .l {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { flex-wrap: wrap; padding: 18px; }
  .hero-stats { margin-left: 0; }
  .page { padding: 14px; }
}
