/* Foot Golf only — leaves shared layouts and all other games untouched. */
body.gc-arcade-footgolf{background:#0d1f18;}
body.gc-arcade-footgolf .app.gc-play-layout,body.gc-screen.gc-arcade-footgolf .app.gc-play-layout{
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;
 grid-template-rows:38px 36px auto 40px minmax(0,1fr) auto 48px!important;
 gap:5px!important;height:var(--gc-viewport-height,100dvh)!important;max-height:var(--gc-viewport-height,100dvh)!important;
 padding:max(5px,env(safe-area-inset-top)) max(9px,env(safe-area-inset-right)) max(7px,env(safe-area-inset-bottom)) max(9px,env(safe-area-inset-left))!important;
 width:100%!important;max-width:1000px!important;margin:auto!important;overflow:hidden!important;
}
body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.gc-play-header{grid-column:1!important;grid-row:1!important;height:38px!important;min-height:0!important;margin:0!important;padding:0 0 3px!important;flex-wrap:nowrap!important;gap:5px!important;}
body.gc-arcade-footgolf .app .gc-play-brand{font-size:18px!important;letter-spacing:-.5px!important;}
body.gc-arcade-footgolf .app .gc-game-title{font-size:17px!important;margin:0!important;letter-spacing:-.5px!important;white-space:nowrap!important;}
body.gc-arcade-footgolf .app .gc-play-actions{gap:4px!important;}
body.gc-arcade-footgolf .app #goalcu-language{position:static!important;flex:none!important;margin:0!important;}
body.gc-arcade-footgolf .app #goalcu-language button{padding:5px 7px!important;font-size:11px!important;min-height:30px!important;}
body.gc-arcade-footgolf .app .gc-screen-inline{position:static!important;margin:0!important;}
body.gc-arcade-footgolf .app #gc-screen-toggle{font-size:10px!important;min-height:30px!important;padding:5px!important;}
body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.fg-modes{grid-column:1!important;grid-row:2!important;display:flex!important;gap:5px;min-width:0;}
.fg-modes button{border:1px solid #3d5f4b;border-radius:9px;background:#163529;color:#eef4ec;font:800 12px system-ui;min-height:34px;cursor:pointer;touch-action:manipulation;padding:5px 10px;}
.fg-modes button[aria-pressed="true"]{background:#c8a45a;color:#0d1f18;border-color:#e4c684;}
.fg-modes .mode-pill{flex:1;}
.fg-modes .score-button{flex:0 0 auto;}
body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.recordbar{grid-column:1!important;grid-row:3!important;min-height:0!important;margin:0!important;padding:6px 9px!important;gap:6px!important;max-height:112px;overflow:auto;touch-action:pan-y;}
body.gc-arcade-footgolf .app .recordinfo>div{white-space:normal!important;}
body.gc-arcade-footgolf .app .recordbar b{font-size:15px!important;color:#edcb83!important;}
body.gc-arcade-footgolf .app .recordbar span{font-size:9px!important;}
body.gc-arcade-footgolf .app .recordbar small{font-size:10px!important;line-height:1.35!important;white-space:normal!important;}
body.gc-arcade-footgolf .app #courseName{font-weight:700;color:#d9e4d8;}
body.gc-arcade-footgolf .app #legacyBest{color:#adc1ae;font-size:9px!important;}
body.gc-arcade-footgolf .recordactions{gap:4px!important;}
body.gc-arcade-footgolf .recordactions .btn{font-size:11px!important;min-height:36px!important;padding:7px!important;}
body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.stats{grid-column:1!important;grid-row:4!important;margin:0!important;min-height:0!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-rows:1fr!important;gap:5px!important;}
body.gc-arcade-footgolf .stats .stat{padding:3px!important;min-height:0!important;}
body.gc-arcade-footgolf .stats .stat b{font-size:16px!important;}
body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.stage{grid-column:1!important;grid-row:5!important;height:100%!important;min-height:0!important;padding:1px 0 5px!important;overflow:hidden!important;}
body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.message{grid-column:1!important;grid-row:6!important;font-size:10px!important;margin:0!important;min-height:0!important;}
body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.levels{grid-column:1!important;grid-row:7!important;display:flex!important;height:46px!important;max-height:46px!important;min-height:0!important;overflow-x:auto!important;overflow-y:hidden!important;touch-action:pan-x!important;padding:0!important;gap:5px!important;}
body.gc-arcade-footgolf .levels .level{flex:0 0 44px!important;min-height:44px!important;min-width:0!important;cursor:pointer;}
body.gc-arcade-footgolf .levels .level.completed:not(.active){border-color:#83b088!important;}
body.gc-arcade-footgolf .levels .level.active{background:#c8a45a!important;}
body.gc-arcade-footgolf .app .overlay{position:fixed!important;inset:0!important;width:auto!important;height:auto!important;z-index:100000!important;background:#061b16e8!important;padding:max(12px,env(safe-area-inset-top)) 14px max(12px,env(safe-area-inset-bottom))!important;align-items:center!important;justify-content:center!important;overflow:hidden!important;}
body.gc-arcade-footgolf .app .overlay.hidden{display:none!important;}
body.gc-arcade-footgolf .app .modal{width:min(430px,100%)!important;max-height:100%!important;padding:20px!important;border:1px solid #a98b4c!important;background:#163529!important;border-radius:16px!important;overflow:auto!important;touch-action:pan-y!important;overscroll-behavior:contain;}
body.gc-arcade-footgolf .app .modal h2{font-size:22px!important;line-height:1.2!important;}
body.gc-arcade-footgolf .app .modal p{font-size:14px!important;white-space:pre-line;line-height:1.5!important;}
body.gc-arcade-footgolf .app .modal .btn{min-height:42px!important;padding:10px 13px!important;font-size:13px!important;}
body.gc-arcade-footgolf .app .modal .btn.primary{background:#c8a45a!important;color:#0d1f18!important;border-color:#e4c684!important;}
.score-table{border-collapse:collapse;width:100%;font-size:13px;margin:10px 0 15px;}
.score-table th,.score-table td{padding:7px 6px;border-bottom:1px solid #365746;text-align:center;}
.score-table th{color:#e4bd78;font-size:11px;}
.score-table .current-hole{background:#274a39;}
body.gc-arcade-footgolf .app button:focus-visible{outline:2px solid #f1d592!important;outline-offset:2px!important;}
@media(max-width:370px){
 body.gc-arcade-footgolf .app .gc-play-brand{font-size:14px!important;}
 body.gc-arcade-footgolf .app .gc-game-title{font-size:14px!important;}
 body.gc-arcade-footgolf .app .gc-play-divider{display:none!important;}
 body.gc-arcade-footgolf .app #gc-screen-toggle{font-size:9px!important;padding:3px!important;}
 .fg-modes button{font-size:11px;padding:4px 7px;}
}
@media(orientation:landscape) and (min-width:560px){
 body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root,body.gc-screen.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root{
  grid-template-columns:minmax(145px,1fr) minmax(0,2.9fr) minmax(90px,.75fr)!important;
  grid-template-rows:38px auto auto minmax(0,1fr) auto!important;max-width:1400px!important;gap:6px!important;
 }
 body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.gc-play-header{grid-column:1/-1!important;grid-row:1!important;}
 body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.fg-modes{grid-column:1!important;grid-row:2!important;flex-wrap:wrap;}
 body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.fg-modes .mode-pill{flex:1 1 43%;padding:5px 3px;}
 body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.fg-modes .score-button{width:100%;min-height:30px;}
 body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.recordbar{grid-column:1!important;grid-row:3!important;flex-direction:column!important;align-items:stretch!important;padding:6px!important;max-height:140px;}
 body.gc-arcade-footgolf .recordactions{display:flex!important;}
 body.gc-arcade-footgolf .recordactions #retry{flex:1!important;width:auto!important;}
 body.gc-arcade-footgolf .recordactions #help{flex:none!important;width:30px!important;}
 body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.stats{grid-column:1!important;grid-row:4!important;grid-template-columns:1fr!important;grid-template-rows:repeat(3,minmax(0,1fr))!important;gap:3px!important;}
 body.gc-arcade-footgolf .stats .stat{display:flex!important;align-items:center;justify-content:space-between;flex-direction:row!important;padding:3px 6px!important;}
 body.gc-arcade-footgolf .stats .stat span{font-size:9px!important;}
 body.gc-arcade-footgolf .stats .stat b{font-size:15px!important;}
 body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.message{grid-column:1!important;grid-row:5!important;}
 body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.stage{grid-column:2!important;grid-row:2/6!important;}
 body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.levels{grid-column:3!important;grid-row:2/6!important;height:100%!important;max-height:none!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-content:start!important;overflow-x:hidden!important;overflow-y:auto!important;touch-action:pan-y!important;padding:2px!important;}
 body.gc-arcade-footgolf .app .levels .level{flex:none!important;min-height:44px!important;}
}
@media(orientation:landscape) and (max-height:400px){
 body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.recordbar{max-height:110px!important;}
 body.gc-arcade-footgolf .app .recordbar small{font-size:9px!important;}
 body.gc-arcade-footgolf .app #courseName{display:none;}
 body.gc-arcade-footgolf .app .recordbar b{font-size:13px!important;}
}
/* Shared styles use high-specificity header rules; contain the four controls in one row. */
body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.gc-play-header{
 display:grid!important;grid-template-columns:auto minmax(0,1fr) auto auto!important;
 align-items:center!important;justify-content:stretch!important;gap:6px!important;flex-wrap:nowrap!important;
 min-height:0!important;height:38px!important;max-height:38px!important;padding:0 0 3px!important;margin:0!important;
}
body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.gc-play-header .gc-play-divider{display:none!important;}
body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.gc-play-header .gc-play-brand{font-size:16px!important;line-height:1!important;}
body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.gc-play-header h1{font-size:15px!important;line-height:1!important;overflow:hidden!important;text-overflow:ellipsis!important;}
body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.gc-play-header .gc-play-actions{margin:0!important;gap:0!important;width:30px!important;height:30px!important;}
body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.gc-play-header .gc-play-home{display:none!important;}
body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.gc-play-header .gc-screen-tools{width:30px!important;height:30px!important;}
body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.gc-play-header #gc-screen-toggle{
 width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;max-height:30px!important;padding:0!important;font-size:0!important;line-height:1!important;white-space:nowrap!important;
}
body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.gc-play-header #gc-screen-toggle:before{content:'⛶';font-size:18px;}
body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.gc-play-header #goalcu-language{height:32px!important;width:auto!important;min-width:0!important;padding:1px!important;gap:1px!important;margin:0!important;}
body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.gc-play-header #goalcu-language button{min-height:28px!important;height:28px!important;min-width:28px!important;padding:3px 6px!important;font-size:10px!important;line-height:1!important;}
@media(max-width:350px){body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.gc-play-header .gc-play-brand{font-size:14px!important;}body.gc-arcade-footgolf .app.gc-play-layout.gc-screen-root>.gc-play-header h1{font-size:13px!important;}}
