:root {
  --bg-color: #ffffff; /* ← ubah ini untuk warna solid */
  --bg-gradient: linear-gradient(270deg, #0f0c29, #302b63, #24243e); /* ← ubah ini untuk gradient */
  --container-bg: rgba(255, 255, 255, 0);
  --text-color: #ffffffff;
  --canvas-bg: #000000ff;
  --button-bg: #6609b8;
  --button-color: #64ff71c7;
}

body {
  margin: 0;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: sans-serif;
  text-align: center;
  min-height: 100vh;
}

body.bg-gradient {
  background: var(--bg-gradient) !important;
  background-size: 400% 400%;
  animation: gradientShift 10s ease infinite;
  background-attachment: fixed;
  min-height: 100vh;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

h1 {
  animation: pulse 2s infinite;
}

.container {
  background: var(--container-bg);
  border-radius: 12px;
  padding: 20px;
}

h1,
#score,
#highscore {
  color: var(--text-color);
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.6);
  margin-top: 20px;
}

.game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
}

canvas {
  background: var(--canvas-bg);
  border: 2px solid white;
  border-radius: 10px;
  touch-action: manipulation;
  max-width: 100%;
  height: 75%;
}

button {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background: var(--button-bg);
  color: var(--button-color);
  border: none;
  border-radius: 8px;
}

.controls {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
}

.controls button {
  font-size: 24px;
  border-radius: 10px;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

#gameOverMessage {
  font-size: 20px;
  font-weight: bold;
}
