:root {
  --bg: #0d1117;
  --panel: #161b22;
  --line: #21262d;
  --ink: #e6edf3;
  --muted: #8b949e;
  --accent: #2f81f7;
  --up: #3fb950;
  --hot: #f85149;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.6 -apple-system, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
}
header { padding: 20px 16px 0; max-width: 1080px; margin: 0 auto; }
h1 { font-size: 22px; }
.tagline { color: var(--muted); font-size: 13px; margin: 2px 0 14px; }
main { max-width: 1080px; margin: 0 auto; padding: 12px 16px 40px; }
footer {
  max-width: 1080px; margin: 0 auto; padding: 16px;
  color: var(--muted); font-size: 12px; border-top: 1px solid var(--line);
}

#tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
#tabs button {
  background: none; border: none; color: var(--muted); font-size: 15px;
  padding: 8px 14px; cursor: pointer; border-bottom: 2px solid transparent;
}
#tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }

.bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 10px 0; }
.bar.scroll-x { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.bar button, .group button {
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  font-size: 12px; padding: 4px 10px; border-radius: 14px; cursor: pointer;
  white-space: nowrap;
}
.bar button.on, .group button.on {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.group { display: inline-flex; gap: 6px; margin-right: 10px; }
.meta { color: var(--muted); font-size: 12px; margin-left: auto; }
.hint { color: var(--muted); font-size: 13px; margin: 10px 0; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-weight: 500; font-size: 12px; white-space: nowrap; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.sub { color: var(--muted); font-size: 12px; }
.dim { color: var(--muted); }
.tag {
  display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
}
.tag.noise { border-style: dashed; }
.up { color: var(--up); }
.hot { color: var(--hot); font-weight: 600; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.empty { color: var(--muted); padding: 24px 0; text-align: center; }
.table-wrap { overflow-x: auto; }

#game-cards {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.gcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px;
}
.gcard h3 { font-size: 15px; margin-bottom: 2px; }
.gcard .gmeta { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.gcard svg { width: 100%; height: 56px; display: block; }
.gcard .snapnote { margin-top: 4px; font-size: 11px; }
.nochart {
  height: 56px; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 12px; border: 1px dashed var(--line);
  border-radius: 6px;
}
.gline { fill: none; stroke: var(--accent); stroke-width: 2.4; vector-effect: non-scaling-stroke; }
.garea { fill: url(#ggrad); opacity: 0.9; }
.more {
  width: 100%; margin-top: 12px; padding: 8px; background: var(--panel);
  border: 1px solid var(--line); border-radius: 8px; color: var(--muted);
  cursor: pointer;
}
@media (max-width: 600px) {
  th, td { padding: 7px 6px; }
  .hide-sm { display: none; }
}
