/* FIX3: Foot Golf only. Layout and CSS pixel fit; the 480 x 640 game world is unchanged. */
body.gc-arcade-footgolf .app.gc-play-layout .canvasWrap {
  width:var(--gc-golf-fit-width, auto)!important;
  height:var(--gc-golf-fit-height, 100%)!important;
  max-width:100%!important;max-height:100%!important;
  aspect-ratio:auto!important;flex:none!important;
}
body.gc-arcade-footgolf .app.gc-play-layout .canvasWrap canvas {
  width:100%!important;height:100%!important;
}
body.gc-arcade-footgolf .canvasWrap .overlay {
  padding:8px!important;overflow:auto;overscroll-behavior:contain;
}
body.gc-arcade-footgolf .canvasWrap .modal {
  max-height:100%;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;
}
@media (orientation:landscape) and (min-width:560px) {
  body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root {
    display:grid!important;grid-template-columns:minmax(120px,1fr) minmax(0,3fr) minmax(104px,1fr)!important;
    grid-template-rows:44px minmax(0,1fr) minmax(0,1.4fr) auto!important;
    gap:6px!important;width:100%!important;max-width:1200px!important;
    height:var(--gc-viewport-height,100dvh)!important;min-height:0!important;
    max-height:var(--gc-viewport-height,100dvh)!important;
    padding:max(4px,env(safe-area-inset-top)) max(7px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left))!important;
    overflow:hidden!important;
  }
  body.gc-screen.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root {max-width:none!important;}
  body.gc-arcade-footgolf .app.gc-play-layout>.gc-play-header {
    grid-column:1/-1!important;grid-row:1!important;min-height:0!important;height:44px!important;
    margin:0!important;padding:0 0 3px!important;flex-wrap:nowrap!important;
  }
  body.gc-arcade-footgolf .app.gc-play-layout>.stage {
    grid-column:2!important;grid-row:2/5!important;min-width:0!important;min-height:0!important;
    height:100%!important;max-height:100%!important;overflow:hidden!important;padding:3px 0 5px!important;
    display:flex!important;justify-content:center!important;align-items:center!important;
  }
  body.gc-arcade-footgolf .app.gc-play-layout>.recordbar {
    grid-column:1!important;grid-row:2!important;min-width:0!important;min-height:0!important;
    display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;
    gap:5px!important;margin:0!important;padding:6px!important;overflow:auto!important;touch-action:pan-y;
  }
  body.gc-arcade-footgolf .recordinfo {overflow:visible!important;}
  body.gc-arcade-footgolf .recordinfo>div {white-space:normal!important;overflow:visible!important;}
  body.gc-arcade-footgolf .recordbar b {display:inline!important;margin:0 0 0 4px!important;font-size:18px!important;}
  body.gc-arcade-footgolf .recordbar small {white-space:normal!important;line-height:1.35!important;}
  body.gc-arcade-footgolf .recordactions {margin:0!important;}
  body.gc-arcade-footgolf .recordactions .btn {width:100%;min-height:38px;white-space:normal!important;}
  body.gc-arcade-footgolf .recordbar .gc-save-notice {flex:0 0 auto!important;width:100%!important;font-size:11px!important;line-height:1.25!important;}
  body.gc-arcade-footgolf .app.gc-play-layout>.stats {
    grid-column:1!important;grid-row:3!important;min-height:0!important;
    display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;
    gap:4px!important;margin:0!important;
  }
  body.gc-arcade-footgolf .stats .stat {min-height:0!important;padding:3px!important;display:flex;flex-direction:column;justify-content:center;}
  body.gc-arcade-footgolf .app.gc-play-layout>.message {grid-column:1!important;grid-row:4!important;font-size:11px!important;line-height:1.3!important;margin:0!important;}
  body.gc-arcade-footgolf .app.gc-play-layout>.levels {
    grid-column:3!important;grid-row:2/5!important;min-height:0!important;height:100%!important;max-height:none!important;
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-content:start!important;
    gap:5px!important;overflow-x:hidden!important;overflow-y:auto!important;touch-action:pan-y!important;
    overscroll-behavior:contain;padding:2px!important;
  }
  body.gc-arcade-footgolf .levels .level {min-width:0!important;min-height:44px!important;max-width:100%;flex:none!important;}
  body.gc-arcade-footgolf .app.gc-play-layout>.footer {display:none!important;}
  body.gc-arcade-footgolf .canvasWrap .modal {padding:12px!important;}
  body.gc-arcade-footgolf .canvasWrap .modal h2 {font-size:22px!important;}
  body.gc-arcade-footgolf .canvasWrap .modal p {margin:8px 0!important;}
  body.gc-arcade-footgolf .canvasWrap .modal .btn {min-height:40px;}
}
