/* Icecrown — Premium WotLK Portal Design System */

:root {
  --void: #040408;
  --abyss: #0a0a12;
  --slate: #12121c;
  --graphite: #1a1a28;
  --surface: #222233;
  --surface-hover: #2a2a3d;
  --violet-deep: #2e1065;
  --violet-royal: #5b21b6;
  --arcane: #6366f1;
  --frost: #93c5fd;
  --gold: #d4af37;
  --gold-soft: #e8cc7a;
  --gold-dim: #8a7340;
  --silver: #c8d0dc;
  --text: #f1f5f9;
  --text-soft: #a8b4c4;
  --text-dim: #64748b;
  --success: #34d399;
  --danger: #f87171;
  --alliance: #3b82f6;
  --horde: #dc2626;
  --line: rgba(212, 175, 55, 0.18);
  --line-strong: rgba(212, 175, 55, 0.42);
  --glow-gold: 0 0 60px rgba(212, 175, 55, 0.08);
  --glow-violet: 0 0 80px rgba(91, 33, 182, 0.15);
  --font-display: "Marcellus", "Palatino Linotype", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --container: min(1280px, calc(100% - 3rem));
  --header-h: 72px;
  --verify-banner-h: 0px;
  --page-top: var(--header-h);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body.has-verify-banner {
  --verify-banner-h: 46px;
  --page-top: calc(var(--header-h) + var(--verify-banner-h));
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--void);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: var(--container); margin-inline: auto; position: relative; z-index: 1; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; z-index: 1; }
.section--tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}

.eyebrow::after {
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-wrap: balance;
}

.display-xl { font-size: clamp(2.75rem, 5.5vw, 4.5rem); }
.display-lg { font-size: clamp(2rem, 3.5vw, 3rem); }
.display-md { font-size: clamp(1.5rem, 2.5vw, 2.125rem); }
.display-sm { font-size: 1.25rem; }

.lead {
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 54ch;
}

.text-muted { color: var(--text-soft); }
.text-dim { color: var(--text-dim); }
.text-gold { color: var(--gold-soft); }

/* Grid */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Frame panel — game UI container */
.panel {
  position: relative;
  background:
    linear-gradient(165deg, rgba(34, 34, 51, 0.95) 0%, rgba(18, 18, 28, 0.98) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--glow-gold), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line-strong);
  pointer-events: none;
}

.panel::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.panel::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.panel--pad { padding: clamp(1.25rem, 3vw, 2rem); }
.panel--glow { box-shadow: var(--glow-violet), var(--glow-gold); }

.divider {
  height: 1px;
  margin: 2rem 0;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

/* Cards */
.card {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--graphite);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.06) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), var(--glow-gold);
}

.card:hover::before { opacity: 1; }

.card__body { padding: 1.5rem; }
.card__media {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, var(--violet-deep) 0%, var(--abyss) 50%, rgba(99, 102, 241, 0.2) 100%);
  position: relative;
  overflow: hidden;
}

.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--graphite) 0%, transparent 50%);
}

.card__tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 50px;
  padding: 0 1.75rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: transform 0.25s var(--ease-out), filter 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }

.btn--gold {
  color: #1a1204;
  background: linear-gradient(180deg, #f0d78c 0%, #c9a227 45%, #8a7020 100%);
  box-shadow: 0 4px 24px rgba(212, 175, 55, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn--arcane {
  color: var(--text);
  background: linear-gradient(180deg, #4c1d95 0%, #312e81 100%);
  box-shadow: 0 4px 24px rgba(91, 33, 182, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn--ghost {
  color: var(--silver);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  clip-path: none;
  border-radius: 2px;
}

.btn--ghost:hover {
  border-color: var(--line-strong);
  background: rgba(212, 175, 55, 0.06);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
}

.badge--live { color: var(--success); border-color: rgba(52, 211, 153, 0.35); }
.badge--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-live 2s ease infinite;
}

.badge--offline { color: var(--text-dim); border-color: rgba(255, 255, 255, 0.12); }
.badge--offline::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6b7280;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-h);
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out), backdrop-filter 0.4s;
}

.site-header.is-scrolled {
  background: rgba(4, 4, 8, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.brand__sigil {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.875rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 0.25s, background 0.25s;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--gold-soft);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.nav__actions-wrap {
  display: flex;
  align-items: center;
  margin-left: 0.75rem;
  padding-left: 0.75rem;
  border-left: 1px solid var(--line);
}

.nav-armory-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 0.125rem;
}

.nav-armory-search {
  position: relative;
}

.nav-armory-search__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-armory-search__toggle:hover,
.nav-armory-search.is-open .nav-armory-search__toggle {
  color: var(--gold-soft);
  border-color: var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.nav-armory-search__icon {
  display: block;
}

.nav-armory-search__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 220;
  width: min(340px, calc(100vw - 2rem));
  padding: 0.65rem;
  border: 1px solid var(--line);
  background: rgba(8, 8, 12, 0.98);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
}

.nav-armory-search__form {
  margin: 0;
}

.nav-armory-search__input {
  width: 100%;
  min-height: 42px;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-size: 0.875rem;
}

.nav-armory-search__input:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: var(--glow-gold);
}

.nav-armory-search__input::placeholder {
  color: var(--text-dim);
}

.nav-armory-search__results {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.nav-armory-search__results:empty {
  display: none;
}

.nav-armory-search__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease;
}

.nav-armory-search__item:first-child {
  border-top: 0;
}

.nav-armory-search__item:hover,
.nav-armory-search__item.is-active {
  background: rgba(201, 162, 39, 0.12);
}

.nav-armory-search__icon-class {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  object-fit: cover;
}

.nav-armory-search__name {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-armory-search__level {
  flex-shrink: 0;
  min-width: 2rem;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-soft);
  text-align: center;
}

.nav-armory-search__empty {
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
  border: 1px dashed var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.nav-armory-search__loading {
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-align: center;
}

.nav-drop { position: relative; }

.nav-drop__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.nav-drop__trigger::after {
  content: "";
  display: inline-block;
  width: 0.35rem;
  height: 0.35rem;
  margin-left: 0.35rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
  opacity: 0.45;
  vertical-align: middle;
}

.nav-drop__menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 210;
  min-width: 9.5rem;
  margin: 0;
  padding: 0.35rem 0 0.25rem;
  list-style: none;
  background: rgba(8, 8, 12, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  transition-delay: 0s, 0s, 0.15s;
}

.nav-drop.is-open .nav-drop__menu,
.nav-drop:hover .nav-drop__menu,
.nav-drop:focus-within .nav-drop__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.nav-drop__menu a {
  display: block;
  padding: 0.4rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-soft);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.nav-drop__menu a:hover {
  color: var(--gold-soft);
  background: rgba(212, 175, 55, 0.06);
}

.nav-user__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: var(--gold-soft);
}

.nav-user__avatar {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: var(--graphite);
  clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
}

.nav-user .nav-drop__menu {
  left: auto;
  right: 0;
  min-width: 10.5rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--gold-soft);
  transition: transform 0.3s;
}

@media (max-width: 960px) {
  .nav__list {
    position: fixed;
    top: var(--page-top);
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem 1.5rem max(1.5rem, env(safe-area-inset-bottom));
    background: rgba(4, 4, 8, 0.97);
    backdrop-filter: blur(16px);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav__list.is-open { transform: translateX(0); }
  .nav-toggle { display: block; }

  .nav-drop__menu {
    position: static;
    min-width: 0;
    margin: 0.25rem 0 0.5rem 0.75rem;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .nav-drop__menu a {
    padding: 0.35rem 0;
    font-size: 0.875rem;
    color: var(--text-dim);
  }

  .nav-drop__trigger::after { display: none; }

  .nav-armory-search-wrap {
    margin: 0.75rem 0 0;
    width: 100%;
  }

  .nav-armory-search__panel {
    position: static;
    width: 100%;
    margin-top: 0.5rem;
    box-shadow: none;
  }

  .nav-armory-search__toggle {
    width: 100%;
    justify-content: flex-start;
    gap: 0.65rem;
    padding: 0 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .nav-armory-search__toggle::after {
    content: "Поиск персонажа";
  }

  .nav__actions-wrap {
    width: 100%;
    margin: 1rem 0 0;
    padding: 1rem 0 0;
    border: none;
    border-top: 1px solid var(--line);
  }

  .nav__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.625rem;
  }

  .nav__actions .btn,
  .nav-user__trigger {
    width: 100%;
    justify-content: center;
  }

  .nav-user .nav-drop__menu {
    margin-left: 0;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--page-top);
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    var(--hero-poster, none) center/cover no-repeat,
    linear-gradient(180deg, var(--void) 0%, var(--abyss) 100%);
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.02);
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 4, 8, 0.92) 0%, rgba(4, 4, 8, 0.55) 45%, rgba(4, 4, 8, 0.75) 100%),
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(99, 102, 241, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(91, 33, 182, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, rgba(4, 4, 8, 0.35) 0%, rgba(4, 4, 8, 0.82) 100%);
}

.hero__fog {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.004' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)' opacity='0.08'/%3E%3C/svg%3E");
  opacity: 0.5;
  animation: fog-drift 30s linear infinite;
}

@keyframes fog-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-5%); }
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.5) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 4;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__title em {
  font-style: normal;
  color: var(--gold-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}

.hero__stats {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  background: linear-gradient(165deg, rgba(28, 28, 42, 0.9), rgba(10, 10, 18, 0.95));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
}

.stat-hud {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 2px solid var(--gold-dim);
  transition: border-color 0.3s, background 0.3s;
}

.stat-hud:hover {
  border-left-color: var(--gold-soft);
  background: rgba(0, 0, 0, 0.65);
}

.stat-hud--realmlist {
  grid-template-columns: auto 1fr auto;
  align-items: start;
}

.stat-hud__realmlist-wrap {
  min-width: 0;
}

.stat-hud__realmlist {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-soft);
  word-break: break-all;
}

.stat-hud__icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--gold-soft);
}

.stat-hud__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stat-hud__value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text);
}

.stat-hud__meta {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-dim);
  text-align: right;
}

@media (max-width: 960px) {
  .hero__layout { grid-template-columns: 1fr; }
}

/* Section headers */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.section-head__link {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dim);
  transition: color 0.25s;
}

.section-head__link:hover { color: var(--gold-soft); }

/* Feature strip */
.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  color: var(--gold-soft);
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.04);
}

.feature-icon svg { width: 22px; height: 22px; }

/* Page head (inner pages) */
.page-hero {
  padding: calc(var(--page-top) + 3rem) 0 2.5rem;
  background:
    linear-gradient(180deg, rgba(91, 33, 182, 0.08) 0%, transparent 100%),
    var(--abyss);
  border-bottom: 1px solid var(--line);
}

.page-hero__title { margin: 1rem 0; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.breadcrumbs a:hover { color: var(--gold-soft); }
.breadcrumbs span { color: var(--text-dim); }

/* Tables */
.table-wrap { overflow-x: auto; }

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.table th {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(0, 0, 0, 0.2);
}

.table tbody tr {
  transition: background 0.2s;
}

.table tbody tr:hover {
  background: rgba(212, 175, 55, 0.03);
}

/* Forms */
.form { display: grid; gap: 1.25rem; max-width: 440px; }

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding: 4rem 0 2rem;
  background: var(--void);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
}

.site-footer h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 1.25rem;
}

.site-footer a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.875rem;
  color: var(--text-soft);
  transition: color 0.25s, padding-left 0.25s;
}

.site-footer a:hover {
  color: var(--gold-soft);
  padding-left: 0.35rem;
}

.site-footer__bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

@media (max-width: 960px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 3.5rem);
}

.cta-band__realmlist code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--gold-soft);
}

.cta-band__glow {
  position: absolute;
  top: 50%;
  left: 30%;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(91, 33, 182, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Legacy aliases for existing views */
.glass {
  position: relative;
  background: linear-gradient(165deg, rgba(34, 34, 51, 0.95) 0%, rgba(18, 18, 28, 0.98) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--glow-gold);
}

.stat-widget {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.35);
  border-left: 2px solid var(--gold-dim);
}

.stat-widget__value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-soft);
}

.page-head {
  padding: calc(var(--page-top) + 3rem) 0 2.5rem;
  background: linear-gradient(180deg, rgba(91, 33, 182, 0.08) 0%, transparent 100%), var(--abyss);
  border-bottom: 1px solid var(--line);
}

.btn--primary { color: var(--text); background: linear-gradient(180deg, #4c1d95 0%, #312e81 100%); clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%); min-height: 50px; padding: 0 1.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; display: inline-flex; align-items: center; }
.btn--secondary { color: var(--silver); background: rgba(255,255,255,0.03); border: 1px solid var(--line); min-height: 50px; padding: 0 1.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; display: inline-flex; align-items: center; }
.badge--online { color: var(--success); border-color: rgba(52, 211, 153, 0.35); }

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__media--link { display: block; }

.card--news .card__media { aspect-ratio: 16/10; }

/* Page banner with photo */
.page-banner {
  position: relative;
  min-height: 80px;
  margin-top: var(--page-top);
  display: flex;
  align-items: center;
  background: var(--abyss) center/cover no-repeat;
  background-image: linear-gradient(90deg, rgba(4, 4, 8, 0.88) 0%, rgba(4, 4, 8, 0.55) 45%, rgba(4, 4, 8, 0.75) 100%), var(--banner-image, none);
  border-bottom: 1px solid var(--line);
}

.page-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 4, 8, 0.35) 0%, transparent 100%);
  pointer-events: none;
}

.page-banner__content {
  position: relative;
  z-index: 1;
  padding: 0.875rem 0;
}

.page-banner .eyebrow {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
}

.page-banner .eyebrow::before,
.page-banner .eyebrow::after {
  width: 1.25rem;
}

.page-banner .display-lg {
  margin: 0.2rem 0 0;
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  line-height: 1.15;
}

.page-banner .lead {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  max-width: 42rem;
}

.page-banner .breadcrumbs {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

/* Split layouts */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.split--reverse .split__media { order: 2; }

.split__media img,
.split__media .media-frame img {
  width: 100%;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}

.media-frame {
  position: relative;
  padding: 0.75rem;
  background: linear-gradient(165deg, rgba(34,34,51,.8), rgba(10,10,18,.95));
  border: 1px solid var(--line);
}

.media-frame::before,
.media-frame::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line-strong);
}

.media-frame::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.media-frame::after { bottom: 0; right: 0; border-left: none; border-top: none; }

@media (max-width: 900px) {
  .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* Auth split */
.auth-split {
  min-height: calc(100vh - var(--page-top));
  margin-top: var(--page-top);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.auth-split__art {
  position: relative;
  min-height: 320px;
  background: center/cover no-repeat;
}

.auth-split__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--void));
}

.auth-split__form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem clamp(1.5rem, 4vw, 4rem);
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-card__submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.auth-card__footer {
  margin: 1rem 0 0;
  text-align: center;
}

.auth-alert {
  margin-bottom: 1rem;
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
}

.auth-notice {
  margin-bottom: 1rem;
  padding: 0.75rem 0.875rem;
  font-size: 0.875rem;
  color: #86efac;
  border: 1px solid rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
}

.auth-code__hint {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.auth-code__input {
  letter-spacing: 0.35em;
  text-align: center;
  font-size: 1.25rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
}

.auth-code__resend {
  margin: 1rem auto 0;
  max-width: 420px;
  text-align: center;
}

.auth-code__resend-btn {
  width: 100%;
  justify-content: center;
}

.auth-recover {
  margin: 1rem auto 0;
  max-width: 420px;
}

.auth-recover__summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.auth-recover__hint {
  margin: 0.75rem 0 1rem;
  font-size: 0.875rem;
}

.verify-banner {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 199;
  height: var(--verify-banner-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(26, 26, 40, 0.98) 0%, rgba(14, 14, 22, 0.96) 100%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.verify-banner__inner {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
}

.verify-banner__icon-wrap {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.verify-banner__icon-wrap svg {
  width: 1rem;
  height: 1rem;
  color: var(--gold-soft);
}

.verify-banner__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
}

.verify-banner__title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.verify-banner__text {
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.verify-banner__action {
  flex-shrink: 0;
  min-height: 34px;
  padding-inline: 1rem;
  white-space: nowrap;
}

@media (max-width: 720px) {
  body.has-verify-banner {
    --verify-banner-h: 52px;
  }

  .verify-banner__inner {
    gap: 0.625rem;
  }

  .verify-banner__text {
    display: none;
  }

  .verify-banner__action {
    padding-inline: 0.75rem;
    font-size: 0.625rem;
  }
}

.auth-split__art--fallback {
  background:
    radial-gradient(ellipse at 70% 20%, rgba(91, 33, 182, 0.35), transparent 55%),
    linear-gradient(165deg, #1a1035 0%, #0a0a12 100%);
}

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-split__art { min-height: 220px; }
  .auth-split__art::after { background: linear-gradient(0deg, var(--void), transparent); }
}

/* Bento feature grid */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.bento__item {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  grid-column: span 4;
  border: 1px solid var(--line);
}

.bento__item--wide { grid-column: span 8; }
.bento__item--tall { min-height: 320px; }

.bento__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
  transition: transform .6s var(--ease-out), opacity .6s;
}

.bento__item:hover img { transform: scale(1.05); opacity: .55; }

.bento__content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(0deg, rgba(4,4,8,.95) 0%, rgba(4,4,8,.2) 70%);
}

@media (max-width: 900px) {
  .bento__item, .bento__item--wide { grid-column: span 12; }
}

/* Podium rankings */
.podium {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.podium__slot {
  position: relative;
  text-align: center;
  padding: 2rem 1rem 1.5rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.06) 0%, rgba(0, 0, 0, 0.45) 100%);
  overflow: hidden;
}

.podium__slot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, rgba(212, 175, 55, 0.12), transparent 65%);
  pointer-events: none;
}

.podium__slot--first {
  order: 2;
  min-height: 300px;
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), var(--glow-gold);
}

.podium__slot--second { order: 1; min-height: 250px; }
.podium__slot--third { order: 3; min-height: 230px; }

.podium__slot--gold { border-top: 3px solid #e8cc7a; }
.podium__slot--silver { border-top: 3px solid #c8d0dc; }
.podium__slot--bronze { border-top: 3px solid #b87333; }

.podium__medal {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a1204;
  background: linear-gradient(180deg, #f0d78c 0%, #c9a227 100%);
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 50%;
}

.podium__slot--silver .podium__medal {
  background: linear-gradient(180deg, #e8edf4 0%, #9aa8b8 100%);
}

.podium__slot--bronze .podium__medal {
  background: linear-gradient(180deg, #d4a574 0%, #8b5a2b 100%);
}

.podium__avatar {
  width: 80px;
  height: 80px;
  margin: 0.5rem auto 1rem;
  border: 2px solid var(--class-color, var(--line-strong));
  object-fit: cover;
  border-radius: 4px;
  background: var(--graphite);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.podium__emblem {
  width: 80px;
  height: 80px;
  margin: 0.5rem auto 1rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(212, 175, 55, 0.06);
  color: var(--gold-soft);
  border-radius: 4px;
}

.podium__emblem svg {
  width: 2rem;
  height: 2rem;
}

.podium__emblem--arena {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: var(--glow-gold);
}

.podium__stat {
  margin: 0.35rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--gold-soft);
}

.ranking-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.35rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.ranking-tabs__link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  border: 1px solid transparent;
  background: transparent;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.ranking-tabs__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.ranking-tabs__link.is-active {
  color: var(--gold-soft);
  border-color: var(--line-strong);
  background: rgba(212, 175, 55, 0.1);
  box-shadow: var(--glow-gold);
}

/* Forum */
.forum-category { margin-bottom: 2.5rem; }
.forum-category__head { margin-bottom: 1rem; }
.forum-category__head .display-sm { margin: 0 0 0.35rem; }

.forum-board-list {
  display: grid;
  gap: 0.75rem;
}

.forum-board-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.35rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.forum-board-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--glow-gold);
  transform: translateY(-1px);
}

.forum-board-card__main { grid-column: 1; }
.forum-board-card__title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  color: var(--gold-soft);
}

.forum-board-card__desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

.forum-board-card__stats {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-soft);
  white-space: nowrap;
}

.forum-board-card__last {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
}

.forum-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.forum-topic-table {
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.forum-topic-table__head,
.forum-topic-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 88px 140px;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 1rem;
}

.forum-topic-table__head {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.forum-topic-row {
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s;
}

.forum-topic-row:hover { background: rgba(212, 175, 55, 0.06); }
.forum-topic-row:last-child { border-bottom: 0; }

.forum-topic-row__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  min-width: 0;
}

.forum-topic-row__title strong {
  font-weight: 600;
  color: var(--text);
}

.forum-topic-row__author {
  flex: 0 0 100%;
  font-size: 0.8125rem;
}

.forum-topic-table__empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-soft);
}

.forum-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
}

.forum-badge--pin { color: var(--gold-soft); border-color: rgba(212, 175, 55, 0.35); }
.forum-badge--lock { color: #c9a0dc; border-color: rgba(201, 160, 220, 0.35); }
.forum-badge--hidden { color: #9aa8b8; }
.forum-badge--role { color: var(--gold); border-color: rgba(212, 175, 55, 0.45); }

.forum-topic-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.forum-topic-meta__tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.forum-mod { margin-bottom: 1rem; }
.forum-mod__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
}

.forum-mod__grid label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
}

.forum-post-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.forum-post__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.forum-post__avatar {
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  object-fit: cover;
}

.forum-post__author {
  font-weight: 600;
  color: var(--gold-soft);
}

.forum-post__date { font-size: 0.8125rem; }

.forum-post__body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
  word-break: break-word;
}

.forum-post__body p { margin: 0 0 0.75rem; }
.forum-post__body p:last-child { margin-bottom: 0; }

.forum-post__mod {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.forum-post__mod-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.forum-reply { margin-top: 1.25rem; }
.forum-reply .display-sm { margin: 0 0 1rem; }

.forum-locked {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--text-soft);
}

.forum-form .field textarea {
  min-height: 200px;
  resize: vertical;
}

.forum-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin: 1.25rem 0;
}

.forum-pagination__link,
.forum-pagination__current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0 0.5rem;
  font-size: 0.8125rem;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text-soft);
}

.forum-pagination__link:hover {
  color: var(--gold-soft);
  border-color: var(--line-strong);
}

.forum-pagination__current,
.forum-pagination__link.is-active {
  color: var(--gold-soft);
  border-color: rgba(212, 175, 55, 0.45);
  background: rgba(212, 175, 55, 0.1);
}

/* BBCode content */
.bbcode-underline { text-decoration: underline; }
.bbcode-strike { text-decoration: line-through; }

.bbcode-link {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bbcode-link:hover { color: var(--gold); }

.bbcode-image-link { display: inline-block; max-width: 100%; }

.bbcode-image {
  display: block;
  max-width: min(100%, 720px);
  height: auto;
  margin: 0.75rem 0;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.bbcode-quote {
  margin: 0.75rem 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--gold);
  background: rgba(212, 175, 55, 0.06);
  color: var(--text-soft);
}

.bbcode-quote cite {
  display: block;
  margin-bottom: 0.35rem;
  font-style: normal;
  font-weight: 600;
  color: var(--gold-soft);
}

.bbcode-code {
  margin: 0.75rem 0;
  padding: 0.85rem 1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.bbcode-code code {
  font-family: inherit;
  white-space: pre-wrap;
  word-break: break-word;
}

.bbcode-size--sm { font-size: 0.875rem; }
.bbcode-size--md { font-size: 1rem; }
.bbcode-size--lg { font-size: 1.125rem; }

.bbcode-smiley {
  font-size: 1.15em;
  line-height: 1;
}

/* Forum editor */
.forum-editor { display: grid; gap: 0.5rem; }

.forum-editor__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-soft);
}

.forum-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  padding: 0.5rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

.forum-editor__sep {
  width: 1px;
  height: 1.5rem;
  margin: 0 0.15rem;
  background: var(--line);
}

.forum-editor__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0 0.45rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.forum-editor__btn:hover {
  color: var(--gold-soft);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.forum-editor__btn--file {
  position: relative;
  cursor: pointer;
}

.forum-editor__smilies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.5rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
}

.forum-editor__smiley {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid transparent;
  background: transparent;
  font-size: 1.15rem;
  cursor: pointer;
}

.forum-editor__smiley:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.forum-editor__textarea {
  width: 100%;
  min-height: 160px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  resize: vertical;
  line-height: 1.55;
}

.forum-editor__textarea:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: var(--glow-gold);
}

.forum-editor__hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.45;
}

.forum-editor__status {
  margin: 0;
  font-size: 0.8125rem;
}

.forum-editor__status.is-error { color: #f0a8a8; }

/* Donate */
.donate-balance {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.donate-balance__value {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--gold-soft);
}

.donate-packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.donate-package {
    position: relative;
    display: grid;
    gap: 0.25rem;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.donate-package input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.donate-package:has(input:checked) {
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: var(--glow-gold);
}

.donate-package__rub {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.donate-package__bonus {
    color: var(--gold-soft);
    font-weight: 600;
}

.donate-package__badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.15rem 0.45rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.donate-custom { margin-bottom: 1rem; }
.donate-custom__hint { margin: 0.5rem 0 0; font-size: 0.8125rem; }

.donate-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.donate-history { margin-top: 1.5rem; }
.donate-history__table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.donate-history__table th,
.donate-history__table td {
    padding: 0.65rem 0.5rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.donate-history__table th {
    color: var(--text-soft);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.donate-redirect,
.donate-result {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.donate-result__icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
}

.donate-result__icon--success {
    color: #9fd4a8;
    border: 1px solid rgba(159, 212, 168, 0.35);
    background: rgba(46, 125, 50, 0.12);
}

.donate-result__icon--fail {
    color: #f0a8a8;
    border: 1px solid rgba(240, 168, 168, 0.35);
    background: rgba(183, 28, 28, 0.12);
}

.donate-result__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.forum-post__body .bbcode-image { margin: 0.5rem 0; }

.forum-alert {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  font-size: 0.875rem;
}

.forum-alert--success {
  color: #9fd4a8;
  border-color: rgba(159, 212, 168, 0.35);
  background: rgba(46, 125, 50, 0.12);
}

.forum-alert--error {
  color: #f0a8a8;
  border-color: rgba(240, 168, 168, 0.35);
  background: rgba(183, 28, 28, 0.12);
}

.ranking-table td,
.ranking-table th {
  white-space: nowrap;
}

.ranking-table td:first-child + td,
.ranking-table th:first-child + th {
  white-space: normal;
}

.ranking-table__row--top {
  background: rgba(212, 175, 55, 0.04);
}

.ranking-place {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-soft);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.ranking-place--1 {
  color: #1a1204;
  background: linear-gradient(180deg, #f0d78c 0%, #c9a227 100%);
  border-color: rgba(0, 0, 0, 0.35);
}

.ranking-place--2 {
  color: #1a1204;
  background: linear-gradient(180deg, #e8edf4 0%, #9aa8b8 100%);
  border-color: rgba(0, 0, 0, 0.25);
}

.ranking-place--3 {
  color: #fff;
  background: linear-gradient(180deg, #d4a574 0%, #8b5a2b 100%);
  border-color: rgba(0, 0, 0, 0.25);
}

.ranking-player {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 600;
}

.ranking-player img {
  border: 1px solid var(--line);
  background: var(--graphite);
  border-radius: 2px;
}

.ranking-rating {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold-soft);
}

.ranking-race,
.wow-race-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.ranking-race img,
.wow-race-label img {
  border: 1px solid var(--line);
  background: var(--graphite);
  object-fit: cover;
  flex-shrink: 0;
}

.wow-class-icon {
  display: inline-block;
  border: 1px solid var(--line);
  background: var(--graphite);
  border-radius: 2px;
  object-fit: contain;
  flex-shrink: 0;
}

.podium__class {
  margin: 0;
  display: flex;
  justify-content: center;
}

.ranking-empty {
  margin: 0;
  color: var(--text-soft);
  text-align: center;
  padding: 2rem 1rem;
}

/* Armory */
.armory-hub {
  display: grid;
  gap: 1.25rem;
}

.armory-hub__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.armory-metric {
  padding: 1.25rem 1.5rem;
  text-align: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(34, 34, 51, 0.95) 0%, rgba(18, 18, 28, 0.98) 100%);
  box-shadow: var(--glow-gold);
}

.armory-metric--live .armory-metric__value {
  color: var(--success);
}

.armory-metric__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--gold-soft);
  line-height: 1.1;
}

.armory-metric__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.armory-rank {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-soft);
}

.armory-search__form {
  display: grid;
  gap: 0.75rem;
}

.armory-search__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.armory-search__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

.armory-search__input {
  width: 100%;
  min-height: 50px;
  padding: 0 1rem;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  color: var(--text);
}

.armory-search__input:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: var(--glow-gold);
}

.armory-search__hint {
  margin: 1rem 0 0;
  font-size: 0.875rem;
}

.armory-page {
  display: grid;
  gap: 1.25rem;
}

.armory-sheet {
  overflow: visible;
  border: 1px solid var(--line);
  --class-color: var(--armory-class-color, var(--gold));
  background:
    radial-gradient(ellipse at top right, color-mix(in srgb, var(--armory-class-color, var(--gold)) 18%, transparent), transparent 55%),
    linear-gradient(165deg, rgba(34, 34, 51, 0.95) 0%, rgba(18, 18, 28, 0.98) 100%);
}

.armory-card--horde {
  --armory-faction-accent: var(--horde);
}

.armory-card--alliance {
  --armory-faction-accent: var(--alliance);
}

/* Hero */
.armory-hero {
  position: relative;
  overflow: visible;
  border-bottom: 1px solid var(--line);
  z-index: 2;
}

.armory-hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(4, 4, 8, 0.92) 0%, rgba(4, 4, 8, 0.72) 42%, rgba(4, 4, 8, 0.88) 100%),
    linear-gradient(180deg, rgba(4, 4, 8, 0.15) 0%, rgba(4, 4, 8, 0.82) 72%, rgba(4, 4, 8, 0.96) 100%),
    radial-gradient(ellipse at 85% 20%, color-mix(in srgb, var(--armory-class-color, var(--gold)) 22%, transparent), transparent 55%),
    var(--armory-banner, none);
  background-size: cover;
  background-position: center;
}

.armory-card--horde .armory-hero__bg {
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--horde) 35%, transparent);
}

.armory-card--alliance .armory-hero__bg {
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--alliance) 35%, transparent);
}

.armory-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1.25rem 1.5rem;
  align-items: center;
  padding: 1.35rem 1.5rem 1.25rem;
}

.armory-hero__main {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-width: 0;
}

.armory-hero__portrait {
  position: relative;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
}

.armory-hero__class-icon {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid var(--armory-class-color, var(--gold));
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.65),
    0 10px 28px color-mix(in srgb, var(--armory-class-color, var(--gold)) 28%, transparent);
}

.armory-hero__faction {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 32px;
  height: 22px;
  border: 1px solid rgba(0, 0, 0, 0.65);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.armory-hero__text {
  min-width: 0;
}

.armory-hero__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
}

.armory-hero__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--armory-class-color, var(--gold-soft));
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.armory-hero__online {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
}

.armory-hero__online-dot,
.armory-hero__status-dot {
  display: block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.75);
}

.armory-hero__guild-line {
  margin: 0 0 0.45rem;
  font-size: 0.875rem;
  color: var(--gold-dim);
}

.armory-hero__vitals {
  max-width: 280px;
  margin-bottom: 0.55rem;
}

.armory-hero__vitals .armory-vital__bar {
  position: relative;
  display: block;
  height: 24px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.armory-hero__vitals .armory-vital__fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 0;
  min-width: 0;
  background: linear-gradient(90deg, #15803d 0%, #22c55e 55%, #4ade80 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: width 0.25s ease;
}

.armory-hero__vitals .armory-vital__value {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  pointer-events: none;
}

.armory-hero__sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-soft);
}

.armory-hero__level,
.armory-hero__race,
.armory-hero__class-name {
  font-weight: 600;
  color: var(--text);
}

.armory-hero__dot {
  color: var(--text-dim);
}

.armory-hero__realm {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 7.5rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
}

.armory-hero__realm-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.armory-hero__realm-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-soft);
}

.armory-hero__social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  min-width: 8.5rem;
  text-align: right;
  position: relative;
  z-index: 4;
}

.armory-hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.armory-hero__status--online {
  color: #86efac;
}

.armory-hero__played {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.armory-twinks-dd {
  position: relative;
  margin-top: 0.15rem;
  z-index: 1;
}

.armory-twinks-dd.is-open {
  z-index: 320;
}

.armory-social__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 0.8125rem;
  line-height: 1.2;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.armory-social__btn:hover,
.armory-twinks-dd.is-open .armory-social__btn {
  border-color: color-mix(in srgb, var(--gold) 45%, var(--line));
  background: rgba(0, 0, 0, 0.55);
  color: var(--text);
}

.armory-social__label {
  font-weight: 600;
}

.armory-social__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 22%, transparent);
  color: var(--gold-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

.armory-twinks-dd__arrow {
  flex-shrink: 0;
  opacity: 0.65;
  transition: transform 0.15s;
}

.armory-twinks-dd.is-open .armory-twinks-dd__arrow {
  transform: rotate(180deg);
}

.armory-twinks-dd__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 320;
  min-width: 240px;
  max-height: 280px;
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(10, 10, 16, 0.98);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s, visibility 0.15s, transform 0.15s;
}

.armory-twinks-dd.is-open .armory-twinks-dd__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.armory-twink {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: var(--text);
  transition: background 0.12s;
}

.armory-twink:hover {
  background: rgba(255, 255, 255, 0.06);
}

.armory-twink__icon {
  flex-shrink: 0;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.armory-twink__body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.armory-twink__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.armory-twink__meta {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.armory-twink__online {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.65);
}

.badge--faction-alliance {
  color: var(--alliance);
  border-color: rgba(59, 130, 246, 0.35);
}

.badge--faction-horde {
  color: var(--horde);
  border-color: rgba(220, 38, 38, 0.35);
}

/* Core: summary | gear | professions */
.armory-core {
  display: grid;
  grid-template-columns: minmax(0, 25%) minmax(0, 1fr) minmax(0, 25%);
  gap: 1rem;
  align-items: stretch;
}

.armory-core:not(:has(.armory-professions-block)) {
  grid-template-columns: minmax(0, 25%) minmax(0, 1fr);
}

.armory-summary,
.armory-gear,
.armory-professions-block {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  min-width: 0;
  height: 100%;
  overflow: visible;
}

.armory-summary__body {
  flex: 1;
  padding: 0.75rem;
}

.armory-core .armory-highlights {
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.armory-core .armory-highlight {
  padding: 0.5rem 0.6rem;
}

.armory-core .armory-highlight__value {
  font-size: 0.8125rem;
}

.armory-core .armory-stat-block + .armory-stat-block {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
}

.armory-core .armory-stat-block__title {
  font-size: 0.6875rem;
  margin-bottom: 0.35rem;
}

.armory-core .armory-kv--compact .armory-kv__row {
  padding: 0.2rem 0;
  font-size: 0.75rem;
}

.armory-core .armory-block__head {
  padding: 0.7rem 0.75rem;
}

.armory-core .armory-block__title {
  font-size: 0.8125rem;
}

.armory-gear__body {
  padding: 0.75rem;
  overflow: visible;
}

.armory-professions-block__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
}

.armory-gear .armory-paperdoll {
  width: 100%;
}

.armory-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.armory-block__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.armory-block__count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
}

.armory-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.armory-highlight {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.armory-highlight__label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.armory-highlight__value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.armory-vital {
  margin-bottom: 1rem;
}

.armory-vital__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.armory-vital__bar {
  position: relative;
  height: 22px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  border: 1px solid var(--line);
}

.armory-vital__fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, #166534, #22c55e);
}

.armory-vital__text {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.armory-stat-block + .armory-stat-block {
  margin-top: 1rem;
}

.armory-stat-block__title {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

/* Paperdoll */
.armory-paperdoll {
  display: grid;
  grid-template-columns: 52px minmax(140px, 1fr) 52px;
  gap: 0.5rem;
  padding: 0.75rem;
  align-items: stretch;
  background:
    url('/assets/images/armory/character-dummy-bg.webp') center/cover no-repeat,
    rgba(0, 0, 0, 0.35);
}

.armory-paperdoll__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.armory-paperdoll__col--left .armory-slot-wrap {
  justify-content: flex-end;
}

.armory-paperdoll__col--right .armory-slot-wrap {
  justify-content: flex-start;
}

.armory-paperdoll__center {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  min-height: calc(8 * 51px + 7 * 6px);
}

.armory-profession-strip,
.armory-profession-grid,
.armory-profession-stack {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.armory-profession-strip {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.armory-profession-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.armory-profession-stack {
  grid-template-columns: 1fr;
  flex: 1;
  align-content: start;
}

.armory-profession-tile {
  position: relative;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, transparent 55%),
    rgba(0, 0, 0, 0.28);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.armory-profession-tile--primary {
  border-color: color-mix(in srgb, var(--gold-dim) 55%, var(--line));
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--gold-dim) 12%, transparent) 0%, transparent 60%),
    rgba(0, 0, 0, 0.32);
}

.armory-profession-tile__head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.armory-profession-tile__icon {
  flex-shrink: 0;
  display: block;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(0, 0, 0, 0.35);
  object-fit: cover;
}

.armory-profession-tile--primary .armory-profession-tile__icon {
  border-color: color-mix(in srgb, var(--gold-dim) 45%, transparent);
}

.armory-profession-tile__meta {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.armory-profession-strip .armory-profession-tile__meta,
.armory-profession-grid .armory-profession-tile__meta {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.armory-profession-tile__name {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--gold-soft);
}

.armory-profession-tile--primary .armory-profession-tile__name {
  color: var(--gold);
}

.armory-profession-tile__tier {
  flex-shrink: 0;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.armory-profession-tile__bar {
  position: relative;
  height: 8px;
  margin-bottom: 0.45rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.armory-profession-tile__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6b4f1d 0%, var(--gold-dim) 45%, var(--gold-soft) 100%);
  box-shadow: 0 0 10px color-mix(in srgb, var(--gold-dim) 35%, transparent);
}

.armory-profession-tile--primary .armory-profession-tile__fill {
  background: linear-gradient(90deg, #7a5a1f 0%, var(--gold) 50%, #f0d78c 100%);
}

.armory-profession-tile__value {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-soft);
}

.armory-profession-tile__value span {
  color: var(--text-dim);
  font-weight: 500;
}

.armory-paperdoll__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.armory-ilvl-badge {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(0, 0, 0, 0.35);
}

.armory-ilvl-badge__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-align: center;
}

.armory-ilvl-badge__value {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold);
}

.armory-ilvl-badge__sub {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.armory-paperdoll__weapons {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.armory-slot-wrap {
  display: flex;
  justify-content: center;
}

.armory-slot-wrap--sockets {
  margin-bottom: 10px;
}

.armory-slot-wrap--sockets .armory-slot-cell {
  position: relative;
  display: inline-block;
}

.armory-socket-row {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 3px;
  transform: translate(-50%, 50%);
  pointer-events: none;
}

.armory-socket-slot {
  pointer-events: auto;
  display: block;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.45) center/cover no-repeat;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.45);
  cursor: help;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.armory-socket-slot--filled {
  background-color: rgba(0, 0, 0, 0.2);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 6px rgba(0, 0, 0, 0.35);
}

.armory-socket-slot:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.armory-socket-slot--meta {
  border-color: rgba(198, 156, 240, 0.85);
}

.armory-socket-slot--red {
  border-color: rgba(255, 64, 64, 0.85);
}

.armory-socket-slot--yellow {
  border-color: rgba(255, 210, 0, 0.85);
}

.armory-socket-slot--blue {
  border-color: rgba(61, 142, 255, 0.85);
}

.armory-socket-slot--empty {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 55%),
    rgba(0, 0, 0, 0.55);
  border-style: dashed;
  opacity: 0.95;
}

.armory-socket-slot--filled[data-rarity="1"] { border-color: rgba(255, 255, 255, 0.75); }
.armory-socket-slot--filled[data-rarity="2"] { border-color: rgba(30, 255, 0, 0.75); }
.armory-socket-slot--filled[data-rarity="3"] { border-color: rgba(0, 112, 221, 0.85); }
.armory-socket-slot--filled[data-rarity="4"] { border-color: rgba(163, 53, 238, 0.85); }
.armory-socket-slot--filled[data-rarity="5"] { border-color: rgba(255, 128, 0, 0.85); }
.armory-socket-slot--filled[data-rarity="6"] { border-color: rgba(230, 204, 128, 0.85); }

.armory-slot {
  display: block;
  width: 51px;
  height: 51px;
  background: rgba(0, 0, 0, 0.35) center/cover no-repeat;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, transform 0.2s;
}

.armory-slot:not(.armory-slot--empty) {
  cursor: pointer;
}

.armory-slot:not(.armory-slot--empty):hover,
.armory-slot:not(.armory-slot--empty):focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  outline: none;
}

.armory-slot--empty {
  opacity: 0.72;
  border-style: dashed;
}

.armory-slot[data-rarity="1"] { border-color: rgba(255, 255, 255, 0.75); }
.armory-slot[data-rarity="2"] { border-color: rgba(30, 255, 0, 0.75); }
.armory-slot[data-rarity="3"] { border-color: rgba(0, 112, 221, 0.85); }
.armory-slot[data-rarity="4"] { border-color: rgba(163, 53, 238, 0.85); }
.armory-slot[data-rarity="5"] { border-color: rgba(255, 128, 0, 0.85); }
.armory-slot[data-rarity="6"] { border-color: rgba(230, 204, 128, 0.85); }

.armory-slot--weapon {
  width: 51px;
  height: 51px;
}

/* Tabs + panels */
.armory-details {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.12);
}

.armory-panels {
  padding: 1.25rem;
}

.armory-panel[data-armory-panel="character"] .armory-panel__grid {
  margin-top: 0;
}

.armory-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  scrollbar-width: thin;
}

.armory-tabs__btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 1.25rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.armory-tabs__btn:hover {
  color: var(--text);
  background: rgba(212, 175, 55, 0.04);
}

.armory-tabs__btn.is-active {
  color: var(--gold-soft);
  border-bottom-color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
}

.armory-panel {
  display: none;
}

.armory-panel.is-active {
  display: block;
  animation: armory-panel-in 0.25s ease-out;
}

@keyframes armory-panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.armory-panel__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.armory-stat-block {
  padding: 0.875rem 1rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}

.armory-kv {
  margin: 0;
  padding: 0;
  list-style: none;
}

.armory-kv__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8125rem;
}

.armory-kv__row:last-child {
  border-bottom: 0;
}

.armory-kv--compact .armory-kv__row {
  padding: 0.28rem 0;
  font-size: 0.75rem;
}

.armory-kv__key {
  color: var(--text-dim);
}

.armory-kv__val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold-soft);
  text-align: right;
}

.armory-achieve-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.armory-achieve {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.15);
  font-size: 0.8125rem;
}

.armory-achieve__name {
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.armory-achieve__date {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.armory-empty {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-dim);
  border: 1px dashed var(--line);
  background: rgba(0, 0, 0, 0.15);
}

.armory-empty--compact {
  padding: 1rem 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  border: 0;
  background: transparent;
}

.armory-achievements__summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.armory-achievements__score {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.armory-achievements__score-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  line-height: 1;
  color: var(--gold-soft);
}

.armory-achievements__score-label {
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.armory-achievements__meta {
  margin: 0;
  font-size: 0.875rem;
}

.armory-achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.armory-achievement-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.85rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s, transform 0.2s;
}

.armory-achievement-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

.armory-achievement-card__icon-wrap {
  position: relative;
  width: 44px;
  height: 44px;
}

.armory-achievement-card__icon {
  display: block;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(0, 0, 0, 0.35);
}

.armory-achievement-card__points {
  position: absolute;
  right: -4px;
  bottom: -4px;
  min-width: 1.25rem;
  padding: 0.1rem 0.3rem;
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: var(--graphite);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--gold-soft);
  text-align: center;
}

.armory-achievement-card__body {
  min-width: 0;
}

.armory-achievement-card__title {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.3;
  color: var(--text);
}

.armory-achievement-card__desc {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.armory-achievement-card__date {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-dim);
}

@media (max-width: 1100px) {
  .armory-core,
  .armory-core:not(:has(.armory-professions-block)) {
    grid-template-columns: minmax(0, 28%) minmax(0, 1fr);
    grid-template-areas:
      "summary gear"
      "professions professions";
  }

  .armory-summary { grid-area: summary; }
  .armory-gear { grid-area: gear; }
  .armory-professions-block { grid-area: professions; }

  .armory-profession-stack {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .armory-profession-stack .armory-profession-tile__head {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

@media (max-width: 960px) {
  .armory-core,
  .armory-core:not(:has(.armory-professions-block)) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "gear"
      "professions";
  }

  .armory-core .armory-highlights {
    grid-template-columns: 1fr 1fr;
  }

  .armory-hero__content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .armory-hero__main {
    align-items: flex-start;
  }

  .armory-hero__realm,
  .armory-hero__social {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .armory-twinks-dd {
    width: 100%;
  }

  .armory-social__btn {
    width: 100%;
    justify-content: space-between;
  }

  .armory-twinks-dd__menu {
    left: 0;
    right: auto;
    width: 100%;
  }

  .armory-highlights {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .armory-hub__stats {
    grid-template-columns: 1fr;
  }

  .armory-paperdoll {
    grid-template-columns: 55px minmax(0, 1fr) 55px;
  }

  .podium { grid-template-columns: 1fr; }
  .podium__slot, .podium__slot--first, .podium__slot--second, .podium__slot--third { order: unset; min-height: auto; }
}

@media (max-width: 640px) {
  .armory-search__row {
    grid-template-columns: 1fr;
  }

  .armory-panel__grid {
    grid-template-columns: 1fr;
  }

  .armory-paperdoll {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .armory-paperdoll__col {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .armory-paperdoll__col--left .armory-slot-wrap,
  .armory-paperdoll__col--right .armory-slot-wrap {
    justify-content: center;
  }

  .armory-paperdoll__center {
    order: -1;
    width: 100%;
  }

  .armory-achieve {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Item tooltips */
.item-tooltip {
  position: fixed;
  z-index: 1400;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  max-width: 320px;
}

.item-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

.item-tooltip__inner {
  padding: 0.65rem 0.75rem;
  border: 1px solid #3d3d3d;
  background: linear-gradient(180deg, rgba(18, 18, 28, 0.98) 0%, rgba(8, 8, 14, 0.98) 100%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.item-tooltip__name {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.item-tooltip__level,
.item-tooltip__bind,
.item-tooltip__slot,
.item-tooltip__damage,
.item-tooltip__speed,
.item-tooltip__stat,
.item-tooltip__req,
.item-tooltip__durability {
  color: var(--text-soft);
}

.item-tooltip__bind {
  color: #ffd100;
}

.item-tooltip__stat {
  color: #1eff00;
}

.item-tooltip__req {
  color: #ff2020;
}

.item-tooltip__desc {
  margin-top: 0.35rem;
  color: #1eff00;
}

.item-tooltip__rank {
  color: #ffd100;
  margin-top: 0.15rem;
}

.item-tooltip__loading {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.92);
  color: var(--text-dim);
  font-size: 0.8125rem;
}

/* Featured news */
.featured-news {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.featured-news__main {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.featured-news__main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.featured-news__main .featured-news__body {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem;
  background: linear-gradient(0deg, rgba(4,4,8,.98), transparent);
}

.featured-news__side { display: grid; gap: 1rem; }

.featured-news__side .card { display: grid; grid-template-columns: 120px 1fr; }
.featured-news__side .card__media { aspect-ratio: 1; }

@media (max-width: 960px) {
  .featured-news { grid-template-columns: 1fr; }
  .featured-news__main { min-height: 300px; }
}

/* Account profile */
.profile-hero {
  margin-top: var(--page-top);
  position: relative;
}

.profile-hero__banner {
  position: relative;
  height: clamp(200px, 32vw, 340px);
  background: var(--abyss) center/cover no-repeat;
  background-image:
    linear-gradient(180deg, rgba(4, 4, 8, 0.1) 0%, rgba(4, 4, 8, 0.55) 55%, rgba(4, 4, 8, 0.95) 100%),
    radial-gradient(ellipse at 80% 15%, rgba(91, 33, 182, 0.28), transparent 50%),
    var(--profile-banner, none);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.profile-hero__banner-upload {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(4, 4, 8, 0.72);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.profile-hero__banner-upload:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold);
}

.profile-hero__banner-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-hero__banner-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(212, 175, 55, 0.06) 50%, transparent 60%);
  pointer-events: none;
}

.profile-hero__body {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  padding: 0 0 2.5rem;
  margin-top: -4.5rem;
}

.profile-hero__identity {
  display: flex;
  align-items: flex-end;
  gap: clamp(1rem, 3vw, 1.75rem);
  min-width: 0;
}

.profile-hero__avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.profile-hero__premium-badge {
  padding-inline: 0.45rem;
}

.profile-hero__premium-crown {
  display: block;
  width: 28px;
  height: auto;
  pointer-events: none;
}

.profile-hero__avatar-upload {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--graphite);
  border: 1px solid var(--line-strong);
  color: var(--gold-soft);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.profile-hero__avatar-upload:hover {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold);
}

.profile-hero__avatar-upload svg {
  width: 16px;
  height: 16px;
}

.profile-hero__avatar-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-hero__avatar {
  display: block;
  width: clamp(96px, 14vw, 132px);
  height: clamp(96px, 14vw, 132px);
  object-fit: cover;
  background: var(--graphite);
  border: 2px solid var(--gold);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), var(--glow-gold);
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.profile-hero__avatar-ring {
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  pointer-events: none;
}

.profile-hero__meta {
  min-width: 0;
  padding-bottom: 0.25rem;
}

.profile-hero__name {
  margin: 0.35rem 0 0;
  line-height: 1.05;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.profile-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
}

.profile-verified svg {
  width: 1.1rem;
  height: 1.1rem;
}

.profile-email-status {
  display: grid;
  gap: 0.5rem;
}

.profile-email-status__badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.15rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dim);
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(212, 175, 55, 0.05);
}

.profile-email-status__badge--ok {
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.35);
}

.profile-email-resend {
  margin: 0;
}

.btn--sm {
  min-height: 38px;
  padding: 0 0.875rem;
  font-size: 0.75rem;
}

.profile-hero__login {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.profile-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge--role {
  color: var(--gold-soft);
  border-color: rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.08);
}

.badge--role-admin {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
}

.badge--role-editor {
  color: #c4b5fd;
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(167, 139, 250, 0.08);
}

.profile-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 0.75rem;
}

.profile-stat-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.875rem;
  align-items: center;
  padding: 1rem 1.125rem;
  border: 1px solid var(--line);
  background:
    linear-gradient(165deg, rgba(34, 34, 51, 0.92) 0%, rgba(18, 18, 28, 0.96) 100%);
  box-shadow: var(--glow-gold);
  transition: border-color 0.25s, transform 0.25s;
}

.profile-stat-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.profile-stat-card__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--gold-soft);
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.06);
}

.profile-stat-card__icon svg {
  width: 20px;
  height: 20px;
}

.profile-stat-card__body {
  display: grid;
  gap: 0.15rem;
}

.profile-stat-card__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.profile-stat-card__value {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--gold-soft);
}

.profile-stat-card__meta {
  font-size: 0.6875rem;
  color: var(--text-dim);
}

.stat-hud--wallet {
  border-color: rgba(212, 175, 55, 0.22);
}

.stat-hud--wallet .stat-hud__value {
  color: var(--gold-soft);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(260px, 300px) 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.profile-page__head {
  margin: 1.25rem 0 1.5rem;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.profile-tabs__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.profile-tabs__link:hover,
.profile-tabs__link.is-active {
  color: var(--text);
  border-color: var(--gold-dim);
  background: rgba(212, 175, 55, 0.06);
}

.profile-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: start;
}

.profile-main,
.profile-side {
  display: grid;
  gap: 1rem;
}

.profile-side {
  position: sticky;
  top: calc(var(--page-top) + 1rem);
}

.profile-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.profile-action-card {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.profile-action-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: rgba(212, 175, 55, 0.05);
}

.profile-action-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.profile-action-card__title {
  color: var(--text);
  font-size: 1rem;
}

.profile-action-card__meta {
  font-size: 0.8125rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.profile-hero__security-link {
  margin-left: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.profile-hero__security-link:hover {
  color: var(--gold);
}

.profile-security-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: start;
}

.profile-security-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.profile-security-stat {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
}

.profile-security-stat__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.profile-security-stat__value {
  font-size: 1rem;
  color: var(--text);
}

.profile-security-stat__meta {
  font-size: 0.8125rem;
  color: var(--text-soft);
  line-height: 1.45;
}

.profile-sidebar {
  display: grid;
  gap: 0.75rem;
  position: sticky;
  top: calc(var(--page-top) + 1rem);
}

.profile-alert {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--line);
}

.profile-alert--success {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.08);
}

.profile-alert--error {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
}

.profile-alert--notice {
  color: var(--text-soft);
  border-color: var(--line);
  background: rgba(212, 175, 55, 0.04);
  border-left: 3px solid var(--gold-dim);
}

.profile-card__hint {
  margin: -0.5rem 0 1rem;
  font-size: 0.8125rem;
}

.profile-hero__banner.is-uploading,
.profile-hero__avatar-wrap.is-uploading {
  opacity: 0.65;
  pointer-events: none;
}

.profile-hero__banner.is-uploading::after,
.profile-hero__avatar-wrap.is-uploading::after {
  content: "Загрузка…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: rgba(4, 4, 8, 0.45);
  z-index: 3;
}

.profile-hero__avatar-wrap.is-uploading::after {
  font-size: 0.625rem;
}

.profile-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 300;
  max-width: min(360px, calc(100vw - 2rem));
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border: 1px solid var(--line-strong);
  background: rgba(8, 8, 12, 0.96);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.profile-toast--success {
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.35);
}

.profile-toast--error {
  color: #fca5a5;
  border-color: rgba(248, 113, 113, 0.35);
}

.profile-upload__submit {
  width: 100%;
  justify-content: center;
}

.profile-password__lead {
  margin: -0.5rem 0 1.25rem;
  font-size: 0.8125rem;
}

.profile-password__verify {
  margin: 0 0 1rem;
  padding: 0.75rem 0.875rem;
  font-size: 0.8125rem;
  color: var(--text-soft);
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.04);
}

.profile-password__resend {
  display: inline;
  margin: 0;
}

.profile-password__form {
  display: grid;
  gap: 0.875rem;
}

.profile-password__submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

.profile-password__forgot {
  margin: 1rem 0 0;
  font-size: 0.8125rem;
  text-align: center;
}

.profile-security {
  display: grid;
  gap: 1.25rem;
}

.profile-security__item {
  display: grid;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.profile-security__item:first-child {
  padding-top: 0;
  border-top: 0;
}

.profile-security__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.profile-security__form input {
  min-width: 8rem;
  padding: 0.45rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  color: var(--text);
}

.profile-security__setup {
  display: grid;
  gap: 0.75rem;
}

.profile-security__qr {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.profile-security__secret {
  display: block;
  padding: 0.5rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  word-break: break-all;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  color: var(--gold-soft);
}

.profile-security__telegram {
  min-height: 44px;
}

.profile-card__title {
  margin: 0 0 1.25rem;
}

.profile-side-field {
  display: grid;
  gap: 0.5rem;
}

.profile-side-field__value--email {
  font-size: 0.9375rem;
  word-break: break-word;
}

.profile-side-field__status {
  display: inline-flex;
  padding: 0.125rem 0.45rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dim);
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(212, 175, 55, 0.05);
}

.profile-side-field__status--ok {
  color: var(--success);
  border-color: rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.08);
}

.profile-side-field__action {
  margin: 0;
}

.profile-side-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--gold-dim);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color 0.2s;
}

.profile-side-link:hover {
  color: var(--gold-soft);
}

.profile-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.profile-dl {
  margin: 0;
}

.profile-dl__row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-dl__row:last-child {
  border-bottom: none;
}

.profile-dl dt {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.profile-dl dd {
  margin: 0;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.profile-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.section-head--compact {
  margin-bottom: 1.25rem;
}

.profile-empty {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
}

.profile-empty.panel--pad {
  text-align: left;
}

.profile-block__body--flush .profile-empty {
  padding: clamp(2rem, 5vw, 3rem);
}

.profile-empty__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  color: var(--gold-dim);
}

.profile-empty__icon svg {
  width: 100%;
  height: 100%;
}

.profile-block {
  overflow: hidden;
  padding: 0;
}

.profile-block__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
}

.profile-block__head--wide {
  align-items: end;
}

.profile-block__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--gold-soft);
  border: 1px solid var(--line);
  background: rgba(212, 175, 55, 0.06);
}

.profile-block__icon svg {
  width: 20px;
  height: 20px;
}

.profile-block__title {
  margin: 0;
}

.profile-block__lead {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.profile-block__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.profile-block__body--flush {
  padding: 0;
}

.profile-roster-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.14);
}

.profile-roster-stat {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-roster-stat:last-child {
  border-right: 0;
}

.profile-roster-stat__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.profile-roster-stat__value {
  font-size: 1.125rem;
  color: var(--gold-soft);
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0;
}

.char-grid--cards {
  gap: 1rem;
  padding: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.char-card {
  display: grid;
  gap: 0.75rem;
  padding: 1.125rem 1.25rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.12);
  transition: background 0.2s, transform 0.2s;
}

.char-card:hover {
  background: rgba(212, 175, 55, 0.05);
  transform: translateY(-2px);
}

.char-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.char-card__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border: 1px solid color-mix(in srgb, var(--class-color) 50%, var(--line));
  background: rgba(0, 0, 0, 0.25);
}

.char-card__level {
  min-width: 2rem;
  padding: 0.2rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
  color: #1a1204;
  background: linear-gradient(180deg, #f0d78c 0%, #c9a227 100%);
  border: 1px solid rgba(0, 0, 0, 0.35);
}

.char-card__name {
  display: block;
  font-size: 1rem;
  color: var(--class-color, var(--gold-soft));
}

.char-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
  flex-wrap: wrap;
}

.char-card__footer {
  display: flex;
  align-items: center;
  min-height: 1.5rem;
}

.char-card__link {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.char-card:hover .char-card__link {
  color: var(--gold-soft);
}

.char-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.char-tile {
  position: relative;
  display: grid;
  gap: 0.65rem;
  padding: 1.1rem 1.15rem 1rem;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s var(--ease-out), border-color 0.2s, box-shadow 0.2s;
}

.char-tile:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--class-color) 35%, var(--line-strong));
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

.char-tile__glow {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--class-color) 85%, #fff),
    var(--class-color, var(--gold))
  );
  opacity: 0.9;
}

.char-tile__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.char-tile__icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border: 1px solid color-mix(in srgb, var(--class-color) 45%, var(--line));
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.char-tile__level {
  min-width: 2.25rem;
  padding: 0.25rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  color: #1a1204;
  background: linear-gradient(180deg, #f0d78c 0%, #c9a227 100%);
  border: 1px solid rgba(0, 0, 0, 0.35);
}

.char-tile__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--class-color, var(--gold-soft));
}

.char-tile__meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  color: var(--text-soft);
  line-height: 1.35;
}

.char-tile__meta img {
  flex-shrink: 0;
  object-fit: contain;
}

.char-tile__footer {
  display: flex;
  align-items: center;
  min-height: 1.5rem;
  margin-top: 0.15rem;
}

.char-tile__link {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dim);
  transition: color 0.2s;
}

.char-tile:hover .char-tile__link {
  color: var(--gold-soft);
}

.char-card--elevated {
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(0, 0, 0, 0.22));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.profile-overview-list {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.profile-overview-list__row {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.profile-overview-list__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.profile-overview-list dt {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.profile-overview-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  word-break: break-word;
}

.profile-link-list {
  display: grid;
  gap: 0.5rem;
}

.profile-link-list__item {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.7rem 0.85rem;
  color: var(--text-soft);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.profile-link-list__item:hover {
  color: var(--gold-soft);
  border-color: var(--line-strong);
  background: rgba(212, 175, 55, 0.05);
}

.profile-security-cards {
  display: grid;
  gap: 1rem;
}

.profile-security-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.14);
}

.profile-security-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.char-roster {
  overflow: hidden;
  padding: 0;
}

.char-roster__head,
.char-roster__row {
  display: grid;
  grid-template-columns: minmax(160px, 1.4fr) 1.2fr 72px 88px;
  gap: 1rem;
  align-items: center;
  padding: 0.875rem 1.25rem;
}

.char-roster__head {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.char-roster__row {
  position: relative;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s var(--ease-out);
}

.char-roster__row:last-child {
  border-bottom: none;
}

.char-roster__row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--class-color, var(--gold));
  opacity: 0.85;
}

.char-roster__row:hover {
  background: rgba(212, 175, 55, 0.04);
}

.char-roster__name-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.char-roster__icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex-shrink: 0;
}

.char-roster__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 400;
}

.char-roster__online {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--success);
}

.char-roster__meta {
  font-size: 0.875rem;
  color: var(--text-soft);
}

.char-roster__level {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-soft);
  text-align: center;
}

.char-roster__action {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-align: right;
  transition: color 0.2s;
}

.char-roster__row:hover .char-roster__action {
  color: var(--gold-soft);
}

@media (max-width: 1024px) {
  .profile-hero__body {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .profile-hero__stats {
    grid-template-columns: 1fr;
  }

  .char-grid {
    grid-template-columns: 1fr;
  }

  .char-card {
    border-right: none;
  }

  .profile-shell {
    grid-template-columns: 1fr;
  }

  .profile-side {
    position: static;
  }

  .profile-action-grid {
    grid-template-columns: 1fr;
  }

  .profile-security-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-security-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .profile-hero__identity {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-hero__body {
    margin-top: -3.5rem;
  }

  .profile-dl__row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .char-roster__head {
    display: none;
  }

  .char-roster__row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name level"
      "meta action";
    gap: 0.35rem 1rem;
    padding: 1rem;
  }

  .char-roster__name-wrap { grid-area: name; }
  .char-roster__meta { grid-area: meta; }
  .char-roster__level { grid-area: level; text-align: right; }
  .char-roster__action { grid-area: action; text-align: right; }

  .profile-roster-bar,
  .profile-security-summary {
    grid-template-columns: 1fr;
  }

  .char-grid--cards {
    padding: 0.75rem;
  }

  .profile-security-card__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Mobile adaptations ── */
@media (max-width: 720px) {
  :root {
    --container: min(1280px, calc(100% - 2rem));
    --header-h: 64px;
  }

  .section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
  .section--tight { padding: clamp(1.75rem, 4vw, 2.5rem) 0; }

  .display-xl { font-size: clamp(1.85rem, 8vw, 2.5rem); }
  .display-lg { font-size: clamp(1.5rem, 5.5vw, 2rem); }
  .display-md { font-size: clamp(1.25rem, 4.5vw, 1.625rem); }
  .lead { font-size: 1rem; line-height: 1.65; }

  .eyebrow {
    font-size: 0.625rem;
    letter-spacing: 0.18em;
    gap: 0.5rem;
  }

  .eyebrow::before,
  .eyebrow::after { width: 16px; }

  .brand__sub { display: none; }
  .brand__title { font-size: 0.95rem; letter-spacing: 0.1em; }
  .brand__sigil { width: 36px; height: 36px; }

  .site-header__inner { gap: 0.75rem; }

  .hero {
    min-height: auto;
    padding-bottom: 2rem;
  }

  .hero__video {
    transform: none;
  }

  .hero__content { padding: clamp(1.5rem, 5vw, 2.5rem) 0; }
  .hero__actions { flex-direction: column; margin-top: 1.5rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .stat-hud {
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
  }

  .stat-hud__meta {
    grid-column: 1 / -1;
    text-align: left;
    margin-top: -0.25rem;
    padding-left: calc(36px + 0.75rem);
  }

  .stat-hud--realmlist {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  .stat-hud--realmlist .btn-copy {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    margin-top: 0.35rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .panel--pad { padding: 1.125rem; }

  .table th,
  .table td {
    padding: 0.75rem 0.875rem;
    font-size: 0.875rem;
  }

  .table-wrap {
    margin: 0 -0.25rem;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .ranking-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ranking-tabs::-webkit-scrollbar { display: none; }

  .ranking-tabs__link {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 0.875rem;
    font-size: 0.6875rem;
  }

  .profile-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .profile-tabs::-webkit-scrollbar { display: none; }

  .profile-tabs__link { flex: 0 0 auto; }

  .site-footer__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .site-footer { padding: 2.5rem 0 1.5rem; }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 2rem;
    font-size: 0.75rem;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.5rem;
  }

  .cta-band__inner .hero__actions .btn { width: 100%; }

  .featured-news__side .card {
    grid-template-columns: 1fr;
  }

  .featured-news__side .card__media {
    aspect-ratio: 16 / 9;
    max-height: 180px;
  }

  .featured-news__main { min-height: 240px; }
  .featured-news__main .featured-news__body { padding: 1.25rem; }

  .forum-topic-table__head,
  .forum-topic-row {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .forum-topic-table__head { display: none; }

  .forum-topic-row > div:not(.forum-topic-row__title) {
    font-size: 0.8125rem;
    color: var(--text-soft);
  }

  .forum-board-card {
    grid-template-columns: 1fr;
  }

  .forum-board-card__stats {
    grid-column: 1;
    grid-row: auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .page-banner .lead { font-size: 0.8125rem; }

  .profile-hero__banner { height: clamp(140px, 38vw, 200px); }
  .profile-hero__banner-upload {
    right: 0.75rem;
    bottom: 0.75rem;
    font-size: 0.6875rem;
    padding: 0.35rem 0.65rem;
  }

  .profile-block__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .profile-block__head--wide {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-split__form { padding: 2rem 1.25rem; }

  .item-tooltip {
    max-width: min(320px, calc(100vw - 1.5rem));
    pointer-events: auto;
  }

  .podium__slot { padding: 1.25rem 0.875rem 1rem; }
  .podium { margin-bottom: 1.5rem; }

  .armory-hub__search { padding: 1rem; }

  .btn {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  :root {
    --container: min(1280px, calc(100% - 1.25rem));
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .card__body { padding: 1.125rem; }

  .ranking-player {
    flex-wrap: wrap;
    gap: 0.35rem;
  }
}

body.nav-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__video { display: none; }
}
