/* SportsStat mobile design tokens (≤ 768px redesign). Prefixed --m- so nothing on desktop reads them.
   Contrast (WCAG 2.1, checked by tests/mobile-design.test.js against --m-bg-0/1/2):
   text-1 ≥ 14:1, text-2 ≥ 7:1, text-3 ≥ 4.5:1 (body), lime/success/warning/danger/info ≥ 4.5:1,
   on-lime text on lime ≥ 12:1. */
:root {
  /* Color: three background elevations, then surfaces and borders */
  --m-bg-0: #0b0e11;          /* app background */
  --m-bg-1: #12171b;          /* cards */
  --m-bg-2: #192026;          /* raised: sheets, pressed rows, inputs */
  --m-bg-3: #222a31;          /* chips, tracks, skeleton base */
  --m-border: #2a3239;
  --m-border-strong: #3b464e;

  --m-text-1: #eef1f3;        /* primary */
  --m-text-2: #a8b2b9;        /* secondary */
  --m-text-3: #8b969e;        /* tertiary: captions, timestamps */

  --m-lime: #c5f277;
  --m-lime-hover: #d4f793;
  --m-lime-pressed: #a8d35c;
  --m-on-lime: #11170a;
  --m-lime-soft: rgba(197, 242, 119, 0.12);

  --m-success: #54d9a0;
  --m-warning: #edbb6b;
  --m-danger: #f39a9a;
  --m-info: #73d3e7;
  --m-success-soft: rgba(84, 217, 160, 0.14);
  --m-warning-soft: rgba(237, 187, 107, 0.14);
  --m-danger-soft: rgba(243, 154, 154, 0.14);
  --m-info-soft: rgba(115, 211, 231, 0.14);

  /* Type: one family, six steps, two weights */
  --m-font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --m-fs-1: 12px;
  --m-fs-2: 14px;
  --m-fs-3: 16px;
  --m-fs-4: 20px;
  --m-fs-5: 28px;
  --m-fs-6: 36px;
  --m-fw-regular: 400;
  --m-fw-strong: 600;
  --m-lh-tight: 1.2;
  --m-lh-body: 1.5;

  /* Space: 4px grid */
  --m-s-1: 4px;
  --m-s-2: 8px;
  --m-s-3: 12px;
  --m-s-4: 16px;
  --m-s-5: 24px;
  --m-s-6: 32px;
  --m-s-7: 48px;
  --m-gutter: 16px;
  --m-tap: 48px;

  /* Radius */
  --m-r-1: 8px;
  --m-r-2: 12px;
  --m-r-3: 20px;

  /* Elevation */
  --m-shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35);
  --m-shadow-2: 0 6px 18px rgba(0, 0, 0, 0.38);
  --m-shadow-3: 0 -12px 40px rgba(0, 0, 0, 0.55);

  /* Motion: three durations, one standard easing, one spring (sheets and the tab icon only) */
  --m-t-1: 120ms;
  --m-t-2: 200ms;
  --m-t-3: 320ms;
  --m-ease: cubic-bezier(0.2, 0, 0, 1);
  --m-spring: cubic-bezier(0.32, 1.28, 0.6, 1);

  /* Icons: one set (Lucide), one stroke, two sizes */
  --m-icon-stroke: 1.75;
  --m-icon-1: 20px;
  --m-icon-2: 24px;

  /* Fixed chrome */
  --m-topbar-h: 56px;
  --m-tabbar-h: 64px;
}

@media (prefers-reduced-motion: reduce) {
  :root { --m-t-1: 0ms; --m-t-2: 0ms; --m-t-3: 0ms; }
}
