/* Shared tokens + reset for MMFT Study. Thai text renders in Mali, English in Nunito. */
:root {
  --bg: #fbf3e4; --surface: #fffdf8; --ink: #2d2a3e; --muted: #6f6680; --line: #eadcc4;
  --accent: #df6c2a; --accent-ink: #fff; --accent-soft: #ffe7d3;
  --teal: #2f8f7f; --teal-soft: #d8f1ea;
  --ok: #2c9a62; --ok-soft: #dcf5e7; --bad: #d4574e; --bad-soft: #fde3df;
  --star: #ffb92e; --navy: #1f2b52; --navy-line: #aab8ef; --tag: #ffd54a; --glass: #d4ecf8;
  --violet: #7a5bd6; --violet-soft: #ece6ff;
  --shadow: 0 2px 0 rgba(80, 55, 20, .10), 0 8px 22px rgba(80, 55, 20, .08);
  --r: 18px;
  --font: "Nunito", "Mali", "Sukhumvit Set", "Thonburi", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151a2c; --surface: #20263f; --ink: #f4efe5; --muted: #aea7bf; --line: #353d5f;
    --accent: #ff9550; --accent-ink: #231407; --accent-soft: #4a2f22;
    --teal: #5fd0bd; --teal-soft: #1d3d3a;
    --ok: #5ed497; --ok-soft: #1c3d2d; --bad: #ff8a80; --bad-soft: #472a2c;
    --navy: #0e1430; --navy-line: #5b6bb5; --glass: #2b4a63;
    --violet: #b6a2ff; --violet-soft: #2f2a55;
    --shadow: 0 2px 0 rgba(0, 0, 0, .35), 0 8px 22px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 500 17px/1.6 var(--font); overflow-x: hidden; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; touch-action: manipulation; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
h1, h2, h3 { font-family: "Mali", var(--font); line-height: 1.3; margin: 0; }
img, svg { display: block; }
.char { width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
