:root {
  /* Fondos */
  --bg-main: #0A1628;
  --bg-grid: #0F2240;
  --bg-cell-hover: #132D5E;

  /* Líneas y estructura */
  --grid-line: #1E4D8C;
  --structure: #3A7BD5;
  --label: #5B9EF4;

  /* Electricidad */
  --pulse: #FFD93D;
  --glow: #FFF176;
  --spark: #FF8F00;
  --flash: #FFFFFF;

  /* Estados */
  --on: #4CAF50;
  --error: #F44336;
  --off: #78909C;
  --disabled: #B0BEC5;

  /* Acentos */
  --cyan: #00E5FF;
  --magenta: #E040FB;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-main);
  font-family: 'IBM Plex Mono', monospace;
  color: var(--label);
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}

#gameCanvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#ui-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

#ui-overlay > * {
  pointer-events: auto;
}
