/* The battle screen: styles that belong to js/battleview.js. */

/* Health is always an upright bar, full from the bottom. Morale is a level bar (.lbar.mo in game.css). */
.vbar { position: relative; display: block; width: 10px; min-height: 28px; border-radius: 5px; background: rgba(0, 0, 0, .2); overflow: hidden; align-self: stretch; }
.vbar i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--n, 100%); border-radius: 5px; background: var(--c, #3f9a52); transition: height .2s linear; }
/* an army in the panel beside the battle: its health stands down the left edge in the army's colour */
.larmy.up { grid-template-columns: 14px 1fr; column-gap: 10px; align-items: stretch; border-left: 0; padding-left: 8px; }
.larmy.up .vbar { width: 14px; border-radius: 7px; } .larmy.up .vbar i { border-radius: 7px; }
.larmy .lbody { display: grid; gap: 3px; align-content: start; min-width: 0; }
.larmy .lbody .lbar { height: 8px; }
/* one of the player's regiments in the panel */
.lrow.up { grid-template-columns: 30px 7px 1fr; }
.lrow.up .vbar { width: 7px; min-height: 30px; }
/* a regiment in the list before the battle: its strength stands at the right edge */
.bt-unit.up { padding: 4px 22px 4px 4px; }
.bt-unit.up .vbar { position: absolute; right: 7px; top: 6px; bottom: 6px; width: 7px; min-height: 0; }
