:root{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#24262b;background:#f4f3ef;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #de744c;outline-offset:3px}button{color:inherit}img{display:block;object-fit:contain}button{border:0}.workspace{margin-left:0;padding:0 42px;max-width:1660px}.topbar{height:88px;display:flex;align-items:center;border-bottom:1px solid #deddD7;gap:24px}.wordmark{font-size:15px;letter-spacing:1px;font-weight:900}.wordmark span{font-weight:400;margin-left:5px}.local{display:flex;align-items:center;gap:8px;margin-left:auto;font-size:11px;color:#777c77}.local i,.dot{width:6px;height:6px;border-radius:50%;background:#6c9178;display:inline-block}.layout{display:grid;grid-template-columns:minmax(400px,1fr) 430px;gap:48px;padding-top:38px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:650;color:#8c8d86}.title-row{display:flex;align-items:center;justify-content:space-between;margin:18px 0 12px;gap:12px}h1{font-size:42px;line-height:1.08;font-weight:550;letter-spacing:-1.8px;margin:0}h1 em{font-family:Georgia,serif;font-weight:400;color:#b66443}.total{display:flex;flex-direction:column;text-align:right}.total strong{font-size:42px;font-weight:350;letter-spacing:-2px}.total span{font-size:10px;color:#989a92;white-space:nowrap}.intro{font-size:12px;color:#868a83;margin:0 0 28px}.searchbar{display:flex;align-items:center;background:#fff;border:1px solid #e1e1da;border-radius:9px;padding:0 14px;height:45px;gap:10px}.searchbar>span{font-size:28px;color:#85887f}.searchbar input{border:0;outline:none;background:none;width:100%;font-size:12px;color:#292c2c}.searchbar kbd{border:1px solid #e6e7df;padding:1px 5px;border-radius:4px;color:#9a9d94}.filter-row{display:flex;justify-content:space-between;align-items:center;padding:17px 0;gap:12px}.factions{display:flex;gap:7px}:is(.faction-button,.class-button){padding:3px;width:35px;height:35px;border-radius:50%;background:transparent;font-size:10px;color:#80847a;border:1px solid transparent}:is(.faction-button,.class-button) img{width:100%;height:100%}:is(.faction-button,.class-button).active{border-color:#b77756;background:#e9d5c6;color:#563323}.tier-filter select{border:1px solid #deded6;background:transparent;padding:9px;border-radius:6px;font-size:10px}.hero-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(94px,1fr));gap:17px 11px}.hero-tile{background:transparent;min-width:0;padding:0;text-align:left;transition:transform .16s}.hero-tile:hover{transform:translateY(-4px)}.tile-art{height:178px;border:1px solid #ddded7;border-radius:12px;background:linear-gradient(145deg,#e4e5df,#edede7);position:relative;overflow:hidden}.tile-portrait{height:167px;width:100%;margin-top:9px;filter:saturate(.82)}.hero-tile.selected .tile-art{border:2px solid #c98660;background:#e8d7ca}.hero-tile.selected .tile-portrait{filter:none}.rank{font-size:11px;font-weight:750;color:#edc191;border:1px solid #705943;background:#362f2b;border-radius:5px;padding:3px 6px;line-height:1}.tile-art .rank,.no-build-tag{position:absolute;top:8px;left:8px;z-index:1}.rank-A,.rank-Aplus{color:#d3c3f8;background:#40384d;border-color:#6f5d92}.rank-B,.rank-Bplus,.rank-C{color:#bfcfc1;background:#384139;border-color:#5c7460}.no-build-tag{font-size:8px;color:#74796f;background:#f0eee5d9;border-radius:4px;padding:3px}.tile-faction{position:absolute;width:25px;height:25px;bottom:7px;left:6px}.tile-arrow{position:absolute;right:7px;bottom:6px;background:#f0bb94;color:#402a20;width:22px;height:22px;border-radius:50%;text-align:center;line-height:22px;opacity:0}.selected .tile-arrow,.hero-tile:hover .tile-arrow{opacity:1}.tile-name{font-size:11px;font-weight:650;line-height:1.35;display:block;padding:9px 3px 0;min-height:38px}.library-footer{border-top:1px solid #dcded5;margin:28px 0;padding:22px 0;font-size:11px}.library-footer>span{color:#95988e}.library-footer small{display:block;margin-top:10px;font-size:9px;color:#9d9f97}.detail-pane{position:sticky;top:20px;align-self:start;min-width:0}.detail-caption{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.4px;color:#8c8e85;margin:0 5px 14px}.detail-caption span:first-child{font-weight:700;color:#62675e}.hero-sheet{--ink:#f2eee6;--muted:#92979f;color:var(--ink);background:#1c2028;border:1px solid #343942;border-radius:24px;padding:14px 18px 9px;box-shadow:0 22px 40px -18px #18202b55;display:flex;flex-direction:column;gap:7px;height:746px;overflow:visible;position:relative}.hero-heading{position:relative;display:flex;align-items:center;min-height:118px;isolation:isolate;flex:1.3}.detail-portrait{width:81px;height:118px;flex-shrink:0;object-fit:contain;align-self:center;position:relative;z-index:1}.portrait-aura{position:absolute;width:140px;height:140px;left:-22px;top:-18px;background:radial-gradient(ellipse,#77677d65,transparent 70%);z-index:-1}.hero-identity{padding-left:14px;min-width:0}.hero-kicker{display:flex;align-items:center;gap:6px;font-size:9px;color:#b9a38f}.hero-kicker img{width:20px;height:20px}.hero-kicker .rank{margin-left:auto}.hero-kicker .no-build-tag{position:static}h2{font-size:27px;font-weight:650;letter-spacing:-.8px;line-height:1.05;margin:7px 0} .hero-identity p{font-size:10px;line-height:1.3;margin:0;color:#acafb5}.development{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap;font-size:9px;color:#92979f}.development span{display:flex;align-items:center;gap:4px}.development strong{color:#ecc09b;font-weight:600}.development b{font-weight:450;color:#bcc0c6}.development i{font-style:normal;font-size:9px}.sheet-section{border-top:1px solid #363b43;padding-top:7px;min-height:0}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}h3{font-size:11px;font-weight:650;margin:0;letter-spacing:.2px}.section-title>span{color:#888f9a;font-size:8px}.artifact-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.artifact-option{border-radius:7px;background:#252a33;padding:4px 6px}.artifact-option.best{background:#3c332a;box-shadow:inset 0 0 0 1px #6d523b}.artifact-option>small{font-size:8px;display:block;color:#9ea3ad;margin-bottom:1px}.artifact-option.best>small{color:#edbd95}.item{display:flex;align-items:center;gap:4px;min-width:0}.item img,.missing-icon{width:32px;height:32px;flex-shrink:0}.item>span:last-child{font-size:9px;line-height:1.2;overflow-wrap:anywhere}.missing-icon{display:flex;align-items:center;justify-content:center;font-size:20px!important;color:#858b96;border:1px dashed #646871;border-radius:6px}.rune-line{display:flex;align-items:center;gap:7px;margin-bottom:4px;min-height:31px}.rune-line>small{font-size:8px;color:#9ea3ad;width:50px;flex-shrink:0}.rune-items{display:flex;align-items:center;gap:4px;flex:1;min-width:0}.rune-items .item{flex:1}.rune-items .item img{width:29px;height:29px}.rune-items .item>span:last-child{font-size:9px}.rune-separator{font-size:10px;color:#747c87}.rune-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;background:#252a33;border-radius:5px;padding:6px;margin-top:4px}.rune-stats>div{display:flex;gap:5px;align-items:center;font-size:9px}.rune-stats small{color:#c19c78;font-size:8px;white-space:nowrap}.equipment{display:flex;justify-content:space-between;gap:8px;align-items:center;padding-bottom:3px}.gear-stats{display:flex;gap:7px;margin-top:6px;flex-wrap:wrap}.stat{display:inline-flex;align-items:center;gap:3px;font-size:9px;white-space:nowrap}.stat b{color:#cba17e;font-size:11px}.t2{display:flex;align-items:center;gap:4px;background:#292e38;padding:6px;border-radius:5px;max-width:45%;flex-wrap:wrap}.t2 small{font-size:9px;color:#9e8ec0;padding-right:3px}.sep{color:#707987;font-size:8px}.talents{flex:1.5}.talent-row{display:grid;grid-template-columns:35px repeat(4,minmax(0,1fr));align-items:center;gap:3px;padding:2px 0}.talent-mode{font-size:9px;font-weight:750;color:#c5b19e}.talent-mode>b{display:block;font-size:8px;font-weight:500;letter-spacing:1px;color:#929baa;margin-top:3px}.talent{display:grid;grid-template-columns:27px 1fr;gap:1px 3px;align-items:center;position:relative;min-width:0;min-height:40px}.talent img{width:27px;height:27px;grid-row:span 2}.talent b{font-size:7px;color:#a0a6af;font-weight:450}.talent span{font-size:8px;line-height:1.13;align-self:start;overflow-wrap:anywhere}.gem-options{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.gem-options>div{display:flex;gap:7px;align-items:center}.gem-symbol{font-size:23px;color:#ebc393}.gem-symbol.either{color:#a79ecd}.gem-symbol.dark{color:#c19bbb}.gem-options small{display:block;font-size:8px;color:#929baa}.gem-options b{font-size:10px;font-weight:500}.insignia{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px;align-items:center;padding-bottom:4px}.insignia small{font-size:8px;color:#929baa;display:block;margin-bottom:4px}.insignia-head h3{margin-bottom:5px}.insignia-head b{color:#cabda7;font-size:8px;font-weight:400}.insignia .stat{font-size:9px;white-space:normal}.detail-note{display:flex;gap:6px;align-items:center;color:#8b8f85;font-size:9px;margin:17px 4px}.detail-note>span:last-child{margin-left:auto;color:#a4a69c}.close-detail{display:none}.empty{text-align:center;color:#85897f;padding:45px 0;font-size:14px}.empty button,.no-build button{display:block;margin:18px auto;border:0;background:#eac3a3;padding:10px 16px;border-radius:6px;font-size:12px}.no-build{margin:auto;text-align:center;padding:35px}.no-build>span{font-size:46px;color:#bf9a7c}.no-build h3{font-size:20px;margin:20px 0}.no-build p{font-size:12px;line-height:1.6;color:#acb1b9}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,15px);background:#f1c39e;color:#35291e;padding:12px 20px;border-radius:12px;box-shadow:0 5px 30px #0003;font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:10}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1450px){.layout{grid-template-columns:minmax(500px,1fr) 450px;gap:64px}.hero-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.tile-art{height:210px}.tile-portrait{height:200px}}
@media(max-width:1150px){.workspace{padding:0 24px}.layout{gap:26px;grid-template-columns:minmax(300px,1fr) 398px}.workspace{margin-left:0}.total{display:none}h1{font-size:35px}.hero-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.factions{gap:2px}:is(.faction-button,.class-button){width:30px;height:30px}.filter-row{gap:4px}.tier-filter select{width:80px}.hero-sheet{padding-left:14px;padding-right:14px}}
@media(max-width:900px) and (min-width:761px){.workspace{padding:0 18px;margin-left:0}.layout{gap:20px;grid-template-columns:minmax(285px,1fr) 375px}:is(.faction-button,.class-button){width:28px;height:28px}.hero-grid{gap:12px 7px}.tile-art{height:154px}.tile-portrait{height:145px}}
@media(max-width:760px){.workspace{margin:0;padding:0 20px}.topbar{height:64px}.wordmark{font-size:13px}.local{font-size:9px}.layout{display:block;padding-top:27px}.eyebrow{font-size:9px}.title-row{margin:16px 0}h1{font-size:36px}.total{display:flex}.total strong{font-size:37px}.total span{font-size:8px}.intro{font-size:11px;margin-bottom:22px}.searchbar{height:44px}.factions{gap:5px}:is(.faction-button,.class-button){width:32px;height:32px}.filter-row{padding:13px 0}.hero-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 10px}.tile-art{height:185px}.tile-portrait{height:177px}.tile-name{font-size:11px}.detail-pane{display:none}.detail-open{overflow:hidden}.detail-open .detail-pane{display:block;position:fixed;inset:0;z-index:5;background:#1c2028;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);height:100dvh}.detail-caption,.detail-note{display:none}.hero-sheet{height:100%;border:0;border-radius:0;box-shadow:none;padding:10px 16px 12px;gap:7px}.hero-heading{padding-top:19px;min-height:124px;flex:1}.close-detail{display:block;position:absolute;top:-4px;left:-2px;width:32px;height:28px;background:transparent;color:#d5c1ab;text-align:left;font-size:22px;z-index:3}.hero-identity{padding-left:10px;flex:1}.detail-portrait{height:105px;width:74px}.portrait-aura{top:10px}.hero-identity h2{font-size:28px}.hero-identity p{font-size:10px}.development{font-size:9px;gap:8px}.sheet-section{padding-top:8px}.artifacts{flex:.7}.rune-section{flex:1}.talents{flex:1.3}.gem-options{padding:3px 0}.insignia{padding-bottom:5px}.section-title{margin-bottom:6px}h3{font-size:12px}.artifact-option{padding:5px}.item>span:last-child{font-size:10px}.talent-row{min-height:49px}.talent{grid-template-columns:29px 1fr;min-height:42px}.talent img{height:29px;width:29px}.talent span{font-size:8px}.equipment{padding-bottom:5px}.gear-stats{gap:6px}.stat{font-size:10px}.no-build{padding:25px}}
@media(max-width:390px){.workspace{padding:0 14px}.factions{gap:3px}:is(.faction-button,.class-button){width:30px;height:30px}.hero-sheet{padding-left:12px;padding-right:12px}.talent-row{grid-template-columns:30px repeat(4,minmax(0,1fr))}.talent{grid-template-columns:25px 1fr;gap:1px}.talent img{width:25px;height:25px}.tile-art{height:168px}.tile-portrait{height:160px}.artifact-option .item img{width:28px;height:28px}.artifact-option .item>span:last-child{font-size:9px}}
@media(max-height:760px) and (max-width:760px){.hero-sheet{gap:4px;padding-top:6px;padding-bottom:7px}.hero-heading{min-height:105px;padding-top:17px}.detail-portrait{height:87px;width:65px}.hero-identity h2{font-size:25px}.development{margin-top:7px}.sheet-section{padding-top:5px}.section-title{margin-bottom:4px}.talent-row{min-height:43px}.talents{flex:1}.artifact-option{padding:4px}.rune-line{min-height:27px;margin-bottom:2px}.rune-items .item img{width:26px;height:26px}.rune-stats{padding:5px}.gem-options{padding:0}.hero-identity p{font-size:9px}.gear-stats{margin-top:5px}.insignia{padding-bottom:1px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
/* Keep the dense build readable; distribute spare height to the two talent rows. */
.hero-sheet .section-title>span{font-size:9px}.hero-sheet .artifact-option>small{font-size:9px}.hero-sheet .item>span:last-child{font-size:11px}.hero-sheet .rune-items .item>span:last-child{font-size:10px}.hero-sheet .rune-line>small{font-size:9px}.hero-sheet .rune-stats>div{font-size:10px}.hero-sheet .stat{font-size:10px}.hero-sheet .development{font-size:10px}.hero-sheet .gem-options b{font-size:11px}.hero-sheet .gem-options small,.hero-sheet .insignia small{font-size:9px}.hero-sheet .talents{flex:1}.hero-sheet .talent-row{min-height:63px;gap:5px}.hero-sheet .talent{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;min-height:60px;text-align:center;gap:2px}.hero-sheet .talent img{width:33px;height:33px}.hero-sheet .talent b{position:absolute;top:0;right:2px;color:#c4b8a8;font-size:8px}.hero-sheet .talent span{font-size:9px;line-height:1.15;align-self:center}.hero-sheet .hero-heading{flex:.7}.hero-sheet .insignia .stat{font-size:10px}.hero-sheet .artifact-option .item img{width:34px;height:34px}
@media(max-width:760px){.hero-sheet .artifacts{flex:.4}.hero-sheet .rune-section{flex:.7}.hero-sheet .talents{flex:1}.hero-sheet .rune-items .item>span:last-child{font-size:11px}.hero-sheet .rune-stats>div{font-size:10px}.hero-sheet .gear-stats .stat{font-size:11px}.hero-sheet .talent-row{min-height:64px}.hero-sheet .section-title{margin-bottom:6px}}
@media(max-height:740px) and (max-width:760px){.hero-sheet .section-title>span{font-size:8px}.hero-sheet .item>span:last-child{font-size:10px}.hero-sheet .rune-items .item>span:last-child{font-size:10px}.hero-sheet .development{font-size:9px}.hero-sheet .talent-row{min-height:56px}.hero-sheet .talent{min-height:52px}.hero-sheet .talent img{width:29px;height:29px}.hero-sheet .talent span{font-size:8.5px}.hero-sheet .section-title{margin-bottom:4px}.hero-sheet .artifact-option .item img{width:29px;height:29px}}
/* Short phone viewports retain the complete 740px layout at a proportional scale. */
@media(max-width:760px) and (max-height:739px){.hero-sheet{height:calc(100% / var(--sheet-scale,1));width:calc(100% / var(--sheet-scale,1));transform:scale(var(--sheet-scale,1));transform-origin:top left}}
/* Compact build: names live in accessible hover / focus / tap hints. */
.hero-sheet{height:auto;gap:5px;padding:12px 16px 9px}
.hero-sheet .hero-heading{flex:none;min-height:94px}
.hero-sheet .detail-portrait{height:94px;width:65px}
.hero-sheet h2{font-size:25px;margin:5px 0}
.hero-sheet .development{margin-top:7px;font-size:9px}
.hero-sheet .section-title>span{display:none}
.hero-sheet .sheet-section{flex:none;padding-top:6px}
.hero-sheet .section-title{margin-bottom:4px}
.hero-sheet .artifact-options{display:flex;gap:8px}
.hero-sheet .artifact-option{padding:3px 6px;display:flex;align-items:center;gap:6px;flex:1;min-width:0}
.hero-sheet .artifact-option>small{font-size:8px;margin:0}
.hero-sheet .icon-hint{background:transparent;border:0;border-radius:8px;padding:2px;cursor:help;color:inherit;display:inline-flex;justify-content:center;align-items:center;flex-shrink:0;min-width:38px;min-height:38px}
.hero-sheet .icon-hint img,.hero-sheet .artifact-option .item img{width:34px;height:34px}
.hero-sheet .icon-hint:hover,.hero-sheet .icon-hint:focus-visible{background:#ffffff12}
.hero-sheet .faction-hint,.hero-sheet .class-hint{min-width:22px;min-height:22px;padding:0}
.hero-sheet .faction-hint img,.hero-sheet .class-hint img{width:22px;height:22px}
.hero-sheet .rune-line{min-height:34px;margin-bottom:0}
.hero-sheet .rune-items{justify-content:flex-start;gap:5px;flex:none}
.hero-sheet .rune-items .item{flex:none}
.hero-sheet .rune-items .item img{width:30px;height:30px}
.hero-sheet .rune-stats{margin-top:3px;padding:5px}
.hero-sheet .text-item{font-size:10px;line-height:1.15}
.hero-sheet .text-item>span{font-size:10px;overflow-wrap:anywhere}
.hero-sheet .talents{display:grid;grid-template-columns:1fr;gap:3px}
.hero-sheet .talent-row{grid-template-columns:32px repeat(4,38px);min-height:0;gap:6px;padding:0}
.hero-sheet .talent{min-height:38px;height:38px;min-width:0;width:100%;max-width:38px;justify-self:center;flex-direction:row}
.hero-sheet .talent img{width:100%;max-width:34px;height:34px}
.hero-sheet .talent-mode b{display:inline;margin-left:5px;font-size:8px;letter-spacing:0}
.hero-sheet .talent-mode{font-size:10px;white-space:nowrap}
.hero-sheet .equipment{padding-bottom:2px}
.hero-sheet .gear-stats{margin-top:4px}
.hero-sheet .gem-options{padding:0}
.hero-sheet .gem-symbol{font-size:20px}
.hero-sheet .insignia{padding-bottom:2px}
.icon-tooltip{position:fixed;z-index:30;max-width:min(280px,calc(100vw - 16px));padding:9px 12px;border:1px solid #7d6653;background:#f2d2b2;color:#382d24;border-radius:8px;box-shadow:0 6px 22px #0004;font-size:12px;line-height:1.4;pointer-events:none}
.icon-tooltip[hidden]{display:none}
@media(max-width:760px){
 .hero-sheet{height:auto;width:100%;transform:none;padding:10px 14px 9px;gap:5px}
 .hero-sheet .hero-heading{padding-top:21px;min-height:112px}
 .hero-sheet .detail-portrait{height:87px;width:61px}
 .hero-sheet .hero-identity p{font-size:10px}
 .hero-sheet .artifacts,.hero-sheet .rune-section,.hero-sheet .talents{flex:none}
 .hero-sheet .artifact-option{gap:4px;padding:2px 4px}
 .hero-sheet .artifact-option>small{font-size:8px}
 .hero-sheet .gear-stats .stat{font-size:10px}
}
@media(max-width:355px){.hero-sheet{padding-left:10px;padding-right:10px}.hero-sheet .artifact-option{gap:1px}.hero-sheet .artifact-option>small{font-size:7px}.hero-sheet .artifact-option .item img{width:30px;height:30px}.hero-sheet .development{font-size:8px}.hero-sheet .hero-identity h2{font-size:22px}}
@media(max-width:760px){.hero-sheet{transform-origin:top center}}
.hero-sheet .artifacts{display:flex;align-items:center;gap:10px;padding-bottom:2px}
.hero-sheet .artifacts .section-title{margin:0;flex-shrink:0}
.hero-sheet .artifact-options{flex:1;gap:6px}
.hero-sheet .artifact-option{justify-content:center;background:transparent;box-shadow:none;border:0;border-radius:0}
.hero-sheet .artifact-option>small{display:none}
.hero-sheet .rune-section{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 12px}
.hero-sheet .rune-section>.section-title,.hero-sheet .rune-section>.rune-stats{grid-column:1/-1}
.hero-sheet .rune-section>.section-title{margin:0}
.hero-sheet .rune-line{flex-direction:column;align-items:flex-start;gap:0;min-width:0}
.hero-sheet .rune-items{gap:3px;max-width:100%;min-height:38px}
.hero-sheet .rune-line>small{width:auto}
.hero-sheet .rune-items .text-item{flex:1}
.hero-sheet .rune-items .icon-hint{min-width:32px;padding:1px}
.hero-sheet .rune-items .icon-hint img{width:30px;height:30px}

/* A single identity row: faction, hero name, tier. */
.hero-sheet .hero-identity{flex:1;min-width:0}
.hero-sheet .hero-kicker{gap:6px;margin-bottom:5px;min-width:0}
.hero-sheet .hero-kicker h2{font-size:22px;line-height:1.2;margin:0;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ink);letter-spacing:-.6px}
.hero-sheet .hero-kicker .rank{flex-shrink:0;margin-left:0}
.hero-sheet .hero-kicker h2:focus-visible{outline:2px solid #de744c;outline-offset:2px}

.hero-sheet .hero-identity>.artifacts{border:0;padding:0;margin-top:4px}
.hero-sheet .hero-identity .artifact-options{flex:0 1 auto;justify-content:flex-start;flex-wrap:wrap;gap:4px}
.hero-sheet .hero-identity .artifact-option{flex:0 1 auto;max-width:100%;padding:0;justify-content:flex-start}

.hero-sheet .gem-options>.gem-slot{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.hero-sheet .gem-items{display:flex;align-items:center;gap:3px;flex-wrap:wrap}
.icon-tooltip{white-space:pre-line}

/* Portrait stays in the left column beside the main build sections. */
.hero-sheet .hero-main{display:grid;grid-template-columns:clamp(60px,23%,96px) minmax(0,1fr);gap:12px;align-items:start}
.hero-sheet .portrait-column{min-width:0}
.hero-sheet .detail-portrait{width:100%;height:auto;margin:0;object-position:top}
.hero-sheet .build-column{display:flex;flex-direction:column;gap:5px;min-width:0}
.hero-sheet .hero-heading{display:block;min-height:0;padding:0}
.hero-sheet .hero-identity{padding:0}
.hero-sheet .rune-section{gap:3px 8px}
.hero-sheet .rune-items{flex-wrap:wrap;row-gap:0}
.hero-sheet .rune-stats>div{min-width:0;align-items:flex-start;flex-direction:column;gap:2px}
.hero-sheet .rune-stats>div>span{overflow-wrap:anywhere}
.hero-sheet .equipment{flex-wrap:wrap;gap:4px}
.hero-sheet .equipment>div{min-width:0}
.hero-sheet .t2{max-width:100%}
.hero-sheet .talent-row{grid-template-columns:28px repeat(4,minmax(0,38px));gap:4px}
@media(max-width:760px){
 .hero-sheet{padding-top:38px}
 .hero-sheet .close-detail{top:6px;left:12px}
 .hero-sheet .hero-heading{padding-top:0;min-height:0}
 .hero-sheet .hero-main{gap:10px}
}

.hero-sheet .gem-choice,.hero-sheet .insignia-choice{display:inline-flex;flex-direction:column;align-items:center;gap:2px;max-width:100%;min-width:0}
.hero-sheet .gem-name,.hero-sheet .insignia-name{font-size:9px;line-height:1.2;color:var(--ink);text-align:center;overflow-wrap:anywhere}
.hero-sheet .gem-items{align-items:flex-start}
.hero-sheet .gem-items>.rune-separator{padding-top:12px}

.hero-sheet .equipment .gear-stats{margin-top:0}

.hero-sheet .insignia{display:flex;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;gap:12px}
.hero-sheet .insignia>div{flex:0 1 auto;min-width:0;max-width:100%}

.hero-sheet .gem-options{display:flex;justify-content:flex-start;align-items:flex-start;flex-wrap:wrap;gap:12px}
.hero-sheet .gem-options>.gem-slot{flex:0 1 auto;max-width:100%}

.hero-sheet .hero-secondary{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
.hero-sheet .hero-secondary .t2{padding:3px 5px}

/* Section and talent labels share the same column and typography. */
.hero-sheet{--build-label-width:46px;--build-label-gap:6px}
.hero-sheet .labeled-build-row{display:grid;grid-template-columns:var(--build-label-width) minmax(0,1fr);gap:3px var(--build-label-gap);align-items:start}
.hero-sheet .build-label,.hero-sheet .talent-mode{font-size:10px;font-weight:700;line-height:1.2;color:#c5b39e;text-align:left}
.hero-sheet .build-label{display:flex;align-items:center;min-height:38px}
.hero-sheet .labeled-build-row>div{min-width:0}
.hero-sheet .rune-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.hero-sheet .equipment{align-items:center}
.hero-sheet .equipment>.build-label{min-height:0}
.hero-sheet .insignia-options{display:flex;align-items:flex-start;flex-wrap:wrap;gap:12px}
.hero-sheet .insignia-options>div{min-width:0;max-width:100%}

.hero-sheet .talent-row{grid-template-columns:var(--build-label-width) repeat(4,minmax(0,38px));gap:var(--build-label-gap)}
.hero-sheet .talent-row>.talent{min-width:0;width:100%}
.hero-sheet .talent-row>.talent img{max-width:100%}

.hero-sheet .rune-stat-map{grid-column:1/-1;justify-self:stretch;width:100%;margin:5px 0}
.rune-map-visual{position:relative}
.rune-map-visual>.rune-map-image{display:block;width:45%;max-width:120px;height:auto;margin:0 auto}
.rune-map-label{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:10px;line-height:1.2;color:var(--ink)}
.rune-map-label>span{font-weight:700;color:var(--slot-color);overflow-wrap:anywhere;text-wrap:balance}
.rune-map-visual>.rune-map-label{position:absolute;top:33.75%;transform:translateY(-50%);width:calc((100% - min(45%,120px))/2 - 4px)}
.rune-map-visual>.rune-map-label.slots12{left:20px;top:28%;text-align:right}
.rune-map-visual>.rune-map-label.slots56{right:20px;top:28%;text-align:left}
.rune-map-label.slots34{margin-top:5px;text-align:center}

.class-filter-row{padding:0 0 17px}
.classes{flex-wrap:wrap}
.hero-sheet .sheet-section.equipment{padding-top:14px;padding-bottom:12px}
.hero-sheet .equipment .gear-stats{column-gap:14px;row-gap:6px}

.hero-sheet .equipment .gear-details{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.hero-sheet .equipment>.build-label{align-self:start}
.hero-sheet .equipment .t2{padding:3px 5px;flex-wrap:wrap}

.hero-sheet .rune-items{align-items:flex-start}
.hero-sheet .rune-choice{display:flex;flex-direction:column;align-items:center;min-width:0;max-width:100%;gap:1px}
.hero-sheet .rune-count{font-size:8px;line-height:1.2;font-weight:500;color:var(--muted);margin-top:-7px}
.hero-sheet .rune-items>.rune-separator{align-self:flex-start;padding-top:12px}

/* Independent build configurations share the same presentation and asset catalogs. */
.provider-filter { margin-left:auto; }
.provider-filter select { max-width:160px; padding:9px 30px 9px 12px; border:1px solid #d8dad3; border-radius:8px; background:transparent; color:inherit; font:inherit; font-size:13px; }
.hero-secondary[hidden] { display:none; }
.official-rune-sets { min-width:0; }
.official-rune-set,.rune-alternatives { display:flex; align-items:center; flex-wrap:wrap; gap:3px; min-width:0; }
.official-rune-set { gap:5px; }
.official-rune-set .item { flex-shrink:0; }
.official-rune-set .text-item { max-width:100%; overflow-wrap:anywhere; }
.missing-value { color:var(--muted); }
.portrait-placeholder { display:flex; align-items:center; justify-content:center; min-height:100px; color:#93978c; font-size:32px; }
.artifact-option { display:flex; align-items:center; flex-wrap:wrap; }
@media(max-width:400px) { .provider-filter select { max-width:135px; font-size:12px; padding-left:8px; } }
@media(max-width:360px) { .filter-row { flex-wrap:wrap; row-gap:8px; } .tier-filter { margin-left:auto; } }

.detail-provider-filter{display:none}
@media(max-width:760px){
 .detail-provider-filter{display:block;position:absolute;top:6px;right:14px;z-index:3}
 .detail-provider-filter select{font:inherit;font-size:11px;color:var(--ink);background:#292e38;border:1px solid #424956;border-radius:6px;padding:4px 7px;max-width:145px;color-scheme:dark}
}

.artifact-tooltip{width:360px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;pointer-events:auto;white-space:normal;padding:14px 16px;line-height:1.5}
.artifact-tooltip-name{display:block;font-size:15px;line-height:1.3;margin-bottom:12px}
.artifact-tooltip-stats{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:12px}
.artifact-tooltip h3{font-size:11px;line-height:1.4;margin:0 0 5px;font-weight:750;color:#725037}
.artifact-tooltip-description{border-top:1px solid #382d2426;padding-top:10px}
.artifact-tooltip p{margin:0 0 9px}.artifact-tooltip p:last-child{margin-bottom:0}

.artifact-tooltip-stats>section:only-child{grid-column:1/-1}

.language-filter select{font:inherit;font-size:12px;border:1px solid #d8dad3;border-radius:6px;background:transparent;color:inherit;padding:6px 4px;width:52px}
.topbar{gap:12px}
@media(max-width:760px){
 .detail-provider-filter{display:flex;align-items:center;gap:7px}
 .detail-provider-filter .language-filter select{width:48px;padding:4px;font-size:11px}
 .topbar{gap:8px}
 .provider-filter select{padding-right:6px}
}

/* Native dropdown menus need their own colors instead of inherited card text. */
.topbar select option{color:#24262b;background-color:#f4f3ef}
.detail-provider-filter select option{color:#f2eee6;background-color:#292e38}

/* Provider and language controls share sizing within each surface. */
.topbar :is(.provider-filter,.language-filter) select{height:36px;padding:0 10px;font-size:13px;line-height:normal;border:1px solid #d8dad3;border-radius:8px;background:transparent;color:inherit}
.topbar .language-filter select{width:64px}
@media(max-width:760px){
 .detail-provider-filter select,.detail-provider-filter .language-filter select{height:28px;padding:0 7px;font-size:11px;line-height:normal;border:1px solid #424956;border-radius:6px;background:#292e38;color:var(--ink)}
 .detail-provider-filter .language-filter select{width:52px}
}

html[lang="uk"] .hero-sheet .build-label{overflow-wrap:anywhere}

.rune-set-requirement{margin-bottom:12px;font-weight:600}
.rune-effect-highlight{color:#a51d26;font-weight:750}

/* Both panels share the same portrait, identity and navigation header. */
.detail-pane.has-hero-tabs{max-height:calc(100dvh - 40px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#444b56 transparent;border-radius:24px}
.has-hero-tabs .hero-sheet{padding-top:0;padding-bottom:24px;gap:0}
.hero-sheet .hero-navigation{position:sticky;top:0;z-index:4;background:#1c2028;padding:10px 0 0;margin-bottom:10px}
.hero-sheet .hero-toolbar{display:flex;align-items:center;justify-content:flex-end;min-height:28px;margin-bottom:10px;gap:12px}
.hero-sheet .hero-toolbar .detail-provider-filter{display:flex;position:static;margin:0;gap:8px}
.hero-sheet .hero-toolbar select{height:28px;padding:0 7px;font-size:11px;border:1px solid #424956;border-radius:6px;background:#292e38;color:var(--ink)}
.hero-sheet .hero-toolbar .close-detail{position:static;margin-right:auto;flex-shrink:0}
.hero-sheet .hero-toolbar label[hidden]{display:none}
.hero-sheet .shared-hero-header{display:grid;grid-template-columns:52px minmax(0,1fr);gap:14px;align-items:stretch}
.hero-sheet .header-portrait{width:52px}
.hero-sheet .header-portrait .detail-portrait{width:52px;height:112px;object-fit:contain;object-position:top}
.hero-sheet .shared-hero-header>.hero-identity{display:flex;flex-direction:column;min-width:0;padding-top:5px}
.hero-sheet .shared-hero-header .hero-secondary p{margin:0;color:var(--muted);font-size:12px;line-height:1.4}
.hero-sheet .shared-hero-header .development{font-size:11px;line-height:1.4;flex-wrap:wrap}
.hero-sheet .shared-hero-header .hero-tabs{margin-top:auto}
.hero-sheet #hero-panel-build>.build-column{margin-left:66px}
.hero-sheet #hero-panel-build .artifacts{border:0;padding:0;margin-bottom:3px}
.hero-sheet #hero-panel-build .artifact-options{flex:0 1 auto;justify-content:flex-start;flex-wrap:wrap;gap:4px}
.hero-sheet #hero-panel-build .artifact-option{flex:0 1 auto;max-width:100%;padding:0;justify-content:flex-start}
.hero-sheet .hero-tabs{display:flex;gap:14px;padding:4px 0 2px}
.hero-sheet .hero-tabs button{--tab-cut:polygon(4px 0,calc(100% - 4px) 0,100% 4px,100% calc(100% - 4px),calc(100% - 4px) 100%,4px 100%,0 calc(100% - 4px),0 4px);position:relative;isolation:isolate;flex:0 0 auto;min-width:0;display:flex;align-items:center;justify-content:center;min-height:26px;padding:4px 9px;background:#383a3e;color:var(--muted);border:0;border-radius:0;clip-path:var(--tab-cut);font:inherit;font-size:12px;font-weight:500}
.hero-sheet .hero-tabs button::before{content:"";position:absolute;inset:1px;z-index:-1;clip-path:var(--tab-cut);background:#20242b}
.hero-sheet .hero-tabs button>span{position:relative}
.hero-sheet .hero-tabs button:hover{background:#686055;color:#d1c5b5}
.hero-sheet .hero-tabs button[aria-selected="true"]{background:#76644e;color:#d8c6ae}
.hero-sheet .hero-tabs button[aria-selected="true"]::before{background:#2b2927}
.hero-sheet .hero-tabs button:focus-visible{outline:none;background:#dfbe92}
.hero-sheet .hero-tabs button:focus-visible::before{inset:2px}
.hero-sheet .hero-tab-empty{padding:24px 0;color:#8997a8;font-size:13px;line-height:1.6}
.hero-sheet .hero-tab-empty p{margin:0}
.hero-panel[hidden]{display:none}
.hero-sheet .hero-guide{font-size:13px;font-weight:400;line-height:1.7;color:#bfc5ce}
.hero-sheet .hero-guide h3{font-size:22px;font-weight:600;line-height:1.25;color:var(--ink);margin:8px 0 20px;letter-spacing:-.5px}
.hero-sheet .hero-guide h4{font-size:13px;font-weight:600;line-height:1.4;color:#e3ddd5;margin:26px 0 9px}
.hero-sheet .hero-guide p{margin:0 0 14px;font-size:inherit;font-weight:400;line-height:inherit}
.hero-sheet .hero-guide>p:first-of-type{color:#e0e3e8}
.hero-sheet .hero-guide p:last-child{margin-bottom:0}
.hero-sheet .guide-list{display:grid;gap:0}
.hero-sheet .guide-card{display:flex;flex-direction:column;gap:8px;text-align:left;padding:18px 0;border-bottom:1px solid #ffffff1c;background:transparent;color:var(--ink);border-radius:0}
.hero-sheet .guide-card:first-child{padding-top:0}
.hero-sheet .guide-card:hover strong{color:#edc7a5}
.hero-sheet .guide-card strong{font-size:16px;font-weight:600;line-height:1.4}
.hero-sheet .guide-card-summary{font-size:12px;font-weight:400;line-height:1.6;color:#a8b0bc}
.hero-sheet .guide-card-footer{display:flex;justify-content:space-between;align-items:center;color:#8e98a6;font-size:10px;margin-top:2px;gap:8px}
.hero-sheet .guide-card-footer>span:last-child{font-size:18px;color:#dba578}
.hero-sheet .guide-back{background:transparent;color:#c5b39e;padding:0 0 8px;margin-bottom:12px;font-size:11px}
@media(max-width:760px){
 .detail-open .detail-pane.has-hero-tabs{height:100dvh;max-height:none;border-radius:0}
 .has-hero-tabs .hero-sheet{padding-left:18px;padding-right:18px}
 .hero-sheet .hero-guide{font-size:14px}
 .hero-sheet .hero-guide h4{font-size:14px}
}

/* Four abilities and Exclusive share one icon-tab row. */
.hero-sheet .skill-icon-tabs{position:sticky;top:var(--hero-header-height,0px);z-index:3;background:#1c2028;display:flex;justify-content:space-between;gap:10px;margin:0 0 20px;padding:2px 0 12px;border-bottom:1px solid #ffffff18}
.hero-sheet .skill-icon-tab{position:relative;flex:1 1 0;min-width:0;max-width:96px;background:transparent;color:#9ca4b1;padding:3px;display:flex;flex-direction:column;align-items:center;border-radius:8px}
.hero-sheet .skill-icon-frame{display:block;width:48px;max-width:100%;aspect-ratio:1;border:2px solid #70634d;border-radius:50%;overflow:hidden;opacity:.6}
.hero-sheet .skill-icon-frame img{width:100%;height:100%;object-fit:cover}
.hero-sheet .exclusive-skill-tab .skill-icon-frame{border-radius:10px}
.hero-sheet .skill-icon-tab[aria-selected="true"] .skill-icon-frame{opacity:1;border-color:#e5bf86;box-shadow:0 0 0 2px #e5bf8620}
.hero-sheet .skill-icon-tab:hover .skill-icon-frame{opacity:1}
.hero-sheet .skill-icon-caption{font-size:9px;line-height:1.3;margin-top:6px;color:#c5b39e;text-align:center;overflow-wrap:anywhere;max-width:100%}
.hero-sheet .skill-description[hidden]{display:none}
.hero-sheet .skill-description{font-size:13px;line-height:1.65;color:#c1c7d0;outline-offset:4px}
.hero-sheet .skill-effect-block{margin-top:18px;padding-top:16px;border-top:1px solid #ffffff14}
.hero-sheet .skill-effect-block:first-of-type{margin-top:0;padding-top:0;border-top:0}
.hero-sheet .skill-effect-block h4{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:11px;font-weight:650;line-height:1.4;margin:0 0 9px;color:#d5c3ab}
.hero-sheet .skill-effect-block p{font-size:inherit;line-height:inherit;margin:0 0 12px;font-weight:400}
.hero-sheet .skill-effect-block p:last-child{margin-bottom:0}
.hero-sheet .skill-highlight{color:#e8888b;font-weight:600}
.hero-sheet .skill-effect-upgrade{color:#a2c9d8}
.hero-sheet .skill-effect-upgrade h4{color:#7fc7df}
.hero-sheet .skill-effect-exclusive .skill-highlight{color:#e9b16f}
.hero-sheet .skill-unlock{font-size:10px;font-weight:400;color:#9aa6b4}
@media(max-width:760px){.hero-sheet .skill-description{font-size:14px}}

/* Shared APK stat reference and contextual explanations. */
.stats-open{border:1px solid #d7d6cf;background:transparent;border-radius:7px;padding:7px 10px;font-size:11px;line-height:1.3;white-space:nowrap}
.detail-stats-open{color:#cbd0d8;border-color:#ffffff20;font-size:10px;padding:5px 8px}
.stat-term{display:inline;padding:0;margin:0;border:0;border-bottom:1px dotted currentColor;border-radius:0;background:transparent;color:inherit;font:inherit;line-height:inherit;text-align:inherit;cursor:help}
.stat-term:hover{color:#e6a87d}.stat-term:focus-visible{outline:2px solid #e6a87d;outline-offset:3px}
.stat-tooltip{width:320px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 24px);overflow-y:auto;pointer-events:auto;white-space:normal;padding:14px 16px}
.stat-hint-name{display:block;font-size:15px}.stat-hint-label{display:block;font-size:11px;margin-top:3px;color:#725037}
.stat-tooltip p{margin:9px 0 0}.stat-source-note{font-size:12px;line-height:1.5;border-left:2px solid #ba845a;padding-left:10px;color:#725037}
.hint-stat-explanations{border-top:1px solid #382d2426;padding-top:10px;margin-top:12px;white-space:normal}
.hint-stat-explanations dl{margin:0}.hint-stat-explanations dt{font-weight:750;font-size:11px;margin-top:9px}.hint-stat-explanations dd{margin:3px 0 0;font-size:11px}.hint-stat-explanations small{display:block;margin-top:5px;color:#725037}
.stats-dialog{box-sizing:border-box;color:#292c31;background:#f4f3ef;border:1px solid #d6d3cb;border-radius:16px;padding:0;width:min(880px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);box-shadow:0 24px 100px #0006;overscroll-behavior:contain}
.stats-dialog::backdrop{background:#141822aa}
.stats-dialog-header{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:12px;background:#f4f3ef;border-bottom:1px solid #d8d6ce;padding:20px 24px}
.stats-dialog-header h2{margin:0 auto 0 0;font-size:21px;line-height:1.25;letter-spacing:-.4px}.stats-dialog select{border:1px solid #d7d6cf;background:#fff;border-radius:6px;padding:5px;font-size:12px;color:#292c31}
.stats-close{background:transparent;font-size:26px;line-height:1;width:32px;height:32px;border-radius:6px}
.stats-tools{display:flex;align-items:center;gap:14px;padding:20px 24px 0}.stats-tools input{min-width:0;flex:1;padding:11px 12px;border:1px solid #d8d6ce;border-radius:8px;background:#fff;font-size:13px;color:#292c31}.stats-tools span{font-size:11px;color:#6a6f75;white-space:nowrap}
.stats-source{margin:14px 24px 18px;font-size:12px;line-height:1.55;color:#6a6f75}.stats-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 24px 24px}
.stat-reference-card{padding:18px;border:1px solid #e0dcd3;border-radius:10px;background:#fff;overflow-wrap:break-word}.stat-reference-card h3{font-size:15px;margin:0;letter-spacing:.2px}.stat-reference-card p{font-size:13px;line-height:1.6;margin:10px 0 0}.stat-reference-card .stat-local-name{font-size:11px;margin-top:3px;color:#787065}.stat-reference-card .stat-source-note{margin-top:14px}.stat-reference-card .stat-source-note strong{font-size:11px}.stat-reference-card .stat-source-note p{font-size:12px;margin-top:4px}.stats-empty{grid-column:1/-1;text-align:center;padding:24px;font-size:14px;color:#6a6f75}
@media(max-width:760px){.topbar{gap:8px;flex-wrap:wrap;height:auto;min-height:64px;padding:12px 0}.topbar>.stats-open{font-size:10px;order:4;margin:0 0 0 auto}.stats-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.stats-dialog-header{padding:16px;gap:8px}.stats-dialog-header h2{font-size:18px}.stats-tools{padding:16px 16px 0;flex-wrap:wrap;gap:8px}.stats-tools input{flex-basis:100%}.stats-source{margin:12px 16px 16px}.stats-results{grid-template-columns:1fr;padding:0 16px 16px}.stat-reference-card{padding:15px}}

/* Access check shares the catalog palette and remains usable on narrow screens. */
.access-dialog{width:min(360px,calc(100vw - 12px));box-sizing:border-box;border:1px solid #d5d5cd;border-radius:18px;padding:24px;background:#f7f6f2;color:#30352f;box-shadow:0 20px 60px #0003}
.access-dialog::backdrop{background:#20251f66;backdrop-filter:blur(3px)}
.access-dialog h2{font-size:22px;line-height:1.25;margin:0 0 12px}
.access-dialog p{font-size:14px;line-height:1.5;margin:0 0 16px}
.access-dialog button,#hero-load-status button{border:1px solid #b77c59;border-radius:8px;background:#f0d1b9;color:#35291e;padding:10px 16px;cursor:pointer}
.access-dialog button:disabled{opacity:.55;cursor:wait}
#access-widget{min-width:0;display:flex;justify-content:center}
#hero-load-status{font-size:14px;line-height:1.5;margin:0 0 12px}
.hero-sheet[aria-busy="true"]{opacity:.55;pointer-events:none}
