/* ═══════════════════════════════════════════════
   BOOSTER BAR
   ═══════════════════════════════════════════════ */

.boosterBar {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
  flex-wrap: wrap;
  padding: 0 8px;
}

/* ── Base Button ── */
.boosterBtn {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  transition: transform 0.12s ease, filter 0.12s ease;

  /* Golden outer border */
  box-shadow:
    0 0 0 3px #8B5E00,
    0 0 0 5px #FFD700,
    0 0 0 7px #8B5E00,
    0 4px 14px rgba(0, 0, 0, 0.5);

  /* Glossy green background */
  background:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.5) 0%,
      rgba(160, 240, 80, 0.25) 28%,
      transparent 50%),
    radial-gradient(ellipse at 30% 75%, rgba(0, 90, 0, 0.5) 0%, transparent 65%),
    linear-gradient(160deg, #6FDB00 0%, #3FA800 45%, #256000 100%);
}

/* Glossy top shine */
.boosterBtn::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 10%;
  right: 10%;
  height: 32%;
  border-radius: 50px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  border-radius: 18px 18px 50% 50%;
}

/* Bottom glow */
.boosterBtn::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 200, 0, 0.55) 0%, transparent 70%);
  filter: blur(3px);
  pointer-events: none;
}

.boosterBtn:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.boosterBtn:active {
  transform: scale(0.93);
  filter: brightness(0.95);
}

/* ── Icon ── */
.boosterBtn .boosterIcon {
  line-height: 1;
  font-size: 26px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
  z-index: 1;
}

/* ── Count badge ── */
.boosterBtn .boosterCount {
  font-size: 10px;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  padding: 1px 6px;
  line-height: 14px;
  min-width: 18px;
  text-align: center;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* ── Active (hammer mode etc) ── */
.boosterBtn.isActive {
  box-shadow:
    0 0 0 3px #8B5E00,
    0 0 0 5px #FFE44D,
    0 0 0 7px #8B5E00,
    0 0 16px rgba(255, 220, 0, 0.7);
  filter: brightness(1.15);
}

/* ── Disabled (count=0) ── */
.boosterBtn:disabled:not(.boosterLocked) {
  opacity: 0.45;
  cursor: default;
  transform: none;
  filter: grayscale(0.4);
}

/* ── LOCKED STATE ── */
.boosterBtn.boosterLocked {
  cursor: default;
  pointer-events: none;
  box-shadow: none;
  border: none;
  padding: 0;
  overflow: hidden;
  width: 52px;
  height: 52px;
  background: #1a1a3e url('../images/boosterLocked.png') center / cover no-repeat !important;
}

.boosterBtn.boosterLocked::before,
.boosterBtn.boosterLocked::after {
  display: none !important;
}

/* ── Hammer cursor ── */
.hammerActive .cell.filled {
  cursor: crosshair;
}