:root {
  --bg: #10141a;
  --bg-panel: #171d25;
  --bg-raised: #1f2731;
  --line: rgba(255,255,255,0.05);
  --text: #e7ecf2;
  --text-muted: #8996a6;
  --emerald: #4fc47f;
  --emerald-dim: #2c4a37;
  --gold: #e8a940;
  --radius: 10px;
  --font-display: -apple-system, 'SF Pro Display', system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px 20px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--emerald);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

/* Hero */
.hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  text-align: center;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
  font-size: clamp(28px, 6vw, 48px);
  line-height: 1.4;
  margin: 0 0 20px;
  color: var(--text);
  text-shadow: 0 0 24px rgba(79,196,127,0.25);
}
.hero p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 32px;
}

/* IP block */
.ip-block {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 28px;
}
.ip-block .label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}
.ip-block .ip {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 600;
  color: var(--emerald);
}
.ip-block button {
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--emerald-dim);
  color: var(--emerald);
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ip-block button:hover { background: var(--emerald); color: #0b1210; }

.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: inline-block;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--emerald); color: #0b1210; border-color: var(--emerald); }
.btn-secondary { background: transparent; color: var(--text); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* Stats strip */
.stats {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-card .stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.stat-card .stat-value { font-size: 18px; font-weight: 600; }

/* Section heading */
.section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 20px 70px;
}
.section-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

/* Leaderboard */
.board {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.board-row {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.board-row:last-child { border-bottom: none; }
.board-row:hover { background: var(--bg-raised); }
.board-rank {
  font-family: var(--font-mono);
  font-weight: 600;
  width: 40px;
  color: var(--text-muted);
}
.board-row:nth-child(1) .board-rank { color: var(--gold); }
.board-row:nth-child(2) .board-rank { color: #c9d3de; }
.board-row:nth-child(3) .board-rank { color: #c98a4f; }
.board-name { flex: 1; font-weight: 500; }
.board-elo { font-family: var(--font-mono); color: var(--emerald); font-weight: 600; }

/* Links grid (links.html) */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.slot {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.slot:hover { transform: translateY(-3px); border-color: var(--emerald); }
.slot-icon { font-size: 22px; margin-bottom: 12px; display: block; }
.slot-title { font-weight: 600; margin-bottom: 4px; }
.slot-desc { font-size: 13px; color: var(--text-muted); }

/* Footer */
.footer {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px 50px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer .ip { font-family: var(--font-mono); color: var(--emerald); }

@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr; }
  .nav { flex-direction: column; gap: 14px; }
}
