/* The branded splash and the full-page states (no scripts, no inline style:
   the CSP allows only same-origin files). Loaded from index.html so it paints
   before the bundle. Same palette as src/theme.css; system fonts first so
   nothing waits on a font file. */
:root {
  color-scheme: light;
  --ink: #12233f;
  --muted: #5b6678;
  --bg: #f5f7fa;
  --paper: #ffffff;
  --line: #d6dce5;
  --flag: #f2c230;
  --accent: #12233f;
  --on-accent: #fbfcfd;
  --focus: #d99a00;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #e8edf5;
    --muted: #a3aec2;
    --bg: #16223a;
    --paper: #1c2a45;
    --line: #33435f;
    --focus: #f2c230;
  }
}

html, body { margin: 0; background: var(--bg); color: var(--ink); }

.splash {
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font: 400 16px/1.5 system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.splash-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 24rem;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 6px solid var(--flag);
  border-radius: 8px;
}

.splash-brand {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.splash h1 {
  margin: 0 0 12px;
  font: 700 1.75rem/1.15 'Barlow Condensed', system-ui, sans-serif;
}

.splash-status { margin: 0 0 16px; color: var(--muted); }
.splash-card > :last-child { margin-bottom: 0; }

.splash-action {
  min-height: 44px;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  border-radius: 8px;
  font: 600 1rem system-ui, sans-serif;
  cursor: pointer;
}
@media (prefers-color-scheme: dark) {
  .splash-action { background: #dce6f5; color: #12233f; }
}
.splash-action:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

@media (max-width: 420px) {
  .splash-card { padding: 20px 16px; }
  .splash-action { width: 100%; }
}
