/* Active campaign fights use the same readable depth progression as the 5x5 duel.
   The ten animated sprite elements, server HP and touch targets stay in the DOM. */
html.survival-portrait body .game .survival-v2-ui.v2-pve-squad:not(.v2-pve-result) :is(.v2-fighter,.v2-enemy-unit) :is(.v2-sprite,.v2-enemy-sprite) {
  filter: brightness(1.08) contrast(1.08) saturate(1.08) drop-shadow(0 2px 3px #080b0dcc);
}

html.survival-portrait body .game .survival-v2-ui.v2-pve-squad:not(.v2-pve-result) :is(.v2-fighter,.v2-enemy-unit):nth-child(1) :is(.v2-sprite,.v2-enemy-sprite) {
  width: 90px;
  height: 90px;
  top: -16px;
}
html.survival-portrait body .game .survival-v2-ui.v2-pve-squad:not(.v2-pve-result) :is(.v2-fighter,.v2-enemy-unit):nth-child(2) :is(.v2-sprite,.v2-enemy-sprite) {
  width: 98px;
  height: 98px;
  top: -24px;
}
html.survival-portrait body .game .survival-v2-ui.v2-pve-squad:not(.v2-pve-result) :is(.v2-fighter,.v2-enemy-unit):nth-child(3) :is(.v2-sprite,.v2-enemy-sprite) {
  width: 105px;
  height: 105px;
  top: -31px;
}
html.survival-portrait body .game .survival-v2-ui.v2-pve-squad:not(.v2-pve-result) :is(.v2-fighter,.v2-enemy-unit):nth-child(4) :is(.v2-sprite,.v2-enemy-sprite) {
  width: 114px;
  height: 114px;
  top: -40px;
}
html.survival-portrait body .game .survival-v2-ui.v2-pve-squad:not(.v2-pve-result) :is(.v2-fighter,.v2-enemy-unit):nth-child(5) :is(.v2-sprite,.v2-enemy-sprite) {
  width: 122px;
  height: 122px;
  top: -48px;
}

/* Health remains above each fighter while the art grows upward from the same feet. */
html.survival-portrait body .game .survival-v2-ui.v2-pve-squad:not(.v2-pve-result) :is(.v2-fighter,.v2-enemy-unit):nth-child(1) :is(.v2-fighter-copy,.v2-enemy-copy) { top: -15px; }
html.survival-portrait body .game .survival-v2-ui.v2-pve-squad:not(.v2-pve-result) :is(.v2-fighter,.v2-enemy-unit):nth-child(2) :is(.v2-fighter-copy,.v2-enemy-copy) { top: -23px; }
html.survival-portrait body .game .survival-v2-ui.v2-pve-squad:not(.v2-pve-result) :is(.v2-fighter,.v2-enemy-unit):nth-child(3) :is(.v2-fighter-copy,.v2-enemy-copy) { top: -30px; }
html.survival-portrait body .game .survival-v2-ui.v2-pve-squad:not(.v2-pve-result) :is(.v2-fighter,.v2-enemy-unit):nth-child(4) :is(.v2-fighter-copy,.v2-enemy-copy) { top: -39px; }
html.survival-portrait body .game .survival-v2-ui.v2-pve-squad:not(.v2-pve-result) :is(.v2-fighter,.v2-enemy-unit):nth-child(5) :is(.v2-fighter-copy,.v2-enemy-copy) { top: -47px; }

@media (max-width: 350px) {
  html.survival-portrait body .game .survival-v2-ui.v2-pve-squad:not(.v2-pve-result) :is(.v2-fighter,.v2-enemy-unit):nth-child(4) :is(.v2-sprite,.v2-enemy-sprite) { width: 106px; height: 106px; top: -32px; }
  html.survival-portrait body .game .survival-v2-ui.v2-pve-squad:not(.v2-pve-result) :is(.v2-fighter,.v2-enemy-unit):nth-child(5) :is(.v2-sprite,.v2-enemy-sprite) { width: 112px; height: 112px; top: -38px; }
}

/* Each fighter exposes the server's available skills in its own row. */
html.survival-portrait body .game .survival-v2-ui.v2-pvp:not(.v2-pvp-terminal) .v2-pvp-focus {
  width: 29% !important;
}
html.survival-portrait body .game .survival-v2-ui.v2-pvp:not(.v2-pvp-terminal) .v2-pvp-actions {
  left: 32% !important;
  right: 5px !important;
  width: auto;
  overflow-x: auto;
}
html.survival-portrait body .game .survival-v2-ui.v2-pvp:not(.v2-pvp-terminal) .v2-pvp-actions .v2-pvp-action[data-pet-id].is-focused-skill {
  flex: 1 0 32%;
  width: auto !important;
  min-width: 0;
  padding: 2px 4px 2px 32px !important;
  align-items: center;
  justify-content: center;
}
html.survival-portrait body .game .survival-v2-ui.v2-pvp:not(.v2-pvp-terminal) .v2-pvp-actions .v2-pvp-action[data-pet-id].is-focused-skill::before {
  top: calc(50% - 12px) !important;
  left: 6px !important;
  width: 24px !important;
  height: 24px !important;
}
html.survival-portrait body .game .survival-v2-ui.v2-pvp:not(.v2-pvp-terminal) .v2-pvp-actions .v2-action-copy b {display:none}
html.survival-portrait body .game .survival-v2-ui.v2-pvp:not(.v2-pvp-terminal) .v2-pvp-actions .v2-action-copy small {
  white-space: normal;
  font-size: 11px;
  text-align: center;
}
