/* Controls are anchored inside the rendered arena on every game screen. */
:is(#weight-game,#food-game,.runner-game,.weight-game) .game-arena > .arcade-toolbar{
 position:absolute!important;top:8px!important;left:8px!important;right:8px!important;
 width:auto!important;max-width:none!important;display:flex!important;direction:rtl;
 justify-content:space-between!important;align-items:flex-start;gap:12px!important;
 margin:0!important;padding:0!important;border:0!important;background:none!important;
 box-shadow:none!important;z-index:100!important;pointer-events:none!important;
 box-sizing:border-box;isolation:isolate;flex-wrap:nowrap!important;
}
.arcade-toolbar-primary,.arcade-toolbar-access{
 display:flex;direction:rtl;align-items:center;gap:8px;flex:0 0 auto;
 pointer-events:auto;padding:0;background:none;border:0;
}
:is(#weight-game,#food-game,.runner-game,.weight-game) .arcade-toolbar button[data-toolbar-action]{
 position:relative!important;inset:auto!important;transform:none!important;
 margin:0!important;float:none!important;flex:0 0 auto!important;order:0!important;
 display:grid!important;place-items:center;box-sizing:border-box!important;
 width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
 padding:0!important;border:2px solid #d5b56d!important;border-radius:2px!important;
 background:linear-gradient(135deg,#34465d,#142239 70%)!important;
 box-shadow:2px 3px 0 #030914,inset 2px 2px #73829a,inset -2px -2px #0a1424!important;
 cursor:pointer;touch-action:manipulation;line-height:1!important;
}
.arcade-toolbar button img{display:block;width:30px;height:30px;image-rendering:pixelated;pointer-events:none;filter:drop-shadow(1px 1px 0 #020610)}
.arcade-toolbar button::before,.arcade-toolbar button::after{content:none!important;display:none!important}
.arcade-toolbar button:active{box-shadow:1px 1px 0 #030914,inset 2px 2px #0a1424!important}
.arcade-toolbar button:focus-visible{outline:3px solid #fff2bb;outline-offset:2px}
.arcade-toolbar button:disabled{opacity:.45}
.arcade-toolbar button[aria-pressed=true]{border-color:#8de1d4!important}
:is(#weight-game,#food-game,.runner-game,.weight-game) .arcade-toolbar button[data-toolbar-action=exit]{border-color:#ee6670!important}
.arcade-toolbar-original{display:none!important}
.weight-game .game-top{display:none!important}
:is(.weight-game,.quiz-shell,.new-game-shell,.plate-genesis) [data-full]:not([data-toolbar-action]){display:none!important}
:is(#weight-game,#food-game,.runner-game,.weight-game) .game-arena-pause{left:8px!important;right:auto!important;top:64px!important}
.weight-game .game-hud{top:76px!important}.weight-game .game-arena-timer{top:122px!important}
/* Leave the toolbar row free in titles, selections and instructions. */
:is(#weight-game,#food-game,.runner-game,.weight-game) .game-title-screen h3{top:64px!important;max-width:calc(100% - 24px)!important}
:is(#weight-game,#food-game,.runner-game,.weight-game) .game-character-screen .game-character-title{top:64px!important}
:is(#weight-game,#food-game,.runner-game,.weight-game) .game-retro-instructions{padding-top:64px!important;box-sizing:border-box}
@media(max-width:400px){
 .arcade-toolbar-primary{gap:6px}
 :is(#weight-game,#food-game,.runner-game,.weight-game) .arcade-toolbar button[data-toolbar-action]{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}
}

/* Desktop runner headings use the track below the portraits. */
@media (min-width:951px), (min-width:651px) and (pointer:fine){
 html body .weight-game.runner-game .game-title-screen h3,
 html body .weight-game.runner-game .game-character-screen .game-character-title{
  top:auto!important;bottom:72px!important;left:50%!important;right:auto!important;
  transform:translateX(-50%)!important;width:max-content!important;max-width:calc(100% - 32px)!important;
  font-size:clamp(18px,2vw,28px)!important;margin:0!important;padding:6px 12px!important;
 }
}
