.server-stats-page {
  width: min(1240px, 94vw);
}

.server-stats-hero {
  display: grid;
  grid-template-columns: clamp(150px, 22vw, 248px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 6vw, 64px);
  min-height: min(48vh, 470px);
  margin-bottom: clamp(26px, 5vw, 52px);
}

.server-stats-logo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(2, 6, 12, 0.55);
}

.server-stats-hero-copy {
  min-width: 0;
}

.server-stats-hero h1 {
  margin: 10px 0 12px;
  color: var(--bm-ink);
  font-size: clamp(46px, 8vw, 82px);
  line-height: 1;
}

.server-stats-hero-copy > p {
  max-width: 760px;
  margin: 0;
  padding: 0;
  color: var(--bm-ink-soft);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.6;
}

.server-stats-hero-copy .server-stats-updated {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 18px;
  color: var(--bm-muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.server-stats-updated span {
  color: var(--bm-gold-soft);
}

.server-metric-section {
  overflow: hidden;
}

.server-section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  align-items: end;
  gap: 24px;
  margin-bottom: 22px;
}

.server-section-heading h2 {
  margin: 10px 0 0;
}

.server-section-heading > p {
  justify-self: end;
  max-width: 600px;
}

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

.server-metric-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  min-height: 156px;
  padding: 18px;
  border: 1px solid var(--bm-aqua-border);
  border-radius: 8px;
  background: var(--bm-card-strong);
}

.server-metric-card::before {
  position: absolute;
  top: -1px;
  left: 18px;
  width: 42px;
  height: 2px;
  background: var(--bm-aqua);
  content: "";
}

.server-metric-card > span {
  color: var(--bm-ink-soft);
  font-weight: 700;
}

.server-metric-card strong {
  color: var(--bm-aqua);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
  overflow-wrap: normal;
  word-break: normal;
}

.server-metric-card-money strong {
  font-size: 29px;
  white-space: nowrap;
}

.server-metric-card small {
  align-self: end;
  color: var(--bm-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.server-metric-card-featured {
  border-color: rgba(255, 215, 0, 0.52);
}

.server-metric-card-featured::before {
  background: var(--bm-gold);
}

.server-system-note {
  margin-top: 18px !important;
  padding-left: 15px !important;
  border-left: 2px solid var(--bm-aqua);
  color: var(--bm-muted) !important;
  font-size: 0.92rem;
}

.server-player-intro {
  margin: clamp(48px, 8vw, 84px) 0 20px;
}

.server-player-intro h2 {
  margin: 10px 0 8px;
  color: var(--bm-aqua);
  font-size: clamp(30px, 5vw, 48px);
}

.server-player-intro p {
  margin: 0;
  padding: 0;
  color: var(--bm-ink-soft);
  line-height: 1.6;
}

@media (prefers-reduced-motion: no-preference) {
  .server-stats-logo {
    animation: server-stats-breathe 7s ease-in-out infinite;
  }

  @keyframes server-stats-breathe {
    0%,
    100% {
      transform: scale(1);
      filter: brightness(1);
    }
    50% {
      transform: scale(1.025);
      filter: brightness(1.06);
    }
  }
}

@media (max-width: 960px) {
  .server-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .server-stats-hero {
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 300px;
  }

  .server-section-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .server-section-heading > p {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .server-stats-hero {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px;
    min-height: 230px;
  }

  .server-stats-hero h1 {
    font-size: clamp(38px, 13vw, 54px);
  }

  .server-stats-hero-copy > p {
    font-size: 15px;
  }

  .server-stats-hero-copy .server-stats-updated {
    display: none;
  }

  .server-metric-grid {
    grid-template-columns: 1fr;
  }

  .server-metric-card {
    min-height: 132px;
  }
}
