@font-face {
  font-family: 'Cambay';
  src: url('fonts/Cambay-Regular.ttf') format('truetype');
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

/* on a wide screen the canvas is 9:16, so the sides are dressed with the
   same grass texture instead of being left as black bars */
body {
  background: #0d1a0d url('images/gras.png') repeat;
  background-size: 48px 48px;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 0;
}

#stage { position: fixed; inset: 0; z-index: 1; }

#game {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 720px;
  height: 1280px;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
  display: block;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
}

#loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b0f0a;
  color: #00be3b;
  font-family: 'Cambay', system-ui, sans-serif;
  font-size: 38px;
  letter-spacing: 8px;
  z-index: 10;
}
