:root { --fg: #222; --muted: #666; --line: #ddd; --accent: #2b6cb0; --bg: #fff; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; color: var(--fg); background: var(--bg); }
header, main, footer { max-width: 900px; margin: 0 auto; padding: 0 16px; }
header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
header .brand { font-weight: 700; text-decoration: none; color: var(--fg); }
nav a { margin-left: 16px; }
main { padding: 16px; }
footer { padding: 24px 16px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 32px; }
a { color: var(--accent); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.roadmap { list-style: none; padding: 0; }
.roadmap li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.roadmap .blurb { color: var(--muted); font-size: 14px; }
.status { display: inline-block; font-size: 12px; padding: 1px 6px; border-radius: 3px; margin-right: 6px; background: #eee; text-transform: capitalize; }
.status-live { background: #c6f6d5; }
.status-building { background: #bee3f8; }
.status-coming_soon { background: #fefcbf; }
button, .button { font: inherit; padding: 6px 12px; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 4px; cursor: pointer; }
button[disabled], .button.disabled { background: #eee; color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.muted { color: var(--muted); }
.error { color: #c53030; }
.inline { display: inline; }
button.link { background: none; border: none; color: var(--accent); padding: 0; margin-left: 12px; cursor: pointer; text-decoration: underline; }
label { display: block; margin-top: 12px; font-weight: 600; }
input, select { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; width: 100%; max-width: 420px; margin: 4px 0 8px; }
form button[type=submit] { margin-top: 8px; }
.row { display: flex; gap: 32px; flex-wrap: wrap; }
.row > div { flex: 1 1 260px; }
.subnav { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.invite { font-size: 1.2em; letter-spacing: 2px; background: #f4f4f4; padding: 2px 8px; }
.weights td:last-child { text-align: right; }
.weights input { max-width: 100px; margin: 0; }
.small { font-size: 13px; }
.scroll { overflow-x: auto; }
.standings td, .standings th { white-space: nowrap; }
.kv td:first-child { color: var(--muted); width: 55%; }
.chart { width: 100%; max-width: 640px; height: auto; color: var(--accent); }
.chart-label { font-size: 12px; fill: var(--muted); }
.challenges, .badges { list-style: none; padding: 0; }
.challenges li, .badges li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.done { color: #2f855a; font-weight: 600; }
label.inline { display: inline; margin-right: 8px; }
.puzzle { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.board { width: min(90vw, 480px); height: min(90vw, 480px); }
.controls { flex: 1 1 240px; }
.status-line { font-weight: 600; }
