/* Gaymes design tokens. Every colour, size and radius comes from here.
   The light look (10 Nov 2026) shares its palette with OMGay!, so the two sit together. */

/* Self-hosted fonts (SIL Open Font License, see /assets/fonts/LICENSE-*.txt). */
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/inter-latin-wght.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/inter-latin-ext-wght.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Fredoka"; font-style: normal; font-display: swap; font-weight: 300 700; src: url(../fonts/fredoka-latin-wght.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fredoka"; font-style: normal; font-display: swap; font-weight: 300 700; src: url(../fonts/fredoka-latin-ext-wght.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  color-scheme: light;

  /*
    The light look (Stuart, 10 Nov 2026: "need to update Gaymes to mirror the light style so it feels consistent").
    A soft grey page, white cards on it, dark grey type (never black), one blue for anything you tap, and six pastels
    as a quiet rainbow. The same palette as OMGay!.
  */

  /* Surfaces */
  --bg: #F4F5F8;              /* the page */
  --surface: #FFFFFF;         /* cards, bars, sheets' own cards */
  --surface-raised: #F1F3F6;  /* anything set into a card: quiet buttons, chips, quotes */
  --border: #E3E6EB;
  --edge: #DCE0E6;            /* the bottom edge that gives a card or button its lift */
  --hairline: #ECEEF2;        /* the line between two rows */

  /* Text */
  --text: #33363D;
  --text-secondary: #5B616E;
  --text-muted: #737A86;

  /* Blue: buttons, links, whatever's switched on */
  --accent: #3F73DD;
  --accent-hover: #3568D0;
  --accent-edge: #2C5BBD;     /* a blue button's bottom edge */
  --accent-ink: #2A56B5;      /* blue words on white */

  /* Feedback: a soft grey veil over whatever colour a thing already is, under a mouse and while it's pressed */
  --veil-hover: linear-gradient(rgba(16, 24, 40, 0.06), rgba(16, 24, 40, 0.06));
  --veil-press: linear-gradient(rgba(16, 24, 40, 0.12), rgba(16, 24, 40, 0.12));

  /* Status */
  --success: #1E8A5A;  --success-ink: #17694A;
  --warning: #B7791F;
  --danger: #D33F49;   --danger-ink: #B3303B;
  --orange: #E2703A;   --orange-ink: #A8481C;
  --gold: #E8AE1B;     --gold-edge: #C99412; --gold-ink: #8A6400;
  --silver: #C3C8D1;   --silver-edge: #A2A9B5;

  /* Pastels: each has a deeper ink for words and icons, and an edge for its border */
  --rose: #FBDEE7;   --rose-ink: #8C2F4E;   --rose-edge: #F1B4C8;
  --peach: #FCE1D0;  --peach-ink: #8A4520;  --peach-edge: #F3BE9C;
  --lemon: #FCF1C6;  --lemon-ink: #7A5A00;  --lemon-edge: #F0D982;
  --mint: #D6F3E6;   --mint-ink: #1D6A4C;   --mint-edge: #A8E0C6;
  --sky: #DDEAFD;    --sky-ink: #24519E;    --sky-edge: #B2CCF7;
  --lilac: #E7E1FC;  --lilac-ink: #4B3BA8;  --lilac-edge: #C9BDF6;

  /* Pop: the same six, strong enough to be the colour of a thing rather than a tint behind it (Stuart, 10 Nov 2026:
     "look at how colourful they are whilst still being white and light and slick"). Solid tiles, stat blocks and
     countdown numbers wear these on white cards; -edge is the darker lip under them, -ink the icon or words on them. */
  --pop-rose: #F5A0BF;   --pop-rose-edge: #DC7A9F;   --pop-rose-ink: #6B1F3E;
  --pop-peach: #F7B084;  --pop-peach-edge: #E08C5C;  --pop-peach-ink: #6A2F0E;
  --pop-lemon: #F7CF4D;  --pop-lemon-edge: #D8AE25;  --pop-lemon-ink: #574000;
  --pop-mint: #86D9B3;   --pop-mint-edge: #5DBE93;   --pop-mint-ink: #0E4C33;
  --pop-sky: #95B8F7;    --pop-sky-edge: #6F95E1;    --pop-sky-ink: #163C82;
  --pop-lilac: #BDABF7;  --pop-lilac-edge: #9A86E6;  --pop-lilac-ink: #32258A;

  /* The rainbow, pastel: borders, rings and the line along the top of every screen */
  --rainbow-1: #F1B4C8;
  --rainbow-2: #F3BE9C;
  --rainbow-3: #F0D982;
  --rainbow-4: #A8E0C6;
  --rainbow-5: #B2CCF7;
  --rainbow-6: #C9BDF6;
  --rainbow: linear-gradient(90deg, #F2A3BD, #F5B087, #EFD064, #8DD7B4, #9CBDF3, #B7A6F2);
  /* The same rainbow a shade deeper, for rainbow words and anything with white type on it */
  --rainbow-deep: linear-gradient(90deg, #D9577F, #DE7B43, #C99A1C, #2F9E73, #3F73DD, #7C68D8);

  /* Quiz formats: one pastel family each (the tint and edge are set where a format is worn, as --fb and --fe) */
  --format-gk: var(--lilac-ink);
  --format-mini: var(--rose-ink);
  --format-picture: var(--peach-ink);
  --format-sound: var(--sky-ink);
  --format-map: var(--mint-ink);
  --format-video: var(--danger-ink);

  /* Type */
  /* Headings, titles and big numbers in Fredoka, the rounded games font Gaymes had before the light look (Stuart,
     10 Nov 2026: "It all looks and feels like a tech company website"). Words you read stay in Inter. */
  --font-display: "Fredoka", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Spacing (8px scale) and shape */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --radius-card: 20px;
  --radius-field: 12px;
  --nav-height: 60px;   /* was 68: the same shorter bar as OMGay! ("Bit too much gap here", Stuart, 10 Nov 2026) */
  --content-max: 1080px;
  --radius-pill: 999px;
  --tap-min: 48px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  /* A little overshoot, for things that land: a sticker slapped on, a count that bumps (29 Oct 2026). */
  --pop: cubic-bezier(.34, 1.56, .64, 1);

  /* Updates and comments: the read-out colour and type */
  --cyan: #1F7FA6;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
