@layer halo-material {
/* Strong selectors intentionally override the legacy edge-to-edge game overlays. */
body .au-games-pane{position:relative}
body .halo-game-container[hidden],body .halo-game-loading[hidden]{display:none!important}
body .halo-game-container{position:absolute!important;inset:0!important;z-index:90;display:grid!important;grid-template-rows:52px minmax(0,1fr);overflow:hidden;border-radius:inherit;background:var(--au-mat-canvas,#101a2e);color:var(--au-ink,#eef2ff);isolation:isolate}
body .halo-game-container-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 12px;background:var(--au-mat-panel,#172039);border-bottom:1px solid var(--au-mat-rim,#ffffff22);z-index:500}
body .halo-game-container-title{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:15px}
body .au-games-player-open .au-games-pane>:not(.halo-game-container){visibility:hidden!important;pointer-events:none!important}
body .halo-game-container-actions{display:flex;gap:6px;flex-shrink:0}
body .halo-game-container-bar button{width:38px;height:38px;padding:8px;border:1px solid var(--au-mat-rim,#ffffff22);border-radius:12px;background:var(--au-mat-control,#ffffff11);color:inherit;display:grid;place-items:center}
body .halo-game-container-bar svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body .halo-game-container-stage{position:relative;min-width:0;min-height:0;overflow:hidden;background:#0d1625}
body .halo-game-container .halo-game-container-stage>:is(.hg-arena,#halo-crossfire-host,#halo-ironfront-host,#halo-racing-host,#halo-game-runner-modal){position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;max-width:none!important;max-height:none!important;z-index:1!important;border-radius:0!important;margin:0!important;padding:0!important;transform:none!important}
body .halo-game-container .halo-game-container-stage iframe{display:block!important;width:100%!important;height:100%!important;border:0!important}
body .halo-game-container .hg-stage{position:absolute!important;inset:0!important;width:100%!important;height:100%!important}
body .halo-game-container .hg-rotate{display:none!important}
body .halo-game-container #halo-game-runner-modal{display:block!important;background:transparent!important;backdrop-filter:none!important}
body .halo-game-container .halo-runner-shell{width:100%!important;height:100%!important;border:0!important;border-radius:0!important;display:flex!important;flex-direction:column!important}
body .halo-game-container .halo-runner-stage{flex:1;min-height:0;position:relative!important;inset:auto!important}
body .halo-game-container .halo-runner-header{display:none!important}
body .halo-game-loading{position:absolute;inset:52px 0 0;z-index:400;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:24px;text-align:center;background:var(--au-mat-panel,#16223b);backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px)}
body .halo-game-loading-logo{width:60px;height:60px}
body .halo-game-loading p{margin:0;max-width:30em}
body .halo-game-loading progress{width:min(260px,80%);height:6px;accent-color:#a480ff}
body .halo-game-loading button{padding:10px 16px;border-radius:12px;color:inherit;background:var(--au-mat-control,#ffffff11);border:1px solid var(--au-mat-rim,#ffffff22)}
html body .halo-game-container.is-fullscreen,html body .halo-game-container:fullscreen{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;border-radius:0!important;z-index:2147483600!important;background:#111b2c}
/* Embedded player keeps Halo navigation visible; the game engine still owns its native controls. */
html:has(body.halo-game-docked),html body.halo-game-docked{overflow:hidden!important}
html body.halo-game-docked #social-shell{display:flex!important;visibility:visible!important}
html body.halo-game-docked .au-dock-zone{display:flex!important;visibility:visible!important}
@media(max-width:900px){body.au-games-mode .au-games-layout.au-games-player-open{grid-template-columns:minmax(0,1fr)!important}body.au-games-mode .au-games-player-open>.au-games-sidebar{display:none!important}body.au-games-mode .au-games-player-open>.au-games-pane{display:block!important}body .halo-game-container{grid-template-rows:48px minmax(0,1fr)}body .halo-game-container-bar{padding:4px 8px}body .halo-game-loading{top:48px}}
@media(prefers-reduced-transparency:reduce){body .halo-game-loading{background:#16223b;backdrop-filter:none}}

}

@layer halo-material {
body.social-authenticated #halo-translation-dialog[open]{position:fixed!important;inset:16px!important;margin:auto!important;transform:none!important;max-height:calc(100dvh - 32px)!important;height:max-content!important;box-sizing:border-box!important;overflow:auto!important}
}
