/* 1.0.095: one-row mobile navigation, original controls retained. */
.sga{--game-navigation-ready:1}
.sga .sga-compact-playbar[hidden],.sga .sga-compact-count[hidden],.sga .sga-compact-title small[hidden],.sga .sga-compact-menu:not([open]){display:none!important}
.sga .sga-compact-playbar{display:flex;align-items:center;gap:4px;padding:max(4px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) 4px max(6px,env(safe-area-inset-left));min-height:52px;box-sizing:border-box;background:#151e35;border-bottom:1px solid #35415b;width:100%;color:#f6f7ff}
.sga .sga-compact-title{flex:1;min-width:0;padding:0 3px;display:grid;align-content:center;gap:2px;line-height:1.15}
.sga .sga-compact-title strong{font-size:clamp(13px,3.8vw,18px);font-weight:800;overflow-wrap:anywhere;line-height:1.12}
.sga .sga-compact-title small{font-size:11px;color:#c4cce1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sga .sga-compact-action{position:relative;display:grid;place-items:center;min-width:44px;width:44px;min-height:44px;height:44px;flex:0 0 44px;box-sizing:border-box;padding:0;color:#eaf1ff;background:#21314a;border:1px solid #465975;border-radius:10px;text-decoration:none;cursor:pointer;line-height:1}
.sga .sga-compact-action:focus-visible,.sga .sga-compact-menu :is(button,a):focus-visible{outline:2px solid #d5c7ff;outline-offset:2px}
.sga .sga-compact-action:hover{background:#344968}
.sga .sga-compact-icon{display:grid;place-items:center;width:22px;height:22px}.sga .sga-compact-icon svg{width:100%;height:100%;display:block}
.sga .sga-compact-action[data-game-full-proxy]{background:#473984;border-color:#9381da}
.sga .sga-compact-count{position:absolute;right:2px;top:2px;padding:2px 3px;min-width:15px;box-sizing:border-box;border-radius:8px;background:#a63250;color:white;font-size:10px;line-height:1.1;text-align:center}
.sga.sga-compact-navigation>.world-header,.sga.sga-compact-navigation>.world-nav,.sga.sga-compact-navigation :is(.sga-four-heading,.sga-heading,.arcade-heading),.sga.sga-compact-navigation :is(.sga-four-tabs,.sga-tabs){display:none!important}
.sga.sga-compact-navigation:not(.mr):not(.sga-arcade) :is(.sga-four-layout,#sga-game-workspace){padding:4px!important;max-width:100%;box-sizing:border-box}
.sga.sga-compact-navigation:not(.mr):not(.sga-arcade) :is(.sga-four-main,.sga-play){padding:5px!important;gap:4px!important;border-radius:10px}
.sga.sga-compact-navigation :is(.sga-four-players,.sga-players){gap:4px;margin:0 auto}
.sga.sga-compact-navigation :is(.sga-four-player,.sga-player){min-height:38px;padding:4px 6px;gap:5px}
.sga.sga-compact-navigation :is(.sga-four-player,.sga-player) strong{font-size:12px;line-height:1.2}
.sga.sga-compact-navigation :is(.sga-four-player,.sga-player) small{font-size:10px;line-height:1.2}
.sga.sga-compact-navigation :is(.sga-four-status,.sga-status){padding:3px 4px;font-size:13px;line-height:1.25;margin:0 auto}
.sga.sga-compact-navigation.sga-arcade .arcade-main{padding:4px 5px 8px}
.sga.blockrush.sga-compact-navigation .arcade-workspace{grid-template-rows:auto minmax(0,1fr) auto auto;grid-template-areas:'hud' 'board' 'controls' 'status';height:clamp(350px,calc(100dvh - 65px),960px)}
@media (orientation:landscape) and (max-height:520px){.sga.blockrush.sga-compact-navigation .arcade-workspace{grid-template-rows:minmax(0,1fr) auto;grid-template-areas:'hud board controls' 'hud board status';height:clamp(280px,calc(100dvh - 62px),960px)}}
.sga .sga-compact-menu{color:#f5f7ff;background:#152238;border:1px solid #536682;border-radius:16px;padding:0;width:min(460px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);box-sizing:border-box;overflow:auto;overscroll-behavior:contain;box-shadow:0 24px 70px #0008;margin:auto}
.sga .sga-compact-menu::backdrop{background:#07101bd9}
.sga .sga-compact-menu>header{display:flex;align-items:center;justify-content:space-between;gap:8px;position:sticky;top:0;padding:12px;background:#192940;z-index:1;border-bottom:1px solid #405470}
.sga .sga-compact-menu>header h2{margin:2px 0 0;font-size:20px;line-height:1.2}.sga .sga-compact-menu>header small{font-size:10px;letter-spacing:1px;color:#c4b5fd}
.sga .sga-compact-menu-body{padding:10px 12px 14px;display:grid;gap:12px}
.sga .sga-compact-menu section{display:grid;gap:5px;min-width:0}.sga .sga-compact-menu section h3{margin:0 0 2px;font-size:12px;color:#b9c9de;letter-spacing:.3px}
.sga .sga-compact-menu :is(button,a){display:flex;align-items:center;justify-content:flex-start;min-height:44px;padding:8px 11px;background:#22354e;border:1px solid #4b5f7c;border-radius:9px;color:#f5f7ff;font-size:14px;font-weight:650;text-align:left;box-sizing:border-box;text-decoration:none;cursor:pointer;white-space:normal;overflow-wrap:anywhere}
.sga .sga-compact-menu>header button{width:44px;height:44px;justify-content:center;font-size:22px;padding:0}
.sga .sga-compact-menu .sga-compact-mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.sga .sga-compact-menu .sga-compact-mode-grid button{justify-content:center;text-align:center;padding:5px 3px;font-size:12px}
.sga .sga-compact-menu button[aria-pressed=true]{background:#5546a2;border-color:#b9a7ff}.sga .sga-compact-menu button:disabled{opacity:.5;cursor:default}
.sga .world-focus-bar .sga-compact-action[data-game-friends]{margin-left:auto}
/* Keep the race HUD's existing dedicated exit; the common topbar disappears on entry. */
