:root{color-scheme:dark;--bg:#071219;--surface:#0a171e;--line:#465c6a;--text:#e5e8ee;--muted:#b0bece;--red:#ee3e36;--sidebar:228px;--header:58px;font-family:"Noto Serif SC","Songti SC","SimSun",serif;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text)}a{color:inherit;text-decoration:none}button,input{font:inherit}button{color:inherit;cursor:pointer}button,a,input{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px solid #ef6b55;outline-offset:3px}button{border:0;background:none}button:hover,a:hover{color:#fff}[hidden]{display:none!important}.icon{width:21px;height:21px;object-fit:contain;flex-shrink:0;filter:invert(86%) sepia(13%) saturate(359%) hue-rotate(178deg) brightness(101%)}
.site-header{height:var(--header);position:fixed;inset:0 0 auto;z-index:20;display:flex;align-items:center;border-bottom:1px solid #3a4f5e;background:#061019ed;padding:0 26px 0 30px;gap:0}.site-brand{display:flex;align-items:center;gap:18px;white-space:nowrap;font-family:Georgia,"Times New Roman",serif;font-size:24px;letter-spacing:1.5px}.site-brand>img{width:36px;height:36px;object-fit:contain}.site-nav{display:flex;align-self:stretch;margin-left:40px;gap:0}.site-nav a{min-width:115px;display:grid;place-items:center;padding:0 27px;font-size:19px;letter-spacing:1px;border-bottom:2px solid transparent}.site-nav a[aria-current]{border-color:var(--red);color:#fff1eb;background:#30100d2e}.site-search{margin-left:auto;position:relative;display:flex;align-items:center;width:300px;height:40px;border:1px solid #354d5b;border-radius:5px;padding:0 16px;gap:10px;background:#07131ad9}.site-search .icon{width:19px;height:19px}.site-search input{background:none;border:0;outline:0;color:#e1e6ed;font-size:14px;width:100%;min-width:0}.site-search input::placeholder{color:#aab6c7}.site-search:focus-within{border-color:#c36954}.steam-link{margin-left:24px;display:grid;place-items:center}.steam-link .icon{width:30px;height:30px}#search-results{position:absolute;top:47px;right:0;width:100%;padding:8px;background:#0b1923;border:1px solid var(--line);border-radius:5px;box-shadow:0 12px 25px #0008}#search-results a{display:flex;align-items:center;gap:12px;padding:8px}#search-results a:hover{background:#37201e}#search-results img{width:44px;height:44px;object-fit:cover}#search-results strong{display:block;font-size:16px}#search-results small,#search-results p{font-size:12px;color:var(--muted);line-height:1.6}#search-results p{margin:10px}
.hero-sidebar{position:fixed;top:var(--header);bottom:0;left:0;width:var(--sidebar);border-right:1px solid #425867;background:#07131b;z-index:10;display:flex;flex-direction:column}.back-link{display:flex;align-items:center;gap:12px;font-size:16px;margin:25px 28px 30px;white-space:nowrap}.back-link .icon{width:18px;height:18px}.hero-identity{text-align:center}.hero-avatar{width:160px;height:143px;border:1px solid #e37950;border-radius:4px;margin:auto;background:#24120f;overflow:hidden}.hero-avatar img{width:100%;height:100%;object-fit:cover;object-position:50% 25%;transform:scale(1.12)}.hero-identity h2{font-size:27px;line-height:1.2;letter-spacing:2px;margin:8px 0 0;font-weight:700}.hero-identity p{font:18px Georgia,serif;letter-spacing:2px;color:#bbc6d4;margin:1px 0 20px}.hero-nav{display:grid;gap:7px}.hero-nav a{height:52px;display:flex;align-items:center;gap:20px;padding:0 29px;border-left:5px solid transparent;font-size:18px;letter-spacing:1px;border-radius:0 9px 9px 0}.hero-nav a .icon{width:20px;height:20px}.hero-nav a[aria-current]{background:#471c1b;border-left-color:var(--red);color:#fff;font-weight:700}.hero-nav a:hover{background:#17252e}.hero-nav a[aria-current]:hover{background:#572321}.loadout-cta{margin:auto 21px 38px;border:1px solid #4e6575;border-radius:4px;min-height:55px;display:flex;align-items:center;justify-content:center;gap:15px;font-size:18px;background:#0a1922}.loadout-cta:hover{border-color:#ba6754;background:#1b242b}
.story-page{margin-left:var(--sidebar);padding-top:var(--header);min-height:100dvh}.story-banner{height:240px;background-image:url('/assets/story/axe-battlefield.png');background-position:right 28%;background-size:cover;position:relative}.banner-copy{padding:54px 44px 0;position:relative}.banner-copy h1{font-size:62px;font-weight:700;letter-spacing:5px;line-height:1.15;margin:0 0 7px;text-shadow:0 3px 12px #000}.story-subtitle{font-size:25px;letter-spacing:4px;margin:0 0 18px;text-shadow:0 2px 5px #000}.adaptation{display:flex;align-items:center;gap:17px;font-size:16px}.adaptation>span{display:flex;align-items:center;gap:9px;color:#ef5a45;border:1px solid #a83a2b;border-radius:10px;padding:6px 11px;background:#120a09a8;white-space:nowrap;font-weight:700}.adaptation .icon{filter:invert(38%) sepia(85%) saturate(1475%) hue-rotate(336deg) brightness(100%);width:19px;height:19px}.adaptation p{margin:0;text-shadow:0 2px 5px #000;background:#06101860}
.story-columns{display:grid;grid-template-columns:minmax(0,1.89fr) minmax(340px,1fr);gap:14px;padding:0 19px 24px 15px;align-items:start}.panel{background:#08151dec;border:1px solid #536a79;border-radius:5px;box-shadow:inset 0 0 0 2px #050d1260}.story-body{padding:20px 25px 12px}.story-body section{scroll-margin-top:80px;padding:0 0 22px;margin-bottom:22px;border-bottom:1px solid #354a58}.story-body section:last-of-type{border-bottom:0;padding-bottom:5px;margin-bottom:14px}.story-body h2{font-size:25px;line-height:1.3;letter-spacing:1px;margin:0 0 17px;font-weight:700;border-left:8px solid var(--red);padding-left:15px}.story-body p{font-size:18px;line-height:1.55;letter-spacing:.45px;margin:0 0 17px}.story-body p:last-child{margin-bottom:0}.drop-cap::first-letter{float:left;font-size:56px;line-height:.98;margin:3px 13px 0 0;color:#f13c30}.article-footer{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #263d4b;padding-top:16px;color:#8194a5;font-size:12px;line-height:1.7}.article-footer button{display:flex;gap:7px;white-space:nowrap;align-items:center;color:#c6a99b;font-size:12px;padding:0}.article-footer .icon{width:14px;height:14px;transform:rotate(90deg)}
.story-rail{display:grid;gap:13px;position:sticky;top:72px}.story-rail .panel{padding:13px 17px 12px}.story-rail h2{display:flex;align-items:center;gap:13px;font-size:22px;line-height:1.2;letter-spacing:1px;margin:0 0 12px}.story-rail h2 .icon{width:26px;height:26px}.contents-panel nav{display:grid}.contents-panel nav button{display:flex;align-items:center;gap:20px;min-height:42px;font-size:16px;padding:7px 13px;text-align:left;border-left:4px solid transparent;line-height:1.4}.contents-panel nav button+button{border-top:1px solid #263946}.contents-panel nav button[aria-current]{background:#33232a;border-left-color:var(--red)}.contents-panel nav button:hover{background:#33232a}.contents-panel nav button>span{display:grid;place-items:center;flex:none;border:1px solid #d76561;background:#b52824;border-radius:50%;width:21px;height:21px;font:14px Georgia,serif;box-shadow:inset 0 1px 3px #ffb19970;color:#fff}
.relation-row{display:flex;width:100%;gap:14px;position:relative;text-align:left;padding:7px 0;border-top:1px solid #2b3f4b;align-items:center}.relation-row:first-of-type{padding-top:0}.relation-row:last-child{padding-bottom:0}.relation-image{width:118px;height:65px;flex-shrink:0;object-fit:cover;border:1px solid #68747a;border-radius:4px}.relation-image.army{object-position:20% center}.relation-image.generals{object-position:50% center}.relation-image.comrades{object-position:90% center}.relation-copy{min-width:0;padding-right:0;display:block}.relation-copy strong{display:block;font-size:16px;margin-bottom:3px;padding-right:48px}.relation-copy>span{display:block;font-size:13px;line-height:1.3;color:#bac6d7}.sample-tag,.verified-tag{border:1px solid #a6372e;color:#f2634f;font-size:12px;font-weight:400;line-height:1.1;border-radius:4px;padding:4px 10px;background:#401c1d;white-space:nowrap}.relation-row>.sample-tag{position:absolute;right:1px;top:7px}.relation-row:first-of-type>.sample-tag{top:5px}.relation-row:hover strong{color:#f17b63}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-heading>button{display:flex;align-items:center;gap:9px;padding:0 0 12px;color:#ed5846;font-size:16px;white-space:nowrap}.panel-heading>button .icon{width:18px;height:18px;filter:invert(43%) sepia(72%) saturate(1650%) hue-rotate(335deg) brightness(100%)}.source-row{display:flex;align-items:center;gap:12px;border-top:1px solid #2b3f4b;min-height:51px;padding:5px 0}.source-row>span:nth-child(2){min-width:0;flex:1}.source-row strong{font-size:16px;display:block;line-height:1.3}.source-row small:not(.sample-tag):not(.verified-tag){font-size:12px;display:block;color:#afbed0;line-height:1.3;margin-top:2px}.source-row>.sample-tag,.source-row>.verified-tag{align-self:flex-start;padding:4px 8px}.source-row>.verified-tag{background:#162731;border-color:#3d5361;color:#b3c0cb}.source-icon{width:38px;height:38px;flex:none;display:grid;place-items:center;border:1px solid #45657b;border-radius:4px;background:#182b40}.source-icon .icon{width:28px;height:28px}.source-icon.official{background:#321512;border-color:#7d342c}.source-icon.official img{width:28px;height:28px;object-fit:contain}.source-icon.fan{background:#39241a;border-color:#70513c}
.empty-page{min-height:100dvh;padding-top:var(--header)}body[data-area="heroes"] .empty-page{margin-left:var(--sidebar)}.loadout-page{position:fixed;inset:var(--header) 0 0;background:linear-gradient(180deg,rgba(4,6,8,.12),rgba(3,5,6,.42)),var(--portal-scene-image,url("/assets/home/dota-battlefield-hero.png")) center/cover fixed no-repeat}.loadout-page iframe{border:0;width:100%;height:100%;display:block;background:transparent;color-scheme:dark}body[data-area="loadout"]{overflow:hidden}#detail-dialog{width:min(540px,calc(100vw - 32px));padding:24px;background:#0b1922;color:var(--text);border:1px solid #627785;border-radius:6px;max-height:80dvh;overflow:auto;box-shadow:0 20px 60px #0008}#detail-dialog::backdrop{background:#02080dc9}.detail-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid #354956;padding-bottom:14px}.detail-heading h2{margin:0;font-size:24px}.detail-heading button{padding:4px}.detail-heading .icon{width:18px;height:18px}#detail-content{font-size:16px;line-height:1.8;color:#c2ced8}#detail-content a{color:#f48167;text-decoration:underline}#detail-content img{width:100%;margin-top:16px;border-radius:3px}#detail-content small{color:#929eab;font-size:13px}
@media(min-width:1800px){.story-banner{height:280px}.banner-copy{padding-top:66px}.story-columns{grid-template-columns:minmax(0,1fr) 455px}.story-body p{line-height:1.8}.story-body section{padding-bottom:27px;margin-bottom:27px}}
@media(max-width:1250px){:root{--sidebar:190px}.site-brand{font-size:20px;gap:12px}.site-header{padding:0 18px}.site-nav{margin-left:22px}.site-nav a{min-width:90px;padding:0 18px;font-size:17px}.site-search{width:250px}.story-columns{grid-template-columns:minmax(0,1fr) 330px;gap:12px;padding:0 12px 20px}.hero-avatar{width:140px;height:133px}.hero-nav a{padding-left:22px;gap:15px}.back-link{margin-left:22px;font-size:14px}.story-body{padding:20px}.story-body h2{font-size:22px}.story-body p{font-size:16px}.relation-image{width:86px;height:60px}.relation-row{gap:9px}.relation-copy>span{font-size:12px}.story-rail .panel{padding:13px}.contents-panel nav button{font-size:14px;gap:10px;padding-left:9px}.source-row{gap:8px}.source-row small:not(.sample-tag):not(.verified-tag){font-size:11px}.banner-copy{padding-left:32px}.banner-copy h1{font-size:54px}.adaptation{font-size:14px}.panel-heading>button{font-size:14px}.story-rail h2{font-size:20px}}
@media(max-width:1000px){.site-search{width:200px}.site-brand{font-size:17px;letter-spacing:.5px}.site-nav{margin-left:16px}.site-nav a{min-width:75px;padding:0 13px}.steam-link{margin-left:15px}.story-columns{grid-template-columns:minmax(0,1fr)}.story-rail{position:static;grid-template-columns:1fr 1fr}.contents-panel{grid-column:1/-1;grid-row:1}.story-body{grid-row:2}.story-rail{display:contents}.contents-panel{order:0}.relations-panel,.sources-panel{order:3}.story-banner{background-position:65% center}.adaptation p{max-width:300px}.hero-nav a{font-size:16px}.story-body section{scroll-margin-top:75px}}
@media(max-width:700px){:root{--header:104px;--sidebar:0px}.site-header{height:104px;display:grid;grid-template-columns:1fr 40px;padding:10px 16px 0;gap:0 10px}.site-brand{font-size:19px;height:36px}.site-brand>img{width:28px;height:28px}.steam-link{grid-column:2;grid-row:1;margin:0}.steam-link .icon{width:25px;height:25px}.site-nav{margin:0;grid-row:2;grid-column:1/-1;height:47px;justify-content:space-between}.site-nav a{font-size:16px;padding:0 17px}.site-search{display:none}.hero-sidebar{position:relative;top:auto;bottom:auto;width:100%;margin-top:104px;border-right:0;border-bottom:1px solid #405461;padding:13px 14px 0;display:block}.back-link{font-size:13px;margin:0 0 10px;gap:8px}.hero-identity{display:flex;align-items:center;gap:10px}.hero-avatar{width:42px;height:42px;margin:0}.hero-identity h2{font-size:23px;margin:0}.hero-identity p{font-size:13px;margin:0}.hero-nav{display:flex;gap:0;overflow:auto;margin:10px -14px 0;padding:0 8px}.hero-nav a{padding:0 10px;border-left:0;border-bottom:3px solid transparent;border-radius:0;height:44px;gap:7px;font-size:13px;white-space:nowrap;flex-shrink:0;letter-spacing:0}.hero-nav a .icon{width:15px;height:15px}.hero-nav a[aria-current]{border-bottom-color:var(--red)}.loadout-cta{display:none}.story-page{padding-top:0;margin-left:0}.story-banner{height:224px;background-position:64% center}.banner-copy{padding:34px 20px 0;background:#020a1038;min-height:224px}.banner-copy h1{font-size:38px;letter-spacing:2px}.story-subtitle{font-size:19px;margin:10px 0 16px}.adaptation{align-items:flex-start;gap:10px;font-size:12px}.adaptation p{line-height:1.6;max-width:180px;padding-top:3px}.adaptation>span{font-size:12px;padding:5px 7px;gap:5px}.adaptation .icon{width:15px;height:15px}.story-columns{padding:0 10px 20px;gap:12px}.story-body{padding:19px 17px}.story-body h2{font-size:20px;letter-spacing:0;padding-left:10px;border-left-width:5px}.story-body p{font-size:16px;line-height:1.85;letter-spacing:0}.drop-cap::first-letter{font-size:46px;margin-top:8px}.story-body section{scroll-margin-top:119px}.story-rail h2{font-size:20px}.relation-image{width:105px}.relation-copy>span{font-size:13px}.contents-panel nav button{font-size:14px}.article-footer{flex-wrap:wrap}.empty-page{padding-top:0}body[data-area="home"] .empty-page,body[data-area="heroes-list"] .empty-page{padding-top:var(--header)}.story-rail .panel{padding:14px}.source-row small:not(.sample-tag):not(.verified-tag){font-size:12px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* Preserve the reference's full-width canvas while keeping native scrolling. */
html{scrollbar-width:none}html::-webkit-scrollbar{display:none}
.source-icon.official img{filter:brightness(0) saturate(100%) invert(41%) sepia(83%) saturate(1804%) hue-rotate(335deg) brightness(94%) contrast(89%)}
.story-body p{font-size:18px;letter-spacing:0;line-height:1.55}
@media(max-width:1250px){.story-body p{font-size:16px}}
@media(max-width:700px){.story-body p{line-height:1.85}}
/* Match the reference's title rhythm and reading measure. */
@media(min-width:1251px){.site-brand{font-size:22px}.site-nav{margin-left:30px}.site-nav a{min-width:100px;padding:0 25px}.hero-identity p{margin-bottom:12px}.story-body p{font-size:17px;line-height:1.65}.relations-panel .relation-row{padding-top:5px;padding-bottom:5px}.relations-panel .relation-row:first-of-type{padding-top:0}.relations-panel .relation-row:last-child{padding-bottom:0}}
.hero-avatar img{transform:none;object-position:center}
@media(max-width:700px){.hero-nav{scrollbar-width:none}.hero-nav::-webkit-scrollbar{display:none}}
.contents-toggle{display:none}
@media(max-width:700px){.contents-panel{position:relative}.contents-toggle{display:block;position:absolute;right:14px;top:13px;border:1px solid #526674;border-radius:4px;padding:4px 8px;font-size:13px;color:#c8d3de}.contents-panel nav:not(.is-open){display:none}.contents-panel h2{margin-bottom:0}.contents-panel nav{margin-top:14px}}

/* Shared portal header geometry. Keep this identical across home, loadout and hero pages. */
:root{--header:76px}
.site-header{height:var(--header);padding:0 28px 0 36px;border-bottom:1px solid rgba(204,151,112,.22);background:linear-gradient(180deg,rgba(7,10,13,.66),rgba(7,11,15,.34));box-shadow:0 8px 26px rgba(0,0,0,.1);backdrop-filter:blur(7px)}
.site-brand{gap:13px;font-size:22px;letter-spacing:1.8px;text-shadow:0 2px 10px #000}
.site-brand>img{width:34px;height:34px}
.site-nav{margin-left:38px}
.site-nav a{min-width:auto;padding:0 25px;border-bottom-width:2px;font-family:"Noto Sans SC","Microsoft YaHei",sans-serif;font-size:16px;font-weight:650;letter-spacing:.5px;text-shadow:0 2px 7px #000}
.site-nav a[aria-current]{background:linear-gradient(180deg,transparent 55%,rgba(218,70,38,.12));border-color:#f26039;color:#fff}
.site-search{height:40px;border-color:rgba(203,170,139,.25);background:rgba(9,15,19,.66)}
.steam-link{margin-left:20px}
body[data-area="loadout"]{background:#080b0d var(--portal-scene-image,url("/assets/home/dota-battlefield-hero.png")) center/cover fixed no-repeat}

/* Align the search field with the right edge of the content below it. */
@media(min-width:701px){
 body[data-area="heroes"] .site-header{padding-right:18px}
 body[data-view="hero-list"] .site-header{padding-right:22px}
 body[data-area="loadout"] .site-header{padding-right:16px}
}
@media(min-width:701px) and (max-width:1200px){
 body[data-view="hero-list"] .site-header{padding-right:16px}
 body[data-area="loadout"] .site-header{padding-right:10px}
}
@media(min-width:701px) and (max-width:800px){
 body[data-view="hero-list"] .site-header{padding-right:10px}
}

@media(max-width:1200px) and (min-width:701px){
 .site-header{padding-left:22px;padding-right:22px}
 .site-brand{gap:10px;font-size:19px;letter-spacing:1px}
 .site-brand>img{width:30px;height:30px}
 .site-nav{margin-left:20px}
 .site-nav a{padding:0 16px;font-size:15px}
 .site-search{width:220px}
}
@media(max-width:700px){
 :root{--header:104px}
 .site-header{height:var(--header);padding:8px 14px 0;grid-template-columns:1fr 40px;background:linear-gradient(180deg,rgba(7,9,12,.84),rgba(7,10,13,.68))}
 body[data-area="heroes"] .site-header,body[data-area="loadout"] .site-header{grid-template-columns:minmax(0,1fr)}
 .site-brand{gap:9px;height:38px;font-size:17px;letter-spacing:.8px}
 .site-brand>img{width:27px;height:27px}
 .site-nav{height:54px;margin:0}
 .site-nav a{min-width:0;padding:0 11px;font-size:14px}
}

/* Keep the embedded loadout isolated to its own route, even if stale styles are cached. */
#loadout-page[hidden],
body:not([data-area="loadout"]) #loadout-page{
 display:none!important;
 visibility:hidden!important;
 pointer-events:none!important;
}

.loadout-page{overflow:hidden}
.loadout-page iframe{opacity:1;transition:opacity .18s ease}
.loadout-page.is-loading iframe{opacity:0}
.loadout-transition{
 position:absolute;
 inset:0;
 z-index:2;
 display:grid;
 place-items:center;
 background:
  radial-gradient(circle at 50% 48%,rgba(30,24,20,.18),rgba(3,5,7,.55) 58%,rgba(3,5,7,.78)),
  var(--portal-scene-image,url("/assets/home/dota-battlefield-hero.png")) center/cover no-repeat;
 opacity:0;
 visibility:hidden;
 pointer-events:none;
 transition:opacity .18s ease,visibility 0s linear .18s;
}
.loadout-page.is-loading .loadout-transition{
 opacity:1;
 visibility:visible;
 transition:opacity .18s ease,visibility 0s;
}
.loadout-transition-card{
 display:grid;
 grid-template-columns:38px 24px auto;
 align-items:center;
 gap:5px 13px;
 padding:16px 20px;
 border:1px solid rgba(222,175,137,.24);
 border-radius:10px;
 background:rgba(7,10,13,.58);
 box-shadow:0 18px 60px rgba(0,0,0,.34);
 backdrop-filter:blur(10px);
 color:#f1ebe4;
}
.loadout-transition-card img{grid-row:1/3;width:38px;height:38px;object-fit:contain}
.loadout-transition-spinner{grid-row:1/3;width:22px;height:22px;border:2px solid rgba(255,255,255,.16);border-top-color:#e77950;border-radius:50%;animation:loadout-transition-spin .8s linear infinite}
.loadout-transition-card strong{font:18px Georgia,"Noto Serif SC",serif;letter-spacing:1px}
.loadout-transition-card small{color:#b9aea4;font-size:12px}
@keyframes loadout-transition-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.loadout-page iframe,.loadout-transition{transition:none}.loadout-transition-spinner{animation:none}}
