:root {
  color-scheme: dark;
  --night: #030810;
  --night-soft: #0a1622;
  --panel: rgba(5, 14, 23, 0.84);
  --panel-border: rgba(143, 211, 237, 0.2);
  --ivory: #f3f7f6;
  --mist: #a8bbc7;
  --gold: #d5aa5f;
  --gold-light: #f0d497;
  --teal: #68c9e9;
  --ice: #94dcf4;
  --danger: #e69482;
  --success: #8fd6ac;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ivory);
  background: var(--night);
}

body::before,
body::after {
  position: fixed;
  content: "";
  pointer-events: none;
}

body::before {
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(2, 7, 13, 0.97) 0%, rgba(3, 10, 18, 0.91) 34%, rgba(3, 10, 18, 0.47) 68%, rgba(2, 6, 11, 0.58) 100%),
    linear-gradient(180deg, rgba(2, 7, 13, 0.28) 0%, rgba(2, 7, 13, 0.12) 52%, rgba(2, 7, 13, 0.96) 100%),
    url("fortress-hero.png") center top / cover no-repeat;
}

body::after {
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(145, 219, 244, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(145, 219, 244, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 74%);
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 112px;
  border-bottom: 1px solid rgba(148, 220, 244, 0.13);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.82);
}

.brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  flex: 0 0 58px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 11px rgba(0, 0, 0, 0.82)) drop-shadow(0 0 9px rgba(104, 201, 233, 0.22));
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand small {
  margin-top: 3px;
  color: var(--mist);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.server-status {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--mist);
  font-size: 15px;
}

.header-actions {
  display: flex;
  gap: 22px;
  align-items: center;
}

.header-right {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
}

.site-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.nav-link {
  padding: 8px 10px;
  border-radius: 7px;
  color: #9bb0b8;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ice);
  background: rgba(106, 195, 226, 0.1);
}

.nav-discord {
  color: #b9b3ef;
}

.account-link {
  padding: 9px 13px;
  border: 1px solid rgba(148, 220, 244, 0.2);
  border-radius: 8px;
  color: #c7d8df;
  background: rgba(4, 13, 22, 0.48);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.account-link:hover,
.account-link.is-active {
  border-color: rgba(148, 220, 244, 0.5);
  color: var(--ice);
  background: rgba(11, 34, 48, 0.7);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(143, 214, 172, 0.1), 0 0 18px rgba(143, 214, 172, 0.8);
}

.server-status.is-unavailable .status-dot {
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(223, 181, 95, 0.1), 0 0 18px rgba(223, 181, 95, 0.55);
}

main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.78fr);
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
  min-height: calc(100vh - 174px);
  padding: 62px 0 76px;
}

.hero-copy {
  position: relative;
  max-width: 630px;
  padding-left: 23px;
}

.hero-copy::before {
  position: absolute;
  top: 4px;
  bottom: 2px;
  left: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(148, 220, 244, 0.48) 12%, rgba(148, 220, 244, 0.08) 82%, transparent);
  box-shadow: 0 0 15px rgba(104, 201, 233, 0.18);
  content: "";
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--ice);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  max-width: 610px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  text-wrap: balance;
  color: #f5f8f7;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.82), 0 0 42px rgba(69, 152, 190, 0.1);
}

h1 span {
  display: block;
  margin-bottom: 9px;
  color: var(--gold-light);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.18em;
  font-weight: 750;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
}

.hero-intro {
  max-width: 555px;
  margin-bottom: 20px;
  color: var(--mist);
  font-size: 17px;
  line-height: 1.75;
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.9);
}

.frost-divider {
  display: flex;
  align-items: center;
  width: min(330px, 72%);
  margin: 0 0 28px;
  color: rgba(148, 220, 244, 0.58);
}

.frost-divider::before,
.frost-divider::after {
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgba(148, 220, 244, 0.55), transparent);
}

.frost-divider::before {
  width: 42px;
}

.frost-divider::after {
  flex: 1;
}

.frost-divider span {
  width: 8px;
  height: 8px;
  margin: 0 10px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  box-shadow: 0 0 12px rgba(104, 201, 233, 0.36);
}

.realm-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 28px;
  padding: 19px 0;
  border-top: 1px solid rgba(148, 220, 244, 0.15);
  border-bottom: 1px solid rgba(148, 220, 244, 0.15);
}

.realm-details div {
  padding: 0 22px;
  border-left: 1px solid rgba(168, 184, 183, 0.13);
}

.realm-details div:first-child {
  padding-left: 0;
  border-left: 0;
}

.realm-details span,
.realm-details strong {
  display: block;
}

.realm-details span,
.realmlist-card > span {
  margin-bottom: 5px;
  color: #728b8b;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.realm-details strong {
  font-size: 16px;
  font-weight: 650;
}

.realm-status-card {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(118, 200, 231, 0.22);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(5, 17, 28, 0.79), rgba(4, 11, 18, 0.68));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 14px 36px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  transition: border-color 180ms ease, background 180ms ease;
}

.realm-status-card.is-online {
  border-color: rgba(143, 214, 172, 0.3);
  background: rgba(7, 23, 22, 0.66);
}

.realm-status-card.is-offline {
  border-color: rgba(223, 181, 95, 0.19);
}

.realm-status-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(168, 184, 183, 0.1);
}

.realm-state-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(223, 181, 95, 0.08);
}

.realm-status-card.is-online .realm-state-dot {
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(143, 214, 172, 0.1), 0 0 16px rgba(143, 214, 172, 0.6);
}

.realm-status-heading span,
.population-stat span {
  display: block;
  color: #718b8a;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.realm-status-heading strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
}

.realm-status-heading > small {
  color: #5f7776;
  font-size: 11px;
}

.population-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.population-stat {
  padding: 14px 16px 15px;
  border-left: 1px solid rgba(168, 184, 183, 0.09);
}

.population-stat:first-child {
  border-left: 0;
}

.population-stat strong {
  display: block;
  margin: 3px 0 1px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
}

.population-stat small {
  color: #526968;
  font-size: 11px;
}

.population-alliance strong {
  color: #8dc5ef;
}

.population-horde strong {
  color: #e38a77;
}

.realmlist-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 20px;
  align-items: center;
  padding: 17px 18px;
  border: 1px solid rgba(118, 200, 231, 0.2);
  border-radius: 10px;
  background: rgba(4, 13, 22, 0.7);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(10px);
}

.realmlist-card > span {
  grid-column: 1;
}

.realmlist-card code {
  grid-column: 1;
  overflow: hidden;
  color: #c8d8d5;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-button {
  grid-row: 1 / 3;
  grid-column: 2;
  padding: 8px 12px;
  border: 1px solid rgba(168, 184, 183, 0.2);
  border-radius: 7px;
  color: var(--mist);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.register-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(13, 35, 49, 0.38), transparent 38%),
    var(--panel);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045), 0 30px 100px rgba(0, 0, 0, 0.5), 0 0 55px rgba(56, 150, 193, 0.06);
  backdrop-filter: blur(24px) saturate(112%);
}

.register-card::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 160px;
  height: 160px;
  border-radius: 0 0 0 100%;
  background: radial-gradient(circle at 100% 0, rgba(112, 205, 239, 0.2), transparent 70%);
  content: "";
}

.register-card::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(148, 220, 244, 0.055);
  border-radius: 10px;
  content: "";
  pointer-events: none;
}

.register-card > * {
  position: relative;
  z-index: 1;
}

.card-heading {
  display: flex;
  gap: 17px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.step-number {
  padding-top: 3px;
  color: rgba(223, 181, 95, 0.55);
  font-family: Georgia, serif;
  font-size: 14px;
}

.card-heading h2 {
  margin-bottom: 0;
  font-size: 32px;
  letter-spacing: -0.025em;
}

.field {
  margin-bottom: 19px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: #d3dedb;
  font-size: 15px;
  font-weight: 650;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(148, 205, 226, 0.18);
  border-radius: 8px;
  outline: none;
  color: var(--ivory);
  background: rgba(2, 8, 14, 0.62);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input::placeholder {
  color: #526a6a;
}

.field input:focus {
  border-color: rgba(148, 220, 244, 0.64);
  background: rgba(2, 8, 14, 0.82);
  box-shadow: 0 0 0 3px rgba(104, 201, 233, 0.09), 0 0 22px rgba(104, 201, 233, 0.06);
}

.field small {
  display: block;
  margin-top: 7px;
  color: #718586;
  font-size: 13px;
}

.password-input {
  position: relative;
}

.password-input input {
  padding-right: 82px;
}

.password-input button {
  position: absolute;
  top: 50%;
  right: 8px;
  padding: 7px;
  border: 0;
  color: #86a29f;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
  transform: translateY(-50%);
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin: 5px 0 20px;
  color: #8fa3a2;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}

.consent input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--gold);
}

.website-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-message {
  display: none;
  margin-bottom: 14px;
  padding: 11px 13px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.45;
}

.form-message.is-visible {
  display: block;
}

.form-message.is-error {
  color: #ffd8cf;
  background: rgba(143, 52, 36, 0.2);
}

.form-message.is-success {
  color: #ccf4d9;
  background: rgba(38, 115, 70, 0.22);
}

.primary-button {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  padding: 0 19px;
  border: 0;
  border-radius: 8px;
  color: #19160f;
  background: linear-gradient(105deg, #c79745, var(--gold-light));
  box-shadow: 0 12px 32px rgba(197, 145, 53, 0.17);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.primary-button:hover {
  filter: brightness(1.05);
  box-shadow: 0 15px 38px rgba(197, 145, 53, 0.24);
  transform: translateY(-1px);
}

.primary-button:disabled {
  cursor: wait;
  filter: saturate(0.4);
  transform: none;
}

.field input[aria-invalid="true"] {
  border-color: rgba(230, 148, 130, 0.7);
}

.privacy-note {
  margin: 14px 0 0;
  color: #627878;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 0 34px;
  border-top: 1px solid rgba(148, 220, 244, 0.1);
  color: #526666;
  font-size: 12px;
  letter-spacing: 0.04em;
}

footer p {
  margin: 0;
}

.interior-page {
  min-height: 100vh;
}

.account-main {
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1fr);
  min-height: calc(100vh - 180px);
  padding-top: 58px;
}

.account-intro h1 {
  margin-bottom: 24px;
}

.account-card {
  width: 100%;
}

.account-summary {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(148, 220, 244, 0.13);
}

.account-summary h2 {
  margin-bottom: 0;
  font-size: 31px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(148, 220, 244, 0.25);
  border-radius: 999px;
  color: var(--ice);
  background: rgba(63, 153, 187, 0.12);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-level-1 {
  color: #a8d8ff;
}

.role-level-2,
.role-level-3 {
  border-color: rgba(223, 181, 95, 0.34);
  color: var(--gold-light);
  background: rgba(197, 145, 53, 0.1);
}

.password-change-form h3 {
  margin: -5px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 500;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.logout-form {
  margin-top: 14px;
  text-align: center;
}

.admin-accounts {
  grid-column: 1 / -1;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(143, 211, 237, 0.17);
  border-radius: 16px;
  background: rgba(4, 13, 22, 0.86);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
}

.admin-section-heading {
  display: flex;
  gap: 32px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-section-heading h2,
.admin-upload-card h2,
.download-feature-card h2,
.empty-catalog h2,
.addon-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.admin-section-heading > div > p:last-child {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.6;
}

.account-search {
  min-width: min(100%, 310px);
}

.account-search label {
  display: block;
  margin-bottom: 7px;
  color: #81979c;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-search > div,
.role-form {
  display: flex;
}

.account-search input,
.role-form select {
  min-width: 0;
  border: 1px solid rgba(148, 205, 226, 0.18);
  outline: none;
  color: var(--ivory);
  background: rgba(2, 8, 14, 0.68);
}

.account-search input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border-radius: 7px 0 0 7px;
}

.account-search button,
.role-form button {
  border: 1px solid rgba(213, 170, 95, 0.3);
  color: var(--gold-light);
  background: rgba(197, 145, 53, 0.1);
  cursor: pointer;
}

.account-search button {
  padding: 0 13px;
  border-radius: 0 7px 7px 0;
}

.account-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(148, 220, 244, 0.1);
  border-radius: 10px;
}

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

.account-table th,
.account-table td {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(148, 220, 244, 0.08);
  text-align: left;
  white-space: nowrap;
}

.account-table th {
  color: #6f898f;
  background: rgba(255, 255, 255, 0.02);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.account-table td strong,
.account-table td small {
  display: block;
}

.account-table td small {
  margin-top: 3px;
  color: #647b80;
  font-size: 11px;
}

.role-form select {
  height: 34px;
  padding: 0 8px;
  border-radius: 6px 0 0 6px;
}

.role-form button {
  padding: 0 10px;
  border-radius: 0 6px 6px 0;
  font-size: 12px;
}

.empty-table {
  padding: 28px !important;
  color: #71878b;
  text-align: center !important;
}

.admin-note {
  margin: 13px 0 0;
  color: #60777b;
  font-size: 12px;
}

.content-main,
.catalog-main {
  display: block;
  min-height: calc(100vh - 180px);
  padding: 64px 0 78px;
}

.content-hero {
  max-width: 720px;
  margin-bottom: 38px;
}

.content-hero h1 {
  margin-bottom: 20px;
}

.content-hero code,
.instruction-grid code,
.admin-upload-card code {
  color: #b8dce8;
}

.download-feature-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid rgba(143, 211, 237, 0.2);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(12, 34, 49, 0.75), rgba(4, 12, 21, 0.9));
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.34);
}

.download-emblem {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 1px solid rgba(148, 220, 244, 0.4);
  border-radius: 14px 14px 28px 28px;
  color: var(--gold-light);
  background: rgba(5, 20, 31, 0.8);
  font-family: Georgia, serif;
  font-size: 18px;
  box-shadow: inset 0 0 0 4px rgba(148, 220, 244, 0.04);
}

.download-feature-card h2 {
  font-size: 30px;
}

.download-feature-card p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.6;
}

.download-meta {
  display: inline-block;
  margin-top: 11px;
  color: #718b90;
  font-size: 12px;
  text-transform: uppercase;
}

.download-button {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(213, 170, 95, 0.36);
  border-radius: 8px;
  color: #18140d;
  background: linear-gradient(105deg, #c79745, var(--gold-light));
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.download-button.is-disabled {
  border-color: rgba(148, 220, 244, 0.12);
  color: #70868b;
  background: rgba(255, 255, 255, 0.035);
}

.instruction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.instruction-grid article {
  padding: 24px;
  border: 1px solid rgba(148, 220, 244, 0.11);
  border-radius: 12px;
  background: rgba(3, 12, 20, 0.72);
}

.instruction-grid article > span {
  color: rgba(213, 170, 95, 0.65);
  font-family: Georgia, serif;
  font-size: 13px;
}

.instruction-grid h3 {
  margin: 10px 0 8px;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 500;
}

.instruction-grid p {
  margin: 0;
  color: #7e9499;
  font-size: 14px;
  line-height: 1.65;
}

.catalog-hero {
  margin-bottom: 26px;
}

.catalog-message {
  max-width: 720px;
  margin-bottom: 22px;
}

.admin-upload-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 24px 34px;
  align-items: center;
  margin-bottom: 26px;
  padding: 26px;
  border: 1px solid rgba(213, 170, 95, 0.22);
  border-radius: 14px;
  background: rgba(21, 21, 20, 0.7);
}

.admin-upload-card h2 {
  font-size: 25px;
}

.admin-upload-card p:not(.eyebrow) {
  margin: 9px 0 0;
  color: #91999a;
  font-size: 14px;
  line-height: 1.6;
}

.admin-upload-card > small {
  grid-column: 1 / -1;
  color: #6c7778;
  font-size: 12px;
}

.upload-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.file-picker {
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 205, 226, 0.18);
  border-radius: 8px;
  color: #aabcc1;
  background: rgba(2, 8, 14, 0.62);
  font-size: 13px;
  cursor: pointer;
}

.file-picker span {
  margin-right: 10px;
  color: var(--ice);
  white-space: nowrap;
}

.file-picker input {
  min-width: 0;
  color: #6f8387;
  font-size: 12px;
}

.compact-button {
  width: auto;
  min-height: 44px;
  gap: 16px;
}

.empty-catalog {
  padding: 65px 24px;
  border: 1px dashed rgba(148, 220, 244, 0.18);
  border-radius: 15px;
  color: #778e93;
  background: rgba(3, 12, 20, 0.58);
  text-align: center;
}

.empty-catalog > span {
  color: rgba(148, 220, 244, 0.5);
  font-size: 28px;
}

.empty-catalog h2 {
  margin-top: 13px;
  color: var(--ivory);
}

.empty-catalog p {
  margin: 9px 0 0;
  font-size: 14px;
}

.addon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.addon-card {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(148, 220, 244, 0.15);
  border-radius: 14px;
  background: rgba(4, 13, 22, 0.88);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.addon-image {
  min-height: 100%;
  overflow: hidden;
  background: #08131e;
}

.addon-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.addon-image-fallback {
  display: grid;
  place-items: center;
  color: rgba(240, 212, 151, 0.75);
  background:
    radial-gradient(circle at 50% 30%, rgba(77, 172, 211, 0.25), transparent 45%),
    linear-gradient(155deg, #102b3d, #050c14);
  font-family: Georgia, serif;
  font-size: 30px;
}

.addon-card-body {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.addon-title-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.addon-card h2 {
  font-size: 24px;
}

.addon-title-row > span {
  color: #769198;
  font-size: 12px;
}

.addon-card-body > p {
  margin: 12px 0;
  color: #94a9ae;
  font-size: 14px;
  line-height: 1.65;
}

.addon-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-bottom: 18px;
  color: #657d82;
  font-size: 11px;
  text-transform: uppercase;
}

.addon-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: auto;
}

.source-link {
  color: #86a8b2;
  font-size: 12px;
}

.addon-source {
  display: block;
  margin-top: 10px;
  color: #53696e;
  font-size: 11px;
}

.secondary-button {
  padding: 9px 14px;
  border: 0;
  color: #789094;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}

.ranking-main,
.armory-main {
  display: block;
  min-height: calc(100vh - 174px);
  padding: 54px 0 76px;
}

.ranking-hero {
  max-width: 760px;
  margin-bottom: 34px;
}

.ranking-hero h1 {
  margin-bottom: 16px;
}

.ranking-filters {
  display: grid;
  grid-template-columns: minmax(190px, 1.4fr) repeat(3, minmax(130px, 0.8fr));
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(148, 220, 244, 0.16);
  border-radius: 14px;
  background: rgba(4, 13, 21, 0.78);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.ranking-filters label {
  display: grid;
  gap: 7px;
}

.ranking-filters label > span:first-child {
  color: #789097;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ranking-filters input,
.ranking-filters select {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid rgba(148, 220, 244, 0.17);
  border-radius: 8px;
  outline: 0;
  color: #d9e5e8;
  background: rgba(1, 7, 12, 0.74);
}

.ranking-filters input:focus,
.ranking-filters select:focus {
  border-color: rgba(148, 220, 244, 0.55);
  box-shadow: 0 0 0 3px rgba(104, 201, 233, 0.07);
}

.ranking-level-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 7px;
  align-items: center;
  color: #60787e;
}

.ranking-filter-button {
  align-self: end;
  min-height: 40px;
}

.armory-unavailable {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 28px;
  padding: 30px;
  border: 1px solid rgba(213, 170, 95, 0.25);
  border-radius: 14px;
  background: rgba(28, 21, 10, 0.74);
}

.armory-unavailable > span {
  color: var(--gold);
  font-size: 36px;
}

.armory-unavailable h1,
.armory-unavailable h2,
.armory-unavailable p {
  margin: 0;
}

.armory-unavailable p {
  margin-top: 8px;
  color: #a99b7f;
  font-size: 14px;
  line-height: 1.65;
}

.ranking-board {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(148, 220, 244, 0.15);
  border-radius: 15px;
  background: rgba(2, 9, 15, 0.83);
  box-shadow: 0 22px 75px rgba(0, 0, 0, 0.36);
}

.ranking-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(148, 220, 244, 0.1);
  color: #8ca3aa;
  font-size: 13px;
  text-transform: uppercase;
}

.ranking-summary strong {
  color: var(--gold-light);
  font-size: 17px;
}

.ranking-columns,
.ranking-row {
  display: grid;
  grid-template-columns: minmax(310px, 2.1fr) minmax(90px, 0.75fr) 70px minmax(80px, 0.7fr) minmax(80px, 0.7fr) minmax(70px, 0.65fr) minmax(95px, 0.75fr);
  gap: 12px;
  align-items: center;
}

.ranking-columns {
  padding: 12px 22px;
  color: #566d74;
  background: rgba(104, 201, 233, 0.025);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ranking-row {
  position: relative;
  min-height: 70px;
  padding: 10px 22px;
  border-top: 1px solid rgba(148, 220, 244, 0.075);
  color: #a9bbc1;
  font-size: 14px;
  text-decoration: none;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.ranking-row:hover {
  z-index: 1;
  border-color: rgba(148, 220, 244, 0.18);
  background: linear-gradient(90deg, rgba(104, 201, 233, 0.1), rgba(104, 201, 233, 0.025));
  transform: translateX(2px);
}

.ranking-character {
  display: grid;
  grid-template-columns: 28px 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.ranking-position {
  color: #4f666d;
  font-family: Georgia, serif;
  font-size: 16px;
  text-align: center;
}

.ranking-character img,
.armory-identity > img {
  border: 2px solid var(--class-color, #71858b);
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.48), 0 0 18px color-mix(in srgb, var(--class-color, #71858b) 22%, transparent);
}

.ranking-character strong {
  display: block;
  overflow: hidden;
  color: var(--class-color, #d6e0e2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-character small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #637b82;
  font-size: 11px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.ranking-character em {
  padding: 4px 6px;
  border: 1px solid rgba(213, 170, 95, 0.2);
  border-radius: 5px;
  color: #b99a60;
  font-size: 10px;
  font-style: normal;
  text-transform: uppercase;
}

.ranking-faction,
.ranking-online {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.ranking-faction i,
.ranking-online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5e7479;
}

.faction-alliance .ranking-faction {
  color: #78b9e8;
}

.faction-alliance .ranking-faction i {
  background: #4c9dd8;
  box-shadow: 0 0 12px rgba(76, 157, 216, 0.6);
}

.faction-horde .ranking-faction {
  color: #de877b;
}

.faction-horde .ranking-faction i {
  background: #c65348;
  box-shadow: 0 0 12px rgba(198, 83, 72, 0.6);
}

.ranking-level {
  color: var(--gold-light);
  font-size: 18px;
}

.ranking-online.is-online {
  color: var(--success);
}

.ranking-online.is-online i {
  background: var(--success);
  box-shadow: 0 0 12px rgba(143, 214, 172, 0.68);
}

.ranking-pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  font-size: 13px;
}

.ranking-pagination a {
  color: var(--ice);
  text-decoration: none;
}

.ranking-pagination a:last-child {
  text-align: right;
}

.ranking-pagination strong {
  color: #758d94;
  font-weight: 600;
}

.class-1 { --class-color: #c79c6e; }
.class-2 { --class-color: #f58cba; }
.class-3 { --class-color: #abd473; }
.class-4 { --class-color: #fff569; }
.class-5 { --class-color: #ffffff; }
.class-6 { --class-color: #c41f3b; }
.class-7 { --class-color: #0070de; }
.class-8 { --class-color: #69ccf0; }
.class-9 { --class-color: #9482c9; }
.class-11 { --class-color: #ff7d0a; }

.armory-back {
  display: inline-block;
  margin-bottom: 24px;
  color: #77939b;
  font-size: 13px;
  text-decoration: none;
}

.armory-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px 32px;
  border: 1px solid rgba(148, 220, 244, 0.18);
  border-radius: 17px;
  background:
    radial-gradient(circle at 10% 20%, color-mix(in srgb, var(--class-color, #68c9e9) 15%, transparent), transparent 36%),
    linear-gradient(135deg, rgba(10, 28, 40, 0.92), rgba(3, 10, 17, 0.95));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.armory-identity h1 {
  margin: 7px 0 8px;
  color: var(--class-color, var(--ivory));
  font-size: clamp(42px, 7vw, 68px);
  line-height: 0.9;
}

.armory-identity p,
.armory-identity strong {
  margin: 0;
  color: #8ea4aa;
  font-size: 14px;
}

.armory-identity > div > strong {
  display: block;
  margin-top: 7px;
  color: var(--gold-light);
}

.armory-identity-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.armory-identity-badges span {
  padding: 4px 7px;
  border: 1px solid rgba(148, 220, 244, 0.17);
  border-radius: 5px;
  color: #78939a;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.armory-presence.is-online {
  color: var(--success) !important;
}

.armory-item-level {
  min-width: 130px;
  text-align: right;
}

.armory-item-level span,
.armory-item-level strong {
  display: block;
}

.armory-item-level span {
  color: #698087;
  font-size: 11px;
  text-transform: uppercase;
}

.armory-item-level strong {
  margin-top: 5px;
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 48px;
}

.armory-model-section {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(320px, 1.1fr);
  gap: 0;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(148, 220, 244, 0.16);
  border-radius: 17px;
  background:
    radial-gradient(circle at 16% 38%, rgba(82, 181, 219, 0.15), transparent 34%),
    linear-gradient(125deg, rgba(2, 10, 17, 0.97), rgba(8, 23, 33, 0.91));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
}

.armory-model-frame {
  position: relative;
  display: grid;
  min-height: 540px;
  overflow: hidden;
  border-right: 1px solid rgba(148, 220, 244, 0.12);
  background:
    linear-gradient(180deg, rgba(26, 58, 75, 0.08), rgba(0, 4, 8, 0.74)),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(147, 222, 245, 0.018) 43px 44px);
  place-items: center;
}

.armory-model-frame::before,
.armory-model-frame::after {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(122, 207, 237, 0.08);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.armory-model-frame::before {
  width: 380px;
  height: 380px;
}

.armory-model-frame::after {
  width: 290px;
  height: 290px;
  border-color: rgba(213, 170, 95, 0.08);
}

.armory-model-canvas {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 540px;
  cursor: grab;
}

.armory-model-canvas[hidden],
.armory-model-loader[hidden],
.armory-model-fallback[hidden],
.armory-model-load[hidden] {
  display: none !important;
}

.armory-model-canvas:active {
  cursor: grabbing;
}

.armory-model-canvas canvas {
  display: block;
  max-width: 100%;
}

.armory-model-loader {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
  background:
    radial-gradient(circle at center, rgba(8, 29, 42, 0.72) 0 22%, rgba(1, 7, 12, 0.86) 56%, rgba(0, 3, 7, 0.94) 100%),
    linear-gradient(135deg, rgba(88, 190, 226, 0.08), transparent 48%, rgba(213, 170, 95, 0.06));
  backdrop-filter: blur(4px);
}

.armory-model-progress {
  --model-progress: 0deg;
  position: relative;
  display: grid;
  width: 132px;
  height: 132px;
  margin-bottom: 8px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(3, 14, 22, 0.98) 0 58%, transparent 59%),
    conic-gradient(from -90deg, #d5aa5f 0deg, #8cdbf4 var(--model-progress), rgba(104, 170, 193, 0.12) var(--model-progress) 360deg);
  filter: drop-shadow(0 0 18px rgba(90, 196, 232, 0.2));
  place-items: center;
}

.armory-model-progress::before,
.armory-model-progress::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.armory-model-progress::before {
  inset: 10px;
  border: 1px solid rgba(148, 220, 244, 0.24);
  box-shadow: inset 0 0 24px rgba(72, 181, 219, 0.12);
}

.armory-model-progress::after {
  inset: -9px;
  border: 1px solid transparent;
  border-top-color: rgba(213, 170, 95, 0.7);
  border-bottom-color: rgba(126, 213, 243, 0.28);
  animation: armory-model-orbit 2.8s linear infinite;
}

.armory-model-progress span {
  position: relative;
  z-index: 1;
  color: var(--ivory);
  font-family: Georgia, serif;
  font-size: 29px;
  line-height: 1;
  text-shadow: 0 0 16px rgba(126, 213, 243, 0.38);
}

.armory-model-loader > strong {
  max-width: 360px;
  color: var(--ice);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 400;
}

.armory-model-loader > span {
  max-width: 360px;
  color: #6e8991;
  font-size: 11px;
  letter-spacing: 0.14em;
  line-height: 1.6;
  text-transform: uppercase;
}

.armory-model-fallback {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.armory-model-fallback img {
  width: 180px;
  height: 180px;
  margin-bottom: 20px;
  border: 4px solid rgba(213, 170, 95, 0.3);
  border-radius: 50%;
  filter: saturate(0.76) brightness(0.72);
  box-shadow: 0 0 60px rgba(78, 185, 224, 0.16);
}

.armory-model-fallback span,
.armory-model-fallback strong {
  display: block;
}

.armory-model-fallback span {
  color: #78939a;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.armory-model-fallback strong {
  margin-top: 6px;
  color: var(--ivory);
  font-family: Georgia, serif;
  font-size: 24px;
}

.armory-model-runes {
  position: absolute;
  right: 24px;
  bottom: 20px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 206, 238, 0.34), transparent);
  pointer-events: none;
}

.armory-model-copy {
  align-self: center;
  padding: 48px clamp(30px, 5vw, 68px);
}

.armory-model-copy h2 {
  max-width: 520px;
  margin: 7px 0 16px;
  color: var(--ivory);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
}

.armory-model-copy > p:not(.eyebrow):not(.armory-model-status) {
  max-width: 610px;
  margin: 0;
  color: #8ca0a6;
  font-size: 14px;
  line-height: 1.75;
}

.armory-model-copy ul {
  display: grid;
  gap: 9px;
  margin: 24px 0 28px;
  padding: 0;
  color: #667e85;
  font-size: 12px;
  list-style: none;
}

.armory-model-copy li::before {
  margin-right: 9px;
  color: var(--gold);
  content: "◇";
}

.armory-model-load {
  width: 100%;
  max-width: 330px;
}

.armory-model-load:disabled {
  cursor: wait;
  opacity: 0.72;
}

.armory-model-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

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

.armory-model-controls button {
  padding: 10px 13px;
  border: 1px solid rgba(148, 220, 244, 0.2);
  border-radius: 7px;
  color: #a8bcc1;
  background: rgba(3, 12, 19, 0.74);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.armory-model-controls button:hover {
  border-color: rgba(148, 220, 244, 0.46);
  color: var(--ice);
}

.armory-model-status {
  min-height: 18px;
  margin: 18px 0 0;
  color: #536970;
  font-size: 11px;
}

.armory-model-status[data-state="loading"] {
  color: var(--gold-light);
}

.armory-model-status[data-state="ready"] {
  color: var(--success);
}

.armory-model-status[data-state="error"] {
  color: var(--danger);
}

.armory-model-section.is-loading .armory-model-frame::before {
  animation: armory-model-pulse 1.7s ease-in-out infinite;
}

@keyframes armory-model-pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.96); }
  50% { opacity: 0.85; transform: scale(1.02); }
}

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

.armory-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.armory-stats article {
  padding: 18px 20px;
  border: 1px solid rgba(148, 220, 244, 0.11);
  border-radius: 11px;
  background: rgba(4, 13, 21, 0.72);
}

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

.armory-stats span {
  color: #667e85;
  font-size: 11px;
  text-transform: uppercase;
}

.armory-stats strong {
  margin: 8px 0 5px;
  color: #d9e5e7;
  font-family: Georgia, serif;
  font-size: 25px;
}

.armory-stats small {
  color: #53696f;
  font-size: 11px;
}

.pve-overview {
  margin-top: 28px;
  padding: clamp(24px, 4vw, 38px);
  overflow: hidden;
  border: 1px solid rgba(148, 220, 244, 0.14);
  border-radius: 17px;
  background:
    radial-gradient(circle at 86% 0, rgba(76, 171, 207, 0.1), transparent 34%),
    linear-gradient(145deg, rgba(3, 13, 21, 0.96), rgba(2, 8, 14, 0.94));
}

.pve-overview-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.pve-overview-header h2 {
  margin: 4px 0 0;
  font-size: clamp(31px, 4vw, 43px);
}

.pve-overview-header > small {
  max-width: 330px;
  color: #617a82;
  font-size: 11px;
  line-height: 1.6;
  text-align: right;
  text-transform: uppercase;
}

.pve-tab-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 28px;
  padding: 6px;
  border: 1px solid rgba(142, 213, 237, 0.12);
  border-radius: 13px;
  background: rgba(2, 9, 15, 0.7);
}

.pve-tab-list button {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #667d84;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.pve-tab-list button:hover,
.pve-tab-list button:focus-visible {
  color: #b7c9cd;
  border-color: rgba(142, 213, 237, 0.16);
  outline: none;
}

.pve-tab-list button[aria-selected="true"] {
  border-color: rgba(213, 170, 95, 0.28);
  color: var(--gold-light);
  background:
    radial-gradient(circle at 85% 0, rgba(104, 201, 233, 0.13), transparent 42%),
    rgba(15, 27, 33, 0.9);
  box-shadow: inset 0 0 18px rgba(93, 188, 221, 0.04);
}

.pve-tab-list span,
.pve-tab-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pve-tab-list span {
  font-family: Georgia, serif;
  font-size: 16px;
}

.pve-tab-list small {
  margin-top: 4px;
  color: #526970;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pve-tab-panel:focus {
  outline: none;
}

.pve-tab-panel[hidden] {
  display: none;
}

.pve-unavailable {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(213, 170, 95, 0.18);
  border-radius: 11px;
  background: rgba(29, 22, 13, 0.42);
}

.pve-unavailable > span {
  color: var(--gold-light);
  font-size: 27px;
}

.pve-unavailable strong,
.pve-unavailable p {
  display: block;
  margin: 0;
}

.pve-unavailable strong {
  color: var(--ivory);
  font-family: Georgia, serif;
  font-size: 17px;
}

.pve-unavailable p {
  margin-top: 6px;
  color: #768d93;
  font-size: 12px;
  line-height: 1.65;
}

.pve-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 230px)) 1fr;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 34px;
}

.pve-summary article {
  padding: 18px 20px;
  border: 1px solid rgba(138, 211, 236, 0.13);
  border-radius: 11px;
  background: rgba(4, 17, 26, 0.74);
}

.pve-summary article > span {
  color: #6e8990;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pve-summary article > strong {
  display: block;
  margin: 7px 0 12px;
  color: var(--ice);
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 400;
}

.pve-summary article > strong small {
  margin-left: 3px;
  color: #57717a;
  font-size: 15px;
}

.pve-summary article > div,
.pve-progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(103, 153, 169, 0.12);
}

.pve-summary article > div i,
.pve-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--ice));
  box-shadow: 0 0 14px rgba(115, 211, 242, 0.26);
}

.pve-summary > p {
  align-self: center;
  max-width: 520px;
  margin: 0;
  padding-left: 18px;
  color: #61787f;
  font-size: 12px;
  line-height: 1.75;
}

.pve-subsection + .pve-subsection {
  margin-top: 38px;
  padding-top: 34px;
  border-top: 1px solid rgba(141, 211, 234, 0.1);
}

.pve-subsection-title {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
}

.pve-subsection-title > span {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(213, 170, 95, 0.26);
  border-radius: 50%;
  color: var(--gold-light);
  background: rgba(31, 24, 14, 0.54);
  font-size: 17px;
  place-items: center;
}

.pve-subsection-title small,
.pve-subsection-title h3 {
  display: block;
  margin: 0;
}

.pve-subsection-title small {
  color: #587179;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pve-subsection-title h3 {
  margin-top: 3px;
  color: var(--ivory);
  font-family: Georgia, serif;
  font-size: 23px;
  font-weight: 400;
}

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

.pve-instance-card,
.pve-dungeon-card {
  overflow: hidden;
  border: 1px solid rgba(137, 207, 230, 0.12);
  border-radius: 12px;
  background: rgba(2, 10, 17, 0.84);
}

.pve-instance-art {
  position: relative;
  min-height: 136px;
  overflow: hidden;
}

.pve-instance-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 8, 13, 0.02), rgba(2, 8, 13, 0.94));
  content: "";
}

.pve-instance-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) brightness(0.72);
  transition: filter 180ms ease, transform 320ms ease;
}

.pve-instance-card:hover .pve-instance-art img {
  filter: saturate(0.94) brightness(0.84);
  transform: scale(1.025);
}

.pve-instance-art > div {
  position: absolute;
  right: 16px;
  bottom: 14px;
  left: 16px;
  z-index: 1;
}

.pve-instance-art small,
.pve-instance-art h4,
.pve-instance-art span {
  display: block;
  margin: 0;
}

.pve-instance-art small {
  color: #91bdcc;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pve-instance-art h4 {
  margin-top: 3px;
  color: #f1f5f4;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.1;
}

.pve-instance-art span {
  margin-top: 5px;
  color: #7a8d91;
  font-size: 10px;
  text-transform: uppercase;
}

.pve-difficulty-list {
  display: grid;
  gap: 1px;
  padding: 8px;
}

.pve-difficulty {
  padding: 10px 11px;
  border-radius: 7px;
  background: rgba(8, 22, 30, 0.68);
}

.pve-difficulty > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pve-difficulty > div:first-child span,
.pve-difficulty > div:first-child strong {
  font-size: 10px;
  text-transform: uppercase;
}

.pve-difficulty > div:first-child span {
  color: #82999f;
}

.pve-difficulty > div:first-child strong {
  color: #50666d;
  font-weight: 600;
}

.pve-difficulty.is-complete > div:first-child strong {
  color: var(--success);
}

.pve-difficulty > small {
  display: block;
  margin: 5px 0 7px;
  color: #536970;
  font-size: 10px;
}

.pve-progress-track {
  height: 3px;
}

.pve-dungeon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pve-dungeon-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  min-height: 92px;
}

.pve-dungeon-card > img {
  width: 110px;
  height: 100%;
  min-height: 92px;
  object-fit: cover;
  filter: saturate(0.76) brightness(0.7);
}

.pve-dungeon-copy {
  align-self: center;
  min-width: 0;
  padding: 12px 14px;
}

.pve-dungeon-copy > small,
.pve-dungeon-copy h4 {
  display: block;
  margin: 0;
}

.pve-dungeon-copy > small {
  color: #58727a;
  font-size: 9px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pve-dungeon-copy h4 {
  margin: 3px 0 9px;
  overflow: hidden;
  color: #dce8e9;
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pve-dungeon-difficulties {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pve-dungeon-difficulties > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border: 1px solid rgba(121, 182, 202, 0.12);
  border-radius: 5px;
  color: #617980;
  background: rgba(5, 17, 24, 0.72);
  font-size: 9px;
}

.pve-dungeon-difficulties > span.is-complete {
  border-color: rgba(91, 188, 143, 0.22);
  color: #8fd1af;
  background: rgba(20, 51, 39, 0.38);
}

.pve-dungeon-difficulties b,
.pve-dungeon-difficulties em {
  font: inherit;
  font-style: normal;
}

.pve-dungeon-difficulties em {
  color: #9bb0b5;
}

.pve-art-credit {
  margin: 20px 0 0;
  color: #42575e;
  font-size: 10px;
  text-align: right;
}

.armory-equipment,
.arena-overview {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid rgba(148, 220, 244, 0.14);
  border-radius: 16px;
  background: rgba(2, 9, 15, 0.84);
}

.armory-equipment > header,
.arena-overview > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.armory-equipment h2,
.arena-overview h2 {
  margin: 3px 0 0;
  font-size: 31px;
}

.armory-equipment > header > small {
  color: #526970;
  font-size: 11px;
}

.armory-paperdoll {
  display: grid;
  grid-template-columns: minmax(245px, 1fr) 260px minmax(245px, 1fr);
  gap: 18px;
  align-items: stretch;
}

.armory-slot-column {
  display: grid;
  gap: 8px;
}

.armory-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 58px;
  padding: 5px;
  border: 1px solid rgba(148, 220, 244, 0.1);
  border-radius: 9px;
  color: #bcc9cc;
  background: rgba(4, 14, 22, 0.72);
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease;
}

.armory-item:hover,
.armory-item:focus-visible {
  z-index: 40;
  border-color: currentColor;
  background: rgba(10, 30, 42, 0.8);
  outline: none;
}

.armory-item-icon {
  display: grid;
  width: 48px;
  height: 48px;
  border: 2px solid currentColor;
  border-radius: 8px;
  background: #071018;
  object-fit: cover;
  place-items: center;
}

.armory-item-summary small,
.armory-item-summary strong,
.armory-item-summary em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.armory-item-summary small {
  color: #526a71;
  font-size: 10px;
  text-transform: uppercase;
}

.armory-item-summary strong {
  margin: 3px 0;
  color: currentColor;
  font-size: 13px;
}

.armory-item-summary em {
  color: #789097;
  font-size: 10px;
  font-style: normal;
}

.armory-item-tooltip {
  position: absolute;
  top: -6px;
  left: calc(100% + 12px);
  z-index: 60;
  display: grid;
  width: 310px;
  gap: 4px;
  padding: 17px 18px;
  visibility: hidden;
  border: 1px solid rgba(151, 220, 241, 0.24);
  border-radius: 10px;
  color: #c7d5d8;
  background:
    radial-gradient(circle at 90% 0, rgba(83, 180, 213, 0.12), transparent 36%),
    rgba(2, 8, 13, 0.98);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.72), inset 0 0 24px rgba(101, 195, 225, 0.035);
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateX(7px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.armory-right-slots .armory-item-tooltip {
  right: calc(100% + 12px);
  left: auto;
  transform: translateX(-7px);
}

.armory-weapons .armory-item-tooltip {
  top: auto;
  bottom: calc(100% + 11px);
  left: 50%;
  transform: translate(-50%, 7px);
}

.armory-item:hover .armory-item-tooltip,
.armory-item:focus-visible .armory-item-tooltip {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.wowhead-tooltips-ready .armory-item-tooltip {
  display: none;
}

.armory-right-slots .armory-item:hover .armory-item-tooltip,
.armory-right-slots .armory-item:focus-visible .armory-item-tooltip {
  transform: translateX(0);
}

.armory-weapons .armory-item:hover .armory-item-tooltip,
.armory-weapons .armory-item:focus-visible .armory-item-tooltip {
  transform: translate(-50%, 0);
}

.armory-item-tooltip > span {
  display: block;
  min-width: 0;
}

.armory-tooltip-name {
  margin-bottom: 2px;
  color: currentColor;
  font-family: Georgia, serif;
  font-size: 16px;
  line-height: 1.2;
}

.armory-tooltip-binding {
  color: #c8d7da;
}

.armory-tooltip-pair {
  display: flex !important;
  justify-content: space-between;
  gap: 15px;
}

.armory-tooltip-pair > span:last-child {
  flex: none;
  color: #8da0a5;
  text-align: right;
}

.armory-tooltip-stat {
  color: #74d681;
}

.armory-tooltip-socket {
  display: flex !important;
  align-items: center;
  gap: 7px;
  color: #9aaeb3;
}

.armory-tooltip-socket i {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(147, 216, 239, 0.38);
  border-radius: 50%;
  background: rgba(74, 134, 153, 0.34);
  box-shadow: 0 0 7px rgba(104, 201, 233, 0.22);
}

.armory-tooltip-description {
  margin-top: 4px;
  color: #d7a95e;
  font-style: italic;
}

.armory-tooltip-hint {
  margin-top: 7px;
  padding-top: 8px;
  border-top: 1px solid rgba(145, 211, 233, 0.1);
  color: #536a71;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.armory-item.is-empty {
  color: #43585e;
  background: rgba(3, 9, 14, 0.48);
}

.quality-0 { color: #9d9d9d; }
.quality-1 { color: #ffffff; }
.quality-2 { color: #1eff00; }
.quality-3 { color: #3f9fff; }
.quality-4 { color: #b26bff; }
.quality-5 { color: #ff9d00; }
.quality-6 { color: #e6cc80; }
.quality-7 { color: #00ccff; }

.armory-silhouette {
  position: relative;
  display: grid;
  min-height: 100%;
  padding: 28px 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 220, 244, 0.14);
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 40%, rgba(104, 201, 233, 0.17), transparent 38%),
    linear-gradient(180deg, rgba(11, 30, 42, 0.82), rgba(2, 8, 13, 0.94));
  text-align: center;
  place-items: center;
}

.armory-silhouette::before {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(148, 220, 244, 0.07);
  border-radius: 50%;
  content: "";
}

.armory-silhouette img {
  position: relative;
  width: min(100%, 220px);
  height: auto;
  border: 4px solid rgba(213, 170, 95, 0.34);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 45px rgba(104, 201, 233, 0.18);
}

.armory-silhouette span,
.armory-silhouette strong {
  position: relative;
  display: block;
}

.armory-silhouette span {
  color: #b7c9cd;
  font-family: Georgia, serif;
  font-size: 20px;
}

.armory-silhouette strong {
  color: var(--gold);
  font-size: 11px;
  text-transform: uppercase;
}

.armory-weapons {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.arena-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.arena-grid article {
  padding: 22px;
  border: 1px solid rgba(148, 220, 244, 0.1);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(12, 31, 42, 0.62), rgba(3, 10, 16, 0.7));
}

.arena-grid span,
.arena-grid strong,
.arena-grid small,
.arena-grid em {
  display: block;
}

.arena-grid span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.arena-grid strong {
  margin: 8px 0 2px;
  font-family: Georgia, serif;
  font-size: 34px;
}

.arena-grid small,
.arena-grid em {
  color: #5e757b;
  font-size: 11px;
  font-style: normal;
}

.arena-grid p {
  margin: 18px 0 4px;
  color: #b8c6c9;
  font-size: 14px;
}

@media (max-width: 900px) {
  body::before {
    background:
      linear-gradient(90deg, rgba(2, 7, 13, 0.93), rgba(2, 7, 13, 0.74)),
      linear-gradient(180deg, rgba(2, 7, 13, 0.12), rgba(2, 7, 13, 0.97) 78%),
      url("fortress-hero.png") 64% top / auto 760px no-repeat;
  }

  main {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 58px;
  }

  .hero-copy {
    max-width: none;
  }

  .register-card {
    width: min(100%, 590px);
  }

  .account-main {
    grid-template-columns: 1fr;
  }

  .site-header {
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px 0;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .download-feature-card {
    grid-template-columns: auto 1fr;
  }

  .download-feature-card .download-button {
    grid-column: 1 / -1;
  }

  .addon-grid {
    grid-template-columns: 1fr;
  }

  .ranking-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ranking-columns {
    display: none;
  }

  .ranking-row {
    grid-template-columns: minmax(260px, 1fr) 62px 90px 80px;
  }

  .ranking-row > :nth-child(2),
  .ranking-row > :nth-child(5),
  .ranking-row > :nth-child(7) {
    display: none;
  }

  .armory-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .pve-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pve-summary > p {
    grid-column: 1 / -1;
    padding: 4px 0 0;
  }

  .pve-raid-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .armory-model-frame {
    min-height: 500px;
    border-right: 0;
    border-bottom: 1px solid rgba(148, 220, 244, 0.12);
  }

  .armory-model-canvas {
    min-height: 500px;
  }

  .armory-paperdoll {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .armory-silhouette {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 340px;
  }

  .armory-weapons {
    grid-column: 1 / -1;
  }
}

@media (max-width: 580px) {
  body::before {
    background:
      linear-gradient(180deg, rgba(2, 7, 13, 0.58), rgba(2, 7, 13, 0.96) 34%, rgba(2, 7, 13, 1) 100%),
      url("fortress-hero.png") 68% top / auto 470px no-repeat;
  }

  .page-shell {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 92px;
  }

  .brand small,
  .server-status {
    display: none;
  }

  .header-right {
    overflow-x: auto;
  }

  .site-nav {
    width: max-content;
  }

  .nav-link {
    padding: 7px 8px;
    font-size: 12px;
  }

  .server-status {
    font-size: 0;
  }

  .header-actions {
    gap: 10px;
  }

  .account-link {
    padding: 8px 10px;
    font-size: 13px;
  }

  main {
    padding: 48px 0 60px;
  }

  .hero-copy {
    padding-left: 16px;
  }

  h1 {
    font-size: 49px;
  }

  .realm-details div {
    padding: 0 12px;
  }

  .realm-details strong {
    font-size: 14px;
  }

  .realmlist-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .realm-status-heading {
    grid-template-columns: auto 1fr;
  }

  .realm-status-heading > small {
    display: none;
  }

  .register-card {
    padding: 27px 21px;
    border-radius: 14px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .admin-section-heading {
    display: block;
  }

  .account-search {
    margin-top: 22px;
  }

  .download-feature-card {
    grid-template-columns: 1fr;
  }

  .download-emblem {
    width: 68px;
    height: 68px;
  }

  .instruction-grid {
    grid-template-columns: 1fr;
  }

  .admin-upload-card,
  .upload-form,
  .addon-card {
    grid-template-columns: 1fr;
  }

  .admin-upload-card {
    padding: 22px;
  }

  .addon-image {
    height: 190px;
  }

  .ranking-main,
  .armory-main {
    padding-top: 38px;
  }

  .ranking-filters {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .ranking-row {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 8px;
    padding: 10px 12px;
  }

  .ranking-row > :nth-child(4),
  .ranking-row > :nth-child(6) {
    display: none;
  }

  .ranking-character {
    grid-template-columns: 22px 44px minmax(0, 1fr);
    gap: 9px;
  }

  .ranking-character img {
    width: 44px;
    height: 44px;
  }

  .ranking-character em {
    display: none;
  }

  .ranking-character small {
    max-width: 190px;
  }

  .ranking-pagination {
    grid-template-columns: 1fr 1fr;
  }

  .ranking-pagination strong {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }

  .armory-identity {
    grid-template-columns: 1fr;
    padding: 24px;
    text-align: center;
  }

  .armory-identity > img {
    margin: 0 auto;
  }

  .armory-identity-badges {
    justify-content: center;
  }

  .armory-item-level {
    text-align: center;
  }

  .armory-model-frame,
  .armory-model-canvas {
    min-height: 420px;
  }

  .armory-model-copy {
    padding: 30px 24px;
  }

  .armory-model-copy h2 {
    font-size: 34px;
  }

  .armory-model-load {
    max-width: none;
  }

  .armory-stats,
  .arena-grid,
  .armory-paperdoll,
  .armory-weapons {
    grid-template-columns: 1fr;
  }

  .pve-overview {
    padding: 20px;
  }

  .pve-overview-header {
    display: block;
  }

  .pve-overview-header > small {
    display: block;
    margin-top: 9px;
    text-align: left;
  }

  .pve-tab-list {
    grid-template-columns: 1fr;
  }

  .pve-tab-list button {
    padding: 11px 13px;
  }

  .pve-summary,
  .pve-raid-grid,
  .pve-dungeon-grid {
    grid-template-columns: 1fr;
  }

  .pve-summary > p {
    grid-column: auto;
  }

  .pve-dungeon-card {
    grid-template-columns: 92px 1fr;
  }

  .pve-dungeon-card > img {
    width: 92px;
  }

  .armory-equipment,
  .arena-overview {
    padding: 20px;
  }

  .armory-equipment > header {
    display: block;
  }

  .armory-equipment > header > small {
    display: block;
    margin-top: 8px;
  }

  .armory-silhouette,
  .armory-left-slots,
  .armory-right-slots,
  .armory-weapons {
    grid-column: 1;
  }

  .armory-silhouette {
    grid-row: auto;
    min-height: 300px;
  }

  .armory-item-tooltip,
  .armory-right-slots .armory-item-tooltip,
  .armory-weapons .armory-item-tooltip {
    top: calc(100% + 8px);
    right: auto;
    bottom: auto;
    left: 0;
    width: min(310px, calc(100vw - 68px));
    transform: translateY(7px);
  }

  .armory-item:hover .armory-item-tooltip,
  .armory-item:focus-visible .armory-item-tooltip,
  .armory-right-slots .armory-item:hover .armory-item-tooltip,
  .armory-right-slots .armory-item:focus-visible .armory-item-tooltip,
  .armory-weapons .armory-item:hover .armory-item-tooltip,
  .armory-weapons .armory-item:focus-visible .armory-item-tooltip {
    transform: translateY(0);
  }

  footer {
    display: block;
    line-height: 1.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
