/* Same body scale in every snapshot; allow horizontal space for unlocked tools. */
body[data-game=defense] .unit-overview{grid-template-columns:148px minmax(0,1fr);gap:9px}
body[data-game=defense] .unit-overview #unitPortrait{width:147px;height:120px;object-fit:contain;max-width:100%}
body[data-game=defense] .unit-info{container-type:inline-size}
@container(max-width:245px){
 body[data-game=defense] .unit-overview{grid-template-columns:minmax(0,1fr);gap:5px}
 body[data-game=defense] .unit-overview #unitPortrait{width:auto;height:96px;justify-self:center}
}
body[data-game=defense] .fusion-appearance-grid{grid-template-columns:.8fr .8fr 1.4fr}
body[data-game=defense] .fusion-appearance-picture{height:auto;aspect-ratio:240/196}
body[data-game=defense] .fusion-appearance canvas{width:100%;height:100%;object-fit:contain}
body[data-game=defense] .teacher-card canvas{width:100%;height:auto;aspect-ratio:240/196;object-fit:contain}
/* Short landscape phones need a readable result, rather than three tiny
   portraits across the narrow inspector. All controls remain scrollable. */
@media(min-width:650px) and (max-height:600px){
 body[data-game=defense][data-field-dock=landscape]:has(#fusion-receipt[open]) .landscape-field-dock{flex:0 0 76px;max-height:76px;overflow-y:auto;overscroll-behavior:contain}
 body[data-game=defense][data-field-dock=landscape] .fusion-receipt-body:has(.fusion-appearance){max-height:none;overflow:visible}
 body[data-game=defense][data-field-dock=landscape] .fusion-appearance-grid{grid-template-columns:1fr 1fr}
 body[data-game=defense][data-field-dock=landscape] .fusion-appearance figure[data-kind=result]{grid-column:1/-1;grid-row:1}
}
