:root {
  --color-bg: #f5f2eb;
  --color-surface: #ffffff;
  --color-text: #1f2328;
  --color-text-muted: #545b63;
  --color-sea: #b9d3e6;
  --color-prefecture: #e4d6a7;
  --color-prefecture-stroke: #7a6f4d;
  --color-selected: #f59e0b;
  --color-selected-stroke: #7a4a00;
  --color-correct: #2e7d32;
  --color-correct-stroke: #0d3b12;
  --color-wrong: #d32f2f;
  --color-wrong-stroke: #7f1d1d;
  --color-error: #b71c1c;
  --color-region-hokkaido: #7fb2e5;
  --color-region-tohoku: #4fb9b3;
  --color-region-kanto: #f4a259;
  --color-region-chubu: #f0d84a;
  --color-region-kinki: #ec8fb5;
  --color-region-chugoku: #c4a57b;
  --color-region-shikoku: #a6d65f;
  --color-region-kyushu: #b8a4e3;
  --color-region-label: #1f2328;
  --color-region-label-halo: #ffffff;
  /* Region quiz borders (D42): neutral dark, no region hue. */
  --color-region-border: #2b2f33;
  /* Mask luminance for the region borders (not painted): white keeps the
     border stroke, black removes it inside the region. */
  --color-mask-keep: #ffffff;
  --color-mask-cut: #000000;
  --color-legend-bg: #ffffffd9;
  --color-capital-dot: #0b3d91;
  --color-capital-dot-halo: #ffffff;
  --color-countdown: #2a6f97;
  --color-countdown-low: #c8371d;
  --color-inset-frame: #5f6b76;
  --color-focus: #0b57d0;
  /* Theme bar = Home red; splash = one flat colour, the icon frame middle
     colour (Home red) (D34, D46). Literal values: scripts/build-lib.mjs
     readCssVar reads them as is. */
  --color-theme: #e02424;
  --color-splash-bg: #e02424;
  /* App icon frame (D46): diagonal gradient, orange top-left, Home red in
     the middle, crimson bottom-right. Literal values: read by
     scripts/make-icons.mjs. */
  --color-icon-frame-from: #f58529;
  --color-icon-frame-mid: #e02424;
  --color-icon-frame-to: #c2185b;
  --color-toggle-on: #e02424;
  --color-toggle-on-text: #ffffff;
  --color-toggle-off: #e7e5df;
  --color-toggle-off-text: #1f2328;
  /* Home buttons (FR-018): white on blue, red, green; dark on orange. */
  --color-home-lesson: #1e6fe0;
  --color-home-quiz: #e02424;
  --color-home-history: #15803d;
  --color-home-settings: #f08a00;
  --color-on-strong: #ffffff;
  --color-on-orange: #1f2328;
  /* Settings accents (FR-022): orange title band (dark text, 6.3:1), dark
     orange labels on the page background (6.4:1), orange side strips. */
  --color-settings-accent: #f08a00;
  --color-settings-on-accent: #1f2328;
  --color-settings-label: #9a3412;
  --color-settings-source-border: #9a3412;
  /* Quiz choice buttons (D41): one vivid hue per quiz kind, away from the
     answer marks (red wrong, green correct, amber selection). White text:
     indigo 7.9:1, teal 5.5:1, fuchsia 6.3:1, sky 5.9:1. */
  --color-quiz-prefectures: #4338ca;
  --color-quiz-regions: #0f766e;
  --color-quiz-capital-place: #a21caf;
  --color-quiz-capital-match: #0369a1;
  --color-on-quiz: #ffffff;
  /* History accents (D41): the Home History green; white on it is 5.0:1. */
  --color-history-accent: var(--color-home-history);
  --color-history-on-accent: #ffffff;
}
