.arcade-menu-return{display:inline-flex!important;align-items:center;justify-content:center;min-height:48px;padding:12px 20px;margin:0 0 20px;border:2px solid #f5dfb4;border-radius:8px;background:#a51e25;color:#fff2d4!important;font:800 13px/1.3 Arial,sans-serif;letter-spacing:1px;text-decoration:none!important;touch-action:manipulation;box-sizing:border-box;max-width:100%}.arcade-menu-return:focus-visible{outline:3px solid #ffca61;outline-offset:4px}.arcade-menu-return:hover{background:#7f1820}

/* The menu scrolls, but its return control is anchored to the viewport.
   Keep the same alignment as .menu-content and reserve its 48px + 20px gap. */
#game{--arcade-menu-top:110px;--arcade-menu-left:7.5%;--arcade-menu-width:470px}
#game #menu{top:calc(var(--arcade-menu-top) + 68px);overflow-y:auto;overflow-x:hidden;scroll-padding-top:16px}
#game #menu::before{content:"";position:fixed;inset:0 0 auto;height:calc(var(--arcade-menu-top) + 68px);background:inherit;pointer-events:none}
#game #menu .menu-content{position:relative;top:auto;margin-top:0;padding-top:0}
#game #menu .arcade-menu-return{position:fixed;top:var(--arcade-menu-top);left:var(--arcade-menu-left);z-index:15;display:flex!important;width:var(--arcade-menu-width);max-width:calc(100% - 2 * var(--arcade-menu-left));min-height:48px;margin:0;box-shadow:0 4px 16px #0005}
@media(min-width:1000px) and (max-height:850px){#game{--arcade-menu-width:330px}}
@media(max-width:700px){#game{--arcade-menu-top:calc(92px + env(safe-area-inset-top));--arcade-menu-left:7%;--arcade-menu-width:min(86%,335px)}body:not(.racing) #game>.topbar{padding-top:calc(10px + env(safe-area-inset-top));height:calc(76px + env(safe-area-inset-top))}}
@media(max-height:560px) and (orientation:landscape){#game{--arcade-menu-top:68px;--arcade-menu-left:max(5%,env(safe-area-inset-left));--arcade-menu-width:min(300px,45%)}body:not(.racing) #game>.topbar{height:60px;padding-top:8px}}

/* Keep return controls in their original menu slots and visible during scroll. */
.slice-city-page>.game-header{position:sticky;top:0;z-index:5;background:#15171df5}
.slice-city-page .menu-card>.arcade-menu-return{position:sticky;top:0;z-index:4;box-shadow:0 4px 16px #0008}
.pizza-rush-page{--arcade-header-height:82px}
.pizza-rush-page>.topbar{position:sticky;top:0;z-index:15}
.pizza-rush-page .lobby-body>.arcade-menu-return{position:sticky;top:calc(var(--arcade-header-height) + 8px);z-index:10;box-shadow:0 4px 16px #0008}
@media(max-width:650px){.pizza-rush-page{--arcade-header-height:65px}}
@media(max-height:500px) and (orientation:landscape){.pizza-rush-page{--arcade-header-height:54px}}
