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

html, body {
  width: 100%;
  height: 100%;
  background: #060a14;
  color: #f4f8ff;
  font-family: "Courier New", Consolas, monospace;
  overflow: hidden;
  user-select: none;
}

#app {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #04070e;
}

#viewport {
  position: relative;
  width: min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  border: 3px solid #dce8ff;
  box-shadow: 0 0 0 4px #000000;
  background: #000000;
  overflow: hidden;
}

#game-canvas,
#ui-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#game-canvas {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  z-index: 1;
}

#ui-canvas {
  z-index: 2;
}

#ui-canvas.hidden {
  display: none;
  pointer-events: none;
}
