/* Whiteout Survival's look: the snow ground, the ember and the faces the site
   wore before Winthem had its own identity (2026-11-09). It belongs to the
   game now, not to the brand: the Whiteout page (<html class="whiteout">) loads
   it after base.css. Tokens only, exactly as asylum.css does for Last Asylum.

   Specificity: `:root.whiteout` beats base.css's bare `:root`, and the night
   block below adds [data-theme="dark"] so it beats base.css's night too. */

:root.whiteout{
  /* Native surfaces — scrollbars, the date popup, a select's own list — take
     their side from this and from nothing else. */
  color-scheme:light;

  /* ── snow: the ground ── */
  --paper:#EDF1F5;      /* page */
  --surface:#F8FAFC;    /* panels sitting on the page */
  --raised:#FFFFFF;     /* inputs, the topmost layer */
  --sunk:#E3E9EF;       /* wells, tracks, inset areas */
  --line:#D3DDE6;       /* structural 1px */
  --line-soft:#E4EAF0;  /* hairlines inside panels */
  --paper-rgb:237,241,245; /* the page as parts, for scrims that dissolve into it */

  /* ── ink: cold, never pure black ── */
  --ink:#0C1622;        /* primary text */
  --ink-2:#40566D;      /* secondary text, passes AA on paper */
  --ink-3:#6C8199;      /* metadata; small but still readable */
  --faint:#93A6B8;      /* marks and rules only, never body text */

  /* ── fire: the only accent ── */
  --ember:#E55C2E;      /* fills, marks, active state */
  --ember-ink:#B8431C;  /* the accent AS TEXT: AA on snow, the base tone is not */
  --ember-wash:#FDF0EA; /* the faintest tint, for a lit surface */
  --ember-wash-2:#FCE9E0; /* the same tint one step up, for hover on it */
  --on-ember:#FFF6F1;   /* text on an ember fill */
  /* The FILL is its own token, not --ember-ink reused: on snow the deep tone
     is what carries near-white type at AA, on night the raw ember carries dark
     type instead, and the two grounds want opposite ends of the same ramp. */
  --ember-fill:#B8431C;
  --ember-fill-hover:#9E3917;
  --ember-shadow:rgba(184,67,28,.75);
  --ember-edge:rgba(229,92,46,.32);  /* border of an accented chip or row */
  --ember-ring:rgba(229,92,46,.16);  /* the soft ring on a focused field */
  --ember-tint:rgba(229,92,46,.06);  /* the faintest lit hover */
  /* The two ends of the flame itself, for the one gradient that is a flame
     rather than a surface: the filled slot meter. They do not change with the
     ground, because a fire does not. */
  --ember-deep:#C94F24;
  --ember-spark:#FFE2CC;

  /* ── status: darkened for a light ground ── */
  --ok:#17754F;   --ok-wash:#E7F3ED;   --ok-edge:rgba(23,117,79,.3);
  --warn:#9A6A12; --warn-wash:#FBF2DF; --warn-edge:rgba(154,106,18,.3);
  --bad:#B3271B;  --bad-wash:#FBEAE7;  --bad-edge:rgba(179,39,27,.3);
  --bad-ring:rgba(179,39,27,.16);
  /* Status hues taken deeper so they pass AA AS TEXT on the washes they sit
     on: --warn on --warn-wash measures 4.24:1 and --bad on paper 4.9:1, which
     is marks-grade, not sentence-grade. */
  --warn-ink:#7A5410;
  --bad-ink:#8C2016;

  /* ── light and shadow on the ground ── */
  --glow-cold:rgba(255,255,255,.95);  /* the cold light in the page corner */
  --glow-warm:rgba(229,92,46,.06);    /* the fire, far off, in the other one */
  --sweep:rgba(255,255,255,.85);      /* what travels across a skeleton */
  --knob:#FFFFFF;                     /* the moving part of a switch */
  --knob-shade:0 1px 3px rgba(12,22,34,.32);
  --tick-ink:rgba(12,22,34,.18);      /* scale marks drawn over a filled bar */
  --scrim:rgba(12,22,34,.42);         /* behind a modal */
  --photo-bg:#DCE8F3;                 /* under a photograph while it loads */
  /* High-key snow art was shot for a light page. On night it is the one thing
     that cannot be re-toned by swapping a token, so it is dimmed instead —
     `none` here, a filter there, and every art rule reads the same token. */
  --art-dim:none;



  --lift:0 1px 2px rgba(12,22,34,.05), 0 12px 28px -14px rgba(12,22,34,.18);
  --lift-2:0 2px 4px rgba(12,22,34,.06), 0 26px 50px -22px rgba(12,22,34,.26);
  --lift-toast:0 14px 40px rgba(12,22,34,.22);
  --lift-bar:0 -12px 32px -22px rgba(12,22,34,.6);
  /* the faces of the snow look; Geist covers Cyrillic for Space Grotesk */
  --face-d:'Space Grotesk','Geist';
  --face-t:'Geist';
  --face-m:'IBM Plex Mono';--r-btn:8px;--r-field:8px;
  --t-d1:clamp(3rem,7.5vw,6rem); --t-d1-lh:.92; --t-d1-tr:-.04em;
  --t-d2:clamp(2.1rem,4.4vw,3.4rem); --t-d2-tr:-.032em;
  --t-d3:clamp(1.35rem,2.4vw,1.75rem); --t-d3-tr:-.022em;

}

:root.whiteout[data-theme="dark"]{
  color-scheme:dark;

  /* DESIGN.md §2 verbatim: Void is the page, Deep the panels on it, Slab the
     well cut into them, Slab Raised the layer above — inputs, a panel head, a
     row under the pointer. The stack climbs towards the reader the whole way,
     because on a page this dark an inset that goes DOWN has nowhere to go. */
  --paper:#070D16;
  --surface:#0D1524;
  --sunk:#152134;
  --raised:#1C2B43;
  --line:#263A54;
  /* The one value taken off the doc, and taken off it deliberately. Line Soft
     is written there as a rule that recedes, which on snow means towards the
     paper — but here the paper is BELOW everything, so a receding hairline
     lands inside --raised and disappears, taking the ident card's divider with
     it. It steps up from the surface instead, and stays softer than --line. */
  --line-soft:#243550;
  --paper-rgb:7,13,22;

  /* Snow is a warm white on purpose: it is the one warm note in the cold half
     of the palette, and a blue-white here would leave the fire alone in it. */
  --ink:#F5F2ED;
  --ink-2:#8FB2D4;
  --ink-3:#8AA4C2;
  --faint:#5B738F;

  /* The accent does not move; what moves is which end of its ramp does which
     job. As text it lightens to clear the dark ground at 7:1; as a fill it is
     the raw ember with near-black type, which is what DESIGN.md §4 asks for
     and the only combination that passes AA on this side. */
  --ember:#E55C2E;
  --ember-ink:#F3906A;
  --ember-wash:#221610;
  --ember-wash-2:#2E1D14;
  --on-ember:#170703;
  --ember-fill:#E55C2E;
  --ember-fill-hover:#F3906A;
  --ember-shadow:rgba(229,92,46,.45);
  --ember-edge:rgba(229,92,46,.42);
  --ember-ring:rgba(229,92,46,.22);
  --ember-tint:rgba(229,92,46,.12);

  /* Status hues lift and their washes go under them, the same relationship as
     on snow read the other way round. */
  --ok:#58B08C;   --ok-wash:#0F2119;   --ok-edge:rgba(88,176,140,.34);
  --warn:#C9922F; --warn-wash:#221A0C; --warn-edge:rgba(201,146,47,.34);
  --bad:#D9584A;  --bad-wash:#25100E;  --bad-edge:rgba(217,88,74,.34);
  --bad-ring:rgba(217,88,74,.22);
  --warn-ink:#E0AE55;
  --bad-ink:#F08276;

  /* The cold corner light stops being white — on this ground white is a haze
     over the whole page — and becomes the blue it was standing for. */
  --glow-cold:rgba(70,104,150,.2);
  --glow-warm:rgba(229,92,46,.1);
  --sweep:rgba(198,220,238,.07);
  --knob:#C6DCEE;                     /* Ice */
  --knob-shade:0 1px 3px rgba(3,7,13,.5);
  --tick-ink:rgba(245,242,237,.2);
  --scrim:rgba(2,5,10,.62);
  --photo-bg:#0D1524;
  --art-dim:brightness(.78) contrast(1.04) saturate(.94);

  /* Not #000: the palette has no pure black, and the darkest tone in it is
     Void. These sit a shade under it so a panel still lifts off the page. */
  --lift:0 1px 2px rgba(3,7,13,.5), 0 12px 28px -14px rgba(3,7,13,.72);
  --lift-2:0 2px 4px rgba(3,7,13,.55), 0 26px 50px -22px rgba(3,7,13,.8);
  --lift-toast:0 14px 40px rgba(3,7,13,.62);
  --lift-bar:0 -14px 34px -20px rgba(3,7,13,.85);
}
