/* GOALCU V17 TEST: Ekran oranini bozmayan esnek yerlesimler.
   Oyun mantigi, puanlar, ilerleme ve canvas koordinatlari bu dosyada degismez. */
:root { --gc-ui-green:#163529; --gc-ui-green2:#1d4336; --gc-ui-gold:#c8a45a; }
html { -webkit-text-size-adjust:100%; }
button, a { -webkit-tap-highlight-color:transparent; }
button:focus-visible, a:focus-visible { outline:2px solid #e4cb83;outline-offset:2px; }
/* Small devices should not be forced into horizontal viewport overflow. */
.gc-arcade-theme, body.gc-game-responsive { max-width:100%; }
.gc-arcade-theme :is(.gc-play-layout,.wrap,.shell,.app),
body.gc-game-responsive :is(.wrap,.shell) { min-width:0; }
/* Don't stretch existing canvas rasters. Other games already have their own
   fixed world sizes and bespoke pointer coordinate mapping. */
.gc-arcade-freekick #pitch { width:100%;height:auto;aspect-ratio:820/600;max-width:100%; }
.gc-arcade-footgolf .canvasWrap { aspect-ratio:3/4; }
.gc-arcade-footgolf .canvasWrap canvas { width:100%;height:100%; }
.gc-arcade-penalti .penalty-square { max-width:100%; }
@media(max-width:600px) {
 .gc-arcade-freekick .shell.gc-play-layout {padding:6px!important;}
 .gc-arcade-freekick .scoreGrid {gap:4px!important;}
 .gc-arcade-penalti .wrap {padding-left:8px;padding-right:8px;}
 .gc-arcade-footgolf .app {padding-left:6px;padding-right:6px;}
}
/* Shoot Them already renders the 1000x560 canvas without distortion.
   HUD wraps instead of forcing horizontal scrolling on narrow devices. */
body.gc-responsive-shoot .scoreboard {min-width:0;}
body.gc-responsive-shoot .stat {min-width:0;}
body.gc-responsive-shoot .stat b {overflow-wrap:anywhere;white-space:normal;}
@media(max-width:699px) {
 body.gc-responsive-shoot .masthead {gap:5px;}
 body.gc-responsive-shoot .actions {gap:4px;}
 body.gc-responsive-shoot .scoreboard {gap:4px;}
}
/* Zombie: its world and native canvas are 960x540. The portrait 3:4
   canvas box from the original CSS distorted players and circles.
   Preserve native 16:9, including in fullscreen fallback. */
body.gc-responsive-zombie .arena {aspect-ratio:16/9!important;min-height:0!important;height:auto!important;}
body.gc-responsive-zombie .arena canvas#game {width:100%;height:100%;object-fit:contain;}
body.gc-responsive-zombie.immersive .wrap {position:fixed;inset:0;height:100dvh;max-width:none;display:flex;flex-direction:column;overflow:auto;}
body.gc-responsive-zombie.immersive .arena {flex:0 0 auto;width:min(100%,calc((100dvh - 195px)*16/9));max-height:calc(100dvh - 195px);margin-inline:auto;}
body.gc-responsive-zombie.immersive .low {flex:1 1 auto;min-height:0;overflow:auto;}
@media(max-width:650px) {
 body.gc-responsive-zombie .wrap {gap:6px;padding:6px;}
 body.gc-responsive-zombie .hud {gap:4px;}
 body.gc-responsive-zombie .hud div {padding:5px 4px;}
 body.gc-responsive-zombie .joy {width:clamp(54px,20vw,80px);height:clamp(54px,20vw,80px);left:8px;bottom:8px;border-width:2px;}
 body.gc-responsive-zombie .knob {width:40%;height:40%;left:30%;top:30%;}
 /* Menus need legible height; game pitch stays unmodified underneath. */
 body.gc-responsive-zombie .overlay:not([hidden]) {position:fixed;inset:0;z-index:110;overflow:auto;padding:calc(10px + env(safe-area-inset-top)) 12px calc(10px + env(safe-area-inset-bottom));}
 body.gc-responsive-zombie .overlay .box {margin:auto;max-height:100%;overflow:auto;}
 body.gc-responsive-zombie .low {padding:8px;}
 body.gc-responsive-zombie .shop {gap:4px;}
}
/* Long Shot: native 960x540 pitch; mobile height:43dvh from V16.9
   distorted it. Put the shot timing controls below the field on phones. */
body.gc-responsive-longshot .arena {aspect-ratio:16/9!important;height:auto!important;min-height:0!important;max-height:none!important;width:100%;flex:0 0 auto;}
body.gc-responsive-longshot .arena canvas#game {display:block;width:100%;height:100%;object-fit:contain;}
body.gc-responsive-longshot .shootbar.gc-mobile-below {position:relative!important;bottom:auto!important;left:auto!important;transform:none!important;width:100%!important;max-width:none!important;margin:0;border-radius:11px;box-shadow:none;}
body.gc-responsive-longshot .shootbar.gc-mobile-below:not([hidden]){display:block}
body.gc-responsive-longshot .shootbar.gc-mobile-below .track{height:20px;}
@media(max-width:700px){
 body.gc-responsive-longshot .shell {gap:6px;}
 body.gc-responsive-longshot .stats {gap:4px;}
 body.gc-responsive-longshot .stats b {font-size:clamp(12px,3.9vw,16px);}
 body.gc-responsive-longshot .lower {padding:7px;}
 body.gc-responsive-longshot .shop {grid-template-columns:repeat(2,minmax(0,1fr));}
 body.gc-responsive-longshot .shopHint {display:none;}
 body.gc-responsive-longshot .note {font-size:10px;}
 body.gc-responsive-longshot .shootbar.gc-mobile-below button {min-height:42px;margin-top:6px;}
}
/* All arcade touch targets should remain usable, even in 360px layouts. */
@media(pointer:coarse){
 body.gc-responsive-longshot .headright button,
 body.gc-responsive-zombie #pause,
 body.gc-responsive-shoot .shop-bar button {touch-action:manipulation;}
}

@media(max-width:700px){
 body.gc-responsive-longshot .result:not([hidden]){position:fixed;inset:0;z-index:140;display:flex;align-items:center;justify-content:center;overflow-y:auto;padding:calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));background:#071e17dd;}
 body.gc-responsive-longshot .resultbox {margin:auto;max-height:100%;overflow:auto;max-width:360px;}
}
