/* Direct game navigation and shared exit. */
#gameActionsMenu .game-actions-dropdown {overflow:visible;box-sizing:border-box;max-width:calc(100vw - 12px);width:240px}
#gameActionsMenu .game-actions-dropdown [hidden]{display:none!important}
#gameActionsMenu .game-actions-dropdown > :is(a,button){min-height:36px;line-height:1.3;white-space:normal;font-size:12px;box-sizing:border-box;text-align:left}
#gameActionsMenu .game-actions-dropdown [aria-current="page"]{border-color:var(--mca-ui-accent-border,#74b5ee)}
.topbar .mca-exit-button{background:color-mix(in srgb,var(--mca-ui-accent) 20%,var(--mca-ui-panel))!important;border:1px solid var(--mca-ui-accent-strong)!important;color:var(--mca-ui-ink)!important;text-decoration:none;font-weight:800!important;white-space:nowrap}
.topbar .mca-exit-button:hover,.topbar .mca-exit-button:focus-visible{background:color-mix(in srgb,var(--mca-ui-accent) 32%,var(--mca-ui-panel))!important;outline:2px solid var(--mca-ui-accent-strong);outline-offset:2px}
@media(max-width:768px),(pointer:coarse) and (max-width:1280px){
 #gameActionsMenu .game-actions-dropdown > :is(a,button){min-height:42px}
 /* Keep the language selector in the header, never in the player row. */
 body:has(.game-layout):not(.mca-analyzer-site) .app > .topbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto!important;height:auto!important;min-height:0!important;gap:6px!important;padding:7px 8px!important;overflow:visible!important;align-items:center!important}
 body:has(.game-layout):not(.mca-analyzer-site) .topbar > .brand{grid-column:1;grid-row:1;min-width:0!important;width:auto!important;height:auto!important;max-width:100%!important;justify-content:flex-start!important}
 body:has(.game-layout):not(.mca-analyzer-site) .topbar .brand .game-brand-name{display:none!important}
 body:has(.game-layout):not(.mca-analyzer-site) .topbar .brand h1{font-size:clamp(10px,3vw,15px)!important;white-space:normal!important;line-height:1.15!important}
 body:has(.game-layout):not(.mca-analyzer-site) .topbar > :is(.mca-site-language,.mca-language-inline-wrap){grid-column:2;grid-row:1;position:static!important;inset:auto!important;transform:none!important;margin:0!important;max-width:95px!important;width:95px!important;justify-self:end!important;display:flex!important}
 body:has(.game-layout):not(.mca-analyzer-site) .topbar :is(.mca-site-language-select,.mca-language-select){width:95px!important;max-width:95px!important;min-width:0!important;font-size:11px!important;padding:4px!important}
 body:has(.game-layout):not(.mca-analyzer-site) .topbar > .top-actions{grid-column:1/-1;grid-row:2;margin:0!important;width:100%!important;position:static!important;min-width:0!important}
}
