/* style.css */

html, body {
  height: 100%;
  overflow: hidden; /* Prevent scrolling on mobile */
  position: fixed; /* Prevent bounce effect on iOS */
  width: 100%;
}

body {
  margin: 0;
  display: flex;

  /* This centers our sketch horizontally. */
  justify-content: center;

  /* This centers our sketch vertically. */
  align-items: center;

  background-color: #0f380f;

  /* Prevent text selection on touch */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;

  /* Prevent tap highlight on mobile */
  -webkit-tap-highlight-color: transparent;
}

canvas {
  touch-action: none; /* Disable default touch actions */
  max-width: 100vw;
  max-height: 100vh;
  object-fit: contain;
  image-rendering: pixelated; /* Keep retro look when scaled */
  image-rendering: crisp-edges;
}