/* ============================================================
   PUENTE — Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0a0f18;
  font-family: 'Share Tech Mono', monospace;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: none;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
}

#gameCanvas {
  display: block;
  cursor: crosshair;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Loading screen */
#loading {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #0d1b2a;
  color: #8899aa;
  font-family: 'Share Tech Mono', monospace;
  font-size: 14px;
  z-index: 100;
  transition: opacity 0.5s ease;
}

#loading.hidden {
  opacity: 0;
  pointer-events: none;
}

#loading .spinner {
  width: 30px;
  height: 30px;
  border: 2px solid #1e3a5f;
  border-top-color: #4ecca3;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
