:root {
  --ink-950: #0f0f12;
  --ink-900: #1a1a1e;
  --ink-800: #26262c;
  --ink-700: #2f2f35;
  --mist-100: #e8e8e8;
  --mist-400: #8a8a90;
  --mist-600: #55555c;
  --accent: #f2a900;
  --accent-2: #ffc107;
  --ok: #7bc462;
  --danger: #d86060;
  --radius-card: 4px;
  --radius-ctl: 3px;
  --font-sans: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Barlow Condensed', 'Barlow', sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  position: relative;
  min-height: 100vh;
  background: var(--ink-950);
  color: var(--mist-100);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2 {
  font-family: var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}
::selection { background: var(--accent); color: var(--ink-950); }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgb(242 169 0 / 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 20%, rgb(255 255 255 / 0.04), transparent 50%),
    linear-gradient(180deg, #121216 0%, var(--ink-950) 42%, #0c0c0f 100%);
}
.atmosphere-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}
.atmosphere-glow {
  position: absolute;
  width: 55vw;
  height: 40vh;
  left: -8%;
  top: 8%;
  background: radial-gradient(circle, rgb(242 169 0 / 0.16), transparent 70%);
  filter: blur(8px);
  animation: drift 14s ease-in-out infinite alternate;
}
.atmosphere-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    transparent 0 3px,
    rgb(0 0 0 / 0.08) 3px 4px
  );
  opacity: 0.35;
  mix-blend-mode: multiply;
  animation: scan 9s linear infinite;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(4%, 6%, 0); }
}
@keyframes scan {
  from { transform: translateY(0); }
  to { transform: translateY(12px); }
}

.page-x {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 16px;
}
@media (min-width: 640px) {
  .page-x { padding: 0 24px; }
}

.caps {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.mist { color: var(--mist-400); }
.accent { color: var(--accent); }
.accent-text { color: var(--accent); }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid #000;
  background: rgba(15, 15, 18, 0.88);
  backdrop-filter: blur(10px);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #000;
  background: var(--ink-800);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 15px;
}
.brand-text span {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist-400);
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a:not(.btn) {
  color: var(--mist-400);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav a:not(.btn):hover { color: var(--mist-100); }

.lang-switch {
  display: inline-flex;
  border: 1px solid #000;
  border-radius: var(--radius-ctl);
  overflow: hidden;
  background: var(--ink-950);
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--mist-400);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 7px 10px;
  cursor: pointer;
}
.lang-btn:hover { color: var(--mist-100); }
.lang-btn.active {
  background: var(--accent);
  color: var(--ink-950);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid #000;
  border-radius: var(--radius-ctl);
  background: var(--ink-800);
  color: var(--mist-100);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}
.btn:hover { background: var(--ink-700); color: #fff; transform: translateY(-1px); }
.btn[hidden],
.btn.is-auth-hidden {
  display: none !important;
}
.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink-950);
}
.btn-primary:hover {
  border-color: var(--accent-2);
  background: var(--accent-2);
  color: var(--ink-950);
}
.btn-sm { height: 30px; padding: 0 10px; font-size: 10px; }
.nav-user {
  gap: 8px;
  padding-left: 4px !important;
  padding-right: 10px !important;
  max-width: 180px;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.nav-user-avatar {
  width: 22px;
  height: 22px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid rgb(0 0 0 / 0.35);
  flex-shrink: 0;
  background: #101014;
}
.nav-user-avatar--empty {
  display: inline-block;
  background: rgb(0 0 0 / 0.25);
}
.nav-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1;
}
@media (max-width: 720px) {
  .nav-user { max-width: 120px; }
  .nav-user-name { max-width: 72px; }
}
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.hero {
  position: relative;
  display: grid;
  gap: 28px;
  padding: 0;
  min-height: calc(100vh - 58px);
  align-content: start;
  overflow: hidden;
}
.hero--wallpaper {
  isolation: isolate;
}
.hero-wallpaper {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-wallpaper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  filter: grayscale(0.25) contrast(1.08) saturate(0.85);
  transform: scale(1.04);
}
.hero-wallpaper-tint {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgb(8 8 10 / 0.94) 0%, rgb(8 8 10 / 0.82) 38%, rgb(8 8 10 / 0.55) 68%, rgb(8 8 10 / 0.42) 100%),
    linear-gradient(180deg, rgb(15 15 18 / 0.62) 0%, rgb(15 15 18 / 0.28) 38%, rgb(15 15 18 / 0.9) 100%),
    linear-gradient(135deg, rgb(242 169 0 / 0.14), transparent 42%),
    linear-gradient(200deg, rgb(26 60 255 / 0.12), transparent 50%);
  mix-blend-mode: normal;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  margin: 0;
  justify-self: start;
  align-self: start;
  text-align: left;
  text-shadow: 0 1px 18px rgb(0 0 0 / 0.55);
}
.hero-copy h1 {
  color: #f3f3f5 !important;
}
.hero-copy .lede {
  color: #e8e8ec !important;
  opacity: 0.95;
}
.hero-copy .accent {
  color: var(--accent, #f2a900);
}
.hero-inner.page-x {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: stretch;
  gap: 28px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 88px 24px 48px;
  align-content: start;
  align-items: start;
  min-height: calc(100vh - 58px);
}
@media (min-width: 960px) {
  .hero-inner.page-x {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.85fr);
    gap: 28px 48px;
    padding-top: 96px;
    padding-bottom: 40px;
    padding-left: clamp(24px, 4vw, 56px);
    padding-right: clamp(24px, 4vw, 56px);
    align-items: start;
    align-content: start;
  }
}
.hero-progress,
.hero-ranks {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  margin-top: auto;
  display: grid;
  gap: 16px;
  padding: 18px 20px 16px;
  border: 1px solid rgb(255 255 255 / 0.12);
  background: linear-gradient(165deg, rgb(15 15 18 / 0.82), rgb(15 15 18 / 0.58));
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.35);
}
.hero-ranks-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.15;
  text-transform: none;
  color: #f3f3f5;
  text-shadow: 0 1px 14px rgb(0 0 0 / 0.45);
}
.hero-ranks-copy .mist {
  margin: 8px 0 0;
  max-width: 46ch;
  font-size: 15px;
  line-height: 1.45;
  color: #d4d4da;
}
.hero-xp-rules {
  margin-top: 12px;
}
.hero-xp-rules .prog-xp-chip {
  min-width: 84px;
  padding: 8px 10px;
  background: rgb(16 16 20 / 0.85);
  border-color: rgb(255 255 255 / 0.1);
}
.hero-xp-rules .prog-xp-chip strong {
  font-size: 1.15rem;
}
.hero-prog-actions {
  margin-top: 14px;
}
.hero-my-rank {
  margin-bottom: 14px;
}
.hero-my-rank-teaser,
.hero-my-rank-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, #2a2a30);
  background: linear-gradient(145deg, rgb(242 169 0 / 0.12), rgb(16 16 20 / 0.75));
}
.hero-my-rank-teaser strong,
.hero-my-rank-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: #f3f3f5;
  line-height: 1.1;
}
.hero-my-rank-teaser .mist,
.hero-my-rank-body .mist {
  margin: 0;
  font-size: 13px;
}
.hero-my-rank-teaser .btn,
.hero-my-rank-body .btn {
  align-self: flex-start;
  margin-top: 6px;
}
.hero-my-rank-card {
  flex-direction: row;
  align-items: stretch;
  gap: 14px;
}
.hero-my-rank-badge {
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.hero-my-rank-badge .mil-pill {
  min-width: 72px;
  padding: 12px 10px 10px;
}
.hero-my-rank-badge .mil-icon {
  width: 40px;
  height: 40px;
}
.hero-my-rank-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-my-rank-body .caps {
  margin: 0;
}
.hero-my-rank-bar {
  margin-top: 4px;
  max-width: 220px;
}
.hero-my-rank-next {
  font-size: 12px !important;
}
.hero-my-rank-hint {
  color: var(--accent) !important;
  opacity: 0.9;
}
.hero-ranks-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.hero-ranks-head p { margin: 0; }
.hero-rank-track {
  justify-content: space-between;
  gap: 10px;
  overflow: visible;
}
.hero-rank-track .prog-rank-line {
  flex: 1;
  min-width: 24px;
  max-width: 80px;
}
.hero-rank-track .mil-pill {
  min-width: 64px;
  padding: 10px 12px 8px;
  background: color-mix(in srgb, var(--accent) 22%, #0c0c10);
}
.hero-rank-track .mil-icon {
  width: 36px;
  height: 36px;
}
.hero-ranks-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.4;
  max-width: 52ch;
  color: #c8c8d0;
}
.hero-ach-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.hero-ach .prog-ach {
  padding: 10px 8px;
  background: rgb(16 16 20 / 0.72);
  border-color: rgb(255 255 255 / 0.1);
}
.hero-ach .prog-ach .ach-art {
  transform: scale(0.88);
  transform-origin: left center;
}
@media (max-width: 700px) {
  .hero-ach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .hero-progress {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
    grid-template-areas:
      "copy ladder"
      "ach ach";
    align-items: start;
    gap: 18px 28px;
  }
  .hero-ranks-copy { grid-area: copy; }
  .hero-ranks-ladder { grid-area: ladder; align-self: end; }
  .hero-ach { grid-area: ach; }
  .hero-ranks-head { margin-bottom: 10px; }
  .hero-ach-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .hero-progress {
    margin-top: 8px;
    align-self: end;
  }
  .hero-inner.page-x {
    min-height: calc(100vh - 58px);
    grid-template-rows: auto 1fr auto;
  }
  .hero-copy,
  .hero-stats {
    grid-row: 1;
  }
  .hero-progress {
    grid-row: 3;
  }
}
.hero-lockup {
  display: none;
}
.brand-hero {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 0.9;
  color: var(--mist-100);
  animation: rise-in 0.55s ease-out both;
}
.hero h1 {
  margin-top: 0;
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  font-weight: 600;
  line-height: 1.08;
  max-width: 18ch;
  color: #c9c9ce;
  text-shadow: 0 2px 18px rgb(0 0 0 / 0.55);
  animation: rise-in 0.65s ease-out 0.06s both;
}
.hero h1 .accent { color: var(--accent); }
.lede {
  margin: 18px 0 0;
  max-width: 48ch;
  color: #b4b4ba;
  font-size: 15px;
  line-height: 1.55;
  text-shadow: 0 1px 12px rgb(0 0 0 / 0.45);
  animation: rise-in 0.7s ease-out 0.12s both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  animation: rise-in 0.75s ease-out 0.18s both;
}

.hero-stats {
  width: 100%;
  justify-self: stretch;
  align-self: center;
  border: 1px solid #2a2a30;
  border-radius: var(--radius-card);
  background:
    linear-gradient(160deg, rgb(242 169 0 / 0.1), transparent 42%),
    linear-gradient(180deg, #1c1c22 0%, #141418 100%);
  padding: 16px 16px 14px;
  box-shadow: 0 18px 40px rgb(0 0 0 / 0.35);
  animation: rise-in 0.7s ease-out 0.15s both;
}
@media (min-width: 960px) {
  .hero-stats {
    margin-top: 0;
  }
}
.hero-stats-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 8px;
}
.hero-stats-head .accent-text {
  font-size: 12px;
  letter-spacing: 0.08em;
  max-width: 28ch;
  line-height: 1.35;
}
.hero-stats-nums {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
}
.hero-stats-nums > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.stats-val {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff;
}
.hero-stats-chart {
  height: 148px;
  border: 1px solid #000;
  background:
    repeating-linear-gradient(90deg, #151518 0 8px, #121215 8px 16px),
    #101014;
  position: relative;
  overflow: hidden;
}
.hero-stats-chart svg {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-stats-chart .chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--mist-600);
  font-size: 13px;
  padding: 12px;
  text-align: center;
}
.hero-stats-foot {
  display: none;
}

.hero-stage { display: none; }
.hero-stage-frame {
  border: 1px solid #000;
  background:
    linear-gradient(160deg, rgb(242 169 0 / 0.14), transparent 45%),
    var(--ink-900);
  padding: 16px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-stage-label { color: var(--accent); }
.hero-stage-map {
  flex: 1;
  border: 1px solid #000;
  background:
    linear-gradient(120deg, rgb(242 169 0 / 0.22), transparent 50%),
    repeating-linear-gradient(90deg, #151518 0 10px, #121215 10px 20px),
    repeating-linear-gradient(0deg, transparent 0 14px, rgb(255 255 255 / 0.03) 14px 15px);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}
.hero-stage-map span {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 600;
}
.hero-stage-meters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.hero-stage-meters span {
  height: 6px;
  background: rgb(255 255 255 / 0.08);
  position: relative;
  overflow: hidden;
}
.hero-stage-meters span::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--accent);
  animation: fillbar 2.8s ease-in-out infinite alternate;
}
.hero-stage-meters span:nth-child(2)::after { animation-delay: 0.35s; width: 35%; }
.hero-stage-meters span:nth-child(3)::after { animation-delay: 0.7s; }
.hero-stage-meters span:nth-child(4)::after { animation-delay: 1.05s; }
@keyframes fillbar {
  from { width: 18%; }
  to { width: 88%; }
}

.section { padding: 28px 0 48px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: 1.35rem; }

.server-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .server-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1200px) {
  .server-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.server-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.faction-wins {
  border: 1px solid #2a2a30;
  background: #141418;
  padding: 10px;
}
.faction-wins-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.faction-wins-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.faction-win-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 8px 7px;
  border: 1px solid #2a2a30;
  background: #101014;
  min-width: 0;
}
.faction-win-card.is-leading {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px rgb(242 169 0 / 0.25);
}
.faction-win-name {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mist-400);
}
.faction-win-card.lonestar .faction-win-name { color: #5aa8ff; }
.faction-win-card.valkyra .faction-win-name { color: #e25555; }
.faction-win-card.manticore .faction-win-name { color: #5ecf7a; }
.faction-win-count {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  color: #fff;
}

.panel {
  border: 1px solid #000;
  border-radius: var(--radius-card);
  background: rgb(26 26 30 / 0.92);
  padding: 20px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
}
.server-card {
  display: block;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.server-card:hover {
  border-color: rgb(255 255 255 / 0.16);
  background: rgb(255 255 255 / 0.055);
  transform: translateY(-2px);
}
.server-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.server-card-id {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}
.server-card-top .name {
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--accent, #f2a900);
}
.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mist-600);
  flex-shrink: 0;
}
.pulse.ok {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgb(123 196 98 / 0.15);
  animation: pulse-live 1.6s ease-out infinite;
}
.pulse.bad { background: var(--danger); }
.pulse.wait { background: var(--accent); }
@keyframes pulse-live {
  0% { box-shadow: 0 0 0 0 rgb(123 196 98 / 0.55); }
  70% { box-shadow: 0 0 0 8px rgb(123 196 98 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(123 196 98 / 0); }
}
.players-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75em;
  padding: 1px 6px;
  border-radius: 3px;
  background: var(--accent, #f2a900);
  color: #0f0f12;
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  line-height: 1.25;
  vertical-align: middle;
}
.servers-live .players-badge {
  margin: 0 1px;
}
.server-players-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.25em;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--accent, #f2a900);
  color: #0f0f12;
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  line-height: 1.25;
  white-space: nowrap;
}
.server-players-badge.is-full {
  background: #c23b3b;
  color: #fff8f8;
}
.servers-live {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--mist-200);
}
.servers-live .pulse {
  width: 9px;
  height: 9px;
}

.hostline {
  display: none;
}
.server-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}
.server-id-copy {
  margin: 0;
  padding: 0 8px;
  white-space: nowrap;
  letter-spacing: 0.06em;
}
.server-id-copy:hover {
  border-color: rgb(242 169 0 / 0.45);
}
.server-id-copy.is-copied,
.server-id-copy.is-copied:hover {
  border-color: var(--accent-2, #ffc107);
  background: #1a1a1e;
  color: var(--accent, #f2a900);
}
.server-id-copy-label {
  pointer-events: none;
}
.sname {
  font-size: 13px;
  color: var(--accent, #f2a900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 10px;
}
.mapstrip {
  position: relative;
  height: 120px;
  margin-bottom: 10px;
  border: 1px solid #000;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgb(212 168 67 / 0.18), transparent 55%),
    repeating-linear-gradient(90deg, #151518 0 8px, #121215 8px 16px);
  display: flex;
  align-items: flex-end;
  padding: 8px 10px;
}
.mapstrip-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.05);
}
.mapstrip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgb(8 8 10 / 0.78) 100%);
  pointer-events: none;
}
.mapstrip span {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 600;
  color: #e8b84a;
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.7);
}
.server-queue {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1406;
  background: var(--accent, #f2a900);
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
}
.meta-row .queue-meta {
  color: var(--accent, #f2a900);
  font-weight: 700;
  letter-spacing: 0.03em;
}
@media (max-width: 420px) {
  .server-card-actions .btn-sm {
    padding: 0 8px;
    letter-spacing: 0.05em;
  }
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
  color: var(--mist-400);
  margin-bottom: 8px;
}
.meta-row b { color: var(--mist-100); font-weight: 600; }
.meta-row .ml { margin-left: auto; }
.progress {
  height: 4px;
  width: 100%;
  overflow: hidden;
  background: rgb(255 255 255 / 0.08);
  margin-bottom: 12px;
}
.progress > span {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.5s ease;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.05);
  border-radius: 2px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist-400);
}
.err { color: var(--danger); font-size: 13px; }

.prog-panel {
  display: grid;
  gap: 28px;
  padding: 22px 20px;
}
@media (min-width: 960px) {
  .prog-panel {
    grid-template-columns: 0.95fr 1.15fr;
    align-items: start;
    gap: 32px;
    padding: 28px 24px;
  }
}
.prog-copy h2 {
  margin-top: 8px;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  line-height: 1.08;
  max-width: 18ch;
}
.prog-copy > .mist {
  margin: 14px 0 0;
  max-width: 46ch;
}
.prog-xp-rules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.prog-xp-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 96px;
  padding: 10px 12px;
  border: 1px solid #2a2a30;
  background: #101014;
}
.prog-xp-chip strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  line-height: 1;
}
.prog-xp-chip span {
  font-size: 11px;
  color: var(--mist-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.prog-xp-chip--up strong { color: #86efac; }
.prog-xp-chip--down strong { color: #fca5a5; }
.prog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.prog-showcase {
  display: grid;
  gap: 14px;
}
.prog-block {
  border: 1px solid #2a2a30;
  background: linear-gradient(180deg, #1c1c22 0%, #141418 100%);
  padding: 14px;
}
.prog-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.prog-block-head h3 { margin: 0; }
.prog-rank-track {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.prog-rank-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.prog-rank-step em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--mist-600);
  text-transform: uppercase;
}
.prog-rank-step.is-peak .mil-pill {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent),
    0 0 18px rgb(242 169 0 / 0.25);
}
.prog-rank-line {
  flex: 1;
  min-width: 18px;
  height: 2px;
  background: linear-gradient(90deg, rgb(242 169 0 / 0.55), rgb(255 255 255 / 0.12));
}
.prog-rank-note {
  margin: 12px 0 0;
  font-size: 12px;
}
.prog-ach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
@media (min-width: 700px) {
  .prog-ach-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.prog-ach {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 12px 8px 10px;
  border: 1px solid #2a2a30;
  background: #101014;
  min-height: 132px;
}
.prog-ach .ach-art {
  width: 54px;
  height: 54px;
  margin-bottom: 0;
}
.prog-ach .ach-art img {
  width: 50px;
  height: 50px;
}
.prog-ach strong {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.prog-ach > span {
  font-size: 11px;
  color: var(--mist-400);
}

.community-panel {
  display: grid;
  gap: 22px;
  padding: 22px 20px;
}
@media (min-width: 900px) {
  .community-panel {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 28px;
    padding: 28px 24px;
  }
}
.community-copy h2 {
  margin-top: 6px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.05;
}
.community-copy p {
  margin: 12px 0 0;
  max-width: 52ch;
}
.community-reps {
  display: grid;
  gap: 10px;
}
.community-rep {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 0 12px 14px;
  border: 1px solid #2a2a30;
  background: #16161a;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.community-rep.is-profile {
  cursor: pointer;
}
.community-rep.is-profile:hover {
  border-color: #3f3f48;
  background: #1a1a1f;
}
.community-rep-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-right: 42%;
}
.community-rep-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.community-rep-name.mist {
  color: var(--mist-600);
  font-weight: 600;
}
.community-rep-who {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.community-rep-rank {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 1;
}
.community-rep-rank .mil-pill {
  transform: none;
  min-width: 0;
  padding: 2px 4px;
  font-size: 0.7rem;
}
.community-rep-rank .mil-icon {
  width: 1.15em;
  height: 1.15em;
}
.community-rep-rank .mil-pill-abbr {
  display: none;
}
.community-rep > .community-rep-flag {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 42%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  display: block;
  flex: none;
  object-fit: fill;
  object-position: center;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
  animation: none !important;
  filter: none;
  transform: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
}
.community-rep[data-country="ee"] .community-rep-flag {
  background-image: url('/flags/ee.svg?v=20260915ak');
}
.community-rep[data-country="lt"] .community-rep-flag {
  background-image: url('/flags/lt.svg?v=20260915ak');
}
.community-rep[data-country="lv"] .community-rep-flag {
  background-image: url('/flags/lv.svg?v=20260915ak');
}
.community-rep.is-vacant .community-rep-flag {
  opacity: 0.4;
}

.priority-panel {
  display: grid;
  gap: 28px;
}
@media (min-width: 900px) {
  .priority-panel {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}
.priority-copy h2 {
  margin-top: 8px;
  font-size: 1.8rem;
  line-height: 1.05;
}
.priority-copy p { margin: 12px 0 0; max-width: 48ch; }
.checklist {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  position: relative;
  padding: 8px 0 8px 22px;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
  color: var(--mist-100);
}
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--accent);
}
.price {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
}
.priority-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #000;
  background: var(--ink-950);
  padding: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field em {
  font-style: normal;
  color: var(--mist-600);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}
.input {
  width: 100%;
  border: 1px solid #000;
  border-radius: var(--radius-ctl);
  background: var(--ink-950);
  color: var(--mist-100);
  padding: 10px 12px;
  font: 13.5px/1.3 var(--font-sans);
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.5);
}
.input:focus {
  outline: none;
  border-color: var(--accent);
}
.input::placeholder { color: var(--mist-600); }
.form-hint { margin: 0; font-size: 12px; line-height: 1.4; }
.form-hint.ok { color: var(--ok); }
.form-hint.bad { color: var(--danger); }

.rise { animation: rise-in 0.16s ease-out; }
@keyframes rise-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ── Leaderboard (WARCON-style ops table) ── */
.lb-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
@media (min-width: 900px) {
  .lb-top-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }
}
.lb-podium {
  border: 1px solid #2a2a30;
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, #1c1c22 0%, #141418 100%);
  padding: 14px 14px 12px;
  min-height: 0;
  overflow: hidden;
}
.lb-podium-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.lb-podium-head strong {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.lb-podium-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lb-podium-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.lb-podium-list .rank {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--mist-400);
}
.lb-podium-list .who {
  min-width: 0;
  overflow: hidden;
}
.lb-podium-player {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.lb-podium-player:hover .lb-podium-name { color: var(--accent); }
.lb-podium-player .mil-pill-abbr {
  display: none;
}
.lb-podium-player .mil-pill {
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
}
.lb-podium-player .mil-icon {
  width: 18px;
  height: 18px;
}
.lb-podium-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
}
.lb-flag {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 1px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.45);
}
.lb-podium-list .val {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mist-100);
  white-space: nowrap;
  justify-self: end;
}
.lb-podium-empty {
  color: var(--mist-600);
  font-size: 13px;
  margin: 0;
}

.lb-panel { padding: 0; overflow: hidden; }
.lb-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #000;
  background: #16161a;
}
.lb-toolbar .btn-sm {
  height: 34px;
  padding: 0 14px;
  font-size: 11px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.lb-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid #2f2f35;
  border-radius: var(--radius-ctl);
  background: #101014;
  flex: 0 0 auto;
}
.lb-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mist-400);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  min-height: 34px;
  border-radius: 2px;
  cursor: pointer;
  line-height: 1;
}
.lb-tab.active {
  color: var(--ink-950);
  background: var(--accent);
  font-weight: 700;
}
.lb-server-pick {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.lb-server-pick[hidden] {
  display: none !important;
}
.lb-select,
.lb-filter {
  min-width: 0;
  height: 34px;
}
.lb-select { min-width: 140px; width: auto; }
.lb-filter {
  flex: 1 1 220px;
  max-width: none;
  width: auto;
}

.nav a.nav-active {
  color: var(--accent);
}

.page-leaderboard .section--lb {
  padding-top: 28px;
}

@media (max-width: 900px) {
  .lb-tabs { width: 100%; }
  .lb-filter { flex: 1 1 100%; }
  .lb-server-pick { width: 100%; }
  .lb-top-grid { grid-template-columns: 1fr; }
}

.lb-table-wrap {
  overflow-x: auto;
}
.lb-more-wrap {
  display: flex;
  justify-content: center;
  padding: 14px 16px 6px;
  border-top: 1px solid #222228;
}
.lb-more-wrap[hidden] { display: none; }
.lb-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.lb-table th,
.lb-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #222228;
  text-align: left;
  white-space: nowrap;
}
.lb-table th {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c4c4ca;
  font-weight: 600;
  background: #141418;
  position: sticky;
  top: 0;
}
.lb-table th.num,
.lb-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}
.lb-table th.sortable {
  cursor: pointer;
  user-select: none;
}
.lb-table th.sortable:hover,
.lb-table th.sortable.active {
  color: var(--accent);
}
.lb-table th.sortable.active::after {
  content: ' ▾';
  font-size: 10px;
}
.lb-th-rank {
  width: 1%;
  white-space: nowrap;
  padding-left: 8px;
  padding-right: 8px;
}
.lb-td-rank {
  width: 0;
  padding: 0 4px;
}
.lb-cash-pos { color: #3dd68c; }
.lb-cash-neg { color: #f07178; }
.lb-podium-list .val .lb-cash-pos { color: #3dd68c; }
.lb-player {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 160px;
  max-width: 280px;
}
.lb-player strong {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  color: #fff;
  font-weight: 600;
}
.lb-player-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-player-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mist-600);
}
.lb-rank-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  line-height: 0;
}
.lb-player strong .mil-pill,
.lb-rank-slot .mil-pill {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0;
  border: none;
  background: transparent;
  gap: 0;
}
.lb-player strong .mil-pill-abbr,
.lb-rank-slot .mil-pill-abbr {
  display: none;
}
.lb-player strong .mil-icon,
.lb-rank-slot .mil-icon {
  width: 20px;
  height: 20px;
}
.lb-player strong .mil-pill--unr,
.lb-rank-slot .mil-pill--unr,
.community-rep-rank .mil-pill--unr,
.player-name-row .mil-pill--unr {
  background: transparent;
  border: none;
  color: #c4c4ca;
}
.lb-player-link {
  color: inherit;
  text-decoration: none;
}
.lb-player-link:hover .lb-player-name,
.lb-player-link:hover strong {
  color: var(--accent);
}
.lb-faction {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.lb-faction-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mist-600);
  flex-shrink: 0;
}
.lb-faction-dot.valkyra { background: #e25555; }
.lb-faction-dot.manticore { background: #5ecf7a; }
.lb-faction-dot.lonestar { background: #5aa8ff; }
.lb-footnote {
  margin: 0;
  padding: 10px 14px 12px;
  font-size: 11px;
  border-top: 1px solid #000;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .lb-top-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav a:not(.btn):nth-child(1),
  .nav a:not(.btn):nth-child(2) { display: none; }
  .hero {
    min-height: auto;
  }
  .hero-inner {
    padding-top: 64px;
    padding-bottom: 40px;
    min-height: auto;
  }
  .hero-stage-frame { min-height: 180px; }
}

/* ── Player profile ── */
.section--player { padding-top: 28px; }
.player-root { display: grid; gap: 16px; }
.player-hero {
  display: grid;
  gap: 22px;
  padding: 22px;
}
@media (min-width: 900px) {
  .player-hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
  .player-stat-grid {
    grid-column: 1 / -1;
  }
}
.player-hero-main {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.mil-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 48px;
  padding: 6px 8px 5px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, #000);
  background: color-mix(in srgb, var(--accent) 18%, #101014);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}
/* Rank SVGs use currentColor → black inside <img>. Tint to accent on dark chrome. */
.wd-rank-icon,
.nav-rank-icon,
.nav-rank-dd-head img,
.mil-icon,
.lb-player strong .mil-icon {
  filter: brightness(0) saturate(100%) invert(72%) sepia(78%) saturate(1400%) hue-rotate(4deg) brightness(108%);
}
.mil-icon {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.mil-pill-abbr {
  display: block;
  font-size: inherit;
  letter-spacing: inherit;
  line-height: 1;
}
.mil-pill--sm {
  min-width: 40px;
  padding: 4px 5px 3px;
  font-size: 9px;
  flex-shrink: 0;
}
.mil-pill--sm .mil-icon {
  width: 20px;
  height: 20px;
}
.mil-pill--unr {
  border-color: #3a3a42;
  background: #16161a;
  color: var(--mist-100);
}
.mil-pill--unr .mil-icon,
.wd-rank-icon--unr,
.nav-rank-icon.wd-rank-icon--unr,
.nav-rank-dd-head .wd-rank-icon--unr {
  filter: none;
}
/* Solid gold / light pill: keep the native dark chevron */
.mil-pill--gold .mil-icon,
.mil-pill--gold .wd-rank-icon {
  filter: none;
}
.lb-player strong .mil-pill,
.player-name-row .mil-pill {
  min-width: 0;
  padding: 2px 5px;
}
.player-name-row .mil-icon {
  width: 1.15em;
  height: 1.15em;
}
.player-name-row .mil-pill-abbr {
  display: none;
}
.prog-rank-step .mil-pill {
  min-width: 56px;
  padding: 8px 10px 6px;
}
.prog-rank-step .mil-icon {
  width: 32px;
  height: 32px;
}
.prog-rank-step.is-peak .mil-pill {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent),
    0 0 18px rgb(242 169 0 / 0.25);
}
.mil-rank-card {
  display: flex;
  gap: 14px;
  align-items: stretch;
  border: 1px solid #2a2a30;
  background: linear-gradient(160deg, rgb(242 169 0 / 0.1), transparent 50%), #101014;
  padding: 14px;
}
.mil-rank-badge {
  width: 96px;
  min-height: 108px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid var(--accent);
  background: radial-gradient(circle at 35% 25%, #3a2a10, #141418 70%);
  color: var(--accent);
  padding: 10px 8px;
}
.mil-rank-badge .mil-icon {
  width: 48px;
  height: 48px;
}
.mil-abbr {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  line-height: 1;
  font-weight: 700;
}
.mil-grade {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mist-400);
}
.mil-rank-body { min-width: 0; flex: 1; }
.mil-rank-name {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mil-xp { margin: 6px 0 0; font-size: 12px; }
.mil-bar {
  margin-top: 10px;
  height: 6px;
  background: rgb(255 255 255 / 0.08);
  overflow: hidden;
}
.mil-bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #a66a00, var(--accent));
}
.mil-next { margin: 8px 0 0; font-size: 12px; }
.mil-rules { margin: 6px 0 0; font-size: 11px; opacity: 0.85; }
.mil-rank-cell {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.mil-rank-label {
  font-size: 11px;
  line-height: 1.2;
  max-width: 14ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-avatar {
  width: 108px;
  height: 108px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid #000;
  background: #101014;
  flex-shrink: 0;
}
.player-avatar--empty {
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--mist-600);
}
.player-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.player-name-row h1 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  text-transform: none;
  letter-spacing: 0.02em;
}
.player-sub { margin: 4px 0 0; }
.player-bio {
  margin: 12px 0 0;
  max-width: 48ch;
  color: var(--mist-100);
  line-height: 1.5;
}
.player-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
}
.player-links .mono {
  font-family: var(--font-mono);
  font-size: 11px;
}
.player-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.player-stat-grid > div {
  border: 1px solid #2a2a30;
  background: #101014;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.player-stat-grid strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
}
.player-grid {
  display: grid;
  gap: 12px;
}
@media (min-width: 900px) {
  .player-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.player-grid .panel { padding: 16px; }
.player-grid h2 { margin-bottom: 12px; }
.player-main-team {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.player-main-team.lonestar { color: #5aa8ff; }
.player-main-team.valkyra { color: #e25555; }
.player-main-team.manticore { color: #5ecf7a; }
.player-factions { display: grid; gap: 10px; }
.player-faction .name {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
}
.player-faction.lonestar .name { color: #5aa8ff; }
.player-faction.valkyra .name { color: #e25555; }
.player-faction.manticore .name { color: #5ecf7a; }
.player-faction .bar {
  display: block;
  height: 4px;
  background: rgb(255 255 255 / 0.08);
  margin: 6px 0;
  overflow: hidden;
}
.player-faction .bar > i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.player-faction .meta { font-size: 12px; color: var(--mist-400); }
.player-server-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 4px;
}
.player-server-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.player-server-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 8px;
  border-top: 1px solid rgb(255 255 255 / 0.06);
  font-size: 13px;
}
.player-server-list span { color: var(--mist-400); font-size: 12px; }

.player-ach-panel--wide {
  padding: 18px;
  width: 100%;
}
.player-ach-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.player-ach-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 720px) {
  .player-ach-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .player-ach-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.ach-card {
  position: relative;
  border: 1px solid #2a2a30;
  background: linear-gradient(180deg, #1a1a20 0%, #101014 100%);
  padding: 12px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-height: 148px;
}
.ach-card strong {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}
.ach-desc {
  color: var(--mist-400);
  font-size: 11px;
  line-height: 1.35;
  flex: 1;
}
.ach-track {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mist-100);
  letter-spacing: 0.02em;
}
.ach-card.is-locked .ach-track { color: var(--mist-400); }
.ach-art {
  position: relative;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}
.ach-art img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 8px rgb(0 0 0 / 0.4)) saturate(0.88);
}
.ach-tier-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid #000;
  background: #0c0c0e;
  font-family: var(--font-display);
  z-index: 1;
}
.ach-progress {
  display: block;
  width: 100%;
  height: 3px;
  background: rgb(255 255 255 / 0.08);
  overflow: hidden;
  margin-top: 4px;
}
.ach-progress > i {
  display: block;
  height: 100%;
  background: currentColor;
}
.ach-bronze { color: #cd7f32; }
.ach-silver { color: #c0c0c0; }
.ach-gold { color: #f2a900; }
.ach-card.is-locked .ach-art img { filter: grayscale(1) brightness(0.65); }
.ach-card.is-locked {
  opacity: 0.42;
  filter: grayscale(0.85);
}
.ach-card.is-locked .ach-art {
  background: transparent;
  color: #6b6b72;
}
.ach-card:not(.is-locked) {
  box-shadow: 0 0 0 1px color-mix(in srgb, currentColor 28%, transparent);
}

.discord-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid #2a2a30;
  background: #101014;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist-400);
}
.discord-pill.is-linked { color: #7dd3a0; border-color: rgb(125 211 160 / 0.35); }
.discord-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.discord-box {
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #2a2a30;
  background: #101014;
  display: grid;
  gap: 10px;
}
.discord-status {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--mist-400);
}
.discord-status.is-linked { color: #7dd3a0; }
.discord-status strong {
  display: block;
  color: var(--mist-100);
  font-size: 13px;
}
.discord-status p { margin: 2px 0 0; font-size: 12px; }
.discord-link-form {
  display: grid;
  gap: 8px;
}
.panel-inset { /* alias */ }

.player-roles-note { display: none; }
.player-edit, .player-cta {
  padding: 18px;
}
.player-edit h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}
.player-edit-actions, .player-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.lb-avatar {
  width: 28px;
  height: 28px;
  border-radius: 3px;
  object-fit: cover;
  border: 1px solid #000;
  flex-shrink: 0;
  background: #101014;
}

.priority-gate {
  border: 1px solid #000;
  background: var(--ink-950);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.priority-gate h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.priority-gate .mist { max-width: 36ch; }

.section--account { padding-top: 28px; }
.account-root { display: flex; flex-direction: column; gap: 18px; }
.account-gate {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.account-gate h1,
.account-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.account-head {
  display: flex;
  gap: 16px;
  align-items: center;
}
.account-avatar {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  border: 1px solid #000;
  object-fit: cover;
  background: #101014;
}
.account-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.mono { font-family: var(--font-mono); font-size: 12px; }
.account-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 900px) {
  .account-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dash-card--wide { grid-column: 1 / -1; }
}
.dash-card {
  border: 1px solid #000;
  background: var(--ink-950);
  padding: 16px;
}
.dash-card--active {
  border-color: color-mix(in srgb, var(--accent) 55%, #000);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}
.dash-remain {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.price--sm { font-size: 1.35rem; margin-top: 10px; }
.dash-dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin: 14px 0 0;
}
.dash-dl dt {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist-600);
}
.dash-dl dd { margin: 2px 0 0; color: var(--mist-100); }
.account-form { border: 0; padding: 0; background: transparent; }
.account-form textarea.input {
  resize: vertical;
  min-height: 72px;
}
.table-wrap { overflow-x: auto; margin-top: 10px; }
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dash-table th,
.dash-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid rgb(255 255 255 / 0.06);
}
.dash-table th {
  color: var(--mist-600);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.status-pill {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid #000;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status-active { color: #86efac; background: rgb(34 197 94 / 0.12); }
.status-pending { color: #fde68a; background: rgb(234 179 8 / 0.12); }
.status-expired { color: var(--mist-600); background: rgb(255 255 255 / 0.04); }
.nav a.is-active { color: var(--accent); }

/* Priority + supporter badges */
.wd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid #3a3a42;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5e7eb;
  background: #1a1a1f;
  white-space: nowrap;
}
.wd-badge--priority {
  color: #fde68a;
  border-color: rgb(253 230 138 / 0.35);
  background: rgb(234 179 8 / 0.12);
}
.wd-badge--sup-bronze {
  color: #fdba74;
  border-color: rgb(253 186 116 / 0.35);
  background: rgb(194 65 12 / 0.14);
}
.wd-badge--sup-silver {
  color: #e5e7eb;
  border-color: rgb(229 231 235 / 0.35);
  background: rgb(156 163 175 / 0.16);
}
.wd-badge--sup-gold {
  color: #fcd34d;
  border-color: rgb(252 211 77 / 0.4);
  background: rgb(202 138 4 / 0.16);
}
.account-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.field-static {
  display: grid;
  gap: 4px;
  margin: 0 0 12px;
}
.field-static strong { color: #fff; font-weight: 600; }
.sup-status { margin-bottom: 14px; }
.sup-tiers {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.sup-tier {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid #2a2a30;
  opacity: 0.45;
}
.sup-tier.is-on {
  opacity: 1;
  border-color: #3f3f48;
  background: #1a1a1f;
}
.sup-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.sup-amount-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sup-eur {
  color: var(--mist-100);
  font-weight: 600;
}
/* Nav military rank chip + XP dropdown */
.nav-rank {
  position: relative;
  flex-shrink: 0;
}
.nav-rank-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px 0 8px;
  border: 1px solid #2a2a30;
  background: #16161a;
  color: #f3f3f5;
  cursor: pointer;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.nav-rank-btn:hover,
.nav-rank.is-open .nav-rank-btn {
  border-color: rgb(242 169 0 / 0.45);
  background: #1c1c22;
}
.nav-rank-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  filter: brightness(0) saturate(100%) invert(72%) sepia(78%) saturate(1400%) hue-rotate(4deg) brightness(108%);
}
.nav-rank-icon.wd-rank-icon--unr,
.nav-rank-dd-head .wd-rank-icon--unr {
  filter: none;
}
.nav-rank-abbr {
  display: none;
}
.nav-rank-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid #8a8a90;
  margin-left: 2px;
}
.nav-rank.is-open .nav-rank-caret {
  transform: rotate(180deg);
  border-top-color: var(--accent, #f2a900);
}
.nav-rank-dd {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(280px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid #2a2a30;
  background: #121216;
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.55);
  z-index: 80;
  display: none;
  gap: 10px;
}
.nav-rank.is-open .nav-rank-dd {
  display: grid;
}
.nav-rank-dd[hidden] {
  display: none !important;
}
.nav-rank-dd-head {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-rank-dd-head img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav-rank-dd-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.15;
}
.nav-rank-dd-head .caps { margin: 0 0 2px; }
.nav-rank-dd-head .mist { margin: 4px 0 0; font-size: 12px; }
.nav-rank-xp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #e5e7eb;
}
.nav-rank-bar {
  height: 6px;
  background: rgb(255 255 255 / 0.08);
  overflow: hidden;
}
.nav-rank-bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #a66a00, #f2a900);
}
.nav-rank-next {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}
@media (max-width: 720px) {
  .nav-rank-abbr { display: none; }
  .nav-rank-btn { padding: 0 8px; }
}
/* 20260915am: community flags pin to the card right edge (span or img) */
.community-rep {
  position: relative;
  overflow: hidden;
  padding: 12px 0 12px 14px;
}
.community-rep-flag,
img.community-rep-flag,
.community-rep .community-rep-flag img {
  position: absolute !important;
  inset: 0 0 0 55% !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  aspect-ratio: unset !important;
  object-fit: fill !important;
  display: block;
  margin: 0;
  pointer-events: none;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%);
  mask-image: linear-gradient(90deg, transparent, #000 40%);
}
/* Replaced <img> ignores left+right stretch; force the paint box to the inset area */
img.community-rep-flag {
  width: 45% !important;
  height: 100% !important;
}
.community-rep .community-rep-flag img {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* 20260915an: SVG viewBox letterboxes; paint flags as stretching gradients */
.community-rep[data-country="ee"] .community-rep-flag {
  background-image: linear-gradient(#0072ce 33.333%, #000 33.333% 66.666%, #fff 66.666%) !important;
}
.community-rep[data-country="lt"] .community-rep-flag {
  background-image: linear-gradient(#fdb913 33.333%, #006a44 33.333% 66.666%, #c1272d 66.666%) !important;
}
.community-rep[data-country="lv"] .community-rep-flag {
  background-image: linear-gradient(#9e3039 40%, #fff 40% 60%, #9e3039 60%) !important;
}

/* 20260915wd: streamer promo + new emblem (do not touch community flags above) */
.brand-logo {
  border-radius: 50%;
  background: #000;
}
.hero-logo {
  width: 104px;
  height: 104px;
  object-fit: contain;
  display: block;
  margin: 0 0 18px;
  filter: drop-shadow(0 10px 22px rgb(0 0 0 / 0.5));
}
.nav-twitch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #c4b5fd;
  opacity: 0.9;
}
.nav-twitch svg { display: block; }
#servers > #streamer-promo.streamer-promo,
.streamer-promo {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 0 16px;
  padding: 0;
  box-sizing: border-box;
}
.streamer-promo-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border-radius: 0;
  border: 1px solid rgb(216 180 255 / 0.38);
  background:
    linear-gradient(135deg, rgb(124 58 237 / 0.22), rgb(88 28 135 / 0.14) 52%, rgb(15 15 18 / 0.12));
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow:
    0 8px 28px rgb(76 29 149 / 0.12),
    inset 0 1px 0 rgb(255 255 255 / 0.16);
  color: #f3e8ff;
}
.streamer-promo-twitch {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 0;
  color: #d8b4fe;
  background: rgb(145 70 255 / 0.26);
  border: 1px solid rgb(191 148 255 / 0.38);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.12);
}
.streamer-promo-twitch svg { display: block; }
.streamer-promo-copy { flex: 1; min-width: 0; }
.streamer-promo-copy .caps {
  color: #e9d5ff;
  margin: 0 0 2px;
}
.streamer-promo-copy strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 17px;
  line-height: 1.15;
  color: #faf5ff;
}
.streamer-promo-copy p {
  margin: 4px 0 0;
  color: #ddd6fe;
  font-size: 13px;
  line-height: 1.4;
}
.streamer-promo-cta {
  border-radius: 0 !important;
  border-color: rgb(196 160 255 / 0.55) !important;
  background: rgb(124 58 237 / 0.48) !important;
  color: #fff !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.streamer-promo-cta:hover {
  border-color: rgb(221 214 254 / 0.75) !important;
  background: rgb(167 139 250 / 0.55) !important;
}
@media (max-width: 820px) {
  .streamer-promo-card { flex-wrap: wrap; }
  .hero-logo { width: 84px; height: 84px; }
}
#servers.section { padding-top: 28px; }

/* 20260915jr: join-ranks card — same width as server grid, square like streamer */
#join.section {
  padding-top: 8px;
}
#join .join-ranks,
.join-ranks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  box-sizing: border-box;
  padding: 22px 24px;
  border-radius: 0;
  border: 1px solid #2a2a30;
  background: rgb(26 26 30 / 0.92);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
}
.join-ranks-copy {
  flex: 1;
  min-width: 0;
  max-width: 72ch;
}
.join-ranks-copy .caps {
  margin: 0 0 2px;
}
.join-ranks-copy h2 {
  margin-top: 6px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.1;
}
.join-ranks-copy p.mist {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
}
.join-ranks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}
.join-ranks-actions .btn {
  border-radius: 0;
}
@media (max-width: 820px) {
  .join-ranks {
    flex-wrap: wrap;
    padding: 18px 16px;
  }
}

/* 20260915ic: hero width = streamer/servers; readable copy; transparent mark */
.brand-logo,
.hero-logo {
  background: transparent !important;
  border-radius: 0 !important;
  object-fit: contain;
}
.hero-inner.page-x {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto !important;
  justify-items: stretch !important;
  align-items: start !important;
  width: 100%;
  max-width: 1320px !important;
  margin-left: auto;
  margin-right: auto;
  padding: 88px 16px 48px !important;
  box-sizing: border-box;
}
@media (min-width: 640px) {
  .hero-inner.page-x { padding: 88px 24px 48px !important; }
}
.hero-copy,
.hero-stats,
.hero-progress {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  justify-self: stretch !important;
}
.hero-copy {
  margin: 0;
}
.hero h1,
.lede,
.hero-copy .lede,
.hero-ranks-copy .mist,
.hero-ranks-note {
  max-width: none !important;
}
.lede,
.hero-copy .lede,
.hero-ranks-copy .mist,
.hero-ranks-note,
.join-ranks-copy p.mist,
.streamer-promo-copy p,
.prog-ach > span,
.prog-xp-chip span {
  letter-spacing: normal !important;
  word-spacing: normal !important;
  font-family: var(--font-sans) !important;
  text-transform: none;
}
.prog-ach strong {
  letter-spacing: 0.03em;
}
#servers-meta.caps,
.hero-ranks-head .caps {
  letter-spacing: 0.08em;
}

/* 20260915ic2: stack hero rows so chart cannot sit on the title */
.hero-copy,
.hero-stats,
.hero-progress {
  grid-row: auto !important;
}
.hero-copy { order: 1; }
.hero-stats { order: 2; }
.hero-progress { order: 3; }

/* 20260915sa: solid shop-ad card above join — opaque, no glass, no .caps tracking */
#shop-ad.section {
  padding-top: 8px;
  padding-bottom: 0;
}
#shop-ad .shop-ad,
.shop-ad {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
  box-sizing: border-box;
  padding: 22px 24px;
  border-radius: 0;
  border: 1px solid #2a2a30;
  background: #1a1a1e;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
}
.shop-ad-main {
  display: block;
  flex: 1;
  min-width: 0;
  max-width: 72ch;
  color: inherit;
}
.shop-ad-kicker,
.shop-ad-title,
.shop-ad-body,
.shop-ad-prices,
.shop-ad-prices li {
  letter-spacing: 0;
  word-spacing: normal;
  text-transform: none;
  font-family: var(--font-sans);
}
.shop-ad-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.shop-ad-title {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
  color: #f3f3f5;
}
.shop-ad-body {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--mist-400);
}
.shop-ad-prices {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: #e8e8e8;
}
.shop-ad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}
.shop-ad-actions .btn {
  border-radius: 0;
  letter-spacing: 0;
  word-spacing: normal;
  text-transform: none;
  font-family: var(--font-sans);
}
@media (max-width: 820px) {
  .shop-ad {
    flex-wrap: wrap;
    padding: 18px 16px;
  }
}
#priority {
  scroll-margin-top: 88px;
}


/* 20260915xp: xp chips + rank/ach labels — ASCII tracking, no condensed glue */
.prog-xp-chip,
.hero-xp-rules .prog-xp-chip,
.prog-xp-chip span,
.hero-xp-rules .prog-xp-chip span {
  letter-spacing: normal !important;
  word-spacing: normal !important;
  text-transform: none !important;
  font-family: var(--font-sans) !important;
}
.prog-xp-chip strong,
.hero-xp-rules .prog-xp-chip strong {
  letter-spacing: 0 !important;
  word-spacing: normal !important;
  text-transform: none !important;
  font-family: var(--font-mono) !important;
}
.hero-ranks-head .caps,
.hero-ranks-head .rank-lbl,
.hero-ranks-head .rank-meta,
.prog-ach strong,
.prog-ach > span,
.hero-ranks-note,
.rank-lbl,
.rank-meta {
  letter-spacing: normal !important;
  word-spacing: normal !important;
  text-transform: none !important;
  font-family: var(--font-sans) !important;
}

/* 20260915pc: player chart — real plot height + readable labels */
.hero-stats-nums .caps,
.hero-stats-nums .stats-lbl,
.hero-stats-head .caps,
.hero-stats-head .accent-text,
.hero-stats-head .stats-lbl,
#stats-meta.caps,
#stats-meta {
  letter-spacing: 0.04em !important;
  word-spacing: 0.16em !important;
  font-family: var(--font-sans) !important;
  text-transform: uppercase;
  max-width: none !important;
}
.hero-stats-head {
  flex-wrap: wrap;
  gap: 8px 16px;
}
.hero-stats-head .accent-text,
.hero-stats-head .stats-lbl.accent-text {
  font-size: 12px;
  line-height: 1.35;
}
.hero-stats-chart {
  height: 220px !important;
  min-height: 200px !important;
  max-height: 240px;
  display: flex !important;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.hero-stats-chart svg {
  display: block;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 176px;
  max-height: 220px;
  letter-spacing: 0;
}
.hero-stats-chart svg text {
  letter-spacing: 0 !important;
  word-spacing: 0 !important;
  font-family: var(--font-sans), Barlow, sans-serif !important;
}
.hero-stats-chart .chart-ymax {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #c4c4ca;
  letter-spacing: normal;
  word-spacing: normal;
  pointer-events: none;
}
.hero-stats-chart .chart-axis {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  padding: 5px 8px 6px;
  font-family: var(--font-sans) !important;
  font-size: 11px;
  line-height: 1.2;
  color: #8a8a90;
  letter-spacing: normal !important;
  word-spacing: normal !important;
  text-transform: none;
}
.hero-stats-chart .chart-axis span {
  letter-spacing: normal !important;
  word-spacing: normal !important;
  font-family: var(--font-sans) !important;
  text-transform: none;
}

/* 20260915xg: XP chips readable — ASCII -12, no .caps tracking */
.prog-xp-chip,
.hero-xp-rules .prog-xp-chip,
.prog-xp-chip span,
.hero-xp-rules .prog-xp-chip span {
  letter-spacing: normal !important;
  word-spacing: normal !important;
  text-transform: none !important;
  font-family: var(--font-sans) !important;
}
.prog-xp-chip strong,
.hero-xp-rules .prog-xp-chip strong {
  letter-spacing: 0 !important;
  word-spacing: normal !important;
  text-transform: none !important;
  font-family: var(--font-mono) !important;
}

/* 20260915bg: roomy shop-ad + cinematic art behind. Do not use .caps tracking. */
#shop-ad.section {
  padding-top: 16px;
  padding-bottom: 8px;
}
#shop-ad .shop-ad,
.shop-ad {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: block;
  width: 100%;
  min-height: 260px;
  box-sizing: border-box;
  padding: 0;
  border-radius: 0;
  border: 1px solid #2a2a30;
  background: #141418;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.04);
}
.shop-ad-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("/ironcrest-gg-wide.20260915bg.jpg");
  background-size: cover;
  background-position: center 28%;
  background-repeat: no-repeat;
  opacity: 0.34;
  filter: saturate(0.85);
}
.shop-ad::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgb(12 12 16 / 0.92) 0%, rgb(12 12 16 / 0.78) 46%, rgb(12 12 16 / 0.58) 100%),
    linear-gradient(180deg, rgb(12 12 16 / 0.18) 0%, rgb(12 12 16 / 0.42) 100%);
}
.shop-ad-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  width: 100%;
  min-height: 260px;
  box-sizing: border-box;
  padding: 36px 40px;
}
#shop-ad .shop-ad,
#shop-ad .shop-ad *,
.shop-ad,
.shop-ad * {
  letter-spacing: 0 !important;
  word-spacing: 0.16em !important;
  text-transform: none !important;
  font-family: Barlow, "Segoe UI", system-ui, sans-serif !important;
  font-stretch: normal !important;
}
.shop-ad-main {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 62ch;
  color: inherit;
}
.shop-ad-kicker {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--accent);
}
.shop-ad-title {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.3;
  color: #f6f1e6;
}
.shop-ad-body {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: #c8c8ce;
}
.shop-ad-prices {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 16px;
  line-height: 1.45;
  color: #efe8d8;
}
.shop-ad-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  flex: 0 0 auto;
  min-width: 260px;
  width: min(280px, 100%);
}
#shop-ad .shop-ad-actions .btn,
.shop-ad-actions .btn,
.shop-ad-cta {
  height: auto !important;
  min-height: 48px;
  padding: 12px 18px !important;
  border-radius: 0;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 1.3;
  white-space: normal;
  text-align: center;
}
@media (max-width: 820px) {
  .shop-ad-inner {
    flex-wrap: wrap;
    padding: 28px 20px;
    min-height: 0;
    gap: 22px;
  }
  .shop-ad-actions {
    width: 100%;
    min-width: 0;
  }
}
#priority {
  scroll-margin-top: 88px;
}
