:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a0a0a;
  color: #f5f5f2;
  --red: #ff3b30;
  --muted: #a0a09a;
  --line: #282825;
  --panel: #141413;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 300px; background: radial-gradient(circle at 85% 5%, #251010 0, #0a0a0a 35%); }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.skip-link { position: fixed; left: 16px; top: -80px; z-index: 20; padding: 12px 16px; background: #fff; color: #000; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header, main, .site-footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: .14em; }
.brand span { width: 11px; height: 11px; background: var(--red); border-radius: 50%; box-shadow: 0 0 22px #ff3b3090; }
.site-header nav { display: flex; gap: 24px; overflow-x: auto; padding: 18px 2px; scrollbar-width: none; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 14px; white-space: nowrap; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: #fff; }

main { padding: 86px 0 110px; min-height: 68vh; }
.hero { max-width: 940px; }
.eyebrow { margin: 0 0 28px; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 0; font-size: clamp(52px, 9vw, 116px); line-height: .88; letter-spacing: -.065em; text-transform: uppercase; }
.lead { max-width: 760px; margin: 36px 0 0; color: var(--muted); font-size: clamp(18px, 2.2vw, 27px); line-height: 1.48; }
.version-note { max-width: 760px; margin: 18px 0 0; color: var(--text); font-size: clamp(16px, 1.8vw, 21px); line-height: 1.5; font-weight: 650; }
.actions { display: flex; align-items: center; gap: 26px; margin-top: 38px; }
.button { display: inline-flex; min-height: 50px; align-items: center; padding: 0 22px; border-radius: 999px; background: var(--red); color: #fff; text-decoration: none; font-weight: 750; }
.text-link { color: #fff; text-decoration: none; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 94px; border: 1px solid var(--line); background: var(--line); }
.grid article { min-height: 300px; padding: 34px; background: #0d0d0c; }
.grid article > span { color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.grid h2, .status-list h2 { margin: 70px 0 14px; font-size: 26px; letter-spacing: -.03em; }
.grid p, .status-list p, .state-card p, .site-footer p { margin: 0; color: var(--muted); line-height: 1.6; }

.server-card, .state-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 72px; padding: 26px 30px; border: 1px solid var(--line); background: var(--panel); border-radius: 18px; }
.server-card div { display: grid; gap: 8px; }
.server-card span { color: var(--muted); font-size: 13px; }
.server-card strong { font-size: clamp(22px, 4vw, 38px); letter-spacing: -.04em; }
.server-card button { border: 1px solid #3b3b37; background: transparent; color: #fff; padding: 12px 18px; border-radius: 999px; cursor: pointer; }
.server-card button:hover { border-color: #fff; }
.state-card { justify-content: flex-start; }
.state-card strong { font-size: 22px; }
.state-card p { margin-top: 6px; }
.pulse { width: 12px; height: 12px; flex: 0 0 12px; border-radius: 50%; background: #f1a72f; box-shadow: 0 0 20px #f1a72f80; }

.status-list { margin-top: 72px; border-top: 1px solid var(--line); }
.status-list article { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.status-list h2 { margin: 0 0 5px; }
.badge { color: #f1a72f; border: 1px solid #5d4520; border-radius: 999px; padding: 8px 12px; font-size: 11px; font-weight: 800; letter-spacing: .1em; }

.leaderboard { margin-top: 72px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #0d0d0c; }
.leaderboard-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; padding: 30px; border-bottom: 1px solid var(--line); }
.leaderboard-head .eyebrow { margin-bottom: 12px; }
.leaderboard-head h2 { margin: 0; font-size: clamp(30px, 5vw, 54px); letter-spacing: -.05em; }
.leaderboard-switch { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.leaderboard-switch button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 800; }
.leaderboard-switch button[aria-pressed="true"] { background: var(--red); color: #fff; }
.leaderboard-status { margin: 0; padding: 20px 30px; color: var(--muted); border-bottom: 1px solid var(--line); }
.leaderboard-list { margin: 0; padding: 0; list-style: none; }
.leaderboard-list li { display: grid; grid-template-columns: 70px 1fr auto; gap: 20px; align-items: center; min-height: 66px; padding: 12px 30px; border-bottom: 1px solid var(--line); }
.leaderboard-list li:last-child { border-bottom: 0; }
.leaderboard-list li > span:first-child { color: var(--red); font-weight: 900; }
.leaderboard-list strong { font-size: 18px; }
.leaderboard-list li > span:last-child { color: #f1a72f; font-variant-numeric: tabular-nums; }

.site-footer { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; padding: 44px 0 56px; border-top: 1px solid var(--line); }
.site-footer > div p { margin-top: 16px; }
.site-footer nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 24px; }
.site-footer nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
.site-footer nav a:hover { color: #fff; }
.site-footer .footnote { grid-column: 1 / -1; font-size: 12px; }
.toast { position: fixed; right: 20px; bottom: 20px; padding: 12px 16px; background: #fff; color: #000; border-radius: 10px; font-weight: 700; }

@media (max-width: 820px) {
  .site-header { display: block; padding-top: 24px; }
  .site-header nav { margin-top: 8px; }
  main { padding-top: 64px; }
  .grid { grid-template-columns: 1fr; }
  .grid article { min-height: 230px; }
  .grid h2 { margin-top: 42px; }
  .site-footer { grid-template-columns: 1fr; }
  .leaderboard-head { align-items: stretch; flex-direction: column; }
  .leaderboard-switch { align-self: flex-start; }
}

@media (max-width: 520px) {
  .site-header, main, .site-footer { width: min(100% - 28px, 1180px); }
  .actions, .server-card { align-items: stretch; flex-direction: column; }
  .server-card button { align-self: flex-start; }
  .site-footer nav { grid-template-columns: repeat(2, 1fr); }
  .leaderboard-list li { grid-template-columns: 52px 1fr; padding-inline: 18px; }
  .leaderboard-list li > span:last-child { grid-column: 2; }
}

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