:root {
  color-scheme: light dark;
  /* Playful, projector-friendly palette */
  --ss-bg: #F6F7FB;
  --ss-surface: #FFFFFF;
  --ss-ink: #1F2A44;
  --ss-muted: #6B7590;
  --ss-line: #DDE2EE;
  --ss-primary: #4F46E5;      /* indigo */
  --ss-primary-ink: #FFFFFF;
  --ss-accent: #F59E0B;       /* amber – "ready", winner crown */
  --ss-success: #10B981;      /* consensus */
  --ss-danger: #EF4444;
  --ss-radius: 16px;
  --ss-shadow: 0 6px 24px rgba(31, 42, 68, 0.10);
  --ss-tap: 56px;             /* minimum touch target */
  --ss-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ss-bg: #0F1526;
    --ss-surface: #1A2238;
    --ss-ink: #EEF1FA;
    --ss-muted: #A3ADC8;
    --ss-line: #2C365A;
    --ss-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--ss-bg); color: var(--ss-ink); font-family: var(--ss-font); }
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.15; }

.panel {
  background: var(--ss-surface); border-radius: var(--ss-radius); box-shadow: var(--ss-shadow);
  padding: 1.5rem; margin: 1rem auto; max-width: 32rem; width: calc(100% - 2rem);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: var(--ss-tap); padding: 0 1.25rem; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 600; font-size: 1.05rem; cursor: pointer; text-decoration: none;
  background: var(--ss-surface); color: var(--ss-ink); border-color: var(--ss-line);
}
.btn-primary { background: var(--ss-primary); color: var(--ss-primary-ink); border-color: var(--ss-primary); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.input {
  min-height: var(--ss-tap); width: 100%; padding: 0 1rem; border-radius: 12px;
  border: 2px solid var(--ss-line); background: var(--ss-surface); color: var(--ss-ink); font: inherit; font-size: 1.1rem;
}
.input:focus { outline: none; border-color: var(--ss-primary); }

.error { color: var(--ss-danger); font-weight: 600; }
.muted { color: var(--ss-muted); }

/* The template's yellow banner is replaced by the reconnect modal; keep it out of the way. */
#blazor-error-ui { display: none; }
/* The dialog is outside the layout, so it misses `body`'s font; the rest of its looks are scoped
   to ReconnectModal.razor.css, whose `[b-…]` selectors outrank anything written here. */
#components-reconnect-modal { font-family: var(--ss-font); }
