/* 17.8.36 — repair side-band HUD only. No game geometry or logic changes.
   Last version's flex-direction was overwritten by the older flex-flow shorthand.
   Set the full shorthand and unbind old HUD max-height/width rules. */
@media (orientation: landscape) {
  body:where(.gc-screen).gc-ui-sides:is(.gc-responsive-zombie,.gc-responsive-shoot,.gc-responsive-longshot)
    :is(main.wrap,main.shell) > :is(header,.masthead){
      box-sizing:border-box!important;
      position:fixed!important;left:0!important;right:auto!important;
      top:2px!important;bottom:auto!important;
      width:var(--gc-side)!important;max-width:var(--gc-side)!important;
      min-width:0!important;height:auto!important;max-height:100dvh!important;
      display:flex!important;flex-flow:column nowrap!important;
      align-items:stretch!important;justify-content:flex-start!important;
      padding:1px 4px!important;margin:0!important;gap:4px!important;
      z-index:120!important;overflow:hidden!important;
  }
  body:where(.gc-screen).gc-ui-sides:is(.gc-responsive-zombie,.gc-responsive-shoot,.gc-responsive-longshot)
    :is(main.wrap,main.shell) > :is(header,.masthead) :is(.actions,.headright,.headtools){
      display:flex!important;flex-flow:column nowrap!important;
      width:100%!important;max-width:100%!important;
      gap:4px!important;align-items:stretch!important;
  }
  body:where(.gc-screen).gc-ui-sides:is(.gc-responsive-zombie,.gc-responsive-shoot,.gc-responsive-longshot)
    :is(main.wrap,main.shell) > :is(header,.masthead) :is(button,a){
      box-sizing:border-box!important;width:100%!important;max-width:100%!important;
      min-width:0!important;min-height:34px!important;
      padding:5px 2px!important;line-height:1.1!important;
      font-size:clamp(10px,1.2vw,14px)!important;
      word-break:normal!important;overflow-wrap:normal!important;
      white-space:normal!important;text-align:center!important;
  }
  body:where(.gc-screen).gc-ui-sides:is(.gc-responsive-zombie,.gc-responsive-shoot,.gc-responsive-longshot)
    :is(main.wrap,main.shell) > :is(.hud,.scoreboard,.stats){
      box-sizing:border-box!important;position:fixed!important;
      top:max(5px,env(safe-area-inset-top))!important;
      right:2px!important;left:auto!important;bottom:auto!important;
      transform:none!important;
      width:calc(var(--gc-side) - 4px)!important;
      min-width:0!important;max-width:calc(var(--gc-side) - 4px)!important;
      height:auto!important;min-height:0!important;
      max-height:calc(100dvh - 62px)!important;
      display:flex!important;flex-flow:column nowrap!important;
      justify-content:flex-start!important;align-items:stretch!important;
      gap:0!important;padding:3px 4px!important;margin:0!important;
      overflow:hidden!important;border-radius:7px!important;
      background:#0b261bd3!important;z-index:115!important;
  }
  body:where(.gc-screen).gc-ui-sides:is(.gc-responsive-zombie,.gc-responsive-shoot,.gc-responsive-longshot)
    :is(main.wrap,main.shell) > :is(.hud,.scoreboard,.stats) > div{
      box-sizing:border-box!important;
      display:flex!important;flex-flow:row nowrap!important;
      justify-content:space-between!important;align-items:center!important;
      flex:0 0 auto!important;width:100%!important;max-width:100%!important;
      height:clamp(30px,8dvh,45px)!important;min-height:0!important;max-height:none!important;
      padding:2px 3px!important;gap:4px!important;margin:0!important;
      border:0!important;border-bottom:1px solid #ffffff24!important;
      overflow:hidden!important;
  }
  body:where(.gc-screen).gc-ui-sides:is(.gc-responsive-zombie,.gc-responsive-shoot,.gc-responsive-longshot)
    :is(main.wrap,main.shell) > :is(.hud,.scoreboard,.stats) > div :is(small,span){
      flex:0 1 auto!important;min-width:0!important;max-width:55%!important;
      font-size:clamp(9px,1.1vw,13px)!important;line-height:1.05!important;
      text-align:left!important;white-space:normal!important;overflow-wrap:break-word!important;
  }
  body:where(.gc-screen).gc-ui-sides:is(.gc-responsive-zombie,.gc-responsive-shoot,.gc-responsive-longshot)
    :is(main.wrap,main.shell) > :is(.hud,.scoreboard,.stats) > div :is(b,strong){
      flex:0 0 auto!important;font-size:clamp(12px,1.5vw,18px)!important;
      white-space:nowrap!important;line-height:1!important;text-align:right!important;
  }
  body:where(.gc-screen).gc-ui-sides:is(.gc-responsive-zombie,.gc-responsive-shoot,.gc-responsive-longshot) #goalcu-language{
    box-sizing:border-box!important;position:fixed!important;
    right:2px!important;left:auto!important;top:auto!important;
    bottom:max(3px,env(safe-area-inset-bottom))!important;
    width:calc(var(--gc-side) - 4px)!important;
    max-width:calc(var(--gc-side) - 4px)!important;min-width:0!important;
    display:flex!important;flex-flow:row nowrap!important;
    align-items:center!important;justify-content:stretch!important;
    overflow:hidden!important;
  }
  body:where(.gc-screen).gc-ui-sides #goalcu-language button{
    flex:1 1 0!important;min-width:0!important;max-width:none!important;
    font-size:clamp(9px,1.2vw,13px)!important;
  }
  /* No decorative game title inside limited side bands. */
  body:where(.gc-screen).gc-ui-sides:is(.gc-responsive-zombie,.gc-responsive-shoot,.gc-responsive-longshot)
    :is(main.wrap,main.shell)>:is(header,.masthead) :is(.brand,.gc-brand){display:none!important}
}
/* Very narrow iPhone gutters: stack label over number within each row. */
@media (orientation:landscape) and (max-width:950px){
 body:where(.gc-screen).gc-ui-sides:is(.gc-responsive-zombie,.gc-responsive-shoot,.gc-responsive-longshot)
  :is(main.wrap,main.shell)>:is(.hud,.scoreboard,.stats)>div{
    flex-flow:column nowrap!important;justify-content:center!important;align-items:center!important;
    gap:1px!important;height:clamp(40px,11dvh,54px)!important;
  }
 body:where(.gc-screen).gc-ui-sides:is(.gc-responsive-zombie,.gc-responsive-shoot,.gc-responsive-longshot)
  :is(main.wrap,main.shell)>:is(.hud,.scoreboard,.stats)>div :is(small,span){
    max-width:100%!important;flex:0 0 auto!important;line-height:1!important;
    font-size:9px!important;text-align:center!important;
  }
 body:where(.gc-screen).gc-ui-sides:is(.gc-responsive-zombie,.gc-responsive-shoot,.gc-responsive-longshot)
  :is(main.wrap,main.shell)>:is(.hud,.scoreboard,.stats)>div :is(b,strong){
    flex:0 0 auto!important;font-size:clamp(11px,1.5vw,14px)!important;
  }
 body:where(.gc-screen).gc-ui-sides:is(.gc-responsive-zombie,.gc-responsive-shoot,.gc-responsive-longshot)
  :is(main.wrap,main.shell)>:is(header,.masthead) :is(button,a){
    font-size:10px!important;min-height:32px!important;padding:3px 1px!important;
  }
}
