/* PlainSlots — mobile-first, system fonts, teal accent, dark scheme via custom props. */
:root {
  --bg: #fafaf8;
  --card: #ffffff;
  --ink: #1c2321;
  --muted: #5f6b68;
  --accent: #0d7d75;
  --accent-ink: #ffffff;
  --line: #e4e8e7;
  --best: #e2f3f1;
  --danger: #b3362b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141817;
    --card: #1d2322;
    --ink: #e8eceb;
    --muted: #9aa5a3;
    --accent: #2ab3a8;
    --accent-ink: #08201e;
    --line: #2c3433;
    --best: #223c3a;
    --danger: #e07065;
  }
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  padding: 0 1rem;
}
.site-header { padding: 1rem 0 .5rem; max-width: 720px; margin: 0 auto; }
.wordmark { font-weight: 700; font-size: 1.15rem; color: var(--accent); text-decoration: none; }
main { max-width: 720px; margin: 0 auto; padding: 0 0 3rem; }
h1 { font-size: 1.5rem; margin: .5rem 0 .25rem; }
h2 { font-size: 1.1rem; margin: .25rem 0 .75rem; }
.tagline { color: var(--muted); margin-top: 0; }
.fineprint { color: var(--muted); font-size: .85rem; }
.crumb { font-size: .9rem; }
footer { max-width: 720px; margin: 0 auto; padding: 1rem 0 2rem; color: var(--muted); font-size: .85rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0;
}
label { display: block; margin: .6rem 0 .2rem; font-weight: 600; font-size: .92rem; }
input[type="text"], input[type="search"], input[readonly], textarea {
  width: 100%;
  padding: .55rem .6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
button, .linklike {
  font: inherit;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  padding: .5rem .9rem;
  margin-top: .6rem;
  cursor: pointer;
}
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.linklike { border: none; background: none; color: var(--accent); padding: .2rem 0; display: inline-block; }
.danger h2 { color: var(--danger); }
.danger-btn { border-color: var(--danger); color: var(--danger); font-weight: 600; }
.error { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent);
         padding: .5rem .7rem; border-radius: 8px; }
.flash { color: var(--accent); }
.chip {
  display: inline-block; padding: .1rem .6rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; border: 1px solid var(--line);
}
.chip-open { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.chip-closed { background: var(--line); color: var(--muted); }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: .75rem 0; padding: .75rem; }
legend { font-weight: 600; font-size: .92rem; padding: 0 .3rem; }
.slot-input { margin-bottom: .5rem; }
table { border-collapse: collapse; width: 100%; margin: .5rem 0; }
th, td { text-align: left; padding: .4rem .5rem; border-bottom: 1px solid var(--line); }
thead th { font-size: .8rem; color: var(--muted); }
.vote-grid th { font-weight: 600; }
.radios { white-space: nowrap; }
.radio { display: inline-flex; align-items: center; gap: .15rem; margin-right: .9rem; font-weight: 400; }
.scrollwrap { overflow-x: auto; }
.results .best { background: var(--best); }
.results .best th::after { content: " ★ best"; font-size: .75rem; color: var(--accent); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.tally { font-family: ui-monospace, Menlo, monospace; letter-spacing: -1px; white-space: nowrap; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
@media (max-width: 400px) {
  .radios { display: flex; gap: .4rem; justify-content: space-between; }
  .radio { margin-right: 0; }
}
form > button.primary { margin: .75rem 0 0; }