/* Match the existing medicine and serum slots; retain the original desktop dock. */
#game-shell .action-dock #quick-energy-button{order:7;gap:3px;padding:8px 5px;overflow:hidden}
#game-shell .action-dock #quick-energy-button strong{display:block;line-height:1.6;font-size:12px;white-space:nowrap;margin:0;flex-shrink:0}
#game-shell .action-dock #quick-energy-button small{display:none}
/* Touch controls fit in three compact rows, with the three consumables together. */
@media(pointer:coarse), (max-width:760px){
 #game-shell.desktop-game-ui .bottom-hud{width:240px!important;max-width:calc(100% - 16px)!important}
 #game-shell.desktop-game-ui .bottom-hud .action-dock:has(#quick-energy-button){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:repeat(3,44px)!important;gap:4px!important;padding:5px!important;width:100%!important;max-width:100%!important}
 #game-shell.desktop-game-ui .bottom-hud .action-dock:has(#quick-energy-button)>button:not(#auto-settings-button):not(#sprint-button){position:relative!important;inset:auto!important;width:100%!important;min-width:0!important;max-width:100%!important;height:44px!important;min-height:44px!important;margin:0!important;padding:3px!important;justify-self:stretch!important;box-sizing:border-box!important;overflow:hidden}
 #game-shell.desktop-game-ui .bottom-hud .action-dock:has(#quick-energy-button) #nearby-button{grid-column:1!important;grid-row:1!important}
 #game-shell.desktop-game-ui .bottom-hud .action-dock:has(#quick-energy-button) #attack-button{grid-column:2/5!important;grid-row:1!important}
 #game-shell.desktop-game-ui .bottom-hud .action-dock:has(#quick-energy-button) #emote-button{grid-column:1!important;grid-row:2!important}
 #game-shell.desktop-game-ui .bottom-hud .action-dock:has(#quick-energy-button) #vehicle-shortcut{grid-column:2!important;grid-row:2!important}
 #game-shell.desktop-game-ui .bottom-hud .action-dock:has(#quick-energy-button) #bag-shortcut{grid-column:3!important;grid-row:2!important}
 #game-shell.desktop-game-ui .bottom-hud .action-dock:has(#quick-energy-button) #auto-attack-button{grid-column:4!important;grid-row:2!important}
 #game-shell.desktop-game-ui .bottom-hud .action-dock:has(#quick-energy-button) #quick-medicine-button{grid-column:1!important;grid-row:3!important}
 #game-shell.desktop-game-ui .bottom-hud .action-dock:has(#quick-energy-button) #quick-serum-button{grid-column:2!important;grid-row:3!important}
 #game-shell.desktop-game-ui .bottom-hud .action-dock:has(#quick-energy-button) #quick-energy-button{grid-column:3!important;grid-row:3!important;flex-direction:column!important}
 #game-shell.desktop-game-ui .bottom-hud .action-dock:has(#quick-energy-button) #return-town-button{display:flex!important;grid-column:4!important;grid-row:3!important;flex-direction:column!important;font-size:9px!important}
 #game-shell.touch-playing .action-dock #quick-energy-button strong{display:none}
}
@media(orientation:landscape) and (pointer:coarse) and (max-width:899px){
 #game-shell.desktop-game-ui .bottom-hud{width:224px!important}
 #game-shell.desktop-game-ui .bottom-hud .action-dock:has(#quick-energy-button){grid-template-rows:repeat(3,38px)!important}
 #game-shell.desktop-game-ui .bottom-hud .action-dock:has(#quick-energy-button)>button:not(#auto-settings-button):not(#sprint-button){height:38px!important;min-height:38px!important}
}

@media(min-width:761px) and (pointer:fine){
 #game-shell:not(.touch-playing) .action-dock:has(#quick-energy-button){display:flex!important;flex-wrap:nowrap;width:100%!important;max-width:760px!important}
 #game-shell:not(.touch-playing) .action-dock:has(#quick-energy-button)>button:not(#auto-settings-button):not(#sprint-button){flex:1 1 0!important;width:auto!important;min-width:0!important;height:58px!important;min-height:58px!important}
 #game-shell:not(.touch-playing) .action-dock:has(#quick-energy-button) #attack-button{flex:1.6 1 0!important}
 #game-shell:not(.touch-playing) .action-dock:has(#quick-energy-button) #return-town-button{padding:5px!important;font-size:11px!important}
}
