/* Chesshape site — mirrors the in-game palette (navy + candy accents). */
:root {
  --bg: #0d1120;
  --surface: #161c31;
  --raised: #1e2540;
  --text: #f2f4ff;
  --muted: #9aa3bf;
  --accent: #5b8cff;
  --accent2: #b07cff;
  --red: #d6354a;
  --orange: #ef8a2c;
  --yellow: #efd24e;
  --green: #3cc488;
  --blue: #5290e4;
  --purple: #a57ee6;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 940px; margin: 0 auto; padding: 0 22px; }
.doc { max-width: 760px; margin: 0 auto; padding: 0 22px 80px; overflow-wrap: anywhere; }

/* ---------- top nav ---------- */
nav.site {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 0;
}
nav.site img { width: 34px; height: 34px; border-radius: 9px; }
nav.site .brand {
  font-weight: 800; letter-spacing: 3px; font-size: 15px;
  background: linear-gradient(90deg, #8fb4ff, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
nav.site .links { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }
nav.site .links a { color: var(--muted); }
nav.site .links a:hover { color: var(--text); }
.doc nav.site { flex-wrap: wrap; }
.doc nav.site .links { min-width: 0; max-width: 100%; flex-wrap: wrap; }

/* ---------- hero ---------- */
header.hero { text-align: center; padding: 46px 0 30px; }
header.hero img.mascot {
  width: 168px; max-width: 44vw; height: auto;
  filter: drop-shadow(0 18px 42px rgba(91, 140, 255, 0.35));
}
h1.wordmark {
  margin: 22px 0 10px;
  font-size: clamp(30px, 7vw, 44px);
  font-weight: 800; letter-spacing: 0.22em;
  background: linear-gradient(90deg, #8fb4ff, var(--accent), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-wrap: balance;
}
.tagline { color: var(--muted); font-size: 18px; margin: 0 0 26px; }
.badge-soon {
  display: inline-block; padding: 11px 26px; border-radius: 14px;
  background: linear-gradient(90deg, var(--accent), #7b5bff);
  color: #fff; font-weight: 800; font-size: 15px;
  box-shadow: 0 10px 30px rgba(91, 140, 255, 0.35);
}
.hero-note { color: var(--muted); font-size: 13px; margin-top: 12px; }

/* ---------- feature grid ---------- */
section.features { padding: 34px 0 10px; }
.grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--raised);
  border-radius: 18px; padding: 20px;
}
.card .dot {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; margin-bottom: 12px;
}
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- legal docs ---------- */
.doc header { padding: 40px 0 6px; }
.doc h1 { font-size: 28px; font-weight: 800; margin: 10px 0 4px; text-wrap: balance; }
.doc .meta { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.doc .langswap { font-size: 13.5px; margin-bottom: 26px; }
.doc h2 {
  font-size: 19px; margin: 38px 0 10px; font-weight: 800;
  padding-top: 8px; border-top: 1px solid var(--raised);
}
.doc p, .doc li { color: #cfd5ea; font-size: 15.5px; }
.doc li { margin: 6px 0; }
.doc li::marker { color: var(--accent); }
.doc .contact-box {
  margin-top: 34px; padding: 18px 20px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--raised);
}
.doc code {
  background: var(--surface); border: 1px solid var(--raised);
  border-radius: 6px; padding: 1px 7px; font-size: 14px;
}

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--raised);
  margin-top: 60px; padding: 26px 0 46px;
  color: var(--muted); font-size: 13.5px;
  display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center;
}
footer.site .spacer { flex: 1; }

@media (max-width: 560px) {
  nav.site .links { gap: 12px; }
}

/* Language switcher on the legal pages: eleven languages have to fit without
   turning into a wall, so they wrap as quiet chips and the current one is
   marked rather than linked. */
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 0 28px;
  font-size: 13px;
}
.langs a, .langs .here {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(139, 147, 181, .28);
  text-decoration: none;
  white-space: nowrap;
}
.langs a { color: #8b93b5; }
.langs a:hover { border-color: #5b8cff; color: #f2f4ff; }
.langs .here {
  color: #f2f4ff;
  border-color: #5b8cff;
  background: rgba(91, 140, 255, .12);
  font-weight: 600;
}
.langfoot {
  max-width: 900px;
  margin: 8px auto 40px;
  padding: 0 20px;
  font-size: 12.5px;
  line-height: 2;
  color: #6a7296;
  text-align: center;
}
.langfoot a { color: #8b93b5; text-decoration: none; }
.langfoot a:hover { color: #f2f4ff; }
