/* Pokemon legend: show only gamepad/joystick overlays in mobile/tablet screen mode.
   Normal game menus and action buttons are intentionally unaffected. */
@media (max-width: 1024px), (pointer: coarse) and (max-width: 1366px) {
  .ow-touch {display: block; pointer-events: none; position: absolute; inset: 0;}
  .room-pad {display: flex;}
}
@media (min-width: 1367px), (min-width: 1025px) and (pointer: fine) {
  .ow-touch, .room-pad, body.mob.play #tc {display: none !important; pointer-events: none !important;}
  body.mob .stage-wrap #stage, body.mob #stage {
    width: min(92vw,177.778vh - 195.556px,1100px);
    margin: 12px;
  }
  body.mob #stage canvas {
    box-shadow: 0 0 0 4px #0b1020, 0 0 0 8px #e8eef9, 0 0 0 12px #0b1020;
  }
  body.mob.play #rot {display: none !important;}
}
