/* The stats site and the guide: Counter-Strike 1.6's colors (the HUD's orange, khaki, sand) on a dark background. */
:root {
  --bg: #15170f;
  --panel: #1f2219;
  --panel-head: #2a2e21;
  --line: #363c2a;
  --text: #e8e3cf;
  --muted: #9b9a85;
  --accent: #ffb000;
  --khaki: #c3c96b;
  --link: #8fc3ff;
  --title: Impact, "Arial Narrow Bold", "Franklin Gothic Medium", sans-serif;
}

body {
  margin: 0;
  color: var(--text);
  font: 16px/1.5 Verdana, Tahoma, sans-serif;
  /* Faint diagonal stripes, like a crate's warning tape seen from far. */
  background: var(--bg) repeating-linear-gradient(135deg, transparent 0 22px, #ffffff05 22px 44px);
}
main { max-width: 920px; margin: 0 auto; padding: 8px 16px 32px; }
a { color: var(--link); }
b { color: #fff; }
code { background: #2a2e21; color: var(--khaki); padding: 2px 6px; border-radius: 4px; }
/* The pixel art stays sharp when it is shown bigger. */
img { image-rendering: pixelated; }

h1, h2 { font-family: var(--title); font-weight: normal; letter-spacing: 0.04em; text-transform: uppercase; }
h1 { color: var(--accent); font-size: 2.2em; margin: 16px 0 8px; text-shadow: 2px 2px 0 #000; }
h2 { color: var(--accent); font-size: 1.5em; margin: 36px 0 10px; padding-left: 10px; border-left: 4px solid var(--khaki); }
h3 { font-size: 1em; margin: 20px 0 6px; color: var(--khaki); }

/* The menu bar. */
header.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 16px; background: #0d0e09; border-bottom: 3px solid var(--accent);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none;
  font-family: var(--title); font-size: 1.6em; letter-spacing: 0.04em; }
.brand span { color: var(--accent); }
.menu a { margin-left: 16px; color: var(--text); text-decoration: none; text-transform: uppercase; font-size: 0.9em;
  letter-spacing: 0.06em; }
.menu a:hover { color: var(--accent); }

/* Who plays right now, and the join button. */
.live {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  max-width: 888px; margin: 12px auto 0; padding: 10px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px;
}
.join-box { margin-left: auto; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #a33; }
.dot.on { background: #4cd964; box-shadow: 0 0 8px #4cd964; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) { .dot.on { animation: none; } }

/* The one-click "Join the server" button (steam://connect). */
a.join {
  display: inline-block; padding: 6px 16px; border-radius: 4px;
  background: var(--accent); color: #15170f; font-weight: bold; text-decoration: none; text-transform: uppercase;
  box-shadow: 0 3px 0 #b37b00;
}
a.join:hover { background: #ffc633; }

.banner { display: block; width: 100%; height: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 6px; }
.icon { width: 24px; height: 24px; vertical-align: middle; margin-right: 6px; }

/* The race filter above the XP ranking. */
nav.races { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
nav.races a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel);
  color: var(--text); text-decoration: none; font-size: 0.9em; }
nav.races a.active, nav.races a:hover { border-color: var(--accent); color: var(--accent); }

table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
th { background: var(--panel-head); color: var(--accent); font-size: 0.85em; text-transform: uppercase;
  letter-spacing: 0.05em; }
tbody tr:hover { background: #262a1e; }
/* The rankings: a narrow first column (the position), the last one aligned right (a number). */
.ranking td:first-child, .ranking th:first-child { width: 3em; text-align: center; font-weight: bold; }
.ranking td:last-child, .ranking th:last-child { text-align: right; }
/* The podium: gold, silver and bronze. */
.ranking tbody tr:nth-child(-n+3) td:first-child { color: #15170f; }
.ranking tbody tr:nth-child(1) td:first-child { background: #e6b422; }
.ranking tbody tr:nth-child(2) td:first-child { background: #b9bcc0; }
.ranking tbody tr:nth-child(3) td:first-child { background: #c27c3e; }
/* Achievements not unlocked yet: dimmed. */
.locked { color: #6b6f5e; }

/* The guide's "On this server": a card per subject. */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card { padding: 4px 16px 10px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--khaki);
  border-radius: 6px; }
.card h3 { font-family: var(--title); font-weight: normal; font-size: 1.3em; text-transform: uppercase;
  letter-spacing: 0.04em; }
.card ul { margin: 0; padding-left: 18px; }
.card li { margin-bottom: 6px; }

/* The bots' page: one card each. */
.bots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 16px; }
.bot { padding: 14px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.bot img { width: 96px; height: 96px; border-radius: 50%; background: #2a2e21; border: 3px solid var(--khaki); }
.bot h3 { margin: 8px 0 4px; font-family: var(--title); font-size: 1.4em; font-weight: normal; color: var(--accent); }
.bot h3::before { content: "[AI] "; color: var(--muted); font-size: 0.7em; }
.bot p { margin: 0; color: var(--muted); font-size: 0.9em; }
.note { color: var(--muted); font-size: 0.9em; }
/* The bots' latest lines: the line itself stands out, the time stays quiet. */
.quotes td:nth-child(2) { font-style: italic; }
.quotes td:last-child { color: var(--muted); font-size: 0.85em; white-space: nowrap; }

footer { margin-top: 40px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9em; }

@media (max-width: 600px) {
  h1 { font-size: 1.7em; }
  th, td { padding: 6px 5px; font-size: 0.9em; }
  .menu a { margin: 0 12px 0 0; }
  .join-box { margin-left: 0; }
}
