html, body {
  margin: 0;
  height: 100%;
  background: #07060c;
  overflow: hidden;
  font-family: 'Press Start 2P', 'Courier New', monospace;
  color: #e8e8f0;
  overscroll-behavior: none;
}

#wrap {
  position: fixed;
  inset: 0;
  background: #07060c;
}

/* El canvas ocupa toda la ventana; main.js escala y centra el juego (1024x576 lógicos)
   y rellena los márgenes con el fondo de la planta. */
#game {
  position: absolute;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #07060c;
  outline: none;
  cursor: crosshair;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#debug {
  position: fixed;
  left: 0;
  bottom: 0;
  max-width: 100vw;
  padding: 4px 6px;
  font: 10px/1.4 'Courier New', monospace;
  color: #9f9;
  background: rgba(0, 0, 0, 0.7);
  border-top: 1px solid rgba(120, 255, 120, 0.25);
  border-right: 1px solid rgba(120, 255, 120, 0.25);
  white-space: pre-wrap;
  word-break: break-all;
  pointer-events: none;
}
