:root {
  --bg: #0a0f1a;
  --panel: #141c2e;
  --text: #edf2f8;
  --muted: #9eacbf;
  --gold: #c9a345;
  --win: #4ab89e;
  --loss: #db5461;
  --live: #f26b47;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.top, footer {
  padding: 14px 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid #2c384d;
}
footer {
  border-bottom: 0;
  border-top: 1px solid #2c384d;
  color: var(--muted);
  font-size: 12px;
  margin-top: auto;
}
.brand { color: var(--gold); font-weight: 700; text-decoration: none; font-size: 20px; }
nav a { color: var(--muted); text-decoration: none; margin-right: 12px; }
nav a:hover { color: var(--text); }
main { width: min(920px, 100%); margin: 0 auto; padding: 24px 16px 48px; flex: 1; }
h1, h2 { font-weight: 650; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
input, select, button {
  background: var(--panel);
  color: var(--text);
  border: 1px solid #2c384d;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 16px;
}
button.primary {
  background: var(--gold);
  color: #111;
  border: 0;
  font-weight: 650;
  cursor: pointer;
}
.card {
  background: var(--panel);
  border: 1px solid #2c384d;
  border-radius: 12px;
  padding: 12px;
  margin: 8px 0;
  text-decoration: none;
  color: inherit;
  display: block;
}
.win { color: var(--win); font-weight: 700; }
.loss { color: var(--loss); font-weight: 700; }
.live { color: var(--live); font-weight: 700; }
img.icon { width: 36px; height: 36px; border-radius: 6px; background: #0a0f1a; }
img.sm { width: 22px; height: 22px; border-radius: 4px; }
.error { color: var(--loss); }
