/* Back to the Arcade: Toad's Dino Lynx (card 2d)
   Design tokens only: colours, fonts, corners, spacing, shadows, background
   slots. The app's layout lives in /style.css and uses these names.

   This file is mounted read-only at /theme/theme.css and loads after
   /theme-default/theme.css (the copy inside the image), so anything set here
   wins, and anything missing here falls back to the default.

   Colours come from Greg's logo (theme/logo/logo.png):
     yellow  #FBD00E  top of the letters
     orange  #F69B20  middle of the letters (main brand colour)
     volcano #EF5828  bottom of the letters (hot accent)
     sky     #9ED4E6  the outline round the letters
     black   #000000  the logo's own background (header plates)
   Jungle green is the only colour not from the logo: success messages only. */

@font-face {
  font-family: 'Lilita One';
  font-style: normal;
  font-weight: 100 900;   /* one (bold) face for every weight: never a fake bold */
  font-display: swap;
  src: url('fonts/lilita-one-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2');
}

: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));
}
