/* HEROES screen (hero carousel + loadout) and INVENTORY storage view */
.heroesPanel{width:min(1060px,100%);max-width:1060px;max-height:min(94dvh,860px);overflow:auto;text-align:center}
.heroesPanel .eyebrow{color:#f1d18a;font-size:10px;font-weight:900;letter-spacing:3px;margin:0}
.heroesPanel h2{margin:6px 0 12px;letter-spacing:4px}
.heroesLayout{display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:16px;text-align:left;align-items:start}

/* ---- left: hero stage ---- */
.heroStage{display:flex;flex-direction:column;gap:8px;padding:12px;border:3px solid var(--ink,#0a0e24);border-radius:12px;background:linear-gradient(180deg,#16304d,#0c1a2e)}
.heroesPanel[data-hero="knight"] .heroStage{box-shadow:0 0 0 2px #ffd16655,0 8px 24px #000a}
.heroesPanel[data-hero="mage"] .heroStage{box-shadow:0 0 0 2px #c084fc66,0 8px 24px #000a}
.heroesPanel[data-hero="archer"] .heroStage{box-shadow:0 0 0 2px #4ade8066,0 8px 24px #000a}
.heroNav{display:flex;align-items:center;justify-content:space-between;gap:6px}
.heroArrow{flex:0 0 auto;width:46px;height:64px;padding:0;font-size:22px;line-height:1;display:grid;place-items:center}
.heroPic{flex:1;display:grid;place-items:center;border-radius:8px;background:radial-gradient(ellipse at 50% 70%,#2a4d73,#0a1424);border:1px solid #2c4666;min-width:0}
.heroPic canvas{width:min(220px,100%);aspect-ratio:220/290;height:auto;image-rendering:pixelated;border:0!important;border-radius:0!important;box-shadow:none!important;background:none!important;animation:none!important;max-height:none!important}
.heroDots{display:flex;justify-content:center;gap:8px}
.heroDots i{width:10px;height:10px;border-radius:50%;background:#3b5878;border:2px solid #0a0e24}
.heroDots i.on{background:#ffc94d;box-shadow:0 0 8px #ffc94d}
.heroInfo h3{margin:2px 0 2px;color:#f6d68b;font-size:16px;letter-spacing:1.5px;text-align:center}
.heroInfo h3 em{font-style:normal;font-size:9px;letter-spacing:1px;color:#052e16;background:#4ade80;border-radius:3px;padding:2px 5px;vertical-align:middle;margin-left:4px}
.heroesPanel[data-hero="mage"] .heroInfo h3{color:#e9d5ff}
.heroesPanel[data-hero="archer"] .heroInfo h3{color:#bbf7d0}
.heroTag{font-size:10px;letter-spacing:1px;color:#8fb2d3;margin-bottom:6px;text-align:center}
.heroRow{margin:5px 0;font-size:11.5px;line-height:1.35;color:#c1d2e5}
.heroRow span{display:inline-block;min-width:56px;margin-right:4px;font-size:8.5px;font-weight:900;letter-spacing:1.2px;color:#0b1a2c;background:#7dd3fc;border-radius:3px;padding:2px 5px;text-align:center}
.heroRow.passive span{background:#fbbf24}
.heroRow b{color:#fff}

/* ---- right: loadout ---- */
.heroLoadout{min-width:0;display:flex;flex-direction:column;gap:8px}
.hlSummary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
.hlChip{display:flex;flex-direction:column;gap:2px;padding:6px 8px;border:2px solid var(--ink,#0a0e24);border-radius:8px;background:#0d1b2e;font-size:11.5px;color:#fff;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hlChip em{font-style:normal;font-size:8.5px;letter-spacing:1.2px;color:#ffc94d}
.heroTabs{margin:0!important;display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:8px}
.hlHint{margin:0;min-height:15px;font-size:11.5px;color:#b9c4ee;text-align:left}
#heroGearGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-height:min(46vh,430px)!important;overflow-y:auto;padding:4px 6px 8px 2px}
.invEmpty{grid-column:1/-1;text-align:center;color:#b9c4ee;padding:22px 8px;font-size:13px}
.heroesNote{min-height:16px;margin:10px 0 2px;font-size:12px;color:#fca5a5}
.heroesActions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:6px}
.heroesActions button{min-height:46px;padding:0 20px;letter-spacing:1.5px}
.slotToggle.locked{opacity:.55;cursor:not-allowed}

/* ---- Inventory (storage) ---- */
.inventoryPanel{width:min(1040px,100%)!important}
.inventoryPanel .armoryHead{align-items:center}
.invHeroesBtn{padding:8px 14px;white-space:nowrap}
.invTabs{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:8px}
.invTabs small{opacity:.8;font-size:.8em}
.invSoulPane{display:flex;flex-direction:column;align-items:center;gap:14px;padding:12px 6px 4px;text-align:center}
.invSoulPane.hidden{display:none}
.soulHero{display:flex;align-items:center;gap:18px;justify-content:center}
.soulOrb{width:84px;height:84px;display:grid;place-items:center;font-size:40px;color:#fff;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff7c2,#ffc94d 40%,#b69cff 85%);box-shadow:0 0 28px #ffc94daa,0 0 60px #b69cff66;animation:soulOrbFloat 2.6s ease-in-out infinite}
@keyframes soulOrbFloat{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-6px) scale(1.05)}}
.soulText{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.soulText b{font-size:44px;line-height:1;color:#ffc94d}
.soulText small{color:#b9c4ee;font-size:12px}
.invSoulPane .summonGearBtn{min-width:240px;min-height:48px}
.invSoulPane .summonResult{width:100%;max-width:560px;margin:0}
.invSummary{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;font-size:12px;color:#b9c4ee}
.invSummary span{padding:6px 12px;border:2px solid var(--ink,#0a0e24);border-radius:8px;background:#0d1b2e}
.invSummary b{color:#ffc94d;margin-left:4px}
.gearCard.invCard{cursor:default}
.gearCard.invCard:hover{transform:none!important}

@media(max-width:860px){
 .heroesLayout{grid-template-columns:1fr}
 .hlSummary{grid-template-columns:repeat(2,minmax(0,1fr))}
 #heroGearGrid{max-height:44vh!important}
}
@media(max-width:560px){
 .heroPic canvas{width:min(170px,100%)}
 .heroArrow{width:40px;height:54px}
 #heroGearGrid{grid-template-columns:1fr!important}
 .invTabs{grid-template-columns:repeat(2,1fr)!important}
 .soulHero{flex-direction:column;gap:8px}
 .soulText{align-items:center}
}

/* V50c: Jersey 10 is a pixel font that only looks clean at multiples of 10px; 9-10px made the IN USE badge and hero tag smudgy */
html body .heroInfo h3 em{display:inline-block;white-space:nowrap;font-size:20px!important;line-height:1!important;padding:3px 8px 2px!important;letter-spacing:.5px!important}
html body .heroTag{font-size:20px!important;letter-spacing:.5px!important;line-height:1.1!important}
html body .heroInfo h3 em,html body .modal .panel h3 em{text-shadow:none!important;-webkit-text-stroke:0!important;color:#052e16!important;background:#4ade80!important}
