/* Touch adds input controls to the same HUD used by keyboard and mouse. */
#mobileChoices,#touchControls{display:none}
.touch-ui{--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px);overscroll-behavior:none}
.touch-ui body{height:var(--app-height,100dvh)}.touch-ui #world{height:var(--app-height,100dvh);touch-action:none}.touch-ui button{-webkit-tap-highlight-color:transparent;touch-action:manipulation}.touch-ui #hud{user-select:none;-webkit-user-select:none}
.touch-ui :is(#hotbarSlots button,#quickItems button,#quickClasses button,.top-actions button,#touchSkill,#touchTail,#nearHelp,#attributeNotice){touch-action:none}
.touch-ui #hud #touchControls{display:block;position:fixed;inset:0;pointer-events:none;z-index:7}
.touch-ui #joystick,.touch-ui #touchAim{position:fixed;width:86px;height:86px;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;background:#332e27a8;border:2px solid #d0b67b9e}
.touch-ui #joystick[hidden],.touch-ui #touchAim[hidden]{display:none}
.touch-ui #joystick i,.touch-ui #touchAim i{position:absolute;left:50%;top:50%;width:32px;height:32px;border-radius:50%;transform:translate(-50%,-50%);background:#b49b64aa;border:2px solid #e8ca86;pointer-events:none}
.touch-ui #touchAim{border-color:#f1c38980;background:#332e2755}.touch-ui #touchAim i{width:46px;height:46px;background:none;border:0;border-radius:0}.touch-ui .touch-bite{display:block;width:46px;height:46px;object-fit:contain;pointer-events:none;transform-origin:center}
.touch-ui #touchSkill,.touch-ui #touchTail{position:fixed;pointer-events:auto;width:48px;height:54px;min-height:44px;border:2px solid #726046;border-radius:10px;background:#332e27f2;color:#fff1d2;padding:4px}
.touch-ui #touchSkill{left:calc(50% + 224px);right:auto;bottom:calc(env(safe-area-inset-bottom,0px) + 14px)}
.touch-ui #touchTail{display:none}.touch-ui #hud .actionbar{display:none}
.touch-overlay #touchControls{visibility:hidden}.touch-ui .drawer{overscroll-behavior:contain;touch-action:pan-y;user-select:text;-webkit-user-select:text}
