/*
 * RushMU UI - design tokens.
 *
 * The palette is the one of the mobile app (launcher + touch HUD): a near-black neutral ground, cool grey
 * lines, one warm accent (the gold of the pressed HUD buttons / the launcher title) and a single alert red.
 * Everything else on the site is derived from these values; do not add new colours elsewhere.
 *
 *   app launcher background  rgb(12,12,14)      -> --rm-bg
 *   app launcher title       rgb(242,227,179)   -> --rm-cream
 *   app launcher text        rgb(220,220,220)   -> --rm-tx
 *   app launcher detail      rgb(150,150,155)   -> --rm-tx-2
 *   app launcher version     rgb(120,120,126)   -> --rm-tx-3
 *   HUD pressed / drop frame (255,209,77)       -> --rm-gold
 *   HUD clear / alert        (255,77,64)        -> --rm-red
 */
:root {
  --rm-bg: #0c0c0e;
  --rm-bg-1: #17171c;
  --rm-bg-2: #1e1f26;
  --rm-bg-3: #282a32;

  --rm-line: #2a2b33;
  --rm-line-2: #3a3c47;
  --rm-line-3: #545761;

  --rm-tx: #e4e5ea;
  --rm-tx-2: #a1a6b5;
  --rm-tx-3: #7c808d;

  --rm-gold: #bfc7db;
  --rm-gold-2: #8c94b3;
  --rm-gold-3: #545a73;
  --rm-cream: #edeef2;
  --rm-gold-wash: rgba(191, 199, 219, 0.08);

  --rm-red: #ff4d40;
  --rm-red-wash: rgba(255, 77, 64, 0.1);
  --rm-ok: #5fd18b;
  --rm-ok-wash: rgba(95, 209, 139, 0.1);

  --rm-head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --rm-font: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rm-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

  --rm-gutter: 24px;
  --rm-bar-h: 56px;

  /* ---- legacy variable names used by the old stylesheet: mapped to the new palette ---- */
  --bg-primary: var(--rm-bg);
  --bg-secondary: var(--rm-bg-2);
  --bg-tertiary: var(--rm-bg-3);
  --bg-btn-primary: var(--rm-gold);
  --bg-btn-primary-hover: #dfe4f0;
  --bg-panel: var(--rm-bg-1);
  --bg-panel-header: var(--rm-bg-2);
  --border-color: var(--rm-line-2);
  --border-light: var(--rm-line);

  --input-bg: #101015;
  --input-border: var(--rm-line-3);
  --input-hover-bg: var(--rm-bg-2);

  --text-primary: var(--rm-tx);
  --text-secondary: #b3b3b8;
  --text-muted: var(--rm-tx-2);
  --text-accent: var(--rm-cream);

  --accent-primary: var(--rm-gold-2);
  --accent-secondary: var(--rm-gold);
  --accent-success: var(--rm-ok);
  --accent-danger: var(--rm-red);
  --accent-danger-hover: #d63b30;
  --accent-danger-active: #b32f26;
  --accent-danger-focus: #d63b30;
  --accent-warning: var(--rm-gold);
  --accent-info: var(--rm-cream);

  --bg-btn-secondary: var(--rm-bg-3);
  --bg-btn-secondary-hover: var(--rm-line-2);
  --bg-btn-secondary-active: var(--rm-line-3);
  --bg-btn-secondary-focus: var(--rm-line-2);

  --container-max-width: none;
  --header-height: var(--rm-bar-h);
  --sidebar-width: 0px;
  --border-radius: 0;
  --box-shadow: none;

  --font-family: var(--rm-font);
  --font-size-xs: 11px;
  --font-size-sm: 13px;
  --font-size-md: 14px;
  --font-size-lg: 16px;
  --font-size-xl: 19px;
  --font-size-xxl: 23px;
}
