:root {
  color-scheme: light;
  --bg: #f3f5f8;
  --panel: #ffffff;
  --ink: #151922;
  --muted: #5c6778;
  --line: #e4e8ef;
  --brand: #ef7622;
  --brand-strong: #c6530c;
  --green: #0e8f5b;
}

* { box-sizing: border-box; }

html { height: 100%; scroll-behavior: smooth; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }

button, input { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
}

.skip:focus { top: 8px; }

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #10151d;
  border-bottom: 1px solid #242b36;
}

.nav {
  display: flex;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand img {
  display: block;
  width: auto;
  height: 40px;
  mix-blend-mode: screen;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a,
.nav-links button,
.account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #d5dbe3;
  font-size: 14px;
  font-weight: 600;
  padding: 0 12px;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.account-button {
  background: var(--brand);
  color: #fff;
}

.hero { padding: 56px 0 20px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 12px;
  font-size: 40px;
  line-height: 1.05;
  font-weight: 700;
}

h2 { font-size: 18px; font-weight: 700; }

.lead {
  max-width: 640px;
  margin-bottom: 0;
  color: #3e4858;
  font-size: 15px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 0 14px;
  cursor: pointer;
}

.button.primary {
  background: var(--brand);
  color: #fff;
}

.button.secondary {
  background: var(--ink);
  color: #fff;
}

.button.ghost {
  background: #fff;
  border-color: var(--line);
  color: #2d3542;
}

.button.full { width: 100%; }

.button.quiet {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.metric-card { padding: 16px; }

.metric-card h2 { margin: 0 0 14px; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.metric-grid div { padding: 2px 0; }

.metric-grid div + div {
  border-left: 1px solid var(--line);
  padding-left: 12px;
}

.metric-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.metric-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
}

.dashboard { padding: 12px 0 64px; }

.card-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
}

.card-bar h2 { margin: 0; }

.search { width: min(280px, 100%); margin: 0; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.search input,
.stack input {
  height: 36px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  padding: 0 12px;
}

.search input:focus,
.stack input:focus {
  border-color: var(--brand);
  outline: none;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.server-card { overflow: hidden; }

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th, td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  background: #f7f8fb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

td:first-child { font-weight: 700; }

.addr { font-variant-numeric: tabular-nums; }

.players {
  display: inline-flex;
  min-width: 64px;
  justify-content: center;
  border-radius: 999px;
  background: #e8f6ef;
  color: var(--green);
  font-weight: 700;
  padding: 6px 10px;
}

.quiet-pill {
  color: var(--muted);
  font-weight: 700;
}

.side-stack { display: grid; gap: 12px; }

.download-card,
.stats-card,
.sheet {
  padding: 18px;
}

.download-card h3,
.stats-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

.download-card p,
.note { color: var(--muted); }

.note {
  margin: 0;
  padding: 18px;
}

.alert {
  border-left: 4px solid var(--brand);
  margin: 0 0 14px;
  padding: 4px 0 4px 12px;
}

.stack {
  display: grid;
  gap: 12px;
  max-width: 440px;
}

.stack label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.versions {
  display: grid;
  gap: 12px;
  padding-bottom: 8px;
}

.version {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
}

.version h2 { margin: 0 0 6px; font-size: 18px; }

.meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.page-block { padding: 28px 0; }

.page-block h2 { margin-bottom: 10px; }

ol.steps { margin: 0; padding-left: 1.2rem; max-width: 640px; }

ol.steps li { margin: 8px 0; }

dl.qa { max-width: 640px; margin: 0; }

dl.qa dt { font-weight: 700; margin-top: 12px; }

dl.qa dd { margin: 4px 0 0; color: #3e4858; }

.own-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }

.own-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0e141f;
  color: rgba(255, 255, 255, 0.72);
  padding: 28px 0;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-row img { width: auto; height: 32px; mix-blend-mode: screen; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-links a { color: rgba(255, 255, 255, 0.82); font-size: 14px; font-weight: 600; }

.footer-links a:hover { color: #fff; }

.account-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.account-nav {
  display: grid;
  gap: 4px;
}

.nav-pill {
  display: flex;
  align-items: center;
  min-height: 36px;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
}

.nav-pill.active,
.nav-pill:hover { background: #fff; }

.balance { font-size: 18px; }

.link-row, .pager { display: flex; flex-wrap: wrap; gap: 8px; }

.tint td:first-child,
.tint td.addr { font-weight: 700; }

.banner-card { padding: 12px; }

.banner-card img { display: block; width: 200px; max-width: 100%; height: auto; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; }

.swatch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 600;
}

.promo-form { margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }

@media (max-width: 980px) {
  .nav { align-items: flex-start; flex-wrap: wrap; padding: 14px 0; }
  .nav-links { width: 100%; flex-wrap: wrap; }
  .hero-grid, .content-grid, .version, .account-layout { grid-template-columns: 1fr; }
  .account-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-bar { align-items: stretch; flex-direction: column; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-grid div { padding: 10px 0 0; }
  .metric-grid div + div { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 640px) {
  .shell { width: min(100% - 20px, 1180px); }
  h1 { font-size: 32px; }
  .hero-actions .button, .account-button { width: 100%; }
  .metric-grid { grid-template-columns: 1fr; }
  table { min-width: 560px; }
}

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