/* baitudo apps tokens v003 - the new look of the Baitudo apps, draw first (29 Nov 2026).
   Changed since v002: one colour added, --ui-danger, which the boards have used since the Saved data screen and v002 left out. Nothing else. v002 is in zzz/.
   Changed in v002: a ninth ground, Lagoon, for the back office (UX-Q41 A, UX-Q45 B).
   Source: design canvas "Baitudo Drawing - sprucing up", page v024, as measured in Chrome (draw_look_sizes_v002.md).
   Separate from baitudo_tokens_v001.css, which belongs to the baitudo.com home page and is not replaced by this file.
   Every name starts with --ui- ; draw v125 uses no name that starts that way (checked: 0 hits in its index.html).
   Not a drop-in: take the tokens a change needs, and check every rule that reads a colour before replacing it.
   Fonts are not declared here: each build carries its own @font-face rules (the files are in fonts/). */

:root {
  /* ink and paper */
  --ui-ink: #2A1E1E;        /* every line, border, lip and all text */
  --ui-paper: #F4EFEA;      /* the fill of quiet buttons, panels and captions (washi) */
  --ui-white: #FFFFFF;      /* the fill of a choice that is not chosen, and of a picture's paper */
  --ui-muted: #5E574E;      /* second-rank text, only on paper or white: 6.2 on paper, 7.1 on white */

  /* what a colour means */
  --ui-go: #58CC02;         /* the one button that moves on (Play, Finished, Another picture). Ink on it: 7.7 */
  --ui-go-press: #8BE84A;   /* that button while it is held down */
  --ui-chosen: #FFC928;     /* the chosen option (it also stays pressed down and gets a tick). Ink on it: 10.5 */
  --ui-press: #FFE28A;      /* any other button while it is held down */
  --ui-danger: #E42022;     /* taking something away for good: Remove a player, the bin on a picture opened big, Yes in its question.
                               What stands on it is white (4.6), never ink (3.5) */

  /* the eight grounds a child can pick on "Me", and the second tone each one uses for its two soft patches
     (the same colour 0.04 darker in OKLCH lightness). Text on a ground is always ink.
     Ink on the ground / on its second tone, computed:
     Golden Sun 10.4 / 9.1, Pistachio 10.3 / 9.0, Aqua 10.1 / 8.9, Blue 4.5 / 3.9,
     Lavender 6.9 / 6.0, Candy 4.5 / 3.8, Coral 6.3 / 5.5, Apricot 9.1 / 7.9.
     So on Blue and Candy small text must not sit on the second tone (handover, section 12).
     The child's colour is the ground of every screen except the back office. */
  --ui-ground-golden-sun: #F2CB65;  --ui-ground-golden-sun-2: #E5BE57;
  --ui-ground-pistachio:  #B9D98C;  --ui-ground-pistachio-2:  #ACCC80;
  --ui-ground-aqua:       #8EDBD0;  --ui-ground-aqua-2:       #81CEC3;
  --ui-ground-blue:       #3E8ADD;  --ui-ground-blue-2:       #317ED0;
  --ui-ground-lavender:   #B5A0DC;  --ui-ground-lavender-2:   #A994CF;
  --ui-ground-candy:      #D3618D;  --ui-ground-candy-2:      #C55581;
  --ui-ground-coral:      #E88973;  --ui-ground-coral-2:      #DA7D67;
  --ui-ground-apricot:    #F4B58E;  --ui-ground-apricot-2:    #E6A882;

  /* the ninth ground: the back office (the gate, Settings, "Who is playing?"). Always this colour; no child can pick it.
     Ink on it 6.7, on its second tone 5.8. Its nearest of the eight is Aqua (0.126 apart in OKLab; the two closest of the eight are 0.081 apart). */
  --ui-ground-lagoon:     #49B6C5;  --ui-ground-lagoon-2:     #3AA9B8;

  /* type: one family for everything the app itself says */
  --ui-font: 'Zen Maru Gothic', system-ui, sans-serif;
  --ui-weight-text: 500;    /* small second-rank lines */
  --ui-weight-strong: 700;  /* sentences */
  --ui-weight-title: 900;   /* titles, names, every button label */

  /* shape, at the phone board (880 x 360). The laptop board (1366 x 768) is these x 1.5 on most screens
     (x 1.7 on Home, the game card and My pictures, x 1.6 on the gate): the exact pairs are in draw_look_sizes_v002.md. */
  --ui-border: 3px;         /* laptop 4 (5 on the x 1.6 and x 1.7 screens) */
  --ui-lip: 5px;            /* the hard dark edge under a button or panel. laptop 8 */
  --ui-lip-small: 4px;      /* under the 40 to 46 high buttons. laptop 6 */
  --ui-lip-frame: 6px;      /* under a card or a framed picture. laptop 10 on Home (x 1.7), 9 in the game (x 1.5) */
  --ui-corner-button: 16px; /* square and bar buttons. laptop 24 */
  --ui-corner-small: 12px;  /* small buttons and swatches. laptop 18 */
  --ui-corner-panel: 20px;  /* panels and home cards. laptop 30 (34 on Home) */
  --ui-button: 48px;        /* the square buttons of a top bar. laptop 72 (82 on Home) */

  /* movement */
  --ui-press-time: .09s;    /* a button going down onto its lip, ease-out */
  --ui-slide: .55s cubic-bezier(.2,.9,.25,1);  /* the home cards changing place */
}
