/* GAM-27: the fight fills the whole screen. The arena is 640 wide in drawing units and takes the height left over. */
#overlay:has(> .panel.fight) { padding: 0; align-items: stretch; overflow: hidden; }
.panel.fight { width: min(720px, 100%); height: 100%; margin: 0 auto; border-radius: 0; gap: 6px; padding: 8px 10px; overflow: hidden; }
.panel.fight .fight-bars { gap: 8px; }
.panel.fight .bar { height: 22px; }
.panel.fight .bar-text { font-size: 13px; }
.panel.fight .fight-bars.allies { font-size: 12px; }
.panel.fight .arena { flex: 1 1 0; min-height: 0; width: 100%; height: auto; background: #1d1d23; }
/* GAM-30: nothing below may change height while the fight plays or ends; only the arena flexes, and it
   follows the window. Every row has a fixed height, the result line is reserved from the start. */
.panel.fight > .row { flex: none; height: 44px; box-sizing: border-box; align-items: center; flex-wrap: nowrap; overflow: hidden; }
.panel.fight > h2 { font-size: 18px; text-align: center; flex: none; height: 24px; line-height: 24px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.panel.fight > h2.pending { visibility: hidden; }
.panel.fight .fighter b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
