:root {
  --bg: #0b0d12;
  --bg-soft: #12151d;
  --bg-card: #161a24;
  --bg-raise: #1c2130;
  --border: #242a38;
  --border-lit: #38415a;
  --text: #e8ecf5;
  --text-dim: #99a2b8;
  --accent: #5ee6a8;
  --accent-dim: #2f8f66;
  --discord: #5865f2;
  --warn: #f5b942;
  --info: #6aa8ff;
  --radius: 12px;
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

code, pre {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, monospace;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- header / tabs ---- */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 13, 18, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 62px;
}

.brand {
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand span { color: var(--accent); }

nav.tabs {
  display: flex;
  gap: 4px;
  margin-right: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

nav.tabs::-webkit-scrollbar { display: none; }

nav.tabs a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
}

nav.tabs a:hover { color: var(--text); background: var(--bg-card); }

nav.tabs a[aria-current="page"] {
  color: var(--accent);
  background: rgba(94, 230, 168, .10);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.btn:active { transform: translateY(1px); }

.btn-sm { padding: 8px 16px; font-size: 14px; }

.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { background: #4954d8; }

.btn-accent { background: var(--accent); color: #07130d; }
.btn-accent:hover { background: #7aeeba; }

.btn-ghost {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--border-lit); }

.btn[aria-disabled="true"] {
  background: var(--bg-soft);
  border-color: var(--border);
  color: var(--text-dim);
  cursor: not-allowed;
  pointer-events: none;
}

/* ---- hero ---- */
.hero {
  padding: 92px 0 68px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60% 120% at 50% -10%, rgba(94, 230, 168, .10), transparent 70%),
    var(--bg);
}

.hero h1 {
  font-size: clamp(34px, 6vw, 54px);
  line-height: 1.08;
  letter-spacing: -.03em;
  margin: 0 0 18px;
}

.hero p.lede {
  color: var(--text-dim);
  font-size: clamp(16px, 2.4vw, 19px);
  max-width: 640px;
  margin: 0 auto 32px;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---- page header (non-home pages) ---- */
.page-head {
  padding: 56px 0 8px;
}

.page-head h1 {
  font-size: clamp(28px, 4.4vw, 38px);
  letter-spacing: -.025em;
  margin: 0 0 10px;
}

.page-head p {
  color: var(--text-dim);
  margin: 0;
  max-width: 660px;
}

/* ---- sections ---- */
section { padding: 60px 0; }
section + section { border-top: 1px solid var(--border); }

section h2 {
  font-size: clamp(22px, 3.2vw, 28px);
  letter-spacing: -.02em;
  margin: 0 0 8px;
}

section h3 {
  font-size: 17px;
  letter-spacing: -.01em;
  margin: 28px 0 10px;
}

section .sub {
  color: var(--text-dim);
  margin: 0 0 32px;
  max-width: 660px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -.01em;
}

.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14.5px;
}

/* ---- stats ---- */
.stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}

.stat b {
  display: block;
  font-size: 30px;
  letter-spacing: -.02em;
  color: var(--accent);
}

.stat span { font-size: 13px; color: var(--text-dim); }

/* ---- faq ---- */
details.faq {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 10px;
  overflow: hidden;
}

details.faq summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

details.faq summary::after {
  content: "+";
  color: var(--text-dim);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
}

details.faq[open] summary::after { content: "\2013"; }

details.faq .body {
  padding: 0 20px 18px;
  color: var(--text-dim);
  font-size: 14.5px;
}

details.faq .body p { margin: 0 0 10px; }
details.faq .body p:last-child { margin-bottom: 0; }

/* ---- games page ---- */
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.toolbar input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 11px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.toolbar input:focus { outline: none; border-color: var(--accent-dim); }

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

.chip {
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-dim);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.chip[aria-pressed="true"] { border-color: var(--accent-dim); color: var(--accent); }

#count { color: var(--text-dim); font-size: 14px; margin-bottom: 14px; }

ul.games {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

ul.games li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}

ul.games li:last-child { border-bottom: none; }

ul.games .plat {
  color: var(--text-dim);
  font-size: 13px;
  margin-left: auto;
  text-align: right;
}

.tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag.supported { background: rgba(94, 230, 168, .12); color: var(--accent); }
.tag.testing { background: rgba(245, 185, 66, .12); color: var(--warn); }
.tag.pending { background: rgba(153, 162, 184, .12); color: var(--text-dim); }

.empty { padding: 40px; text-align: center; color: var(--text-dim); }

/* ---- roadmap board ---- */
.board-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 13.5px;
  margin-bottom: 22px;
}

.board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  align-items: start;
}

.column {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  min-width: 0;
}

.column > header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.column > header .n {
  margin-left: auto;
  background: var(--bg-raise);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 12px;
  letter-spacing: 0;
}

.column .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  flex: none;
}

.column.is-progress .dot { background: var(--info); }
.column.is-done .dot { background: var(--accent); }
.column.is-planned .dot { background: var(--warn); }

.ticket {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  margin-bottom: 10px;
  display: block;
  text-decoration: none;
  color: inherit;
}

.ticket:last-child { margin-bottom: 0; }
a.ticket:hover { border-color: var(--border-lit); }

.ticket h4 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.45;
}

.ticket p {
  margin: 7px 0 0;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.55;
}

.labels {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.label {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-raise);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.label.xbox    { color: #7ee787; border-color: #2c5c34; }
.label.xbox360 { color: #a5d6ff; border-color: #2a4a6b; }
.label.steam   { color: #c9d1ff; border-color: #3c4270; }
.label.gfwl    { color: #ffd6a5; border-color: #6b4d2a; }
.label.ubisoft { color: #b8e0ff; border-color: #2a5570; }
.label.epic    { color: #d8d8d8; border-color: #4a4a4a; }
.label.bug     { color: #ffa198; border-color: #7a2d28; }
.label.feature { color: var(--accent); border-color: var(--accent-dim); }
.label.saves   { color: #e0c8ff; border-color: #503a6b; }

.notice {
  border: 1px solid var(--border);
  border-left: 3px solid var(--warn);
  background: var(--bg-card);
  border-radius: 10px;
  padding: 16px 18px;
  color: var(--text-dim);
  font-size: 14.5px;
}

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

/* ---- download page ---- */
.dl-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.dl-panel .meta { flex: 1 1 260px; min-width: 0; }
.dl-panel .meta h3 { margin: 0 0 6px; font-size: 18px; }
.dl-panel .meta p { margin: 0; color: var(--text-dim); font-size: 14px; }

ol.steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

ol.steps > li {
  position: relative;
  padding: 0 0 22px 44px;
  border-left: 1px solid var(--border);
  margin-left: 13px;
}

ol.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }

ol.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: -14px;
  top: -2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--bg-raise);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

ol.steps h3 { margin: 0 0 6px; font-size: 15.5px; }
ol.steps p { margin: 0 0 10px; color: var(--text-dim); font-size: 14.5px; }

pre.code {
  background: #0d1017;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
  overflow-x: auto;
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.6;
  color: #cfd8e8;
}

table.reqs {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

table.reqs th, table.reqs td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}

table.reqs th {
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
}

table.reqs td:first-child { width: 190px; color: var(--text-dim); }

/* Utility classes replacing inline style attributes, which the site's CSP
   (style-src 'self') blocks. */
.cta-row.start { justify-content: flex-start; }
.cta-note.spaced { margin-top: 24px; }
.notice p { margin: 0 0 10px; }
.notice p:last-child { margin-bottom: 0; }

/* ---- footer ---- */
footer.site {
  border-top: 1px solid var(--border);
  padding: 34px 0 56px;
  color: var(--text-dim);
  font-size: 13.5px;
}

footer.site .wrap {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

footer.site nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--text-dim); text-decoration: none; }
footer.site a:hover { color: var(--text); }

@media (max-width: 760px) {
  header.site .wrap { height: auto; padding: 10px 20px; flex-wrap: wrap; gap: 10px; }
  nav.tabs { order: 3; width: 100%; margin-right: 0; }
  .brand { margin-right: auto; }
  .hero { padding: 60px 0 48px; }
  section { padding: 44px 0; }
  .page-head { padding: 40px 0 4px; }
  .stats { gap: 26px; }
  ul.games li { flex-wrap: wrap; }
  ul.games .plat { margin-left: 0; width: 100%; text-align: left; }
  .board { grid-auto-flow: row; grid-auto-columns: auto; }
  footer.site nav { margin-left: 0; width: 100%; }
}
