/* Embedded phone landscape uses a wide native world, not a scaled desktop box.
   The controls and disclosures sit on the scenery, without reserving rows. */
html #ar-shepherds-sheep#ar-shepherds-sheep.ss-phone-landscape.ss-scene-shell:not(.ss-gameplay-only,.ss-cinematic-ending) {
 --phone-left:max(8px,env(safe-area-inset-left,0px));
 --phone-right:max(8px,env(safe-area-inset-right,0px));
 --phone-bottom:max(7px,env(safe-area-inset-bottom,0px));
 --phone-top:max(9px,env(safe-area-inset-top,0px));
}
html #ar-shepherds-sheep#ar-shepherds-sheep.ss-phone-landscape.ss-scene-shell:not(.ss-gameplay-only,.ss-cinematic-ending) .ss-canvas{
 inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;border:0!important;border-radius:0!important;
}
html #ar-shepherds-sheep#ar-shepherds-sheep.ss-phone-landscape.ss-scene-shell:not(.ss-gameplay-only,.ss-cinematic-ending) .ss-stage>.ss-controls{
 left:auto!important;right:var(--phone-right)!important;bottom:var(--phone-bottom)!important;top:auto!important;transform:none!important;
 width:min(58%,550px);justify-content:flex-end!important;gap:5px!important;pointer-events:none;
}
html #ar-shepherds-sheep#ar-shepherds-sheep.ss-phone-landscape.ss-scene-shell:not(.ss-gameplay-only,.ss-cinematic-ending) .ss-stage>.ss-controls>:is(button,.ss-view-tools,.ss-audio-panel){
 pointer-events:auto;
}
html #ar-shepherds-sheep#ar-shepherds-sheep.ss-phone-landscape.ss-scene-shell:not(.ss-gameplay-only,.ss-cinematic-ending) .ss-stage>.ss-controls>button{
 flex:0 1 auto!important;min-width:44px!important;padding-inline:8px!important;
}
html #ar-shepherds-sheep#ar-shepherds-sheep.ss-phone-landscape.ss-scene-shell:not(.ss-gameplay-only,.ss-cinematic-ending) .ss-stage>.ss-controls>:is(.ss-jump,.ss-pause){
 width:clamp(61px,12vw,112px)!important;
}
html #ar-shepherds-sheep#ar-shepherds-sheep.ss-phone-landscape.ss-scene-shell:not(.ss-gameplay-only,.ss-cinematic-ending) .ss-stage>.ss-trail-dock{
 inset:auto auto var(--phone-bottom) var(--phone-left);width:min(39%,330px);padding:0;
 gap:5px;height:auto;align-items:end;z-index:5;pointer-events:none;
}
html #ar-shepherds-sheep#ar-shepherds-sheep.ss-phone-landscape.ss-scene-shell:not(.ss-gameplay-only,.ss-cinematic-ending) .ss-trail-dock>.ss-trail-panel{
 max-height:min(57dvh,225px);border-radius:11px;pointer-events:auto;
 box-shadow:0 2px 12px #10170d56;
}
html #ar-shepherds-sheep#ar-shepherds-sheep.ss-phone-landscape.ss-scene-shell:not(.ss-gameplay-only,.ss-cinematic-ending) .ss-trail-dock summary{
 min-height:44px!important;padding:8px 7px!important;font-size:clamp(11px,1.7vw,13px)!important;align-content:center;
 color:#293e29;background:#f8edcedf;
}
html #ar-shepherds-sheep#ar-shepherds-sheep.ss-phone-landscape .ss-trail-dock>.ss-trail-panel[open]{
 position:absolute;bottom:0;width:min(83vw,460px);inset-inline-start:0;
}
html #ar-shepherds-sheep#ar-shepherds-sheep.ss-phone-landscape .ss-trail-dock>.ss-trail-panel[open]:last-child{
 inset-inline-start:8px;
}
html #ar-shepherds-sheep#ar-shepherds-sheep.ss-phone-landscape .ss-trail-dock:has(.ss-trail-panel[open]) {min-height:44px}
html #ar-shepherds-sheep#ar-shepherds-sheep.ss-phone-landscape.ss-scene-shell:not(.ss-gameplay-only,.ss-cinematic-ending) .ss-stage>.ss-hud{
 top:calc(var(--phone-top) + 25px)!important;width:calc(100% - var(--phone-left) - var(--phone-right))!important;
 display:grid;gap:12px;z-index:1;pointer-events:none;
}
html #ar-shepherds-sheep#ar-shepherds-sheep.ss-phone-landscape.ss-scene-shell .ss-stage>.ss-hud>div{
 top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
}
html #ar-shepherds-sheep#ar-shepherds-sheep.ss-phone-landscape.ss-scene-shell .ss-stage>.ss-hud>div:nth-child(2){
 margin-inline:22px;
}
html #ar-shepherds-sheep#ar-shepherds-sheep.ss-phone-landscape.ss-scene-shell .ss-stage>.ss-hud[hidden]{display:none!important}
html #ar-shepherds-sheep#ar-shepherds-sheep.ss-phone-landscape.ss-scene-shell .ss-stage .ss-scene-caption{
 top:calc(var(--phone-top) + 76px)!important;max-height:calc(100% - var(--phone-top) - 123px)!important;
}
html #ar-shepherds-sheep#ar-shepherds-sheep.ss-phone-landscape.ss-scene-shell .ss-stage :is(.ss-item-study,.ss-dove-reader,.ss-scripture-scroll){
 bottom:calc(var(--phone-bottom) + 51px);max-height:calc(100% - var(--phone-bottom) - var(--phone-top) - 68px);
}
@media(forced-colors:active){
 html #ar-shepherds-sheep#ar-shepherds-sheep.ss-phone-landscape .ss-trail-dock summary{background:Canvas;color:CanvasText}
}

/* Keep the title and game HUD clear of the host's brief centered chevron. */
html #ar-shepherds-sheep#ar-shepherds-sheep.ss-phone-landscape .ss-main-menu>.ss-menu-kicker{visibility:hidden}