: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.plain { justify-content: flex-start; }

.download-home {
  max-width: 640px;
  margin: 48px auto 64px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.filter-row,
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
}

.ad-actions { display: grid; gap: 8px; }

.promo-board { display: grid; gap: 12px; margin: 0 0 22px; }

.promo-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  background: #fff;
}

.promo-card h3 { margin: 6px 0 0; font-size: 18px; }

.promo-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.promo-card .eyebrow { margin: 0; }

.promo-place { margin: 0; font-weight: 700; }

.promo-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 0;
}

.promo-facts div { display: grid; gap: 2px; }

.promo-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.promo-facts dd { margin: 0; font-weight: 600; }

.promo-actions { margin-top: 14px; }

.promo-stats { margin-top: 12px; }

.promo-stats table { min-width: 0; }

.color-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  vertical-align: -2px;
}

.pager a,
.pager span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.pager a.current {
  background: #1a1f27;
  color: #fff;
}

.invoice { max-width: 720px; }

.invoice h2 { margin-top: 18px; }

.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;
}

.download-count { flex-basis: 100%; margin: 0; }

.download-count strong { color: #1a1f27; font-weight: 700; }

.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,
.stack textarea,
.stack select,
.inline-form input {
  height: 36px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  padding: 0 12px;
}

.stack textarea { height: auto; min-height: 120px; padding: 8px 12px; resize: vertical; }

.search input:focus,
.stack input:focus,
.stack textarea:focus,
.stack select: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; }

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.game-cover {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 12px;
  border-radius: 6px;
  background: #111;
}

.auth-card {
  max-width: 440px;
  margin: 0 auto;
}

.auth-card .stack { max-width: none; }

.social-login { display: grid; gap: 8px; }

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}

.auth-brand svg { width: 18px; height: 18px; flex: none; }

.auth-brand.steam { background: #171a21; color: #fff; }

.auth-brand.discord { background: #5865f2; color: #fff; }

.auth-brand.google { background: #fff; color: #1f2430; border-color: #d5dbe3; }

.auth-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-or::before,
.auth-or::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.color-pick input[type="color"] {
  width: 72px;
  height: 36px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.ticket-msg { border-top: 1px solid var(--line); padding-top: 12px; }

.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.inline-form input { width: 140px; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.row-actions form { margin: 0; }

.legal h2 { margin-top: 22px; }

.legal li { margin: 4px 0; }

.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 {
  background: var(--row);
  color: var(--ink);
}

.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, .promo-facts { grid-template-columns: 1fr; }
  table { min-width: 560px; }
  .promo-stats table { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Client download pages: styles intentionally scoped away from cslist. */
.client-download .client-hero { display:grid; grid-template-columns:minmax(0, 1.6fr) minmax(270px, 1fr); gap:48px; align-items:center; padding:64px 0 44px; }
.client-download h1 { max-width:780px; font-size:clamp(32px, 4vw, 52px); line-height:1.12; margin:12px 0 20px; }
.client-download .lead { font-size:18px; line-height:1.7; }
.client-download h2 { font-size:26px; line-height:1.3; margin:0 0 20px; }
.client-download h3 { font-size:18px; line-height:1.4; margin:0 0 10px; }
.client-download p { line-height:1.75; }
.client-download .client-file-meta { font-weight:600; font-size:14px; }
.client-download .client-facts { padding:28px; border-top:4px solid var(--brand); }
.client-download .client-facts dl { margin:0; }
.client-download .client-facts dl div { padding:14px 0; border-top:1px solid var(--line); }
.client-download dt { color:var(--muted); font-size:13px; }
.client-download dd { margin:6px 0 0; font-weight:600; line-height:1.5; }
.client-download .client-section { padding:36px 0; border-top:1px solid var(--line); }
.client-download .client-steps { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:20px; list-style:none; padding:0; counter-reset:step; }
.client-download .client-steps li { position:relative; counter-increment:step; padding:26px 26px 20px 70px; border:1px solid var(--line); border-radius:10px; background:var(--panel); }
.client-download .client-steps li::before { content:counter(step); position:absolute; left:24px; top:27px; color:var(--brand-strong); font-size:24px; font-weight:700; }
.client-download .client-steps p { margin:0; color:var(--muted); }
.client-download .client-prose p { max-width:880px; }
.client-download .client-text-link { color:var(--brand-strong); font-weight:600; text-decoration:underline; text-underline-offset:3px; }
.client-download .client-faq details { border:1px solid var(--line); background:var(--panel); border-radius:8px; padding:0 22px; margin:12px 0; }
.client-download .client-faq summary { cursor:pointer; padding:20px 0; font-weight:600; line-height:1.5; }
.client-download .client-faq details p { margin:0 0 20px; max-width:900px; color:var(--muted); }
.client-download .client-final { padding-bottom:60px; }
@media (max-width:800px) {
 .client-download .client-hero { grid-template-columns:1fr; padding-top:36px; gap:26px; }
 .client-download .client-steps { grid-template-columns:1fr; }
 .client-download h2 { font-size:23px; }
 .client-download .download-actions .button { width:100%; text-align:center; }
 .client-download .client-section { padding:28px 0; }
}

.client-download .button.primary { background:var(--brand-strong); border-color:var(--brand-strong); }
.client-download .button.primary:hover { background:#ad4609; border-color:#ad4609; }

/* Optional local-play bot instructions, scoped to the client websites. */
.client-download .client-bots { padding-top:36px; padding-bottom:48px; border-top:1px solid var(--line); }
.client-download .client-bots h2 { font-size:26px; line-height:1.3; margin:0 0 18px; }
.client-download .client-bots h3 { font-size:18px; line-height:1.4; }
.client-download .client-bots p { line-height:1.75; }
.client-download .client-bots .client-steps { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin:28px 0; padding:0; list-style:none; counter-reset:botstep; }
.client-download .client-bots .client-steps li { position:relative; padding:24px 24px 20px 64px; border:1px solid var(--line); border-radius:8px; background:var(--panel); counter-increment:botstep; }
.client-download .client-bots .client-steps li::before { content:counter(botstep); position:absolute; top:24px; left:22px; color:var(--brand-strong); font-size:24px; font-weight:700; }
.bot-guide-link { color:var(--brand-strong); text-decoration:underline; text-underline-offset:3px; }
.client-download .client-bots-intro { max-width:880px; }
.client-download .client-bots pre { max-width:100%; overflow-x:auto; padding:14px; background:#151922; color:#fff; border-radius:6px; }
.client-download .client-bots code { font-family:Consolas, monospace; font-size:14px; }
.client-download .client-bot-commands { display:grid; gap:0; margin:20px 0; border:1px solid var(--line); border-radius:8px; overflow:hidden; background:var(--panel); }
.client-download .client-bot-commands > div { display:grid; grid-template-columns:180px 1fr; padding:14px 20px; gap:16px; }
.client-download .client-bot-commands > div + div { border-top:1px solid var(--line); }
.client-download .client-bot-commands dt { color:var(--ink); }
.client-download .client-bot-commands dd { margin:0; font-weight:400; }
.client-download .client-bot-sources a { color:var(--brand-strong); text-decoration:underline; text-underline-offset:3px; }
.client-download .client-bots h3 { margin-top:26px; }
.client-download .client-bots .client-steps h3 { margin-top:0; }
.client-download .client-bots p { overflow-wrap:anywhere; }
@media (max-width:640px) {
 .client-download .client-bot-commands > div { grid-template-columns:1fr; gap:4px; }
 .client-download .client-bots .client-steps { grid-template-columns:1fr; }
}

.windows-legacy { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 14px; padding: 28px; background: var(--panel); }
