body.touch{--st-l: env(safe-area-inset-left, 0px);--st-r: env(safe-area-inset-right, 0px);--st-t: env(safe-area-inset-top, 0px);--st-b: env(safe-area-inset-bottom, 0px);touch-action:none;overscroll-behavior:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}body.touch #hud,body.touch #chat{z-index:30}body.touch #hud .legend,body.touch #hud .click,body.touch #hud .voice,body.touch #hud .mic-toggle{display:none}body.touch #hud .info{left:calc(8px + var(--st-l));top:calc(8px + var(--st-t));max-width:calc(100vw - 200px - var(--st-l) - var(--st-r));overflow:hidden;font-size:10px}body.touch #chat{left:calc(8px + var(--st-l));bottom:auto;top:calc(80px + var(--st-t));width:min(420px,50vw);font-size:11px}body.touch #chat .lines{max-height:26vh}body.touch #chat input{font-size:16px;padding:8px}#touch{--size: 64px;--size-big: 84px;--size-small: 52px;position:fixed;inset:0;z-index:20;pointer-events:none;font:600 12px/1 system-ui,sans-serif}#touch[hidden]{display:none}#touch .t-surface{position:absolute;inset:0;pointer-events:auto;touch-action:none}#touch .t-stick{position:absolute;width:112px;height:112px;margin:-56px 0 0 -56px;border-radius:50%;background:#ffffff1f;border:2px solid rgba(255,255,255,.4);pointer-events:none}#touch .t-knob{position:absolute;left:50%;top:50%;width:52px;height:52px;margin:-26px 0 0 -26px;border-radius:50%;background:#ffffff73;border:2px solid rgba(255,255,255,.7)}#touch .t-btn{position:absolute;box-sizing:border-box;width:var(--size);height:var(--size);padding:0;border-radius:50%;border:2px solid rgba(255,255,255,.55);background:#141c268c;color:#fff;font:inherit;text-shadow:0 1px 1px #000;pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}#touch .t-btn[hidden]{display:none}#touch .t-btn.big{width:var(--size-big);height:var(--size-big);font-size:14px}#touch .t-btn.small{width:var(--size-small);height:var(--size-small);border-radius:14px;font-size:11px}#touch .t-btn.down{background:#fff6}#touch .t-btn.on{background:#50a0ff99;border-color:#bcdcff}#touch .t-btn.down.on{background:#78beffcc}#touch .t-primary{right:calc(20px + var(--st-r));bottom:calc(20px + var(--st-b))}#touch .t-secondary{right:calc(116px + var(--st-r));bottom:calc(20px + var(--st-b))}#touch .t-jump{right:calc(30px + var(--st-r));bottom:calc(118px + var(--st-b))}#touch .t-reload{right:calc(116px + var(--st-r));bottom:calc(96px + var(--st-b))}#touch .t-rotate{right:calc(176px + var(--st-r));bottom:calc(96px + var(--st-b))}#touch .t-spawn{right:calc(12px + var(--st-r));top:calc(8px + var(--st-t))}#touch .t-chat{right:calc(72px + var(--st-r));top:calc(8px + var(--st-t))}#touch .t-talk{right:calc(132px + var(--st-r));top:calc(8px + var(--st-t))}#touch .t-grav{right:calc(12px + var(--st-r));top:calc(72px + var(--st-t))}#touch .t-phys{right:calc(12px + var(--st-r));top:calc(132px + var(--st-t))}@media(max-height:420px){#touch{--size: 56px;--size-big: 76px;--size-small: 48px}#touch .t-jump{bottom:calc(106px + var(--st-b))}#touch .t-secondary{right:calc(108px + var(--st-r))}#touch .t-reload{right:calc(108px + var(--st-r));bottom:calc(88px + var(--st-b))}#touch .t-rotate{right:calc(164px + var(--st-r));bottom:calc(88px + var(--st-b))}#touch .t-grav{top:calc(64px + var(--st-t))}#touch .t-phys{top:calc(120px + var(--st-t))}}#spawnmenu{position:fixed;inset:0;z-index:40;display:flex;align-items:center;justify-content:center;background:#080c1259;font:600 13px/1.2 system-ui,sans-serif;color:#e8edf2;-webkit-user-select:none;user-select:none;touch-action:manipulation}#spawnmenu[hidden]{display:none}#spawnmenu .sm-panel{box-sizing:border-box;width:min(640px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow-y:auto;padding:10px;background:#10161eeb;border:1px solid rgba(255,255,255,.18);border-radius:8px;box-shadow:0 6px 24px #00000080}#spawnmenu .sm-head{display:flex;align-items:center;justify-content:space-between;margin:0 2px 8px;font-size:15px}#spawnmenu button{font:inherit;color:inherit;cursor:pointer;background:#ffffff14;border:1px solid rgba(255,255,255,.2);border-radius:6px}#spawnmenu button:hover{background:#ffffff2e}#spawnmenu button:active{background:#ffffff47}#spawnmenu .sm-close{width:40px;height:36px;font-size:16px}#spawnmenu .sm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:6px}#spawnmenu .sm-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:76px;padding:8px 4px}#spawnmenu .sm-tile.last{border-color:#ffd479;box-shadow:inset 0 0 0 1px #ffd479}#spawnmenu .sm-icon{display:block;width:30px;height:30px;border-radius:3px;box-shadow:inset 0 -6px #00000040}#spawnmenu .sm-sphere{border-radius:50%}#spawnmenu .sm-cylinder{width:24px;border-radius:12px/5px}#spawnmenu .sm-capsule{width:18px;border-radius:9px}#spawnmenu .sm-wedge{clip-path:polygon(0 100%,100% 100%,0 20%);border-radius:0}#spawnmenu .sm-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}#spawnmenu .sm-actions button{flex:1 1 140px;min-height:44px;padding:6px 8px}.sm-toast{position:fixed;left:50%;top:62%;transform:translate(-50%);z-index:41;padding:6px 12px;border-radius:4px;background:#000000a6;color:#ffd479;font:600 13px/1.3 system-ui,sans-serif;pointer-events:none}.sm-toast[hidden]{display:none}body.touch #spawnmenu .sm-tile{min-height:84px}
