body.armory-page-body {
  background: #050505 !important;
}

body.armory-page-body::before {
  background: #050505 !important;
}

body.armory-page-body::after {
  background: #050505 !important;
}

.armory-page {
  width: min(1580px, calc(100% - 48px));
  min-height: 780px;
  margin: 0 auto;
  padding: clamp(112px, 8vw, 138px) 0 100px;
}

.armory-board {
  width: 100%;
}

.armory-hero {
  width: min(920px, 100%);
  margin: 0 auto 52px;
  display: grid;
  justify-items: center;
  text-align: center;
}

.armory-realm {
  color: #d0a849;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.armory-hero h1 {
  width: 100%;
  margin: 12px 0 8px;
  display: grid;
  grid-template-columns: minmax(50px, 1fr) auto minmax(50px, 1fr);
  align-items: center;
  gap: 20px;
  color: #f2f2f2;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: 4px;
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 4px 24px #000;
}

.armory-hero h1::before,
.armory-hero h1::after {
  height: 1px;
  background: linear-gradient(90deg, transparent, #9b771e);
  content: "";
}

.armory-hero h1::after {
  background: linear-gradient(90deg, #9b771e, transparent);
}

.armory-hero > p {
  max-width: 680px;
  margin: 0;
  color: #aaa49a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.6;
}

.armory-tools.honor-tools {
  width: 100%;
  margin-top: 32px;
  padding: 0;
  border: 0;
  justify-content: center;
}

.armory-tools .honor-search {
  flex: 1 1 100%;
}

.armory-tools .honor-filter:has([data-armory-faction]) {
  flex: 0 1 260px;
}

.armory-tools .honor-filter:has([data-armory-class]) {
  max-width: 840px;
  flex: 1 1 650px;
}

.armory-profile-back {
  min-width: 116px;
  border: 0;
  border-left: 1px solid #55451f;
  background: #18130a;
  color: #f2f2f2;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.armory-profile-back:hover,
.armory-profile-back:focus-visible {
  background: #2a210f;
  color: #fff;
  outline: 0;
}

.armory-content {
  min-height: 360px;
}

.armory-results-view,
.armory-profile-view {
  border: 1px solid #2c2c2c;
  background: rgba(7, 7, 7, 0.95);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.armory-status[hidden],
.armory-search-skeleton[hidden],
.armory-profile-skeleton[hidden],
.armory-results-table-wrap[hidden],
.armory-results-view[hidden],
.armory-profile-view[hidden] {
  display: none !important;
}

.armory-profile-view {
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.armory-results-head {
  min-height: 78px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #292929;
  background: #101010;
}

.armory-results-head span {
  color: #b99440;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.armory-results-head h2 {
  margin: 4px 0 0;
  color: #f2f2f2;
  font-size: 24px;
  letter-spacing: 1px;
}

.armory-results-head > strong {
  color: #a49e94;
  font-size: 12px;
  text-transform: uppercase;
}

.armory-status {
  min-height: 190px;
  margin: 0;
  padding: 40px 24px;
  display: grid;
  place-items: center;
  color: #878178;
  font-size: 14px;
  text-align: center;
}

.armory-status[data-type="error"] {
  color: #d86a62;
}

.armory-status[data-type="loading"]::before {
  width: 24px;
  height: 24px;
  margin-bottom: 10px;
  border: 2px solid #353535;
  border-top-color: #c59d40;
  border-radius: 50%;
  animation: armory-spin 700ms linear infinite;
  content: "";
}

.armory-search-skeleton {
  padding: 12px 16px;
  display: grid;
  gap: 8px;
  background: #080808;
}

.armory-search-skeleton-row {
  min-height: 66px;
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 42px minmax(180px, 1.6fr) minmax(70px, 0.4fr) minmax(120px, 0.8fr) minmax(100px, 0.6fr);
  align-items: center;
  gap: 24px;
  border: 1px solid #202020;
  background: #0b0b0b;
}

.armory-search-skeleton-row i,
.armory-search-skeleton-row b,
.armory-profile-skeleton i,
.armory-profile-skeleton b,
.armory-profile-skeleton-grid > div,
.armory-profile-skeleton aside {
  position: relative;
  overflow: hidden;
  background: #151515;
}

.armory-search-skeleton-row i {
  width: 40px;
  height: 40px;
}

.armory-search-skeleton-row b {
  height: 12px;
}

.armory-search-skeleton-row b:nth-of-type(2) {
  width: 56px;
}

.armory-search-skeleton-row b:nth-of-type(3) {
  width: 110px;
}

.armory-search-skeleton-row b:nth-of-type(4) {
  width: 92px;
}

.armory-search-skeleton-row i::after,
.armory-search-skeleton-row b::after,
.armory-profile-skeleton i::after,
.armory-profile-skeleton b::after,
.armory-profile-skeleton-grid > div::after,
.armory-profile-skeleton aside::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(197, 157, 64, 0.11), transparent);
  transform: translateX(-100%);
  animation: armory-skeleton-sweep 1.25s ease-in-out infinite;
  content: "";
}

.armory-profile-skeleton {
  border: 1px solid #293442;
  background: #080e15;
}

.armory-profile-skeleton header {
  min-height: 108px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #263342;
  background: #1a222d;
}

.armory-profile-skeleton header i {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
}

.armory-profile-skeleton header span {
  width: min(360px, 60%);
  display: grid;
  gap: 9px;
}

.armory-profile-skeleton header b {
  height: 11px;
}

.armory-profile-skeleton header b:first-child {
  width: 180px;
  height: 25px;
}

.armory-profile-skeleton header b:last-child {
  width: 200px;
}

.armory-profile-skeleton-grid {
  min-height: 560px;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 190px minmax(360px, 1fr) 190px;
  gap: 72px;
}

.armory-profile-skeleton-grid aside {
  min-height: 320px;
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid #24303d;
}

.armory-profile-skeleton-grid aside b {
  height: 13px;
  background: #202833;
}

.armory-profile-skeleton-grid > div {
  min-height: 500px;
  border: 1px solid #24303d;
  background: #121a24;
}

.armory-results-table-wrap {
  overflow-x: auto;
}

.armory-results-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.armory-results-table th {
  height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid #292929;
  background: #151515;
  color: #c7c2b9;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-align: left;
  text-transform: uppercase;
}

.armory-results-table th:first-child {
  width: 27%;
}

.armory-results-table th:nth-child(2) {
  width: 19%;
}

.armory-results-table th:nth-child(3) {
  width: 16%;
}

.armory-results-table th:nth-child(4) {
  width: 22%;
}

.armory-results-table th:last-child {
  width: 16%;
}

.armory-result-row {
  cursor: pointer;
  transition: background 140ms ease, box-shadow 140ms ease;
}

.armory-result-row:nth-child(odd) {
  background: #0b0b0b;
}

.armory-result-row:nth-child(even) {
  background: #080808;
}

.armory-result-row:hover,
.armory-result-row:focus-within {
  background: #15130e;
  box-shadow: inset 3px 0 #b48a36;
}

.armory-result-row td {
  height: 66px;
  padding: 10px 20px;
  border-bottom: 1px solid #202020;
  color: #d8d3ca;
  font-size: 13px;
  vertical-align: middle;
}

.armory-result-open {
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.armory-result-open img,
.armory-result-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid #5b554b;
  border-radius: 3px;
  background: #090909;
  object-fit: cover;
}

.armory-result-identity-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.armory-result-open strong {
  display: block;
  color: #f2f2f2;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
  text-transform: none;
}

.armory-result-identity-copy small {
  color: #8d887f;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.armory-class,
.armory-faction {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f2f2f2;
}

.armory-class strong,
.armory-faction strong,
.armory-guild-name,
.armory-online strong {
  color: #f0ede7;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
}

.armory-class img,
.armory-faction img {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border: 0;
  object-fit: contain;
}

.armory-guild-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.armory-online {
  display: inline-grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: center;
  gap: 2px 8px;
  color: #6fca7d;
}

.armory-online::before {
  grid-row: 1 / span 2;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
  content: "";
}

.armory-online strong,
.armory-online small {
  grid-column: 2;
}

.armory-online small {
  color: #8d887f;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  text-transform: none;
}

.armory-online.offline {
  color: #706b64;
}

.armory-profile-view {
  overflow: hidden;
}

.armory-profile-header {
  min-height: 96px;
  padding: 16px 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #303030;
  background: #111;
}

.armory-profile-back {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #363636;
}

.armory-profile-back svg {
  width: 15px;
  height: 15px;
}

.armory-profile-identity {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.armory-profile-identity > img {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  object-fit: cover;
}

.armory-profile-identity h2 {
  margin: 0;
  color: #f2f2f2;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 1px;
}

.armory-profile-identity p {
  margin: 4px 0 0;
  color: #aaa49a;
  font-size: 12px;
}

.armory-profile-identity p span + span::before {
  margin: 0 7px;
  color: #555;
  content: "/";
}

.armory-profile-bars {
  width: 230px;
  display: grid;
  gap: 6px;
}

.armory-resource {
  min-height: 24px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #188c31;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.armory-resource.power {
  background: #1563ad;
}

.armory-resource[data-tone="rage"] {
  background: #9e2020;
}

.armory-resource[data-tone="energy"] {
  background: #a68a13;
}

.armory-resource[data-tone="runic"] {
  background: #278b9e;
}

.armory-profile-main {
  min-height: 570px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(155px, 190px) 52px minmax(380px, 1fr) 52px minmax(155px, 190px);
  gap: 12px;
  background: #070707;
}

.armory-stat-column,
.armory-slots {
  display: grid;
  align-content: start;
  gap: 10px;
}

.armory-stat-group {
  border: 1px solid #303030;
  background: #0d0d0d;
}

.armory-stat-group h3 {
  margin: 0;
  padding: 8px 10px;
  border-bottom: 1px solid #303030;
  background: #161616;
  color: #f2f2f2;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.armory-stat-group dl {
  margin: 0;
}

.armory-stat-group dl > div {
  min-height: 26px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #202020;
  color: #8e8981;
  font-size: 10px;
}

.armory-stat-group dl > div:last-child {
  border-bottom: 0;
}

.armory-stat-group dt,
.armory-stat-group dd {
  margin: 0;
}

.armory-stat-group dd {
  color: #f2f2f2;
  font-weight: 800;
}

.armory-slot {
  width: 52px;
  height: 52px;
  position: relative;
  padding: 3px;
  border: 1px solid #3a3a3a;
  background:
    url("../../images/Armory/default/item_frame.png") center / 100% 100% no-repeat,
    #101010;
}

.armory-slot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.armory-slot.is-equipped.quality-2 { border-color: #1eff00; }
.armory-slot.is-equipped.quality-3 { border-color: #0070dd; }
.armory-slot.is-equipped.quality-4 { border-color: #a335ee; }
.armory-slot.is-equipped.quality-5 { border-color: #ff8000; }

.armory-model-column {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(460px, 1fr) auto;
  gap: 12px;
}

.armory-model-stage {
  min-height: 460px;
  position: relative;
  overflow: hidden;
  border: 1px solid #303030;
  background:
    radial-gradient(circle at 50% 45%, rgba(73, 67, 46, 0.15), transparent 42%),
    #090909;
}

.armory-model-stage::before {
  position: absolute;
  inset: 0;
  background: url("../../images/Armory/1.png") center / cover no-repeat;
  opacity: 0.16;
  content: "";
}

.armory-model-stage .account-armory-wow-stage,
.armory-model-stage .account-armory-wow-mount,
.armory-model-stage .account-armory-wow-mount canvas {
  width: 100% !important;
  height: 100% !important;
  position: absolute !important;
  inset: 0;
}

.armory-model-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #9b958b;
  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.armory-model-loading[hidden] {
  display: none;
}

.armory-weapons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.armory-profile-lower {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid #272727;
  background: #090909;
}

.armory-panel {
  min-width: 0;
  border: 1px solid #292929;
  background: #0d0d0d;
}

.armory-panel > h3 {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 1px solid #292929;
  background: #151515;
  color: #f2f2f2;
  font-size: 11px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.armory-panel-list {
  padding: 10px;
  display: grid;
  gap: 8px;
}

.armory-progress-row {
  min-height: 48px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #272727;
  background: #101010;
}

.armory-progress-row img {
  width: 36px;
  height: 36px;
  object-fit: cover;
}

.armory-progress-row strong,
.armory-progress-row small {
  display: block;
}

.armory-progress-row strong {
  color: #f2f2f2;
  font-size: 11px;
}

.armory-progress-row small {
  margin-top: 3px;
  color: #817b73;
  font-size: 9px;
}

.armory-progress-row > b {
  color: #cba54d;
  font-size: 11px;
}

.armory-empty {
  margin: 0;
  padding: 22px 12px;
  color: #777169;
  font-size: 11px;
  text-align: center;
}

.armory-talents-panel {
  grid-column: 1 / -1;
}

.armory-specs {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.armory-spec {
  min-height: 60px;
  padding: 9px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #292929;
  background: #101010;
}

.armory-spec.active {
  border-color: #6f5726;
  background: #171309;
}

.armory-spec img {
  width: 42px;
  height: 42px;
}

.armory-spec strong,
.armory-spec small {
  display: block;
}

.armory-spec strong {
  color: #f2f2f2;
  font-size: 12px;
}

.armory-spec small {
  margin-top: 3px;
  color: #888178;
  font-size: 10px;
}

.armory-spec b {
  color: #d0aa4d;
}

.armory-profile-view.is-entering {
  animation: armory-view-in 360ms ease both;
}

.armory-skeleton {
  width: 100%;
  height: 360px;
  padding: 30px;
  display: grid;
  align-content: start;
  gap: 14px;
  border: 1px solid #2c2c2c;
  background: #080808;
}

.armory-skeleton span {
  height: 54px;
  background: linear-gradient(90deg, #101010, #181818, #101010);
  background-size: 200% 100%;
  animation: armory-shimmer 1.2s linear infinite;
}

@keyframes armory-spin {
  to { transform: rotate(360deg); }
}

@keyframes armory-shimmer {
  to { background-position: -200% 0; }
}

@keyframes armory-skeleton-sweep {
  to { transform: translateX(100%); }
}

@keyframes armory-view-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Match every Armory loading state to the neutral ranking skeleton. */
.armory-search-skeleton,
.armory-profile-skeleton,
.armory-skeleton {
  border-color: #2b2b2b;
  background: #080808;
  box-shadow: none;
}

.armory-search-skeleton-row,
.armory-profile-skeleton header,
.armory-profile-skeleton-grid > div,
.armory-profile-skeleton-grid aside {
  border-color: #2b2b2b;
  background: #0b0b0b;
  box-shadow: none;
}

.armory-search-skeleton-row i,
.armory-search-skeleton-row b,
.armory-profile-skeleton i,
.armory-profile-skeleton b,
.armory-profile-skeleton-grid > div,
.armory-profile-skeleton-grid aside,
.armory-profile-skeleton-grid aside b {
  border-color: #2b2b2b;
  background: #181818;
}

.armory-search-skeleton-row i::after,
.armory-search-skeleton-row b::after,
.armory-profile-skeleton i::after,
.armory-profile-skeleton b::after,
.armory-profile-skeleton-grid > div::after,
.armory-profile-skeleton-grid aside::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.055), transparent);
}

.armory-skeleton span {
  background: linear-gradient(90deg, #181818, #242424, #181818);
  background-size: 200% 100%;
}

@media (max-width: 1080px) {
  .armory-profile-main {
    grid-template-columns: 52px minmax(360px, 1fr) 52px;
  }

  .armory-stat-column {
    grid-column: 1 / -1;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .armory-stat-column.left {
    order: 4;
  }

  .armory-stat-column.right {
    order: 5;
  }

  .armory-slots.left { grid-column: 1; }
  .armory-model-column { grid-column: 2; }
  .armory-slots.right { grid-column: 3; }
}

@media (max-width: 760px) {
  .armory-page {
    width: min(100% - 20px, 100%);
    padding-top: 136px;
  }

  .armory-hero {
    margin-bottom: 30px;
  }

  .armory-hero h1 {
    gap: 10px;
    font-size: clamp(34px, 12vw, 50px);
  }

  .armory-tools.honor-tools {
    gap: 12px 16px;
  }

  .armory-results-head,
  .armory-profile-header {
    align-items: start;
    flex-direction: column;
  }

  .armory-results-table,
  .armory-results-table tbody,
  .armory-results-table tr,
  .armory-results-table td {
    display: block;
  }

  .armory-results-table thead {
    display: none;
  }

  .armory-result-row {
    padding: 12px;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    border-bottom: 1px solid #292929;
  }

  .armory-result-row td {
    height: auto;
    padding: 0;
    border: 0;
  }

  .armory-result-row td:not(:first-child)::before {
    margin-bottom: 4px;
    display: block;
    color: #a88537;
    content: attr(data-label);
    font-family: var(--font-display);
    font-size: 8px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
  }

  .armory-result-row td:first-child {
    grid-column: 1 / -1;
  }

  .armory-search-skeleton {
    padding: 10px;
  }

  .armory-search-skeleton-row {
    min-height: 112px;
    padding: 12px;
    grid-template-columns: 40px 1fr;
    gap: 10px 12px;
  }

  .armory-search-skeleton-row b {
    width: 100% !important;
  }

  .armory-search-skeleton-row b:nth-of-type(n + 2) {
    grid-column: span 1;
  }

  .armory-profile-skeleton-grid {
    min-height: 500px;
    padding: 14px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .armory-profile-skeleton-grid aside {
    min-height: 300px;
    padding: 4px;
  }

  .armory-profile-skeleton-grid aside b {
    height: 40px;
  }

  .armory-profile-skeleton-grid > div {
    min-height: 440px;
  }

  .armory-profile-header {
    grid-template-columns: 1fr;
  }

  .armory-profile-bars {
    width: 100%;
  }

  .armory-profile-main {
    padding: 14px;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 8px;
  }

  .armory-slot {
    width: 44px;
    height: 44px;
  }

  .armory-model-column {
    grid-template-rows: minmax(390px, 1fr) auto;
  }

  .armory-model-stage {
    min-height: 390px;
  }

  .armory-stat-column {
    grid-template-columns: 1fr;
  }

  .armory-profile-lower {
    padding: 14px;
    grid-template-columns: 1fr;
  }

  .armory-talents-panel {
    grid-column: auto;
  }

  .armory-specs {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .armory-result-row,
  .armory-profile-view.is-entering {
    animation: none;
    transition: none;
  }
}
