/* v2.91: clearer battle ownership and correctly staged feedback.
   Intentionally no glow/blur is added to player-side highlighting. */

/* Player commander portrait: thin muted brass edge only. */
.battle-screen-v271 .fighter.player-side-v291 > .portrait-wrap,
.battle-screen-v271.battle-visual-upgraded .fighter.player-side-v291 .fighter-visual-slot > .portrait-wrap {
  border-color: rgba(166, 127, 66, .92) !important;
  outline: 2px solid rgba(104, 76, 35, .72);
  outline-offset: 1px;
}

/* Player revealed battle card. */
.battle-screen-v271 .battle-card-reveal > article.revealed-card.player-side-v291 {
  border-color: rgba(166, 127, 66, .94) !important;
  outline: 2px solid rgba(104, 76, 35, .68);
  outline-offset: 1px;
}

/* The compact commander strip shown around the battle UI uses the same language. */
.battle-screen-v271 .battle-commander-v278.player-side-v291 {
  border-color: rgba(166, 127, 66, .82) !important;
  outline: 1.5px solid rgba(104, 76, 35, .48);
  outline-offset: 0;
}

/* Skill-result messages belong to the actor, not the target receiving damage.
   Keep them above the damage number so both remain readable if both sides hit. */
.battle-screen-v271 .battle-skill-feedback-v291 {
  top: 26px;
}

.battle-screen-v271 .battle-skill-feedback-v291.left {
  right: 10px;
}

.battle-screen-v271 .battle-skill-feedback-v291.right {
  left: 10px;
}

/* The siege-line number is animated by the same data-count mechanism as troop loss.
   Keep its inline number aligned with the surrounding label. */
.battle-screen-v271 .siege-hold-rule > b > span {
  display: inline;
  font: inherit;
  color: inherit;
}

@media (max-width: 760px) {
  .battle-screen-v271 .battle-skill-feedback-v291 {
    top: 20px;
  }

  .battle-screen-v271 .battle-skill-feedback-v291.left {
    right: 5px;
  }

  .battle-screen-v271 .battle-skill-feedback-v291.right {
    left: 5px;
  }
}
