:root {
  --bg: #0f1013;
  --panel: #181a1f;
  --line: #2a2d34;
  --text: #e8e3d8;
  --muted: #9a958a;
  --gold: #e8b64a;
  --silver: #c9ccd3;
  --bronze: #c98446;
  --blood: #b3342a;
  --accent: #6aa7ff;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 14px 24px; border-bottom: 1px solid var(--line); background: #13151a;
}
header.site .brand { font-weight: 800; letter-spacing: .08em; color: var(--gold); font-size: 20px; }
header.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
header.site nav a { color: var(--text); }
header.site .spacer { flex: 1; }

main { max-width: 1100px; margin: 0 auto; padding: 28px 16px 64px; }
h1 { font-size: 32px; margin: 0 0 6px; }
h2 { font-size: 20px; margin: 32px 0 12px; color: var(--gold); letter-spacing: .03em; }
.sub { color: var(--muted); margin: 0 0 20px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

input[type=text] {
  background: #0c0d10; color: var(--text); border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; font-size: 16px; min-width: 0; flex: 1 1 240px;
}
button, .button {
  background: var(--gold); color: #1a1405; border: 0; border-radius: 8px; padding: 10px 16px;
  font-weight: 700; font-size: 15px; cursor: pointer; display: inline-block;
}
button.secondary, .button.secondary { background: #2a2d34; color: var(--text); }
button.danger { background: var(--blood); color: #fff; }
.button.twitch { background: #9146ff; color: #fff; }
button:hover, .button:hover { filter: brightness(1.08); text-decoration: none; }

.tabs { display: flex; gap: 6px; margin: 0 0 12px; flex-wrap: wrap; }
.tabs button { background: #22252b; color: var(--muted); font-weight: 600; padding: 6px 12px; }
.tabs button.active { background: var(--gold); color: #1a1405; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
td.num, th.num { text-align: right; }
tr.p1 td:first-child { color: var(--gold); font-weight: 800; }
tr.p2 td:first-child { color: var(--silver); font-weight: 800; }
tr.p3 td:first-child { color: var(--bronze); font-weight: 800; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.stat .v { font-size: 28px; font-weight: 800; }
.stat .k { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }

.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 99px; background: #3a2a10; color: var(--gold); }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 18px 4px; }
.secret { font-family: ui-monospace, Consolas, monospace; font-size: 13px; word-break: break-all;
  background: #0c0d10; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
ol.steps li { margin: 6px 0; }
.warn { color: #ffcf7a; }
