/* Remove legacy decorative frames, retaining the single royal outer frame. */
#game #battlefield::before,#game #battlefield::after,
#game .turn-actions .gametop::before,#game .turn-actions .gametop::after{content:none;display:none;border:0;box-shadow:none}
#game .mini-stats>span{border:0;border-radius:0;background:none;box-shadow:none;outline:0}
#game .turn-actions .gametop,#game .turn-actions .turn-heading,#game .turn-actions #turnInfo,
#game .turn-actions .stat-time{border:0;border-radius:0;background:none;box-shadow:none;outline:0}
#game .turn-actions .turn-heading{min-width:0;flex:0 1 auto}
#game .turn-actions .gametop{flex-wrap:nowrap}
#game .turn-actions #turnInfo{margin-top:0}
@media(max-width:480px){
 #game .mini-stats{justify-content:flex-start;column-gap:4px;row-gap:4px}
 #game .mini-stats>span:nth-child(2){margin-left:3px}
 #game .mini-stats>span{padding:0;flex:0 0 auto}
 #game .commander-identity{gap:4px}
 #game .turn-actions .gametop{column-gap:6px;row-gap:2px;flex-wrap:wrap}
 #game .turn-actions .turn-heading{min-width:0;flex:0 1 auto}
}

/* Keep portraits inside the realm frame and give fortress health more room. */
#game .area-head{padding:10px 34px 10px 10px}
#game .commander-portrait{width:64px;height:64px;flex-basis:64px;margin:0}
#game .commander-identity{gap:12px}
#game .commander-copy{max-width:none}
#game .mini-stats{column-gap:14px;row-gap:6px;flex-wrap:wrap}
#game .mini-stats>span{flex:0 0 auto}
#game .mini-stats>span:first-child{flex:0 0 auto;min-width:max-content}
#game .mini-stats>span:nth-child(2){margin-left:0}
#game .health-track{width:124px;min-width:80px;max-width:150px;height:12px;flex:none;margin:0 3px 0 5px}
@media(max-width:720px){
 #game .commander-portrait{width:54px;height:54px;flex-basis:54px}
 #game .commander-identity{gap:10px}
 #game .mini-stats{column-gap:10px}
 #game .health-track{width:100px;min-width:74px;height:11px;flex:none}
}
@media(max-width:480px){
 #game .area-head{padding:8px 24px 8px 8px}
 #game .commander-portrait{width:44px;height:44px;flex-basis:44px}
 #game .commander-identity{gap:8px}
 #game .mini-stats{flex-wrap:wrap;justify-content:flex-start;column-gap:12px}
 #game .mini-stats>span:first-child{flex:1 0 100%}
 #game .health-track{width:auto;min-width:64px;max-width:none;height:10px;flex:1 1 auto}
}
/* Wider desktop battlefield with square cells and matching command panels. */
@media(min-width:901px){
 #game{max-width:780px;--tile:clamp(96px,7.5vw,116px)}
 #game #battlefield,#game .battle-actions,#game .turn-actions{max-width:calc(var(--tile) * 6 + 10px);width:100%}
}