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

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

#game-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1a1a2e;
}

#ui-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10;
  text-align: center;
}

#ui-overlay h1 {
  color: #00d4ff;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

#stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

#stats span {
  color: #00d4ff;
  font-weight: bold;
}

#controls-hint {
  font-size: 0.85rem;
  color: #aaa;
}

#game-canvas {
  border: 2px solid #00d4ff;
  background: #0f0f1e;
  display: block;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #1a1a2e;
  border: 2px solid #00d4ff;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  min-width: 300px;
}

.modal-content h2 {
  color: #00d4ff;
  margin-bottom: 1rem;
}

button {
  padding: 0.75rem 1.5rem;
  margin: 0.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
}

.btn-primary {
  background: #00d4ff;
  color: #000;
}

.btn-primary:hover {
  background: #00b8e6;
}

.btn-secondary {
  background: #444;
  color: #e0e0e0;
}

.btn-secondary:hover {
  background: #555;
}

#submit-status {
  margin-top: 1rem;
  min-height: 1.5rem;
  font-size: 0.9rem;
}

#submit-status.success {
  color: #00ff00;
}

#submit-status.error {
  color: #ff0066;
}

