/*
 * arcade-kit.css — shared base for the built-in canvas games
 * (built-in-games mobile overhaul plan §3).
 *
 * The game iframe is the whole play surface: no scroll, no page zoom, no
 * pull-to-refresh, no text selection, no tap highlight. The stage canvas
 * the kit creates fills it.
 */

@font-face {
  font-family: 'Press Start 2P';
  src: url('./press-start-2p.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  /* Block: the kit delays its first frame on this font, so swap would
     flash a fallback anyway; block keeps the metrics of the first paint. */
  font-display: block;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

/* position:fixed pins the body against iOS URL-bar resize jank inside the
   iframe; overscroll-behavior + touch-action kill pull-to-refresh and page
   pinch so every gesture reaches the game. */
body {
  position: fixed;
  inset: 0;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

canvas.kit-stage {
  display: block;
  width: 100%;
  height: 100%;
}
