/* Standalone page chrome. Embedded/cabinet views never enable these rules. */
.standalone-game-nav{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;width:100%;max-width:1500px;min-height:54px;margin:0 auto;padding:4px max(12px,env(safe-area-inset-right)) 4px max(12px,env(safe-area-inset-left));background:#0d120b;border:1px solid #ffe43035;font:700 14px/1.3 Arial,sans-serif;touch-action:manipulation;user-select:text;-webkit-user-select:text}
.standalone-game-nav[hidden]{display:none!important}
.standalone-game-nav a{display:inline-flex;align-items:center;min-width:0;min-height:44px;padding:6px 0;color:#ffe430;text-decoration:none;border:0;background:none;font:inherit;letter-spacing:0;white-space:normal}
.standalone-game-nav a:last-child{margin-left:auto;text-align:right;justify-content:flex-end}
.standalone-game-nav a:hover{text-decoration:underline;text-underline-offset:4px}
.standalone-game-nav a:focus-visible{outline:3px solid #fff3a8;outline-offset:2px}
.standalone-game-nav small{display:block;margin:0 0 0 6px;font:12px Arial,sans-serif;color:#bfc5ad}
.standalone-nav-ready [data-standalone-nav-legacy],.standalone-nav-ready[data-standalone-game="stopslop"] .arcade-exit{display:none!important}
.standalone-game-nav-dialog{padding:0 0 8px;min-height:44px;margin-bottom:16px;border-width:0 0 1px;background:none}
.standalone-game-nav.dialog-navigation-open{visibility:hidden}
html.standalone-nav-ready[data-standalone-game="runner"] #standalone-game-nav,html.standalone-nav-ready[data-standalone-game="slop"] #standalone-game-nav,html.standalone-nav-ready[data-standalone-game="clash"] #standalone-game-nav{margin-bottom:10px}
html.standalone-nav-ready[data-standalone-game="breach"] #game,html.standalone-nav-ready[data-standalone-game="railbreak"] #game{height:calc(100dvh - var(--standalone-nav-height,54px));min-height:0}
html.standalone-nav-ready[data-standalone-game="stopslop"] body{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100svh;overflow:hidden}
html.standalone-nav-ready[data-standalone-game="stopslop"] #game{width:min(100vw,calc((100svh - var(--standalone-nav-height,54px)) * .63158));height:min(calc(100svh - var(--standalone-nav-height,54px)),calc(100vw * 1.58333));flex:none}
html.standalone-nav-ready[data-standalone-game="stopslop"] #standalone-game-nav{max-width:480px}
html.standalone-nav-ready[data-standalone-game="worldracers"] body{flex-direction:column;padding-top:0;align-items:center;justify-content:flex-start;--arcade-nav-height:0px}
html.standalone-nav-ready[data-standalone-game="worldracers"] #game{height:calc(100dvh - var(--standalone-nav-height,54px));flex:none}
html.standalone-nav-ready[data-standalone-game="worldracers"] #standalone-game-nav{max-width:480px}
html.standalone-nav-ready[data-standalone-game="neonrun"] #standalone-neon-viewport{position:relative;width:100%;height:calc(100dvh - var(--standalone-nav-height,54px));overflow:hidden}
html.standalone-nav-ready[data-standalone-game="neonrun"] #world,html.standalone-nav-ready[data-standalone-game="neonrun"] .vignette,html.standalone-nav-ready[data-standalone-game="neonrun"] #loading{position:absolute;inset:0}
@media(max-height:550px) and (orientation:landscape){html.standalone-nav-ready[data-standalone-game="clash"] #standalone-game-nav{margin-bottom:0}html.standalone-nav-ready[data-standalone-game="clash"] #stage{height:calc(100svh - 166px - var(--standalone-nav-height,54px));min-height:160px}html.standalone-nav-ready[data-standalone-game="clash"]:has(#standalone-game-nav:not([hidden])) #stage{min-height:0}}
@media(max-width:380px){.standalone-game-nav{gap:12px;font-size:13px}.standalone-game-nav small{font-size:11px}}

html.standalone-nav-ready:is([data-standalone-game="breach"],[data-standalone-game="railbreak"],[data-standalone-game="stopslop"],[data-standalone-game="neonrun"],[data-standalone-game="worldracers"],[data-standalone-game="lastcandle"]) #standalone-game-nav{padding-top:max(4px,env(safe-area-inset-top))}
