/* Reset & base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow: hidden;
  background: #0a0a14;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #e0e0e0;
}

#canvas-container {
  width: 100vw;
  height: 100vh;
  display: block;
}

canvas {
  display: block;
}

/* HUD */
#hud {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 24px;
  pointer-events: none;
  z-index: 10;
  background: linear-gradient(180deg, rgba(10,10,20,0.6) 0%, transparent 100%);
}

#hud-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

#hud-controls {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

#hud-controls span {
  background: rgba(255,255,255,0.08);
  padding: 4px 10px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* Loading */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #0a0a14;
  z-index: 1000;
  transition: opacity 0.5s ease;
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  gap: 20px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: #88ccff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
  #hud {
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
  }

  #hud-title {
    font-size: 18px;
  }

  #hud-controls {
    flex-wrap: wrap;
    gap: 8px;
  }

  #hud-controls span {
    font-size: 11px;
    padding: 3px 8px;
  }
}