/* One icon per button. The clear overlay desaturates only the uncharged sector. */
#powerBar { gap: 7px; align-items: center; translate: 0 -10px; }
#powerBar .ability-slot:is(button,#powerOne) {
  --size: clamp(56px, 5.4vw, 64px);
  display: grid;
  position: relative;
  box-sizing: border-box;
  flex: none;
  width: var(--size);
  height: var(--size);
  min-width: var(--size);
  min-height: var(--size);
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  border-radius: 12px;
  background: #111d26;
  box-shadow: 0 2px 6px #07142080;
  opacity: 1;
  filter: none;
  animation: none;
}
#powerBar .ability-slot:is(button,#powerOne)::before,
#powerBar .ability-slot:is(button,#powerOne)::after { content: none; }
#powerBar .ability-slot > .ability-image,
#powerBar .ability-slot > .ability-color {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ability-color {
  pointer-events: none;
  backdrop-filter: grayscale(1) brightness(.72);
  mask-image: conic-gradient(transparent 0 var(--fill, 0%), #000 var(--fill, 0%) 100%);
}
/* Power 1 only: strip = kit bonus recharge (white on black, legible over any icon). Full and glowing means the next strike grants the bonus. */
#powerBar .ability-slot > .ability-kit {
  position: absolute;
  z-index: 1;
  left: 5px;
  right: 5px;
  bottom: 4px;
  height: 7px;
  overflow: hidden;
  border-radius: 3px;
  background: #05090e;
  box-shadow: 0 0 0 1.5px #05090e;
  pointer-events: none;
}
.ability-kit > i {
  display: block;
  width: var(--kit, 100%);
  height: 100%;
  background: #6f7b88;
}
.ability-kit[data-kit="ready"] { box-shadow: 0 0 0 1.5px #05090e, 0 0 8px 2px #7df9ff; }
.ability-kit[data-kit="ready"] > i { background: #f4ffff; }
#powerBar .ability-slot:focus-visible { outline: 3px solid white; outline-offset: 3px; }
#powerBar .ability-slot:active { transform: translateY(1px); }
@media (pointer: coarse) {
  #powerBar { grid-template-columns: repeat(2, 60px); gap: 6px; }
  #powerBar .ability-slot:is(button,#powerOne) { --size: 60px; }
}
@media (min-width: 1000px) and (min-height: 600px) and (pointer: fine) {
  #powerBar { bottom: 34px; }
}
