#gold-rush-game-area {
  font-family: Arial, sans-serif;
  overflow: hidden;
  background: #f0f8ff;
  height: 100vh;
  margin: 0;
  position: relative;
  overflow: hidden;
  -webkit-user-select: none; /* Chrome/Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* Internet Explorer/Edge */
  user-select: none;         /* Standard */
}

#scoreboard,
#timer {
  position: absolute;
  top: 20px;
  font-size: 20px;
  background: #fff;
  padding: 10px 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

#scoreboard {
  left: 20px;
}
#timer {
  right: 20px;
}

.coin {
  position: absolute;
  cursor: pointer;
  animation: float 3s ease-in-out infinite;
  transition: transform 0.2s;
}

.coin:active {
  transform: scale(0.9);
}

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

/* Coin Colors */
.green {
  font-size: 40px;
  color: #28a745;
}
.gold {
  font-size: 34px;
  color: gold;
}
.blue {
  font-size: 28px;
  color: #00bfff;
}

/* Boss coin styles */
.boss-coin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 180px;
  cursor: pointer;
  background: linear-gradient(
    45deg,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sparkle 1s infinite alternate;
  transition: transform 0.1s ease;
  z-index: 1500;
  user-select: none;
}

@keyframes sparkle {
  0% {
    filter: drop-shadow(0 0 5px white);
  }
  100% {
    filter: drop-shadow(0 0 15px white);
  }
}

#boss-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  font-size: 48px;
  font-weight: bold;
  color: red;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  text-shadow: 2px 2px 10px black;
  display: none;
  z-index: 1600;
  user-select: none;
  pointer-events: none;
}

#game-over {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: none;
  z-index: 2000;
}

#game-over h1 {
  margin-bottom: 20px;
}

/* Modal for reward */
#reward-modal {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}


#reward-modal.show {
  visibility: visible;
  opacity: 1;
}

#reward-modal-content {
  background: white;
  padding: 30px 40px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
}

#reward-modal-content button {
  margin-top: 20px;
  font-size: 18px;
  padding: 10px 25px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
#reward-modal-content button:hover {
  background: #218838;
}

.coin-wrapper .value-badge {
  position: relative;
  top: -25px;
  padding: 0px 5px;
  
  width: 20px;
  height: 20px;

  background: #ffc107; /* Bootstrap warning/yellow */
  color: black;
  font-weight: bold;
  font-size: 18px;

  border-radius: 50%;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
  margin-top: 5px;
}

.coin-wrapper .coin {
  animation: none;
  transition: none;
  font-size: 40px;
}
