/* Reset + full-viewport layout */
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #001428; /* deep dark blue */
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Reduce browser interference */
  touch-action: none;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent; /* No blue flash on mobile tap */
}

body {
  position: fixed;
  inset: 0;
}

/* Root container: fills entire screen */
#game-root {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

/* Game + UI canvases stacked */
#game-canvas,
#ui-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

#game-canvas {
  z-index: 1;
  outline: none;
  background: #001428; /* deep dark blue */
  touch-action: none;
  -webkit-touch-callout: none;
}

#ui-canvas {
  z-index: 2;
  background: transparent;
  pointer-events: none; /* visual only; events go to game-canvas */
}