/* Keep the complete command group inside the battle frame, without horizontal
   scrolling. Give it a stable dedicated row, so changing counters cannot
   move the battlefield while the player is aiming or issuing orders. */
.battle-statusbar { min-width:0; }
.battle-statusbar-actions { position:relative; min-width:0; }
.battle-statusbar-actions .battle-share-feedback {
  position:absolute; right:0; bottom:calc(100% + 3px); z-index:4;
  max-width:min(20rem,100%); padding:0; pointer-events:none;
  background:#10213a; color:#d9fcf5; border-radius:3px;
}
.battle-statusbar-actions .battle-share-feedback:empty { display:none; }
.battle-statusbar-actions button {
  min-width:0; overflow-wrap:anywhere; word-break:normal; line-height:1.2;
}
@media (min-width:521px) {
  .battle-statusbar { flex-wrap:wrap; overflow:visible; }
  .battle-statusbar-actions {
    flex:1 0 100%; width:100%; max-width:100%; margin:0;
    justify-content:flex-end; gap:6px;
  }
  .battle-statusbar-actions button { flex:0 1 auto; }
  .battle-npc-indicator { max-width:100%; min-width:0; }
  .battle-npc-indicator>span { min-width:0; overflow:hidden; }
  .battle-npc-indicator small,.battle-npc-indicator b { overflow:hidden; text-overflow:ellipsis; }
}
@media (max-width:520px) {
  .battle-turn { grid-column:1/-1; grid-row:1; }
  .battle-statusbar-actions { grid-column:1/-1; grid-row:2; width:100%; }
  .battle-statusbar-actions button { flex:1 1 0; font-size:9px; padding:5px 2px; }
}
/* Long siege captions and large accessibility text must fit their own row. */
.battle-siege-status { min-width:0; max-width:100%; flex-wrap:wrap; }
.battle-siege-status > * { min-width:0; overflow-wrap:anywhere; }
