/* V32: viewport owns layout; only dialogs and the district list scroll. */
html{height:100%!important;overflow:hidden!important}body{height:100vh!important;height:100dvh!important;min-height:0!important;overflow:hidden!important;display:flex;flex-direction:column;padding:0!important}
.game-topbar{flex:0 0 auto;min-height:48px!important;padding:5px 10px!important;gap:6px;flex-wrap:nowrap!important}.game-name b{font-size:17px}.game-name span{font-size:8px}.top-actions{flex-wrap:nowrap;gap:4px}.top-actions button,.music-box select{min-height:30px!important;padding:5px!important;font-size:10px!important}.music-box{flex-wrap:nowrap}.music-box select{max-width:125px}.game-account{max-width:200px}
.game-shell{flex:1 1 0;min-height:0!important;width:100%;max-width:1800px;height:auto!important;overflow:hidden!important;align-items:stretch!important;padding:6px!important;gap:8px}
.game-column{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column;gap:4px}.hud{flex:none;grid-template-columns:repeat(6,minmax(0,1fr))!important;margin:0!important;gap:5px}.hud-card{min-height:42px!important;height:42px!important;padding:4px 7px!important}.hud-card img{width:25px!important;height:25px!important}.hud-card b{font-size:16px!important}.hud-card span{font-size:8px!important}
.cleaner-label{flex:none;margin:0;font-size:10px}.meters{flex:none;margin:0!important;height:4px!important;overflow:hidden}.stage-wrap{flex:1 1 0;width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:auto!important;max-height:none!important;margin:0!important}.legend{flex:none;height:16px;margin:0!important;font-size:9px}.district-panel{height:100%;max-height:none;min-height:0;overflow:hidden}.district-list{flex:1;min-height:0;overflow:auto}footer{display:none!important}.arcade-parody{flex:none;font:9px/1.2 Arial!important;margin:0!important;padding:3px 8px!important}.mobile-controls{flex:none;margin:0!important;min-height:0!important}.load-status{display:grid;gap:5px;margin:8px auto;font:11px Arial;color:#bfeeff;max-width:440px}.load-status progress{width:100%;height:7px;accent-color:#60e5db}
@media(max-width:1100px){.district-panel{display:none!important}.game-shell{grid-template-columns:1fr!important}.game-account{display:none!important}}
@media(max-width:760px),(pointer:coarse){
 .game-topbar{min-height:38px!important;flex-wrap:wrap!important;padding:4px 6px!important}.game-name b{font-size:12px}.game-topbar .back{font-size:10px}.top-actions{width:auto!important;margin-left:auto}.game-name{display:none!important}.music-box select{max-width:100px!important}.music-box button,.top-actions>button{font-size:9px!important;min-height:28px!important}.music-box [data-music-prev],.music-box [data-music-next]{display:none}.music-box input[type=range],.music-box label{display:none}
 .game-shell{padding:4px!important}.game-column{gap:4px}.hud{grid-template-columns:1.3fr .8fr 1fr .8fr 1fr!important;gap:3px!important}.hud-card{height:34px!important;min-height:34px!important;padding:3px!important;gap:3px!important;border-width:1px}.hud-card img{display:none!important}.hud-card b{font-size:12px!important}.hud-card span{font-size:7px!important}.hud-card.best-card{display:none!important}.cleaner-label{font-size:9px;line-height:12px}.meters,.legend{display:none!important}
 .mobile-controls{display:flex!important;height:90px!important;padding:4px 10px max(4px,env(safe-area-inset-bottom))!important;justify-content:space-between!important;align-items:center!important;border-radius:8px}.virtual-stick{width:78px!important;height:78px!important}.vacuum{width:108px!important;height:62px!important}.joystick-group b{display:none!important}.scanlines{display:none}.hud-card:after{animation:none!important}.overlay-panel{max-height:100%;overflow:auto}.arcade-parody{font-size:8px!important;padding:2px 5px!important}
}
@media(orientation:landscape) and (max-height:550px){
 .game-column{display:grid!important;grid-template-columns:minmax(0,1fr) 116px!important;grid-template-rows:30px minmax(0,1fr)!important;gap:4px!important}.hud{grid-column:1/-1!important;grid-row:1}.hud-card{height:30px!important;min-height:30px!important}.stage-wrap{grid-column:1!important;grid-row:2!important;height:100%!important;align-self:stretch;justify-self:stretch}.mobile-controls{grid-column:2!important;grid-row:2!important;display:flex!important;flex-direction:column!important;justify-content:center!important;height:100%!important;gap:10px}.cleaner-label,.meters,.legend{display:none!important}.vacuum{width:98px!important;height:48px!important}.game-topbar{min-height:32px!important}.arcade-parody{display:none!important}
}
.hud-card>div{min-width:0;flex:1}.game-topbar{backdrop-filter:none}.mobile-controls{contain:layout paint}

/* V33: broad acquisition area; pointer capture follows the same finger outside it. */
@media(max-width:760px),(pointer:coarse){.mobile-controls .joystick-group{width:min(56vw,220px);height:100%;display:flex;justify-content:center;align-items:center;touch-action:none;user-select:none}.mobile-controls{touch-action:none}.virtual-stick,.stick-knob,.stick-arrow{touch-action:none}.stick-knob,.stick-arrow{pointer-events:none}}
@media(orientation:landscape) and (max-height:550px){.mobile-controls .joystick-group{width:100%;height:90px}}

@media(max-width:430px){.music-box select,.music-box input[type=range],.music-box label{display:none!important}.topbar .title b{font-size:11px!important}.topbar .actions{gap:3px}.topbar .actions>button{padding:6px 4px!important}.game-topbar .top-actions{gap:3px}}
