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

body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.game-container {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

h1 {
  margin-bottom: 20px;
  font-size: 2.5em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

#gameCanvas {
  border: 3px solid #ffffff;
  border-radius: 10px;
  background-color: #000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.controls {
  margin: 20px 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}

button {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

#startBtn {
  background: linear-gradient(45deg, #00b894, #00a085);
}

#pauseBtn {
  background: linear-gradient(45deg, #fdcb6e, #e17055);
}

#resetBtn {
  background: linear-gradient(45deg, #e84393, #fd79a8);
}

.score {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  font-size: 1.3em;
  font-weight: bold;
}

.player-score {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive design */
@media (max-width: 900px) {
  .game-container {
    padding: 20px;
    margin: 10px;
  }

  #gameCanvas {
    width: 100%;
    max-width: 800px;
    height: auto;
  }

  h1 {
    font-size: 2em;
  }

  .controls {
    flex-wrap: wrap;
  }

  button {
    font-size: 14px;
    padding: 10px 20px;
  }

  .score {
    flex-direction: column;
    gap: 10px;
  }
}
