:root {
  --bg: #0b0b0b; --bg-2: #141414; --fg: #f2f2f2; --muted: #a3a3a3; --line: #2a2a2a;
  --accent: #c9a54a; --accent-2: #e6c56b; --good: #4caf50; --bad: #e05252; --radius: 10px;
  /* The game's own faction colours: Valkyra red, Lonestar blue, Manticore green (same values as blocks/src/theme.css). */
  --valkyra: #fa503e; --lonestar: #4cb1ef; --manticore: #1dd65c;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: "Inter", system-ui, sans-serif; line-height: 1.5; }
a { color: var(--accent); }
h1, h2, h3 { font-family: "Black Ops One", "Inter", sans-serif; font-weight: 400; letter-spacing: .04em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3rem); }
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: rgba(11,11,11,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-family: "Black Ops One"; font-size: 1.2rem; }
.brand img { width: 32px; height: 32px; filter: invert(1); }
.top nav { display: flex; gap: 18px; align-items: center; }
/* :not(.btn): header buttons keep their own text colour (dark on gold, white on Discord blurple). */
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; }
.top nav a.on:not(.btn), .top nav a:not(.btn):hover { color: var(--fg); }
.who { display: flex; align-items: center; gap: 8px; }
.who img { width: 28px; height: 28px; border-radius: 50%; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--radius); border: 2px solid var(--accent);
  background: var(--accent); color: #0b0b0b; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem;
  text-decoration: none; cursor: pointer; font-family: inherit; }
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn.ghost:hover { background: var(--bg-2); border-color: var(--muted); }
.btn.discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn[disabled] { opacity: .5; cursor: default; }
main { max-width: 1100px; margin: 0 auto; padding: 32px 16px 64px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 32px; }
.tile { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.tile b { display: block; font-size: 1.6rem; font-family: "Black Ops One"; color: var(--accent); }
.tile span { color: var(--muted); font-size: .85rem; }
.bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
select, input { background: var(--bg-2); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: inherit; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; background: var(--bg-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.muted { color: var(--muted); }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.badge.live { background: var(--bad); color: #fff; }
.badge.diff { background: var(--line); color: var(--fg); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.card.done { border-color: var(--good); }
.progress { height: 10px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); }
.notice { background: var(--bg-2); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; margin: 16px 0; }
.notice.error { border-left-color: var(--bad); }
.menu { position: relative; }
.menu > div { position: absolute; right: 0; top: 32px; min-width: 220px; display: grid; gap: 8px; }
section { margin-top: 40px; }
details summary { cursor: pointer; }
@media (max-width: 640px) { .top nav { gap: 6px 10px; flex-wrap: wrap; justify-content: flex-end; } .hide-sm { display: none; } .top .brand { font-size: 0; gap: 0; } }
