/*
 * SALTWAKE — HUD mounting, pixelated upscale, page letterboxing.
 *
 * All HUD artwork is drawn on the 320x200 canvas in src/game/hud.js.
 * This file only positions and scales that canvas; it draws nothing.
 */

/* Page frame: black fills the letterbox bars around the 16:10 stage. */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

/*
 * The HUD canvas. Sized to the largest 16:10 rectangle that fits the
 * viewport, centred, then nearest-neighbour upscaled from 320x200.
 * A 16:9 or wider viewport gets black side bars; a 4:3 viewport gets
 * black top and bottom bars.
 */
.saltwake-hud {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(100vw, 160vh);
  height: auto;
  aspect-ratio: 16 / 10;
  display: block;
  pointer-events: none;
  user-select: none;
  z-index: 10;
  image-rendering: -moz-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}
