* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Orbitron", monospace;
  background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
  color: #ffffff;
  overflow: hidden;
  height: 100vh;
}

#gameContainer {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease;
}

.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Start Screen */
#startScreen {
  background: radial-gradient(ellipse at center, rgba(26, 26, 46, 0.8) 0%, rgba(12, 12, 12, 0.9) 100%);
  backdrop-filter: blur(10px);
}

.title-container {
  text-align: center;
  margin-bottom: 3rem;
}

.game-title {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(45deg, #00d4ff, #ff00ff, #ffff00);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(0, 212, 255, 0.5);
  margin-bottom: 1rem;
}

.game-subtitle {
  font-size: 1.2rem;
  color: #a0a0a0;
  letter-spacing: 2px;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.instructions {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  max-width: 500px;
}

.instructions h3 {
  color: #00d4ff;
  margin-bottom: 1rem;
  text-align: center;
}

.instructions p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.game-button {
  background: linear-gradient(45deg, #00d4ff, #0099cc);
  border: none;
  padding: 1rem 2rem;
  font-family: "Orbitron", monospace;
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
  letter-spacing: 1px;
}

.game-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.5);
  background: linear-gradient(45deg, #00e6ff, #00b3e6);
}

/* Game Screen */
#gameScreen {
  justify-content: flex-start;
  align-items: flex-start;
}

#gameCanvas {
  display: block;
  background: radial-gradient(ellipse at center, #1a1a2e 0%, #0c0c0c 100%);
  width: 100%;
  height: 100%;
}

/* HUD */
#hud {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 15px 25px;
  border-radius: 15px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.hud-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.hud-label {
  font-size: 0.8rem;
  color: #a0a0a0;
  letter-spacing: 1px;
}

.hud-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #00d4ff;
}

.fuel-container {
  flex-direction: row;
  gap: 10px;
}

.fuel-bar {
  width: 100px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.fuel-level {
  height: 100%;
  background: linear-gradient(90deg, #ff4444, #ffaa00, #00ff00);
  transition: width 0.3s ease;
  border-radius: 10px;
}

#controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 25px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  color: #a0a0a0;
}

/* Game Over Screen */
#gameOverScreen {
  background: rgba(12, 12, 12, 0.95);
  backdrop-filter: blur(15px);
}

.game-over-container {
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(0, 212, 255, 0.3);
  backdrop-filter: blur(10px);
}

.game-over-title {
  font-size: 2.5rem;
  font-weight: 900;
  color: #00d4ff;
  margin-bottom: 2rem;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.final-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
  max-width: 400px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #a0a0a0;
  letter-spacing: 1px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #00d4ff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .game-title {
    font-size: 2.5rem;
  }

  .instructions {
    padding: 1.5rem;
    margin: 0 1rem 2rem;
  }

  #hud {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 15px;
  }

  .final-stats {
    grid-template-columns: 1fr;
  }

  .game-over-container {
    margin: 0 1rem;
    padding: 2rem;
  }
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.pulse {
  animation: pulse 1s ease-in-out infinite;
}
