/* =====================================================================
   DESKTOP DESIGN TOKENS
   The single source of truth for every color, metallic treatment,
   spacing value, border, type scale and interaction state used by the
   desktop experience. Nothing outside /desktop reads this file, and
   this file never touches a selector from the rest of the site.

   This is intentionally a *token* layer, not component styling --
   components (desktop.css, window chrome, apps, the music player)
   consume these custom properties instead of hardcoding color or
   metal values, so the whole surface can be reskinned later by editing
   this file and swapping the files under /desktop/assets alone.
   ===================================================================== */
:root{
  /* ---- base palette (fixed by brief) ---- */
  --d-black:        #050505;
  --d-metal-black:  #171A17;
  --d-steel:        #454B46;
  --d-silver:       #929B94;
  --d-chrome:       #D5DCD6;
  --d-green-deep:      #386B13;
  --d-green-acid:      #79B92C;
  --d-green-illum:     #B5E65B;

  /* ---- semantic roles built from the base palette ---- */
  --d-bg:            var(--d-black);
  --d-surface:       var(--d-metal-black);
  --d-surface-raised:#20231f;
  --d-surface-recess:#020302;
  --d-edge:          var(--d-steel);
  --d-edge-hi:        var(--d-chrome);
  --d-text:          var(--d-chrome);
  --d-text-dim:       var(--d-silver);
  --d-text-muted:     #6b716c;
  --d-accent:         var(--d-green-acid);
  --d-accent-dim:     var(--d-green-deep);
  --d-accent-hi:       var(--d-green-illum);
  --d-on-accent:      var(--d-black);
  --d-danger:         #8a5a2e; /* a scorched amber-brown; the brief forbids red */

  /* ---- metallic gradients: liquid chrome, not flat gray ---- */
  --d-grad-chrome: linear-gradient(155deg,#eef2ee 0%,#c3cbc4 18%,#7d847e 38%,#2d302c 55%,#aab2ab 70%,#f4f7f4 84%,#8e968f 100%);
  --d-grad-chrome-pressed: linear-gradient(155deg,#6b716c 0%,#454b46 30%,#20231f 60%,#454b46 100%);
  --d-grad-panel: linear-gradient(175deg,#23261f 0%,#171a17 45%,#0c0e0b 100%);
  --d-grad-recess: linear-gradient(175deg,#000 0%,#0a0c09 60%,#15170f 100%);
  --d-grad-bevel-hi: linear-gradient(90deg,rgba(213,220,214,.9),rgba(213,220,214,0));
  --d-glow-acid: 0 0 10px rgba(121,185,44,.55), 0 0 2px rgba(181,230,91,.6);
  --d-glow-acid-soft: 0 0 18px rgba(121,185,44,.3);

  /* ---- borders / bevels: physical, recessed, never flat-rounded ---- */
  --d-radius: 1px;                 /* liquid-metal chamfers, not rounded cards */
  --d-border-raised:
    inset 1px 1px 0 rgba(213,220,214,.55),
    inset -1px -1px 0 rgba(0,0,0,.65);
  --d-border-recessed:
    inset -1px -1px 0 rgba(213,220,214,.35),
    inset 1px 1px 0 rgba(0,0,0,.75);
  --d-border-hairline: 1px solid var(--d-edge);

  /* ---- typography ----
     Gothic display type is reserved for occasional branding moments
     (the Start control's wordmark, title-screen flourishes) -- never
     for body text or controls, which stay in a legible period-correct
     system-UI stack so the interface reads as functional, not themed. */
  --d-font-display: "Metal Mania", "Chiller", serif;
  --d-font-ui: Tahoma, "Segoe UI", Verdana, sans-serif;
  --d-font-mono: ui-monospace, "Cascadia Code", Consolas, "DejaVu Sans Mono", monospace;
  --d-fs-xs: 11px;
  --d-fs-sm: 12px;
  --d-fs-base: 13px;
  --d-fs-lg: 16px;
  --d-fs-xl: 22px;

  /* ---- spacing scale ---- */
  --d-space-1: 2px;
  --d-space-2: 4px;
  --d-space-3: 8px;
  --d-space-4: 12px;
  --d-space-5: 16px;
  --d-space-6: 24px;

  /* ---- chrome dimensions ---- */
  --d-titlebar-h: 28px;
  --d-taskbar-h: 36px;
  --d-window-border: 2px;

  /* ---- motion ---- */
  --d-ease: cubic-bezier(.2,.7,.3,1);
  --d-dur-fast: 120ms;
  --d-dur: 200ms;
}

/* Reduced motion: every desktop animation and transition collapses to
   nothing. Decorative effects (flicker, glow pulse, scanlines) are
   gated on this same query throughout desktop.css. */
@media (prefers-reduced-motion: reduce){
  :root{ --d-dur-fast: 0ms; --d-dur: 0ms; }
}
