/* ==========================================================================
   UCL East First-Person Experience — Design Tokens (SPEC_PATCH_v2 §E)
   Warm illustrated sticker-book aesthetic inspired by Dani's storyboards
   ========================================================================== */

:root {
  /* Core Palette */
  --ink: #2E2433;           /* Deep warm purple-brown outlines & text */
  --ink-soft: #594B63;      /* Secondary muted text (still >= 6.2:1 on --paper) */
  --paper: #FFF8EC;         /* Warm cream card fill */
  --paper-alt: #F4EAD6;     /* Slightly deeper warm cream for inset blocks */
  --paper-pure: #FFFDF8;    /* Extra crisp cream for Clear Text mode */
  --lilac: #D9D0F0;         /* Mini-browser window titlebar & secondary panel */
  --lilac-soft: #EDE8FA;    /* Subtle lilac tint */
  --marker: #F6CE2E;        /* Numbered circular hotspot yellow */
  --marker-done: #BFE0CE;   /* Soft sage for visited markers */
  --teal: #2F8F8A;          /* Positive accent token */
  --teal-btn: #22736E;      /* Primary button fill (>= 5.1:1 contrast with white) */
  --teal-dark: #1A5A56;     /* Hover/active primary fill */
  --orange: #E9773A;        /* Warm highlight (sparingly used) */
  --orange-soft: #FDE5D4;   /* Warm soft badge fill */

  /* Sensory Load Ring (non-numeric, non-judgmental palette) */
  --calm: #9FC9B5;          /* Calm band */
  --busy: #F2B45A;          /* Busy band */
  --over: #C7798F;          /* Overload band (soft rose, never harsh red) */

  /* Window Bar Dots (Dani storyboard style) */
  --dot-coral: #E9773A;
  --dot-yellow: #F6CE2E;
  --dot-green: #7BC496;

  /* Geometry & Sticker Elevation */
  --border-w: 2.5px;
  --border: var(--border-w) solid var(--ink);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --radius-pill: 999px;
  --shadow-sticker: 0 3px 0 var(--ink);
  --shadow-sticker-sm: 0 2px 0 var(--ink);
  --shadow-sticker-lg: 0 5px 0 var(--ink);

  /* Typography */
  --font-sans: "Avenir Next", "SF Pro Rounded", "Segoe UI", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --text-scale: 1;
  --text-base: calc(17px * var(--text-scale));
  --text-sm: calc(15px * var(--text-scale));
  --text-xs: calc(13.5px * var(--text-scale));
  --text-lg: calc(20px * var(--text-scale));
  --text-xl: calc(24px * var(--text-scale));
  --line-height: 1.6;

  /* Accessibility & Touch Targets */
  --tap-min: 48px;
  --tap-compact: 44px;

  /* Safe Area Insets */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);

  /* Layer Z-Indices (strictly separated for WP2/WP3/WP4/WP5) */
  --z-bg: 10;
  --z-entities: 20;
  --z-walk-debug: 30;
  --z-hands: 40;
  --z-fx: 50;
  --z-hotspots: 60;
  --z-ui: 70;
  --z-captions: 75;
  --z-panel: 80;
  --z-topbar: 85;
  --z-modal: 90;
  --z-screen: 95;
}
