/* Hunter gadgets: HUD slots, screen flashes, Echo Mic badge (public/js/gadgets.js) */
#gadgetSlots {
  display: flex;
  gap: 8px;
}
.gslot {
  --cd: 0;
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: auto;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.gslot::after {
  /* cooldown sweep */
  content: '';
  position: absolute;
  inset: 0;
  background: conic-gradient(rgba(8, 4, 16, 0.72) calc(var(--cd) * 360deg), transparent 0);
  pointer-events: none;
}
.gslot .gicon {
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.6));
}
.gslot .gname {
  font-size: 9px;
  font-weight: 600;
  opacity: 0.8;
  white-space: nowrap;
  margin-top: 2px;
}
.gslot kbd {
  position: absolute;
  top: 3px;
  left: 2px;
  font-size: 9px;
  padding: 0 4px;
  margin: 0;
}
.gslot .gcd {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  z-index: 2;
  text-shadow: 0 2px 6px #000;
  pointer-events: none;
}
.gslot .gpips {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  gap: 2px;
  z-index: 2;
}
.gslot .gpips i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.gslot .gpips i.on {
  background: #8dff5a;
  box-shadow: 0 0 6px #8dff5a;
}
.gslot.ready[data-g='uv'] {
  border-color: #c08bff;
  box-shadow: 0 0 12px rgba(180, 107, 255, 0.45);
}
.gslot.ready[data-g='mic'] {
  border-color: #6fd8ff;
  box-shadow: 0 0 12px rgba(111, 216, 255, 0.45);
}
.gslot.ready[data-g='grenade'] {
  border-color: #8dff5a;
  box-shadow: 0 0 12px rgba(141, 255, 90, 0.45);
}
.gslot.active {
  transform: translateY(-4px) scale(1.06);
  border-color: #fff;
}
.gslot.active .gcd {
  font-size: 11px;
}
.gslot.empty {
  opacity: 0.45;
}
.gslot.shake {
  animation: gslotShake 0.3s;
}
@keyframes gslotShake {
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

#gadgetFlash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 4;
}
#gadgetFlash.uv {
  background: radial-gradient(ellipse at center, rgba(190, 120, 255, 0.35), rgba(110, 40, 220, 0.25) 60%, rgba(60, 0, 140, 0.4));
  animation: gadgetFlash 0.5s ease-out;
}
#gadgetFlash.mic {
  box-shadow: inset 0 0 120px 20px rgba(111, 216, 255, 0.5);
  animation: gadgetFlash 1.4s ease-out;
}
#gadgetFlash.slime {
  background: radial-gradient(ellipse at center, transparent 45%, rgba(80, 255, 50, 0.55));
  box-shadow: inset 0 0 160px 40px rgba(60, 220, 30, 0.6);
  animation: gadgetFlash 3.5s ease-out;
}
@keyframes gadgetFlash {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

#echoBadge {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(10, 40, 60, 0.8);
  border: 1px solid #6fd8ff;
  color: #bff0ff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  pointer-events: none;
  box-shadow: 0 0 18px rgba(111, 216, 255, 0.5);
  animation: echoPulse 1s ease-in-out infinite;
  z-index: 5;
}
#echoBadge.hidden {
  display: none;
}
@keyframes echoPulse {
  50% { box-shadow: 0 0 4px rgba(111, 216, 255, 0.2); }
}
.noise-arrow.echo-arrow {
  font-size: 30px;
  filter: drop-shadow(0 0 12px #6fd8ff);
}
#bigText.slime {
  color: #8dff5a;
  text-shadow: 0 0 30px rgba(90, 255, 50, 0.9), 0 6px 0 rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
  .gslot {
    width: 50px;
    height: 50px;
  }
  .gslot .gname {
    display: none;
  }
}
