/* One GOALCU top bar. Section/game controls stay in the content, not in the brand row. */
:root{--gc-header-height:52px;--gc-content-height:calc(100dvh - var(--gc-header-height))}
html body.gc-header-ready{padding-top:calc(var(--gc-original-top,0px) + var(--gc-header-height))!important;box-sizing:border-box!important;scroll-padding-top:var(--gc-header-height)}
html{scroll-padding-top:calc(var(--gc-header-height) + 8px)}
#gc-site-header{box-sizing:border-box!important;position:fixed!important;inset:0 0 auto!important;z-index:20000!important;display:grid!important;grid-template-columns:max-content minmax(0,1fr) max-content!important;align-items:center!important;gap:12px!important;min-height:52px!important;height:calc(52px + env(safe-area-inset-top,0px))!important;width:100%!important;max-width:none!important;margin:0!important;padding:env(safe-area-inset-top,0px) max(14px,env(safe-area-inset-right,0px)) 0 max(14px,env(safe-area-inset-left,0px))!important;background:#0d1f18!important;color:#eef2e7!important;border:0!important;border-bottom:1px solid #3d5844!important;border-radius:0!important;box-shadow:0 2px 10px #0002!important;transform:none!important;font-family:system-ui,-apple-system,'Segoe UI',sans-serif!important;text-transform:none!important;line-height:1!important;isolation:isolate;}
#gc-site-header *{box-sizing:border-box!important;}
#gc-site-header #gc-site-brand{display:inline-flex!important;align-items:center!important;min-height:44px!important;margin:0!important;padding:0!important;gap:0!important;color:#f0f3e8!important;font:900 19px/1 system-ui,-apple-system,'Segoe UI',sans-serif!important;letter-spacing:-.65px!important;text-decoration:none!important;background:transparent!important;border:0!important;border-radius:0!important;white-space:nowrap!important;box-shadow:none!important;transform:none!important;max-width:none!important;touch-action:manipulation;}
#gc-site-brand span{font:inherit!important;letter-spacing:inherit!important;color:#c8a45a!important;display:inline!important;}
#gc-site-header #gc-site-section{min-width:0!important;display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;text-align:center!important;color:#dac28a!important;font:750 14px/1.2 system-ui,-apple-system,'Segoe UI',sans-serif!important;letter-spacing:0!important;}
#gc-site-header #gc-site-tools{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;min-width:0!important;position:static!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;}
#gc-site-header #gc-site-languages{display:flex!important;align-items:center!important;gap:2px!important;margin:0!important;padding:2px!important;position:static!important;border:1px solid #536344!important;border-radius:9px!important;background:#122b20!important;width:auto!important;max-width:none!important;box-shadow:none!important;}
#gc-site-header #gc-site-languages:empty{display:none!important;}
#gc-site-header .gc-header-language{display:flex!important;align-items:center!important;justify-content:center!important;min-width:30px!important;height:36px!important;min-height:36px!important;padding:0 5px!important;margin:0!important;font:800 11px/1 system-ui,-apple-system,'Segoe UI',sans-serif!important;letter-spacing:0!important;text-decoration:none!important;background:transparent!important;color:#edf1e8!important;border:0!important;border-radius:6px!important;box-shadow:none!important;touch-action:manipulation;}
#gc-site-header .gc-header-language[aria-current=page]{background:#c8a45a!important;color:#0d1f18!important;}
#gc-site-header .gc-screen-tools{display:flex!important;align-items:center!important;position:static!important;margin:0!important;padding:0!important;width:auto!important;grid-column:auto!important;transform:none!important;}
#gc-site-header .gc-screen-tools[hidden]{display:none!important;}
#gc-site-header .gc-header-fullscreen{display:flex!important;align-items:center!important;justify-content:center!important;width:36px!important;height:40px!important;min-width:36px!important;min-height:40px!important;margin:0!important;padding:0!important;background:#163529!important;color:#e7c980!important;border:1px solid #536344!important;border-radius:8px!important;font-size:0!important;line-height:1!important;cursor:pointer;}
#gc-site-header .gc-header-fullscreen::before{content:none!important;}
#gc-site-header .gc-header-fullscreen::after{content:'⛶'!important;font:24px/1 system-ui!important;}
#gc-site-header .gc-header-fullscreen[aria-pressed=true]::after{content:'↙'!important;}
#gc-site-header a:focus-visible,#gc-site-header button:focus-visible{outline:2px solid #f1ce82!important;outline-offset:2px!important;}
body.gc-header-ready [data-gc-home],body.gc-header-ready [data-gc-brand]:not(#gc-site-brand),body.gc-header-ready .gc-overlay-home{display:none!important;}
body.gc-header-ready .gc-legacy-header{position:relative;top:auto;}
/* Keep original game actions, but remove an empty brand row. Height is reserved once only. */
html body.gc-header-ready.gc-screen{padding-top:var(--gc-header-height)!important;}
html body.gc-header-ready.gc-screen .gc-screen-root{min-height:var(--gc-content-height)!important;}
html body.gc-header-ready.gc-screen:is(.gc-arcade-theme,.gc-game-responsive) .gc-screen-root,
html body.gc-header-ready.gc-arcade-footgolf .app.gc-play-layout,
html body.gc-header-ready.gc-arcade-foottennis #app{
 height:var(--gc-content-height)!important;max-height:var(--gc-content-height)!important;min-height:0!important;
}
html body.gc-header-ready.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root{grid-template-rows:0 36px auto 40px minmax(0,1fr) auto 48px!important;}
@media(orientation:landscape) and (min-width:560px){html body.gc-header-ready.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root{grid-template-rows:0 auto auto minmax(0,1fr) auto!important;}}
@media(max-width:380px){#gc-site-header{gap:6px!important;padding-left:8px!important;padding-right:8px!important;}#gc-site-header #gc-site-brand{font-size:17px!important;}#gc-site-header #gc-site-section{font-size:12px!important;}#gc-site-header #gc-site-tools{gap:4px!important;}}
/* Legacy game-first bands use viewport positioning. Offset only their top band. */
@media(orientation:landscape){
 html body.gc-header-ready.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot,.gc-responsive-shoot) :is(main.wrap,main.shell)>:is(header,.masthead,.hud,.scoreboard,.stats){top:calc(var(--gc-header-height) + 3px)!important;}
 html body.gc-header-ready.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot,.gc-responsive-shoot) :is(main.wrap,main.shell)>:is(header,.masthead){max-height:var(--gc-content-height)!important;}
 html body.gc-header-ready.gc-screen.gc-ui-sides:is(.gc-responsive-zombie,.gc-responsive-longshot,.gc-responsive-shoot) :is(main.wrap,main.shell)>:is(.hud,.scoreboard,.stats){max-height:calc(var(--gc-content-height) - 12px)!important;}
}
/* Blockball's fixed-height landscape shell also reserves the shared bar. */
@media(max-height:530px) and (min-width:640px){
 html body.gc-header-ready #shell.shell{height:var(--gc-content-height)!important;}
 html body.gc-header-ready #shell.shell .arena{height:calc(var(--gc-content-height) - 20px)!important;}
}
@media(orientation:landscape){
 html body.gc-header-ready.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot,.gc-responsive-shoot) :is(main.wrap,main.shell).gc-screen-root{top:var(--gc-header-height)!important;bottom:0!important;}
 html body.gc-header-ready.gc-responsive-shoot main.shell,
 html body.gc-header-ready.gc-arcade-dribble #app{height:var(--gc-content-height)!important;max-height:var(--gc-content-height)!important;min-height:0!important;}
}
html body.gc-header-ready #rulesOverlay{top:var(--gc-header-height)!important;max-height:var(--gc-content-height)!important;}
#gc-site-header .gc-header-fullscreen{position:static!important;inset:auto!important;transform:none!important;float:none!important;flex:0 0 36px!important;}
#gc-site-header .gc-header-fullscreen[hidden]{display:none!important;}
/* Element fullscreen (Blockball): keep the same bar inside the fullscreen target. */
html body.gc-header-ready #shell.shell.gc-header-fs-host{height:100dvh!important;max-height:100dvh!important;padding-top:calc(var(--gc-header-height) + 10px)!important;}
