/* Hero workshop: game artwork, contextual controls, live power. */
.planner[data-planner=hero]{--hb-gold:#ffe38c;--p-muted:#cdbfa8;max-width:1060px;padding:18px 18px 30px;color:#fff4dd;--hb-sheet-top:160px}
[data-planner=hero] .p-live-dock{display:none!important}
.hb-workshop{position:relative;max-width:740px;margin:auto;border:1px solid #997245;border-radius:24px;background:#35271f;box-shadow:0 20px 80px #0007;isolation:isolate;overflow:clip}
.hb-toolbar{display:flex;align-items:center;gap:9px;padding:10px 16px;background:linear-gradient(#423629,#2d2623);border-bottom:1px solid #b589514d}
.hb-toolbar>a{font-size:34px;width:36px;text-align:center;line-height:44px}
.hb-toolbar>span{font-size:11px;letter-spacing:.16em;font-weight:850;flex:1;color:#ffe1a0}
.hb-toolbar small{display:block;font-size:8px;letter-spacing:.13em;color:#bcad96;margin-top:3px}
.planner .hb-toolbar button{min-height:38px;padding:6px 10px;border-color:#8c7046;background:#5a4430;font-size:12px;border-radius:8px;color:#fff1d1}
.hb-power{position:sticky;top:0;z-index:22;background:linear-gradient(110deg,#211e20,#443525 60%,#211e20);box-shadow:0 6px 24px #0005;border-bottom:1px solid #c59e58;padding:10px 22px 8px}
.planner .hb-cp-button{width:100%;background:none;border:0;padding:0;display:flex;gap:12px;justify-content:flex-start;text-align:left;color:#fff3cd;min-height:58px}
.hb-cp-button>span:nth-child(2){display:grid;gap:0}.hb-cp-button small{font-size:9px;letter-spacing:.15em;color:#cfb98f}.hb-cp-info{margin-left:5px;opacity:.6}
#hb-cp{font-size:36px;line-height:1.08;letter-spacing:.005em;color:#ffe589;text-shadow:0 3px 0 #503616;font-weight:950;font-variant-numeric:tabular-nums}
#hb-cp-delta{font-size:11px;color:#baf58d;margin-left:auto;text-align:right;max-width:120px;font-variant-numeric:tabular-nums}
.hb-shield{display:grid;place-items:center;width:40px;height:45px;clip-path:polygon(8% 0,92% 0,100% 68%,50% 100%,0 68%);background:linear-gradient(130deg,#ffe982,#c48a27);font-size:26px;color:#ffe980;text-shadow:0 2px #535620;position:relative;isolation:isolate;flex-shrink:0}.hb-shield:before{content:'';position:absolute;inset:4px;clip-path:inherit;background:linear-gradient(#68b7f7,#3572ba);z-index:-1}
.hb-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;border-top:1px solid #a1804538;margin-top:8px;padding-top:6px}.hb-stats>span{display:flex;gap:6px;align-items:center;justify-content:center}.hb-stats strong{font-size:14px;font-variant-numeric:tabular-nums}.hb-stats i{font-style:normal;color:#e9d7ad;font-size:16px}.hb-stats small{font-size:9px;color:#c3b193;text-transform:uppercase}
.hb-stage{position:relative;height:560px;overflow:hidden;background:radial-gradient(ellipse at 48% 40%,#fff1b8 0%,#edbc50 40%,#b67921 77%,#644021 100%);isolation:isolate}
.hb-stage:after{content:'';position:absolute;inset:65% 0 0;background:linear-gradient(transparent,#65401dd9);z-index:-1;pointer-events:none}
.hb-halo{position:absolute;width:100%;height:100%;inset:0;border-radius:50%;background:repeating-conic-gradient(from 0deg at 50% 50%,transparent 0deg 20deg,#fff2b722 25deg 29deg,transparent 36deg 50deg);animation:hb-rays 50s linear infinite;z-index:-3;mask-image:radial-gradient(#000,transparent 73%)}
.hb-identity{position:absolute;top:20px;left:26px;right:112px;display:flex;align-items:center;gap:13px;z-index:3;pointer-events:none}.hb-identity h1{font-size:33px;font-weight:950;letter-spacing:-.035em;color:#fff0bb;text-shadow:2px 2px 0 #412c1e,-1px -1px 0 #412c1e,0 3px 0 #412c1e;line-height:1.05}.hb-rarity{font-size:72px;font-weight:1000;line-height:1;color:#ffe05f;text-shadow:0 4px 0 #805322,0 8px 15px #50321733;font-style:italic}.hb-faction{font-size:11px;display:inline-block;color:#ffefd4;padding:3px 10px;background:#5b347bbb;border:1px solid #dbb5ee;border-radius:6px;margin-top:7px;font-weight:800}
.hb-stage .hb-hero-art{position:absolute;width:110%;height:108%;object-fit:contain;max-width:none;left:-5%;top:6%;filter:drop-shadow(0 14px 18px #44251355);z-index:-2;animation:hb-appear .4s ease-out;pointer-events:none}
.planner .hb-slot{position:absolute;width:84px;height:86px;padding:3px;border:2px solid #efd4a4;border-radius:13px;background:linear-gradient(145deg,#777,#333);box-shadow:inset 0 0 0 3px #ffffff22,0 4px 0 #512f21,0 5px 12px #31231866;display:block;transition:transform .18s,box-shadow .18s;isolation:isolate;color:#fff8e2}
.hb-slot .game-icon{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 1px #0006)}
.planner .hb-slot:hover,.planner .hb-slot:focus-visible{transform:translateY(-3px);box-shadow:inset 0 0 0 3px #ffffff22,0 0 20px #ffe777;outline-color:#fff1ae}
.hb-slot small{position:absolute;left:50%;transform:translateX(-50%);bottom:-9px;background:linear-gradient(#746249,#3c2c23);border:1px solid #edd5a4;padding:1px 6px;border-radius:6px;white-space:nowrap;font-size:11px;font-weight:800;text-shadow:0 1px 1px #000}
.hb-slot-plus{position:absolute;right:-6px;top:-9px;display:grid;place-items:center;width:21px;height:21px;background:#b9ef64;color:#285b17;border:1px solid #e6ffc7;border-radius:50%;font-size:17px;box-shadow:0 2px 4px #0004}
.hb-pos-1{left:22px;top:36%}.hb-pos-3{right:22px;top:36%}.hb-pos-2{left:22px;top:64%}.hb-pos-4{right:22px;top:64%}
.planner .hb-exclusive{top:22px;right:22px;width:75px;height:78px}.hb-exclusive small{font-size:9px}
.planner .q-white{background:linear-gradient(145deg,#d0d4d2,#5c686a);border-color:#ecf0ea}.planner .q-green{background:linear-gradient(145deg,#9bc977,#345546);border-color:#bbec9d}.planner .q-blue{background:linear-gradient(145deg,#63bde8,#294677);border-color:#b4e7ff}.planner .q-purple{background:linear-gradient(145deg,#cb84f0,#512480);border-color:#efc5ff}.planner .q-orange{background:linear-gradient(145deg,#ffd772,#a25824);border-color:#ffe3a7}.planner .q-red{background:linear-gradient(145deg,#ff9a88,#a72c3a);border-color:#ffc3a6}.planner .q-empty{background:#553a2899;border:1px dashed #fff1bfaa}.hb-empty{font-size:32px;color:#fff2bd99}
.hb-stars{display:flex;justify-content:center;gap:2px;color:#493822;font-size:19px;line-height:1;white-space:nowrap}.hb-stars i{font-style:normal;filter:drop-shadow(0 1px 0 #432918)}.hb-stars .lit{color:#ffdd52}.hb-stars.red .lit{color:#ff604c;text-shadow:0 -1px #ffdec4}.hb-slot .hb-stars{position:absolute;bottom:11px;left:0;right:0;font-size:12px;gap:0}
.planner .hb-rank{position:absolute;left:50%;transform:translateX(-50%);top:21%;background:#50301877;border:1px solid #fff3ba70;border-radius:30px;padding:7px 14px;min-height:35px;gap:8px}.hb-rank small{font-size:10px;color:#ffefca}
.hb-skill-strip{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);display:flex;gap:16px}.planner .hb-skill{position:relative;width:68px;height:68px;border-radius:10px}.hb-locked{filter:saturate(.4);opacity:.7}
.hb-level{background:linear-gradient(110deg,#806025,#4c351f);padding:1px 24px 6px;border-top:1px solid #ddb86b}.hb-level .p-control{padding:10px 0}.hb-level .p-control-label{color:#ffeeae;font-weight:800}.hb-level .p-control-label output{font-size:21px;color:#ffdf6b}
[data-planner=hero] input[type=range]{appearance:none;-webkit-appearance:none;background:transparent;height:44px;min-width:0;--range-fill:0%}
[data-planner=hero] input[type=range]::-webkit-slider-runnable-track{height:8px;background:linear-gradient(to right,#fff0a0 var(--range-fill),#38281d var(--range-fill));border:1px solid #a58245;border-radius:8px;box-shadow:0 2px 2px #0006}
[data-planner=hero] input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;height:26px;width:26px;border:2px solid #fff1c5;background:linear-gradient(135deg,#fff0a0,#d49734);box-shadow:0 3px 0 #583e23,0 0 8px #ffcd5066;border-radius:7px;transform:rotate(45deg);margin-top:-10px}
[data-planner=hero] input[type=range]::-moz-range-track{height:8px;background:#38281d;border:1px solid #a58245;border-radius:8px}[data-planner=hero] input[type=range]::-moz-range-progress{height:8px;background:#ffe494}[data-planner=hero] input[type=range]::-moz-range-thumb{height:24px;width:24px;background:#ffe494;border:2px solid #fff1c5;border-radius:7px}
[data-planner=hero] .p-step{background:linear-gradient(#8a693c,#563c27);color:#ffe4a6;border-color:#c0995a;border-radius:8px;box-shadow:0 2px 0 #251914}
[data-planner=hero] .p-number,[data-planner=hero] .p-select input{background:#211d1a;border-color:#9c7b4a;color:#ffe5af}
.hb-quick-actions{display:grid;grid-template-columns:1fr 1.25fr 1.3fr;gap:1px;background:#bd945d66;border-top:1px solid #b29150}.planner .hb-quick-actions button{border:0;background:linear-gradient(#4c3a2b,#30251f);border-radius:0;padding:13px 5px;font-size:11px;min-height:53px;color:#e4cda4;gap:5px}.hb-quick-actions button>span{font-size:18px;color:#ecd391}.hb-quick-actions b{color:#fff0c2}
.planner .hb-hint{font-size:10px;text-align:center;color:#c8b18e;background:#30251f;margin:0;padding:7px}.hb-status:empty{display:none}.hb-status{font-size:12px;background:#4c322b;color:#ffe8b5;padding:10px;text-align:center}
.planner .hb-backdrop{position:fixed;inset:var(--hb-sheet-top) 0 0;z-index:80;background:#18151e55;backdrop-filter:blur(3px);border:0;border-radius:0;cursor:default}.planner .hb-backdrop:hover{background:#18151e55}
.hb-inspector{position:fixed;z-index:81;top:var(--hb-sheet-top);bottom:24px;right:max(24px,calc((100vw - 1100px)/2));width:390px;background:linear-gradient(135deg,#40392e,#272421);border:1px solid #c5a875;border-radius:18px;box-shadow:0 22px 70px #0009;display:flex;flex-direction:column;max-height:720px;animation:hb-sheet .22s ease-out;color:#ffefcf}
.hb-inspector>header{display:flex;align-items:center;justify-content:space-between;padding:14px 18px;border-bottom:1px solid #a68c5955;flex-shrink:0;background:linear-gradient(#66513777,transparent);border-radius:18px 18px 0 0}.hb-inspector header>div>span{font-size:8px;letter-spacing:.2em;color:#d2b889}.hb-inspector h2{font-size:21px;color:#ffe4a8;line-height:1.2}.planner .hb-inspector header button{padding:0;width:40px;height:40px;min-height:40px;border-radius:50%;border:1px solid #a18963;background:#4c4133;font-size:26px;color:#ffe8b7}
.hb-inspector-body{padding:18px;overflow-y:auto;overscroll-behavior:contain;min-height:0;scrollbar-color:#947644 #30291f;scrollbar-width:thin}.hb-inspector .p-panel{background:transparent;border:0;padding:0}.hb-inspector .p-control{border-bottom:1px solid #9c805530;padding:12px 0}.hb-inspector .p-control-label{color:#edddbd}.hb-inspector .p-select{margin:12px 0}.hb-inspector h3{font-size:18px;color:#ffe6b0;margin:12px 0 6px}.hb-inspector .p-notice{font-size:12px}.hb-inspector .p-stat strong{font-size:22px}.hb-inspector .p-stat-grid{grid-template-columns:1fr 1fr}
.hb-equipment-picker{display:grid;grid-template-columns:repeat(6,1fr);gap:6px}.planner .hb-equipment-picker button{padding:2px;display:flex;flex-direction:column;gap:0;border-radius:8px;border-width:2px;min-width:0;box-shadow:0 3px #16131355}.hb-equipment-picker .game-icon{width:100%;height:auto;aspect-ratio:1}.hb-equipment-picker span{font-size:10px;color:white;text-shadow:0 1px #302317}.planner .hb-equipment-picker .selected,.planner .hb-roster .selected{outline:2px solid #fff0a3;outline-offset:2px;box-shadow:0 0 14px #ffdf6455}
.hb-star-picker{padding:13px 0;border-bottom:1px solid #aa895638}.hb-star-picker>span{font-size:12px;color:#cbbb9b}.hb-star-picker>div{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:9px 0}.planner .hb-star-picker button{min-height:44px;padding:4px;font-size:12px;border-color:#87584c;border-radius:7px;background:#512d29;gap:3px;color:#ffeed0}.hb-star-picker button>span{font-size:13px;color:#ff8870}.planner .hb-star-picker button.selected{border-color:#ffe88e;background:#815037;box-shadow:0 0 12px #ffc76a44}.planner .hb-star-picker button.unverified{border-style:dashed;background:#352c2a}.hb-star-picker small,.hb-help{display:block;font-size:11px;color:#bcae95;line-height:1.6;margin-top:12px}.hb-progression{color:#b5e98a;font-size:13px;margin:10px 0!important}
.hb-editor-art{display:flex;gap:16px;align-items:center;margin-bottom:12px}.hb-editor-art>.game-icon{width:75px;height:75px}.hb-editor-art small{color:#c4b89e;font-size:11px}.hb-weapon-art{background:radial-gradient(ellipse,#ad493d44,transparent 75%);flex-direction:column;gap:0;margin:-10px 0 0}.hb-weapon-art>.game-icon{width:150px;height:130px;filter:drop-shadow(0 0 12px #ec715733)}.hb-weapon-art h3{margin:0;text-align:center}
.hb-skill-description{background:linear-gradient(135deg,#eee2c9,#d6c8aa);color:#57432d;border-radius:10px;padding:16px;font-size:14px;line-height:1.55;box-shadow:0 4px 0 #15100b44;margin-top:14px}.hb-star-effect{margin-top:14px;padding-top:12px;border-top:1px solid #9f855766;color:#426623;font-weight:700}.hb-weapon-skills details{border:1px solid #8a7853;border-radius:10px;margin-top:9px;overflow:hidden}.hb-weapon-skills summary{list-style:none;display:flex;gap:10px;align-items:center;padding:8px;cursor:pointer}.hb-weapon-skills summary .game-icon{height:43px;width:43px}.hb-weapon-skills summary>span{font-size:13px;flex:1}.hb-weapon-skills summary small{display:block;font-size:10px;color:#bdb195}.hb-weapon-skills .hb-skill-description{margin:0;border-radius:0}.hb-rank-preview{text-align:center}.hb-rank-preview>.game-icon{width:80px;height:65px}.hb-rank-preview p{margin-top:12px;font-size:12px;color:#d5c2a2}
.hb-roster{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}.planner .hb-roster button{display:flex;flex-direction:column;gap:3px;padding:5px 4px 8px;border-radius:10px;min-width:0}.hb-roster .game-icon{width:100%;height:95px;object-fit:contain}.hb-roster span{font-size:11px;color:#fff4d6;text-shadow:0 1px #342720}.hb-roster small{font-size:8px;color:#fff0d6}.hb-roster [hidden]{display:none!important}.hb-menu{display:grid;gap:10px;margin-bottom:22px}.planner .hb-menu button{background:linear-gradient(#517b72,#345c54);border-color:#90b7a3;color:#effcdd}.planner .hb-text-button{background:transparent;border:0;color:#d9b99e;font-size:12px;width:100%;margin-top:12px}.hb-inspector .p-cost{background:#201e1b}.hb-inspector .p-effect-list strong{color:#b9ed88}.hb-inspector .p-breakdown{font-size:12px}.hb-inspector .p-skill-tag{color:#cab38d}
.hb-cp-change{animation:hb-flash .45s ease-out}@keyframes hb-flash{0%{color:white;text-shadow:0 0 18px #fff6af}100%{color:#ffe589}}@keyframes hb-rays{to{transform:rotate(360deg)}}@keyframes hb-appear{from{opacity:.4;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes hb-sheet{from{opacity:.6;transform:translateY(18px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1000px){.hb-workshop{max-width:800px}.hb-stage{height:540px}.hb-stage .hb-hero-art{width:95%;left:2.5%;height:120%;top:0}.hb-pos-1,.hb-pos-2{left:65px}.hb-pos-3,.hb-pos-4{right:65px}.hb-skill-strip{gap:20px}.hb-identity{left:42px}.planner .hb-exclusive{right:42px}.hb-inspector{right:max(20px,calc((100vw - 1220px)/2));width:390px}}
@media(max-width:600px){.planner[data-planner=hero]{padding:6px 0 20px}.hb-workshop{border-radius:14px;border-color:#96734577}.hb-toolbar{padding:7px 10px;gap:6px}.hb-toolbar>span{font-size:9px;letter-spacing:.1em}.hb-toolbar small{font-size:7px}.planner .hb-toolbar button{padding:5px 8px;font-size:10px}.hb-power{padding:7px 12px;top:0}.hb-cp-button{gap:9px!important;min-height:50px!important}#hb-cp{font-size:31px}#hb-cp-delta{font-size:10px;max-width:92px}.hb-stats strong{font-size:12px}.hb-stats small{font-size:8px}.hb-stats>span{gap:4px}.hb-shield{width:33px;height:38px;font-size:23px}.hb-stage{height:clamp(385px,108vw,510px)}.hb-identity{top:14px;left:15px;right:86px;gap:10px}.hb-identity h1{font-size:25px}.hb-rarity{font-size:58px}.hb-faction{font-size:9px;padding:2px 7px;margin-top:4px}.planner .hb-slot{width:64px;height:66px;border-radius:10px}.hb-pos-1,.hb-pos-2{left:13px}.hb-pos-3,.hb-pos-4{right:13px}.planner .hb-exclusive{width:58px;height:60px;top:17px;right:15px}.hb-slot small{font-size:9px}.hb-exclusive small{font-size:8px}.hb-slot-plus{width:17px;height:17px;font-size:14px;right:-4px;top:-5px}.hb-pos-2,.hb-pos-4{top:61%}.hb-stars{font-size:15px}.hb-slot .hb-stars{font-size:10px}.hb-rank{top:23%!important;padding:5px 10px!important}.hb-rank small{font-size:8px}.hb-skill-strip{bottom:20px;gap:14px}.planner .hb-skill{width:55px;height:55px}.hb-stage .hb-hero-art{width:120%;left:-10%;height:110%;top:4%}.hb-level{padding:0 14px}.hb-level .p-control{padding:8px 0 2px}.hb-level .p-control-label{font-size:12px}.hb-level .p-control-label output{font-size:18px}.hb-level .p-range-row{margin-top:2px}.hb-level .p-number{min-height:36px}.hb-level .p-step{min-height:36px}.hb-quick-actions button{font-size:9px!important;min-height:47px!important}.hb-quick-actions button>span{font-size:14px}.hb-hint{font-size:9px!important}.hb-inspector{top:auto;bottom:0;left:0;right:0;width:100%;max-height:calc(100dvh - var(--hb-sheet-top));border-radius:20px 20px 0 0;padding-bottom:env(safe-area-inset-bottom);box-shadow:0 -10px 45px #0007}.hb-inspector>header{padding:10px 16px}.hb-inspector-body{padding:14px 18px 22px}.hb-inspector h2{font-size:20px}.hb-inspector .p-range-row{grid-template-columns:40px minmax(40px,1fr) 40px 58px;gap:7px}.hb-inspector .p-step{min-height:40px}.hb-inspector .p-costs{gap:6px}.hb-inspector .p-cost{padding:7px}.hb-inspector .p-cost strong{font-size:14px}.p-data-footer{margin-top:15px!important;font-size:9px!important}}
@media(prefers-reduced-motion:reduce){.hb-halo,.hb-hero-art,.hb-inspector,.hb-cp-change{animation:none!important}.hb-slot{transition:none!important}}
[data-planner=hero] input.p-number{padding:4px!important;appearance:textfield;-moz-appearance:textfield;font-size:14px;text-align:center;background:#282019;border-color:#b08a51;color:#ffe5af}[data-planner=hero] input.p-number::-webkit-inner-spin-button,[data-planner=hero] input.p-number::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
/* Opaque adjustment surfaces stay legible over bright hero artwork. */
.hb-inspector{background:#302b25!important;opacity:1!important;animation:hb-solid-sheet .22s ease-out}.hb-inspector>header{background:#493c2e}.hb-inspector-body{background:#302b25}.hb-equipment-picker{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.hb-breakthrough{border:1px solid #bb8e4e;border-radius:12px;background:linear-gradient(130deg,#58452a,#372d23);padding:12px;margin-top:16px}.hb-breakthrough>div:first-child{display:flex;gap:12px;align-items:center}.hb-breakthrough .game-icon{width:64px;height:64px}.hb-breakthrough b{color:#ffe0a0;font-size:14px}.hb-breakthrough small{display:block;font-size:10px;color:#ccba94}.hb-breakthrough p{font-size:12px;color:#d9c299;margin-top:10px}.planner .hb-breakthrough>button{width:100%;background:linear-gradient(#80b9a2,#477f73);border-color:#b2e4c4;color:#fff7d5;font-size:13px}.hb-breakthrough .p-costs{margin:10px 0}.hb-breakthrough .p-cost{padding:6px;grid-template-columns:28px 1fr}.hb-breakthrough .p-cost .game-icon{height:27px;width:27px}.hb-breakthrough .p-cost span{font-size:9px}
.planner .hb-star-picker button{position:relative;display:flex;flex-direction:column;gap:0;background:#492c2c;border:1px solid #90604c;height:55px;border-radius:10px;color:#f7d3b8;font-size:10px;padding:4px}.hb-star-picker button>span{font-size:19px;line-height:1.3;color:#ff8f75;text-shadow:0 1px #832321,0 0 8px #f9433344;letter-spacing:-4px;padding-right:4px}.planner .hb-star-picker button.selected{background:linear-gradient(#a1553c,#743727);box-shadow:0 0 0 1px #ffe49e,0 0 16px #ee8f4544}.planner .hb-star-picker button.unverified{background:#342b29;border-color:#77604e;color:#c4a992}.hb-star-picker button.unverified>span{color:#b47c6d}.hb-slot .hb-stars:has(i:nth-child(6)){display:grid;grid-template-columns:repeat(5,1fr);gap:0 1px;bottom:11px;font-size:9px;line-height:.9;width:50px;left:50%;transform:translateX(-50%)}
@keyframes hb-solid-sheet{from{transform:translateY(16px)}to{transform:translateY(0)}}
.hb-animated-art{position:absolute;inset:8% -8% -7%;z-index:-2;pointer-events:none}.hb-animated-art canvas{display:block;width:100%;height:100%}.hb-stage:has(.hb-animated-art.is-ready)>.hb-hero-art{visibility:hidden}@media(prefers-reduced-motion:reduce){.hb-animated-art{display:none}.hb-stage:has(.hb-animated-art.is-ready)>.hb-hero-art{visibility:visible}}
.hb-animated-art .hb-idle-loop{display:block;width:100%;height:100%;object-fit:contain;object-position:center bottom}
.planner .hb-rank{left:27px;top:22%;transform:none;padding:5px 10px;background:#51321688}.hb-equipped-title{display:flex;align-items:center;gap:12px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #a8855144}.hb-equipped-title>.game-icon{height:59px;width:59px;background:linear-gradient(135deg,#b05744,#5c302d);border:1px solid #e9bd89;border-radius:10px}.hb-equipped-title small{font-size:8px;color:#bda47c;letter-spacing:.12em}.hb-equipped-title h3{font-size:18px;margin:0!important}.hb-equipped-title span{font-size:10px;color:#ddc8a5}@media(max-width:600px){.planner .hb-rank{left:15px;top:23%!important}.hb-rank .hb-stars{font-size:13px}.hb-rank small{font-size:8px}}
/* 2026-10-14: larger editors with power kept inside the compact header. */
.hb-workshop:has(.hb-inspector){z-index:150}
body:has(.hb-inspector){overflow:hidden}
.planner .hb-backdrop{inset:0;background:#141017a6}
.hb-inspector{top:12px;bottom:12px;right:max(18px,calc((100vw - 1100px)/2));width:min(560px,calc(100vw - 36px));height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}
.hb-inspector>header{padding:10px 16px;gap:10px}.hb-inspector>header>div{min-width:0;flex:1}.hb-inspector h2{font-size:19px}.hb-sheet-power{display:flex;align-items:baseline;gap:7px;margin-top:3px;font-variant-numeric:tabular-nums}.hb-sheet-power>span{font-size:9px;color:#d2b575}.hb-sheet-power strong{font-size:19px;line-height:1.2;color:#ffe38c}.hb-sheet-power small{font-size:10px;color:#bee897;margin-left:auto}.planner .hb-inspector header button{width:44px;height:44px;min-height:44px}
.hb-inspector-body{padding:12px 16px 18px}.hb-inspector .p-control{padding:8px 0}.hb-inspector .p-range-row{margin-top:3px;gap:7px}.hb-inspector .p-control-label output{font-size:13px}.hb-inspector .p-select{margin:8px 0}.hb-inspector .p-notice{margin:8px 0;padding:9px 11px}.hb-equipped-title{margin-bottom:9px;padding-bottom:8px;gap:10px}.hb-equipped-title>.game-icon{width:46px;height:46px}.hb-equipped-title h3{font-size:16px}.hb-equipped-title small{display:none}.hb-equipment-picker{gap:7px}.hb-equipment-picker .game-icon{max-height:62px}.hb-inspector .hb-editor-art{gap:12px;margin-bottom:5px}.hb-inspector .hb-weapon-art{flex-direction:row;justify-content:flex-start;text-align:left;margin:0;padding:0;background:radial-gradient(ellipse at 14% 50%,#ad493d44,transparent 55%)}.hb-inspector .hb-weapon-art>.game-icon{width:90px;height:86px}.hb-inspector .hb-weapon-art h3{text-align:left;font-size:18px}.hb-star-picker{padding:8px 0}.hb-star-picker>div{gap:6px;margin:6px 0}.planner .hb-star-picker button{height:44px;min-height:44px;flex-direction:row;gap:5px}.hb-star-picker button>span{font-size:17px}.hb-star-picker small{font-size:10px;line-height:1.4;margin-top:6px}.hb-inspector .hb-progression{margin:6px 0!important}.hb-inspector .p-effect-list>div{padding-top:5px;padding-bottom:5px}.hb-inspector .hb-skill-description{padding:12px;margin-top:10px}.hb-inspector .hb-weapon-skills summary{padding:6px 8px}.hb-inspector .hb-weapon-skills summary .game-icon{width:36px;height:36px}.hb-inspector .hb-weapon-skills details{margin-top:7px}.hb-breakthrough{padding:10px;margin-top:9px}.hb-breakthrough .game-icon{width:46px;height:46px}.planner .hb-undo-breakthrough{background:#48392b;border-color:#92734b;color:#ead4ae;font-size:11px;padding:6px 12px;min-height:44px;width:100%;margin:7px 0}.hb-inspector .hb-help{margin-top:8px}
/* The entire equipment slot remains the touch target; the badge is a game-style upgrade arrow. */
.hb-slot-plus{width:27px;height:29px;right:-6px;top:-8px;border:1px solid #e8ffa4;border-radius:7px;background:linear-gradient(#c2f874,#56a541);box-shadow:0 2px 0 #2d6027,0 2px 6px #1a2e2470;transform:rotate(5deg)}.hb-slot-plus svg{width:21px;height:21px;fill:none;stroke:#244d21;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px #dfffab)}
/* Exclusive weapons float freely, with an aura instead of an equipment-card frame. */
.planner .hb-slot.hb-exclusive,.planner .hb-slot.hb-exclusive:hover,.planner .hb-slot.hb-exclusive:focus-visible{width:116px;height:120px;top:8px;right:15px;padding:0;border:0;background:none;border-radius:0;box-shadow:none;isolation:isolate}.hb-exclusive:before{content:'';position:absolute;inset:9%;z-index:-1;border-radius:50%;background:radial-gradient(ellipse,#ffb95d66,transparent 68%);filter:blur(5px)}.hb-exclusive .game-icon{filter:drop-shadow(0 0 9px #ff9e6066) drop-shadow(0 4px 2px #4d281c77);transition:filter .2s;object-fit:contain}.hb-exclusive small{bottom:0;background:#4a3021c9;border:1px solid #d5a75899;padding:2px 9px;font-size:10px}.hb-exclusive.is-unowned .game-icon{filter:grayscale(1) brightness(.68);opacity:.65}.hb-exclusive.is-unowned:before{opacity:0}.hb-exclusive.is-unowned small{color:#c7bca9;border-color:#998974;background:#3a342cbf}.hb-identity{right:137px}
@media(max-width:600px){.hb-inspector{top:8px;bottom:0;left:0;right:0;width:100%;height:calc(100dvh - 8px);max-height:calc(100dvh - 8px);border-radius:16px 16px 0 0}.hb-inspector>header{padding:9px 14px;border-radius:16px 16px 0 0}.hb-inspector-body{padding:10px 14px 18px}.hb-inspector .p-range-row{grid-template-columns:40px minmax(40px,1fr) 40px 58px}.hb-inspector .p-control{padding:7px 0}.hb-sheet-power strong{font-size:18px}.hb-sheet-power small{font-size:9px}.hb-equipped-title>.game-icon{width:41px;height:41px}.hb-equipment-picker .game-icon{max-height:52px}.hb-slot-plus{width:24px;height:25px;right:-5px;top:-7px}.hb-slot-plus svg{width:19px;height:19px}.planner .hb-slot.hb-exclusive,.planner .hb-slot.hb-exclusive:hover,.planner .hb-slot.hb-exclusive:focus-visible{width:94px;height:103px;right:7px;top:7px}.hb-identity{right:106px}.hb-exclusive small{font-size:9px}.hb-inspector .hb-weapon-art>.game-icon{width:78px;height:76px}.hb-inspector .hb-weapon-art h3{font-size:17px}.hb-inspector .p-effect-list{font-size:12px}.hb-inspector .hb-star-picker button{font-size:10px}.hb-inspector .p-control-label{font-size:12px}}
@media(prefers-reduced-motion:reduce){.hb-exclusive .game-icon{transition:none}}
/* Content-sized, smoothly expanding hero editors. */
.hb-inspector{top:50%;bottom:auto;transform:translateY(-50%);height:auto;max-height:calc(100dvh - 20px);transition:height .26s cubic-bezier(.2,.7,.2,1);animation:none;overflow:hidden}.hb-inspector-body{flex:1;min-height:0}.hb-inspector-content{display:flow-root}.hb-inspector .hb-upgrade-control .p-range-row{grid-template-columns:44px minmax(60px,1fr) 44px;gap:12px;margin-top:3px}.hb-upgrade-control .p-control-label{justify-content:center;font-size:12px}.hb-visual-rank{text-align:center;padding:3px 0 4px;min-height:54px}.hb-progression-stars{display:inline-flex;gap:5px;align-items:center;line-height:1}.hb-star{font-style:normal;font-size:37px;color:transparent;background:linear-gradient(90deg,#ffe788 var(--star-fill),#645746 var(--star-fill));background-clip:text;-webkit-background-clip:text;-webkit-text-stroke:.7px #c09e60;filter:drop-shadow(0 2px 1px #17120b);transition:background .15s}.hb-progression-stars.is-red .hb-star{background-image:linear-gradient(90deg,#ff7663 var(--star-fill),#60433c var(--star-fill));-webkit-text-stroke:.7px #de9177}.hb-progression-stars.is-locked{filter:grayscale(1);opacity:.45}.hb-star-caption{display:block;font-size:10px;color:#d9c49b;margin-top:5px}.hb-promotion-marks{display:inline-flex;gap:5px;margin:12px 0 2px}.hb-promotion-marks i{height:13px;width:17px;border:1px solid #9b7849;transform:skewX(-12deg);border-radius:3px;background:#4a3928}.hb-promotion-marks i.filled{background:linear-gradient(#ffe1a2,#c38a36);box-shadow:0 0 5px #ffc26033}.hb-weapon-rank{position:absolute;bottom:-4px;left:0;right:0;display:flex;justify-content:center;line-height:1}.hb-weapon-rank .hb-star{font-size:16px;-webkit-text-stroke:.35px #bc935b}.hb-weapon-rank .hb-progression-stars{gap:1px}.hb-weapon-rank .hb-star-caption{display:none}.hb-weapon-rank>small{position:static!important;white-space:nowrap}.hb-cost-summary{font-variant-numeric:tabular-nums}.hb-compare-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;border-bottom:1px solid #9d805740;padding:1px 0 12px}.hb-compare-stats>div{display:flex;flex-direction:column;align-items:center;gap:3px}.hb-compare-stats small{font-size:10px;letter-spacing:.07em;color:#c8b58f}.hb-compare-stats strong{font-size:21px;color:#ffebbb}.hb-compare-stats span{font-size:11px;color:#b7da89}.hb-section-heading{display:flex;align-items:baseline;gap:10px;justify-content:space-between;margin:14px 0 9px}.hb-section-heading h3{font-size:16px;margin:0!important}.hb-section-heading>span{font-size:10px;color:#bdaa89}.hb-materials .p-costs{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:0}.hb-materials .p-cost{grid-template-columns:38px minmax(0,1fr);padding:9px;border:1px solid #80704b55;border-radius:9px;background:#26221e}.hb-materials .p-cost .game-icon{height:35px;width:35px}.hb-materials .p-cost span{font-size:10px;line-height:1.25;color:#d9c7a5}.hb-materials .p-cost strong{font-size:17px;color:#fff0c4}.hb-cost-scope{display:block;font-size:10px;color:#b9aa91;margin:8px 0}.hb-xp{display:flex;justify-content:space-between;background:#3e3327;border-radius:8px;padding:9px 12px;margin-bottom:7px;font-size:12px}.hb-xp strong{color:#ffe294}.hb-cost-section{margin-top:12px;border:1px solid #86704f88;border-radius:10px;overflow:hidden}.hb-cost-section>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;min-height:48px;padding:12px;font-size:12px;color:#ecdbb8;list-style:none}.hb-cost-section>summary:after{content:'＋';font-size:17px;color:#d0b578}.hb-cost-section[open]>summary:after{content:'−'}.hb-cost-section>summary>strong{margin-left:auto;font-size:14px;color:#ffe49b}.hb-power-table{width:100%;border-collapse:collapse;table-layout:auto;font-size:11px}.hb-power-table th,.hb-power-table td{padding:9px 7px;border-top:1px solid #7c69443d;text-align:right;white-space:nowrap}.hb-power-table th:first-child{text-align:left;white-space:normal;color:#d7c6a4;font-weight:500}.hb-power-table thead th{font-size:9px;color:#c4af83}.hb-cost-section .positive{color:#bfdf93}.hb-cost-summary .negative{color:#ef9d8b}.hb-cost-section>h3,.hb-cost-section>.p-effect-list{margin-left:12px;margin-right:12px}.hb-consumed>span{display:flex;align-items:center;gap:8px;font-size:11px}.hb-consumed .game-icon{width:32px;height:32px}.planner .hb-cp-button:hover{background:none}.planner[data-planner=hero] .p-live-dock{display:none}
@media(max-width:600px){.hb-inspector{top:auto;bottom:8px;left:6px;right:6px;width:calc(100% - 12px);height:auto;max-height:calc(100dvh - 20px);transform:none;border-radius:16px;padding-bottom:env(safe-area-inset-bottom)}.hb-inspector[data-editor-kind=stars]{bottom:max(12px,env(safe-area-inset-bottom))}.hb-star{font-size:35px}.hb-cost-section>summary{font-size:11px}.hb-power-table{font-size:10px}.hb-power-table th,.hb-power-table td{padding:8px 5px}.hb-compare-stats strong{font-size:19px}.hb-weapon-rank .hb-star{font-size:14px}}
@media(prefers-reduced-motion:reduce){.hb-inspector,.hb-star{transition:none}}

/* Five-point upgrade chips and reusable equipment loadouts. */
.hb-progression-stars .hb-star{width:1em;height:1em;display:block;overflow:visible;background:none;-webkit-text-stroke:0}.hb-star-chip{fill:#514539;stroke:#bc9457;stroke-width:1.6;stroke-linejoin:round;transition:fill .16s}.hb-star-chip.is-filled{fill:#ffda63}.hb-star-chip.is-filled:nth-child(2){fill:#ffe699}.hb-star-chip.is-filled:nth-child(3){fill:#dca53a}.hb-star-chip.is-filled:nth-child(4){fill:#efb946}.hb-star-chip.is-filled:nth-child(5){fill:#fff0a7}.hb-progression-stars.is-red .hb-star{background:none;-webkit-text-stroke:0}.is-red .hb-star-chip{fill:#533b36;stroke:#c87560}.is-red .hb-star-chip.is-filled{fill:#ff745b}.is-red .hb-star-chip.is-filled:nth-child(2){fill:#ffad87}.is-red .hb-star-chip.is-filled:nth-child(3){fill:#ce433b}.is-red .hb-star-chip.is-filled:nth-child(4){fill:#e95844}.is-red .hb-star-chip.is-filled:nth-child(5){fill:#ffc098}.hb-rank .hb-star{font-size:17px}.hb-rank .hb-progression-stars{gap:2px}.hb-rank .hb-star-caption{display:none}.hb-gear>.hb-progression-stars{position:absolute;bottom:12px;left:0;right:0;justify-content:center;gap:0}.hb-gear .hb-star{font-size:12px}.hb-gear>.hb-star-caption{display:none}.hb-faction{display:flex;align-items:center;width:max-content;gap:5px;background:none;border:0;padding:0}.hb-faction img{width:29px;height:33px;object-fit:contain;filter:drop-shadow(0 2px 2px #3b203f77)}.hb-faction b{border:1px solid #cfb978;border-radius:8px;background:#373e59;padding:4px 6px;font-size:11px;color:#fff1ba}.planner .hb-copy-entry{width:100%;min-height:36px;font-size:11px;background:#354a45;border-color:#6b9580;color:#e1edce;margin-top:8px;padding:6px}.hb-copy-intro{margin:0 0 10px;line-height:1.45}.hb-copy-modes{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0 12px}.planner .hb-copy-modes button{min-height:40px;font-size:12px;background:#302c26;border-color:#776649;color:#c7b99e}.planner .hb-copy-modes button[aria-pressed=true]{background:#685034;border-color:#d8b566;color:#fff0c4}.hb-copy-list{display:grid;gap:10px}.planner .hb-copy-card{display:flex;flex-direction:column;align-items:stretch;text-align:left;width:100%;padding:10px;gap:9px;background:linear-gradient(130deg,#443b2d,#292820);border-color:#8e774f;border-radius:12px}.planner .hb-copy-card:hover,.planner .hb-copy-card:focus-visible{border-color:#edce80;background:#514430}.hb-copy-hero{display:flex;align-items:center;gap:9px}.hb-copy-hero>.game-icon{width:42px;height:45px;object-fit:contain}.hb-copy-hero>span{flex:1;min-width:0}.hb-copy-hero strong{display:block;font-size:15px;color:#ffe7b2}.hb-copy-hero small{display:block;font-size:10px;color:#bfba9d;margin-top:3px}.hb-copy-hero>b{font-size:25px;color:#cce3ab}.hb-copy-pieces{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.hb-copy-piece{display:flex;flex-direction:column;align-items:center;min-width:0;border:1px solid #947d58;border-radius:8px;padding:4px;position:relative;min-height:78px}.hb-copy-piece>.game-icon{width:42px;height:42px;object-fit:contain}.hb-copy-piece>small{font-size:10px;color:#fff1cb}.hb-copy-piece>em{font-size:9px;font-style:normal;color:#e7cb94}.hb-copy-piece .hb-star{font-size:10px}.hb-copy-piece .hb-progression-stars{gap:1px;margin-top:3px}.hb-copy-piece .hb-star-caption{display:none}.hb-copy-piece.is-empty{background:#26241f;border-style:dashed;justify-content:center;gap:7px;opacity:.6}.hb-copy-empty{font-size:13px;line-height:1.6;padding:14px;background:#26241e;border-radius:10px;color:#cfbf9f}.hb-copy-result{display:flex;align-items:center;gap:6px;background:#314136;border:1px solid #6c8d65;border-radius:9px;padding:9px;margin-bottom:12px}.hb-copy-result>span{flex:1;font-size:12px;color:#d8edbd}.planner .hb-copy-result button{min-height:40px;font-size:11px;padding:6px 10px}.hb-copy-result [data-h-close]{background:#426152}
@media(max-width:600px){.hb-rank .hb-star{font-size:14px}.hb-gear .hb-star{font-size:10px}.hb-faction img{width:25px;height:29px}.hb-faction b{font-size:10px;padding:3px 5px}}
@media(prefers-reduced-motion:reduce){.hb-star-chip{transition:none}}

.hb-stat-icon{width:24px;height:24px;flex-shrink:0;fill:#fff8e5;stroke:#604e37;stroke-width:1.6;stroke-linejoin:round;filter:drop-shadow(0 1px 1px #17140c77)}.hb-compare-stats small{display:flex;align-items:center;gap:5px}.hb-compare-stats .hb-stat-icon{width:20px;height:20px}@media(max-width:600px){.hb-stats .hb-stat-icon{width:21px;height:21px}}

/* Exclusive weapon room: source artwork, compact skill dock and parchment popover. */
.hb-inspector[data-editor-kind=weapon]{background:#28232b;border-color:#af856d}.hb-inspector[data-editor-kind=weapon]>header{padding:9px 15px;background:linear-gradient(110deg,#46352f,#302630)}.hb-inspector[data-editor-kind=weapon]>header h2{font-size:18px}.hb-inspector[data-editor-kind=weapon] .hb-sheet-power strong{font-size:20px}.hb-inspector[data-editor-kind=weapon] .hb-inspector-body{padding:0 14px 12px}.hb-weapon-showcase{position:relative;margin:0 -14px;padding:15px 18px 9px;background:radial-gradient(ellipse at 74% 32%,#9d284657,transparent 61%),radial-gradient(ellipse at 15% 82%,#68303b66,transparent 60%),linear-gradient(145deg,#211d30,#382332 55%,#211e2b);isolation:isolate}.hb-weapon-showcase:before{content:'';position:absolute;inset:0;z-index:-1;background:repeating-linear-gradient(125deg,transparent 0 96px,#f1708620 97px,transparent 100px);pointer-events:none}.hb-weapon-heading{position:relative;z-index:1}.hb-weapon-heading h3{font-size:25px;line-height:1.05;color:#ffe7ae;letter-spacing:-.03em;margin:0!important;text-shadow:0 2px 1px #120a0f}.hb-weapon-heading>small{display:block;font-size:11px;color:#e4cfac;margin-top:5px}.hb-weapon-power{display:flex;align-items:center;gap:6px;margin-top:5px;font-variant-numeric:tabular-nums}.hb-weapon-power .hb-shield{width:22px;height:25px;font-size:16px}.hb-weapon-power strong{font-size:22px;color:#fff0c4}.hb-weapon-power>span:last-child{font-size:9px;color:#c8b39b}.hb-weapon-display{height:clamp(170px,27dvh,245px);position:relative;margin-top:-5px}.hb-weapon-display>.game-icon{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 18px #e5516766);transition:filter .2s}.hb-weapon-showcase.is-unowned .hb-weapon-display>.game-icon{filter:grayscale(1);opacity:.55}.hb-weapon-display [data-h-weapon-animation]{position:absolute;inset:0;pointer-events:none}.hb-weapon-loop{width:100%;height:100%;object-fit:contain}.hb-weapon-display:has(.is-ready)>.game-icon{visibility:hidden}.hb-weapon-skills{display:flex;justify-content:center;gap:12px;padding:4px 0 0}.planner .hb-weapon-skill{position:relative;width:52px;height:54px;min-height:44px;padding:0;border:2px solid #e7b65a;border-radius:8px;background:linear-gradient(140deg,#733236,#321e32);box-shadow:0 2px 0 #160f18;overflow:hidden}.hb-weapon-skill>.game-icon{width:100%;height:100%;object-fit:contain}.planner .hb-weapon-skill.selected{border-color:#fff0a3;box-shadow:0 0 0 2px #da843f,0 0 16px #e09e5966}.hb-weapon-skill.is-locked>.game-icon{filter:brightness(.5) saturate(.6)}.hb-skill-lock{position:absolute;bottom:1px;right:3px;color:#fff3d4;text-shadow:0 1px 3px #000;font-size:18px}.hb-weapon-tooltip{position:absolute;z-index:4;left:16px;right:16px;bottom:77px;background:linear-gradient(120deg,#f4e7cb,#e6d7b9);border:1px solid #fff0cd;border-radius:12px;padding:14px;color:#503d2b;box-shadow:0 5px 24px #0a071099;animation:hb-tip-in .16s ease-out}.hb-weapon-tooltip:after{content:'';position:absolute;bottom:-9px;left:calc(50% - 9px);width:16px;height:16px;transform:rotate(45deg);background:#e9dabc;border-bottom:1px solid #fff0cd;border-right:1px solid #fff0cd}.hb-weapon-tooltip h3{font-size:18px;line-height:1.2;margin:0 24px 5px 0!important;color:#513c29}.hb-weapon-tooltip>small{display:block;color:#6c573f;font-size:11px;font-weight:700}.hb-weapon-tooltip>small.is-locked{color:#b54130}.planner .hb-weapon-tooltip>button{position:absolute;top:4px;right:4px;min-height:36px;width:36px;padding:0;background:transparent;border:0;color:#775e43;font-size:25px}.hb-weapon-tooltip .hb-skill-description{background:none;border-radius:0;box-shadow:none;margin:8px 0 0;padding:0;font-size:13px;line-height:1.45;max-height:min(29dvh,240px);overflow:auto;overscroll-behavior:contain}.hb-inspector[data-editor-kind=weapon] .hb-upgrade-control{padding:8px 0 4px}.hb-inspector[data-editor-kind=weapon] .hb-upgrade-control .p-control-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.hb-inspector[data-editor-kind=weapon] .hb-visual-rank{min-height:42px;padding:1px 0 2px}.hb-inspector[data-editor-kind=weapon] .hb-upgrade-control .p-range-row{margin-top:0}.hb-weapon-bonuses .p-effect-list{margin-top:7px}.hb-weapon-bonuses .p-effect-list>div{padding:6px 2px;font-size:12px}.hb-weapon-next{display:flex;align-items:center;gap:10px;margin-top:9px;padding-top:9px;border-top:1px solid #a3836044}.hb-weapon-next-cost{flex:1;min-width:0}.hb-weapon-next-cost .p-costs{display:block;margin:0}.hb-weapon-next-cost .p-cost{padding:0;border:0;background:none;display:grid;grid-template-columns:32px minmax(0,1fr);gap:0 6px}.hb-weapon-next-cost .p-cost>.game-icon{width:30px;height:30px;grid-row:1/3}.hb-weapon-next-cost .p-cost>span{font-size:9px}.hb-weapon-next-cost .p-cost>strong{font-size:16px;color:#ffe4a5}.planner .hb-weapon-next>button{min-height:44px;background:linear-gradient(#6ab8aa,#41897f);border:1px solid #91d2bd;box-shadow:0 3px 0 #244c47;color:#f9ffe6;border-radius:10px;padding:8px 14px;font-size:13px;white-space:nowrap;gap:8px}.hb-weapon-max{font-size:12px;text-align:center;color:#e4c380;margin:8px 0}.hb-weapon-tooltip .game-localized{font-size:inherit}.hb-weapon-skills .hb-skill-description{margin:0}@keyframes hb-tip-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media(max-width:600px){.hb-weapon-heading h3{font-size:23px}.hb-weapon-display{height:clamp(155px,24dvh,210px)}.hb-weapon-power strong{font-size:20px}.hb-weapon-bonuses .p-effect-list>div{padding:5px 2px;font-size:11px}.hb-inspector[data-editor-kind=weapon] .hb-inspector-body{padding-bottom:10px}.hb-weapon-skills{gap:13px}.hb-weapon-tooltip{bottom:75px}.hb-weapon-next{margin-top:6px;padding-top:7px}}@media(prefers-reduced-motion:reduce){.hb-weapon-tooltip{animation:none}}

.hb-weapon-display{overflow:hidden}.hb-weapon-display>.game-icon{transform:scale(1.3)}.hb-skill-lock{width:16px;height:20px;bottom:3px;right:3px}.hb-skill-lock svg{width:100%;height:100%;fill:#fff2cc;stroke:#34212e;stroke-width:2.5}.hb-skill-lock svg>path:first-child{fill:none;stroke:#fff2cc;stroke-width:4}.hb-skill-lock .keyhole{stroke:#513426;stroke-width:3;stroke-linecap:round}.hb-weapon-tooltip:after{left:calc(50% - 9px + (var(--skill-index) - 1.5)*65px)}

.hb-weapon-tooltip{display:flex;flex-direction:column;max-height:calc(100% - 83px)}.hb-weapon-tooltip .hb-skill-description{min-height:0;flex:1}.hb-weapon-loop{object-fit:cover}
.hb-weapon-loop{object-fit:contain;transform:scale(1.12)}.hb-weapon-display{height:clamp(215px,32dvh,290px)}.hb-weapon-bonuses .p-effect-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}.hb-weapon-bonuses .p-effect-list>div{gap:5px;min-height:36px;align-items:center}.hb-weapon-bonuses .p-effect-list>div>span{min-width:0;font-size:11px;line-height:1.2}.hb-weapon-bonuses .p-effect-list>div>strong{white-space:nowrap;font-size:12px}@media(max-width:600px){.hb-weapon-display{height:clamp(190px,30dvh,245px)}.hb-weapon-bonuses .p-effect-list>div{padding:5px 1px;min-height:36px}.hb-weapon-bonuses .p-effect-list{gap:0 10px}}

/* Weapon status floats over the artwork; progression controls never gain a caption row. */
.hb-weapon-notice{position:absolute;inset:0;z-index:4;display:flex;align-items:center;justify-content:center;pointer-events:none;padding:12px}
.hb-weapon-banner{position:relative;display:block;max-width:100%;padding:12px 28px;text-align:center;color:#fff0b4;font-size:clamp(17px,5vw,24px);font-weight:900;letter-spacing:.04em;text-shadow:0 2px 3px #180d18;background:linear-gradient(90deg,transparent,#2c1829ed 18%,#2c1829ed 82%,transparent);border-block:1px solid #e9c472b3;box-shadow:0 8px 28px #120b1855}
.hb-weapon-banner:before,.hb-weapon-banner:after{content:'✦';position:absolute;top:50%;transform:translateY(-50%);font-size:13px;color:#ffe7a2}.hb-weapon-banner:before{left:8px}.hb-weapon-banner:after{right:8px}
.hb-weapon-banner.is-waiting{color:#e7ddce;border-color:#bcad8d77;font-size:17px}
.hb-weapon-banner.is-celebrating{animation:hb-weapon-announcement 2.6s ease both;filter:drop-shadow(0 0 12px #ffd57066)}
.hb-weapon-banner.is-red{color:#ffe2bb;border-color:#ffb184;background:linear-gradient(90deg,transparent,#602632ee 18%,#602632ee 82%,transparent)}
.hb-weapon-display:after{content:'';position:absolute;inset:0;pointer-events:none;z-index:3;opacity:0;background:radial-gradient(ellipse,#fffde9 0%,#ffe5a5b3 12%,#ffb76533 42%,transparent 70%)}
.is-transforming .hb-weapon-display:after{animation:hb-weapon-flash .85s ease-out both}
.is-transforming .hb-weapon-loop{animation:hb-weapon-materialize .85s ease-out both}
@keyframes hb-weapon-announcement{0%{opacity:0;transform:scale(.82) translateY(8px)}14%,73%{opacity:1;transform:scale(1) translateY(0)}100%{opacity:0;transform:scale(1.06) translateY(-12px)}}
@keyframes hb-weapon-flash{0%{opacity:0;transform:scale(.55)}25%{opacity:.9}100%{opacity:0;transform:scale(1.35)}}
@keyframes hb-weapon-materialize{0%{filter:brightness(2.5) drop-shadow(0 0 14px #ffe9ad);transform:scale(1.04)}100%{filter:brightness(1);transform:scale(1.12)}}
@media(prefers-reduced-motion:reduce){.hb-weapon-banner.is-celebrating,.is-transforming .hb-weapon-display:after,.is-transforming .hb-weapon-loop{animation:none}.hb-weapon-banner.is-celebrating{filter:none}}

.hb-roster-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(112px,38%);gap:8px;align-items:center}.hb-roster-filters input,.hb-roster-filters select{width:100%;min-width:0;min-height:44px;margin:0;font-size:13px}.hb-roster-filters select{padding:10px 7px;border:1px solid #9b8158;border-radius:10px;background:#42372b;color:#ffe5b3;cursor:pointer}.hb-roster-empty{font-size:13px;color:#ddc7a5;text-align:center;padding:16px 4px}.hb-roster-empty[hidden]{display:none}

/* Full-bleed hero cards with the original roster's gold foil sweep. */
.planner .hb-roster button{position:relative;isolation:isolate;display:block;aspect-ratio:3/4;padding:0;overflow:hidden;border-radius:12px;border-width:1px;box-shadow:inset 0 0 0 1px #fff0c833,0 3px 8px #100a1144}
.hb-roster button>.game-icon{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center 12%;margin:0}
.hb-roster button:before{content:'';position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,transparent 36%,#170e1226 51%,#170e12c9 82%,#170e12f0 100%)}
.hb-roster .hb-roster-caption{position:absolute;z-index:3;left:0;right:0;bottom:0;display:flex;flex-direction:column;gap:3px;padding:19px 4px 8px;pointer-events:none;text-shadow:0 1px 2px #100810,0 2px 6px #100810,1px 0 1px #100810,-1px 0 1px #100810}
.hb-roster-caption strong{display:block;font-size:12px;font-weight:850;line-height:1.08;color:#fff6dd;overflow-wrap:normal}.hb-roster-caption strong .game-localized{font-size:inherit;color:inherit}.hb-roster .hb-roster-caption small{font-size:9px;color:#f0dfbf;font-weight:600;line-height:1.15}
.planner .hb-roster .q-orange{border-color:#ffe3a1;background:radial-gradient(ellipse at 20% 10%,#fff2bb,#eeb957 44%,#b9752e);box-shadow:inset 0 0 0 1px #fff2c477,0 0 9px #e7af3530}
.hb-roster .q-orange:after{content:'';position:absolute;z-index:2;inset:-30% auto auto -30%;width:52%;height:160%;pointer-events:none;opacity:.75;background:linear-gradient(90deg,transparent,#fff3c51a 20%,#fffbe36b 49%,#ffffffa3 51%,#fff2bc33 67%,transparent);transform:translateX(-140%) rotate(24deg);animation:hb-roster-shine 7s linear infinite}
.hb-roster .q-orange:nth-child(3n+1):after{animation-delay:-2.3s}.hb-roster .q-orange:nth-child(3n+2):after{animation-delay:-4.6s}
@keyframes hb-roster-shine{0%,12%{transform:translateX(-140%) rotate(24deg)}68%,100%{transform:translateX(430%) rotate(24deg)}}
@media(prefers-reduced-motion:reduce){.hb-roster .q-orange:after{animation:none;transform:translateX(180%) rotate(24deg);opacity:.2}}
