
:root {
  color-scheme: dark;
  --bg: #101113;
  --panel: #1a1d20;
  --panel-2: #22262a;
  --text: #f3f0e8;
  --muted: #a9b0ad;
  --line: #353b3f;
  --accent: #e15f45;
  --accent-2: #5fa889;
  --warning: #f2c14e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select { font: inherit; }
.shell {
  width: min(1180px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 28px 0 42px;
}
.topbar, .phase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
h1, h2, p { margin: 0; }
h1 { font-size: 34px; line-height: 1.12; }
h2 { font-size: 20px; margin-bottom: 14px; }
.sub, .muted { color: var(--muted); line-height: 1.65; }
.eyebrow {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  white-space: nowrap;
}
.grid {
  display: grid;
  gap: 16px;
}
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: 1.05fr 1.1fr 0.85fr; }
.panel, .phase {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.wide { margin-top: 16px; }
label {
  display: block;
  color: var(--muted);
  margin-top: 14px;
}
input, select {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0f1112;
  color: var(--text);
  padding: 12px 12px;
}
button {
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: white;
  padding: 11px 14px;
  font-weight: 700;
  cursor: pointer;
  min-height: 42px;
}
button:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.secondary, .ghost {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
}
.selected {
  outline: 2px solid var(--warning);
}
form button { width: 100%; margin-top: 18px; }
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--muted);
}
.rules {
  line-height: 1.7;
}
.rules summary {
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
  list-style-position: inside;
}
.rules summary::marker {
  color: var(--accent-2);
}
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.rules article {
  background: #121517;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
}
.rules h3 {
  margin: 0 0 8px;
  font-size: 15px;
}
.rules ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.rules li + li {
  margin-top: 6px;
}
.rule-callout {
  margin-top: 16px;
  color: var(--warning);
  font-weight: 700;
}
.role-name, .speaker, .timer {
  font-size: 30px;
  font-weight: 800;
  margin-bottom: 8px;
}
.timer {
  color: var(--warning);
  font-variant-numeric: tabular-nums;
}
.private {
  margin-top: 14px;
  padding: 14px;
  background: #111416;
  border: 1px dashed var(--line);
  border-radius: 7px;
  line-height: 1.7;
}
.phase-audio {
  display: block;
  width: min(520px, 100%);
  margin-top: 14px;
}
.players {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.players li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 10px;
  background: #121517;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.players em {
  color: var(--accent-2);
  font-style: normal;
  font-size: 12px;
}
.speaking {
  outline: 2px solid var(--accent-2);
}
.button-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.error {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 7px;
  border: 1px solid rgba(225, 95, 69, .45);
  background: rgba(225, 95, 69, .14);
}
@media (max-width: 860px) {
  .topbar, .phase { align-items: stretch; flex-direction: column; }
  .two, .three, .button-grid, .rules-grid { grid-template-columns: 1fr; }
  h1 { font-size: 28px; }
  .actions { justify-content: stretch; }
  .actions button, .ghost { width: 100%; }
}
