/* Design tokens (2026 redesign): EBSi-like frame, calm navy + sky, big rounded cards, flat surfaces. No gamification (docs/DESIGN.md). */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f5f8fc;
  --border: #e3e9f2;
  --border-strong: #cbd5e4;
  --text: #0f1b33;
  --text-2: #41506b;
  --text-3: #58667f;

  --navy: #15306f;
  --heading: #15306f;
  --primary: #2563eb;
  --primary-hover: #1d4fc4;
  --primary-soft: #e7f0fe;
  --violet: #6c4ce0;
  --violet-soft: #ece8ff;
  --on-primary: #ffffff;
  --grad: #15306f;          /* flat now; the name stays because many rules use it */
  --grad-soft: #eaf3fd;
  --sky: #eaf3fd;
  --sky-line: #b7d3f0;

  --math: #2f54eb;
  --math-soft: #e8edff;
  --eng: #087a55;
  --eng-soft: #ddf5ea;

  --ok: #087a55;
  --ok-soft: #ddf5ea;
  --warn: #b54708;
  --warn-soft: #fef0c7;
  --bad: #c0262d;
  --bad-soft: #fde8e8;
  --teal: #087a55;
  --teal-soft: #ddf5ea;
  --amber: #d97706;
  --amber-soft: #fef0c7;
  --slate-soft: #eef1f6;
  --focus: #2563eb;

  --shadow-sm: none;
  --shadow: none;
  --shadow-lg: 0 10px 30px rgba(15, 27, 51, 0.10);
  --radius: 24px;
  --radius-sm: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", system-ui, sans-serif;
  --page: 1240px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1226; --surface: #121a33; --surface-2: #1a2442; --border: #253255; --border-strong: #38476f;
    --text: #e8eefb; --text-2: #b3c0dc; --text-3: #8c9bbe;
    --navy: #3b5bdb; --heading: #dbe5ff; --primary: #7fa2ff; --primary-hover: #a3bcff; --primary-soft: #1d2b55; --violet: #b39bff; --violet-soft: #2a2250; --on-primary: #0b1226;
    --grad: #3b5bdb; --grad-soft: #14223f; --sky: #14223f; --sky-line: #2a3e6b;
    --math: #8ea6ff; --math-soft: #1d2b55; --eng: #4fd1a3; --eng-soft: #12352c;
    --ok: #4fd1a3; --ok-soft: #12352c; --warn: #f0b24a; --warn-soft: #382a0c; --bad: #ff8f86; --bad-soft: #3d1a1a;
    --teal: #4fd1a3; --teal-soft: #12352c; --amber: #f0b24a; --amber-soft: #382a0c; --slate-soft: #232c47; --focus: #8ea6ff;
    --shadow-lg: 0 14px 34px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1226; --surface: #121a33; --surface-2: #1a2442; --border: #253255; --border-strong: #38476f;
  --text: #e8eefb; --text-2: #b3c0dc; --text-3: #8c9bbe;
  --navy: #3b5bdb; --heading: #dbe5ff; --primary: #7fa2ff; --primary-hover: #a3bcff; --primary-soft: #1d2b55; --violet: #b39bff; --violet-soft: #2a2250; --on-primary: #0b1226;
  --grad: #3b5bdb; --grad-soft: #14223f; --sky: #14223f; --sky-line: #2a3e6b;
  --math: #8ea6ff; --math-soft: #1d2b55; --eng: #4fd1a3; --eng-soft: #12352c;
  --ok: #4fd1a3; --ok-soft: #12352c; --warn: #f0b24a; --warn-soft: #382a0c; --bad: #ff8f86; --bad-soft: #3d1a1a;
  --teal: #4fd1a3; --teal-soft: #12352c; --amber: #f0b24a; --amber-soft: #382a0c; --slate-soft: #232c47; --focus: #8ea6ff;
  --shadow-lg: 0 14px 34px rgba(0,0,0,.5);
  color-scheme: dark;
}
