:root {
  --brand-blue: #1976D2;
  --brand-charcoal: #17191C;
  --brand-graphite: #343A40;
  --brand-silver: #C3C5C7;
  --brand-white: #F5F4F0;
  --brand-blue-text: #8DC6FF;
  --brand-line: #626A73;
  --brand-heading: "Archivo Black", system-ui, sans-serif;
  --brand-body: "Source Sans 3", system-ui, sans-serif;
}

body:is(.trivia-index, .trivia-host, .trivia-obs, .trivia-season) {
  color-scheme: dark;
  background: var(--brand-charcoal);
  font-family: var(--brand-body);
}

body :is(h1, h2, h3, .queue-item h3, .roster-heading h3) {
  font-family: var(--brand-heading);
  font-weight: 400;
}

body :is(button, input, select, textarea, .btn, .eyebrow) {
  font-family: var(--brand-body);
}

body :focus-visible {
  outline: 3px solid var(--brand-blue-text);
  outline-offset: 3px;
}

:is(.trivia-index, .trivia-season) .brand img,
.trivia-host .brand img {
  display: block;
  width: 114px;
  height: auto;
  flex-shrink: 0;
  object-fit: contain;
}

.trivia-index .primary,
.trivia-index .badge:not(.urgent):not(.locked),
.trivia-obs button[aria-pressed=true],
.trivia-obs .status.running {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}

.trivia-obs #brand {
  object-fit: contain;
}

body.trivia-host {
  --ink: var(--brand-white);
  --cream: var(--brand-charcoal);
  --panel: var(--brand-graphite);
  --line: var(--brand-line);
  --muted: var(--brand-silver);
  --aqua: var(--brand-blue-text);
  color: var(--brand-white);
}

.trivia-host :is(.card, .stat, .input, select, textarea, .round-monitor, .count-chip) {
  background: var(--brand-graphite);
  color: var(--brand-white);
  border-color: var(--brand-line);
}

.trivia-host :is(.stat, .input, textarea, .round-monitor, .fun-fact-panel) {
  background: var(--brand-charcoal);
}

.trivia-host :is(.queue-item, .player-roster li, .board li) {
  border-color: var(--brand-line);
}

.trivia-host :is(.btn, .score) {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

.trivia-host .btn.ghost {
  background: var(--brand-charcoal);
  border-color: var(--brand-line);
  color: var(--brand-white);
}

.trivia-host .btn:hover:not(:disabled) {
  border-color: var(--brand-blue-text);
}

.trivia-host :is(.btn.reveal-key, .btn.danger) {
  background: #A72E40;
  border-color: #A72E40;
}

.trivia-host :is(.eyebrow, .fun-fact-panel .eyebrow, .connection-pill.connected,
  .round-pill.ready, .round-pill.answered, .round-pill.connected,
  .count-chip.ready, .count-chip.answered, .count-chip.connected) {
  color: var(--brand-blue-text);
}

.trivia-host :is(.queue-item p, .round-monitor p, .roster-heading span, .roster-note, .roster-empty) {
  color: var(--brand-silver);
}

.trivia-host :is(.host-connection.offline, .queue-item .queue-correct, .round-monitor-heading b.urgent,
  .count-chip.delivery_unconfirmed, .count-chip.not_responding, .connection-pill.not-responding,
  .round-pill.delivery_unconfirmed, .round-pill.not_responding, .correct-guide,
  .choice-row.correct-selected > b, .choice-row.correct-selected .choice) {
  color: #FF9BA8;
}

.trivia-host .round-pill.still_answering {
  color: #FFCF75;
}

.trivia-host .notice {
  background: var(--brand-charcoal);
  color: var(--brand-white);
}
