/* ==========================================================================
   V1 GAMEPLAY — CHROME DINO-STYLE MECHA RUNNER
   Vertical full-height layout, mobile-first, zero external dependencies.
   ========================================================================== */

@font-face {
  font-family: 'Geist Pixel';
  src: url('../fonts/GeistPixel-Square.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'GeistPixel-Square';
  src: url('../fonts/GeistPixel-Square.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

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

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #06080f;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
  font-family: 'Geist Pixel', 'GeistPixel-Square', monospace;
}

.game-viewport {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #06080f;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  max-width: min(100vw, calc(100dvh * (270 / 480)));
  aspect-ratio: 270 / 480;
  object-fit: contain;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
}
