/* GOALCU 17.8.25: viewport shell, unchanged game coordinates. */
.gc-screen-tools{display:flex;justify-content:flex-end;flex:0 0 auto;grid-column:1/-1;width:100%;padding:3px 0;position:relative;z-index:200;box-sizing:border-box}
.gc-screen-tools[hidden]{display:none!important}
#gc-screen-toggle{font:700 12px system-ui;color:#e6ca85;background:#163529;border:1px solid #637756;border-radius:8px;min-height:32px;padding:5px 10px;cursor:pointer;touch-action:manipulation}
#gc-screen-toggle:focus-visible{outline:2px solid #c8a45a;outline-offset:2px}
body.gc-screen{margin:0!important;min-height:100dvh!important;max-width:none!important;overflow-x:hidden!important}
body.gc-screen .gc-screen-root{box-sizing:border-box!important;width:100%!important;max-width:none!important;min-height:100dvh;margin:0!important;padding: max(6px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))!important}
/* Reading screens retain their natural vertical scrolling. */
body.gc-screen:not(.gc-arcade-theme):not(.gc-game-responsive){overflow-y:auto!important}
body.gc-screen:is(.gc-arcade-dribble,.gc-arcade-foottennis,.gc-arcade-footgolf) .gc-screen-root{height:100dvh!important;max-height:100dvh!important;min-height:0!important;display:flex!important;flex-direction:column!important;gap:5px!important}
body.gc-screen.gc-arcade-dribble .stage{flex:1;min-height:0;width:100%;max-width:none;align-self:center}
body.gc-screen.gc-arcade-dribble .track{flex:0 0 5px}
body.gc-screen.gc-arcade-dribble .levelDock{flex-shrink:0}
body.gc-screen.gc-arcade-foottennis .gc-responsive-shell{max-width:none!important;width:100%!important}
body.gc-screen.gc-arcade-foottennis #app>.head{max-width:none!important}
body.gc-screen.gc-arcade-footgolf .stage{flex:1;min-height:0;display:flex;justify-content:center;overflow:hidden}
body.gc-screen.gc-arcade-footgolf .canvasWrap{height:100%!important;width:auto!important;max-width:100%;aspect-ratio:3/4;flex:none!important}
body.gc-screen.gc-arcade-footgolf .levels{flex-shrink:0;max-height:58px;overflow-y:auto}
body.gc-screen.gc-arcade-footgolf .footer{display:none}
body.gc-screen.gc-arcade-penalti .penalty-square{height:calc(100dvh - 175px)!important;min-height:300px!important}
body.gc-screen.gc-arcade-penalti .stadium{max-width:none!important;width:auto!important;max-height:100%;aspect-ratio:5/3!important}
body.gc-screen.gc-arcade-freekick .shell{max-width:none!important}
body.gc-screen.gc-arcade-freekick .stadiumWrap{min-width:0}
/* Wide games keep their native aspect ratio. Shops remain scrollable beside the pitch. */
body.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot,.gc-responsive-shoot) .gc-screen-root{display:flex;flex-direction:column;gap:6px;min-height:100dvh}
body.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot,.gc-responsive-shoot) .arena{width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;flex:none;aspect-ratio:16/9!important;margin:0 auto}
body.gc-screen.gc-responsive-shoot .arena{aspect-ratio:1000/560!important}
body.gc-screen .arena canvas{width:100%!important;height:100%!important;object-fit:contain}
@media(orientation:landscape) and (min-width:700px){
 body.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot,.gc-responsive-shoot) .gc-screen-root{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,24%);grid-template-rows:auto auto minmax(0,1fr);align-content:start;height:100dvh;min-height:0;overflow:auto}
 body.gc-screen .gc-screen-root> :is(header,.masthead,.hud,.stats,.scoreboard){grid-column:1/-1;margin:0!important}
 body.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot,.gc-responsive-shoot) .arena{grid-column:1;grid-row:3;align-self:start;width:min(100%,calc((100dvh - 155px)*16/9))!important}
 body.gc-screen .gc-screen-root> :is(.low,.lower,.shop-bar){grid-column:2;grid-row:3;overflow:auto;max-height:calc(100dvh - 155px);margin:0!important}
 body.gc-screen :is(.low,.lower,.shop-bar) .shop{grid-template-columns:1fr!important}
}
body.gc-screen .overlay:not([hidden]):not(.hidden){overflow:auto}
body.gc-screen .overlay :is(.box,.panel,.modal){max-height:100%;overflow:auto}

.gc-screen-inline{width:auto!important;flex:0 0 auto;margin-left:auto;grid-column:auto;padding:0}
.gc-screen-inline #gc-screen-toggle{font-size:0;width:32px;padding:0}
.gc-screen-inline #gc-screen-toggle::after{content:"⛶";font-size:20px}
.gc-screen-inline #gc-screen-toggle[aria-pressed="true"]::after{content:"↙"}
/* Landscape freekick uses pitch plus its existing control column. */
@media(min-width:900px){
 body.gc-screen.gc-arcade-freekick .layout{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(260px,30%)!important;align-items:start}
 body.gc-screen.gc-arcade-freekick #pitch{width:100%!important;height:auto!important;max-height:calc(100dvh - 150px);object-fit:contain;aspect-ratio:820/600!important}
}
@media(max-width:700px) and (orientation:portrait){
 body.gc-screen.gc-arcade-foottennis .gc-responsive-shell{max-width:none!important}
}
/* 17.8.27: installed iPhone/iPad viewport and rotation handling. */
body.gc-installed{padding:0!important;min-height:var(--gc-viewport-height,100dvh)!important}
body.gc-installed .gc-screen-root{min-height:var(--gc-viewport-height,100dvh)}
body.gc-screen:is(.gc-arcade-dribble,.gc-arcade-foottennis,.gc-arcade-footgolf) .gc-screen-root{height:var(--gc-viewport-height,100dvh)!important;max-height:var(--gc-viewport-height,100dvh)!important}
body.gc-screen.gc-arcade-footgolf .canvasWrap{width:var(--gc-golf-width,auto)!important;height:var(--gc-golf-height,100%)!important}
body.gc-screen.gc-arcade-penalti .gc-screen-root{height:var(--gc-viewport-height,100dvh);min-height:0;display:flex;flex-direction:column;overflow:auto}
body.gc-screen.gc-arcade-penalti .penalty-square{flex:1 0 280px;height:auto!important;min-height:280px!important}
body.gc-screen.gc-arcade-penalti .gc-screen-root>:is(.history,.score){flex-shrink:0}
body.gc-screen.gc-arcade-penalti .history{max-height:58px;overflow:auto}
body.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot,.gc-responsive-shoot) .gc-screen-root{height:var(--gc-viewport-height,100dvh);min-height:0;overflow:auto}
body.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot,.gc-responsive-shoot) .gc-screen-root>:is(header,.masthead,.hud,.stats,.scoreboard){flex-shrink:0}
body.gc-screen .gc-screen-root>:is(.low,.lower,.shop-bar){min-height:0}
@media(orientation:landscape) and (min-width:700px){
 body.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot,.gc-responsive-shoot) .gc-screen-root{height:var(--gc-viewport-height,100dvh);grid-template-rows:auto auto minmax(0,1fr)}
 body.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot,.gc-responsive-shoot) .arena{width:var(--gc-field-width,100%)!important}
 body.gc-screen .gc-screen-root>:is(.low,.lower,.shop-bar){max-height:100%;align-self:stretch;overflow-y:auto}
}
@media(orientation:portrait){
 body.gc-screen .gc-screen-root>:is(.low,.lower,.shop-bar){flex:1 1 auto;overflow-y:auto}
}
/* 17.8.28: give the pitch priority over permanent panels. */
body.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot,.gc-responsive-shoot) .gc-screen-root{display:flex!important;flex-direction:column!important;gap:5px!important;overflow:hidden!important}
body.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot,.gc-responsive-shoot) .arena{width:var(--gc-field-width,100%)!important;flex:0 0 auto!important;align-self:center;margin:auto!important;border-radius:6px}
body.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot) .gc-screen-root>:is(.low,.lower){display:none!important}
body.gc-screen.gc-shop-open .gc-screen-root>:is(.low,.lower){display:block!important;position:fixed!important;inset:auto max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) auto!important;width:min(360px,calc(100vw - 16px));max-height:calc(var(--gc-viewport-height,100dvh) - 80px)!important;overflow:auto!important;z-index:400;box-shadow:0 10px 50px #000a;border:1px solid #c8a45a}
.gc-shop-toggle,.gc-shop-close{display:none}
body.gc-screen .gc-shop-toggle,body.gc-screen .gc-shop-close{display:inline-block;background:#1d4336;color:#e6ca85;border:1px solid #617954;border-radius:8px;padding:7px 10px;font:700 12px system-ui;min-height:34px;cursor:pointer;touch-action:manipulation}
body.gc-screen .gc-shop-close{float:right;margin-bottom:6px}
body.gc-screen .lowhead,body.gc-screen .lowerhead{clear:both}
body.gc-screen .shop-area{flex:0 0 auto;width:100%;margin:0!important}
body.gc-screen .shop-area .shop-bar{margin:0!important;padding:4px!important;min-height:36px!important}
body.gc-screen .shop-panel:not([hidden]){position:fixed;z-index:400;bottom:max(8px,env(safe-area-inset-bottom));right:max(8px,env(safe-area-inset-right));width:min(700px,calc(100vw - 16px));max-height:calc(var(--gc-viewport-height,100dvh) - 70px);overflow:auto;box-shadow:0 10px 50px #000a}
body.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot,.gc-responsive-shoot) :is(.hud,.stats,.scoreboard){gap:4px!important;margin:0!important}
body.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot,.gc-responsive-shoot) :is(.hud,.stats,.scoreboard)>div{padding:4px 7px!important}
body.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot,.gc-responsive-shoot) :is(header,.masthead){min-height:34px!important;padding-bottom:3px!important}
body.gc-screen.gc-arcade-penalti .history{display:none}
body.gc-screen.gc-arcade-penalti .score{padding:3px 8px!important;margin:0!important;min-height:0!important}
body.gc-screen.gc-arcade-penalti .score .num{font-size:26px!important;line-height:1!important}
body.gc-screen.gc-arcade-penalti .score .dots{margin-top:3px!important;min-height:8px!important}
body.gc-screen.gc-arcade-penalti .penalty-square{padding:4px!important;gap:4px!important;margin-top:4px!important;min-height:0!important;border:0!important;background:transparent!important}
body.gc-screen.gc-arcade-penalti .role-banner{padding:3px!important}
body.gc-screen.gc-arcade-penalti .role-banner strong{font-size:13px!important}
body.gc-screen.gc-arcade-penalti .role-banner small{display:none}
body.gc-screen.gc-arcade-penalti .penalty-square .panel{padding:4px!important}
body.gc-screen.gc-arcade-penalti .penalty-square .phase,body.gc-screen.gc-arcade-penalti .penalty-square .tip{display:none}
body.gc-screen.gc-arcade-penalti .penalty-square .choices .btn{min-height:44px!important;padding:7px!important}
body.gc-screen.gc-arcade-penalti .penalty-square .foot{margin:2px 0 0!important}
body.gc-screen.gc-arcade-penalti .penalty-square .foot .small{display:none}
body.gc-screen.gc-arcade-penalti .wrap>footer{display:none}
/* Portrait games get side scoreboards and level lists when held horizontally. */
@media(orientation:landscape) and (min-width:700px){
 body.gc-screen.gc-arcade-footgolf .gc-screen-root{display:grid!important;grid-template-columns:minmax(145px,1fr) minmax(0,3fr) minmax(130px,1fr);grid-template-rows:38px auto 1fr auto!important;gap:5px!important}
 body.gc-screen.gc-arcade-footgolf .gc-play-header{grid-column:1/-1!important;grid-row:1;margin:0!important;height:34px!important;min-height:34px!important}
 body.gc-screen.gc-arcade-footgolf .stage{grid-column:2;grid-row:2/5;height:100%;padding:0!important}
 body.gc-screen.gc-arcade-footgolf .recordbar{grid-column:1;grid-row:2;display:flex;flex-direction:column;align-items:stretch;padding:12px 8px!important;margin:0!important;overflow:hidden}
 body.gc-screen.gc-arcade-footgolf .recordinfo>div{white-space:normal!important}
 body.gc-screen.gc-arcade-footgolf .recordbar b{display:block;margin:5px 0!important}
 body.gc-screen.gc-arcade-footgolf .recordactions{margin-top:8px}
 body.gc-screen.gc-arcade-footgolf .stats{grid-column:1;grid-row:3;display:flex;flex-direction:column;justify-content:center;margin:0;gap:10px}
 body.gc-screen.gc-arcade-footgolf .stat{padding:12px 6px}
 body.gc-screen.gc-arcade-footgolf .levels{grid-column:3;grid-row:2/5;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:6px;height:100%!important;min-height:0!important;max-height:none!important;overflow:auto!important;touch-action:pan-y}
 body.gc-screen.gc-arcade-footgolf .level{min-height:50px!important;flex:none}
 body.gc-screen.gc-arcade-footgolf .message{grid-column:1;grid-row:4}
 body.gc-screen.gc-arcade-foottennis .gc-responsive-shell{grid-template-columns:minmax(100px,1fr) minmax(0,calc((var(--gc-viewport-height,100dvh) - 64px)*400/620)) minmax(100px,1fr)!important}
 body.gc-screen.gc-arcade-foottennis .gc-side{padding:12px!important}
 body.gc-screen.gc-arcade-freekick .layout{grid-template-columns:minmax(0,1fr) 240px!important}
}
.gc-rotate-hint{display:none}
@media(orientation:portrait){
 body.gc-screen .gc-rotate-hint{display:block;flex:0 0 auto;font:500 12px/1.4 system-ui;color:#b9c9bc;text-align:center;margin:2px 0}
 body.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot,.gc-responsive-shoot) .arena{margin:0 auto!important}
 body.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot) .gc-screen-root>:is(.low,.lower){display:block!important;flex:1 1 auto!important;overflow:auto!important}
 body.gc-screen .gc-shop-toggle{display:none}
 body.gc-screen .gc-screen-root>:is(.low,.lower) .shop{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body.gc-screen:not(.gc-shop-open) .gc-shop-close{display:none}
}
/* Short landscape phones: put information beside the pitch, not above it. */
@media(orientation:landscape) and (max-height:500px) and (min-width:700px){
 body.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot,.gc-responsive-shoot) .gc-screen-root{display:grid!important;grid-template-columns:180px minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr) auto!important;align-items:stretch!important}
 body.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot,.gc-responsive-shoot) .gc-screen-root>:is(header,.masthead){grid-column:1!important;grid-row:1!important;display:flex!important;flex-direction:column;align-items:stretch!important;gap:4px!important;padding:0!important;height:auto!important}
 body.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot,.gc-responsive-shoot) .gc-screen-root>:is(.hud,.stats,.scoreboard){grid-column:1!important;grid-row:2!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-content:center!important;min-width:0}
 body.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot,.gc-responsive-shoot) .gc-screen-root>.arena{grid-column:2!important;grid-row:1/4!important;align-self:center!important;margin:auto!important}
 body.gc-screen.gc-responsive-shoot .shop-area{grid-column:1!important;grid-row:3!important;min-width:0}
 body.gc-screen.gc-responsive-shoot .shop-bar{display:flex!important;flex-wrap:wrap;gap:3px!important}
 body.gc-screen.gc-responsive-shoot .ball-choices{flex-wrap:wrap}
 body.gc-screen.gc-responsive-longshot .brand{display:flex;flex-wrap:wrap;gap:3px}
 body.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot,.gc-responsive-shoot) :is(header,.masthead) :is(b,strong,h1){font-size:14px!important}
 body.gc-screen:is(.gc-responsive-zombie,.gc-responsive-longshot,.gc-responsive-shoot) :is(.actions,.headtools,.headright){display:flex;flex-wrap:wrap;gap:3px!important;margin:0!important}
 body.gc-screen.gc-responsive-shoot .gc-brand{flex-wrap:wrap}
 body.gc-screen.gc-responsive-longshot .shootbar.gc-mobile-below{grid-column:1;grid-row:3}
}
@media(orientation:landscape) and (min-width:700px){
 body.gc-screen.gc-arcade-freekick .gc-screen-root{height:var(--gc-viewport-height,100dvh)!important;max-height:var(--gc-viewport-height,100dvh)!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;gap:4px!important}
 body.gc-screen.gc-arcade-freekick .hero{flex:0 0 auto!important;margin:0!important}
 body.gc-screen.gc-arcade-freekick .scoreGrid{margin:0!important}
 body.gc-screen.gc-arcade-freekick .scoreCard{padding:4px 7px!important}
 body.gc-screen.gc-arcade-freekick .layout{display:grid!important;grid-template-columns:minmax(0,1fr) 240px!important;grid-template-rows:minmax(0,1fr)!important;flex:1 1 0!important;min-height:0!important;gap:5px!important}
 body.gc-screen.gc-arcade-freekick .layout>div:first-child{display:flex!important;flex-direction:column!important;min-height:0!important;min-width:0!important}
 body.gc-screen.gc-arcade-freekick .log{display:none!important}
 body.gc-screen.gc-arcade-freekick .stadiumWrap{flex:1 1 0!important;min-height:0!important;max-height:none!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important}
 body.gc-screen.gc-arcade-freekick #pitch{width:100%!important;height:100%!important;max-height:100%!important;object-fit:contain!important;aspect-ratio:auto!important}
 body.gc-screen.gc-arcade-freekick .layout>.panel{height:100%!important;max-height:100%!important;min-height:0!important;overflow:auto!important;padding:8px!important}
 body.gc-screen.gc-arcade-freekick .game:not(.hide){display:flex!important;flex-direction:column!important;gap:5px!important}
 body.gc-screen.gc-arcade-freekick .controlBlock{gap:4px!important;margin:0!important}
 body.gc-screen.gc-arcade-freekick .fine{display:none!important}
 body.gc-screen.gc-arcade-freekick .impactCanvas{width:76px!important;height:76px!important}
 body.gc-screen.gc-arcade-freekick .bigBtn{padding:10px 5px!important;font-size:14px!important;min-height:40px!important}
}
@media(orientation:landscape) and (max-height:500px) and (min-width:700px){
 body.gc-screen.gc-arcade-penalti .gc-screen-root{display:grid!important;grid-template-columns:105px minmax(0,1fr);grid-template-rows:38px minmax(0,1fr);gap:4px!important;overflow:hidden!important}
 body.gc-screen.gc-arcade-penalti .gc-play-header{grid-column:1/-1;grid-row:1;margin:0!important;height:34px!important;min-height:34px!important}
 body.gc-screen.gc-arcade-penalti .score{grid-column:1;grid-row:2;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:14px!important}
 body.gc-screen.gc-arcade-penalti .penalty-square{grid-column:2;grid-row:2;display:grid!important;grid-template-columns:minmax(0,1fr) 120px;grid-template-rows:auto minmax(0,1fr);height:100%!important;min-height:0!important;padding:0!important;margin:0!important}
 body.gc-screen.gc-arcade-penalti .penalty-square .stadium{grid-column:1;grid-row:1/3;max-width:100%!important;max-height:100%!important;width:100%!important;height:auto!important;align-self:center!important}
 body.gc-screen.gc-arcade-penalti .role-banner{grid-column:2;grid-row:1;text-align:center}
 body.gc-screen.gc-arcade-penalti .penalty-square .panel{grid-column:2;grid-row:2;display:flex!important;flex-direction:column;justify-content:center;gap:8px;min-height:0;overflow:auto}
 body.gc-screen.gc-arcade-penalti .choices{display:flex!important;flex-direction:column!important;gap:8px!important}
 body.gc-screen.gc-arcade-penalti .choices .btn{width:100%;font-size:14px!important}
}
.gc-history-toggle{display:none}
body.gc-screen .gc-history-toggle{display:inline-block;background:#1d4336;color:#e6ca85;border:1px solid #617954;border-radius:7px;min-height:30px;padding:4px 8px;font:700 11px system-ui;cursor:pointer}
body.gc-screen.gc-arcade-penalti.gc-history-open .history{display:flex!important;position:fixed;top:65px;left:8px;right:8px;z-index:400;max-height:90px;overflow:auto;background:#163529;border:1px solid #c8a45a;box-shadow:0 8px 25px #0009}
@media(orientation:landscape) and (max-height:500px) and (min-width:700px){
 body.gc-screen.gc-arcade-penalti .penalty-square .stadium{width:min(100%,calc((var(--gc-viewport-height,100dvh) - 54px)*5/3))!important;justify-self:center}
 body.gc-screen.gc-arcade-penalti .penalty-square .foot{display:flex!important;flex-direction:column;gap:4px}
}
