/* Mobile layouts are isolated here so the approved desktop geometry stays intact. */
.mobile-header-tools{display:contents}.mobile-hero-search,.mobile-more-filters,.mobile-site-search,.mobile-site-menu,.mobile-match-rosters{display:none}
.mobile-hero-dialog:not([open]){display:none}
.mobile-match-count,.mobile-match-meta,.mobile-match-result,.mobile-match-kda-label{display:none!important}
.overview-mobile-link,.overview-mobile-date,.overview-mobile-upgrades,.overview-mobile-history{display:none}
.overview-more .overview-desktop-link{display:contents;font:inherit;margin:0}
.mobile-mechanics-sources-title{display:none}
.mobile-hero-loadout,.mobile-hero-patch{display:none}
.mobile-hero-actions{display:contents}
@media(max-width:760px){
 :root{--header:88px;--sidebar:0px}
 html{scroll-padding-top:0}
 body:is([data-area="heroes"], [data-area="blog"]){--sidebar:0px;overflow-x:clip;background-image:linear-gradient(180deg,rgba(5,7,10,.6),rgba(5,7,10,.82)),var(--portal-scene-image)!important;background-color:#100e0d!important;background-size:cover!important;background-attachment:fixed!important}
 body .site-header{display:grid!important;grid-template-columns:minmax(0,1fr) 34px 34px!important;grid-template-rows:44px 40px;height:var(--header)!important;gap:0 8px;padding:3px 16px 1px!important;z-index:100}
 body .site-brand{grid-row:1;grid-column:1;height:40px;min-width:0;font-size:16px!important;gap:7px;letter-spacing:.3px}
 body .site-brand>img{width:26px;height:26px}
 body .site-nav{grid-row:2;grid-column:1/-1;display:flex!important;height:40px;margin:0!important;width:100%;justify-content:space-around;overflow-x:auto;white-space:nowrap}
 body .site-nav a{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-width:0;height:40px;padding:0 10px!important;border:0!important;background:transparent!important;font-size:14px!important}
 body .site-nav a[aria-current]::after{content:"";position:absolute;left:50%;bottom:0;width:min(76%,88px);height:2px;border-radius:2px 2px 0 0;background:#f05b36;box-shadow:0 0 10px #e8502e88;transform:translateX(-50%)}
 body .mobile-header-tools{display:flex!important;position:fixed!important;inset:8px 16px auto auto!important;width:76px;height:34px;align-items:center;justify-content:space-between;gap:8px;margin:0;padding:0;z-index:125}
 body .home-header-actions{display:flex!important;position:static!important;inset:auto!important;width:34px;height:34px;align-items:center;justify-content:center;margin:0!important;padding:0;border:0;background:transparent;box-shadow:none;transform:none!important;z-index:auto}
 body .language-control{box-sizing:border-box;min-width:34px!important;width:34px!important;height:34px;padding:0!important;justify-content:center;gap:0;border:1px solid rgba(215,194,171,.34)!important;border-radius:7px!important;background:rgba(18,17,18,.48)!important;box-shadow:inset 0 1px rgba(255,255,255,.035)!important;color:#eee4d8;transition:border-color .18s ease,background .18s ease,color .18s ease}
 body .language-control:focus-visible,body .language-switcher.is-open .language-control{border-color:rgba(239,159,103,.72)!important;background:rgba(72,42,29,.7)!important;box-shadow:inset 0 1px rgba(255,255,255,.05)!important;color:#fff}
 body .language-globe{width:17px;height:17px;stroke-width:1.7}
 body #language-current,body .language-chevron{display:none!important}
 body .sound-control{display:none!important}
 body .language-menu{position:fixed!important;top:94px!important;right:12px;min-width:170px;z-index:130}
 body .mobile-site-search{box-sizing:border-box;display:grid;place-items:center;width:34px;height:34px;padding:0;border:1px solid rgba(215,194,171,.34);border-radius:7px;background:rgba(18,17,18,.48);box-shadow:inset 0 1px rgba(255,255,255,.035);color:#eee4d8;transition:border-color .18s ease,background .18s ease,color .18s ease}
 body .mobile-site-search{position:relative!important;inset:auto!important;flex:0 0 34px;z-index:auto}
 body .mobile-site-search:focus-visible,body .mobile-search-open .mobile-site-search{border-color:rgba(239,159,103,.72);background:rgba(72,42,29,.7);color:#fff}
 body .mobile-search-icon{display:block;width:18px;height:18px;overflow:visible;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round;transform:translate(-.25px,-.25px)}
 @media(hover:hover){body .language-control:hover,body .mobile-site-search:hover{border-color:rgba(239,159,103,.72)!important;background:rgba(72,42,29,.7)!important;color:#fff}}
 body .site-search{display:none;position:absolute;inset:88px 16px auto;width:auto!important;max-width:none;height:44px;background:#12181cf7;border:1px solid #8b6e4e;z-index:120}
 body .mobile-search-open .site-search{display:flex}
 body .site-search input{font-size:16px;min-width:0}
 body #search-results{max-height:65dvh;overflow:auto}
 body[data-area="loadout"] #loadout-page{inset:var(--header) 0 0}
 body[data-area="heroes"] main{min-width:0;max-width:100%;margin-left:0!important}
 /* The hero detail header shares one layout across all five sections. */
 body[data-view="hero-detail"]{
  --hero-detail-gutter:clamp(12px,5vw,22px);
  --hero-detail-card-gap:7px;
 }
 body[data-area="heroes"][data-view="hero-detail"] .site-header{background:linear-gradient(110deg,#101216f3,#201713e8)}
 body[data-area="heroes"] #hero-sidebar{
  position:sticky!important;top:var(--header)!important;bottom:auto;
  width:100%;height:54px;margin-top:var(--header)!important;padding:4px var(--hero-detail-gutter)!important;
  display:grid;grid-template-columns:36px minmax(0,1fr);gap:0;align-items:center;
  border:0;border-bottom:1px solid #91704d66;
  background:linear-gradient(120deg,#141416fa,#201815e8)!important;backdrop-filter:blur(12px);
  z-index:70;box-sizing:border-box;
 }
 body[data-area="heroes"] #hero-sidebar[hidden]{display:none!important}
 #hero-sidebar::before{content:"";position:absolute;inset:4px var(--hero-detail-gutter);border:1px solid #8d6e4b80;border-radius:8px;pointer-events:none}
 body[data-area="heroes"] #hero-sidebar .back-link{
  position:relative;grid-area:1/1;display:flex;align-items:center;justify-content:center;
  width:36px;height:44px;margin:0!important;padding:0;font-size:0!important;gap:0;color:#f4e5d2;
 }
 #hero-sidebar .back-link::before{content:"";width:8px;height:8px;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
 #hero-sidebar .back-link::after{content:"";position:absolute;right:0;top:11px;bottom:11px;width:1px;background:#9d805b80}
 #hero-sidebar .back-link img{display:none}
 body[data-area="heroes"] #hero-sidebar :is(.hero-identity,.loadout-cta){display:none!important}
 body[data-area="heroes"] #hero-sidebar .hero-nav{
  grid-area:1/2;display:flex;align-items:center;gap:0;width:100%;min-width:0;height:44px;
  margin:0!important;padding:0 3px;overflow-x:auto;scrollbar-width:none;overscroll-behavior-x:contain;
  border:0;border-radius:0 8px 8px 0;box-sizing:border-box;
 }
 body[data-area="heroes"] #hero-sidebar .hero-nav a{
  display:flex;justify-content:center;align-items:center;gap:0;height:40px;min-width:max-content;flex:1 0 auto;box-sizing:border-box;
  padding:0 6px!important;border:1px solid transparent;border-radius:0;color:#e9dccc;
  font-size:12px;letter-spacing:0;white-space:nowrap;
 }
 #hero-sidebar .hero-nav .icon{display:none}
 body[data-area="heroes"] #hero-sidebar .hero-nav a[aria-current]{
  border:1px solid #c67450!important;border-radius:4px;
  background:linear-gradient(#9d422c,#5a251b)!important;box-shadow:inset 0 0 6px #f2865c48;color:#fff2e1;
 }
 @media(max-width:350px){body[data-area="heroes"] #hero-sidebar .hero-nav a{padding-inline:4px!important}}
 body[data-area="heroes"] .mobile-hero-loadout{
  position:absolute!important;inset:auto 12px 10px auto!important;z-index:3;
  display:flex;align-items:center;justify-content:center;gap:5px;box-sizing:border-box;
  min-height:34px;max-width:calc(100% - 24px);padding:5px 9px;border:1px solid #b48a55;border-radius:7px;
  background:#211910c9;color:#f3d9b5;font-size:11px;line-height:1.4;white-space:nowrap;
 }
 .mobile-hero-loadout img{width:14px;height:14px}
 .mobile-hero-loadout::after{content:"↗";font-size:14px}
 body[data-area="heroes"] .mobile-hero-loadout:focus-visible,#hero-sidebar .back-link:focus-visible{outline:2px solid #efd175;outline-offset:-3px}
 body[data-area="heroes"] :is(.story-page,.overview-page,.alchemist-page){padding-top:0!important;background:transparent!important}
 body[data-area="heroes"] :is(#story-page .story-banner,#abilities-page .mechanics-banner,#matches-page .matches-banner,#history-page .history-hero,.alchemist-detail-banner){position:relative!important;height:158px!important;min-height:158px!important;max-height:158px;margin:12px 12px var(--hero-detail-card-gap)!important;width:calc(100% - 24px)!important;box-sizing:border-box;border:1px solid #9b754852;border-radius:10px;background-size:cover;background-position:65% center;overflow:hidden}
 body[data-area="heroes"] :is(#story-page .banner-copy,#abilities-page .banner-copy,#matches-page .banner-copy,#history-page .history-hero-copy,.alchemist-detail-copy){position:relative!important;inset:auto!important;max-width:100%!important;min-height:0!important;height:auto!important;padding:21px 17px!important;display:flex!important;flex-direction:column;gap:7px;background:transparent!important;box-sizing:border-box;z-index:2}
 body[data-area="heroes"] :is(#story-page .banner-copy h1,#abilities-page .banner-copy h1,#matches-page .banner-copy h1,#history-page .history-hero-copy h1,.alchemist-detail-copy h1){font-size:28px!important;line-height:1.25!important;letter-spacing:2px!important;margin:0!important}
 body[data-area="heroes"] :is(.story-subtitle,.alchemist-detail-subtitle){margin:0!important;font-size:12px!important;line-height:1.4;letter-spacing:0!important}
 body[data-area="heroes"] :is(.detail-banner-note,.alchemist-detail-note){display:flex!important;align-items:center!important;gap:7px;margin:0!important;font-size:10px!important;line-height:1.4;min-height:0!important}
 body[data-area="heroes"] :is(.detail-banner-note>span,.alchemist-detail-note>span){flex:none;font-size:10px!important;padding:4px 6px!important;white-space:nowrap}
 body[data-area="heroes"] :is(.detail-banner-note>p,.alchemist-detail-note>p){max-width:210px!important;margin:0!important;padding:0!important;font-size:10px!important;line-height:1.5;letter-spacing:0}
 body[data-area="heroes"] .history-status{position:absolute!important;inset:auto auto 10px 12px!important;max-width:calc(100% - 132px);padding:3px 6px!important;margin:0!important;font-size:9px!important;line-height:1.4;box-shadow:none}
 /* List: portrait cards and an independent search; advanced filters live in a sheet. */
 body[data-view="hero-list"] #hero-list-page{padding-top:var(--header);background:transparent}
 body[data-view="hero-list"] .hero-list-hero{display:flex;align-items:center;min-height:82px;padding:14px 18px 9px;gap:10px;background:transparent}
 body[data-view="hero-list"] .hero-list-heading{min-width:0;flex:1}
 body[data-view="hero-list"] .hero-list-heading h1{font-size:28px;line-height:1.1;letter-spacing:2px}
 body[data-view="hero-list"] .hero-list-heading p{font-size:11px;line-height:1.35;margin-top:6px;white-space:nowrap}
 body[data-view="hero-list"] .hero-list-version{font-size:10px;gap:4px;margin:0;padding:7px 9px;border-radius:7px}
 body[data-view="hero-list"] .hero-list-version>span:first-child{display:none}
 body[data-view="hero-list"] .hero-list-version strong{font-size:11px}
 body[data-view="hero-list"] .hero-list-shell{padding:0 18px 28px;background:transparent}
 .mobile-hero-search{display:block;box-sizing:border-box;width:100%;height:44px;padding:0 13px 0 46px;margin-bottom:12px;border:1px solid #98774e88;border-radius:7px;background-color:#0e1418c9;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eee5d9' stroke-width='1.7' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:14px center;background-size:22px;color:#eee5d9;font-size:14px}
 .mobile-hero-search:focus {
   outline: none;
   box-shadow: none;
 }
 body[data-view="hero-list"] .hero-list-filters{display:flex;flex-wrap:nowrap;min-height:0;padding:0;border:0;background:none;box-shadow:none;backdrop-filter:none;gap:5px}
 body[data-view="hero-list"] .hero-filter-groups{overflow:visible;padding:0;min-width:0;flex:1}
 body[data-view="hero-list"] .hero-attribute-filter{display:flex;gap:5px;width:100%;padding:0;border:0;flex:1}
 body[data-view="hero-list"] .hero-attribute-filter .hero-filter-label{display:none}
 body[data-view="hero-list"] .hero-attribute-filter button{flex:1;min-width:0;height:36px;font-size:11px;padding:0 4px;border-color:#8e714b77;background:#10171bb3}
 body[data-view="hero-list"] .hero-attribute-filter button[aria-pressed=true]{background:linear-gradient(#a54d2d,#562a20);border-color:#e58b57}
 body[data-view="hero-list"] .hero-list-reset{width:100%;height:38px;margin:6px 0 0;padding:0 10px;border:1px solid #8c6a4966;border-radius:5px;background:#211b17;color:#d9c7b5;font-size:12px}
 body[data-view="hero-list"] .hero-list-summary{height:46px;font-size:13px}
 body[data-view="hero-list"] .hero-list-summary-label{display:none}
 .mobile-more-filters{display:flex;align-items:center;gap:6px;margin-left:auto;min-height:32px;padding:0 10px;border:1px solid #94724b77;border-radius:5px;background:#25201999;font-size:11px;color:#e5d6c3}
 .mobile-more-filters::before{content:"";width:14px;height:14px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5d6c3' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6.2 7.2V19l-3.6-1.8v-5z'/%3E%3C/svg%3E") center/contain no-repeat}
 body[data-view="hero-list"] .hero-list-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 7px}
 body[data-view="hero-list"] .hero-list-card{display:block;aspect-ratio:1.42;border-radius:6px;background:transparent;box-shadow:0 3px 8px #0005}
 body[data-view="hero-list"] .hero-list-card:hover,body[data-view="hero-list"] .hero-list-card:focus-visible{transform:none}
 body[data-view="hero-list"] .hero-list-card img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:center 18%;display:block}
 body[data-view="hero-list"] .hero-list-card:after{display:none}
 body[data-view="hero-list"] .hero-list-card span{position:absolute;z-index:1;left:2px;right:2px;bottom:3px;display:block;padding:0;background:transparent;color:#fff;font-size:11px;font-weight:700;line-height:1.2;text-align:center;text-shadow:0 1px 2px #000,0 2px 5px #000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
 /* Story: the article and supporting cards share one stack. */
 body[data-area="heroes"] :is(#story-page .story-columns,.alchemist-story-columns){display:flex!important;flex-direction:column;gap:var(--hero-detail-card-gap);padding:0 12px 24px!important}
 body[data-area="heroes"] :is(.story-rail,.alchemist-story-rail){display:contents!important;position:static!important}
 body[data-area="heroes"] :is(.contents-panel,.alchemist-contents){display:none!important}
 body[data-area="heroes"] .story-body{order:1;box-sizing:border-box;width:100%;min-width:0;padding:22px 17px!important;border-radius:10px!important}
 body[data-area="heroes"] .story-body h2{font-size:22px!important;line-height:1.5!important;letter-spacing:0;overflow-wrap:anywhere}
 body[data-area="heroes"] .story-body p{font-size:16px!important;line-height:1.95!important;letter-spacing:.2px!important;overflow-wrap:anywhere}
 body[data-area="heroes"] .story-body section{scroll-margin-top:245px;padding-bottom:22px;margin-bottom:22px}
 body[data-area="heroes"] .drop-cap::first-letter{font-size:44px;line-height:1;margin:7px 9px 0 0}
 body[data-area="heroes"] :is(.relations-panel,.sources-panel,.alchemist-story-rail>.panel){order:2;width:100%;box-sizing:border-box}
 /* Abilities: display complete reference sections directly. */
 body[data-area="heroes"] .mechanics-shell{position:static!important;margin:0 12px 24px!important;padding:0!important;min-width:0;background:transparent!important;border:0!important;box-shadow:none!important}
 body[data-area="heroes"] #abilities-page .mechanics-titlebar{display:none!important}
 body[data-area="heroes"] .mechanics-titlebar h2{font-size:18px;margin:0}
 body[data-area="heroes"] .mechanics-titlebar p{font-size:11px;line-height:1.6;flex-basis:100%;margin:0}
 body[data-area="heroes"] .mechanics-titlebar .icon{width:20px;height:20px}
 body[data-area="heroes"] .version-state{position:static!important;font-size:10px;max-width:100%;margin:0}
 body[data-area="heroes"] .mechanics-section{margin:0 0 var(--hero-detail-card-gap)!important;padding:13px!important;border-radius:10px;min-width:0;max-width:100%;box-sizing:border-box}
 body[data-area="heroes"] #abilities-page .mechanics-section:first-of-type{border:1px solid #87644280;background:linear-gradient(145deg,rgba(22,18,16,.94),rgba(8,11,12,.9));backdrop-filter:blur(9px)}
 body[data-area="heroes"] .mechanics-section-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:0!important;margin:0 0 12px!important}
 body[data-area="heroes"] #abilities-page .mechanics-section:first-of-type>.mechanics-section-heading{display:flex}
 body[data-area="heroes"] .mechanics-section-heading h3{font-size:18px;margin:0}
 body[data-area="heroes"] .mechanics-section-heading>span{font-size:11px;width:25px;height:25px;display:grid;place-items:center}
 body[data-area="heroes"] .mechanics-section-heading p{flex-basis:100%;font-size:11px;margin:0;line-height:1.7}
 body[data-area="heroes"] .mechanics-shell :is(.upgrade-grid,.upgrade-items,.innate-grid,.hero-innate-list,.skill-grid){display:grid!important;grid-template-columns:minmax(0,1fr)!important;row-gap:var(--hero-detail-card-gap)!important;min-width:0}
 body[data-area="heroes"] .upgrade-card{display:grid!important;grid-template-columns:42px minmax(0,1fr)!important;gap:10px!important;padding:12px!important;min-width:0}
 body[data-area="heroes"] .upgrade-card>.ability-art{width:40px;height:40px}
 body[data-area="heroes"] :is(.upgrade-card dd,.upgrade-card p,.innate-card p,.mechanic-note p){font-size:13px;line-height:1.8;overflow-wrap:anywhere}
 body[data-area="heroes"] .talent-tree{padding:10px!important;min-width:0}
 body[data-area="heroes"] .talent-row{grid-template-columns:minmax(0,1fr) 25px minmax(0,1fr)!important;gap:5px;padding:10px 0}
 body[data-area="heroes"] .talent-row>div{min-width:0;gap:5px}
 body[data-area="heroes"] .talent-row img{width:22px;height:22px}
 body[data-area="heroes"] .talent-row span{font-size:11px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}
 body[data-area="heroes"] .innate-card{display:grid!important;grid-template-columns:38px minmax(0,1fr)!important;gap:9px;padding:12px!important}
 body[data-area="heroes"] .innate-card>img{width:36px;height:36px}
 body[data-area="heroes"] .innate-fact{grid-column:1/-1;min-width:0;max-width:100%}
 body[data-area="heroes"] .ability-tabs{display:flex!important;overflow-x:auto;gap:7px;padding:0 0 8px;scrollbar-width:thin;min-width:0}
 body[data-area="heroes"] .ability-tabs button{display:flex!important;flex-direction:column!important;align-items:center;justify-content:flex-start;flex:0 0 72px;min-width:0;height:auto!important;min-height:81px;padding:8px 3px;font-size:11px;white-space:normal;line-height:1.5;gap:5px}
 body[data-area="heroes"] .ability-tabs button span{width:100%;font-size:11px;white-space:normal;text-align:center;overflow-wrap:anywhere}
 body[data-area="heroes"] .ability-tabs img{width:40px;height:40px}
 body[data-area="heroes"] .ability-detail{padding:13px!important;min-width:0}
 body[data-area="heroes"] .ability-summary{min-width:0;grid-template-columns:42px minmax(0,1fr)!important;gap:9px}
 body[data-area="heroes"] .ability-summary img{width:40px;height:40px}
 body[data-area="heroes"] .ability-summary h4{font-size:18px;line-height:1.5}
 body[data-area="heroes"] .ability-summary p{font-size:14px;line-height:1.85}
 body[data-area="heroes"] .ability-table{width:100%;table-layout:fixed;font-size:12px}
 body[data-area="heroes"] .ability-table :is(th,td){white-space:normal!important;overflow-wrap:anywhere;font-size:12px!important;line-height:1.8;padding:8px 6px!important}
 body[data-area="heroes"] .ability-table :is(th,td):first-child{width:38%}
 body[data-area="heroes"] .mechanics-explanation{margin-top:0!important;padding:14px!important;min-width:0;font-size:14px;line-height:1.85}
 body[data-area="heroes"] .mechanics-sources{padding:13px!important;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
 body[data-area="heroes"] .mechanics-sources summary{display:none}
 .mobile-mechanics-sources-title{display:block;margin:0;font:inherit;color:#d1dbe3}
 .mobile-mechanics-sources-title span{margin-inline-start:10px;color:#92b5a6}
 body[data-area="heroes"] :is(.mechanics-sources,.matches-shell){scroll-margin-top:245px}
 /* Matches: one vertical card per game, keeping score, KDA and full drafts. */
 body[data-hero-section="matches"] :is(#matches-page .matches-banner,.alchemist-matches-banner,.hero-matches-banner){
  height:100px!important;min-height:100px!important;max-height:100px;
  width:auto!important;margin:9px var(--hero-detail-gutter) 9px!important;
  border-color:#916b4b99;background-position:68% 43%;
 }
 body[data-hero-section="matches"] :is(#matches-page .banner-copy,.alchemist-detail-copy){padding:8px 17px!important;gap:4px}
 body[data-hero-section="matches"] :is(#matches-page .banner-copy,.alchemist-detail-copy) h1{font-size:25px!important;line-height:1.15!important}
 body[data-hero-section="matches"] :is(.detail-banner-note,.alchemist-detail-note)>p{display:none!important}
 body[data-area="heroes"][data-hero-section="matches"] :is(.detail-banner-note,.alchemist-detail-note)>span{
  border-color:#94734b99;background:#302718b3;color:#ffe4b1;border-radius:6px;
 }
 body[data-area="heroes"] :is(#matches-page,#alchemist-page,#hero-detail-page) .matches-shell{margin:0 var(--hero-detail-gutter) 24px!important;min-width:0}
 body[data-area="heroes"] :is(#matches-page,#alchemist-page,#hero-detail-page) .matches-filters.panel{
  display:grid!important;grid-template-columns:minmax(0,1fr) minmax(74px,28%);align-items:stretch;gap:7px;
  padding:0!important;margin:0 0 var(--hero-detail-card-gap)!important;
  border:0;background:none!important;box-shadow:none;
 }
 body[data-area="heroes"] .matches-filters > :not(.match-search,.match-event-filter){display:none}
 body[data-area="heroes"] .matches-context{padding:0 4px 12px;font-size:11px;line-height:1.7;display:flex;flex-wrap:wrap;gap:6px}
 body[data-area="heroes"] :is(#matches-page,#alchemist-page,#hero-detail-page) .match-table-panel{
  padding:0!important;border:0;background:none!important;box-shadow:none;backdrop-filter:none;min-width:0;
 }
 body[data-hero-section="matches"] .matches-list-heading{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;margin:0}
 body[data-hero-section="matches"] .mobile-match-count{display:block!important;margin:0 0 6px;color:#e9d6bf;font-size:13px;line-height:1.35}
 body[data-hero-section="matches"] .matches-summary{display:none}
 body[data-area="heroes"] .match-table-wrap{width:100%;overflow:visible!important}
 body[data-area="heroes"] .matches-table{display:block;width:100%!important;min-width:0!important;table-layout:auto;border:0}
 body[data-area="heroes"] .matches-table thead{display:none}
 body[data-area="heroes"] .matches-table tbody{display:grid;gap:var(--hero-detail-card-gap);width:100%}
 body[data-area="heroes"] .matches-table .match-row{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;
  gap:4px 8px;margin:0;padding:7px 11px 0!important;
  border:1px solid #926b4bae;border-radius:11px;background:linear-gradient(148deg,#231c16f2,#171512f7);
 }
 body[data-area="heroes"] .matches-table .match-row>td{
  display:block!important;position:static;min-width:0;padding:0!important;max-width:100%;width:auto!important;
  border:0!important;text-align:left;font-size:12px;
 }
 /* Match desktop hover specificity for paint only, so mobile cell layout still wins. */
 body[data-area="heroes"] :is(#matches-page,#alchemist-page,#hero-detail-page) .matches-table .match-row>td{
  background:var(--mobile-match-cell-background,transparent)!important;
 }
 body[data-area="heroes"] .matches-table .match-row>td:before{display:none!important}
 body[data-area="heroes"] .matches-table .match-row[data-mobile-ready]>td:nth-child(-n+3){display:none!important}
 body[data-area="heroes"] .matches-table .match-row>.mobile-match-meta{
  display:grid!important;grid-area:1/1/auto/-1;grid-template-columns:minmax(0,1fr) auto 6.5em;
  align-items:center;gap:8px;min-height:22px;
 }
 .mobile-match-meta time{text-align:end;white-space:nowrap;color:#ebd8bc;font-size:12px;font-variant-numeric:tabular-nums}
 body[data-area="heroes"] .mobile-match-meta .tier-pill{justify-self:end;min-width:49px;text-align:center;font-size:11px;padding:1px 8px;border-radius:5px;white-space:nowrap}
 body[data-area="heroes"] .mobile-match-meta .match-event-content{display:flex!important;flex-direction:row!important;align-items:center;gap:6px;min-width:0;max-width:100%;white-space:nowrap}
 body[data-area="heroes"] .mobile-match-meta .match-event-content>span:last-child{font-size:13px;font-weight:700;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;color:#fff4e2}
 body[data-area="heroes"] .mobile-match-meta :is(.tournament-mark,.tournament-logo){width:23px;height:21px;flex:none;font-size:9px}
 body[data-area="heroes"] .match-row>td:nth-child(4){grid-row:2;grid-column:1}
 body[data-area="heroes"] .match-row>td:nth-child(5){grid-row:2;grid-column:2}
 body[data-area="heroes"] .match-row>td:nth-child(6){grid-row:2;grid-column:3}
 body[data-area="heroes"] .matches-table .match-row>td:is(.lineup-cell,.match-score-cell){
  display:flex!important;align-items:center;justify-content:center;min-height:34px;
 }
 body[data-area="heroes"] .matches-table .match-row>td.match-kda{
  --mobile-match-cell-background:#31271b50;
  display:flex!important;grid-area:3/1/auto/-1;align-items:center;justify-content:center;
  min-height:31px;padding:3px 6px!important;line-height:1.25;
  border-block:1px solid #8e6a473c!important;color:#f1dabe;
 }
 .matches-table .match-kda .mobile-match-kda-label{display:inline!important;font-size:12px;margin-inline-end:5px}
 .mobile-match-kda-label::after{content:'K / D / A';margin-inline:8px 10px;font-weight:400;white-space:nowrap}
 body[data-area="heroes"] .match-kda span{font-size:15px}
 body[data-area="heroes"] .match-row>.lineup-cell .hero-strip{display:none!important}
 body[data-area="heroes"] .matches-table .lineup-cell .draft-lineup{width:100%}
 body[data-area="heroes"] .draft-lineup{display:flex!important;min-width:0;gap:7px;flex-direction:column!important;align-items:center!important}
 body[data-area="heroes"] .matches-table .team-identity{display:flex;align-items:center!important;justify-content:center!important;flex-direction:row!important;gap:6px;min-width:0;max-width:100%;width:100%}
 body[data-area="heroes"] .team-logo-shell{width:26px;height:26px;flex:none}
 body[data-area="heroes"] .team-logo-shell img{width:100%;height:100%;object-fit:contain}
 body[data-area="heroes"] .matches-table .team-name{display:block!important;font-size:13px!important;font-weight:700;color:#fff2de;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body[data-area="heroes"] .matches-table .match-score{
  display:grid;grid-template-columns:19px auto 19px;align-items:center;gap:3px;
  justify-content:center;min-height:32px;
 }
 body[data-area="heroes"] .match-score .result-mini{display:none!important}
 body[data-area="heroes"] .match-score strong{grid-area:1/2;text-align:center;font-size:21px;line-height:1.15;white-space:nowrap;color:#f7dfbc}
 .match-score .mobile-score-win>span:first-child{color:#66d768}
 .match-score .mobile-score-loss>span:last-child{color:#f06b5f}
 body[data-area="heroes"] .matches-table .mobile-match-result{
  display:grid!important;grid-area:1/1;place-items:center;height:18px;
  border-radius:3px;font-size:10px;font-weight:700;line-height:1;
 }
 .mobile-match-result.win{background:#174c35;color:#98e4aa}
 .mobile-match-result.loss{background:#4a2024;color:#f18c88}
 body[data-area="heroes"] .matches-table .match-row>.mobile-match-rosters{display:block!important;grid-row:4;grid-column:1/-1}
 .mobile-match-rosters details{position:relative}
 .mobile-match-rosters summary{
  display:flex;align-items:center;justify-content:center;gap:8px;min-height:28px;
  font-size:12px;font-weight:700;color:#efd5ad;cursor:pointer;list-style:none;
  -webkit-tap-highlight-color:transparent;
 }
 .mobile-match-rosters summary::-webkit-details-marker{display:none}
 .mobile-match-rosters summary::after{content:'';width:7px;height:7px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:translateY(-2px) rotate(45deg)}
 .mobile-match-rosters details[open]{padding-bottom:32px}
 .mobile-match-rosters details[open] summary{position:absolute;inset:auto 0 0;border-top:1px solid #8e6a473c}
 .mobile-match-rosters details[open] summary::after{transform:translateY(2px) rotate(225deg)}
 .mobile-match-rosters :is(details[open] .mobile-rosters-collapsed,details:not([open]) .mobile-rosters-expanded){display:none}
 body[data-area="heroes"] .matches-table .mobile-match-rosters .draft-lineup{display:flex!important;flex-direction:column-reverse!important;align-items:stretch!important;gap:4px!important;padding:2px 0 6px}
 body[data-area="heroes"] .mobile-match-rosters .team-logo-shell{width:18px;height:18px}
 body[data-area="heroes"] .matches-table .mobile-match-rosters .team-identity{justify-content:flex-start!important}
 body[data-area="heroes"] .matches-table .mobile-match-rosters .team-name{font-size:12px!important}
 body[data-area="heroes"] .mobile-match-rosters .hero-strip{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;width:100%;min-width:0}
 body[data-area="heroes"] .mobile-match-rosters .hero-strip img{width:100%!important;height:auto!important;aspect-ratio:1.43;object-fit:cover;min-width:0;border:1px solid #a1846599;border-radius:4px}
 body[data-area="heroes"] .mobile-match-rosters .hero-strip .mobile-lineup-hero{border-color:#e0804e;box-shadow:0 0 6px #ea74369e}
 body[data-area="heroes"] .matches-footer{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;padding-top:14px;font-size:11px}
 body[data-area="heroes"] .matches-pagination{display:flex;flex-wrap:wrap;order:3;justify-content:center;width:100%;gap:5px}
 body[data-area="heroes"] .matches-pagination[hidden]{display:none}
 body[data-area="heroes"] .matches-pagination button{min-width:32px;min-height:32px}
 /* History: every change flows across the card rather than a desktop column grid. */
 body[data-area="heroes"] :is(#history-page,#alchemist-page,#hero-detail-page) .history-shell{padding:0 12px 24px!important}
 body[data-area="heroes"] :is(#history-page,#alchemist-page,#hero-detail-page) .history-filters{
  display:grid!important;grid-template-columns:minmax(0,1fr) repeat(2,clamp(58px,19%,100px))!important;
  gap:8px 6px!important;padding:0!important;margin-bottom:var(--hero-detail-card-gap);border:0;background:transparent;
 }
 body[data-area="heroes"] .history-filters>.history-periods{
  grid-area:1/1;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));min-width:0;
 }
 body[data-area="heroes"] :is(#history-page,#alchemist-page,#hero-detail-page) .history-periods button{
  height:100%;min-width:0;padding-inline:1px;font-size:clamp(10px,2.8vw,12px);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
 }
 body[data-area="heroes"] :is(#history-page,#alchemist-page,#hero-detail-page) .history-filters>:is(label,.history-periods){
  min-width:0;width:100%;height:42px;box-sizing:border-box;
 }
 body[data-area="heroes"] .history-filters>label:has(select){position:relative}
 body[data-area="heroes"] .history-filters>label:has(select)::after{
  content:'';position:absolute;right:6px;top:50%;width:5px;height:5px;
  border-right:1px solid currentColor;border-bottom:1px solid currentColor;
  transform:translateY(-70%) rotate(45deg);pointer-events:none;
 }
 body[data-area="heroes"] .history-filters select{
  appearance:none;min-width:0;padding-inline:5px 14px;
  font-size:clamp(10px,2.9vw,12px);text-overflow:ellipsis;
 }
 body[data-area="heroes"] .history-search{grid-area:2/1}
 body[data-area="heroes"] .history-search input{font-size:16px}
 body[data-area="heroes"] .history-sort{grid-area:2/2/3/-1}
 body[data-area="heroes"] .history-sort>span{padding-left:7px;font-size:11px}
 body[data-area="heroes"] :is(#history-page,#alchemist-page,#hero-detail-page) .history-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:var(--hero-detail-card-gap)}
 body[data-area="heroes"] :is(#history-page,#alchemist-page,#hero-detail-page) .history-timeline{display:grid;gap:var(--hero-detail-card-gap);padding:0!important;min-width:0;border:0;background:transparent!important;box-shadow:none}
 body[data-area="heroes"] .history-timeline:before,body[data-area="heroes"] .history-dot,body[data-area="heroes"] .history-table-head{display:none!important}
 body[data-area="heroes"] .history-entry{min-width:0;border-radius:9px;overflow:hidden;scroll-margin-top:245px}
 body[data-area="heroes"] .history-entry>header{display:flex!important;flex-wrap:wrap;align-items:center;gap:6px 9px;padding:12px!important;min-height:46px}
 body[data-area="heroes"] .history-entry>header h3{min-width:0;font-size:20px!important;margin:0;line-height:1.3}
 body[data-area="heroes"] .history-entry>header>span{font-size:10px!important;padding:3px 5px!important;white-space:normal;max-width:100%}
 body[data-area="heroes"] .history-entry>header time{font-size:10px}
 body[data-area="heroes"] .history-entry>header a{font-size:10px!important}
 body[data-area="heroes"] .history-toggle{margin-left:auto!important;min-width:32px;min-height:32px;padding:0;font-size:20px}
 body[data-area="heroes"] .history-entry-body{display:block!important;padding:12px!important;min-width:0}
 body[data-area="heroes"] .history-entry-body[hidden]{display:none!important}
 body[data-area="heroes"] .history-ability-group{display:block!important;padding:0 0 12px!important;margin:0 0 12px!important;min-width:0;border-bottom:1px solid #7e604044}
 body[data-area="heroes"] .history-ability-group:last-child{margin-bottom:0!important;padding-bottom:0!important;border:0}
 body[data-area="heroes"] .history-ability-heading{display:flex!important;align-items:center;gap:8px;margin-bottom:10px!important;min-width:0}
 body[data-area="heroes"] .history-ability-heading img{width:30px!important;height:30px!important}
 body[data-area="heroes"] .history-ability-heading strong{font-size:15px!important;margin:0;white-space:normal}
 body[data-area="heroes"] .history-ability-heading small{font-size:10px!important}
 body[data-area="heroes"] .history-change-list{display:grid!important;gap:10px;padding:0!important;margin:0!important;min-width:0}
 body[data-area="heroes"] .history-change-list>li{display:flex!important;align-items:flex-start;flex-wrap:wrap;gap:6px 8px;padding:0!important;line-height:1.8}
 body[data-area="heroes"] .history-change-list>li:before{display:none}
 body[data-area="heroes"] .history-entry>header .history-toggle{position:static;transform:none}
 body[data-area="heroes"] .history-change-copy{flex:1 1 200px;min-width:0;white-space:pre-line;overflow-wrap:anywhere;font-size:13px!important;line-height:1.9!important}
 body[data-area="heroes"] .change-badge{flex:none;width:auto;min-width:34px;height:auto;min-height:22px;padding:1px 5px;margin:0;font-size:10px;line-height:20px}
 body[data-area="heroes"] :is(#history-page,#alchemist-page,#hero-detail-page) .history-rail{display:grid!important;grid-template-columns:minmax(0,1fr);position:static!important;gap:var(--hero-detail-card-gap);min-width:0}
 body[data-area="heroes"] .history-index nav{display:flex;flex-wrap:wrap;gap:7px}
 body[data-area="heroes"] .history-index button{min-height:36px;font-size:11px;padding:6px 8px}
 /* Native sheets provide keyboard focus, Escape dismissal and independent scrolling. */
 .mobile-hero-dialog{box-sizing:border-box;width:100%;max-width:760px;max-height:82dvh;margin:auto 0 0;padding:16px 14px max(20px,env(safe-area-inset-bottom));border:1px solid #997248;border-radius:17px 17px 0 0;background:rgba(17,20,21,.98);color:#eee1d1;box-shadow:0 -15px 60px #0008;overflow:auto;overscroll-behavior:contain;color-scheme:dark;z-index:150}
 .mobile-hero-dialog::backdrop{background:#0009;backdrop-filter:blur(4px)}
 .mobile-hero-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
 .mobile-hero-dialog>header h2{margin:0;font-size:20px;letter-spacing:1px}
 .mobile-hero-dialog>header button{width:40px;height:40px;font-size:26px;border:1px solid #745c3f;border-radius:6px;color:#e8d7c0}
 .mobile-hero-dialog input[type=search]{box-sizing:border-box;width:100%;height:44px;border:1px solid #88704f;border-radius:6px;padding:0 12px;margin-bottom:14px;font-size:16px;background:#0c1216;color:#eee}
 .mobile-hero-dialog>.hero-filter-set{display:flex;flex-wrap:wrap;gap:8px;border:0;padding:0 0 20px;margin:0}
 .mobile-hero-dialog .hero-filter-label{flex-basis:100%;font-size:14px;margin-bottom:2px}
 .mobile-hero-dialog .hero-filter-set button{min-width:58px;height:40px;font-size:13px;padding:0 10px}
 .mobile-filter-done{width:100%;height:42px;border:1px solid #c18a53;border-radius:6px;background:#674027;color:#ffe9cf;font-size:14px}
 .mobile-hero-dialog>nav{display:grid;gap:5px}
 .mobile-hero-dialog>nav button{text-align:left;min-height:46px;padding:10px;border-bottom:1px solid #67513a66;font-size:14px;line-height:1.7}
 body[data-hero-section="matches"] :is(#matches-page,#alchemist-page,#hero-detail-page) .matches-filters .match-search{
  grid-area:1/1;display:flex;position:relative;min-width:0;min-height:34px;height:auto;padding:0 9px 0 37px;
  border:1px solid #887356ab;border-radius:8px;background:#171818eb;
 }
 body[data-hero-section="matches"] .match-search input{width:100%;min-height:31px;height:31px;padding:0;background:transparent;border:0;color:#f2e5cf;font-size:14px}
 body[data-hero-section="matches"] .match-search input::placeholder{color:#bdb3a6}
 body[data-hero-section="matches"] .match-search::before,
 body[data-hero-section="matches"] .match-search::after{
  content:'';position:absolute;top:50%;box-sizing:border-box;pointer-events:none;
 }
 body[data-hero-section="matches"] .match-search::before{
  left:14px;width:14px;height:14px;border:1.5px solid #f2e5cf;border-radius:50%;transform:translateY(-8px);
 }
 body[data-hero-section="matches"] .match-search::after{
  left:24px;width:6px;height:1px;background:#f2e5cf;transform:translateY(5px) rotate(45deg);
 }
 body[data-area="heroes"][data-hero-section="matches"] :is(#matches-page,#alchemist-page,#hero-detail-page) .matches-filters .match-event-filter{
  display:block;grid-area:1/2;position:relative;min-width:0;min-height:34px;padding:0;
  border:1px solid #937550b5;border-radius:8px;background:linear-gradient(135deg,#2b2319,#171715);color:#f5dfba;
 }
 .match-event-filter > span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 body[data-hero-section="matches"] .match-event-filter select{
  appearance:none;display:block;position:absolute;inset:0;box-sizing:border-box;width:100%;min-width:0;height:100%;
  padding:0 24px 0 9px;border:0;background:none;color:inherit;cursor:pointer;text-overflow:ellipsis;
  font-size:12px;font-weight:700;-webkit-tap-highlight-color:transparent;
 }
 .match-event-filter select option{color:#f5dfba;background:#27211b}
 .match-event-filter::after{
  content:'';position:absolute;right:11px;top:50%;width:7px;height:7px;pointer-events:none;
  border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:translateY(-70%) rotate(45deg);
 }
 html[lang="zh-CN"] .match-event-filter:has(option[value=""]:checked)::before{
  content:'赛事';position:absolute;left:9px;top:50%;pointer-events:none;transform:translateY(-50%);font-size:12px;font-weight:700;
 }
 html[lang="zh-CN"] body[data-hero-section="matches"] .match-event-filter:has(option[value=""]:checked) select{color:transparent}
 @media(max-width:350px){body .site-brand{font-size:14px!important}body[data-area="heroes"] #hero-sidebar .hero-identity{gap:5px}body[data-area="heroes"] #hero-sidebar .hero-identity h2{font-size:15px}body[data-view="hero-list"] .hero-list-version{display:none}body[data-area="heroes"] .overview-match-row{grid-template-columns:minmax(0,1fr) 85px!important}}
}
