/* deck-tokens.css: the one token file for The Deck (1.1). Linked in every page's <head>.
   Everything that changes a colour, font or shape sits under html.gw11 (nav.js sets it on a 1.1 page only), so the live
   site is untouched. The layer scale, focus and motion values are plain numbers on :root: nothing reads them outside
   1.1 rules, and having them early means a 1.1 rule never falls back while nav.js is still loading.
   Source of the colour values: the .gp set in css/gp.css (The Deck, design system "The Grim Path"). */

:root {
  /* ---- layers: the only z-index values a 1.1 rule should use ---- */
  --z-page: 1;               /* things inside the page that must sit over its own art */
  --z-header: 50;            /* the site header and its menus (a stacking context: the phone menu and bell panel live inside it) */
  --z-popup: 100;            /* every pop-up (Deck tables, Backpack, Customise, Personality) */
  --z-popup-2: 200;          /* a pop-up opened over a pop-up (swap, pickers, settings) */
  --z-tip: 2147481000;       /* tooltips and tour pointers: always over pop-ups */
  --z-toast: 2147482000;     /* toasts: over pop-ups, but never over a close (see gw-ui.css) */
  --z-fly: 2147483000;       /* motes and sparks in flight */
  --z-dev: 2147483600;       /* the owner's dev bar and sandbox tools */

  /* ---- motion ---- */
  --dur-hover: 120ms;
  --dur-press: 90ms;
  --dur-reward-min: 300ms;
  --dur-reward: 460ms;
  --dur-reward-max: 600ms;
  --ease-out: cubic-bezier(.2,.7,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);

  /* ---- focus: one ring on every 1.1 control ---- */
  --focus-colour: #efe2c8;
  --focus-w: 3px;
  --focus-off: 3px;
  --focus: var(--focus-w) solid var(--focus-colour);

  /* ---- the text floor ---- */
  --text-min: 12px;
}

html.gw11 {
  /* ground and ink */
  --night:#0b0809; --felt:#140f10; --felt-2:#1d1517; --ink:#0a0607; --rim:#3b2a22; --rim-hi:#5a4234;
  /* text on felt: bone, then dim, then faint (small labels only). Measured on felt / felt-2: bone 14.8 / 14.0:1,
     dim 7.6 / 7.2:1, faint 4.8 / 4.5:1. Nothing lighter than --faint carries text: --rim-hi is 2.1:1 (lines only), and
     --faint never takes an opacity below 1 (that is what put the Book and Grove slot labels at 1.8 to 2.5:1). */
  --bone:#efe2c8; --dim:#b3a18b; --faint:#8f7d6c; --label:var(--faint);
  /* cards. --card stays the OLD meaning (a dark panel) on :root because about 20 older rules read var(--card) as a panel
     background; the bone card face is --card-face here and --card inside .gp (gp.css sets it there). */
  --card:var(--felt); --card-face:#e9dcbf; --card-spent:#cdbd9b; --card-ink:#20160f; --card-sub:#5b4b3a; --good-ink:#3a6a25;
  /* biomes (ember by default; .gp-mire etc. swap them) */
  --biome:#d9572b; --biome-hi:#f59a52; --biome-deep:#a83a18;
  --biome-ember:#d9572b; --biome-ember-hi:#f59a52; --biome-ember-deep:#a83a18;
  --biome-mire:#3fa6a0; --biome-mire-hi:#7fd6cf; --biome-mire-deep:#236b65;
  --biome-bramble:#6fae4c; --biome-bramble-hi:#a6d97f; --biome-bramble-deep:#36661f;
  --biome-gloam:#9a6ad8; --biome-gloam-hi:#c9a6ff; --biome-gloam-deep:#6a3fb0;
  --biome-hollow:#9fb0c0; --biome-hollow-hi:#dfe7ee; --biome-hollow-deep:#4f5f6e;
  /* numbers wear one colour each: gold is motes only */
  --odds-good:#4f8f34; --odds-fair:#b07a1c; --odds-bad:#b0412a; --stat-good:#8fd16a;
  --mote:#e9b54f; --prov:#c08a58; --time:#8ccfff;
  /* rarity; gold appears only as the mythic edge */
  --r-common:#a9b2bd; --r-uncommon:#5fcf73; --r-rare:#4ea6ff; --r-mythic:#b884ff; --r-mythic-edge:#f0c55a;
  --danger-face:#3c1517; --danger-text:#f6c6b8;
  /* type: three faces */
  --font-display:"Alegreya SC", Georgia, serif;
  --font-body:Georgia, "Gelasio", "Times New Roman", serif;
  --font-number:"Jersey 10", ui-monospace, monospace;
  /* space and shape */
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:22px; --space-6:28px; --space-7:48px;
  --radius-none:0; --radius-coin:50%;
  /* hard ink drops (the only soft shadows allowed: the table's deep shadow and a lifted card's glow) */
  --raise:0 0 0 2px #0a0607, 0 5px 0 #0a0607;
  --raise-hover:0 0 0 2px #0a0607, 0 7px 0 #0a0607;
  --raise-press:0 0 0 2px #0a0607, inset 0 2px 6px rgba(0,0,0,0.45);
  --flat:0 0 0 2px #0a0607, inset 0 0 0 1px #3b2a22;
  --drop:0 0 0 2px #0a0607, 0 6px 0 #0a0607;
  --card-rest:0 0 0 3px #0a0607, 0 14px 26px rgba(0,0,0,0.55);
  --table:0 0 0 3px #0a0607, 0 0 0 5px #3b2a22, 0 0 0 8px #0a0607, 0 40px 90px rgba(0,0,0,0.6);
  --focus-colour:var(--bone);

  /* ---- the old names (tokens.css --gw-*, the Journal's own :root) point at the Deck, so old rules that read them stop
     being gold and cool grey. Motes keep gold through --mote. ---- */
  --gw-bg:var(--night); --gw-card:var(--felt); --gw-card-2:var(--felt-2); --gw-text:var(--bone); --gw-muted:var(--dim);
  --gw-line:var(--rim); --gw-accent:var(--bone); --gw-accent-rgb:239,226,200; --gw-green:var(--stat-good); --gw-danger:var(--odds-bad);
  --gw-glow:var(--c-glow,239,226,200);
  --gw-font-ui:var(--font-body); --gw-font-lore:var(--font-body);
  --gw-r-sm:0; --gw-r:0; --gw-r-lg:0; --gw-r-pill:0;
  --gw-ease-out:var(--ease-out); --gw-ease-spring:var(--ease-spring);
  --gw-dur-hover:var(--dur-hover); --gw-dur-press:var(--dur-press); --gw-dur-reward:var(--dur-reward);
  /* the Journal's :root (profile.html) and nav.css fallbacks */
  --bg:var(--night); --card2:var(--felt-2); --text:var(--bone); --muted:var(--dim); --accent:var(--bone); --accent-rgb:239,226,200;
  --green:var(--stat-good); --line:var(--rim);
}
/* Page :root blocks (profile.html, index.html, halls.html...) are (0,1,0); html.gw11 is (0,1,1), so these win in 1.1
   wherever this file is linked, whatever the order. */

/* Fraunces is not used by anything visible in 1.1: pointing the old --font-display at Alegreya SC (above) means the
   121KB file is never requested once html.gw11 is set. */

/* ---- V17: the 12px text floor and a label that always passes ----
   .gw-min12 on any text that was set under 12px brings it to 12px; .gw-label is the small-caps label at 13px in --label. */
html.gw11 .gw-min12 { font-size:var(--text-min) !important; line-height:1.25; }
html.gw11 .gw-label { font-family:var(--font-display); font-weight:700; font-size:max(var(--text-min), 13px); letter-spacing:.1em; color:var(--label); opacity:1; }

/* ---- V4: the default card theme ("Ash", src/customise.js) is gold on cool navy. In 1.1 it reads as bone on felt.
   The theme is data written inline (style="--c-accent:#e3a44e;..."), so this matches that exact value; an !important
   author rule beats the inline one. Other themes are a player's choice and keep their colours. The data change itself
   (accent #e3a44e -> bone for 1.1) is noted for JNL/ECO. ---- */
html.gw11 [style*="--c-accent:#e3a44e"], html.gw11 [style*="--c-accent: #e3a44e"] {
  --c-accent:#efe2c8 !important; --c-glow:239,226,200 !important; --c-card:#140f10 !important; }
