#touch-controls{display:none;position:absolute;inset:0;pointer-events:none;z-index:3;user-select:none;-webkit-user-select:none;touch-action:none}
body[data-mobile="true"][data-playing="true"] #touch-controls{display:block}
#touch-controls button,#touch-stick,#touch-look{pointer-events:auto;touch-action:none;-webkit-touch-callout:none}
#touch-stick{position:absolute;left:max(24px,env(safe-area-inset-left));bottom:max(35px,env(safe-area-inset-bottom));width:132px;height:132px;border-radius:50%;border:2px solid #ffffff90;background:#10152388;display:flex;align-items:center;justify-content:center}
#touch-knob{display:block;width:52px;height:52px;border-radius:50%;background:#dce7ffbb;border:2px solid white;pointer-events:none}
#touch-look{position:absolute;left:42%;right:0;top:70px;bottom:160px}
#touch-actions{position:absolute;right:max(20px,env(safe-area-inset-right));bottom:max(48px,env(safe-area-inset-bottom));text-align:right}
#touch-actions button{padding:0;width:84px;height:84px;border-radius:50%;margin:5px;font-size:12px;font-weight:700;background:#151d35cc;border:2px solid #ffffffb0;box-shadow:0 2px 10px #0006}
#touch-actions #touch-power{background:#8a561ccc;border-color:#ffd776;width:58px;height:58px;margin-right:61px}
#touch-actions button.held{background:#5d78a6ee;transform:scale(.94)}
#touch-pause{position:absolute;top:14px;left:50%;transform:translateX(-50%);background:#101523bb;font-size:12px;padding:10px 16px}
#rotate-hint{display:none;position:absolute;top:0;left:0;right:0;z-index:5;background:#172238ee;color:white;padding:9px;text-align:center;font-size:13px;pointer-events:none}
body[data-mobile="true"] main{height:100dvh}
body[data-mobile="true"] header strong{font-size:11px}
@media(orientation:portrait){body[data-mobile="true"] #rotate-hint{display:block}#touch-stick{width:112px;height:112px;left:16px}#touch-actions{right:10px}#touch-actions button{width:76px;height:76px}}
@media(max-height:420px){#touch-stick{width:108px;height:108px;bottom:20px}#touch-actions{bottom:34px}#touch-actions button{height:76px;width:76px}#touch-actions #touch-power{height:52px;width:52px;margin-right:57px}#touch-look{bottom:180px}}

#touch-auto{position:absolute;top:14px;left:50%;transform:translateX(-105%);background:#101523bb;font-size:11px;padding:10px 12px;min-width:88px}
#touch-auto[aria-pressed="true"]{border-color:#8de5aa}
#touch-pause{transform:translateX(8%)}
