/* Ported from app/lib/shell/wo.dart and shared/ui/purrnap_ui.dart.
   Fonts: small WOFF2 cuts of Roboto built by web/tools/fonts.py (70 KB instead of 650 KB of TTF).
   Colours, radii, border widths and shadow recipes are the app's own. */
@font-face { font-family: 'Roboto'; src: url('../fonts/roboto-var.woff2') format('woff2'); font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('../fonts/roboto-black.woff2') format('woff2'); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  /* player colours: fixed, never themed */
  --me: rgb(70, 214, 255);
  --op: rgb(255, 92, 138);
  --p3: rgb(182, 255, 60);
  --p4: rgb(255, 194, 51);

  --white: #fff;
  --soft: rgb(176, 180, 190);
  --faint: rgb(120, 123, 132);
  --ink: rgb(16, 16, 20);
  --bad: rgb(255, 84, 84);
  --good: rgb(70, 220, 130);
  --coin: rgb(255, 194, 51);
  --pill-face: rgb(238, 238, 238);
  --dark-face: rgb(34, 34, 38);

  --backdrop: #050506;
  --slab: #070707;
  --panel-top: #111112;
  --panel-bottom: #0b0b0b;
  --hairline: rgba(255, 255, 255, 0.22);        /* 0x38 */
  --hairline-selected: rgba(255, 255, 255, 0.5); /* 0x80 */
  --field: #050506;
  --field-line: rgba(255, 255, 255, 0.31);      /* 0x50 */
  --ghost-fill: rgba(255, 255, 255, 0.08);
  --ghost-fill-press: rgba(255, 255, 255, 0.14);
  --ghost-line: rgba(255, 255, 255, 0.22);
  --gloss: rgba(255, 255, 255, 0.35);           /* 0x59 */

  --panel-radius: 26px;
  --tile-radius: 18px;
  --pill-lip: 3.5px;
  --slab-depth: 6px;

  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --rail-left: 232px;
  --rail-right: 340px;
}

/* Languages Roboto doesn't cover: Roboto still draws Latin letters and digits, and each script falls back to the
   platform's own font for it (no web-font download: CJK fonts are megabytes). */
html:lang(ja) { --font: 'Roboto', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', 'Meiryo', 'Noto Sans JP', system-ui, sans-serif; }
html:lang(ko) { --font: 'Roboto', 'Apple SD Gothic Neo', 'Malgun Gothic', 'Noto Sans KR', system-ui, sans-serif; }
html:lang(zh-Hans) { --font: 'Roboto', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif; }
html:lang(zh-Hant) { --font: 'Roboto', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans TC', system-ui, sans-serif; }
html:lang(th) { --font: 'Roboto', 'Thonburi', 'Leelawadee UI', 'Noto Sans Thai', system-ui, sans-serif; }
html:lang(ar) { --font: 'Roboto', 'Geeza Pro', 'Segoe UI', 'Noto Sans Arabic', Tahoma, system-ui, sans-serif; }
/* Tall scripts (Thai marks above and below the line, Arabic) need more room between lines of a big heading than the
   tight English setting gives; CJK a little. */
html:lang(th) h1, html:lang(th) h2, html:lang(ar) h1, html:lang(ar) h2 { line-height: 1.3; }
html:lang(ja) h1, html:lang(ko) h1, html:lang(zh-Hans) h1, html:lang(zh-Hant) h1 { line-height: 1.15; }
