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

html, body {
  width: 100%;
  height: 100%;
  background-color: #000000;
  color: #ffffff;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

#canvasContainer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #000000;
}

#splashCanvas {
  display: block;
  background-color: #000000;
  image-rendering: pixelated;
}

/* Modo pantalla nativa 1280x1024 (Pi framebuffer emulation) */
#canvasContainer.aspect-locked #splashCanvas {
  width: min(100vw, calc(100vh * (1280 / 1024)));
  height: min(100vh, calc(100vw * (1024 / 1280)));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
}

/* Minimalist telemetry HUD */
#debugHud {
  position: fixed;
  bottom: 16px;
  left: 20px;
  z-index: 100;
  display: flex;
  gap: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

#debugHud span {
  display: inline-block;
}

#hudPhase {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

/* lil-gui custom theme matching dark aesthetic */
.lil-gui {
  --background-color: #0a0a0a;
  --text-color: #e0e0e0;
  --title-background-color: #121212;
  --widget-color: #181818;
  --hover-color: #242424;
  --focus-color: #333333;
  --number-color: #00e5ff;
  --string-color: #69f0ae;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 11px !important;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  opacity: 0.92;
  transition: opacity 0.2s;
}

.lil-gui:hover {
  opacity: 1;
}
