/* Battle list and battlefield layout. */
.battle-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.battle-toolbar h2 { margin: 0; font-size: 22px; }
.battle-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 8px; margin: 14px 0; max-height: 200px; overflow: auto; }
.battle-list button { text-align: left; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; min-height: 56px; }
.battle-list button[aria-pressed="true"] { border: 2px solid #287048; background: #e1f2e6; }
.battle-outcome { min-height: 24px; overflow-wrap: anywhere; font-weight: 600; }
.moba-panel { padding: 0; margin-top: 12px; }
.moba-head h2 { font-size: 20px; overflow-wrap: anywhere; }
.moba-grid { grid-template-columns: minmax(0, 1fr) 250px; }
.moba-map { display: block; aspect-ratio: 920 / 520; width: 100%; height: auto; min-height: 0; }
.moba-field, .moba-side { border: 0; box-shadow: none; border-radius: 0; min-width: 0; }
.moba-side { background: transparent; padding: 0; }
.moba-stat, .divert-control, .unit-stats { border: 0; background: transparent; padding: 8px 0; border-bottom: 1px solid #cdd8d5; }
.moba-stat strong { font-size: 16px; }
.unit-stats p { font-size: 12px; margin: 0; }
.structure-health { text-anchor: middle; fill: #152621; font-size: 13px; font-weight: 800; }
.moba-wave { display: none; }
.dice-field { padding: 28px 0; border-top: 1px solid #cdd8d5; border-bottom: 1px solid #cdd8d5; }
.dice-field h3 { margin-top: 0; font-size: 20px; }
.dice-pair { display: flex; gap: 36px; }
.dice-pair > div { display: grid; gap: 12px; width: 100px; text-align: center; }
.dice-pair strong { display: grid; place-items: center; height: 90px; border: 2px solid #718078; border-radius: 8px; background: white; font-size: 48px; }
.retreat-button { margin-top: 16px; border-color: #b8463d; color: #9c302a; }
@media (max-width: 980px) { .moba-grid { grid-template-columns: 1fr; } .moba-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } }
@media (max-width: 620px) { .battle-toolbar { align-items: start; } .battle-toolbar button { font-size: 13px; } .moba-side { grid-template-columns: 1fr; } .combat-stream ol { grid-template-columns: 1fr; } }
