/* H5 overview for Axe, Alchemist and the shared roster. */
body[data-hero-section="overview"] {
  --overview-ink: #f4e5d2;
  --overview-line: #74523b;
  --overview-rule: #b4896530;
}

body[data-area="heroes"][data-hero-section="overview"] {
  background-image: linear-gradient(180deg, #100d10a6, #100c0aeb), var(--portal-scene-image) !important;
}

body[data-hero-section="overview"] :is(#alchemist-page, #hero-detail-page) :is([data-detail-section="overview"], [data-alchemist-section="overview"]) { padding-top: 0; }
body[data-hero-section="overview"] :is(#overview-page, #alchemist-page, #hero-detail-page) :is(.overview-hero, .alchemist-hero) {
  height: auto;
  min-height: 146px;
  margin: 9px var(--hero-detail-gutter) var(--hero-detail-card-gap);
  border: 1px solid var(--overview-line);
  border-radius: 12px;
  background-position: 65% center;
  box-shadow: none;
}
body[data-hero-section="overview"] :is(#overview-page, #alchemist-page, #hero-detail-page) :is(.overview-hero, .alchemist-hero)::after {
  background: linear-gradient(90deg, #110c0af2, #160e0bd1 28%, #1d100c32 68%, transparent),
    linear-gradient(0deg, #170e0bc9, transparent 56%);
}
body[data-hero-section="overview"] :is(.overview-hero-copy, .alchemist-hero-copy) {
  max-width: 100%;
  padding: 16px 17px 13px !important;
}
body[data-hero-section="overview"] :is(.overview-eyebrow, .alchemist-eyebrow) { display: none; }
body[data-hero-section="overview"] :is(.overview-hero, .alchemist-hero) h1 {
  margin: 0;
  color: var(--overview-ink);
  font-size: 29px !important;
  line-height: 1.12;
  letter-spacing: 1px;
}
body[data-hero-section="overview"] :is(.overview-hero, .alchemist-hero) h1 small {
  margin: 4px 0 0;
  color: #f8e5ce;
  font: 13px/1.2 Georgia, serif;
  letter-spacing: .16em;
}
body[data-hero-section="overview"] .mobile-hero-patch {
  display: inline;
  margin-left: 8px;
  letter-spacing: 0;
}
body[data-hero-section="overview"] .mobile-hero-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
body[data-hero-section="overview"] .mobile-hero-actions .mobile-hero-loadout {
  position: static !important;
  flex: none;
  max-width: none;
}
body[data-hero-section="overview"] :is(#overview-page, #alchemist-page, #hero-detail-page) :is(.overview-tagline, .alchemist-tagline) {
  display: -webkit-box;
  max-width: 86%;
  margin: 7px 0 9px;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  font-size: 13px;
  line-height: 1.4;
  color: #f4e0c8;
}
body[data-hero-section="overview"] :is(#overview-page, #alchemist-page, #hero-detail-page) :is(.overview-roles, .alchemist-roles) {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  max-width: none;
  min-width: 0;
  padding-right: 0;
}
body[data-hero-section="overview"] :is(.overview-roles, .alchemist-roles) span {
  padding: 4px 8px;
  border: 1px solid #9977588a;
  border-radius: 5px;
  background: #201a16b9;
  color: #f4e8d8;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
}
body[data-hero-section="overview"] :is(.overview-roles, .alchemist-roles) span:first-child {
  border-color: #a78950a8;
  background: #302317a6;
  color: #efd175;
}
body[data-hero-section="overview"] :is(#overview-page, #alchemist-page, #hero-detail-page) :is(.overview-version, .alchemist-snapshot)[data-patch] {
  display: none;
  inset: auto 13px 11px auto;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  color: var(--overview-ink);
  font: 700 14px Georgia, serif;
  text-shadow: 0 2px 5px #000;
}
:is(.overview-version, .alchemist-snapshot)[data-patch] > * { display: none; }
:is(.overview-version, .alchemist-snapshot)[data-patch]::after { content: attr(data-patch); }

body[data-hero-section="overview"] :is(#overview-page, #alchemist-page, #hero-detail-page) :is(.overview-grid, .alchemist-overview-grid) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--hero-detail-card-gap);
  margin: 0;
  padding: 0 var(--hero-detail-gutter) 24px;
}
body[data-hero-section="overview"] :is(#overview-page, #alchemist-page, #hero-detail-page) [data-overview-card] {
  min-height: 0;
  padding: var(--overview-card-padding, 8px 15px 5px);
  border: 1px solid var(--overview-line);
  border-radius: 12px;
  background: linear-gradient(155deg, #231b17f7, #181310fa 68%, #201711f7);
  box-shadow: none;
  color: var(--overview-ink);
}
[data-overview-card]:is([data-overview-card="story"], [data-overview-card="abilities"], [data-overview-card="matches"]) {
  --overview-card-padding: 12px 16px 10px;
  --overview-footer-gap: 6px;
}
[data-overview-card]::after { display: none; }
body[data-hero-section="overview"] [data-overview-card] :is(.overview-card-heading, .alchemist-card-heading) {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--overview-ink);
}
[data-overview-card] :is(.overview-card-heading, .alchemist-card-heading) > span:not(:first-child),
[data-overview-card] :is(.overview-card-heading, .alchemist-card-heading) > div > p { display: none; }
body[data-hero-section="overview"] :is(#overview-page, #alchemist-page, #hero-detail-page) [data-overview-card] :is(.overview-card-heading, .alchemist-card-heading) > span:first-child {
  position: relative;
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  border: 0;
  background: none;
  color: #ffdfb9;
  font-size: 0;
}
[data-overview-card="story"] { --overview-icon: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktZmlsZS1lYXJtYXJrLXRleHQtZmlsbCIgdmlld0JveD0iMCAwIDE2IDE2Ij4KICA8cGF0aCBkPSJNOS4yOTMgMEg0YTIgMiAwIDAgMC0yIDJ2MTJhMiAyIDAgMCAwIDIgMmg4YTIgMiAwIDAgMCAyLTJWNC43MDdBMSAxIDAgMCAwIDEzLjcwNyA0TDEwIC4yOTNBMSAxIDAgMCAwIDkuMjkzIDBNOS41IDMuNXYtMmwzIDNoLTJhMSAxIDAgMCAxLTEtMU00LjUgOWEuNS41IDAgMCAxIDAtMWg3YS41LjUgMCAwIDEgMCAxek00IDEwLjVhLjUuNSAwIDAgMSAuNS0uNWg3YS41LjUgMCAwIDEgMCAxaC03YS41LjUgMCAwIDEtLjUtLjVtLjUgMi41YS41LjUgMCAwIDEgMC0xaDRhLjUuNSAwIDAgMSAwIDF6Ii8+Cjwvc3ZnPg=='); }
[data-overview-card="matches"] { --overview-icon: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktZmlsZS1lYXJtYXJrLWJhci1ncmFwaC1maWxsIiB2aWV3Qm94PSIwIDAgMTYgMTYiPgogIDxwYXRoIGQ9Ik05LjI5MyAwSDRhMiAyIDAgMCAwLTIgMnYxMmEyIDIgMCAwIDAgMiAyaDhhMiAyIDAgMCAwIDItMlY0LjcwN0ExIDEgMCAwIDAgMTMuNzA3IDRMMTAgLjI5M0ExIDEgMCAwIDAgOS4yOTMgME05LjUgMy41di0ybDMgM2gtMmExIDEgMCAwIDEtMS0xbS41IDEwdi02YS41LjUgMCAwIDEgLjUtLjVoMWEuNS41IDAgMCAxIC41LjV2NmEuNS41IDAgMCAxLS41LjVoLTFhLjUuNSAwIDAgMS0uNS0uNW0tMi41LjVhLjUuNSAwIDAgMS0uNS0uNXYtNGEuNS41IDAgMCAxIC41LS41aDFhLjUuNSAwIDAgMSAuNS41djRhLjUuNSAwIDAgMS0uNS41em0tMyAwYS41LjUgMCAwIDEtLjUtLjV2LTJhLjUuNSAwIDAgMSAuNS0uNWgxYS41LjUgMCAwIDEgLjUuNXYyYS41LjUgMCAwIDEtLjUuNXoiLz4KPC9zdmc+'); }
[data-overview-card] :is(.overview-card-heading, .alchemist-card-heading) > span:first-child::after {
  content: '';
  position: absolute;
  inset: 2px;
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: var(--overview-icon) center / contain no-repeat;
}
[data-overview-card="abilities"] { --overview-heading-symbol: '⌘'; }
[data-overview-card="history"] { --overview-heading-symbol: '⚙︎'; }
[data-overview-card]:is([data-overview-card="abilities"], [data-overview-card="history"]) :is(.overview-card-heading, .alchemist-card-heading) > span:first-child::after {
  content: var(--overview-heading-symbol);
  width: auto;
  height: auto;
  background: none;
  mask: none;
  font: 18px/1 system-ui, sans-serif;
}
body[data-hero-section="overview"] :is(#overview-page, #alchemist-page, #hero-detail-page) [data-overview-card] h2 {
  margin: 0;
  color: inherit;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0;
}

body[data-hero-section="overview"] :is(#overview-page, #alchemist-page, #hero-detail-page) [data-overview-card="story"] :is(.overview-story-copy, .alchemist-story-copy) {
  max-width: none;
  padding: 0;
  margin: 10px 0 2px;
}
body[data-hero-section="overview"] :is(#overview-page, #alchemist-page, #hero-detail-page) [data-overview-card="story"] :is(.overview-story-copy, .alchemist-story-copy) p {
  margin: 0;
  color: #e9ded1;
  font-size: 14px;
  line-height: 1.65;
  text-shadow: none;
}
body[data-hero-section="overview"] :is(#overview-page, #alchemist-page, #hero-detail-page) [data-overview-card="story"] :is(.overview-story-copy, .alchemist-story-copy) p + p {
  margin-top: 10px;
}
[data-overview-card="story"] :is(.overview-story-stats, .alchemist-story-stats),
[data-overview-card="abilities"] :is(.overview-upgrades, .alchemist-upgrade-list, .overview-innate, .alchemist-innate-line),
.overview-desktop-link, .overview-desktop-date { display: none !important; }
.overview-mobile-link, .overview-mobile-date { display: inline; }

body[data-hero-section="overview"] :is(#overview-page, #alchemist-page, #hero-detail-page) [data-overview-card] :is(.overview-more, .alchemist-more) {
  display: inline-flex;
  align-items: center;
  align-self: flex-end;
  min-height: 23px;
  padding: 0;
  margin: var(--overview-footer-gap, 1px) 0 0;
  color: #eed0ad;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0;
}
[data-overview-card] :is(.overview-more, .alchemist-more) .overview-mobile-link { font: inherit; margin: 0; }
[data-overview-card] :is(.overview-more, .alchemist-more) .overview-mobile-link > span { margin-left: 4px; font-size: 16px; line-height: 1; }

body[data-hero-section="overview"] [data-overview-card] :is(.overview-ability-list, .alchemist-ability-list) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 5px;
  margin: 13px 0 5px;
  padding: 0;
  border: 0;
}
body[data-hero-section="overview"] :is(#overview-page, #alchemist-page, #hero-detail-page) [data-overview-card] :is(.overview-ability-list, .alchemist-ability-list) article {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
}
body[data-hero-section="overview"] [data-overview-card] :is(.overview-ability-list, .alchemist-ability-list) img {
  width: 54px;
  max-width: 100%;
  height: 46px;
  object-fit: cover;
  border: 1px solid #997652b0;
  border-radius: 5px;
}
[data-overview-card] :is(.overview-ability-list, .alchemist-ability-list) article span {
  max-width: 100%;
  color: #f6eadc;
  font-size: 12px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}
body[data-hero-section="overview"] :is(#overview-page, #alchemist-page, #hero-detail-page) [data-overview-card="abilities"] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
[data-overview-card="abilities"] > :is(header, .overview-ability-list, .alchemist-ability-list) { grid-column: 1 / -1; }
[data-overview-card="abilities"] .overview-mobile-upgrades {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 30px;
  color: #f2dec5;
}
[data-overview-card="abilities"] > :is(.overview-ability-list, .alchemist-ability-list) {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--overview-rule);
}
[data-overview-card="abilities"] .overview-mobile-upgrades a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 24px;
  padding: 0 7px;
  font-size: 11px;
  line-height: 1.15;
}
[data-overview-card="abilities"] .overview-mobile-upgrades a:first-child { padding-left: 0; }
[data-overview-card="abilities"] .overview-mobile-upgrades a + a { border-left: 1px solid var(--overview-rule); }
[data-overview-card="abilities"] .overview-mobile-upgrades a::after { content: '›'; font: 16px/1 Georgia, serif; }
[data-overview-card="abilities"] > :is(.overview-more, .alchemist-more) { justify-self: end; align-self: center; margin-top: 0; text-align: right; }

[data-overview-card="matches"] .overview-match-head,
[data-overview-card="matches"] .overview-match-row:nth-of-type(n+3) { display: none; }
[data-overview-card="matches"] .overview-match-list { margin: 7px 0 0; padding: 0; border: 0; }
body[data-hero-section="overview"] [data-overview-card="matches"] .overview-match-row {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 8px;
  min-height: 0;
  padding: 8px 1px;
  border-color: var(--overview-rule);
  border-radius: 4px;
}
[data-overview-card="matches"] .overview-match-context {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
[data-overview-card="matches"] .overview-match-context :is(time, small) {
  color: #e5d6c6;
  font: 11px/1.15 Georgia, 'Noto Serif SC', serif;
  white-space: nowrap;
}
[data-overview-card="matches"] .overview-match-context small { overflow: hidden; text-overflow: ellipsis; }
[data-overview-card="matches"] .overview-match-context small::before { content: '·'; margin-right: 6px; }
[data-overview-card="matches"] .overview-versus {
  grid-area: 2 / 1;
  grid-template-columns: minmax(0, max-content) max-content minmax(0, max-content);
  justify-content: start;
  gap: 6px;
}
[data-overview-card="matches"] .overview-team { justify-content: flex-start; gap: 5px; }
[data-overview-card="matches"] .overview-team.left { flex-direction: row-reverse; }
[data-overview-card="matches"] .overview-team img { width: 18px; height: 18px; flex: 0 0 18px; }
[data-overview-card="matches"] .overview-team strong { max-width: none; font: 700 12px/1.2 Georgia, 'Noto Serif SC', serif; }
[data-overview-card="matches"] .overview-versus > i { color: #b5a596; font: 11px Georgia, serif; }
[data-overview-card="matches"] .overview-match-stats {
  grid-area: 1 / 2 / 3 / 3;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: end;
  gap: 5px;
  padding: 0;
  border: 0;
  background: none;
}
[data-overview-card="matches"] :is(.overview-score, .overview-kda) {
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: #f7eade;
  font: 700 13px/1.25 Georgia, 'Noto Serif SC', serif;
}
[data-overview-card="matches"] .overview-score b {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  padding: 1px 3px;
  border-radius: 3px;
  font-size: 11px;
}
[data-overview-card="matches"] .overview-score.win b { background: #234817; color: #b0e475; }
[data-overview-card="matches"] .overview-score.loss b { background: #5f251d; color: #ffa095; }
[data-overview-card="matches"] .overview-score strong i { padding: 0 1px; opacity: 1; }
[data-overview-card="matches"] .overview-kda { font-size: 11px; font-weight: 400; }
[data-overview-card="matches"] .overview-kda::before { content: 'K/D/A'; margin-right: 5px; color: #ccb7a3; }
[data-overview-card="matches"] .overview-kda :is(b, i) { color: inherit; padding: 0; }

[data-overview-card="history"] :is(.overview-history-list, .alchemist-overview-history) {
  position: relative;
  margin-top: 5px;
  padding-left: 12px;
}
[data-overview-card="history"] :is(.overview-history-list, .alchemist-overview-history)::before {
  content: '';
  position: absolute;
  inset: 17px auto 17px 3px;
  width: 1px;
  background: #9f795b9e;
}
[data-overview-card="history"] :is(.overview-history-row, .alchemist-overview-row) {
  position: relative;
  grid-template-columns: 60px 28px minmax(0, 1fr);
  min-height: 46px;
  gap: 7px;
  padding: 5px 0 5px 7px;
  border-color: var(--overview-rule);
}
[data-overview-card="history"] .overview-timeline-mark { left: -12px; width: 8px; height: 8px; }
[data-overview-card="history"] :is(.overview-history-row, .overview-mobile-history) > img {
  width: 28px;
  height: 28px;
  border: 1px solid #9c786c80;
  border-radius: 4px;
}
[data-overview-card="history"] .overview-mobile-history { display: contents; }
[data-overview-card="history"] :is(.overview-change-type, .overview-desktop-history) { display: none; }
[data-overview-card="history"] .overview-patch strong { font-size: 13px; }
[data-overview-card="history"] .overview-patch time { margin-top: 3px; color: #cfb6a1; }
[data-overview-card="history"] .overview-change small { margin-top: 3px; color: #cfb6a1; }

@media (max-width: 350px) {
  body[data-hero-section="overview"] :is(.overview-hero-copy, .alchemist-hero-copy) { padding-inline: 12px !important; }
  body[data-hero-section="overview"] :is(.overview-roles, .alchemist-roles) span { padding-inline: 5px; }
  [data-overview-card="abilities"] .overview-mobile-upgrades a { padding-inline: 5px; }
}
