.skill-toolbar{position:absolute;right:10px;bottom:28px;z-index:12;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px;max-width:58%;pointer-events:auto}
.skill-toolbar[hidden],.skill-toolbar button[hidden]{display:none!important}
.modal:has(.skill-tree-panel){position:fixed;inset:0;z-index:1000;background:#071015aa;padding:12px;overflow:hidden}.skill-tree-panel{overscroll-behavior:contain;touch-action:pan-y}.skill-path{min-width:0;overflow-wrap:anywhere}
.skill-build-title{flex-basis:100%;text-align:right;color:#ffe5a8;text-shadow:0 1px 3px #000;background:#10191be6;padding:4px 7px;font:10px/1.3 ui-monospace,monospace}.skill-build-title[hidden]{display:none}.skill-tree-panel button:disabled{opacity:.55;cursor:default}
.skill-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:10px 0 20px}.skill-choice{border:1px solid var(--path-color);padding:12px;background:#243038;display:flex;flex-direction:column;align-items:stretch}.skill-choice strong{color:var(--path-color)}.skill-choice p{font-size:12px!important;line-height:1.5!important}.skill-choice .skill-spell-lore{min-height:0}.skill-choice button{margin-top:auto!important;width:100%}@media(max-width:600px) and (orientation:portrait){.skill-choices{grid-template-columns:1fr;gap:8px}.skill-choice{padding:10px}}
.skill-toolbar button{padding:7px 9px;min-height:36px;max-width:150px;background:#15232bef;color:#f1e6cf;border:1px solid #819185;border-radius:4px;font:10px/1.25 ui-monospace,monospace;cursor:pointer;touch-action:manipulation}
.skill-toolbar button:disabled{color:#aab8bd;opacity:.65;cursor:default}.skill-toolbar .ready{border-color:#f4cf78;color:#fff0b6;background:#4b3a20}
.modal .skill-tree-panel{width:min(1080px,96vw);max-width:1080px;max-height:92dvh;overflow:auto;text-align:left;padding:22px;background:#101a20;color:#e6ded0;border:1px solid #7a8075}
.skill-tree-panel h2{margin:5px 0 10px;color:#f1dbad;font-size:clamp(18px,3vw,28px);line-height:1.25}.skill-eyebrow{font:11px ui-monospace,monospace;letter-spacing:2px;color:#b7c7c8!important}.skill-intro{color:#c6cdca!important;line-height:1.5}.skill-status{padding:12px;background:#24312f;color:#f0dfaf!important;line-height:1.45}.skill-controls{position:sticky;top:-22px;background:#101a20f5;padding:8px 0;z-index:2}.skill-controls button{min-height:42px}.skill-path-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:12px}.skill-path{border-top:3px solid var(--path-color);padding:13px;background:#172229}.skill-path h3{color:var(--path-color);font-size:17px;margin:0 0 10px}.skill-spell-name{color:#f1e7d5!important;font-weight:bold}.skill-spell-lore{min-height:70px;color:#b8c6c6!important;font-size:13px!important;line-height:1.5}.skill-nodes{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:7px}.skill-nodes li{padding:10px;border:1px solid #39474b;background:#111a20;line-height:1.35}.skill-nodes li strong{display:block;color:#e7e1d5;font-size:12px}.skill-nodes li span{display:block;color:#acbdc2;font-size:11px;margin-top:5px}.skill-nodes li.owned{border-color:var(--path-color);background:#263531}.skill-nodes li.next{border-style:dashed;border-color:#b49b6b}.skill-tree-panel button{background:#30434a;color:#fff1d7;border:1px solid #97aba9;border-radius:3px;font:11px ui-monospace,monospace;padding:10px;cursor:pointer}.skill-tree-panel button:focus-visible,.skill-toolbar button:focus-visible{outline:3px solid #f6dc93;outline-offset:2px}.skill-nodes button{display:block;width:100%;margin:9px 0 0!important}.skill-ultimate{margin-top:13px;padding:12px;border:1px solid var(--path-color);background:#252333}.skill-ultimate strong{color:var(--path-color);font-size:12px}.skill-ultimate p{font-size:12px!important;line-height:1.5;color:#d1cbd9!important}.skill-ultimate button{width:100%}.skill-code{font:11px/1.6 ui-monospace,monospace;color:#b9c7cb!important;overflow-wrap:anywhere}.skill-archive{color:#d6c8a7;margin:16px 0}.skill-archive p{font-size:12px!important;overflow-wrap:anywhere}
@media(max-width:700px){.skill-path-grid{grid-template-columns:1fr}.modal .skill-tree-panel{padding:12px;max-height:94dvh}.skill-controls{top:-12px}.skill-spell-lore{min-height:0}.skill-toolbar{position:fixed;left:8px;right:8px;bottom:calc(187px + env(safe-area-inset-bottom));max-width:none;justify-content:center}.skill-toolbar button{font-size:9px;padding:6px;min-height:40px;max-width:27%}}
@media(orientation:landscape) and (max-height:650px){.skill-toolbar{position:fixed;top:auto;bottom:42px;left:50%;right:auto;transform:translateX(-50%);width:72vw;max-width:72vw;justify-content:center}.skill-toolbar button{font-size:8px;min-height:32px;max-width:21%;padding:5px}.skill-path-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.skill-spell-lore{min-height:65px}}
@media(orientation:landscape) and (max-height:450px){.modal .skill-tree-panel{padding:12px}.skill-tree-panel .skill-intro{display:none}.skill-tree-panel h2{font-size:18px;margin:4px 0}.skill-eyebrow{margin:4px 0!important}.skill-tree-panel .skill-status{padding:6px;margin:6px 0;font-size:11px}.skill-controls{top:-12px;padding:4px 0}.skill-controls button{min-height:32px;padding:6px}.skill-path-grid{margin-top:6px;gap:8px}.skill-path{padding:8px}.skill-path h3{font-size:14px}.skill-spell-lore{font-size:11px!important;min-height:0}}
.skill-cast.selected{box-shadow:0 0 0 2px #f3d28a,0 0 12px #f3d28a88;background:#263436}
.modal .skill-tree-panel{width:min(720px,calc(100vw - 32px));max-width:720px;max-height:min(680px,80dvh);padding:16px}
.skill-tree-panel h2{font-size:22px;margin:4px 0 8px}.skill-eyebrow{font-size:10px;letter-spacing:1px;margin:0 0 6px!important}.skill-tree-panel .skill-status{padding:8px;margin:8px 0;font-size:12px;line-height:1.4}.skill-controls{top:-16px;padding:6px 0}.skill-controls button{min-height:34px;padding:8px 14px}.skill-choices{gap:8px;margin:8px 0 12px}.skill-choice{padding:10px}.skill-choice p{font-size:11px!important;line-height:1.4!important;margin:7px 0}.skill-choice strong{font-size:12px}.skill-choices:has(>.skill-choice:only-child){grid-template-columns:1fr}
.skill-tree-details{border-top:1px solid #39474b;padding-top:10px;margin-top:8px}.skill-tree-details>summary{cursor:pointer;color:#b6c6c9;font:11px ui-monospace,monospace;padding:4px 0}.skill-path{padding:10px}.skill-path h3{font-size:14px}.skill-spell-lore{min-height:0}.skill-nodes li{padding:8px}
@keyframes skill-point-flash{0%,100%{box-shadow:0 0 0 0 #f4cf7800;background:#4b3a20}50%{box-shadow:0 0 0 2px #f4cf7888,0 0 12px #f4cf7866;background:#715426}}
.skill-toolbar .skill-tree-button.ready{animation:skill-point-flash 1.6s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){.skill-toolbar .skill-tree-button.ready{animation:none;box-shadow:0 0 0 2px #f4cf78}}
@media(max-width:700px){.modal .skill-tree-panel{width:calc(100vw - 24px);max-height:80dvh;padding:12px}.skill-controls{top:-12px;padding:4px 0}.skill-controls button{min-height:32px}.skill-tree-panel h2{font-size:19px}.skill-choice{padding:8px}.skill-choice p{font-size:10px!important;margin:4px 0}.skill-choice button{padding:7px;min-height:30px;margin:4px 0 0!important}.skill-tree-panel .skill-status{font-size:11px}}
@media(orientation:landscape) and (max-height:650px){.modal .skill-tree-panel{max-height:86dvh}.skill-choices{grid-template-columns:repeat(3,minmax(0,1fr))}}

@media(max-width:1100px),(pointer:coarse){
 main .game-wrap{padding-right:76px}
 .touch .skill-toolbar{position:fixed;top:var(--skill-rail-top,60px);right:max(6px,env(safe-area-inset-right));bottom:auto;left:auto;transform:none;width:64px;height:auto;max-width:none;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;justify-content:flex-start;gap:6px;z-index:11;pointer-events:none}
 .touch .skill-toolbar button{width:100%;max-width:none;min-height:44px;padding:5px 3px;font:9px/1.15 ui-monospace,monospace;overflow-wrap:anywhere;touch-action:none;pointer-events:auto}
 .touch .skill-build-title{display:none}
}
@media(max-width:1100px) and (orientation:landscape) and (max-height:650px),(pointer:coarse) and (orientation:landscape) and (max-height:650px){
 body .shell{grid-template-columns:minmax(68px,1fr) minmax(0,150dvh) minmax(68px,1fr)}
 main .game-wrap{padding-right:0}
 .game-wrap #game{height:auto}
 .touch .skill-toolbar{top:max(54px,env(safe-area-inset-top));width:max(56px,calc((100vw - 150dvh)/2 - 12px))}
 .touch .touch-zone{width:max(68px,calc((100vw - 150dvh)/2))}
 .touch .aim-zone::before{top:var(--skill-aim-rest-top,70%);display:var(--skill-aim-rest-display,block)}
 .shell .cooldown-hud{width:max(68px,calc((100vw - 150dvh)/2))}
 .shell .cooldown-hud .hud-meter{display:flex;flex-direction:column;align-items:stretch;gap:4px;width:100%}
 .shell .cooldown-hud .hud-meter span{font-size:8px;white-space:normal;text-align:center}
 .shell .cooldown-hud .cooldown-track,.shell .cooldown-hud .dash-track{min-width:0;width:100%}
}
