body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #0a3d62, #1e5799, #0a3d62);
  font-family: 'Orbitron', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
}

#gameContainer {
  position: relative;
  box-shadow: 0 0 50px rgba(0, 200, 255, 0.8);
  border-radius: 15px;
  overflow: hidden;
  border: 2px solid rgba(0, 195, 255, 0.3);
}

#gameCanvas {
  background: linear-gradient(to bottom, #0a7cff, #001f3f);
  display: block;
}

#ui {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#scorePanel {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: row;
  gap: 15px;
  opacity: 0.75;
}

#score,
#highScore,
#level {
  font-size: 20px;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 15px;
  border-radius: 20px;
  border: 1px solid rgba(0, 195, 255, 0.5);
}

#powerUpIndicator {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.power-up-icon {
  font-size: 24px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  border: 2px solid #00c3ff;
  animation: pulse 1s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.5);
  }
  100% {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 195, 255, 0.8);
  }
}

#gameOver,
#startScreen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 30, 60, 0.95);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  color: white;
  width: 85%;
  max-width: 450px;
  box-shadow: 0 0 50px rgba(0, 200, 255, 0.9);
  border: 3px solid #00c3ff;
  backdrop-filter: blur(10px);
  animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
  0% {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

#gameOver h2,
#startScreen h1 {
  margin-top: 0;
  color: #00c3ff;
  font-size: 36px;
  text-shadow: 0 0 15px rgba(0, 195, 255, 0.9);
  font-weight: 900;
}

#startScreen p {
  font-size: 18px;
  margin: 20px 0;
  line-height: 1.6;
}

.power-up-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px !important;
  color: #a0d4ff;
}

button {
  background: linear-gradient(45deg, #00c3ff, #0077b6, #00c3ff);
  background-size: 200% 200%;
  border: none;
  padding: 15px 35px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: white;
  font-family: 'Orbitron', sans-serif;
  animation: buttonGlow 2s ease-in-out infinite alternate;
}

@keyframes buttonGlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(0, 195, 255, 0.7);
}

#restartBtn {
  margin-top: 20px;
}

.hidden {
  display: none;
}

#startAnimation {
  font-size: 48px;
  animation: float 2s ease-in-out infinite alternate;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-10px);
  }
}

#newRecord {
  color: #ffd700;
  font-size: 24px;
  font-weight: bold;
  animation: celebrate 1s ease-in-out infinite alternate;
}

@keyframes celebrate {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

#achievements {
  margin: 20px 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  border: 1px solid rgba(0, 195, 255, 0.3);
}

#achievements p {
  margin: 5px 0;
  font-size: 16px;
  color: #a0d4ff;
}
