/* Digital Genesis — the three palettes, shared.
   Loaded by the dashboard AND the raffle page (18 Nov 2026: the raffle page
   uses the dashboard's look). One file, so the two can never drift: change a
   colour here and both change. Layout lives in each page's own stylesheet. */

/* ═══════════════════════════════════════════════════════════════════ themes
 *
 * Three palettes, each keyed off `data-theme` on <html>, which `theme.js` sets
 * before the first paint.
 *
 * The previous version keyed light off `@media (prefers-color-scheme: light)`.
 * That is gone rather than kept alongside, because two mechanisms setting the
 * same variables fight: a person who chose light on a dark-set machine would
 * get whichever rule happened to win the cascade. The OS preference is still
 * honoured — `theme.js` reads it when nothing is saved — but exactly one thing
 * decides, and it is the attribute.
 *
 * `:root` carries the dark values as well as `[data-theme="dark"]`, so the page
 * is styled even if the script is blocked or fails. The fallback being dark is
 * the point: an unstyled flash of near-black is survivable, a flash of white is
 * what this change set out to remove.
 */
:root,
[data-theme='dark'] {
  /* Warmer and softer than the old flat #0f1115: a touch of blue in the base,
     and a wider gap between the page and the panels so cards read as raised
     rather than as outlined rectangles on the same colour. */
  --bg: #0d1017;
  --panel: #161a23;
  --panel-2: #1e2330;
  --line: #2a3040;
  --text: #e7eaf2;
  --muted: #949cb0;
  --accent: #6b7cff;
  --good: #3ba55d;
  --warn: #faa61a;
  --danger: #ed4245;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  --radius: 10px;
}

/* Warm off-white rather than #ffffff, and panels separated by a soft shadow
   instead of only a hard border — the flat white page was the complaint. */
[data-theme='light'] {
  --bg: #eef0f4;
  --panel: #fbfcfd;
  --panel-2: #f1f3f7;
  --line: #dde1e9;
  --text: #1b1e25;
  --muted: #5f6878;
  --accent: #4553d6;
  --good: #27824a;
  --warn: #b26a00;
  --danger: #c5343a;
  --shadow: 0 1px 3px rgba(20, 25, 40, 0.09);
  --radius: 10px;
}

/* Deep violet-black with Solana's purple and mint, because that is the chain
   this bot actually settles on — the wallet gates, the payouts and the volume
   reports are all Solana. Chosen only by picking it; no OS setting implies it. */
[data-theme='crypto'] {
  --bg: #0a0812;
  --panel: #14101f;
  --panel-2: #1c1730;
  --line: #2d2448;
  --text: #ebe7f7;
  --muted: #9a90bd;
  --accent: #9945ff;
  --good: #14f195;
  --warn: #ffb020;
  --danger: #ff5c7a;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  --radius: 10px;
}
