/* Display font — bundled so the game renders the same on every device.
   "Bagel Fat One" is the closest free Google Font match to the original
   "KG Blank Space" reference; on systems that happen to have KG Blank
   Space installed (the dev box) it's still picked up first. The woff2
   is the Latin subset only — covers English game text plus common
   punctuation / currency symbols. Service worker caches it on install. */
@font-face {
  font-family: 'Bagel Fat One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/bagel-fat-one-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a0f2e;
  font-family: "Bagel Fat One", "KG Blank Space", "Comic Sans MS", system-ui, sans-serif;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#renderCanvas {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  touch-action: none;
}

/* Safe-area insets on iOS / Android. The body keeps its background filling
   the full viewport (so the canvas-bg shows under the notch / home
   indicator), and #app is shrunk by the insets so the Babylon GUI canvas
   itself never paints under a notch. The Babylon layer still draws the
   game background; the inset just keeps interactive HUD away from edges. */
body {
  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
}
