/* The handoff's existing ImageGen atlas is cropped in CSS; source pixels stay intact. */
body.game-screenshot-host:not(.game-navigation-child){--game-screenshot-space:72px;box-sizing:border-box!important;display:block!important;width:100%!important;height:100dvh!important;min-height:0!important;margin:0!important;padding:16px!important;overflow:hidden!important}
body.game-screenshot-host:not(.game-navigation-child)>main{position:relative!important;box-sizing:border-box!important;display:block!important;width:100%!important;height:calc(100% - var(--game-screenshot-space))!important;max-width:none!important;max-height:none!important;min-height:0!important;margin:0!important;padding:0!important}
body.game-screenshot-host #game-window:not(:fullscreen){position:relative!important;box-sizing:border-box!important;display:block!important;width:100%!important;height:100%!important;min-height:0!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;margin:0!important;padding:0!important}
.game-screenshot-controls{position:fixed;left:16px;right:16px;bottom:12px;box-sizing:border-box;display:flex;align-items:center;gap:18px;height:64px;padding:6px 12px;border:1px solid #9b8b5d77;border-radius:8px;background:#0b241fe8;color:#e5ddbc;font:12px/1.4 system-ui,sans-serif;z-index:50}
.game-screenshot-controls .game-screenshot-button{flex:0 0 212px;box-sizing:border-box;border:0;border-radius:0;background-color:transparent;background-image:url('assets/screenshot-ui-v1.png');background-repeat:no-repeat;background-size:466.171003717% 1694.594594595%;background-position:65.685279188% 12.203389831%;box-shadow:none;color:#35260b;font:700 16px Georgia,'Times New Roman',serif;text-shadow:0 1px 1px #fff5bfa6;min-height:48px;padding:11px 25px;cursor:pointer}
.game-screenshot-controls .game-screenshot-button:disabled{opacity:.48;cursor:wait}
.game-screenshot-controls .game-screenshot-button:focus-visible{outline:3px solid #ffe597;outline-offset:1px}
.game-screenshot-status{margin:0;min-width:0;max-height:45px;overflow:hidden;overflow-wrap:anywhere;color:#d0d9bf}
body.game-navigation-child .game-screenshot-controls{display:none}
@media(max-width:600px){body.game-screenshot-host:not(.game-navigation-child){--game-screenshot-space:84px;padding:8px!important}.game-screenshot-controls{left:8px;right:8px;bottom:8px;height:76px;gap:8px;padding:7px 6px}.game-screenshot-controls .game-screenshot-button{flex-basis:168px;font-size:13px;min-height:44px;padding:10px 18px}.game-screenshot-status{font-size:10px;max-height:58px}}
@media(max-height:420px){body.game-screenshot-host:not(.game-navigation-child){--game-screenshot-space:54px;padding:8px!important}.game-screenshot-controls{height:48px;bottom:5px}.game-screenshot-controls .game-screenshot-button{min-height:38px;font-size:13px;padding-block:8px}.game-screenshot-status{max-height:32px}}

/* The public visitor panel stays outside the captured game and can scroll below it.
   Local pages retain their fixed viewport layout and screenshot toolbar. */
body.horizon-traffic-enabled.game-screenshot-host:not(.game-navigation-child){--game-screenshot-page-padding:16px;--game-screenshot-toolbar-gap:8px;display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;gap:0!important;height:auto!important;min-height:100dvh!important;overflow-x:hidden!important;overflow-y:auto!important}
body.horizon-traffic-enabled.game-screenshot-host:not(.game-navigation-child)>main{order:0;flex:none!important;height:calc(100dvh - var(--game-screenshot-space) - var(--game-screenshot-page-padding) - var(--game-screenshot-page-padding))!important}
body.horizon-traffic-enabled.game-screenshot-host:not(.game-navigation-child)>.game-screenshot-controls{order:1;position:static!important;inset:auto!important;flex:none!important;width:100%;margin:var(--game-screenshot-toolbar-gap) 0 0!important}
body.horizon-traffic-enabled.game-screenshot-host:not(.game-navigation-child)>#traffic{order:2;flex:none!important;max-width:100%;align-self:center}
@media(max-width:600px){body.horizon-traffic-enabled.game-screenshot-host:not(.game-navigation-child){--game-screenshot-page-padding:8px}}
@media(max-height:420px){body.horizon-traffic-enabled.game-screenshot-host:not(.game-navigation-child){--game-screenshot-page-padding:8px;--game-screenshot-toolbar-gap:6px}}
