/**
 * Base styles - Reset and core layout
 */

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1a1a2e;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#game-container {
  width: calc(100% - 300px);
  height: 100%;
}

canvas {
  display: block;
  touch-action: none;
}

/* UI overlay base */
.ui-overlay {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
}

/* Controls overlay */
#controls-overlay {
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.6);
  padding: 12px 16px;
  border-radius: 8px;
  color: white;
  font-size: 13px;
}

#controls-overlay .keys {
  font-family: monospace;
  margin-bottom: 4px;
}

#controls-overlay .hint {
  color: #888;
  font-size: 11px;
}

/* Connection status */
#connection-status {
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.6);
  padding: 8px 14px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 12px;
}

#connection-status .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fbbf24;
}

#connection-status.connected .dot {
  background: #4ade80;
}

#connection-status.disconnected .dot {
  background: #ef4444;
}

/* Coordinate display */
#coords-display {
  bottom: 20px;
  right: 320px;
  background: rgba(0, 0, 0, 0.7);
  padding: 8px 12px;
  border-radius: 6px;
  color: #4ade80;
  font-family: monospace;
  font-size: 14px;
}

/* Animations */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
