:root {
  --bg: #0e1116;
  --surface: #161a21;
  --surface-2: #1d222b;
  --border: #2a3039;
  --text: #f3f4f1;
  --muted: #9aa1ab;
  --accent: #f5b841;
  --accent-ink: #0e1116;
  --green: #3dbe6c;
  --yellow: #e9c34a;
  --orange: #f08a3e;
  --red: #e5484d;
  --t-hazmat: #ff5a36;
  --t-barrel: #f5b841;
  --t-full: #3dbe6c;
  --t-bib: #3cc8c0;
  --t-shelf: #6aa9ff;
  --t-watered: #9aa1ab;
  --t-none: #6b7280;
  --radius: 14px;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--sans);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }

.top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 700 26px/1 var(--display);
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand .logo { width: 28px; height: 28px; border-radius: 7px; display: block; }
.brand:hover { text-decoration: none; }
.top-meta { color: var(--muted); font-size: 14px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-nav { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  font-weight: 600;
  padding: 0;
}
.icon-btn:hover { border-color: var(--muted); }
.avatar-btn { padding: 0; border: 1px solid var(--border); background: transparent; border-radius: 50%; width: 36px; height: 36px; overflow: hidden; display: inline-grid; place-items: center; }
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
.signin-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.wrap { flex: 1; width: 100%; max-width: 600px; margin: 0 auto; padding: 20px 16px 40px; }
.view { animation: rise .25s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Score progress */
.progress { margin: 0 0 18px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.progress-meta span:last-child { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.progress-track { height: 10px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: 5px; background: var(--tc, var(--accent)); transition: width .45s cubic-bezier(.2,.8,.2,1), background-color .3s; }

/* Question card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
}
.rung-line { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-size: 13px; }
.rung { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.topic { color: var(--muted); text-transform: capitalize; }
.prompt { font: 700 22px/1.3 var(--display); margin: 0 0 18px; letter-spacing: -0.005em; }
.options { display: grid; gap: 10px; }
.opt {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  transition: border-color .12s, background .12s, transform .06s;
  line-height: 1.35;
}
.opt:not(:disabled):hover { border-color: var(--muted); }
.opt:not(:disabled):active { transform: scale(.99); }
.opt:disabled { cursor: default; }
.opt.wrong { color: var(--muted); text-decoration: line-through; background: transparent; border-color: var(--border); }
.opt.right { border-color: var(--green); background: color-mix(in srgb, var(--green) 16%, var(--surface-2)); color: var(--text); font-weight: 600; }
.opt.right::after { content: "✓"; float: right; color: var(--green); font-weight: 700; }
.opt.shake { animation: shake .3s; }
.opt.pending { opacity: .6; border-color: var(--accent); }
.points { color: var(--text); font-weight: 700; letter-spacing: 0; text-transform: none; margin-left: 6px; }
.credit { margin: -8px 0 12px !important; }
.signin-banner { border-color: var(--border); }
.signin-banner .btn { padding: 7px 14px; font-size: 14px; }
.banner .x { background: none; border: 0; color: var(--muted); font-size: 18px; line-height: 1; padding: 0 2px; }
.banner { background: var(--surface-2); border: 1px solid var(--accent); color: var(--text); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.pour {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
  animation: rise .3s ease-out;
}
.pour-head { color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.pour p { margin: 0 0 14px; color: var(--text); }
.pour-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pour-foot a { font-size: 14px; }

.btn {
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.block { width: 100%; }

/* Result */
.score { text-align: center; padding: 10px 0 6px; }
.score-num { font: 700 88px/1 var(--display); letter-spacing: -0.03em; display: flex; justify-content: center; align-items: baseline; gap: 10px; }
.score-unit { font: 600 18px/1 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.tier {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 14px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.tier { --tc: var(--accent); border-color: var(--tc); color: var(--tc); }
.tier[data-tier="hazmat"] { --tc: var(--t-hazmat); background: var(--tc); color: var(--accent-ink); }
.tier[data-tier="barrel"] { --tc: var(--t-barrel); }
.tier[data-tier="full"] { --tc: var(--t-full); }
.tier[data-tier="bib"] { --tc: var(--t-bib); }
.tier[data-tier="shelf"] { --tc: var(--t-shelf); }
.tier[data-tier="watered"] { --tc: var(--t-watered); }
.tier[data-tier="none"] { --tc: var(--t-none); }
#res-max { margin-top: 10px; }
.tiers { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.tiers li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.tiers li i { width: 12px; height: 12px; border-radius: 3px; background: var(--tc); display: block; }
.tiers li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.grid { font-size: 30px; letter-spacing: 3px; margin-top: 16px; line-height: 1; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 10px; }
.nudge { text-align: center; color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.nudge a { font-weight: 600; }
.countdown { text-align: center; color: var(--muted); font-size: 14px; margin: 18px 0 26px; }
.countdown strong { color: var(--text); font-variant-numeric: tabular-nums; }
.section-title { font: 700 20px/1.2 var(--display); margin: 0 0 12px; }
.recap { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.recap li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.recap .rung-line { margin-bottom: 6px; }
.recap .q { font-weight: 600; margin: 0 0 10px; }
.path { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip { font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.chip.wrong { text-decoration: line-through; }
.chip.right { border-color: var(--green); color: var(--text); background: color-mix(in srgb, var(--green) 16%, var(--surface)); }
.recap p { margin: 0 0 8px; color: var(--text); }
.recap a { font-size: 14px; }

.big { font: 700 30px/1.2 var(--display); margin: 40px 0 10px; }

/* Dialogs */
.dlg {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  width: min(92vw, 460px);
  max-height: 86dvh;
}
.dlg::backdrop { background: rgba(0, 0, 0, .6); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dlg h2 { font: 700 22px/1.2 var(--display); margin: 0; }
.dlg p { margin: 0 0 12px; }
.close { font-size: 20px; line-height: 1; }
.rules { width: 100%; border-collapse: collapse; margin: 6px 0 14px; }
.rules td { padding: 6px 0; border-bottom: 1px solid var(--border); }
.rules td:not(:first-child), .rules th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.rules th { font-size: 12px; color: var(--muted); font-weight: 600; padding-bottom: 4px; }
.rules td:nth-child(2) { font-weight: 700; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 16px; }
.stat { background: var(--surface-2); border-radius: 10px; padding: 10px 8px; text-align: center; }
.stat b { display: block; font: 700 24px/1.1 var(--display); }
.stat span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bars { display: grid; gap: 6px; margin: 8px 0 16px; }
.bar { display: grid; grid-template-columns: 110px 1fr 32px; align-items: center; gap: 8px; font-size: 13px; }
.bar i { display: block; height: 10px; border-radius: 5px; background: var(--accent); min-width: 2px; }
.bar.dist i { background: var(--surface-2); border: 1px solid var(--border); }
.bar.dist i.fill { background: var(--accent); border-color: var(--accent); }
.bar i[data-tier="hazmat"] { background: var(--t-hazmat); } .bar i[data-tier="barrel"] { background: var(--t-barrel); } .bar i[data-tier="full"] { background: var(--t-full); }
.bar i[data-tier="bib"] { background: var(--t-bib); } .bar i[data-tier="shelf"] { background: var(--t-shelf); } .bar i[data-tier="watered"] { background: var(--t-watered); } .bar i[data-tier="none"] { background: var(--t-none); }
.bar span:last-child { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.sub { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin: 14px 0 6px; font-weight: 700; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
select {
  font: inherit; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px;
}
.tabs { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.tabs button { background: transparent; border: 0; padding: 6px 12px; font-size: 13px; color: var(--muted); }
.tabs button.on { background: var(--surface-2); color: var(--text); font-weight: 600; }
.board { list-style: none; margin: 8px 0 0; padding: 0; }
.board li { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.board li:last-child { border-bottom: 0; }
.board .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.board .stats { color: var(--muted); font-size: 13px; white-space: nowrap; }
.board .stats b { color: var(--text); }
.check { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.check:last-of-type { border-bottom: 0; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.link-btn { background: none; border: 0; color: var(--accent); padding: 0; font-size: 14px; }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 20px 16px 28px; }
.foot a { color: var(--muted); }
.foot .dot { margin: 0 6px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s;
}
.toast.show { opacity: 1; transform: translateX(-50%); }

@media (min-width: 480px) {
  .prompt { font-size: 24px; }
  .score-num { font-size: 104px; }
}

/* Forms (submit + admin pages) */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.field input[type=text], .field input[type=url], .field textarea, .field select {
  font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; width: 100%;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field .hint { font-size: 13px; color: var(--muted); }
.optrow { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; }
.optrow input[type=radio] { width: 18px; height: 18px; accent-color: var(--green); margin: 0 auto; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sub-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.sub-card .q { font: 700 18px/1.3 var(--display); margin: 6px 0 10px; }
.sub-card ol { margin: 0 0 10px; padding-left: 22px; }
.sub-card li.ok { color: var(--green); font-weight: 600; }
.status { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--border); color: var(--muted); }
.status.approved { color: var(--green); border-color: var(--green); }
.status.rejected { color: var(--red); border-color: var(--red); }
.status.pending { color: var(--accent); border-color: var(--accent); }
.btn.danger { border-color: var(--red); color: var(--red); background: transparent; }
.notice { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; }

/* Category setup */
.cat { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.cat.on { border-color: var(--accent); }
.cat.off { opacity: .55; }
.cat input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 2px; }
.cat .name { font-weight: 700; }
.cat .blurb { font-size: 14px; color: var(--muted); margin: 2px 0 8px; }
.cat .count { font-size: 12px; color: var(--muted); }
.cat { cursor: pointer; user-select: none; }
.cat.master { position: relative; overflow: hidden; border: 1px solid var(--border); background: var(--surface); transition: transform .15s; }
.cat.master .name::after { content: "150"; margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); vertical-align: 2px; }
.cat.master.on {
  border-color: transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, var(--t-hazmat), var(--accent) 45%, #ffe08a 60%, var(--t-hazmat)) border-box;
  box-shadow: 0 0 24px -6px color-mix(in srgb, var(--accent) 70%, transparent);
}
.cat.master.on::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, color-mix(in srgb, var(--accent) 22%, transparent) 50%, transparent 70%);
  background-size: 250% 100%;
  animation: shimmer 2.8s linear infinite;
}
.cat.master.on .name { color: var(--accent); }
.cat.master.on .name::after { content: "☣ 150"; border-color: var(--t-hazmat); color: var(--t-hazmat); }
.cat.master.pop { animation: pop .35s cubic-bezier(.2,.9,.3,1.4); }
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -130% 0; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.025); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .cat.master.on::before, .cat.master.pop { animation: none; } }
.legend { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.seg button { border: 0; background: transparent; color: var(--muted); font-size: 13px; padding: 7px 12px; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.on { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.seg button:disabled { opacity: .45; cursor: default; }
.suggest { background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); padding: 16px; margin: 10px 0; }
.suggest h3 { font: 700 18px/1.2 var(--display); margin: 0 0 6px; }
.suggest p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.suggest .row .btn { padding: 8px 14px; font-size: 14px; }
.cat-tag { font-size: 12px; color: var(--muted); }

/* Quick links under the header */
.quick { display: flex; gap: 8px; margin: -4px 0 16px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; }
.pill:hover { text-decoration: none; border-color: var(--muted); }
.pill .dc { color: #5865f2; }

/* Discord page */
.page { padding-top: 28px; }
.hero { text-align: center; padding: 8px 0 6px; }
.hero h1 { font: 700 32px/1.15 var(--display); margin: 0 0 10px; letter-spacing: -0.01em; }
.hero p { color: var(--muted); margin: 0 auto 20px; max-width: 460px; }
.hero .fine { font-size: 13px; margin: 12px auto 0; max-width: 420px; }
.btn.big { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; font-size: 16px; }
.btn.big .dc { width: 20px; height: 20px; }
.section { margin-top: 36px; }
.section h2 { font: 700 22px/1.2 var(--display); margin: 0 0 14px; }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.stepper li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; line-height: 1.5; }
.stepper .num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.stepper pre { margin: 10px 0; padding: 10px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; color: var(--accent); }
.stepper code, .cmdlist dt { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.stepper code { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.facts { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.facts li { padding: 14px 16px; line-height: 1.5; border-bottom: 1px solid var(--border); }
.facts li:last-child { border-bottom: 0; }
.cmdlist { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cmdlist dt { padding: 12px 16px 2px; color: var(--accent); font-weight: 600; }
.cmdlist dd { margin: 0; padding: 0 16px 12px; color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--border); }
.cmdlist dd:last-child { border-bottom: 0; }
.notice p { margin: 0 0 12px; }
#boards .sub-card { margin-bottom: 10px; }
@media (min-width: 480px) {
  .cmdlist { display: grid; grid-template-columns: max-content 1fr; }
  .cmdlist dt { padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .cmdlist dd { padding: 12px 16px 12px 0; }
  .cmdlist dt:last-of-type, .cmdlist dd:last-of-type { border-bottom: 0; }
}

.opts { margin: 12px 0 10px; display: grid; gap: 8px; }
.opts dt { font: 600 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); }
.opts dd { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.board .empty { display: block; grid-template-columns: none; color: var(--muted); font-size: 14px; padding: 12px 0; }
.pour-foot a.cite { color: var(--muted); font-size: 12px; max-width: 60%; }

/* Mode bar */
.mode-bar { margin: 0 0 16px; }
.tabs.modes { display: flex; max-width: 100%; overflow-x: auto; }
.tabs.modes button { white-space: nowrap; padding: 8px 14px; font-size: 14px; }
.mode-line { font-size: 13px; color: var(--muted); margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.mode-line strong { color: var(--text); font-weight: 600; }
.mode-line .link-btn { font-size: 13px; }
.link-btn.flag { color: var(--muted); font-size: 12px; }
.link-btn.flag:hover { color: var(--red); }
.dash { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 20px; }
.dash .stat b { font-size: 26px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 20px; }
.table th { text-align: left; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.table td { padding: 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 60px; margin-bottom: 20px; }
.spark i { flex: 1; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.spark i span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); }

.more-toggle { width: 100%; text-align: left; background: transparent; border: 1px dashed var(--border); border-radius: var(--radius); padding: 12px 14px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.more-toggle::before { content: "▸ "; display: inline-block; transition: transform .15s; }
.more-toggle.open::before { content: "▾ "; }
.more-toggle:hover { color: var(--text); border-color: var(--muted); }
.quick { flex-wrap: wrap; }

.board.big li { grid-template-columns: 34px 1fr auto; padding: 10px 0; font-size: 15px; }
.board.big .who { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.board.big .who img, .board.big .who i { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); display: inline-block; flex: none; }
.board.big .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board.big li.me { background: color-mix(in srgb, var(--accent) 10%, transparent); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 8px; }

/* End-of-game feedback */
.feedback { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; margin: 14px 0 6px; }
.fb-ask { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.fb-ask span { flex: 1; }
.face { font-size: 24px; line-height: 1; background: var(--surface-2); border: 1px solid var(--border); border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; transition: transform .1s, border-color .1s; }
.face:hover { transform: scale(1.08); border-color: var(--muted); }
.face.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--surface-2)); }
.fb-more { margin-top: 12px; display: grid; gap: 8px; }
.fb-more span { font-size: 14px; color: var(--muted); }
.fb-more textarea { font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; min-height: 70px; resize: vertical; width: 100%; }
.fb-more textarea:focus { outline: none; border-color: var(--accent); }

/* Dashboard */
.dsec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 16px; margin-bottom: 12px; }
.dsec summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; }
.dsec summary::before { content: "▸"; color: var(--muted); font-size: 12px; transition: transform .15s; }
.dsec[open] summary::before { transform: rotate(90deg); }
.dsec > :not(summary) { margin-bottom: 14px; }
.dsec .table { margin-bottom: 14px; }
.chart svg { display: block; }
.legend-row { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.legend-row i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.comments { display: grid; gap: 10px; }
.comment { border-top: 1px solid var(--border); padding-top: 10px; font-size: 14px; }
.comment:first-child { border-top: 0; padding-top: 0; }
