/* Only the existing fighter selection panels. Keep canvas size stable in short landscapes. */
#menu .fighter-panel>canvas{object-fit:fill;min-width:0;min-height:0}
@media(max-height:520px) and (orientation:landscape){
 #menu .fighter-panel{grid-template-rows:minmax(82px,1fr) auto;overflow:visible}
 #menu .fighter-info{padding:0 2px 3px}
 #menu .fighter-info h2{font-size:20px!important;line-height:1;margin:2px 0}
 #menu .fighter-info .player-badge{font-size:8px;letter-spacing:1px}
 #menu .fighter-info .team-step{display:none}
 #menu .fighter-info .team-second-name{font-size:12px;margin:2px 0}
 #menu .selection-bio-trigger{min-height:30px;padding:3px 8px;margin:2px 0;font-size:11px}
 #menu .fighter-info .stats{margin-top:2px!important}
 #menu .fighter-info .stat{font-size:7px}
}

/* Desktop roster: larger cards and head-and-shoulder crops, above the name strip.
   The touch roster keeps its existing layout and portrait framing. */
@media (min-width:1151px), (hover:hover) and (pointer:fine) and (min-width:801px) {
 #menu.combined-select {grid-template-columns:minmax(0,1fr) minmax(300px,1.95fr) minmax(0,1fr)}
 #menu #roster {max-width:840px;max-height:min(480px,100%)}
 #menu #roster .portrait-tile:not(.fighter-advertisement)>img.bio-face-art {
  width:100%;height:calc(100% - 20px);object-fit:cover;object-position:center top;
 }
}
