/* Preserve the established character sheet; browsing stays inside a slot dialog. */
body.hero-gear-page{background:#07070b;color:#eee8f6}
body.hero-gear-page>header,body.hero-gear-page>.toolbar,body.hero-gear-page>#summary{display:none}
body.hero-gear-page>main{padding:0}
body.gear-picker-open{overflow:hidden}
.hg,.hg *{box-sizing:border-box;letter-spacing:0}
.hg [hidden]{display:none!important}
.hg{font-family:Arial,sans-serif;font-size:13px;color:#e4d9f1}
.hg button,.hg input,.hg select{font-family:inherit;font-size:13px;letter-spacing:0}
.hg button{width:auto;height:auto;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #76519d;border-radius:4px;background:#24162f;color:#e9dcfa;padding:9px 12px;cursor:pointer}
.hg button:hover:not(:disabled){background:#342146;border-color:#b488f0}
.hg button:focus-visible,.hg input:focus-visible,.hg select:focus-visible{outline:2px solid #9cff65;outline-offset:3px}
.hg button:disabled{opacity:.55;cursor:default}
.hg button.hg-icon-button{width:44px;min-width:44px;height:44px;padding:10px;background:transparent;border-color:transparent}
.hg .hg-icon-button:hover{background:#352247}
.hg-icon{display:inline-block;width:18px;height:18px;flex:0 0 18px;object-fit:contain;filter:brightness(0) invert(1)}
.hg-sr-only{position:absolute!important;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.hg .inventory-shell{max-width:1500px;margin:0 auto;padding:22px;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:18px}
.hg .inventory-panel,.hg .detail-panel{min-width:0;background:linear-gradient(160deg,#11101b,#09090f);border:1px solid #443260;padding:16px}
.hg h2{margin:0 0 14px;font:700 22px Georgia,serif;color:#f1dca7}
.hg-panel-heading{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px;justify-content:space-between;margin-bottom:14px}
.hg-panel-heading h2{margin:0}
.hg-panel-heading>span{color:#bba8d4;font-size:11px}
.hg .equip-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:"helmet . accessory" "weapon armor offhand" "boots . gloves";gap:12px;max-width:620px;margin:auto}
.hg .equip-slot{--rarity:#645574;display:flex;flex-direction:column;justify-content:start;gap:0;position:relative;min-width:0;min-height:142px;border:1px solid var(--rarity);background:linear-gradient(160deg,color-mix(in srgb,var(--rarity) 12%,#09090f),#07070b 48%);box-shadow:inset 0 0 16px color-mix(in srgb,var(--rarity) 12%,transparent);padding:0;overflow:hidden;color:#eee;transition:box-shadow .15s}
.hg .equip-slot:hover,.hg .equip-slot:focus-visible{border-color:var(--rarity);background:#160f20;box-shadow:0 0 15px color-mix(in srgb,var(--rarity) 45%,transparent)}
.hg .slot-helmet{grid-area:helmet}.hg .slot-accessory{grid-area:accessory}.hg .slot-weapon{grid-area:weapon}.hg .slot-armor{grid-area:armor}.hg .slot-offhand{grid-area:offhand}.hg .slot-boots{grid-area:boots}.hg .slot-gloves{grid-area:gloves}
.hg .hg-art{display:block;flex-shrink:0}
.hg .equip-slot .art{width:100%;height:auto;aspect-ratio:4/3;border:0;border-bottom:1px solid #30283d}
.hg .slot-type{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;min-height:23px;padding:5px 3px;background:linear-gradient(90deg,#09080e,#21162f,#09080e);border-bottom:1px solid color-mix(in srgb,var(--rarity) 65%,#4b3a60);color:#fff2c7;font-size:9px;font-weight:900;text-transform:uppercase}
.hg .rarity-dot{width:7px;height:7px;border-radius:50%;background:var(--rarity);box-shadow:0 0 7px var(--rarity)}
.hg .item-name{display:block;width:100%;padding:8px;text-align:left;color:var(--rarity);font-size:10px;font-weight:900;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 0 7px color-mix(in srgb,var(--rarity) 46%,transparent)}
.hg .item-name>span{display:block;overflow:hidden;text-overflow:ellipsis}
.hg-empty-art{display:grid;place-items:center;min-height:90px;flex:1;width:100%;color:#a581c4}
.hg-empty-art .hg-icon{width:32px;height:32px}
.hg .resist-strip{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;border-top:1px solid #352b44;margin-top:16px;padding-top:14px}
.hg .resist{position:relative;display:grid;place-items:center;width:54px;height:54px;border:1px solid currentColor;border-radius:8px;background:linear-gradient(145deg,#17111f,#09080e);box-shadow:inset 0 0 18px color-mix(in srgb,currentColor 16%,transparent)}
.hg .resist-icon{font-size:28px;line-height:1;filter:drop-shadow(0 0 6px currentColor)}
.hg .resist-number{position:absolute;right:3px;top:3px;min-width:21px;padding:2px 4px;border-radius:4px;background:#09070dee;border:1px solid currentColor;font-size:11px;font-weight:900;line-height:1;text-align:center}
.hg .fire{color:#ff704f}.hg .water{color:#63c9ff}.hg .wind{color:#ead45e}.hg .nature{color:#7fda77}.hg .shadow{color:#b987ff}.hg .holy{color:#f4efff}
.hg .character-heading{display:flex;align-items:center;gap:13px;padding-bottom:12px;margin-bottom:6px;border-bottom:1px solid #372b49}
.hg .character-portrait-frame{position:relative;width:132px;height:166px;flex:0 0 auto;overflow:hidden;border:1px solid #4d3866;border-radius:8px;background:radial-gradient(circle at 50% 30%,#32234a,#09090f 72%);box-shadow:inset 0 0 22px #000}
.hg .character-portrait{display:block;width:100%;height:100%;object-fit:contain;object-position:center;transform:translate(var(--portrait-x,0px),var(--portrait-y,0px)) scale(var(--portrait-scale,1));transform-origin:center}
.hg .ascended-hero .character-portrait-frame{border-color:color-mix(in srgb,var(--hero-class-color) 46%,#4d3866);box-shadow:inset 0 0 20px #000,0 0 16px color-mix(in srgb,var(--hero-class-color) 10%,transparent)}
.hg .ascended-hero .character-portrait{filter:drop-shadow(0 0 4px color-mix(in srgb,var(--hero-class-color) 29%,transparent))}
.hg .ascended-base-note{margin:0 0 5px;color:var(--hero-class-color,#bca98a);font-size:9px;line-height:1.5}
.hg .character-title{min-width:0}
.hg .character-title h2{margin:0 0 5px}
.hg .character-name{color:#fff2c7;font:800 23px/1.15 Georgia,serif;overflow-wrap:anywhere}
.hg .character-class{margin-top:5px;color:#bba8d4;font-size:11px;font-weight:900;text-transform:uppercase;line-height:1.5}
.hg .character-stats{width:100%;border-collapse:separate;border-spacing:0 7px;table-layout:fixed;font-variant-numeric:tabular-nums}
.hg .character-stats thead th{color:#bba8d4;font-size:9px;text-align:right;text-transform:uppercase;padding:6px 9px}
.hg .character-stats th:first-child{width:40%;text-align:left}
.hg .character-stats tbody th,.hg .character-stats tbody td{padding:8px 9px;border-top:1px solid #352b44;border-bottom:1px solid #352b44;background:#0c0a11}
.hg .character-stats tbody th{color:#ddd0ed;text-transform:uppercase;font-size:10px;border-left:1px solid #352b44;overflow-wrap:anywhere}
.hg .character-stats td{text-align:right;font-size:12px;font-weight:800}
.hg .character-stats td.gear-value{color:#9cff65}
.hg .character-stats td.total-value{color:#fff2c7;font-size:14px;border-right:1px solid #352b44}
.hg .bonus-title{margin:12px 0 8px;color:#bba8d4;font-size:10px;font-weight:900;text-transform:uppercase}
.hg .bonus-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.hg .bonus{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid #352b44;background:#0c0a11;padding:8px;color:#cbb9df;font-size:11px}
.hg .bonus strong{color:#9cff65}
.hg .gear-set-list{display:grid;gap:3px}
.hg .gear-set{border-top:1px solid #4b365e;padding:9px 0 5px}
.hg .gear-set-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:3px 12px;margin-bottom:5px}
.hg .gear-set-head strong{color:#d7a8ff;font:700 15px/1.2 Georgia,serif}
.hg .gear-set-head span{color:#c9b6dc;font-size:11px;font-weight:700}
.hg .gear-set-build{margin:0 0 7px;color:#91dfff;font:700 10px/1.3 Arial,sans-serif;letter-spacing:.025em}
.hg .gear-set-rules{margin:8px 0 0;padding-top:7px;border-top:1px solid #352b44;color:#b4a5c4;font-size:10px;line-height:1.4}
.hg .gear-set-tier{display:grid;grid-template-columns:38px minmax(0,1fr);gap:8px;padding:5px 0;color:#8f819d}
.hg .gear-set-tier>span{font-size:10px;font-weight:900;text-transform:uppercase;white-space:nowrap}
.hg .gear-set-tier strong{font-size:11px}
.hg .gear-set-tier p{margin:2px 0 0;font-size:11px;line-height:1.35;overflow-wrap:anywhere}
.hg .gear-set-tier.active{color:#d9c5ed}
.hg .gear-set-tier.active>span,.hg .gear-set-tier.active strong{color:#9cff65}
.hg-draft{max-width:1456px;margin:16px auto 0;padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #8055ab;background:#21112e}
.hg-draft strong{display:block;color:#9cff65;margin-bottom:4px}
.hg-draft span span{font-size:12px;color:#cbb9df}
.hg .hg-empty{padding:40px 12px;text-align:center;color:#cbb9df}
.hg-empty h1,.hg-empty h3{color:#f1dca7;font-family:Georgia,serif}
.hg .hg-dialog{width:min(800px,calc(100% - 40px));height:min(800px,92dvh);max-width:none;max-height:none;margin:auto;padding:0;border:1px solid #a96cff;border-radius:8px;background:#100b18;color:#e9dff4;box-shadow:0 24px 100px #000c;overflow:hidden}
.hg-dialog::backdrop{background:#050208bb}
.hg-dialog-inner{display:flex;flex-direction:column;height:100%;min-height:0}
.hg-dialog-bar{display:flex;align-items:center;gap:12px;padding:12px;border-bottom:1px solid #583874;background:linear-gradient(110deg,#281438,#160e23);flex-shrink:0}
.hg-dialog-bar>div{flex:1;min-width:0}
.hg-dialog-bar h2{color:#9cff65;margin:0 0 3px;font-size:23px;overflow-wrap:anywhere}
.hg-dialog-bar [data-gear-subtitle]{font-size:12px;color:#cbb9df}
.hg-picker-list{min-height:0;flex:1;display:flex;flex-direction:column}
.hg-tools{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:10px;padding:16px 16px 12px}
.hg-search{display:flex;align-items:center;gap:8px;min-width:0;background:#21152d;border:1px solid #76519d;border-radius:4px;padding-left:10px;color:#bc9edd}
.hg .hg-search input{background:none;border:0;min-width:0;width:100%;height:44px;padding:0;color:#f4eefb;outline-offset:0}
.hg input::placeholder{color:#b5a3c7;opacity:1}
.hg input[type=search]::-webkit-search-cancel-button{display:none}
.hg .hg-search .hg-icon-button{width:40px;min-width:40px}
.hg-sort{min-width:0}
.hg .hg-sort select{height:46px;width:100%;min-width:0;border:1px solid #76519d;border-radius:4px;background:#21152d;color:#ede0fa;padding:0 24px 0 10px;text-transform:none;font-weight:600}
.hg-filterline{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 16px 12px}
.hg-range{border:1px solid #64427f;border-radius:4px;display:flex;flex-wrap:wrap;padding:0;margin:0;overflow:hidden}
.hg-range label{position:relative;display:flex;align-items:center;cursor:pointer}
.hg-range input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.hg-range span{padding:12px;font-size:12px;line-height:20px;pointer-events:none}
.hg-range input:checked+span{background:#39214f;color:#9cff65;box-shadow:inset 0 -2px #9cff65}
.hg-range input:focus-visible+span{outline:2px solid #9cff65;outline-offset:-3px}
[data-gear-count]{font-size:12px;color:#bba8d4;white-space:nowrap}
.hg-list-scroll{min-height:0;flex:1;overflow-y:auto;overscroll-behavior:contain;padding:0 16px 16px;scrollbar-color:#76519d #100b18}
.hg [data-gear-results]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hg [data-gear-results]>.hg-empty{grid-column:1/-1}
.hg .hg-item{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;text-align:left;padding:0;width:100%;min-width:0;border:1px solid color-mix(in srgb,var(--rarity) 70%,#463253);border-radius:4px;background:linear-gradient(100deg,color-mix(in srgb,var(--rarity) 9%,#15101e),#110c19);min-height:0;overflow:hidden}
.hg .hg-item:hover{background:#2a1938;border-color:var(--rarity)}
.hg-item .hg-art{width:100%;height:auto;aspect-ratio:16/9;border:0;border-bottom:1px solid color-mix(in srgb,var(--rarity) 45%,#433050)}
.hg .hg-browse-art::before,.hg-detail-heading .hg-art::before{display:none}
.hg .hg-browse-art::after,.hg-detail-heading .hg-art::after{inset:0;filter:none;background-size:contain}
.hg-item-copy{display:flex;flex-direction:column;flex:1;min-width:0;padding:11px 12px 12px}
.hg-item-name{display:block;min-height:2.4em;color:var(--rarity);font:700 17px/1.2 Georgia,serif;overflow-wrap:anywhere}
.hg-item-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:5px;font-size:11px;color:#c8b9d6;line-height:1.4}
.hg-rarity{color:var(--rarity)}
.hg-equipped{display:inline-flex;align-items:center;gap:4px;color:#9cff65}
.hg-equipped .hg-icon{width:12px;height:12px;flex-basis:12px}
.hg-item-stats{display:flex;flex-wrap:wrap;gap:5px 12px;margin-top:auto;padding-top:10px;color:#c8b9d6;font-size:12px;line-height:1.4}
.hg-browse-stat{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:4px}
.hg-item-stats b{color:#9cff65;font-weight:700}
.hg .hg-more{width:100%;margin-top:12px}
.hg-detail{min-height:0;flex:1;overflow:auto;padding:16px;overscroll-behavior:contain;scrollbar-color:#76519d #100b18}
.hg-detail-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:18px;margin-bottom:18px}
.hg-detail-heading .hg-art{width:100%;height:auto;aspect-ratio:16/9;border:1px solid var(--rarity);border-radius:4px}
.hg-detail-heading>div{min-width:0}
.hg-detail-heading h3{font:700 21px/1.2 Georgia,serif;color:var(--rarity);margin:0;overflow-wrap:anywhere}
.hg-compare-current{padding:12px 0;border-top:1px solid #422c59;border-bottom:1px solid #422c59;margin-bottom:10px;font-size:12px;color:#bba8d4}
.hg-compare-current strong{display:block;color:#f1dca7;margin-top:4px}
.hg-compare-table{width:100%;border-collapse:collapse;table-layout:fixed;font-variant-numeric:tabular-nums}
.hg-compare-table th:first-child{width:40%;text-align:left}
.hg-compare-table thead th{font-size:10px;color:#bba8d4;text-align:right;padding:10px 4px;font-weight:600}
.hg-compare-table tbody td,.hg-compare-table tbody th{padding:11px 4px;border-bottom:1px solid #352444;font-size:12px;overflow-wrap:anywhere}
.hg-compare-table tbody th{color:#e2d1f1;font-weight:400}
.hg-compare-table td{text-align:right;color:#e4d9f1}
.hg-compare-table td.positive{color:#9cff65;font-weight:700}
.hg-compare-table td.negative{color:#ff9292;font-weight:700}
.hg-compare-table td.neutral{color:#ad99bf}
.hg-dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid #583874;background:#1d102a;flex-shrink:0}
.hg-dialog-footer>span{color:#cbb9df;font-size:11px}
.hg .hg-primary{background:#39214f;border-color:#9cff65;color:#9cff65;font-weight:700;padding:10px 20px}
@media(max-width:1100px){
 .hg .inventory-shell{grid-template-columns:minmax(0,1fr);max-width:780px}
}
@media(max-width:600px){
 .hg .inventory-shell{padding:12px;gap:14px}
 .hg .inventory-panel,.hg .detail-panel{padding:12px}
 .hg h2{font-size:21px}
 .hg-panel-heading{gap:6px}
 .hg-panel-heading>span{font-size:10px}
 .hg .equip-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"helmet accessory" "weapon armor" "offhand boots" "gloves .";gap:10px 8px}
 .hg .equip-slot{min-height:122px}
 .hg .slot-type{font-size:8px;min-height:24px}
 .hg .equip-slot .art{height:88px;aspect-ratio:auto}
 .hg .item-name{white-space:normal;height:34px;padding:5px;font-size:8px;line-height:12px;overflow-wrap:anywhere}
 .hg .item-name>span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;max-height:24px;overflow:hidden}
 .hg .resist-strip{gap:6px;margin-top:13px;padding-top:12px}
 .hg .resist{width:38px;height:44px}
 .hg .resist-icon{font-size:23px}
 .hg .resist-number{font-size:9px;right:1px;top:2px;padding:2px}
 .hg .character-portrait-frame{width:100px;height:132px}
 .hg .character-title h2{font-size:19px}
 .hg .character-name{font-size:20px}
 .hg .character-class{font-size:10px}
 .hg .character-stats thead th{font-size:9px;padding:6px 4px}
 .hg .character-stats tbody th{font-size:9px}
 .hg .character-stats tbody th,.hg .character-stats tbody td{padding:8px 4px}
 .hg .character-stats td{font-size:11px}
 .hg .character-stats td.total-value{font-size:12px}
 .hg .bonus-grid{grid-template-columns:1fr}
 .hg-draft{margin:12px 12px 0}
 .hg .hg-dialog{width:100%;height:94dvh;margin:auto 0 0;border-radius:8px 8px 0 0;border-bottom:0}
 .hg-dialog-bar{gap:6px;padding:8px}
 .hg-dialog-bar h2{font-size:21px}
 .hg-tools{padding:12px 10px 10px;grid-template-columns:minmax(0,1fr) 138px;gap:8px}
 .hg .hg-sort select{font-size:12px;padding-left:8px}
 .hg-search{padding-left:8px;gap:5px}
 .hg-search>.hg-icon{display:none}
 .hg .hg-search input{font-size:16px}
 .hg-filterline{padding:0 10px 10px;gap:6px}
 .hg-range span{padding:10px 8px;font-size:11px}
 [data-gear-count]{font-size:11px}
 .hg-list-scroll{padding:0 10px 12px}
 .hg [data-gear-results]{gap:8px}
 .hg-item-copy{padding:8px}
 .hg-item-name{font-size:14px}
 .hg-item-meta{gap:6px;font-size:10px}
 .hg-item-stats{font-size:11px;gap:4px 8px;padding-top:8px}
 .hg-detail{padding:12px}
 .hg-detail-heading{grid-template-columns:minmax(0,1fr);gap:12px}
 .hg-detail-heading h3{font-size:19px}
 .hg-compare-table thead th{font-size:9px}
 .hg-compare-table tbody td,.hg-compare-table tbody th{font-size:11px}
 .hg-dialog-footer{padding:12px 12px max(12px,env(safe-area-inset-bottom))}
 .hg-dialog-footer>span{max-width:140px}
}
@media(prefers-reduced-motion:reduce){.hg *{transition:none!important;scroll-behavior:auto!important}}
.gear-account-bar{margin:12px 22px 0;display:flex;flex-wrap:wrap;align-items:center;gap:10px;color:#bdaaCE}
.gear-account-name{font-size:13px;color:#9fff60}
.gear-account-actions{display:flex;flex-wrap:wrap;gap:8px;margin-left:auto}
.gear-account-actions button,.gear-account-actions a{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 12px;border:1px solid #795198;border-radius:6px;background:#1b1227;color:#dfc8f4;font:700 13px Arial,sans-serif;text-decoration:none}
.gear-account-actions button:disabled{opacity:.5;cursor:not-allowed}
.gear-account-actions .hg-icon{height:16px;width:16px}
.gear-command-status{flex-basis:100%;font:13px Arial,sans-serif;color:#dfc8f4}
.gear-command-status:empty{display:none}
@media(max-width:600px){.gear-account-bar{margin:10px 12px 0}.gear-account-actions{margin-left:0;flex:1 1 100%}.gear-account-actions>*{flex:1}.gear-account-name{overflow-wrap:anywhere}}

/* Match the established shop's dark violet and antique gold presentation. */
body.hero-gear-page{background:radial-gradient(ellipse at 50% 0,#23142b 0,transparent 58%),#07070b}
.gear-account-bar{max-width:1456px;margin:22px auto 0;padding:14px 18px;border:1px solid #60436c;border-radius:10px;background:linear-gradient(110deg,#26192e,#100c17 72%);box-shadow:inset 0 1px #d4af7030,0 8px 24px #0005}
.gear-account-name{padding:10px 14px;border:1px solid #ab874a70;border-radius:6px;background:linear-gradient(135deg,#33271b,#1a1222);color:#f2d5a0;font:700 16px Georgia,serif;line-height:1.4;overflow-wrap:anywhere}
.gear-account-actions button,.gear-account-actions a{border-color:#98764d;background:linear-gradient(160deg,#35243c,#171020);color:#f4ddb1;box-shadow:inset 0 1px #fff1,0 3px 9px #0004}
.gear-account-actions button:hover:not(:disabled),.gear-account-actions a:hover{border-color:#e7bb6c;background:linear-gradient(160deg,#493049,#281b2d)}
.gear-account-actions :focus-visible{outline:2px solid #b7ed75;outline-offset:3px}
.hg .inventory-panel,.hg .detail-panel{border-color:#6b4b78;border-radius:12px;background:radial-gradient(ellipse at top left,#281a3038,transparent 60%),linear-gradient(150deg,#15101e,#0b0910);box-shadow:inset 0 1px #c995f020,0 12px 30px #0005;padding:20px}
.hg-panel-heading{padding-bottom:12px;border-bottom:1px solid #a9874e55;margin-bottom:16px}
.hg-panel-heading h2,.hg .character-title h2{color:#f1d29a;text-shadow:0 2px 8px #000}
.hg .character-heading{border-bottom-color:#a9874e55;padding-bottom:16px}
.hg .character-portrait-frame{border-color:#b0905b;background:radial-gradient(ellipse at 50% 30%,#48313e,#110c17 76%);box-shadow:inset 0 0 24px #0008,0 4px 14px #0006}
.hg .equip-slot{border-radius:7px}.hg .resist-strip{padding:16px 0;margin-top:18px;border-bottom:1px solid #a9874e55;background:linear-gradient(90deg,transparent,#33213945,transparent)}
.hg .resist.potion-active{box-shadow:inset 0 0 18px color-mix(in srgb,currentColor 24%,transparent),0 0 8px currentColor}
@media(max-width:1500px){.gear-account-bar{margin-inline:22px}}
@media(max-width:600px){.gear-account-bar{margin:12px;padding:12px}.hg .inventory-panel,.hg .detail-panel{padding:12px}.gear-account-name{font-size:14px}.gear-account-actions{gap:6px}.gear-account-actions>*{padding-inline:8px}}

/* The hero ledger shares the shop's framed identity and restrained metalwork. */
.gear-account-name{display:flex;align-items:center;gap:13px;min-width:0;max-width:100%;padding:12px 16px;border-color:#755d79;border-radius:5px;background:linear-gradient(135deg,#292134,#17111f 65%);box-shadow:inset 0 1px #d5b8e225,inset 0 -1px #0009,0 5px 18px #0004}
.gear-account-name[hidden],.gear-account-mode[hidden]{display:none}
.gear-account-emblem{width:27px;height:31px;flex:none;background:#b899cd;mask:url('assets/gear-icons/shield.svg') center/contain no-repeat;filter:drop-shadow(0 1px 4px #000)}
.gear-account-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.gear-account-player{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#83ff55;font:700 20px/1.2 Georgia,serif;text-shadow:0 2px 4px #000;max-width:36ch}
.gear-account-details{color:#c6b2d6;font:12px/1.3 Arial,sans-serif;letter-spacing:.03em}
.gear-account-mode{flex:none;margin-left:5px;padding:8px 0 8px 16px;border-left:1px solid #94764688;color:#efd39c;font:700 11px/1.3 Arial,sans-serif;letter-spacing:.03em}
@media(max-width:600px){.gear-account-name{gap:10px;width:100%;padding:12px}.gear-account-copy{flex:1}.gear-account-player{font-size:18px}.gear-account-emblem{width:23px;height:27px}.gear-account-mode{padding-left:11px;font-size:10px}}

.gear-set-state{display:block;margin-top:4px;font:700 9px/1.2 Arial,sans-serif;letter-spacing:.03em;text-transform:none;color:#b5a6c1}.gear-set-tier.active .gear-set-state{color:#9fff60}

/* Hero roster: class views and adventure selection remain separate. */
.hero-roster-bar{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;margin:0;border:1px solid #70527d;border-radius:12px;background:linear-gradient(115deg,#211526,#0d0a14);box-shadow:inset 0 1px #ffffff08;color:#ecdde9}
.hero-roster-eyebrow{display:block;color:#b4a0c8;font-size:10px;font-weight:800;letter-spacing:2px;margin-bottom:6px}.hero-roster-bar strong{display:block;color:#ffd580;font:700 21px Georgia,serif}.hero-roster-bar p{margin:8px 0 0;font-size:12px;color:#bcaec7;line-height:1.6}
.hero-roster-actions{display:flex;gap:10px;flex-shrink:0}.hero-roster-actions button,.hero-roster-heading button{min-height:42px;padding:10px 16px;border:1px solid #947747;border-radius:6px;background:linear-gradient(#33232d,#17101e);color:#ffe4a0;cursor:pointer;font-weight:700}.hero-roster-actions button:disabled{opacity:.5;cursor:default}.hero-roster-play{box-shadow:inset 0 1px #fff2}
.hero-roster-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 28px));max-height:90vh;padding:24px;border:1px solid #9c79b0;border-radius:16px;background:radial-gradient(ellipse at top,#2a1930,#0e0a15 65%);color:#eee3f5;box-shadow:0 24px 90px #000c}.hero-roster-dialog::backdrop{background:#050208d9;backdrop-filter:blur(5px)}.hero-roster-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.hero-roster-heading h2{margin:0;color:#ffda8b;font:700 28px Georgia,serif}.hero-roster-dialog>p{color:#c0aec9;font-size:13px;line-height:1.6;margin:14px 0 20px}
.hero-roster-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.hero-roster-card{display:flex;flex-direction:column;align-items:center;text-decoration:none;padding:14px 8px 12px;gap:5px;border:1px solid color-mix(in srgb,var(--roster-color) 42%,#392744);border-radius:10px;background:linear-gradient(#201826,#0e0b13);color:#d7cbe4;transition:background .15s,border-color .15s}.hero-roster-card:hover,.hero-roster-card:focus-visible,.hero-roster-card[aria-current]{border-color:var(--roster-color);background:radial-gradient(ellipse at top,color-mix(in srgb,var(--roster-color) 16%,#211329),#100c19)}.hero-roster-card img{width:110px;height:110px;object-fit:contain;filter:drop-shadow(0 5px 8px #0007)}.hero-roster-card strong{font:700 18px Georgia,serif;color:var(--roster-color)}.hero-roster-card span{font-size:12px}.hero-roster-card small{margin-top:5px;font-size:9px;font-weight:800;letter-spacing:1px;color:#d4b56e}
.hero-roster-portrait{position:relative;padding:0;border:0;background:none;cursor:pointer;flex-shrink:0}.hero-roster-portrait>span{position:absolute;bottom:3px;left:3px;right:3px;padding:6px 2px;background:#110c19d9;color:#f0d080;font-size:8px;letter-spacing:1px;border-radius:0 0 4px 4px}.hero-roster-portrait:focus-visible{outline:2px solid #ffd580;outline-offset:4px}
@media(max-width:650px){.hero-roster-bar{align-items:stretch;flex-direction:column;padding:16px;gap:14px}.hero-roster-actions{flex-wrap:wrap}.hero-roster-actions button{flex:1}.hero-roster-dialog{padding:16px}.hero-roster-heading h2{font-size:23px}.hero-roster-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.hero-roster-card img{width:92px;height:92px}.hero-roster-card strong{font-size:16px}}

.gear-login-welcome{box-sizing:border-box;max-width:720px;margin:36px auto;padding:40px 32px;text-align:center;border:1px solid #89669a;border-radius:14px;background:radial-gradient(ellipse at top,#2d1c35,#0f0a16 75%);box-shadow:inset 0 1px #fff1,0 16px 40px #0005}.gear-login-welcome h1{color:#ffda8b;font:700 32px Georgia,serif;margin:0 0 16px}.gear-login-welcome p{color:#d3c4df;line-height:1.7;margin:0 auto 24px;max-width:520px}.gear-login-welcome a{display:inline-block;padding:14px 22px;border:1px solid #a2844e;border-radius:6px;background:linear-gradient(#39283c,#1b1222);color:#ffe4a0;font-weight:700;text-decoration:none}.gear-login-welcome a:hover,.gear-login-welcome a:focus-visible{border-color:#ffd580;background:#39253e}@media(max-width:600px){.gear-login-welcome{margin:22px 14px;padding:28px 20px}}

/* Organize surrounding tools; keep the established equipped cards and resistances. */
.gear-workspace{max-width:1500px;margin:0 auto}
.hg .gear-workspace>.hero-roster-bar{margin:22px 22px 0}
.hg .gear-section-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:18px 22px 0;padding:0 10px;border:1px solid #6b4b78;border-bottom-color:#a9874e88;border-radius:8px 8px 0 0;background:linear-gradient(110deg,#27192e,#100b18);box-shadow:inset 0 1px #fff1}
.hg .gear-section-tabs button{min-width:0;min-height:52px;padding:10px 8px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:#c6b2d6;line-height:1.35}
.hg .gear-section-tabs button[aria-selected=true]{color:#f1d29a;border-bottom-color:#d5b16e;background:linear-gradient(transparent,#ad844a16);font-weight:700}
.hg .gear-section-tabs button:hover{background:#33213e;color:#ffe3b0}
.hg .gear-extra-section{padding:22px;min-width:0}
.hg .gear-section-card,.hg .gear-rewards-grid>.cr{padding:20px;border:1px solid #6b4b78;border-radius:12px;background:radial-gradient(ellipse at top left,#281a3038,transparent 60%),linear-gradient(150deg,#15101e,#0b0910);box-shadow:inset 0 1px #c995f020,0 12px 30px #0005}
.hg .gear-section-card{max-width:1000px;margin:0 auto}
.hg [data-gear-belt-host]>.hc{margin-top:0;padding-top:0;border-top:0}
.hg .gear-rewards-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start;min-width:0}
.hg .gear-rewards-grid>*{min-width:0;margin-top:0}
.hg .gear-rewards-grid>.cr,.hg .gear-rewards-grid>.hc-status,.hg .gear-rewards-grid>.gear-loading{grid-column:1/-1}
.hg [data-gear-sets]:not(:empty){padding-top:5px}
.hg [data-gear-sets]>.bonus-title{color:#f1d29a;font:700 18px Georgia,serif;margin:16px 0 10px}
.hg .hg-set-comparison{margin-top:20px;padding:12px;border:1px solid #70517d;border-radius:6px;background:linear-gradient(140deg,#26172e,#110c18)}
.hg .hg-set-comparison>.bonus-title{margin:0 0 8px;color:#f1d29a;font:700 18px Georgia,serif;text-transform:none}
.hg .hg-set-comparison .gear-set:first-child{border-top:0}
.hg .hg-set-change.loss,.hg .hg-set-change.loss>span,.hg .hg-set-change.loss strong,.hg .hg-set-change.loss .gear-set-state{color:#ffb1ac}
.hg .hg-set-progress{margin:6px 0;color:#cbb9df;font-size:12px;line-height:1.5}
.hg .gear-loading{color:#c6b2d6;font-size:13px}
@media(max-width:700px){.hg .gear-rewards-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.hg .gear-workspace>.hero-roster-bar{margin:12px 12px 0}.hg .gear-section-tabs{margin:14px 12px 0;padding:0 4px}.hg .gear-section-tabs button{font-size:12px;padding-inline:4px}.hg .gear-extra-section{padding:12px}.hg .gear-section-card,.hg .gear-rewards-grid>.cr{padding:12px}.hg .gear-rewards-grid{gap:14px}}
