#wm-game-controls{position:fixed;z-index:210;top:max(10px,env(safe-area-inset-top));left:max(10px,env(safe-area-inset-left));display:flex;flex-flow:row nowrap;gap:6px;width:max-content;padding:0;margin:0;isolation:isolate}
#wm-game-controls[hidden]{display:none!important}
#wm-game-controls button{position:relative!important;display:block!important;flex:0 0 56px;width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;border-radius:50%;transform:none;cursor:pointer;touch-action:manipulation;filter:drop-shadow(0 3px 2px #46301e50)}
#wm-game-controls button img{display:block!important;width:100%!important;height:100%!important;object-fit:contain;pointer-events:none}
#wm-game-controls button::before,#wm-game-controls button::after{content:none!important}
#wm-game-controls button:active{transform:translateY(2px) scale(.96)}
#wm-game-controls button:focus-visible{outline:3px solid #fff8e6;outline-offset:3px}
.wm-controls-source{visibility:hidden!important;pointer-events:none!important}
@media(min-width:700px) and (orientation:landscape){#wm-game-controls button{flex-basis:64px;width:64px!important;height:64px!important;min-width:64px!important;min-height:64px!important}#wm-game-controls{gap:8px}}
/* Compact progress occupies the free right corner, not the control row. */
@media(min-width:700px) and (orientation:landscape){
 body.wm-four-controls-active[data-wm-controls-game="18"] .progress-wrap{position:fixed;left:50%;top:12px;transform:translateX(-50%)}
 body.wm-four-controls-active[data-wm-controls-game="24"] #roundProgress{position:fixed;left:auto;right:18px;top:18px;width:160px;max-width:160px;min-width:0;justify-content:center}
 body.wm-four-controls-active[data-wm-controls-game="24"] #levelPath{position:fixed;left:50%;top:24px;transform:translateX(-50%)}
 body.wm-four-controls-active[data-wm-controls-game="10"] .level-path{position:fixed;left:auto;right:12px;top:12px;width:220px;max-width:220px;min-width:0}
}
@media(orientation:portrait){
 body.wm-four-controls-active[data-wm-controls-game="13"] #roundProgress,
 body.wm-four-controls-active[data-wm-controls-game="24"] #roundProgress{position:fixed;left:auto;right:8px;top:12px;width:92px;max-width:92px;min-width:0;padding:4px;gap:2px;z-index:205}
 body.wm-four-controls-active[data-wm-controls-game="24"] #levelPath{position:fixed;left:auto;right:8px;top:40px;width:92px;max-width:92px;gap:2px;z-index:205}
 body.wm-four-controls-active[data-wm-controls-game="10"] .level-path{position:fixed;left:auto;right:8px;top:10px;width:92px;min-height:48px;max-width:92px;padding:3px;gap:1px;z-index:205}
 body.wm-four-controls-active[data-wm-controls-game="10"] .level-path>*{min-width:0;max-width:16px}
 body.wm-four-controls-active[data-wm-controls-game="14"] #levelPath{position:fixed;left:auto;right:8px;top:12px;width:92px;max-width:92px;min-width:0;gap:2px;z-index:205}
 body.wm-four-controls-active[data-wm-controls-game="19"] #wm-game-controls{left:max(10px,env(safe-area-inset-left));right:auto;gap:6px}
 body.wm-four-controls-active[data-wm-controls-game="19"] #wm-game-controls button{flex-basis:56px!important;width:56px!important;height:56px!important;min-width:56px!important;min-height:56px!important}
 body.wm-four-controls-active[data-wm-controls-game="19"] #progress{position:fixed;left:auto;right:5px;top:10px;width:94px;min-height:48px;padding:8px 5px;gap:2px}
 body.wm-four-controls-active[data-wm-controls-game="19"] #progress>*{max-width:17px;max-height:24px}
}
