/* GKDigitals Games — the design tokens. This is the only file that names a colour, a text size, a corner, a shadow or a
   layer; every other stylesheet uses these names. Loaded right after fonts.css on every page (the maintenance screen gets
   a copy written into it by the build). All names start with --gk-.

   The look is one navy room with gold trim. Buttons follow one colour rule everywhere:
   start / stay / play = go (green), back / OK = back (orange), leave = leave (red), join / sign in = join (blue),
   an action inside a game (Roll, Pass, Lay down) = action (gold), anything else = tile (dark blue). */
:root {
  /* ---- Room and surfaces ---- */
  --gk-night: #050d1c;            /* the page's edge and the colour behind everything */
  --gk-room: #0b1d3c;             /* the middle of the room's glow */
  --gk-room-glow: #173c72;        /* the light spot at the top of the room */
  --gk-well: #0a1a36;             /* sunk places: side menu, fields, the bar */
  --gk-panel: #1b4380;            /* top of a pop-up or panel */
  --gk-panel-deep: #0e2650;       /* bottom of a pop-up or panel */
  --gk-tile: #1d3a66;             /* top of a plain dark button */
  --gk-tile-deep: #142a4d;        /* bottom of a plain dark button */
  --gk-raise: #1f4a8c;            /* top of a big menu button */
  --gk-raise-deep: #102b57;
  --gk-line: #2c4670;             /* thin borders */
  --gk-line-soft: #ffffff14;      /* the inner hairline on raised things */
  --gk-veil: #020816a6;           /* behind a pop-up */
  --gk-felt: #2a6cc4;             /* table felt */
  --gk-felt-deep: #123f80;
  --gk-rim: #0b1733;              /* table rim */
  --gk-rim-light: #2a4f8f;

  /* ---- Text ---- */
  --gk-ink: #eef3fb;              /* main text */
  --gk-ink-soft: #d3def2;         /* running text in pop-ups */
  --gk-muted: #9fb4d6;            /* notes and labels (4.6:1 on the panel) */
  --gk-white: #ffffff;
  --gk-google-fill: #131314;      /* Google's dark sign-in button: its own fill, edge and text colours */
  --gk-google-line: #8e918f;
  --gk-google-ink: #e3e3e3;
  --gk-on-gold: #3a2600;          /* text on a gold surface */
  --gk-on-gold-soft: #5a3d00;

  /* ---- Gold trim ---- */
  --gk-gold: #f2c94c;
  --gk-gold-deep: #c99a2e;        /* borders of pop-ups and big buttons */
  --gk-gold-pale: #ffe7a3;        /* top of a gold button, the focus ring */
  --gk-gold-warm: #f0b03a;        /* bottom of a gold button */
  --gk-gold-edge: #fff3c9;

  /* ---- The four button roles (white text reads at 4.4:1 or better on the middle of each) ---- */
  --gk-go: #2b9a5c;       --gk-go-deep: #12633a;       --gk-go-edge: #bff0cf;       --gk-go-shade: #0b4a25;
  --gk-back: #de6b17;     --gk-back-deep: #ad4409;     --gk-back-edge: #ffd9a8;     --gk-back-shade: #6e2a00;
  --gk-leave: #e25442;    --gk-leave-deep: #a92a1b;    --gk-leave-edge: #ffd0c8;    --gk-leave-shade: #6a1408;
  --gk-join: #4a86ec;     --gk-join-deep: #2350b3;     --gk-join-edge: #cfe0ff;     --gk-join-shade: #12306e;

  /* ---- States ---- */
  --gk-good: #6ee7a8;             /* right, won, online */
  --gk-warn: #ffd166;             /* take care */
  --gk-bad: #ff8f87;              /* wrong, lost, offline */
  --gk-info: #8fd8ff;
  /* The four seats of a table, in play order. */
  --gk-seat-1: #8fd8ff; --gk-seat-2: #ff8f87; --gk-seat-3: #6ee7a8; --gk-seat-4: #ffd166;

  /* ---- Type: Fredoka for English and digits, Tajawal for Arabic; nothing under 12px; three weights, and 600 for numbers ---- */
  --gk-font: Fredoka, Tajawal, "Segoe UI", system-ui, Tahoma, sans-serif;
  --gk-text-xs: 12px; --gk-text-sm: 14px; --gk-text-md: 16px; --gk-text-lg: 18px;
  --gk-text-xl: 22px; --gk-text-2xl: 28px; --gk-text-3xl: 36px;
  --gk-regular: 400; --gk-medium: 500; --gk-bold: 700;
  /* Numbers (amounts, scores, counts, card and board numbers). Fredoka draws the digits and has every weight from 300 to 700;
     Tajawal has no 600, so an Arabic word beside a number is drawn at 700. */
  --gk-number: 600;
  --gk-tight: 1.2; --gk-read: 1.6;

  /* ---- Shape and space ---- */
  --gk-r-sm: 8px; --gk-r-md: 10px; --gk-r-lg: 16px; --gk-r-pill: 999px;
  --gk-s-1: 4px; --gk-s-2: 8px; --gk-s-3: 12px; --gk-s-4: 16px; --gk-s-5: 24px; --gk-s-6: 32px;
  --gk-tap: 44px;                 /* the smallest thing a finger presses */
  --gk-bar: 56px;                 /* height of the top bar */
  --gk-pop-width: 440px;

  /* ---- Depth ---- */
  --gk-shadow-1: 0 2px 4px #0006;
  --gk-shadow-2: 0 6px 14px #0009;
  --gk-shadow-3: 0 24px 60px #000c;
  --gk-inset: inset 0 0 0 1px var(--gk-line-soft);
  --gk-sunk: inset 0 2px 6px #0009;      /* a place pressed into the surface */
  --gk-dark: #000000aa;                  /* the colour of a wide soft shadow */
  --gk-shine: #ffffffaa;                 /* the bright top edge of a gold thing */
  --gk-ring: #ffffff4d;                  /* a faint ring */

  /* ---- Layers, lowest first ---- */
  --gk-z-stage: 1; --gk-z-bar: 40; --gk-z-menu: 60; --gk-z-pop: 70; --gk-z-toast: 90; --gk-z-loading: 100;

  /* ---- Movement ---- */
  --gk-fast: .12s; --gk-move: .2s; --gk-slow: .35s; --gk-ease: cubic-bezier(.2, .8, .2, 1);
  --gk-toast-time: 2600ms;

  /* ---- Keyboard focus: one ring everywhere ---- */
  --gk-focus: 3px solid var(--gk-gold-pale);
  --gk-focus-gap: 2px;

  /* ---- The edges of the screen on phones with a notch or a home line ---- */
  --gk-safe-top: env(safe-area-inset-top, 0px); --gk-safe-bottom: env(safe-area-inset-bottom, 0px);
  --gk-safe-start: env(safe-area-inset-left, 0px); --gk-safe-end: env(safe-area-inset-right, 0px);
}
@media (prefers-reduced-motion: reduce) { :root { --gk-fast: 0s; --gk-move: 0s; --gk-slow: 0s; } }
