/* ===================================================================
   Maesdu Pool League — shared design tokens & base styles
   Change brand colours, radii, or spacing HERE and every page follows.
   To rebrand for another league: edit --brand, --brand-dark and the
   logo/name in each page's header.
   =================================================================== */
:root{
  /* brand */
  --brand:#4f46e5;
  --brand-dark:#4338ca;

  /* surfaces & text (light) */
  --bg:#f3f4f6;
  --panel:#ffffff;
  --card:#ffffff;        /* alias of --panel for older pages */
  --ink:#1f2937;
  --muted:#6b7280;
  --line:#e5e7eb;

  /* status */
  --good:#16a34a;
  --warn:#d97706;
  --bad:#dc2626;
  --danger:#dc2626;   /* alias of --bad, used by admin */
  --win:#16a34a;      /* result colours, used by index standings */
  --draw:#ca8a04;
  --loss:#dc2626;

  /* radius scale — use these, don't invent new ones */
  --r-sm:6px;    /* small controls, chips */
  --r:8px;       /* buttons, inputs */
  --r-lg:12px;   /* cards, panels */
  --r-pill:999px;/* pills, toggles */

  /* spacing scale */
  --sp-1:0.25rem; --sp-2:0.5rem; --sp-3:0.75rem; --sp-4:1rem; --sp-6:1.5rem;
}
html[data-theme="dark"]{
  --bg:#0f172a;
  --panel:#1e293b;
  --card:#1e293b;
  --ink:#e2e8f0;
  --muted:#94a3b8;
  --line:#334155;
  --brand:#818cf8;
  --brand-dark:#a5b4fc;
  --win:#4ade80;
  --draw:#fbbf24;
  --loss:#f87171;
}
