/* GOALCU V17.8.35: letterbox space is for UI, NEVER for game resizing.
   Applies only to landscape Zombie / Shoot Them / Long Shot. All game logic,
   canvas dimensions, pointer mapping and all portrait game styles remain as-is. */
@media (orientation:landscape) {
 body:where(.gc-screen).gc-responsive-zombie.gc-ui-sides,body:where(.gc-screen).gc-responsive-shoot.gc-ui-sides,body:where(.gc-screen).gc-responsive-longshot.gc-ui-sides,
 body:where(.gc-screen).gc-responsive-zombie.gc-ui-topbottom,body:where(.gc-screen).gc-responsive-shoot.gc-ui-topbottom,body:where(.gc-screen).gc-responsive-longshot.gc-ui-topbottom {
  --ui-pad: max(2px, env(safe-area-inset-left));
 }
 /* Hide only nonessential pitch labels; do NOT hide gameplay actions or scores. */
 body:where(.gc-screen):is(.gc-responsive-zombie,.gc-responsive-shoot,.gc-responsive-longshot) .gc-screen-root>.gc-rotate-hint {display:none!important}
 body:where(.gc-screen):is(.gc-responsive-zombie,.gc-responsive-shoot,.gc-responsive-longshot) #goalcu-language {
  z-index:210!important;margin:0!important;gap:1px!important;padding:2px!important;
  border-radius:7px!important;background:#091e17e8!important;
  box-shadow:0 2px 8px #0008!important;box-sizing:border-box!important;
 }
 body:where(.gc-screen):is(.gc-responsive-zombie,.gc-responsive-shoot,.gc-responsive-longshot) #goalcu-language button {
  min-width:23px!important;min-height:28px!important;padding:3px!important;
  font-size:10px!important;border-radius:5px!important;
 }
 body:where(.gc-screen):is(.gc-responsive-zombie,.gc-responsive-shoot,.gc-responsive-longshot) :is(.gc-screen-root, main.wrap, main.shell)>:is(header,.masthead) {
  width:auto!important;min-width:0!important;max-height:none!important;
  background:transparent!important;box-shadow:none!important;
 }
 body:where(.gc-screen):is(.gc-responsive-zombie,.gc-responsive-shoot,.gc-responsive-longshot) :is(.gc-screen-root, main.wrap, main.shell)>:is(header,.masthead) :is(button,a){
  max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;
  font-size:10px!important;line-height:1.05!important;min-height:27px!important;
  padding:5px 3px!important;
 }
 body:where(.gc-screen):is(.gc-responsive-zombie,.gc-responsive-shoot,.gc-responsive-longshot) :is(.gc-screen-root, main.wrap, main.shell)>:is(.hud,.scoreboard,.stats){
  box-sizing:border-box!important;max-height:none!important;height:auto!important;
  background:#0b261bdc!important;border:1px solid #c8a45a47!important;
  overflow:visible!important;
 }
 body:where(.gc-screen):is(.gc-responsive-zombie,.gc-responsive-shoot,.gc-responsive-longshot) :is(.gc-screen-root, main.wrap, main.shell)>:is(.hud,.scoreboard,.stats)>div{
  box-sizing:border-box!important;overflow:visible!important;white-space:normal!important;
  width:auto!important;height:auto!important;max-height:none!important;min-height:0!important;
  padding:2px!important;max-width:100%!important;gap:2px!important;
 }
 body:where(.gc-screen):is(.gc-responsive-zombie,.gc-responsive-shoot,.gc-responsive-longshot) :is(.gc-screen-root, main.wrap, main.shell)>:is(.hud,.scoreboard,.stats)>div :is(small,span){
  font-size:10px!important;line-height:1.1!important;white-space:normal!important;
 }
 body:where(.gc-screen):is(.gc-responsive-zombie,.gc-responsive-shoot,.gc-responsive-longshot) :is(.gc-screen-root, main.wrap, main.shell)>:is(.hud,.scoreboard,.stats)>div :is(b,strong){
  font-size:13px!important;line-height:1.1!important;white-space:nowrap!important;
 }
 body:where(.gc-screen).gc-responsive-shoot .shop-area>.shop-bar>span{display:none!important}
 body:where(.gc-screen).gc-responsive-shoot .shop-area>.shop-bar{background:#10291fe8!important;box-shadow:none!important}
 body:where(.gc-screen).gc-responsive-shoot .shop-area>.shop-bar .ball-choice{font-size:10px!important}
 body:where(.gc-screen).gc-responsive-longshot .arena>.message{pointer-events:none!important}
 /* Tall aspect (phone landscape): the whole free area is TWO side bands.
    The stage itself remains centered, untouched and as large as possible. */
 body:where(.gc-screen).gc-ui-sides :is(.gc-screen-root,main.wrap,main.shell)>:is(header,.masthead){
  position:fixed!important;left:0!important;right:auto!important;
  top:max(4px,env(safe-area-inset-top))!important;bottom:auto!important;
  width:var(--gc-side)!important;max-width:var(--gc-side)!important;
  padding:0 3px!important;display:flex!important;flex-direction:column!important;
  gap:4px!important;align-items:stretch!important;overflow:visible!important;
 }
 body:where(.gc-screen).gc-ui-sides :is(.gc-screen-root,main.wrap,main.shell)>:is(header,.masthead) :is(.actions,.headright,.headtools){
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  gap:4px!important;max-width:100%!important;width:100%!important;
 }
 body:where(.gc-screen).gc-ui-sides :is(.gc-screen-root,main.wrap,main.shell)>:is(.hud,.scoreboard,.stats){
  position:fixed!important;top:max(5px,env(safe-area-inset-top))!important;
  left:auto!important;right:0!important;bottom:auto!important;
  transform:none!important;width:var(--gc-side)!important;max-width:var(--gc-side)!important;
  min-height:0!important;display:flex!important;flex-direction:column!important;
  justify-content:flex-start!important;align-items:stretch!important;
  gap:1px!important;padding:3px!important;border-radius:7px!important;
 }
 body:where(.gc-screen).gc-ui-sides :is(.gc-screen-root,main.wrap,main.shell)>:is(.hud,.scoreboard,.stats)>div{
  display:flex!important;flex-direction:column!important;align-items:center!important;
  justify-content:center!important;min-width:0!important;flex:0 0 auto!important;
  border-bottom:1px solid #ffffff14!important;padding:3px 0!important;
 }
 body:where(.gc-screen).gc-ui-sides :is(.gc-screen-root,main.wrap,main.shell)>:is(.hud,.scoreboard,.stats)>div :is(small,span){font-size:8px!important}
 body:where(.gc-screen).gc-ui-sides :is(.gc-screen-root,main.wrap,main.shell)>:is(.hud,.scoreboard,.stats)>div :is(b,strong){font-size:12px!important}
 body:where(.gc-screen).gc-ui-sides #goalcu-language{
  position:fixed!important;right:2px!important;bottom:max(3px,env(safe-area-inset-bottom))!important;
  left:auto!important;top:auto!important;transform:none!important;
  width:calc(var(--gc-side) - 3px)!important;max-width:calc(var(--gc-side) - 3px)!important;
  justify-content:center!important;
 }
 body:where(.gc-screen).gc-ui-sides #goalcu-language button{flex:1 1 0!important;min-width:0!important}
 body:where(.gc-screen).gc-ui-sides.gc-responsive-shoot .shop-area{
  position:fixed!important;left:0!important;right:auto!important;bottom:2px!important;
  top:auto!important;width:var(--gc-side)!important;height:auto!important;max-height:65dvh!important;
  z-index:125!important;padding:0 2px!important;
 }
 body:where(.gc-screen).gc-ui-sides.gc-responsive-shoot .shop-area>.shop-bar{
  position:relative!important;left:0!important;right:auto!important;top:auto!important;bottom:auto!important;
  display:flex!important;flex-direction:column!important;width:100%!important;
  max-width:none!important;gap:2px!important;padding:2px!important;
 }
 body:where(.gc-screen).gc-ui-sides.gc-responsive-shoot .shop-area>.shop-bar .ball-choices{flex-direction:column!important;gap:2px!important}
 body:where(.gc-screen).gc-ui-sides.gc-responsive-shoot .shop-area>.shop-bar .ball-choice{min-width:0!important;min-height:24px!important;white-space:normal!important;padding:2px!important}
 body:where(.gc-screen).gc-ui-sides.gc-responsive-shoot .shop-area>.shop-bar #shopToggle{font-size:9px!important;white-space:normal!important;padding:3px!important}
 /* Tablet/desktop: the pitch fills WIDTH; place all chrome above/below it. */
 body:where(.gc-screen).gc-ui-topbottom :is(.gc-screen-root,main.wrap,main.shell)>:is(header,.masthead){
  position:fixed!important;top:1px!important;bottom:auto!important;left:4px!important;right:auto!important;
  padding:0!important;width:auto!important;max-width:32vw!important;
  height:var(--gc-topband)!important;min-height:0!important;
  flex-direction:row!important;align-items:center!important;
 }
 body:where(.gc-screen).gc-ui-topbottom :is(.gc-screen-root,main.wrap,main.shell)>:is(header,.masthead) :is(.actions,.headright,.headtools){
  display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;
  align-items:center!important;max-width:none!important;width:auto!important;gap:4px!important;
 }
 body:where(.gc-screen).gc-ui-topbottom :is(.gc-screen-root,main.wrap,main.shell)>:is(.hud,.scoreboard,.stats){
  position:fixed!important;top:2px!important;bottom:auto!important;left:50%!important;right:auto!important;
  transform:translateX(-50%)!important;width:auto!important;max-width:44vw!important;
  min-height:0!important;height:calc(var(--gc-topband) - 5px)!important;
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
  align-items:center!important;justify-content:center!important;
  padding:2px 4px!important;gap:3px!important;
 }
 body:where(.gc-screen).gc-ui-topbottom :is(.gc-screen-root,main.wrap,main.shell)>:is(.hud,.scoreboard,.stats)>div{
  display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;
  flex:0 1 auto!important;white-space:nowrap!important;
 }
 body:where(.gc-screen).gc-ui-topbottom #goalcu-language{
  position:fixed!important;top:3px!important;bottom:auto!important;
  right:3px!important;left:auto!important;transform:none!important;
 }
 body:where(.gc-screen).gc-ui-topbottom.gc-responsive-shoot .shop-area{
  position:fixed!important;bottom:2px!important;top:auto!important;left:50%!important;right:auto!important;
  transform:translateX(-50%)!important;width:auto!important;height:var(--gc-topband)!important;
  max-height:var(--gc-topband)!important;display:flex!important;align-items:center!important;
  z-index:130!important;
 }
 body:where(.gc-screen).gc-ui-topbottom.gc-responsive-shoot .shop-area>.shop-bar{
  position:static!important;transform:none!important;display:flex!important;flex-direction:row!important;
  width:auto!important;max-width:95vw!important;max-height:100%!important;
 }
 body:where(.gc-screen).gc-ui-topbottom.gc-responsive-shoot .shop-area>.shop-bar .ball-choices{flex-direction:row!important;gap:3px!important}
 body:where(.gc-screen).gc-ui-topbottom.gc-responsive-longshot .arena>.shootbar{max-height:35%!important}
}
