.reward-meter {
  display: flex;
  align-items: center;
  height: 40px;
  background: #222;
  color: white;
  padding: 0 10px;
  width: 100vw; /* Full viewport width */
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  gap: 10px;
}


.sticky {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}

.points-bar-container {
  flex-grow: 1;
  height: 20px;
  background: #444;
  border: 1px solid white;
  margin-right: 10px;
  position: relative;
}

.points-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to bottom, #fff8b0, #d4af37 50%, #a67c00);
  transition: width 0.3s ease;
  position: absolute;
  top: 0;
  left: 0; /* anchor to left */
  transform-origin: left center; /*  fill from left to right */
}


.coin-display {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-start; /*  aligns content to the left */
}



.coin-display img {
  width: 24px;
  height: 24px;
}


.coin-fallback {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff8c6, #d4af37 60%, #a67c00);
  box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.3),
              inset 2px 2px 4px rgba(255, 255, 255, 0.3);
}

@keyframes coinPop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.5); }
  60%  { transform: scale(0.8); }
  100% { transform: scale(1); }
}

.coin-display img,
.coin-fallback {
  transition: transform 0.3s ease;
}

.coin-pop {
  animation: coinPop 0.4s ease;
}

.flying-coin {
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
  z-index: 9999;
}
