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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.game-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 26, 0.2);
  padding: 12px 20px;
  z-index: 10;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

h1 {
  margin: 0;
  font-size: 28px;
  color: #00f0c2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.menu-group {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: #e6fff9;
}
.controls,
.game-header,
.game-footer {
  display: none;
}

.game-header h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
  color: #00d4aa;
  font-weight: 700;
}

.game-info {
  display: flex;
  justify-content: space-around;
  margin-bottom: 15px;
  font-size: 1.2em;
}

.game-info span {
  background: #404040;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid #555;
  color: #00d4aa;
  font-weight: 600;
}

.controls {
  margin-bottom: 20px;
}

.controls p {
  margin: 5px 0;
  font-size: 0.9em;
  opacity: 0.8;
}

#gameCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: rgba(0, 0, 0, 0.1);
}

#gameCanvas canvas {
  display: block;
}

.game-footer {
  display: flex;
  justify-content: center;
  gap: 15px;
}

button {
  background: #00d4aa;
  color: #1a1a1a;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 212, 170, 0.3);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  background: linear-gradient(45deg, #45a049, #4caf50);
}

button:active {
  transform: translateY(0);
}

#pauseBtn {
  background: linear-gradient(45deg, #ff9800, #f57c00);
}

#pauseBtn:hover {
  background: linear-gradient(45deg, #f57c00, #ff9800);
}

#resetBtn {
  background: linear-gradient(45deg, #f44336, #d32f2f);
}

#resetBtn:hover {
  background: #ff6b6b;
}

.game-over-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.game-over-content {
  background: #2d2d2d;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  border: 1px solid #404040;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.game-over-content h2 {
  color: #ff6b6b;
  font-size: 2em;
  margin-bottom: 20px;
}

.game-over-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.play-prompt {
  margin-top: 20px;
  padding: 15px;
  background: rgba(0, 212, 170, 0.1);
  border: 2px solid #00d4aa;
  border-radius: 8px;
  text-align: center;
}

.play-prompt p {
  margin: 0;
  color: #00d4aa;
  font-size: 18px;
  font-weight: bold;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.paused-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.paused-content {
  background: rgba(30, 39, 46, 0.95);
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  border: 2px solid #00d4aa;
  backdrop-filter: blur(10px);
}

.paused-content h2 {
  color: #00d4aa;
  font-size: 3em;
  margin: 0 0 20px 0;
  text-shadow: 0 0 20px rgba(0, 212, 170, 0.5);
}

.paused-content p {
  color: #e0e0e0;
  font-size: 1.2em;
  margin: 0;
}

.floating-score {
  position: absolute;
  color: #00d4aa;
  font-size: 24px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 212, 170, 0.8);
  pointer-events: none;
  z-index: 1000;
  animation: floatAndMove 2s ease-out forwards;
}

@keyframes floatAndMove {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  25% {
    opacity: 1;
    transform: translateY(-30px) scale(1.2);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-50px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-80px) scale(0.8);
  }
}

.score-update {
  animation: scoreGlow 0.5s ease-out;
}

@keyframes scoreGlow {
  0% {
    transform: scale(1);
    color: #e0e0e0;
  }
  50% {
    transform: scale(1.1);
    color: #00d4aa;
    text-shadow: 0 0 15px rgba(0, 212, 170, 0.8);
  }
  100% {
    transform: scale(1);
    color: #e0e0e0;
    text-shadow: none;
  }
}

.hidden {
  display: none !important;
}
