/* Cyberpunk styling for Neon Drift */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

body {
  margin: 0;
  padding: 0;
  background-color: #05050d;
  color: #ffffff;
  font-family: 'Orbitron', 'Courier New', monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
}

#game-container {
  position: relative;
  width: 400px;
  height: 600px;
  border: 4px solid #1f1f3d;
  box-shadow: 0 0 20px #00ffff55;
  border-radius: 8px;
  overflow: hidden;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
}

/* Overlays */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 22, 0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
  z-index: 10;
}

/* Typography & Neon Glows */
h1 {
  font-size: 2.5rem;
  margin-bottom: 5px;
  letter-spacing: 2px;
}

.neon-text-blue {
  color: #00ffff;
  text-shadow: 0 0 5px #00ffff, 0 0 15px #00ffff, 0 0 30px #00ffff;
}

.neon-text-pink {
  color: #ff0055;
  text-shadow: 0 0 5px #ff0055, 0 0 15px #ff0055, 0 0 30px #ff0055;
}

.subtitle {
  color: #3d3d7a;
  margin-top: 0;
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.instructions {
  font-size: 0.8rem;
  line-height: 1.6;
  color: #a0a0c0;
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 5px;
  border: 1px solid #1f1f3d;
  width: 80%;
}

.highlight {
  color: #ffff00;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 0 5px #ffff00;
}

/* Buttons */
.neon-btn {
  background: transparent;
  color: #00ffff;
  border: 2px solid #00ffff;
  padding: 12px 30px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px #00ffff;
  box-shadow: 0 0 10px #00ffff22;
  margin-bottom: 20px;
}

.neon-btn:hover {
  background: #00ffff;
  color: #05050d;
  box-shadow: 0 0 20px #00ffff;
  text-shadow: none;
}

.neon-btn.small {
  padding: 8px 15px;
  font-size: 0.8rem;
}

.neon-btn:active {
  transform: scale(0.98);
}

/* Leaderboard Input */
#leaderboard-input-area {
  margin-bottom: 20px;
}

#player-name-input {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #3d3d7a;
  color: #ffffff;
  padding: 8px;
  font-size: 1.2rem;
  font-family: inherit;
  width: 80px;
  text-align: center;
  text-transform: uppercase;
  border-radius: 4px;
  margin-right: 10px;
}

#player-name-input:focus {
  outline: none;
  border-color: #00ffff;
  box-shadow: 0 0 10px #00ffff33;
}

/* Leaderboard Display */
#leaderboard-container {
  width: 80%;
  margin-bottom: 30px;
  border: 1px solid #1f1f3d;
  padding: 15px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 5px;
}

#leaderboard-container h3 {
  margin-top: 0;
  font-size: 0.9rem;
  color: #8080a0;
  letter-spacing: 1px;
  border-bottom: 1px solid #1f1f3d;
  padding-bottom: 5px;
}

#leaderboard-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#leaderboard-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #1f1f3d;
  font-size: 0.9rem;
}

#leaderboard-list li:last-child {
  border-bottom: none;
}
