/* live.css — Phase LV: one look for the audience page (/join/) and the host's screen (/live/).
   Site tokens from STYLEGUIDE.md (dark slate, blue accent). The light set is for projectors, which
   wash a dark page out. The drawing of results is in live-results.css, which other pages load too; its chart colors
   (--bar, --good) are set here per surface. */
:root {
  --bg: #0f172a; --card: #1e293b; --border: #334155; --text: #f8fafc; --body: #e2e8f0; --muted: #94a3b8;
  --accent: #3b82f6; --accent-hover: #2563eb; --on-accent: #ffffff;
  --bar: #338ced; --good: #0aac23; --bad: #eb6263; --track: rgba(148, 163, 184, 0.16);
  color-scheme: dark;
}
:root.light {
  --bg: #f1f5f9; --card: #ffffff; --border: #cbd5e1; --text: #0f172a; --body: #1e293b; --muted: #475569;
  --accent: #2563eb; --accent-hover: #1d4ed8; --on-accent: #ffffff;
  --bar: #257de0; --good: #008a17; --bad: #dc3c3d; --track: rgba(15, 23, 42, 0.08);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--body); font: 17px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-text-size-adjust: 100%; }
h1, h2, h3 { color: var(--text); margin: 0; line-height: 1.2; }
p { margin: 0; }
a { color: var(--accent); }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }

button, .btn { font: inherit; border-radius: 12px; border: 1px solid var(--border); background: var(--card); color: var(--text); padding: 12px 18px; min-height: 48px; cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: 0.5; cursor: default; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
button.primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
button.quiet { background: transparent; }
button.small { min-height: 36px; padding: 6px 12px; font-size: 15px; border-radius: 10px; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input[type="text"], input[type="number"], input[type="email"], input[type="password"], textarea, select { font: inherit; width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; min-height: 48px; }
textarea { resize: vertical; min-height: 96px; }
label { display: block; color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.error { color: var(--bad); min-height: 1.5em; }
