/* Many Balls: shared tokens and controls. One deliberate dark arcade look on every page. */
/* A line from us, shown on every page while it is set (an outage, a Twitch wobble, a planned restart). */
.sitenotice { margin: 0 0 10px; padding: 9px 12px; border-radius: 9px; background: rgba(255, 197, 61, 0.14); border: 1px solid rgba(255, 197, 61, 0.55); color: var(--ink, #fff3da); font-size: 14px; font-weight: 600; }
.sitenotice.warn { background: rgba(255, 90, 143, 0.16); border-color: rgba(255, 90, 143, 0.6); }
.sitenotice[hidden] { display: none; }
:root {
  color-scheme: dark;
  --stage: #160e2c;
  --panel: #211743;
  --raised: #2e2360;
  --line: #44377d;
  --ink: #fff3da;
  --ink-dim: #b7abd8;
  --gold: #ffc53d;
  --pink: #ff5a8f;
  --aqua: #3fd6c4;
  --scrim: rgba(22, 14, 44, 0.93);
  --gold-glow: rgba(255, 197, 61, 0.38);
  --row: rgba(46, 35, 96, 0.55);
  --font-display: "Bungee", "Arial Black", Impact, sans-serif;
  --font-ui: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--stage); color: var(--ink); }
body { font-family: var(--font-ui); font-size: 16px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; }
button, input, select { font: inherit; }
a { color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 16px;
  padding: 10px 16px;
  min-height: 46px;
  border-radius: 10px;
  border: 2px solid var(--line);
  background: var(--raised);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
}
.btn:hover:not(:disabled) { border-color: var(--ink-dim); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: var(--stage); }
.btn.villain { border-color: var(--pink); }
.btn.on { background: var(--gold); border-color: var(--gold); color: var(--stage); }
.btn .count { font-variant-numeric: tabular-nums; opacity: 0.75; }
@keyframes host-call { 0%, 100% { box-shadow: 0 0 0 0 var(--gold-glow); } 50% { box-shadow: 0 0 0 8px var(--gold-glow); } }
.btn.waiting { animation: host-call 1.3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .btn.waiting { animation: none; outline: 3px solid var(--gold); outline-offset: 2px; }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 16px;
  display: grid;
  gap: 12px;
  min-width: 0;
}
.card h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.card h2 .note { letter-spacing: 0.06em; color: var(--ink); text-transform: none; font-weight: 700; }
details.card summary { cursor: pointer; list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary h2::before { content: "\25B8"; margin-right: 8px; display: inline-block; }
details.card[open] summary h2::before { transform: rotate(90deg); }
details.card summary h2 { display: inline-flex; justify-content: flex-start; }
details.card:not([open]) { gap: 0; }

.pill {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pill.hot { background: var(--gold); color: var(--stage); }
.pill.out { background: var(--pink); color: var(--stage); }
.pill.safe { background: var(--aqua); color: var(--stage); }

.field { display: grid; gap: 6px; }
.field .label, .field > label {
  font-weight: 700;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.field output { font-family: var(--font-display); color: var(--gold); font-size: 15px; font-variant-numeric: tabular-nums; }
.hint { margin: 0; font-size: 14px; color: var(--ink-dim); }
input[type="range"] { width: 100%; accent-color: var(--gold); margin: 4px 0; }
input[type="text"], select {
  width: 100%;
  background: var(--stage);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 46px;
  font-size: 16px;
}
input[type="text"]::placeholder { color: var(--ink-dim); }
.check { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 15px; cursor: pointer; }
.check input { accent-color: var(--gold); width: 20px; height: 20px; margin: 0; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--stage);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  text-align: center;
  padding: 9px 4px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-dim);
}
.seg input:checked + label { background: var(--gold); color: var(--stage); }
.seg input:focus-visible + label { outline: 3px solid var(--aqua); outline-offset: 1px; }
code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--raised);
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 5px;
}
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.feed li { color: var(--ink-dim); }
.feed li:first-child { color: var(--ink); }
