*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: #4A1520;
}

#container {
  width: 100vw;
  height: 100vh;
  position: relative;
}

#container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* HUD overlay — position fixed, layered above the canvas */
#hud {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.hud-top-left {
  position: fixed;
  top: 16px;
  left: 16px;
  pointer-events: none;
  z-index: 11;
}

.hud-top-right {
  position: fixed;
  top: 16px;
  right: 16px;
  pointer-events: none;
  z-index: 11;
}

.hud-bottom-center {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 11;
}

.hud-center {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 11;
}

/* Debug FPS counter */
#fps-counter {
  position: fixed;
  top: 8px;
  right: 8px;
  color: #F5F0EB;
  background: rgba(44, 44, 44, 0.6);
  font-family: monospace;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
  z-index: 100;
  display: none;
}
