/* Touch surfaces keep the ELEMENT glyphs and leave the centre free for aiming. */
.sf-stage .element-tile{min-height:0;min-width:0;border-radius:0;font:inherit;cursor:pointer;touch-action:none}
.touch-mode #sf-menu button,.touch-mode #sf-menu a,.touch-mode #sf-menu summary{touch-action:manipulation}
.touch-mode #sf-menu .menu-launch{bottom:env(safe-area-inset-bottom,0px)}
.touch-controls[hidden]{display:none}.touch-controls{position:absolute;inset:0;z-index:2;pointer-events:none;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.touch-button{position:absolute;display:grid;place-items:center;width:46px;height:46px;min-height:44px;padding:11px;border:1px solid #eeede747;border-radius:0;background:#101114c9;color:var(--element-ink);pointer-events:auto;touch-action:none;box-shadow:none;transition:none;-webkit-tap-highlight-color:transparent}
.touch-button svg{width:100%;height:100%}.touch-button:hover{background:#101114e0;border-color:#eeede770}.touch-button.is-held,.touch-button[aria-pressed=true]{border-color:var(--element-accent);background:#44241deb;color:#ff947b}.touch-button:focus{outline:none}.touch-button:focus-visible{outline:2px solid var(--element-accent);outline-offset:3px}
.touch-pause{top:var(--touch-top);right:var(--touch-right)}.touch-score{top:var(--touch-top);left:var(--touch-left)}.touch-attack{right:var(--touch-right);bottom:var(--touch-bottom);width:68px;height:68px;padding:17px;border-top:2px solid var(--element-accent)}.touch-self{right:calc(var(--touch-right) + 82px);bottom:var(--touch-bottom);width:54px;height:54px;padding:13px}.touch-jump{right:var(--touch-right);bottom:calc(var(--touch-bottom) + 86px)}.touch-crouch{right:calc(var(--touch-right) + 64px);bottom:calc(var(--touch-bottom) + 72px)}.touch-clear{left:300px;top:var(--touch-top)}
.touch-stick{position:absolute;left:var(--touch-left);bottom:var(--touch-bottom);width:120px;height:120px;border:1px solid #eeede740;border-radius:50%;background:#1011146e;display:grid;place-items:center;pointer-events:auto;touch-action:none}.touch-stick:before{content:'';position:absolute;inset:15px;border:1px solid #eeede717;border-radius:50%}.touch-stick-thumb{width:47px;height:47px;display:block;padding:12px;background:#16191deb;border:1px solid #eeede76b;border-radius:50%;color:#eeede7b8;will-change:transform}.touch-stick-thumb svg{width:100%;height:100%}.touch-stick.is-held{border-color:#eeede78c}
.touch-mode{--touch-top:max(12px,env(safe-area-inset-top));--touch-bottom:max(16px,env(safe-area-inset-bottom));--touch-left:max(16px,env(safe-area-inset-left));--touch-right:max(16px,env(safe-area-inset-right));height:100dvh}.touch-mode .sf-stage{height:100dvh;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.touch-mode #sf-scene{touch-action:none}.touch-mode .sf-stage .hud-emblem{display:none}.touch-mode .sf-stage .game-header{top:var(--touch-top);left:var(--touch-left);right:calc(var(--touch-right) + 58px)}
.touch-mode .sf-stage .resource-hud{top:var(--touch-top);left:calc(var(--touch-left) + 56px);right:auto;bottom:auto;width:94px;padding:6px 8px;gap:5px}.touch-mode .sf-stage .health-compact b{font-size:25px}.touch-mode .sf-stage .health-compact>i{width:15px;height:15px}.touch-mode .sf-stage .energy-heading strong{font-size:13px}.touch-mode .sf-stage .energy-meter{margin-top:4px;height:3px}.touch-mode .sf-stage .sf-vitals{gap:4px}.touch-mode .sf-stage .barrier-hud{font-size:12px;gap:2px}.touch-mode .sf-stage .barrier-hud i{width:13px;height:13px}.touch-mode .sf-stage .status-icons{position:absolute;left:0;top:calc(100% + 5px);max-width:150px;justify-content:flex-start;gap:3px}.touch-mode .sf-stage .state-icon{width:23px;height:25px}
.touch-mode .sf-stage .sf-spell{left:calc(var(--touch-left) + 166px);top:var(--touch-top);bottom:auto;width:106px;padding:4px 6px;gap:4px;background:#101114c9;border:0}.touch-mode .sf-stage .source-icon{width:20px;height:20px;padding:2px}.touch-mode .sf-stage .source-link{width:5px}.touch-mode .sf-stage .spell-sources{height:20px;gap:3px}.touch-mode .sf-stage .spell-badge{width:32px;height:32px;padding:5px}.touch-mode .sf-stage .spell-cost b{font-size:13px}.touch-mode .sf-stage .sf-charge{margin-top:1px}.touch-mode .sf-stage .spell-icon-row{gap:11px}
.touch-mode .sf-stage .hud-keys{left:50%;bottom:var(--touch-bottom);transform:translateX(-50%);display:grid;grid-template-columns:repeat(4,44px);gap:4px;padding:4px;max-width:none;width:max-content;z-index:3;pointer-events:auto;touch-action:none}.touch-mode .sf-stage .element-tile{width:44px;height:44px;padding:8px;border:1px solid #eeede72a;background:#101114e6}.touch-mode .element-key{display:none}.touch-mode .sf-stage .element-tile.active{background:#eeede712;border-color:var(--element-color)}.touch-mode .sf-stage .element-tile svg{pointer-events:none}.touch-mode .element-stack{pointer-events:none}
.touch-mode .sf-stage .lan-score{top:62px;font-size:22px;padding:5px 10px}.touch-mode .match-feed{top:calc(var(--touch-top) + 50px);right:var(--touch-right)}.touch-mode .match-kill{min-height:31px;font-size:12px;padding-block:3px}.touch-mode .kill-source,.touch-mode .kill-target{max-width:100px}.touch-mode .kill-result{width:20px;height:22px}.touch-mode .match-board{max-height:calc(100dvh - 24px);width:min(640px,calc(100% - 24px))}
.touch-mode #sf-menu{overscroll-behavior:contain}.touch-mode .element-shell{padding-left:max(17px,env(safe-area-inset-left));padding-right:max(17px,env(safe-area-inset-right));padding-top:max(18px,env(safe-area-inset-top));padding-bottom:max(18px,env(safe-area-inset-bottom))}.touch-mode #sf-menu input,.touch-mode #sf-menu select{font-size:16px}.touch-mode .menu-launch{position:sticky;bottom:0;background:#101114f5;padding:10px;z-index:3}.touch-mode #sf-menu .element-nav button{min-height:44px}.touch-mode #sf-menu .play-controls{display:none}.touch-mode #sf-menu .capture-note{font-size:12px}.touch-mode .death-live{width:min(470px,calc(100% - 28px))}
@media(orientation:portrait){.touch-mode .sf-stage .combat-score{display:none}.touch-mode .touch-stick{bottom:calc(var(--touch-bottom) + 112px);width:112px;height:112px}.touch-mode .touch-attack,.touch-mode .touch-self{bottom:calc(var(--touch-bottom) + 112px)}.touch-mode .touch-jump{bottom:calc(var(--touch-bottom) + 198px)}.touch-mode .touch-crouch{bottom:calc(var(--touch-bottom) + 184px)}.touch-mode .touch-clear{left:var(--touch-left);top:auto;bottom:var(--touch-bottom)}.touch-mode .match-feed{top:calc(var(--touch-top) + 116px)}.touch-mode .kill-source,.touch-mode .kill-target{max-width:80px}.touch-mode .sf-stage .lan-score{top:83px}}
@media(orientation:landscape) and (max-width:740px){.touch-mode .touch-stick{width:108px;height:108px}.touch-mode .sf-stage .combat-score>span{padding-inline:6px}.touch-mode .sf-stage .combat-score>span:nth-child(n+2){display:none}}
@media(min-width:950px) and (orientation:landscape){.touch-mode .sf-stage .hud-keys{grid-template-columns:repeat(8,44px)}}
@media(orientation:portrait) and (max-width:360px){.touch-mode .sf-stage .sf-spell{left:auto;right:var(--touch-right);top:calc(var(--touch-top) + 66px)}.touch-mode .sf-stage .status-icons{max-width:94px}.touch-mode .sf-stage .lan-score{display:none}.touch-mode .match-feed{top:calc(var(--touch-top) + 158px)}}
@media(orientation:landscape) and (max-height:600px){.touch-mode .element-layout{display:flex;flex-direction:column;gap:18px;min-height:0;padding-top:16px}.touch-mode .menu-rail{display:contents}.touch-mode .element-nav{flex-direction:row;justify-content:space-between;border-bottom:1px solid var(--element-line);padding:0 0 8px;order:0}.touch-mode #sf-menu .element-nav button{font-size:18px;padding:10px 4px}.touch-mode #sf-menu .element-nav button[aria-selected=true]:before{width:100%;height:2px;bottom:0;top:auto}.touch-mode #sf-menu .element-nav button[aria-selected=true]{padding-left:4px}.touch-mode .menu-content{order:1}.touch-mode .menu-launch{order:2;display:grid;grid-template-columns:200px 1fr;gap:15px}.touch-mode .brand-hero{min-height:180px;padding-top:0}.touch-mode #sf-menu h1{font-size:64px}.touch-mode .element-sigil{top:-8px;width:210px;right:12px}.touch-mode .death-live{top:48%;padding-block:12px}.touch-mode .death-live .death-killer{font-size:30px;margin-block:8px 10px}.touch-mode .death-live .death-details{padding-top:10px}}

.touch-sprint{left:var(--touch-left);bottom:calc(var(--touch-bottom) + 134px)}@media(orientation:portrait){.touch-mode .touch-sprint{bottom:calc(var(--touch-bottom) + 246px)}}
