body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: #0b0b0b;
  color: #fff;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  background-color: #111;
  font-size: 18px;
}

.game-container {
  text-align: center;
  margin-top: 20px;
  position: relative;
}

#characterImg {
  width: 200px;
  margin: 10px 0 20px;
}

.hoop {
  width: 120px;
  height: 10px;
  background: red;
  border-radius: 5px;
  margin: 0 auto;
  margin-top: 350px; /* lower hoop */
  position: relative;
}

.hoop::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  width: 60px;
  height: 40px;
  border: 4px solid white;
  border-top: none;
  border-radius: 0 0 30px 30px;
}

#shootButton {
  padding: 10px 20px;
  font-size: 18px;
  background-color: orange;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
}

#result {
  margin-top: 20px;
  font-size: 24px;
}

.ball {
  width: 30px;
  height: 30px;
  background-color: orange;
  border-radius: 50%;
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 1s ease-out;
  opacity: 0;
}

.power-meter {
  position: relative;
  width: 300px;
  height: 30px;
  background-color: #333;
  border-radius: 15px;
  margin: 20px auto;
  overflow: hidden;
}

.green-zone {
  position: absolute;
  left: 40%;
  width: 20%;
  height: 100%;
  background-color: green;
  z-index: 1;
}

.bar {
  position: absolute;
  width: 10%;
  height: 100%;
  background-color: yellow;
  animation: moveBar 1.8s infinite alternate ease-in-out;
  z-index: 2;
  border-radius: 15px;
}

@keyframes moveBar {
  0% { left: 0%; }
  100% { left: 90%; }
}

#shop {
  margin-top: 30px;
}

#shop h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.shop-item {
  margin: 5px;
  padding: 10px 15px;
  font-size: 16px;
  background-color: #444;
  color: white;
  border: 2px solid limegreen;
  border-radius: 8px;
  cursor: pointer;
}
