.hq-entry{display:block;margin:13px auto 4px;width:min(100%,370px);padding:12px 15px;border:1px solid #69dfd7;border-radius:13px;background:linear-gradient(120deg,#123a43,#174345);box-shadow:0 0 20px #35aeb125;color:#d5fff4;font:800 12px system-ui,sans-serif;letter-spacing:.7px;cursor:pointer;touch-action:manipulation}
.hq-entry:hover{background:#1d5050}
.hq-overlay{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;background:#040c12ed;color:#f1f8f7;padding:10px;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;font-family:system-ui,-apple-system,sans-serif}
.hq-hidden{display:none!important}
.hq-shell{width:min(960px,100%);max-height:min(94dvh,890px);display:flex;flex-direction:column;border:1px solid #47777b;background:linear-gradient(160deg,#152a35,#08151e 72%);border-radius:18px;box-shadow:0 22px 90px #000a;overflow:hidden}
.hq-header{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:19px 24px 15px;background:radial-gradient(ellipse at 85% 0,#23877a42,transparent 54%),linear-gradient(100deg,#1b3944,#0b202c);border-bottom:1px solid #315762}
.hq-eyebrow{font:800 9px system-ui,sans-serif;letter-spacing:2px;color:#82beba}
.hq-header h2{font-size:clamp(24px,5vw,39px);line-height:1;margin:6px 0;letter-spacing:1px;text-shadow:0 2px 11px #0006}
.hq-header h2 em{font-style:normal;color:#9ff8cc}
.hq-header p{font-size:12px;color:#b0c6c8;margin:6px 0 0}
.hq-close{border:1px solid #72919a;color:#edf6f6;background:#122d37;width:37px;height:37px;border-radius:10px;font-weight:800;cursor:pointer;flex:none}
.hq-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:12px 23px;background:#0d1f28}
.hq-stat{padding:10px 13px;border:1px solid #355661;border-radius:9px;background:#1b3641}
.hq-stat span{display:block;color:#99afb4;font-size:9px;letter-spacing:1px;font-weight:800}
.hq-stat strong{display:block;font-size:clamp(14px,3vw,22px);color:#c5ffe4;margin-top:3px}
.hq-tabs{display:flex;gap:8px;padding:12px 23px 0}
.hq-tabs button{flex:1;min-width:0;padding:12px 6px;background:#17313d;border:1px solid #365761;color:#a6c6cb;font-size:11px;font-weight:900;letter-spacing:.6px;border-radius:9px 9px 0 0;cursor:pointer}
.hq-tabs button.active{background:#23685f;color:#e2fff1;border-color:#71d2b0;border-bottom-color:#23685f}
.hq-content{overflow-y:auto;min-height:185px;flex:1;padding:16px 23px 24px;overscroll-behavior:contain;touch-action:pan-y}
.hq-section-head h3{margin:0 0 5px;color:#f1fff9;font-size:17px;letter-spacing:.5px}
.hq-section-head p{margin:0 0 16px;color:#a5bbbe;font-size:12px;line-height:1.45}
.hq-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(182px,1fr));gap:12px}
.hq-card{display:flex;flex-direction:column;min-height:224px;padding:12px;border:1px solid #31525c;border-radius:11px;background:linear-gradient(145deg,#1b323d,#11232f);transition:border-color .15s}
.hq-card.equipped{border-color:#81eaba;background:linear-gradient(145deg,#214d4b,#142e37)}
.hq-weapon-art{height:65px;border-radius:7px;display:grid;place-items:center;background:radial-gradient(ellipse at center,#2b7780,#142b38 68%);color:#b2f5e0;font-size:49px;font-weight:900;text-shadow:0 3px 16px #7fffff77}
.weapon-scatter{color:#ffd99a}.weapon-piercer{color:#d9baff}.weapon-heavy{color:#ffc2ad}
.hq-rarity{font-weight:900;font-size:9px;color:#6ae6c2;letter-spacing:1.3px;margin-top:10px}
.hq-card h4{font-size:15px;margin:3px 0 4px;color:#f1f9f4}
.hq-card p{font-size:11px;line-height:1.45;color:#adc3c4;margin:2px 0 14px;flex:1}
.hq-card-foot{display:flex;justify-content:space-between;align-items:center;gap:6px}
.hq-card-foot span{font-size:9px;color:#789fa7;font-weight:900;letter-spacing:.5px}
.hq-card-foot button,.hq-back{border:1px solid #7de2c0;border-radius:7px;background:#1a6b61;color:#eaffed;font:900 11px system-ui,sans-serif;padding:9px 12px;cursor:pointer;white-space:nowrap}
.hq-card-foot button:disabled{opacity:.6;cursor:default;background:#27424c;border-color:#50727c;color:#c1d8d8}
.hq-perk-symbol{font-size:35px;font-weight:900;color:#a4f9cb;padding:8px 0 10px}
.hq-level{display:flex;align-items:center;gap:5px;margin-bottom:12px}
.hq-level i{display:block;width:21px;height:7px;border-radius:3px;background:#3b5156}
.hq-level i.filled{background:#6bf3bc;box-shadow:0 0 9px #63f3be77}
.hq-level small{font:800 9px system-ui,sans-serif;color:#a4c8bd;margin-left:5px}
.hq-world-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:9px}
.hq-world{background:#1b3541;border:1px solid #456570;border-radius:9px;color:#e6faf3;padding:12px 9px;text-align:left;cursor:pointer;min-height:87px}
.hq-world>span{color:#85f2c9;font-weight:900;font-size:18px}
.hq-world strong{display:block;font-size:12px;margin:4px 0}
.hq-world small{font-size:9px;color:#9fc3cb;letter-spacing:.5px}
.hq-world.selected{border-color:#a0f7c6;background:#235e58}
.hq-world.locked{opacity:.45;cursor:default}
.hq-campaign-note{color:#a3dcca;font-size:11px}
.hq-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#0c1e29;border-top:1px solid #2b4852;padding:11px 23px}
.hq-footer span{color:#93a9b0;font-size:10px}
.hq-back{padding:10px 16px}
@media(max-width:560px){.hq-overlay{padding:0}.hq-shell{border-radius:0;max-height:100dvh;min-height:100dvh}.hq-header{padding:15px 14px}.hq-stats{padding:9px 12px;gap:5px}.hq-stat{padding:8px}.hq-tabs{padding:10px 12px 0;gap:4px}.hq-content{padding:14px 12px 20px}.hq-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hq-card{min-height:218px;padding:10px}.hq-card h4{font-size:13px}.hq-card-foot{align-items:stretch;flex-direction:column}.hq-card-foot button{width:100%}.hq-footer{padding:10px 12px}}
