@font-face {
  font-family: 'Semplicita Pro';
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/semplicita-pro-400.woff2) format('woff2');
}

@font-face {
  font-family: 'Semplicita Pro';
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/semplicita-pro-700.woff2) format('woff2');
}

@font-face {
  font-family: 'Blizz Quadrata';
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/blizz-quadrata.woff2) format('woff2');
}

@font-face {
  font-family: 'Open Sans';
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/open-sans-400.woff) format('woff');
}

@font-face {
  font-family: 'Open Sans';
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/open-sans-700.woff) format('woff');
}

:root {
  --gutter: 20px;
  --page: #170e09;
  --panel: rgba(23, 14, 9, 0.82);
  --panel-line: #504137;
  --ink: #211510;
  --white: #ffffff;
  --beige: #ebdec2;
  --light-beige: #f3eee2;
  --dark-beige: #b1997f;
  --gold: #f8b700;
  --green: #1eff00;
  --alliance: #3b82d6;
  --horde: #d8352a;
  --font-heading: 'Semplicita Pro', 'Open Sans', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --font-title: 'Blizz Quadrata', Georgia, 'Times New Roman', serif;
  --text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --class-color: var(--beige);
}

.Profile {
  --page: #000000;
  --panel: rgba(255, 255, 255, 0.05);
  --panel-line: rgba(255, 255, 255, 0.2);
  --ink: #111111;
  --beige: #e6e6e6;
  --light-beige: #ffffff;
  --dark-beige: #9d9d9d;
  background: var(--page);
}

body.is-profile { background: #000000; }

.class-DEATHKNIGHT { --class-color: #c41e3b; }
.class-DEMONHUNTER { --class-color: #a330c9; }
.class-DRUID { --class-color: #ff7c0a; }
.class-EVOKER { --class-color: #33937f; }
.class-HUNTER { --class-color: #aad372; }
.class-MAGE { --class-color: #68ccef; }
.class-MONK { --class-color: #00ffba; }
.class-PALADIN { --class-color: #f48cba; }
.class-PRIEST { --class-color: #f0ebe0; }
.class-ROGUE { --class-color: #fff468; }
.class-SHAMAN { --class-color: #2359ff; }
.class-WARLOCK { --class-color: #9382c9; }
.class-WARRIOR { --class-color: #c69b6d; }

.quality-POOR { --quality: #9d9d9d; }
.quality-COMMON { --quality: #ffffff; }
.quality-UNCOMMON { --quality: #1eff00; }
.quality-RARE { --quality: #0081ff; }
.quality-EPIC { --quality: #c600ff; }
.quality-LEGENDARY { --quality: #ff8000; }
.quality-ARTIFACT { --quality: #e5cc80; }
.quality-HEIRLOOM { --quality: #00ccff; }

.faction-ALLIANCE { --faction: var(--alliance); }
.faction-HORDE { --faction: var(--horde); }

@media (min-width: 980px) { :root { --gutter: 60px; } }

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--page);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

body { display: flex; flex-direction: column; min-height: 100vh; }

main { flex: 1; }

.SiteFooter {
  position: relative;
  min-height: 84px;
  margin-top: 84px;
  background: rgba(13, 8, 5, 0.92);
  border-top: 1px solid #504137;
}

.SiteFooter-links { position: absolute; left: var(--gutter); top: 50%; display: flex; align-items: center; gap: 18px; transform: translateY(-50%); }

.SiteFooter-links[hidden] { display: none; }

.GameMaster {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13px;
  color: #00aeff;
  cursor: pointer;
}

.GameMaster:hover, .GameMaster:focus-visible { color: var(--white); outline: none; }

.GameMaster-icon { height: 14px; }

.SiteFooter-logo {
  position: absolute;
  left: 50%;
  bottom: 24px;
  height: 124px;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8));
}

.SiteHeader {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 10px var(--gutter);
  background: rgba(13, 8, 5, 0.92);
  border-bottom: 1px solid var(--panel-line);
  backdrop-filter: blur(6px);
}

.SiteHeader-title { display: flex; align-items: baseline; gap: 12px; white-space: nowrap; }

.SiteHeader-game {
  font-family: var(--font-title);
  font-size: 22px;
  color: var(--gold);
  letter-spacing: 0.02em;
  text-shadow: var(--text-shadow);
}

.SiteHeader-section {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--dark-beige);
}

.SiteHeader-logo { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); line-height: 0; }

.SiteHeader-logo img { height: 88px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8)); transition: filter 0.25s var(--ease); }

.SiteHeader-logo:hover img { filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8)) brightness(1.15); }

.SiteHeader-refreshed { color: var(--dark-beige); font-size: 12px; white-space: nowrap; }

.Notice {
  margin: 80px auto;
  max-width: 520px;
  padding: 0 24px;
  text-align: center;
  color: var(--dark-beige);
  font-family: var(--font-heading);
  font-size: 18px;
}

.Roster {
  max-width: 1500px;
  margin: 0 auto;
  padding: 52px var(--gutter) 64px;
}

.Roster-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }

.Roster-sort {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-beige);
}

.Roster-sortSelect {
  appearance: none;
  padding: 6px 12px;
  border: 1px solid var(--panel-line);
  border-radius: 3px;
  background: #0d0805;
  color: var(--beige);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.Roster-sortDirection {
  width: 34px;
  align-self: stretch;
  padding: 0;
  border: 1px solid var(--panel-line);
  border-radius: 3px;
  background: #0d0805;
  color: var(--gold);
  font-size: 11px;
  cursor: pointer;
}

.Roster-sortSelect:hover, .Roster-sortSelect:focus-visible,
.Roster-sortDirection:hover, .Roster-sortDirection:focus-visible { border-color: var(--gold); outline: none; }

.Roster-summary {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-beige);
}

.Page { max-width: 1500px; margin: 0 auto; padding: 52px var(--gutter) 64px; }

.Page-title { margin: 0 0 20px; font-family: var(--font-heading); font-weight: 700; font-size: 30px; color: var(--white); text-shadow: var(--text-shadow); }

.Page .Section-note { margin-top: 0; }

.Page-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }

.Page-bar .Section-note { margin: 0; }

.Button {
  padding: 7px 16px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  background: #0d0805;
  color: var(--gold);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.Button:hover, .Button:focus-visible { background: var(--gold); color: #0d0805; outline: none; }
.Button:disabled { opacity: 0.5; cursor: default; }
.Button--quiet { border-color: var(--panel-line); color: var(--beige); }
.Button--quiet:hover, .Button--quiet:focus-visible { border-color: var(--beige); background: #0d0805; color: var(--white); }
.Button--small { padding: 4px 10px; font-size: 11px; }
.Button--danger, .Button--danger:hover, .Button--danger:focus-visible { border-color: #ff6a5c; background: #ff6a5c; color: #0d0805; }

.Form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }

.Field {
  flex: 1 1 320px;
  min-width: 0;
  padding: 7px 10px;
  border: 1px solid var(--panel-line);
  border-radius: 3px;
  background: #0d0805;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
}

.Field--short { flex: 0 1 200px; }
.Field:focus-visible { border-color: var(--gold); outline: none; }

.Form--narrow { max-width: 460px; }

.Form-message { flex-basis: 100%; font-size: 13px; color: var(--dark-beige); }
.Form-message:empty { display: none; }
.Form-message--error { color: #ff6a5c; }

.Table-action { text-align: right; }
.Table-action .Button + .Button { margin-left: 8px; }

.Portrait {
  display: inline-block;
  flex: none;
  width: 40px;
  height: 40px;
  border: 2px solid var(--class-color);
  border-radius: 50%;
  background: var(--ink) center / cover no-repeat;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s var(--ease);
}

.Portrait:hover, .Portrait:focus-visible { transform: scale(1.15); outline: none; }
.Portrait--small { width: 26px; height: 26px; border-width: 1px; }
.Portrait--large { width: 64px; height: 64px; }

.Page .Section { margin-top: 34px; padding-top: 30px; }
.Page-title + .Section { margin-top: 0; padding-top: 0; border-top: 0; }

.Race { margin-bottom: 30px; padding: 0 22px; }
.Race .Panel-title { margin-left: -22px; }

.Race-field { position: relative; }

.Race-runner { position: absolute; display: flex; flex-direction: column; align-items: center; width: 44px; margin-left: -22px; }
.Race-runner:hover { z-index: 1; }

.Race-value {
  position: absolute;
  right: -4px;
  bottom: -3px;
  min-width: 18px;
  padding: 0 3px;
  border: 1px solid var(--panel-line);
  border-radius: 8px;
  background: #0d0805;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  pointer-events: none;
}

.Race-track { position: relative; height: 34px; margin-top: 8px; border-top: 3px solid var(--panel-line); }

.Race-tick { position: absolute; top: 0; padding-top: 10px; transform: translateX(-50%); font-size: 12px; color: var(--dark-beige); }
.Race-tick::before { content: ''; position: absolute; top: 0; left: 50%; width: 1px; height: 7px; background: var(--dark-beige); }

.Feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 22px 40px; }

.Feed-event { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; color: var(--beige); }

.Feed-name { font-family: var(--font-heading); font-weight: 700; color: var(--class-color); }
.Feed-name:hover { text-decoration: underline; }

.Award-winner { display: flex; align-items: center; gap: 14px; }
.Award-name { font-family: var(--font-heading); font-weight: 700; font-size: 17px; color: var(--class-color); }
.Award-name:hover { text-decoration: underline; }
.Award-owner { font-size: 13px; color: var(--beige); }
.Award-gain { margin-top: 2px; font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--gold); }
.Crowns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 22px; }

.Crowns-holder { display: flex; align-items: center; gap: 8px; }

.Crowns-count { font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: var(--gold); }

.Trophies { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.Trophy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  border: 1px solid var(--panel-line);
  border-radius: 4px;
  background: #000;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.Trophy:hover, .Trophy:focus-visible {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7), 0 0 18px -6px var(--gold);
  outline: none;
}

.Trophy:hover .Tile-render { transform: scale(1.05); }

.Trophy::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(13, 8, 5, 0.9) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 48%, rgba(13, 8, 5, 0.97) 80%);
  pointer-events: none;
}

.Trophy-top, .Trophy-body { position: relative; z-index: 1; padding: 12px 14px; text-align: center; text-shadow: var(--text-shadow); }

.Trophy-title { font-family: var(--font-title); font-size: 19px; line-height: 1.15; color: var(--gold); }

.Trophy-stat { margin-top: 3px; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--beige); }

.Trophy-value { font-family: var(--font-heading); font-weight: 700; font-size: 30px; line-height: 1; color: var(--white); }

.Trophy-name { margin-top: 4px; font-family: var(--font-heading); font-weight: 700; font-size: 17px; color: var(--class-color); }

.Trophy-owner { font-size: 12px; color: var(--beige); }

.Trophy-second { margin-top: 6px; font-size: 11px; color: var(--dark-beige); }

.Award-empty { margin: 0; font-size: 13px; color: var(--dark-beige); }

.Table--milestones th:not(:first-child), .Table--milestones .Milestone { text-align: center; }

.Milestone { color: #8fd18a; font-weight: 700; }
.Milestone--open { color: rgba(177, 153, 127, 0.4); }
.Milestone--first { color: var(--gold); }
.Milestone-date { display: block; font-size: 11px; font-weight: 400; color: inherit; opacity: 0.85; }
.Milestone-who { display: flex; align-items: center; gap: 10px; }

.Filters { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-bottom: 18px; }

.Table-wrap { overflow-x: auto; }

.Table { width: 100%; border-collapse: collapse; font-size: 14px; }

.Table th {
  padding: 8px 12px;
  border-bottom: 1px solid var(--panel-line);
  text-align: left;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark-beige);
}

.Table td { padding: 9px 12px; border-bottom: 1px solid rgba(80, 65, 55, 0.5); color: var(--beige); white-space: nowrap; }

.Table tr:last-child td { border-bottom: 0; }

.Table-pending { color: var(--gold); }

.Notice-inline { margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--gold); border-radius: 3px; color: var(--beige); font-size: 14px; }

.Table-ok { color: #8fd18a; }
.Table-warning { color: #ff6a5c; }

.Roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}

.Tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  border: 1px solid var(--panel-line);
  border-radius: 4px;
  background: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.Tile:hover, .Tile:focus-visible {
  transform: translateY(-4px);
  border-color: var(--class-color);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7), 0 0 18px -6px var(--class-color);
  outline: none;
}

.Tile-bg, .Tile-shadow, .Tile-render { position: absolute; background: center / 100% 100% no-repeat; }

.Tile-bg { left: -106.58%; top: -59.91%; width: 313.15%; height: 173.39%; }

.Tile-shadow { left: 24.43%; top: 59.18%; width: 51.15%; height: 23.77%; }

.Tile-render {
  left: -54.38%;
  top: -17.03%;
  width: 208.77%;
  height: 111.87%;
  transform-origin: 50% 60%;
  transition: transform 0.4s var(--ease);
}

.Tile:hover .Tile-render { transform: scale(1.05); }

.Tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 50%, rgba(13, 8, 5, 0.96) 86%);
  pointer-events: none;
}

.Tile--pending { border-style: dashed; background: rgba(13, 8, 5, 0.6); box-shadow: none; }
.Tile--pending:hover { transform: none; border-color: var(--panel-line); box-shadow: none; }
.Tile--pending::after { display: none; }
.Tile--pending .Tile-name { color: var(--dark-beige); }
.Tile--pending .Tile-identity { margin-bottom: 10px; }
.Tile--pending .Tile-body { border-bottom-color: transparent; }

.Tile-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 14px;
}

.Tile-identityMark { display: flex; align-items: center; gap: 10px; min-width: 0; }

.Tile-faction { flex: none; height: 46px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8)); }

.Tile-owner {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light-beige);
  text-shadow: var(--text-shadow);
}

.Tile-badges { display: flex; flex-direction: column; gap: 6px; }

.Tile-level {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 46px;
  padding: 4px 8px 5px;
  background: rgba(13, 8, 5, 0.8);
  border: 1px solid var(--panel-line);
  border-radius: 3px;
  line-height: 1;
}

.Tile-levelValue { font-family: var(--font-heading); font-weight: 700; font-size: 24px; color: var(--gold); }

.Tile-level--item .Tile-levelValue { font-size: 18px; color: var(--beige); }

.Tile-levelLabel { margin-top: 3px; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dark-beige); }

.Tile-body { position: relative; z-index: 1; padding: 0 16px 14px; border-bottom: 3px solid var(--faction, var(--panel-line)); }

.Tile-name {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.1;
  color: var(--class-color);
  text-shadow: var(--text-shadow);
}


.Tile-identity { margin-top: 4px; color: var(--beige); font-size: 14px; text-shadow: var(--text-shadow); }

.Tile-heading { display: flex; align-items: stretch; gap: 10px; margin-bottom: 10px; }

.Tile-title { min-width: 0; }

.Tile-class { flex: none; align-self: center; width: 55px; height: 55px; border: 1px solid var(--class-color); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); }

.Tile-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; }

.Tile-professions { display: flex; gap: 10px; flex-wrap: wrap; }

.Tile-profession { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--beige); }

.Tile-stale { color: var(--gold); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; }

.Badge {
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: 3px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.Badge--pvp { color: #ff6a5c; }
.Badge--pve { color: #8fd18a; }

.GameIcon {
  position: relative;
  display: inline-block;
  flex: none;
  width: 48px;
  aspect-ratio: 1;
  background: #000 center / cover no-repeat;
  border: 1px solid var(--quality, var(--panel-line));
  box-shadow: 0 0 7px -4px rgba(255, 255, 255, 0.25);
  transition: box-shadow 0.25s var(--ease);
}

.GameIcon--small { width: 22px; }
.GameIcon--medium { width: 36px; }
.GameIcon--bare { width: 28px; border: 0; background-color: transparent; box-shadow: none; }
.GameIcon--empty { background-color: rgba(0, 0, 0, 0.45); border-style: dashed; opacity: 0.6; }

.Profile { position: relative; overflow: hidden; --scale: 0.56; --lift: 225px; --gear-top: 192px; }

.Profile-bg, .Profile-shadow, .Profile-render {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: -1;
}

.Profile-bg {
  top: calc(0px - var(--lift) - var(--gear-top));
  width: calc(2400px * var(--scale));
  height: calc(1860px * var(--scale));
  mask-image: linear-gradient(0deg, transparent, #000 20%);
}

.Profile-bg--page { top: calc(0px - var(--lift)); z-index: 0; opacity: 0.25; }

.Profile-shadow {
  top: calc(1277.5px * var(--scale) - var(--lift) - var(--gear-top));
  width: calc(392px * var(--scale));
  height: calc(255px * var(--scale));
}

.Profile-render {
  top: calc(460px * var(--scale) - var(--lift) - var(--gear-top));
  width: calc(1600px * var(--scale));
  height: calc(1200px * var(--scale));
}

@media (min-width: 540px) { .Profile { --scale: 0.73; --lift: 415px; --gear-top: 171px; } }
@media (min-width: 720px) { .Profile { --scale: 0.82; --lift: 435px; --gear-top: 226px; } }
@media (min-width: 980px) { .Profile { --scale: 1; --lift: 424px; --gear-top: 309px; } }
@media (min-width: 1280px) { .Profile { --lift: 416px; } }
@media (min-width: 1450px) { .Profile { --lift: 401px; } }

.Profile-inner { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 60px var(--gutter) 72px; min-height: 70vh; }

.CharacterHeader { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 0; padding-bottom: 14px; }

.CharacterHeader-character { display: flex; align-items: center; gap: 14px; }

.CharacterHeader-logo { width: 77.5px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8)); }

.CharacterHeader-nameTitle { padding-right: 20px; margin-right: 20px; border-right: 1px solid rgba(255, 255, 255, 0.2); }

.CharacterHeader-name {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.2;
  color: var(--class-color);
  text-shadow: var(--text-shadow);
}

.CharacterHeader-title {
  font-family: var(--font-heading);
  font-size: 17px;
  line-height: 1.3;
  color: var(--white);
  text-shadow: var(--text-shadow);
}

.CharacterHeader-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: var(--text-shadow);
}

.CharacterHeader-icon { width: 20px; height: 20px; }

.CharacterHeader-details { display: flex; flex-wrap: wrap; gap: 0 6px; font-size: 14px; color: var(--white); text-shadow: var(--text-shadow); }

.CharacterHeader-guild { color: var(--gold); }
.CharacterHeader-guild:hover { color: var(--white); }

.CharacterHeader-link { margin-left: auto; align-self: flex-start; text-shadow: var(--text-shadow); }

.HorizontalNav { display: flex; flex-wrap: wrap; border-bottom: 1px solid rgba(255, 255, 255, 0.25); }

.HorizontalNav-link { padding: 0 15px; text-transform: uppercase; }
.HorizontalNav-link:first-of-type { padding-left: 0; }

.HorizontalNav-item {
  display: block;
  padding-bottom: 8px;
  margin-bottom: -2px;
  border-bottom: 3px solid transparent;
  font-size: 14px;
  color: var(--gold);
  text-shadow: var(--text-shadow);
}

.HorizontalNav-link:hover .HorizontalNav-item, .HorizontalNav-link:focus-visible .HorizontalNav-item { color: var(--white); }
.PageNav { justify-content: space-between; margin-bottom: 26px; border-bottom-color: var(--panel-line); }
.PageNav .HorizontalNav-link, .PageNav .HorizontalNav-link:first-of-type { padding: 0; }
.PageNav .HorizontalNav-item { font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.14em; }

.HorizontalNav-link.is-active .HorizontalNav-item { color: var(--white); border-bottom-color: var(--gold); }
.HorizontalNav-link:focus-visible { outline: none; }

.ProfilePage-header + .Section { margin-top: 0; border-top: 0; padding-top: 30px; }
.ProfilePage-header + .Section-note { margin: 30px 0 0; }
.Section .Section-note { margin: -12px 0 18px; }

.Link { color: var(--gold); font-size: 13px; }
.Link:hover { color: var(--white); }

.SiteHeader-tools { display: flex; align-items: center; gap: 22px; }

.Toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  color: var(--white);
}

.Toggle-track { position: relative; width: 32px; height: 16px; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 9px; background: #1a1a1a; }

.Toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}

.Toggle[aria-checked='true'] .Toggle-knob { transform: translateX(16px); background: var(--gold); }
.Toggle[aria-checked='true'] .Toggle-label--hd { color: var(--gold); }
.Toggle:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.CharacterProfile { position: relative; height: 500px; margin-top: 26px; }

@media (min-width: 540px) { .CharacterProfile { height: 600px; } }
@media (min-width: 720px) { .CharacterProfile { height: 640px; } }
@media (min-width: 980px) { .CharacterProfile { height: 840px; } }

.CharacterProfile-gear { position: absolute; display: flex; flex-direction: column; gap: 10px; }
.CharacterProfile-gear--left { top: 0; left: 0; max-width: 36%; }
.CharacterProfile-gear--right { top: 0; right: 0; max-width: 36%; }
.CharacterProfile-gear--bottom { bottom: 45px; left: 0; width: 100%; flex-direction: row; justify-content: center; gap: 48px; }

@media (min-width: 980px) {
  .CharacterProfile-gear { gap: 20px; }
  .CharacterProfile-item .GameIcon { width: 56px; }
}

.CharacterProfile-item { display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer; }
.CharacterProfile-item--empty { cursor: default; }
.CharacterProfile-gear--right .CharacterProfile-item { flex-direction: row-reverse; text-align: right; }

.CharacterProfile-item:hover .GameIcon { box-shadow: 0 0 7px 5px color-mix(in srgb, var(--quality, #fff) 35%, transparent); }

.CharacterProfile-itemDetails { min-width: 0; text-shadow: var(--text-shadow); }

.CharacterProfile-itemName {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--quality, var(--dark-beige));
}

.CharacterProfile-itemLevel { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--beige); }
.CharacterProfile-item--empty .CharacterProfile-itemName { font-weight: 400; color: rgba(235, 222, 194, 0.45); }

.Section { margin-top: 28px; padding-top: 44px; border-top: 1px solid var(--panel-line); }
.CharacterProfile + .Section { margin-top: 34px; }

.Section-title {
  margin: 0 0 22px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--white);
}

.Section-note { margin: -10px 0 18px; color: var(--dark-beige); font-size: 13px; }

.Overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 16px; padding-bottom: 20px; }

.Overview-stat { display: flex; align-items: center; gap: 14px; min-width: 0; }

.StatIcon { flex: none; width: 54px; height: 54px; }

.Overview-value { font-size: 13px; line-height: 1.3; }

.Overview-name { font-weight: 700; font-size: 13px; text-transform: uppercase; color: var(--white); }

.Specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.Spec { display: flex; flex-direction: column; padding: 20px 24px; border: 1px solid var(--panel-line); background: var(--panel); }

.Spec-head { display: flex; align-items: center; gap: 12px; min-height: 60px; }

.Spec--unused .Spec-name, .Spec--unused .Spec-points { color: var(--dark-beige); }

.Spec-active { font-size: 12px; text-transform: uppercase; color: var(--green); }

.Spec-name { font-size: 15px; color: var(--gold); }

.Spec-points { font-size: 12px; color: var(--gold); }

.Spec-talents { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--panel-line); }

.GameIcon--talent { width: 40px; }

.Talent { position: relative; display: inline-flex; cursor: default; }
.Talent .GameIcon { border-color: #40bf40; }
.Talent--full .GameIcon { border-color: var(--gold); }

.Talent-rank {
  position: absolute;
  right: -7px;
  bottom: -6px;
  min-width: 15px;
  padding: 0 3px;
  border: 1px solid var(--panel-line);
  background: #000;
  color: #40bf40;
  font-size: 10px;
  font-weight: 700;
  line-height: 13px;
  text-align: center;
}

.Talent--full .Talent-rank { color: var(--gold); }

.Talent--untaken .GameIcon { border-color: rgba(255, 255, 255, 0.25); filter: grayscale(1) brightness(0.55); }
.Talent--untaken .Talent-rank { color: #8a8a8a; }
.Talent--untaken:hover .GameIcon { filter: grayscale(0.4) brightness(0.9); }

.TalentTree {
  flex: 1;
  margin: 16px -24px -20px;
  padding: 18px 0;
  border-top: 1px solid var(--panel-line);
  background: #000 center / cover no-repeat;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

.TalentTree-grid { position: relative; width: 224px; height: 392px; margin: 0 auto; }

.TalentTree-lines { position: absolute; inset: 0; width: 100%; height: 100%; }

.TalentTree-line { stroke: rgba(255, 255, 255, 0.28); stroke-width: 3; }
.TalentTree-line.is-lit { stroke: var(--gold); }

.TalentTree-node { position: absolute; width: 40px; height: 40px; }

.TalentTree-empty { display: block; width: 100%; height: 100%; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(0, 0, 0, 0.55); }

.Professions { display: grid; grid-template-columns: 2fr 1fr; gap: 0 20px; }

.Profession { margin-bottom: 26px; }

.Profession-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 15px; color: var(--beige); }

.Progressbar { position: relative; min-height: 28px; border: 1px solid var(--panel-line); background-color: #181818; box-shadow: inset 0 0 16px #000; }

.Progressbar-progress { position: absolute; top: 0; bottom: 0; left: 0; background: linear-gradient(to right, #074a00 0%, #0f9601 100%); }

.Progressbar-content { position: relative; padding: 4px 14px; font-weight: 700; font-size: 12px; color: var(--white); text-shadow: var(--text-shadow); }

.Progressbar--EXALTED > .Progressbar-progress { background: linear-gradient(to right, #196855 0%, #28a687 100%); }
.Progressbar--NEUTRAL > .Progressbar-progress { background: linear-gradient(to right, #a17f02 0%, #edba03 100%); }
.Progressbar--UNFRIENDLY > .Progressbar-progress,
.Progressbar--HOSTILE > .Progressbar-progress,
.Progressbar--HATED > .Progressbar-progress { background: linear-gradient(to right, #5d1212 0%, #9d1e1e 100%); }

.Reputations { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 18px 20px; }

.Reputation-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: 15px; color: var(--beige); }

.Reputation-standing { color: var(--gold); }

.Collection { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }

.Collection-item { margin: 0; border: 1px solid var(--panel-line); background: var(--panel); }

.Collection-image { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; background: #000; }

.Collection-caption { display: flex; flex-direction: column; padding: 8px 10px; }

.Collection-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--quality, var(--white)); }

.Collection-detail { font-size: 12px; color: var(--dark-beige); }

.Timeline { position: relative; padding: 18px 0 6px; }

.Timeline-selected {
  margin-bottom: 14px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  color: var(--gold);
  text-shadow: var(--text-shadow);
}

.Timeline-slider { display: block; width: 100%; height: 22px; margin: 0; background: none; accent-color: var(--gold); cursor: pointer; appearance: none; }
.Timeline-slider:disabled { cursor: default; opacity: 0.7; }
.Timeline-slider:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

.Timeline-slider::-webkit-slider-runnable-track { height: 6px; border: 1px solid var(--panel-line); border-radius: 3px; background: #181818; }
.Timeline-slider::-moz-range-track { height: 6px; border: 1px solid var(--panel-line); border-radius: 3px; background: #181818; }

.Timeline-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -8px;
  border: 2px solid #000;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(248, 183, 0, 0.6);
}

.Timeline-slider::-moz-range-thumb { width: 16px; height: 16px; border: 2px solid #000; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(248, 183, 0, 0.6); }

.Timeline-ends { display: flex; justify-content: space-between; gap: 16px; margin-top: 8px; font-size: 12px; color: var(--dark-beige); }

.Timeline + div > .Section:first-child { margin-top: 20px; border-top: 0; padding-top: 16px; }

.Change { margin-left: 8px; font-family: var(--font-body); font-size: 12px; font-weight: 700; }
.Change--up { color: var(--green); }
.Change--down { color: #ff6a5c; }

.Figures { display: flex; flex-wrap: wrap; gap: 20px 64px; }

.Figure-value { font-family: var(--font-heading); font-weight: 700; font-size: 30px; line-height: 1.1; color: var(--gold); }

.Figure-name { font-weight: 700; font-size: 13px; text-transform: uppercase; color: var(--white); }

.Panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.Panels--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); }

.Panel { padding: 16px 18px; background: var(--panel); border: 1px solid var(--panel-line); }

.Panel-title { margin: 0 0 10px; font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark-beige); }

.CharacterStat { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.CharacterStat-name { font-weight: 700; font-size: 12px; text-transform: uppercase; color: var(--white); }
.CharacterStat-value { font-size: 13px; color: var(--beige); font-variant-numeric: tabular-nums; }

.Chart { width: 100%; height: auto; display: block; }
.Chart-grid { stroke: rgba(235, 222, 194, 0.12); stroke-width: 1; }
.Chart-axis { fill: var(--dark-beige); font-family: var(--font-body); font-size: 11px; }
.Chart-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.Chart-series { transition: opacity 0.2s var(--ease); }
.Chart-series.is-dimmed { opacity: 0.15; }
.Chart-point { cursor: default; }
.Chart-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.Portrait--legend { width: 30px; height: 30px; }
.Chart-label { font-family: var(--font-heading); font-weight: 700; font-size: 11px; }
.Chart-value { font-family: var(--font-heading); font-weight: 700; font-size: 26px; color: var(--gold); line-height: 1; }
.Chart-delta { margin-left: 8px; font-size: 12px; color: var(--dark-beige); }

.GameTooltip {
  position: fixed;
  z-index: 10;
  width: max-content;
  max-width: 340px;
  padding: 14px 16px;
  color: var(--white);
  font-size: 13px;
  line-height: 1.45;
  background: rgba(17, 17, 17, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  box-shadow: #000 0 0 10px, inset 0 1px 0 rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.GameTooltip-name { font-family: var(--font-heading); font-weight: 700; font-size: 16px; color: var(--quality, #fff); }
.GameTooltip.is-pinned { pointer-events: auto; }
.GameTooltip-link { display: inline-block; margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.GameTooltip:not(.is-pinned) .GameTooltip-link { color: #9d9d9d; }

.GameTooltip-name--character { color: var(--class-color); }
.GameTooltip-level { color: var(--gold); }
.GameTooltip-row { display: flex; justify-content: space-between; gap: 24px; }
.GameTooltip-enchant { color: #1eff00; }
.GameTooltip-description { color: var(--gold); }
.GameTooltip-muted { color: #9d9d9d; }

@media (max-width: 860px) {
  .SiteHeader-refreshed { display: none; }
  .SiteHeader-logo img { height: 64px; }
  .CharacterHeader-name { font-size: 28px; }
  .CharacterHeader-logo { width: 58px; }
  .CharacterHeader-link { margin-left: 0; flex-basis: 100%; }
  .CharacterProfile-itemDetails { display: none; }
  .CharacterProfile-gear--bottom { gap: 24px; }
  .Overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .Specs { grid-template-columns: minmax(0, 1fr); }
  .Trophies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .Professions { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  :root { --gutter: 14px; }
  html, body { font-size: 14px; }

  .SiteHeader { min-height: 54px; justify-content: flex-end; }
  .SiteHeader-title { display: none; }
  .SiteHeader-logo { top: 5px; left: var(--gutter); transform: none; }
  .SiteHeader-logo img { height: 44px; }

  .SiteFooter { margin-top: 70px; }
  .SiteFooter-logo { height: 96px; }

  .Roster, .Page { padding-top: 22px; padding-bottom: 40px; }
  .PageNav { margin-bottom: 18px; }
  .Roster-bar { margin-bottom: 16px; }
  .Roster-summary, .Roster-sort { font-size: 12px; letter-spacing: 0.1em; }
  .Roster-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .Page-title { font-size: 24px; }

  .GameIcon { width: 40px; }
  .GameIcon--small { width: 22px; }
  .GameIcon--medium { width: 32px; }
  .GameIcon--bare { width: 28px; }
  .GameIcon--talent { width: 40px; }
  .GameTooltip { max-width: calc(100vw - 20px); }

  .Profile-inner { padding-top: 18px; padding-bottom: 48px; }
  .CharacterHeader { gap: 6px 0; padding-bottom: 10px; }
  .CharacterHeader-character { gap: 10px; flex-basis: 100%; }
  .CharacterHeader-logo { width: 44px; }
  .CharacterHeader-nameTitle { padding-right: 0; margin-right: 0; border-right: 0; min-width: 0; }
  .CharacterHeader-name { font-size: 24px; }
  .CharacterHeader-title { font-size: 14px; }
  .CharacterHeader-links { font-size: 16px; }
  .CharacterHeader-details { font-size: 13px; }
  .HorizontalNav-link { padding: 0 10px; }
  .HorizontalNav-item { font-size: 13px; }
  .CharacterProfile { margin-top: 18px; }

  .Section { margin-top: 22px; padding-top: 26px; }
  .Section-title { margin-bottom: 16px; }
  .Overview { gap: 18px 10px; padding-bottom: 8px; }
  .Overview-stat { gap: 10px; }
  .StatIcon { width: 42px; height: 42px; }
  .Overview-name, .Overview-value { font-size: 12px; }
  .Reputations { gap: 14px; }
  .Collection { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .Figures { gap: 16px 28px; }
  .Figure-value { font-size: 24px; }
  .Timeline-selected { font-size: 19px; }

  .Race { padding: 0 20px; }
  .Race .Panel-title { margin-left: -20px; }
  .Crowns { gap: 10px 16px; margin-bottom: 16px; }
  .Trophies { gap: 10px; }
  .Trophy-top, .Trophy-body { padding: 8px 8px; }
  .Trophy-title { font-size: 15px; }
  .Trophy-stat { font-size: 9px; letter-spacing: 0.1em; }
  .Trophy-value { font-size: 22px; }
  .Trophy-name { font-size: 14px; }
  .Trophy-owner, .Trophy-second { font-size: 11px; }
  .Feed { gap: 16px; }
  .Filters { gap: 10px 14px; }
  .Filters .Roster-sort { font-size: 12px; letter-spacing: 0.08em; }
  .Table th, .Table td { padding: 7px 8px; }
  .Form { gap: 8px; }
  .Field, .Field--short { flex: 1 1 100%; }
}
