/* Viren Krieg: every visual token, the one source of every colour, font and radius in the client and the mockups (design/_shared/tokens.css imports this file). One look, no themes (Word Krieg’s journal 001, entry 05). Phaser reads them computed, through js/identity/tokens.js (specs/visual_identity.md). */
@import url("fonts.css");

:root {
  /* Type: Inter covers Latin with Spanish and Dutch letters, and Cyrillic; the board’s face is Podkova 700, from the studio’s export, over the same alphabets, and Noto Serif Armenian 700 over Armenian; the UI’s Armenian is Noto Sans Armenian’s. */
  --font-ui: "Inter", "Noto Sans Armenian", system-ui, sans-serif;
  --font-board: "Podkova", "Noto Serif Armenian", "Inter", serif;
  /* The type scale (Word Krieg’s journal 031): each UI size is its base times --type-scale, which js/identity/a11y.js sets on the root from the system's text size, between 1 and 2 (Q6); the home's title keeps its size */
  --type-scale: 1;
  --font-size-base-xs: 11px;
  --font-size-base-s: 13px;
  --font-size-base-m: 15px;
  --font-size-base-l: 18px;
  --font-size-base-xl: 26px;
  --font-size-xs: calc(var(--font-size-base-xs) * var(--type-scale));
  --font-size-s: calc(var(--font-size-base-s) * var(--type-scale));
  --font-size-m: calc(var(--font-size-base-m) * var(--type-scale));
  --font-size-l: calc(var(--font-size-base-l) * var(--type-scale));
  --font-size-xl: calc(var(--font-size-base-xl) * var(--type-scale));
  /* The title over the home's scene, VIREN, the mark, KRIEG (Word Krieg’s journal 017, entry 06) */
  --font-size-title: 34px;
  /* The UI's weights, by name; Bold Text takes each a step heavier (Word Krieg’s journal 031), the board's face is 700 already */
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Surfaces */
  --color-page: #0b0d14;
  --color-bg: #12151f;
  --color-surface: #1a1f2d;
  --color-surface-raised: #242a3c;
  --color-surface-bright: #3a4462;
  --color-line: #2c3347;
  --color-text: #e8ecf5;
  --color-text-muted: #8b93a8;
  /* Text on a colour, the primary's Amber Lip and every other coloured Lip or stone: dark (the take, The frames; journal 006) */
  --color-text-on-colour: #17110b;

  /* The seats (journal 002, Q37): Blue, Green, Amber and Violet */
  --color-blue: #3d8bff;
  --color-blue-soft: rgba(61, 139, 255, 0.16);
  --color-green: #3ccf7a;
  --color-green-soft: rgba(60, 207, 122, 0.16);
  --color-amber: #ffb02e;
  --color-violet: #a77bff;
  /* The accent, the colour the UI acts and chooses in: Amber (the take, The frames; journal 006). The lit primary's halo, the rings of a chosen option, field and flag, and the links read it; a seat's own uses stay its colour */
  --color-accent: var(--color-amber);
  /* The board's cell, a colour the studio drew on (the export's tokens.values); the board lays the export's pieces alone (journal 005) */
  --color-cell: #2a2f3d;

  /* The tiles: the grey and the hidden stone's, two of the colours the studio drew on (the export's tokens.values); the grey the setup's small board lays its cells in, its corners in the seats' colours (journal 009) */
  --color-tile-grey: #4a5064;
  --color-tile-hidden: #1a1f2d;

  /* States */
  --color-danger: #d94a4a;
  --color-scrim: rgba(5, 7, 12, 0.6);
  --color-clock-low: #ffb648;
  --color-disabled-text: #5b6378;
  /* Increase Contrast (Word Krieg’s journal 031): the muted text at 7:1 or more on every surface, the disabled at 4.5:1, the lines at 3:1 on the page and its surfaces */
  --color-text-muted-contrast: #b6bdce;
  --color-disabled-text-contrast: #8b93a8;
  --color-line-contrast: #6b7590;
  /* Reduce Transparency (Word Krieg’s journal 031): the scrim opaque */
  --color-scrim-solid: rgba(5, 7, 12, 1);
  /* The shade under an icon (Word Krieg’s journal 017, entry 04) */
  --color-icon-shade: #090c1a;

  /* The light on the lit buttons, primary and accept: a quarter of their colour for the halo, the accent's for the band sweeping across (Word Krieg’s journal 021; journal 006) */
  --color-light-primary: color-mix(in srgb, var(--color-accent) 25%, transparent);
  --color-light-accept: color-mix(in srgb, var(--color-green) 25%, transparent);
  --color-light-sweep: color-mix(in srgb, var(--color-accent) 12%, transparent);
  /* The pill's glass's sheen, a soft light over every glass: the text's at 22% (Word Krieg’s journal 023) */
  --color-glass-sheen: color-mix(in srgb, var(--color-text) 22%, transparent);
  /* The accent's rings' halo, a chosen card's and the chosen flag's: a quarter of the accent (Word Krieg’s journal 021, entry 02; journal 006) */
  --color-light-ring: color-mix(in srgb, var(--color-accent) 25%, transparent);
  /* Sizes: a menu screen's column, the phone's, and wider than a phone a little wider, centred (Word Krieg’s journal 006) */
  --size-column: 430px;
  --size-column-wide: 480px;
  /* The table (Word Krieg’s journal 007): the panel under the board keeps three rows of words in view; a landscape region lower than the column needs is a phone held sideways */
  --size-panel-min: 140px;
  --size-table-min-height: 600px;
  /* How to play (journal 011): a lesson's board, the mockup's width; the home's loop at most as wide, shrinking with the space's height, and left out where the space is shorter than its least */
  --size-lesson-board: 200px;
  --size-home-loop: 200px;
  --size-home-loop-min: 120px;
  /* The replay's slider (journal 012): its track filled to the step shown, which js/playtest/replay_parts.js sets on the slider; the end until then */
  --size-replay-at: 100%;
  /* The lit buttons' halo: its blur at its faintest, at its strongest, and held with reduced motion (Word Krieg’s journal 021) */
  --size-light-rest: 3px;
  --size-light-peak: 7px;
  --size-light-still: 5px;
  /* The panel raised or lowered on a phone (Word Krieg’s journal 018): the whole way, lowered to raised, easing out; a settle takes the share left */
  --duration-panel: 240ms;
  --ease-panel: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Motion: a sheet’s slide, the match menu’s drop and their scrims’ fade, in and out (Word Krieg’s journal 007, entry 02) */
  --duration-sheet: 200ms;

  /* Radii: the UI around the stones is soft */
  --radius-control: 10px;
  --radius-pill: 999px;
  --radius-device: 36px;
  /* The website's phone: its screen's corners inside the bezel (Word Krieg’s journal 020) */
  --radius-device-screen: 26px;
  --radius-window: 12px;
  /* The iPhone the iOS mockups are shown in: its Dynamic Island and its status bar’s and home indicator’s marks (Word Krieg’s journal 030) */
  --radius-device-island: 20px;
  --color-device-island: #000000;
  --color-device-mark: #ffffff;
  /* The stones' corner on what stays flat: cut three art pixels in steps of one, at two CSS pixels an art pixel (Word Krieg’s journal 017, entries 05 and 06, Q16) */
  --shape-cut: polygon(0 6px, 2px 6px, 2px 4px, 4px 4px, 4px 2px, 6px 2px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 2px, calc(100% - 4px) 2px, calc(100% - 4px) 4px, calc(100% - 2px) 4px, calc(100% - 2px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 2px) calc(100% - 6px), calc(100% - 2px) calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) calc(100% - 2px), calc(100% - 6px) calc(100% - 2px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 2px), 4px calc(100% - 2px), 4px calc(100% - 4px), 2px calc(100% - 4px), 2px calc(100% - 6px), 0 calc(100% - 6px));
  /* The accent's ring, one art pixel wide, on the stepped outline of the pill's glass and of the sunk holder: a polygon with its hole, over a layer an art pixel larger than the control on every side (Word Krieg’s journal 017, entry 04, Q17) */
  --shape-ring-glass: polygon(evenodd, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 2px, calc(100% - 6px) 2px, calc(100% - 6px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 6px, calc(100% - 2px) 6px, calc(100% - 2px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 2px) calc(100% - 8px), calc(100% - 2px) calc(100% - 6px), calc(100% - 4px) calc(100% - 6px), calc(100% - 4px) calc(100% - 4px), calc(100% - 6px) calc(100% - 4px), calc(100% - 6px) calc(100% - 2px), calc(100% - 8px) calc(100% - 2px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 2px), 6px calc(100% - 2px), 6px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 6px), 2px calc(100% - 6px), 2px calc(100% - 8px), 0 calc(100% - 8px), 0 8px, 2px 8px, 2px 6px, 4px 6px, 4px 4px, 6px 4px, 6px 2px, 8px 2px, 8px 0, 8px 2px, calc(100% - 8px) 2px, calc(100% - 8px) 4px, calc(100% - 6px) 4px, calc(100% - 6px) 6px, calc(100% - 4px) 6px, calc(100% - 4px) 8px, calc(100% - 2px) 8px, calc(100% - 2px) calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) calc(100% - 2px), 8px calc(100% - 2px), 8px calc(100% - 4px), 6px calc(100% - 4px), 6px calc(100% - 6px), 4px calc(100% - 6px), 4px calc(100% - 8px), 2px calc(100% - 8px), 2px 8px, 4px 8px, 4px 6px, 6px 6px, 6px 4px, 8px 4px, 8px 2px);
  --shape-ring-holder: polygon(evenodd, 10px 0, calc(100% - 10px) 0, calc(100% - 10px) 2px, calc(100% - 8px) 2px, calc(100% - 8px) 4px, calc(100% - 6px) 4px, calc(100% - 6px) 6px, calc(100% - 4px) 6px, calc(100% - 4px) 8px, calc(100% - 2px) 8px, calc(100% - 2px) 10px, 100% 10px, 100% calc(100% - 10px), calc(100% - 2px) calc(100% - 10px), calc(100% - 2px) calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) calc(100% - 2px), calc(100% - 10px) calc(100% - 2px), calc(100% - 10px) 100%, 10px 100%, 10px calc(100% - 2px), 8px calc(100% - 2px), 8px calc(100% - 4px), 6px calc(100% - 4px), 6px calc(100% - 6px), 4px calc(100% - 6px), 4px calc(100% - 8px), 2px calc(100% - 8px), 2px calc(100% - 10px), 0 calc(100% - 10px), 0 10px, 2px 10px, 2px 8px, 4px 8px, 4px 6px, 6px 6px, 6px 4px, 8px 4px, 8px 2px, 10px 2px, 10px 0, 10px 2px, calc(100% - 10px) 2px, calc(100% - 10px) 4px, calc(100% - 8px) 4px, calc(100% - 8px) 6px, calc(100% - 6px) 6px, calc(100% - 6px) 8px, calc(100% - 4px) 8px, calc(100% - 4px) 10px, calc(100% - 2px) 10px, calc(100% - 2px) calc(100% - 10px), calc(100% - 4px) calc(100% - 10px), calc(100% - 4px) calc(100% - 8px), calc(100% - 6px) calc(100% - 8px), calc(100% - 6px) calc(100% - 6px), calc(100% - 8px) calc(100% - 6px), calc(100% - 8px) calc(100% - 4px), calc(100% - 10px) calc(100% - 4px), calc(100% - 10px) calc(100% - 2px), 10px calc(100% - 2px), 10px calc(100% - 4px), 8px calc(100% - 4px), 8px calc(100% - 6px), 6px calc(100% - 6px), 6px calc(100% - 8px), 4px calc(100% - 8px), 4px calc(100% - 10px), 2px calc(100% - 10px), 2px 10px, 4px 10px, 4px 8px, 6px 8px, 6px 6px, 8px 6px, 8px 4px, 10px 4px, 10px 2px);
  --shape-cut-holder: polygon(10px 0, calc(100% - 10px) 0, calc(100% - 10px) 2px, calc(100% - 8px) 2px, calc(100% - 8px) 4px, calc(100% - 6px) 4px, calc(100% - 6px) 6px, calc(100% - 4px) 6px, calc(100% - 4px) 8px, calc(100% - 2px) 8px, calc(100% - 2px) 10px, 100% 10px, 100% calc(100% - 10px), calc(100% - 2px) calc(100% - 10px), calc(100% - 2px) calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 6px), calc(100% - 6px) calc(100% - 6px), calc(100% - 6px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) calc(100% - 2px), calc(100% - 10px) calc(100% - 2px), calc(100% - 10px) 100%, 10px 100%, 10px calc(100% - 2px), 8px calc(100% - 2px), 8px calc(100% - 4px), 6px calc(100% - 4px), 6px calc(100% - 6px), 4px calc(100% - 6px), 4px calc(100% - 8px), 2px calc(100% - 8px), 2px calc(100% - 10px), 0 calc(100% - 10px), 0 10px, 2px 10px, 2px 8px, 4px 8px, 4px 6px, 6px 6px, 6px 4px, 8px 4px, 8px 2px, 10px 2px);

  /* Shadows and textures */
  --shadow-drop: 0 12px 40px rgba(0, 0, 0, 0.55);
  --shadow-device: 0 30px 80px rgba(0, 0, 0, 0.6);
  --mask-fade-top: linear-gradient(to bottom, transparent 0, #000 28px);
  --mask-fade-bottom: linear-gradient(to top, transparent 0, #000 28px);
  /* The backdrop behind every screen, the studio's liquid's first frame (art.title.liquid) as one background layer, set here by js/identity/pieces.js; none until then (journal 006, Q2) */
  --art-backdrop: none;
  /* The bed: below the liquid and the backdrop, and under the setup's small board's cells; the take's, the export's colours.bed, set here at boot by js/identity/pieces.js; the page's colour until then and on a page without scripts (journal 006) */
  --color-bed: var(--color-page);
  /* Test mode (Word Krieg’s journal 015, Q10): the test tab is Darwin's, not the game's, so it takes Darwin's panel's look: white, its ink and line, its blue while bound, the system font */
  --color-test-surface: #ffffff;
  --color-test-line: #d9d9e0;
  --color-test-ink: #1c2024;
  --color-test-bound: #0090ff;
  --font-test: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius-test-tab: 10px;
  --shadow-test-tab: 0 6px 16px rgba(0, 0, 0, 0.5);
  /* The Lips and the pill: the studio’s nine-slices, cut at boot and set here by js/identity/pieces.js; none until then (Word Krieg’s journal 017, entry 04) */
  --frame-button-primary: none;
  --frame-button-primary-pressed: none;
  --frame-button-primary-disabled: none;
  --frame-button-secondary: none;
  --frame-button-secondary-pressed: none;
  --frame-button-secondary-disabled: none;
  --frame-button-quiet: none;
  --frame-button-quiet-pressed: none;
  --frame-button-quiet-disabled: none;
  --frame-button-danger: none;
  --frame-button-danger-pressed: none;
  --frame-button-danger-disabled: none;
  --frame-button-accept: none;
  --frame-button-accept-pressed: none;
  --frame-button-accept-disabled: none;
  --frame-pill-holder: none;
  --frame-pill-glass: none;
  /* The match menu’s slab, a nine-slice set by js/identity/pieces.js as the Lips are (Word Krieg’s journal 017, entry 05) */
  --frame-menu: none;
  /* The sheets’ slab: the menu’s turned over, rising from the screen’s foot, set by js/identity/pieces.js from `frame.menu` cut upside down (Word Krieg’s journal 017, entry 10) */
  --frame-sheet: none;
  /* The studio’s art the stylesheets lay, set at boot by js/identity/pieces.js: the chat’s thin stones, nine-slices, as their border-image; none until then (Word Krieg’s journal 017, entry 05) */
  --art-panel-stone-amber: none;
  --art-panel-stone-violet: none;
  --art-panel-stone-blue: none;
  --art-panel-stone-green: none;
  /* The winner’s battlement along the end sheet’s top, in each seat’s colour, a background layer repeated across, a merlon centred; set at boot by js/identity/pieces.js (journal 007) */
  --art-end-battlement-amber: none;
  --art-end-battlement-violet: none;
  --art-end-battlement-blue: none;
  --art-end-battlement-green: none;
}

/* The variants the system asks for (Word Krieg’s journal 031; js/identity/a11y.js sets their classes on the root, the catalogue on a frame): one look, not themes (Word Krieg’s journal 001, entry 05).
   Increase Contrast: the muted and disabled text and the lines at the contrast set's colours. Reduce Transparency: the scrim opaque (the glass solid, css/shell.css). Bold Text: each weight a step heavier */
.a11y-contrast { --color-text-muted: var(--color-text-muted-contrast); --color-disabled-text: var(--color-disabled-text-contrast); --color-line: var(--color-line-contrast); }
.a11y-clear { --color-scrim: var(--color-scrim-solid); }
.a11y-bold { --font-weight-light: 400; --font-weight-regular: 600; --font-weight-medium: 600; --font-weight-semibold: 700; }
