/* Barra dos 4 golpes do Pokémon ativo (separada do hud.css para a thread de combate poder mexer sem conflito). */
/* ---------- barra de golpes */
.skillbar { position: relative; background: var(--hud-bg); border: 1px solid var(--hud-line); border-radius: 12px; padding: 4px 6px 6px; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.sb-title { font-size: 11px; color: var(--muted); text-align: center; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-slots { display: grid; grid-template-columns: repeat(4, var(--slot)); gap: 6px; }
.sb-slot { appearance: none; margin: 0; font: inherit; box-sizing: border-box; position: relative; width: var(--slot); height: 58px; border-radius: 9px; overflow: hidden; cursor: help;
  border: 2px solid rgba(0,0,0,.45); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), inset 0 -14px 18px rgba(0,0,0,.35);
  display: flex; align-items: flex-end; justify-content: center; padding: 0 4px 5px; color: #111; }
.sb-slot:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.sb-slot.empty { background: rgba(255,255,255,.05); color: var(--muted); cursor: default; }
.sb-slot.t-ghost, .sb-slot.t-dragon, .sb-slot.t-dark { color: #fff; }
.sb-name { position: relative; z-index: 2; font-size: 11.5px; font-weight: 800; text-align: center; line-height: 1.1; text-shadow: 0 1px 0 rgba(255,255,255,.35); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sb-slot.t-ghost .sb-name, .sb-slot.t-dragon .sb-name, .sb-slot.t-dark .sb-name { text-shadow: 0 1px 0 rgba(0,0,0,.5); }
.sb-key { position: absolute; left: 4px; top: 2px; z-index: 2; font-size: 10px; font-weight: 700; opacity: .65; }
.sb-shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: conic-gradient(rgba(5, 8, 12, .72) calc(var(--cd, 0) * 360deg), transparent 0); }
.sb-slot.cooling .sb-shade { opacity: 1; }
.sb-cd { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; font-size: 17px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 #000, 0 0 4px #000; padding-bottom: 12px; pointer-events: none; }
.sb-slot.preparing { border-color: #fff; box-shadow: 0 0 0 2px var(--accent), 0 0 14px rgba(242,193,78,.8), inset 0 0 0 1px rgba(255,255,255,.4); animation: sb-pulse .5s ease-in-out infinite alternate; }
@keyframes sb-pulse { from { filter: brightness(1); } to { filter: brightness(1.3); } }
.sb-slot.unsupported { filter: grayscale(1) brightness(.7); }
.sb-slot.unsupported::after { content: '⊘'; position: absolute; right: 4px; top: 1px; z-index: 2; font-size: 12px; color: #fff; }
.sb-tip { position: absolute; bottom: calc(100% + 8px); left: 0; width: max-content; max-width: min(280px, calc(100vw - 12px)); display: none; z-index: 5;
  background: rgba(10, 14, 19, .96); border: 1px solid var(--hud-line); border-radius: 8px; padding: 7px 9px; font-size: 12px; line-height: 1.4; color: var(--text); pointer-events: none; }
.sb-tip.show { display: grid; gap: 2px; }
.sb-tip-head { display: flex; gap: 6px; align-items: center; justify-content: space-between; }

/* Dano e recarga em cada slot */
.sb-slot { height: 72px; }
.sb-info { position: absolute; left: 3px; right: 3px; bottom: 3px; z-index: 2; display: flex; justify-content: space-between; gap: 2px;
  font-size: 10px; font-weight: 800; line-height: 1; pointer-events: none; }
.sb-info span { background: rgba(8, 12, 18, .72); color: #f4f7fa; border-radius: 4px; padding: 2px 4px; white-space: nowrap; }
.sb-cdv { color: #9fd2ff !important; }
.sb-slot .sb-name { margin-bottom: 14px; }
.sb-tags { position: absolute; right: 3px; top: 3px; z-index: 2; display: flex; gap: 2px; pointer-events: none; }
.sb-tags span { font-size: 9px; font-weight: 900; border-radius: 4px; padding: 1px 3px; line-height: 1.1; }
.sb-stab { background: #f2c14e; color: #1a1408; }
.sb-eff.up { background: #2f9e44; color: #fff; }
.sb-eff.down { background: #c2410c; color: #fff; }
.sb-eff.zero { background: #3b3f46; color: #ff8a8a; }
@media (max-width: 720px) {
  .sb-slot { height: 64px; }
  .sb-name { font-size: 10.5px; }
  .sb-info { font-size: 9px; }
}

/* ---------- equipe na Hunt solo: barras menores dos 2 que lutam junto com o da frente (SkillBars) */
.skillbars { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; }
.skillbar[hidden], .sb-allies[hidden] { display: none !important; }
.sb-allies { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.skillbar.compact { --slot: 54px; padding: 2px 5px 5px; border-radius: 10px; }
.skillbar.compact .sb-title { font-size: 10px; margin-bottom: 2px; }
.skillbar.compact .sb-slots { gap: 4px; }
.skillbar.compact .sb-slot { height: 42px; border-radius: 7px; padding: 0 2px 2px; }
.skillbar.compact .sb-name { font-size: 9.5px; line-height: 1.05; margin-bottom: 12px; }
.skillbar.compact .sb-key { font-size: 8.5px; left: 3px; top: 1px; }
.skillbar.compact .sb-tags, .skillbar.compact .sb-dmg { display: none; }
.skillbar.compact .sb-info { left: 2px; right: 2px; bottom: 2px; font-size: 8.5px; justify-content: center; }
.skillbar.compact .sb-info span { padding: 1px 3px; }
.skillbar.compact .sb-cd { font-size: 13px; padding-bottom: 10px; }
.skillbar.compact .sb-slot.preparing { box-shadow: 0 0 0 2px var(--accent), 0 0 8px rgba(242,193,78,.7), inset 0 0 0 1px rgba(255,255,255,.4); }
/* tela estreita: as duas menores lado a lado, embaixo da do da frente */
@media (max-width: 720px) {
  .skillbars { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .sb-allies { flex-direction: row; gap: 4px; }
  .sb-allies .skillbar.compact { flex: 1 1 0; min-width: 0; }
  .skillbar.compact .sb-slots { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
  .skillbar.compact .sb-slot { width: 100%; height: 34px; }
  .skillbar.compact .sb-name { font-size: 8.5px; margin-bottom: 10px; -webkit-line-clamp: 1; }
  .skillbar.compact .sb-info { font-size: 8px; }
}
/* Hard: até 5 lutando junto com o da frente; com mais de 2, as menores ficam em grade (2 colunas; 3 na tela estreita) */
.sb-allies.many { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 6px; }
.sb-allies.many .skillbar.compact { --slot: 46px; }
.sb-allies.many .skillbar.compact .sb-slot { height: 36px; }
@media (max-width: 720px) {
  .sb-allies.many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
