/* every screen is one canvas (ui/duel.ts, ui/shop.ts, ui/title.ts). the DOM is only the stage, the title's hidden
   text input and the spoils flight. text is the pixel fonts from art/fonts (python art/fonts/build.py makes the woff2s),
   kept here for any DOM text: sans 11 px line → 22px, tiny 8 → 16px, didone 20 → 40px. never other sizes, never faux bold */

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: #0e0b0a;
  color: #f6ecd2;
  font: 400 22px/26px 'Flambeur Sans', monospace;
  font-synthesis: none;
  -webkit-font-smoothing: none;
  user-select: none;
}

/* the duel, shop and title scenes: one canvas, letterboxed by the renderer */
canvas.stage { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; background: #0e0b0a; z-index: 1; touch-action: manipulation; }

/* title (ui/title.ts): the menus are on the canvas. this input sits invisibly over whichever text box has focus,
   so typing, phone keyboards and password masking work. 16px so ios doesn't zoom in */
.titleinput { position: fixed; z-index: 2; opacity: 0; border: 0; padding: 0; font-size: 16px; pointer-events: none; left: -999px; top: 0; }

/* the spoils pick flying to its owner (ui/spoils.ts), over the stage */
.spoil-flight { position: fixed; inset: 0; width: 100vw; height: 100vh; object-fit: contain; pointer-events: none; image-rendering: pixelated; z-index: 8; }
