/* The library owns phone fullscreen. Sheep owns only its own stage and controls. */
@media (any-pointer: coarse) {
 html.ar-sheep-expanded:has(body[data-mobile-game152="sheep"]) #ar-shepherds-sheep#ar-shepherds-sheep :is(.ss-fullscreen,.ss-gameplay-fullscreen,.ss-gameplay-exit){display:none!important}
}
@media (orientation: landscape) and (any-pointer: coarse) and (max-height: 640px) {
 /* Keep the original 5:3 art and hit geometry. Spend the viewport on the game,
    not on decorative duplicate scenery, stacked chrome or empty sky. */
 html.ar-sheep-expanded #ar-shepherds-sheep#ar-shepherds-sheep.ss-expanded.ss-compact.ss-scene-shell:not(.ss-gameplay-only,.ss-cinematic-ending) {
  padding:0!important;background:#21382a!important;
 }
 html.ar-sheep-expanded #ar-shepherds-sheep#ar-shepherds-sheep.ss-expanded.ss-compact.ss-scene-shell:not(.ss-gameplay-only,.ss-cinematic-ending) > .ss-body {
  padding:0!important;margin:0!important;overflow:hidden!important;
 }
 html.ar-sheep-expanded #ar-shepherds-sheep#ar-shepherds-sheep.ss-expanded.ss-compact.ss-scene-shell:not(.ss-gameplay-only,.ss-cinematic-ending) .ss-stage {
  border:0!important;border-radius:0!important;box-shadow:none!important;
  background:radial-gradient(ellipse at 50% 35%,#344f3b,#1c2f22 85%)!important;
 }
 html.ar-sheep-expanded #ar-shepherds-sheep#ar-shepherds-sheep.ss-expanded.ss-compact.ss-scene-shell:not(.ss-gameplay-only,.ss-cinematic-ending) .ss-scene-backdrop{display:none!important}
 html.ar-sheep-expanded #ar-shepherds-sheep#ar-shepherds-sheep.ss-expanded.ss-compact.ss-scene-shell:not(.ss-gameplay-only,.ss-cinematic-ending) .ss-canvas {
  top:0;bottom:calc(var(--ss-trail-dock-height,44px) + 46px);
  height:calc(100% - var(--ss-trail-dock-height,44px) - 46px);
 }
 html.ar-sheep-expanded #ar-shepherds-sheep#ar-shepherds-sheep.ss-expanded.ss-compact.ss-scene-shell:not(.ss-gameplay-only,.ss-cinematic-ending) .ss-stage>.ss-controls {
  top:auto;bottom:var(--ss-trail-dock-height,44px);min-height:44px;height:44px;flex-wrap:nowrap!important;
 }
 html.ar-sheep-expanded #ar-shepherds-sheep#ar-shepherds-sheep.ss-expanded.ss-compact.ss-scene-shell:not(.ss-gameplay-only,.ss-cinematic-ending) .ss-stage>.ss-controls>button {
  min-height:44px;height:44px;
 }
 html.ar-sheep-expanded #ar-shepherds-sheep#ar-shepherds-sheep.ss-expanded.ss-compact.ss-scene-shell:not(.ss-gameplay-only,.ss-cinematic-ending) .ss-stage>.ss-hud {
  top:max(4px,calc(var(--ss-paint-top,0px) + 4px)); 
 }
 html.ar-sheep-expanded #ar-shepherds-sheep#ar-shepherds-sheep.ss-expanded.ss-compact.ss-scene-shell:not(.ss-gameplay-only,.ss-cinematic-ending) .ss-trail-dock{
  padding-inline:max(6px,env(safe-area-inset-left,0px)) max(6px,env(safe-area-inset-right,0px));
 }
 html.ar-sheep-expanded #ar-shepherds-sheep#ar-shepherds-sheep.ss-expanded.ss-compact.ss-scene-shell:not(.ss-gameplay-only,.ss-cinematic-ending) .ss-trail-dock summary{
  min-height:42px;padding:9px 12px;font-size:13px;
 }
 html.ar-sheep-expanded #ar-shepherds-sheep#ar-shepherds-sheep.ss-expanded.ss-compact.ss-scene-shell:not(.ss-gameplay-only,.ss-cinematic-ending) .ss-game-border {--ss-rim:3px!important}
}
