/* ==========================================================================
   ARCHIVO: css/base.css
   DESCRIPCION: Reglas base, tipografia pixelada y esqueleto de layout.

   INDICE:
   1. Reset y configuracion global (box-sizing, html, body)
   2. Elementos genericos y utilidades (button, .is-hidden)
   3. Contenedor principal de pantalla (#game-shell)
   ========================================================================== */

/* 1. Reset y configuracion global (box-sizing, html, body)
   Asegura un calculo predecible de cajas, evita scroll accidental y fuerza
   nitidez de bordes/pixeles en todo el documento. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Courier New", Courier, monospace;
  background: #111318;
  color: #f5f5f5;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* 2. Elementos genericos y utilidades (button, .is-hidden)
   Estilo base neutro para botones y clase auxiliar para ocultar elementos. */
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
}

.is-hidden {
  display: none;
}

/* 3. Contenedor principal de pantalla (#game-shell)
   Ocupa todo el alto disponible de la pantalla y reparte en 3 filas:
   fila 1 (auto) = barra superior, fila 2 (1fr) = escenario, fila 3 (auto) = barra inferior. */
#game-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
}
