body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to bottom, #000000, #1a1a1a);
  color: #f1f1f1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
  min-height: 100vh;
}

h1 {
  font-size: 2.5rem;
  color: #ffdd57;
  margin-bottom: 10px;
}

p {
  font-size: 1.1rem;
  max-width: 600px;
  text-align: center;
  margin-bottom: 10px;
}

.game-panel {
  background-color: #222;
  border-radius: 12px;
  padding: 30px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 15px rgba(255, 255, 0, 0.2);
}

.stat, .control {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

input[type=range] {
  width: 100%;
  accent-color: #ffdd57;
}

#status {
  margin-top: 10px;
  font-size: 1.2rem;
  color: lightgreen;
}

#restartBtn {
  margin-top: 10px;
  padding: 10px 20px;
  background: #ffdd57;
  color: black;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
#restartBtn:hover {
  background: #e0c64f;
}

#rocky {
  font-size: 1.3rem;
  margin-top: 5px;
  color: #90ee90;
}

canvas {
  margin-top: 20px;
  background: white;
  border-radius: 10px;
}
.sound-toggle {
  margin-top: 10px;
  font-size: 0.95rem;
}
#rocky {
  font-size: 1.4rem;
  margin-top: 5px;
  color: #90ee90;
  animation: float 2s infinite ease-in-out;
}

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

