/* Fonts in one place for the DOM (client/js/fonts.js has the same stacks for canvas text; docs/fonts.md).
   Text, the HUD and the windows are M PLUS Rounded 1c (SIL OFL, client/fonts/OFL-MPLUSRounded1c.txt), served from
   client/fonts/ (tools/fonts/build-text-font.py): --font for body text and values (Medium, Bold for 600+), --head for window
   titles, speaker names, menu sub-labels and window buttons (Bold, drawn 1.3x so a size written for Press Start 2P reads
   as big). Press Start 2P (--pixel) stays for badges, key caps, banners and the boss bar, with Jersey 10's digits (SIL OFL,
   client/fonts/OFL-Jersey10.txt) made tabular for it by tools/fonts/build-num-font.py: Press Start's 8 turns into a '&'
   below 8 px. Both text faces keep a 1.2 em line like the old Pixelify Sans, so rows keep their heights. Every face is
   served from client/fonts/ (licenses: client/fonts/LICENSE.md); only Press Start 2P and the logo's Lilita One come from
   Google Fonts. */
@font-face { font-family: "MD Text"; src: url(fonts/md-text.woff2) format("woff2"); font-weight: 100 549; font-display: block;
  ascent-override: 96%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "MD Text"; src: url(fonts/md-text-bold.woff2) format("woff2"); font-weight: 550 900; font-display: block;
  ascent-override: 96%; descent-override: 24%; line-gap-override: 0%; }
/* titles: the overrides scale with size-adjust (78 + 22 = 100 % of 1.3 em: a 1.3 em line) */
@font-face { font-family: "MD Head"; src: url(fonts/md-text-bold.woff2) format("woff2"); font-weight: 100 900; font-display: block;
  size-adjust: 130%; ascent-override: 78%; descent-override: 22%; line-gap-override: 0%; }
/* canvas pixel-art text only (client/js/fonts.js PIXEL_TEXT_STACK): Pixelify Sans, variable 400-700 */
@font-face { font-family: "MD Pixel Text"; src: url(fonts/md-pixel-text.woff2) format("woff2"); font-weight: 400 700; font-display: block; }
@font-face { font-family: "MD Num"; src: url(fonts/md-num.woff2) format("woff2"); unicode-range: U+0030-0039; font-weight: 100 900; font-display: block; }
@font-face { font-family: "MD Num Pixel"; src: url(fonts/md-num-pixel.woff2) format("woff2"); unicode-range: U+0030-0039; font-weight: 100 900; font-display: block; }
:root {
  --font: "MD Text", ui-rounded, "Segoe UI", system-ui, sans-serif;     /* UI text, the HUD, menus */
  --head: "MD Head", var(--font);                                       /* window titles, names, sub-labels, window buttons */
  --pixel: "MD Num Pixel", "Press Start 2P", ui-monospace, monospace;  /* badges, key caps, banners */
  --num: var(--font);                                                  /* values: HP, PP, prices, counts */
}
/* A value (HP 74/74, 1,250 P, x3): the numeral stack, tabular, never broken over two lines. */
.num { font-family: var(--num); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* ...with a dark rim where it sits on the map or on an icon */
.num-o { text-shadow: -1px 0 #000, 1px 0 #000, 0 -1px #000, 0 1px #000, 0 2px 0 #000; }
