:root {
  color-scheme: dark;
  --page: #050b14;
  --page-raised: #07111f;
  --surface: rgba(13, 28, 46, 0.78);
  --surface-strong: #0d1d30;
  --line: rgba(174, 207, 238, 0.14);
  --line-bright: rgba(56, 189, 248, 0.3);
  --text: #f7fbff;
  --muted: #9eb1c5;
  --blue: #12a8ff;
  --blue-bright: #43c5ff;
  --blue-deep: #0877d2;
  --green: #59dfa4;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  display: flex;
  min-height: 100vh;
  margin: 0;
  min-width: 320px;
  flex-direction: column;
  overflow-x: hidden;
  background:
    linear-gradient(132deg, rgba(8, 66, 105, 0.11), transparent 24rem),
    var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(67, 197, 255, 0.72);
  outline-offset: 4px;
  border-radius: 6px;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 10px;
  background: var(--text);
  color: var(--page);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(5, 11, 20, 0.76);
  backdrop-filter: blur(18px) saturate(130%);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  gap: 28px;
}

.brand,
.footer-brand {
  width: 224px;
}

.brand img,
.footer-brand img {
  width: 100%;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.primary-nav a,
.site-footer nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 160ms ease;
}

.primary-nav a:hover,
.site-footer nav a:hover {
  color: var(--text);
}

.header-cta {
  justify-self: end;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.96rem;
  font-weight: 850;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue));
  color: #00111f;
  box-shadow: 0 12px 34px rgba(18, 168, 255, 0.22);
}

.button-primary:hover {
  box-shadow: 0 16px 40px rgba(18, 168, 255, 0.32);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.065);
}

.button-small {
  min-height: 42px;
  padding: 9px 15px;
  font-size: 0.87rem;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid-pattern {
  position: absolute;
  z-index: -3;
  inset: 0;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(112, 183, 227, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 183, 227, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.hero::after {
  position: absolute;
  z-index: -2;
  right: -14%;
  bottom: -34%;
  width: 66%;
  aspect-ratio: 1;
  border: 1px solid rgba(24, 166, 248, 0.14);
  border-radius: 50%;
  box-shadow: inset 0 0 110px rgba(18, 168, 255, 0.06);
  content: "";
}

.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(18px);
  pointer-events: none;
}

.hero-glow-one {
  top: 8%;
  right: 5%;
  width: 480px;
  height: 480px;
  background: rgba(0, 141, 255, 0.12);
}

.hero-glow-two {
  bottom: 0;
  left: 5%;
  width: 260px;
  height: 260px;
  background: rgba(47, 202, 255, 0.055);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: clamp(56px, 8vw, 108px);
  min-height: 720px;
  padding-block: 88px 94px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--blue-bright);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(89, 223, 164, 0.7);
}

.hero h1,
.section h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.55rem, 5.6vw, 5.25rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.hero h1 span {
  background: linear-gradient(110deg, #fff 18%, #a6dcff 56%, var(--blue-bright));
  background-clip: text;
  color: transparent;
}

.hero-summary {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.75;
}

.hero-summary strong {
  color: #dcefff;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-note {
  margin: 18px 0 0;
  color: #7990a7;
  font-size: 0.86rem;
}

.identity-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(21, 50, 77, 0.92), rgba(7, 17, 31, 0.98) 62%),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.identity-card::before {
  position: absolute;
  top: -80px;
  right: -90px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(18, 168, 255, 0.18);
  filter: blur(34px);
  content: "";
}

.identity-icon-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  background: rgba(2, 10, 19, 0.44);
}

.identity-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.identity-domain {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--blue-bright);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.identity-domain span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.identity-card h2 {
  margin: 0 0 26px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.identity-card dl {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--line);
}

.identity-card dl div {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.identity-card dt {
  color: #7890a8;
  font-size: 0.82rem;
  font-weight: 700;
}

.identity-card dd {
  margin: 0;
  color: #e8f5ff;
  font-size: 0.86rem;
  font-weight: 800;
}

.section {
  padding-block: 108px;
}

.section h2 {
  max-width: 740px;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  line-height: 1.04;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(50px, 10vw, 130px);
  align-items: start;
}

.prose {
  padding-top: 32px;
  color: var(--muted);
  font-size: 1.05rem;
}

.prose p {
  margin: 0 0 22px;
}

.prose strong {
  color: var(--text);
}

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

.history-card {
  min-height: 255px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(14, 31, 51, 0.64), rgba(7, 17, 31, 0.4));
}

.history-year {
  margin: 0 0 44px;
  color: var(--blue-bright);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.history-card h3,
.server-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.history-card p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-servers {
  border-block: 1px solid var(--line);
  background: #07101c;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading-row > p {
  max-width: 390px;
  margin: 0 0 5px;
  color: var(--muted);
}

.server-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 58px;
}

.server-card {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 178px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.server-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-bright);
  background: rgba(18, 168, 255, 0.045);
}

.server-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--blue-bright);
  font-size: 0.72rem;
  font-weight: 900;
}

.server-label {
  margin: 0 0 5px;
  color: #6e879f;
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.server-card code {
  display: inline-block;
  margin-top: 12px;
  color: #b7cbe0;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
}

.server-actions {
  display: grid;
  gap: 7px;
}

.server-actions a,
.server-actions button {
  min-width: 84px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.025);
  color: #b8cadb;
  font-size: 0.77rem;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.server-actions a {
  border-color: rgba(18, 168, 255, 0.3);
  background: rgba(18, 168, 255, 0.1);
  color: var(--blue-bright);
}

.server-actions a:hover,
.server-actions button:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.server-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  color: #8298ad;
  font-size: 0.84rem;
}

.server-note > span {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue-bright);
  font-family: Georgia, serif;
  font-weight: 700;
}

.server-note p {
  margin: 0;
}

.server-note a {
  color: #bddfff;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.15fr);
  gap: clamp(54px, 9vw, 120px);
  align-items: start;
}

.faq-intro {
  max-width: 390px;
  margin: 22px 0 0;
  color: var(--muted);
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 24px 44px 24px 0;
  color: #eaf6ff;
  font-size: 1.02rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 5px;
  color: var(--blue-bright);
  font-size: 1.3rem;
  font-weight: 400;
  content: "+";
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  margin: -8px 45px 24px 0;
  color: var(--muted);
}

.faq-list code {
  color: #cce7fb;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

.section-cta {
  padding-top: 20px;
}

.cta-panel {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 32px;
  overflow: hidden;
  padding: 42px;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 7% 30%, rgba(53, 191, 255, 0.18), transparent 20rem),
    linear-gradient(135deg, #0c2138, #081421);
  box-shadow: var(--shadow);
}

.cta-panel::after {
  position: absolute;
  z-index: 0;
  top: -50%;
  right: 13%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(82, 200, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.cta-panel > * {
  position: relative;
  z-index: 1;
}

.cta-panel img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.cta-panel h2 {
  max-width: 660px;
  font-size: clamp(1.65rem, 3vw, 2.65rem);
}

.site-footer {
  margin-top: 108px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 135px;
  gap: 28px;
}

.footer-brand {
  width: 184px;
}

.site-footer p {
  margin: 0;
  color: #6e8499;
  font-size: 0.8rem;
}

.site-footer nav {
  display: flex;
  justify-self: end;
  gap: 24px;
}

.copy-status {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 20px;
  padding: 11px 15px;
  transform: translateY(30px);
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  background: #10263b;
  color: #dff5ff;
  box-shadow: var(--shadow);
  font-size: 0.84rem;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.copy-status.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    display: none;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 60px;
    padding-block: 82px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .identity-card {
    max-width: 640px;
  }

  .split-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .prose {
    max-width: 760px;
    padding-top: 0;
  }

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

  .cta-panel {
    grid-template-columns: 92px 1fr;
  }

  .cta-panel img {
    width: 92px;
    height: 92px;
  }

  .cta-panel .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .site-header {
    position: static;
  }

  .header-inner {
    min-height: 72px;
    gap: 16px;
  }

  .brand {
    width: 175px;
  }

  .header-cta {
    padding-inline: 12px;
  }

  .header-cta span {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-layout {
    padding-block: 68px;
  }

  .hero-actions {
    display: grid;
  }

  .hero-actions .button {
    width: 100%;
  }

  .identity-card {
    padding: 25px;
  }

  .identity-icon-wrap {
    width: 112px;
    height: 112px;
  }

  .section {
    padding-block: 78px;
  }

  .history-grid {
    grid-template-columns: 1fr;
    margin-top: 48px;
  }

  .history-card {
    min-height: 0;
  }

  .history-year {
    margin-bottom: 24px;
  }

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

  .section-heading-row > p {
    margin-top: 20px;
  }

  .server-grid {
    margin-top: 42px;
  }

  .server-card {
    grid-template-columns: 44px 1fr;
    min-height: 0;
  }

  .server-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .cta-panel {
    display: block;
    padding: 28px;
  }

  .cta-panel img {
    width: 84px;
    height: 84px;
    margin-bottom: 26px;
  }

  .cta-panel .button {
    width: 100%;
    margin-top: 26px;
  }

  .site-footer {
    margin-top: 78px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 14px;
    padding-block: 32px;
  }

  .site-footer nav {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Simplified public home */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.primary-nav a[aria-current="page"] {
  color: var(--text);
}

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.home-hero::before,
.home-hero::after {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  content: "";
  filter: blur(10px);
}

.home-hero::before {
  top: -260px;
  left: 50%;
  width: 680px;
  height: 680px;
  background: rgba(18, 168, 255, 0.13);
  transform: translateX(-50%);
}

.home-hero::after {
  right: -180px;
  bottom: -260px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(67, 197, 255, 0.15);
  box-shadow: inset 0 0 100px rgba(18, 168, 255, 0.045);
}

.home-hero-grid {
  position: absolute;
  z-index: -3;
  inset: 0;
  opacity: 0.23;
  background-image:
    linear-gradient(rgba(112, 183, 227, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 183, 227, 0.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 94%);
}

.home-hero-inner {
  display: flex;
  min-height: 510px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 90px;
  text-align: center;
}

.home-hero-mark {
  width: min(720px, 88vw);
}

.home-hero-mark img {
  width: 100%;
  height: auto;
}

.home-hero-inner > p {
  max-width: 680px;
  margin: 25px auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
}

.home-hero .hero-actions {
  justify-content: center;
  margin-top: 30px;
}

.quick-links {
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}

.quick-link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.quick-link-grid > a {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.quick-link-grid > a:hover {
  transform: translateY(-2px);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.quick-link-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  background: rgba(18, 168, 255, 0.08);
  color: var(--blue-bright);
  font-size: 0.85rem;
  font-weight: 900;
}

.quick-link-grid strong,
.quick-link-grid small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-link-grid strong {
  color: #ebf7ff;
  font-size: 0.86rem;
}

.quick-link-grid small {
  color: #71879c;
  font-size: 0.7rem;
}

.quick-link-grid > a > span:last-child {
  color: #66839b;
  font-size: 0.86rem;
}

.compact-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}

.compact-heading > p {
  max-width: 510px;
  margin: 0 0 5px;
  color: var(--muted);
}

.home-page .section h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.server-description {
  margin: 7px 0 0;
  color: #7f95aa;
  font-size: 0.8rem;
  line-height: 1.45;
}

.community-section {
  background: var(--page);
}

.community-card-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  margin-top: 48px;
}

.community-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(14, 31, 51, 0.6), rgba(7, 17, 31, 0.4));
}

.community-card-featured {
  border-color: var(--line-bright);
  background:
    radial-gradient(circle at 100% 0, rgba(18, 168, 255, 0.15), transparent 18rem),
    linear-gradient(145deg, rgba(14, 39, 64, 0.88), rgba(7, 17, 31, 0.7));
}

.card-label {
  margin: 0 0 34px;
  color: var(--blue-bright);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.community-card h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}

.community-card > p:not(.card-label) {
  margin: 13px 0 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.community-card .button,
.community-card .text-link {
  margin-top: auto;
}

.text-link {
  color: #bfe8ff;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  color: var(--text);
}

.simple-footer {
  margin-top: 0;
}

/* Steam profile and rankings */
.inner-page {
  min-height: 100vh;
}

.profile-main,
.ranking-main {
  min-height: 650px;
  padding-block: 72px 110px;
}

.flash-message {
  margin-bottom: 28px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  color: #dbeeff;
  font-size: 0.88rem;
}

.flash-success {
  border-color: rgba(89, 223, 164, 0.3);
  background: rgba(89, 223, 164, 0.07);
}

.flash-error {
  border-color: rgba(255, 112, 112, 0.32);
  background: rgba(255, 112, 112, 0.07);
}

.login-panel {
  display: flex;
  max-width: 740px;
  min-height: 520px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 0, rgba(18, 168, 255, 0.13), transparent 24rem),
    rgba(9, 21, 35, 0.78);
  box-shadow: var(--shadow);
  text-align: center;
}

.login-mark {
  width: 116px;
  height: 116px;
  margin-bottom: 25px;
}

.login-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-panel h1,
.player-header h1,
.ranking-heading h1,
.legal-content h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.15rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
}

.login-panel > p:not(.section-kicker) {
  max-width: 560px;
  margin: 23px 0;
  color: var(--muted);
}

.steam-login-button {
  display: inline-flex;
  margin: 7px 0 18px;
  border-radius: 4px;
  text-decoration: none;
  transition: transform 160ms ease, filter 160ms ease;
}

.steam-login-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.login-panel small {
  color: #71869a;
  font-size: 0.76rem;
}

.login-panel small a {
  color: #a5dfff;
}

.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.player-identity,
.player-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.player-avatar {
  width: 92px;
  height: 92px;
  border: 2px solid rgba(67, 197, 255, 0.34);
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
}

.player-avatar-fallback {
  display: grid;
  place-items: center;
  background: var(--surface-strong);
  color: var(--blue-bright);
  font-size: 2rem;
  font-weight: 900;
}

.player-header .section-kicker {
  margin-bottom: 10px;
}

.player-header h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.steam-id {
  margin: 10px 0 0;
  color: #70869b;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
}

.player-actions form {
  margin: 0;
}

.button-quiet {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.button-quiet:hover {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--text);
}

.empty-state {
  margin-top: 48px;
  padding: 48px;
  border: 1px dashed rgba(174, 207, 238, 0.2);
  border-radius: var(--radius-md);
  text-align: center;
}

.empty-state h2 {
  margin: 0;
  font-size: 1.7rem;
}

.empty-state p {
  max-width: 600px;
  margin: 14px auto 25px;
  color: var(--muted);
}

.stats-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-top: 38px;
}

.metric-card {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
}

.metric-card-primary {
  border-color: var(--line-bright);
  background:
    radial-gradient(circle at 100% 0, rgba(18, 168, 255, 0.15), transparent 15rem),
    rgba(11, 30, 49, 0.72);
}

.metric-card span {
  margin-bottom: auto;
  color: #7e95aa;
  font-size: 0.75rem;
  font-weight: 800;
}

.metric-card strong {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.045em;
}

.metric-card small {
  margin-top: 2px;
  color: #73899e;
  font-size: 0.72rem;
}

.stat-groups {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.stat-group {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.stat-group-wide {
  grid-column: 1 / -1;
}

.stat-group-heading {
  margin-bottom: 22px;
}

.stat-group-heading .section-kicker {
  margin-bottom: 8px;
}

.stat-group h2 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
}

.stat-group dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
}

.stat-group-wide dl {
  grid-template-columns: repeat(5, 1fr);
}

.stat-group dl div {
  padding: 16px 12px 12px 0;
  border-bottom: 1px solid var(--line);
}

.stat-group dt {
  color: #72899f;
  font-size: 0.72rem;
}

.stat-group dd {
  margin: 4px 0 0;
  color: #edf8ff;
  font-size: 1.1rem;
  font-weight: 850;
}

.ranking-heading {
  max-width: var(--container);
  margin-bottom: 34px;
}

.ranking-heading > p:last-child {
  max-width: 640px;
  margin: 20px 0 0;
  color: var(--muted);
}

.ranking-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 17px;
}

.ranking-tabs a {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #8da2b6;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
}

.ranking-tabs a:hover,
.ranking-tabs a[aria-current="page"] {
  border-color: var(--line-bright);
  background: rgba(18, 168, 255, 0.09);
  color: var(--blue-bright);
}

.ranking-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(8, 19, 32, 0.72);
}

.ranking-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 27px;
  border-bottom: 1px solid var(--line);
}

.ranking-panel-heading .section-kicker {
  margin-bottom: 5px;
}

.ranking-panel-heading h2 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: -0.035em;
}

.ranking-panel-heading > span {
  color: #71879b;
  font-size: 0.78rem;
}

.ranking-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-row {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 86px;
  padding: 12px 25px;
  border-bottom: 1px solid var(--line);
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-position {
  color: #61798f;
  font-size: 0.95rem;
  font-weight: 900;
  text-align: center;
}

.ranking-position-top {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  justify-self: center;
  border: 1px solid var(--line-bright);
  border-radius: 10px;
  background: rgba(18, 168, 255, 0.09);
  color: var(--blue-bright);
}

.ranking-player {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.ranking-player img,
.ranking-avatar-fallback {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 10px;
}

.ranking-avatar-fallback {
  display: grid;
  place-items: center;
  background: var(--surface-strong);
  color: var(--blue-bright);
  font-weight: 900;
}

.ranking-player > span:last-child {
  min-width: 0;
}

.ranking-player strong,
.ranking-player small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ranking-player strong {
  color: #eaf6ff;
  font-size: 0.92rem;
}

.ranking-player small {
  color: #667e94;
  font-size: 0.7rem;
}

.ranking-score {
  text-align: right;
}

.ranking-score strong,
.ranking-score small {
  display: block;
}

.ranking-score strong {
  color: #e7f6ff;
  font-size: 0.95rem;
}

.ranking-score small {
  color: #6e859a;
  font-size: 0.7rem;
}

.ranking-empty {
  padding: 75px 30px;
  text-align: center;
}

.ranking-empty h3 {
  margin: 0;
  font-size: 1.4rem;
}

.ranking-empty p {
  max-width: 560px;
  margin: 12px auto 0;
  color: var(--muted);
}

.legal-content {
  max-width: 820px;
  padding-block: 90px 120px;
}

.legal-updated {
  color: #71879b;
  font-size: 0.82rem;
}

.legal-content h2 {
  margin: 42px 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.025em;
}

.legal-content p {
  color: var(--muted);
}

@media (max-width: 980px) {
  .quick-link-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .community-card-featured {
    grid-column: 1 / -1;
  }

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

  .stat-group-wide dl {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .home-hero-inner {
    min-height: 440px;
    padding-block: 70px;
  }

  .quick-link-grid {
    grid-template-columns: 1fr;
  }

  .quick-link-grid > a {
    padding: 11px 8px;
  }

  .compact-heading {
    display: block;
  }

  .compact-heading > p {
    margin-top: 18px;
  }

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

  .community-card-featured {
    grid-column: auto;
  }

  .community-card {
    min-height: 260px;
  }

  .profile-main,
  .ranking-main {
    padding-block: 50px 78px;
  }

  .login-panel {
    min-height: 470px;
    padding: 36px 22px;
  }

  .player-header {
    display: block;
  }

  .player-avatar {
    width: 76px;
    height: 76px;
  }

  .player-actions {
    align-items: stretch;
    margin-top: 24px;
  }

  .player-actions .button {
    width: 100%;
  }

  .stats-overview,
  .stat-groups {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 145px;
  }

  .stat-group-wide {
    grid-column: auto;
  }

  .stat-group-wide dl {
    grid-template-columns: repeat(2, 1fr);
  }

  .ranking-tabs {
    flex-wrap: wrap;
  }

  .ranking-tabs a {
    flex: 1 1 auto;
    text-align: center;
  }

  .ranking-panel {
    width: calc(100% - 20px);
  }

  .ranking-row {
    grid-template-columns: 38px 1fr;
    gap: 11px;
    padding: 13px;
  }

  .ranking-position-top {
    width: 34px;
    height: 34px;
  }

  .ranking-score {
    grid-column: 2;
    padding-left: 61px;
    text-align: left;
  }
}

/* Compact live homepage and asynchronous rankings */
[hidden] {
  display: none !important;
}

.compact-site-header .header-inner {
  grid-template-columns: 44px minmax(0, 1fr);
  min-height: 70px;
  gap: 24px;
}

.compact-site-header .brand {
  width: 42px;
  height: 42px;
}

.compact-site-header .brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.header-navigation {
  display: flex !important;
  justify-self: end;
  gap: 3px;
}

.header-navigation a {
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.header-navigation a:hover,
.header-navigation a[aria-current="page"] {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.home-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.home-intro::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(112deg, rgba(10, 82, 128, 0.22), rgba(10, 82, 128, 0.04) 44%, transparent 44%);
  clip-path: polygon(0 0, 62% 0, 46% 100%, 0 100%);
  content: "";
}

.home-intro::after {
  position: absolute;
  z-index: -1;
  top: -25%;
  bottom: -25%;
  left: 48%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(67, 197, 255, 0.19), transparent);
  box-shadow: 36px 0 rgba(67, 197, 255, 0.045), 72px 0 rgba(67, 197, 255, 0.025);
  content: "";
  transform: rotate(15deg);
}

.home-intro-grid {
  position: absolute;
  z-index: -3;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(112, 183, 227, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 183, 227, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 96%);
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  align-items: center;
  gap: clamp(42px, 7vw, 90px);
  min-height: 390px;
  padding-block: 48px;
}

.intro-copy .section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.intro-copy .section-kicker::before {
  width: 18px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-bright), transparent);
  content: "";
}

.intro-logo {
  width: min(420px, 100%);
  height: auto;
}

.intro-summary {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
}

.intro-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.intro-facts span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #8199af;
  font-size: 0.72rem;
  font-weight: 750;
}

.discord-panel {
  padding: 24px;
  border: 1px solid rgba(130, 144, 255, 0.28);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 100% 0, rgba(88, 101, 242, 0.19), transparent 18rem),
    rgba(10, 20, 36, 0.88);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
}

.discord-panel-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.discord-icon-shell {
  position: relative;
  display: block;
  width: 68px;
  height: 68px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(88, 101, 242, 0.16), transparent 58%),
    #111c2d;
}

.discord-icon {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  opacity: 0;
  transition: opacity 160ms ease;
}

.discord-icon.is-ready {
  opacity: 1;
}

.discord-label {
  margin: 0 0 3px;
  color: #aab2ff;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.discord-panel h2 {
  margin: 0;
  font-size: 1.42rem;
  letter-spacing: -0.035em;
}

.discord-channel {
  margin: 3px 0 0;
  color: #778ba2;
  font-size: 0.74rem;
}

.discord-channel strong {
  color: #aeb9ff;
}

.discord-counts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}

.discord-counts > div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.discord-counts strong,
.discord-counts span {
  display: block;
}

.discord-counts strong {
  font-size: 1.18rem;
  line-height: 1.2;
}

.discord-counts span {
  margin-top: 2px;
  color: #73889d;
  font-size: 0.68rem;
}

.discord-note {
  min-height: 1.3em;
  margin: 12px 0;
  color: #72879c;
  font-size: 0.7rem;
}

.discord-join {
  width: 100%;
  min-height: 44px;
  background: linear-gradient(135deg, #8290ff, #5865f2);
  color: #fff;
  box-shadow: 0 12px 32px rgba(88, 101, 242, 0.22);
  font-size: 0.84rem;
}

.home-v3 .section-servers {
  padding-block: 72px 84px;
  content-visibility: auto;
  contain-intrinsic-size: 1050px;
}

.server-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}

.server-section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.server-section-heading > div:first-child > p:last-child {
  max-width: 650px;
  margin: 17px 0 0;
  color: var(--muted);
}

.server-refresh-wrap {
  display: flex;
  min-width: 190px;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}

.refresh-button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: #b9ccdd;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.refresh-button:hover:not(:disabled) {
  border-color: var(--line-bright);
  color: var(--text);
}

.refresh-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.server-refresh-wrap span {
  color: #657c91;
  font-size: 0.68rem;
}

.live-server-grid {
  align-items: start;
  margin-top: 38px;
}

.server-card.live-server-card {
  display: block;
  min-height: 0;
  padding: 22px;
}

.server-card-heading {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 13px;
}

.live-server-card .server-description {
  min-height: 2.4em;
  margin: 15px 0 17px;
}

.server-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #8399ad;
  font-size: 0.65rem;
  font-weight: 850;
}

.server-state::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.server-state.is-online {
  border-color: rgba(89, 223, 164, 0.25);
  background: rgba(89, 223, 164, 0.06);
  color: var(--green);
}

.server-state.is-offline {
  border-color: rgba(255, 132, 132, 0.22);
  color: #d78a8a;
}

.server-state.is-checking::before {
  animation: server-pulse 1.1s ease-in-out infinite;
}

@keyframes server-pulse {
  50% { opacity: 0.25; }
}

.server-live-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.server-live-summary span {
  min-width: 0;
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #71889d;
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-live-summary strong {
  color: #d9ecfa;
  font-size: 0.78rem;
}

.server-player-details {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(1, 8, 16, 0.2);
}

.server-player-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 12px;
  color: #b4c8d9;
  font-size: 0.74rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.server-player-details summary::-webkit-details-marker {
  display: none;
}

.server-player-details summary::before {
  order: 3;
  color: var(--blue-bright);
  content: "+";
  font-size: 1rem;
  line-height: 1;
}

.server-player-details[open] summary::before {
  content: "−";
}

.server-player-details summary span:nth-child(2) {
  margin-left: auto;
  color: #667d92;
  font-size: 0.66rem;
  font-weight: 700;
}

.server-player-list {
  max-height: 300px;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.server-player-list > p {
  margin: 0;
  padding: 18px 12px;
  color: #70869a;
  font-size: 0.72rem;
  text-align: center;
}

.server-player-list table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.7rem;
}

.server-player-list th,
.server-player-list td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(174, 207, 238, 0.08);
  text-align: right;
}

.server-player-list th:first-child,
.server-player-list td:first-child {
  max-width: 220px;
  overflow: hidden;
  color: #d6e8f6;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-player-list th {
  position: sticky;
  top: 0;
  background: #0a1726;
  color: #6f8498;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.server-player-list td {
  color: #7b91a5;
}

.server-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.live-server-card .server-card-footer code {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-server-card .server-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
}

.live-server-card .server-actions a,
.live-server-card .server-actions button {
  min-width: 75px;
}

.footer-support-note {
  margin: -24px auto 28px !important;
  color: #61768a !important;
  font-size: 0.67rem !important;
  text-align: center;
}

.ranking-heading-v3 {
  margin-bottom: 28px;
}

.ranking-heading-v3 h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
}

.ranking-controls {
  margin-bottom: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 19, 32, 0.68);
}

.ranking-groups,
.ranking-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ranking-groups {
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.ranking-metric-groups {
  min-height: 40px;
  padding-top: 9px;
}

.ranking-groups a,
.ranking-metrics a {
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #8298ac;
  font-size: 0.75rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.ranking-groups a:hover,
.ranking-groups a[aria-current="page"] {
  border-color: var(--line-bright);
  background: rgba(18, 168, 255, 0.1);
  color: var(--blue-bright);
}

.ranking-metrics a:hover,
.ranking-metrics a[aria-current="page"] {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: #e6f5ff;
}

.ranking-panel [data-ranking-results] {
  transition: opacity 130ms ease;
}

.ranking-panel.is-loading [data-ranking-results] {
  opacity: 0.42;
  pointer-events: none;
}

.ranking-panel.is-loading .ranking-panel-heading::after {
  width: 14px;
  height: 14px;
  margin-left: auto;
  border: 2px solid rgba(67, 197, 255, 0.25);
  border-top-color: var(--blue-bright);
  border-radius: 50%;
  content: "";
  animation: ranking-spin 700ms linear infinite;
}

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

@media (max-width: 1080px) {
  .compact-site-header .header-inner {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
  }

  .compact-site-header .brand {
    width: 42px;
  }

  .header-navigation a {
    padding-inline: 7px;
    font-size: 0.76rem;
  }
}

@media (max-width: 860px) {
  html {
    scroll-padding-top: 96px;
  }

  .compact-site-header .header-inner {
    grid-template-columns: 1fr;
    gap: 2px;
    padding-top: 8px;
  }

  .compact-site-header .brand {
    width: 42px;
  }

  .header-navigation {
    width: 100%;
    justify-self: stretch;
    justify-content: flex-start;
    gap: 2px;
    padding-bottom: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .header-navigation::-webkit-scrollbar {
    display: none;
  }

  .intro-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 42px;
  }

  .intro-copy {
    max-width: 650px;
  }

  .discord-panel {
    max-width: 650px;
  }
}

@media (max-width: 720px) {
  .compact-site-header {
    position: sticky;
  }

  .compact-site-header .header-inner {
    min-height: 0;
  }

  .header-navigation a {
    padding: 6px 8px;
    font-size: 0.72rem;
  }

  .intro-layout {
    min-height: 0;
    padding-block: 34px 40px;
  }

  .intro-logo {
    width: min(330px, 92%);
  }

  .intro-summary {
    margin-top: 15px;
  }

  .discord-panel {
    padding: 19px;
  }

  .discord-icon-shell {
    width: 58px;
    height: 58px;
    border-radius: 15px;
  }

  .discord-panel h2 {
    font-size: 1.25rem;
  }

  .home-v3 .section-servers {
    padding-block: 58px 68px;
  }

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

  .server-refresh-wrap {
    min-width: 0;
    align-items: flex-start;
    margin-top: 20px;
  }

  .live-server-grid {
    margin-top: 28px;
  }

  .server-card.live-server-card {
    padding: 17px;
  }

  .server-card-heading {
    grid-template-columns: 40px 1fr;
  }

  .server-card-heading .server-number {
    width: 40px;
    height: 40px;
  }

  .server-state {
    grid-column: 2;
    justify-self: start;
  }

  .server-card-footer {
    display: block;
  }

  .live-server-card .server-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 12px;
  }

  .ranking-controls {
    width: calc(100% - 20px);
  }

  .ranking-groups,
  .ranking-metrics {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ranking-groups::-webkit-scrollbar,
  .ranking-metrics::-webkit-scrollbar {
    display: none;
  }

  .ranking-groups a,
  .ranking-metrics a {
    flex: 0 0 auto;
  }

  .footer-support-note {
    margin-top: 0 !important;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .server-state.is-checking::before,
  .ranking-panel.is-loading .ranking-panel-heading::after {
    animation: none;
  }
}

/* Persistent site shell: only page content changes; header and footer remain. */
.page-stage {
  position: relative;
  z-index: 0;
  display: grid;
  min-width: 0;
  flex: 1 0 auto;
  isolation: isolate;
}

.page-stage > main {
  grid-area: 1 / 1;
  align-self: start;
  width: 100%;
  min-width: 0;
}

.site-footer {
  flex: 0 0 auto;
}

.page-stage.is-main-transitioning {
  min-height: 0;
  overflow: clip;
  transition: height 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.page-stage.is-main-transitioning > main {
  pointer-events: none;
  will-change: opacity, transform;
}

.page-stage > main.is-main-leaving {
  animation: dg-main-out 170ms cubic-bezier(0.4, 0, 1, 1) both;
}

.page-stage > main.is-main-entering {
  animation: dg-main-in 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes dg-main-out {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }

  to {
    transform: translate3d(0, -4px, 0) scale(0.998);
    opacity: 0;
  }
}

@keyframes dg-main-in {
  from {
    transform: translate3d(0, 8px, 0) scale(0.998);
    opacity: 0;
  }

  to {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  transform: translateX(-100%) scaleX(0.28);
  transform-origin: left;
  background: linear-gradient(90deg, transparent, var(--blue-bright), transparent);
  content: "";
  opacity: 0;
  pointer-events: none;
}

body.is-page-loading .site-header::after {
  animation: dg-shell-progress 850ms ease-in-out infinite;
  opacity: 1;
}

@keyframes dg-shell-progress {
  50% {
    transform: translateX(35%) scaleX(0.6);
  }

  to {
    transform: translateX(100%) scaleX(0.28);
  }
}

.compact-footer {
  margin-top: 0;
}

.compact-footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.compact-footer .footer-inner > p {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.72rem;
}

.compact-footer nav {
  flex: 0 0 auto;
  justify-self: auto;
  margin-left: auto;
}

.compact-footer nav a[aria-current="page"] {
  color: var(--text);
}

.donations-main {
  min-height: 650px;
  padding-block: 72px 110px;
}

.donation-heading {
  margin-bottom: 34px;
}

.donation-heading h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.donation-heading > p:last-child {
  max-width: 700px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.donation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 14px;
}

.donation-card {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  align-items: flex-start;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(13, 31, 50, 0.78), rgba(7, 17, 31, 0.55));
}

.donation-card-primary {
  border-color: var(--line-bright);
  background:
    linear-gradient(115deg, rgba(18, 168, 255, 0.1), transparent 52%),
    rgba(10, 25, 42, 0.86);
}

.donation-card h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.donation-card > p:not(.section-kicker) {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--muted);
}

.donation-card .button {
  margin-top: auto;
}

.donation-disclaimer {
  background: rgba(255, 255, 255, 0.018);
}

.donation-disclaimer h2 {
  font-size: 1.65rem;
}

@media (max-width: 860px) {
  .donation-layout {
    grid-template-columns: 1fr;
  }

  .donation-card {
    min-height: 310px;
  }
}

@media (max-width: 600px) {
  html {
    scroll-padding-top: 134px;
  }

  .compact-site-header .header-inner {
    gap: 7px;
    padding-block: 7px;
  }

  .compact-site-header .brand,
  .compact-site-header .brand img {
    width: 38px;
    height: 38px;
  }

  .header-navigation {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding-bottom: 0;
    overflow: visible;
  }

  .header-navigation a {
    min-width: 0;
    padding: 5px 3px;
    overflow: hidden;
    border-color: rgba(174, 207, 238, 0.1);
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.64rem;
    text-align: center;
    text-overflow: ellipsis;
  }

  .donations-main {
    min-height: 0;
    padding-block: 48px 72px;
  }

  .donation-card {
    min-height: 0;
    padding: 25px;
  }

  .donation-card .button {
    width: 100%;
    margin-top: 30px;
  }

  .compact-footer .footer-inner {
    gap: 14px;
    padding-block: 24px;
  }

  .compact-footer nav {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-stage > main.is-main-leaving,
  .page-stage > main.is-main-entering,
  body.is-page-loading .site-header::after {
    animation: none;
  }

  .discord-icon {
    transition: none;
  }
}
