.touch-layout{overscroll-behavior:none;--touch-rail:clamp(136px, calc(13vw + 32px), 160px);--touch-bottom:max(12px, env(safe-area-inset-bottom))}.touch-layout body{overscroll-behavior:none}.touch-layout canvas{touch-action:none}#touch-viewport{top:max(8px, env(safe-area-inset-top));bottom:var(--touch-bottom);left:calc(var(--touch-rail) + env(safe-area-inset-left));right:calc(var(--touch-rail) + env(safe-area-inset-right));pointer-events:none;outline:1px solid #2b2f36;position:fixed}#touch-controls{z-index:5;pointer-events:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;color:#2b2f36;font:700 12px Red Hat Mono,ui-monospace,monospace;position:fixed;inset:0}#touch-controls[hidden],#touch-controls [hidden],#touch-rotate[hidden]{display:none}#touch-controls button,.touch-pad{pointer-events:auto;touch-action:none;-webkit-tap-highlight-color:transparent;color:#2b2f36;font:inherit;background:#f4e7c4cc;border:2px solid #2b2f36}.touch-pad{top:calc(56px + env(safe-area-inset-top));bottom:var(--touch-bottom);left:calc(8px + env(safe-area-inset-left));width:calc(var(--touch-rail) - 16px);box-sizing:border-box;background:#f4e7c44d;border:0;border-radius:8px;position:absolute;overflow:hidden}.touch-pad>span,.pad-feedback{pointer-events:none;position:absolute}.pad-hint{text-align:center;opacity:.65;width:100%;line-height:1.5;top:60%}.pad-hint small{margin-top:8px;font-weight:400;display:block}.pad-feedback{text-align:center;width:100%;font-size:10px;display:none;top:8px}.pad-feedback span{border-radius:3px;margin:2px;padding:3px;display:none}.pad-feedback span.held,.touch-pad.neutral .pad-neutral{display:inline-block}.pad-origin,.pad-knob{left:calc(var(--origin-x) - 6px);top:calc(var(--origin-y) - 6px);border:1px solid #2b2f36;border-radius:50%;width:10px;height:10px;display:none}.pad-knob{background:#f0883e}.touch-pad.engaged .pad-hint{display:none}.touch-pad.engaged .pad-origin,.touch-pad.engaged .pad-knob,.touch-pad.engaged .pad-feedback{display:block}#touch-controls.touch-split .touch-pad-right{left:auto;right:calc(8px + env(safe-area-inset-right));top:calc(82px + env(safe-area-inset-top));width:calc(var(--touch-rail) - 16px)}#touch-controls.touch-split .pad-hint{top:38%}#touch-controls.touch-split .touch-jump{left:calc((var(--touch-rail) - clamp(52px, 18vh, 72px)) / 2 + env(safe-area-inset-left));bottom:calc(var(--touch-bottom) + 12px);position:fixed}#touch-controls .held{background:#f0883e}.touch-actions{right:calc(8px + env(safe-area-inset-right));width:calc(var(--touch-rail) - 16px);bottom:calc(var(--touch-bottom) + 12px);flex-direction:column;align-items:center;gap:12px;display:flex;position:absolute}#touch-controls .touch-hook{background:#f0883ed1;border-radius:50%;width:clamp(72px,22vh,88px);height:clamp(72px,22vh,88px);font-size:16px}#touch-controls .touch-jump{border-radius:50%;width:clamp(52px,18vh,72px);height:clamp(52px,18vh,72px)}#touch-controls button.held{box-shadow:inset 0 0 0 3px #2b2f36}#touch-controls .touch-pause{top:calc(5px + env(safe-area-inset-top));left:max(14px, env(safe-area-inset-left));border-radius:4px;width:54px;height:28px;font-size:10px;position:absolute}#touch-controls .touch-pause:after{content:"";position:absolute;inset:-8px -4px}.touch-brand{top:calc(8px + env(safe-area-inset-top));right:env(safe-area-inset-right);width:var(--touch-rail);text-align:center;font-size:13px;position:absolute}#touch-controls .touch-fullscreen{top:calc(34px + env(safe-area-inset-top));right:calc((var(--touch-rail) - 56px) / 2 + env(safe-area-inset-right));border-radius:4px;width:56px;min-height:36px;padding:4px;font-size:11px;position:absolute}#touch-rotate{z-index:30;color:#2b2f36;text-align:center;touch-action:none;background:#f4e7c4;place-items:center;padding:24px;font:16px Red Hat Mono,ui-monospace,monospace;display:grid;position:fixed;inset:0}#touch-rotate h1{font-size:24px}.touch-layout #shell{box-sizing:border-box;padding:max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left))}.touch-layout #shell .panel{box-sizing:border-box;overscroll-behavior:contain;max-width:100%;max-height:100%;padding:16px 22px;overflow-y:auto}.touch-layout #shell button,.touch-layout #shell .buttonlink{touch-action:manipulation;min-height:44px}.touch-layout #shell h1{margin-bottom:10px;font-size:24px}.touch-layout #shell .controls{font-size:12px}
