/* Default theme, inside the image (card 2d). Loaded BEFORE /theme/theme.css.
   ./theme is bind-mounted over /app/public/theme, which hides anything the
   image puts there, so this copy lives in /theme-default/. If the mounted
   theme is missing or a token is left out, these values are used instead.
   Same tokens as theme/theme.css, without the font files (the system font
   stack takes over if theme/fonts/ is missing). Keep the two in step. */
:root {
  /* ---- Colour ---- */
  --color-plate: #000000;          /* header and footer bands: the logo sits on this seamlessly */
  --color-bg: #0F1115;             /* page */
  --color-surface: #1A1D24;        /* cards */
  --color-raised: #252A33;         /* inputs, secondary buttons */
  --color-line: #3A4150;           /* borders (decorative, not text) */

  --color-text: #F7F2E8;           /* bone white: 15.1:1 on cards */
  --color-muted: #B6BCC8;          /* secondary text: 8.9:1 on cards */

  --color-brand: #F69B20;          /* logo orange */
  --color-brand-top: #FBD00E;      /* logo yellow: top of the button gradient */
  --color-accent: #FBD00E;         /* scores, codes, big numbers */
  --color-hot: #EF5828;            /* logo red-orange: "Finish game", highlights */
  --color-sky: #9ED4E6;            /* logo outline: focus rings, badges, "you" */
  --color-on-brand: #1B1206;       /* text on yellow, orange, sky or the rank colours */

  --color-success: #5BC97A;        /* jungle green */
  --color-danger: #FF8A7A;
  --color-info: #9ED4E6;
  --tint-success: rgba(91, 201, 122, 0.12);
  --tint-danger: rgba(255, 138, 122, 0.12);
  --tint-info: rgba(158, 212, 230, 0.12);
  --tint-brand: rgba(246, 155, 32, 0.12);
  --tint-me: rgba(158, 212, 230, 0.10);

  --color-rank-1: #FBD00E;         /* gold: the logo yellow */
  --color-rank-2: #D7DEE8;         /* silver */
  --color-rank-3: #D9925F;         /* bronze */

  --color-overlay: rgba(0, 0, 0, 0.78);

  /* ---- Type ---- */
  --font-display: 'Lilita One', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;  /* headings, codes, scores, buttons */
  --font-body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;  /* everything you read */

  /* ---- Shape ---- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* ---- Spacing (4 px steps) ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;

  --tap-min: 56px;                 /* smallest button height on phones */

  /* ---- Depth ---- */
  --shadow-card: 0 6px 24px rgba(0, 0, 0, 0.45);
  --shadow-pop: 0 12px 40px rgba(0, 0, 0, 0.6);
  --shadow-press: inset 0 -4px 0 rgba(0, 0, 0, 0.22);   /* the chunky "toy button" edge */

  /* ---- Background slots ----
     A faint volcano glow rises from the bottom of every screen. To add art,
     drop it in theme/art/ and point these at it, with the full path
     (browsers disagree on relative paths inside these variables), e.g.
       --bg-phone-image: url('/theme/art/bg-phone.webp');
       --bg-tv-image: url('/theme/art/bg-tv.webp');
     The scrim keeps text readable on top of a picture. */
  --bg-glow: radial-gradient(120% 55% at 50% 115%, rgba(239, 88, 40, 0.20), rgba(239, 88, 40, 0) 70%);
  --bg-phone-image: none;
  --bg-tv-image: none;
  --bg-scrim: linear-gradient(rgba(15, 17, 21, 0.55), rgba(15, 17, 21, 0.85));
}
