:root {
  --bg: #0b0d10;
  --bg-2: #12161b;
  --card: #161b21;
  --line: #242b33;
  --text: #e6e9ec;
  --muted: #8d97a1;
  --accent: #39ff9c;
  --accent-dim: #1d7f52;
  --warn: #ffb547;
  --radius: 10px;
  --mono: "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 13, 16, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-family: var(--mono); font-weight: 700; color: var(--text); letter-spacing: 0.02em; }
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; }
nav a { color: var(--muted); margin-left: 22px; font-size: 15px; }
nav a:hover, nav a.active { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 88px 0 56px; border-bottom: 1px solid var(--line); }
.eyebrow { font-family: var(--mono); color: var(--accent); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.1; margin: 12px 0 16px; letter-spacing: -0.02em; }
.lede { color: var(--muted); font-size: 18px; max-width: 640px; margin: 0; }
.cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px;
  border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 15px;
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn.primary { background: var(--accent); color: #06130c; border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.disabled { color: var(--muted); cursor: default; pointer-events: none; }

/* Sections */
section { padding: 64px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }
h2 { font-size: 28px; margin: 0 0 8px; letter-spacing: -0.01em; }
h3 { font-size: 18px; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 32px; max-width: 680px; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.maps { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--muted); margin: 0 0 12px; }
.card p:last-child { margin-bottom: 0; }
.card .tag { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.card li { margin: 4px 0; }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 40px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font-family: var(--mono); font-size: 26px; color: var(--text); }
.stat span { color: var(--muted); font-size: 13px; }

/* Map cards */
.map { position: relative; }
.map h3 { margin-bottom: 4px; }
.map .session { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.map .restart { font-size: 13px; color: var(--muted); margin-top: 10px; }
.badge {
  display: inline-block; font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--accent-dim); color: var(--accent); margin-bottom: 10px;
}
.badge.warn { border-color: #7a5520; color: var(--warn); }

/* Settings tables */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; }
td.v { text-align: right; font-family: var(--mono); color: var(--text); white-space: nowrap; padding-left: 16px; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* Mods */
.mod { display: flex; gap: 14px; align-items: flex-start; }
.mod img { width: 48px; height: 48px; border-radius: 8px; flex: none; background: var(--bg-2); }
.mod h3 { font-size: 16px; margin: 0 0 2px; }
.mod p { font-size: 14px; }

/* Steps */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
ol.steps li { counter-increment: s; position: relative; padding: 0 0 18px 44px; color: var(--muted); }
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--accent-dim);
  color: var(--accent); font-family: var(--mono); font-size: 13px; display: grid; place-items: center;
}
ol.steps li strong { color: var(--text); }
code { font-family: var(--mono); font-size: 0.92em; background: var(--bg-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 5px; color: var(--text); }

.note { border-left: 3px solid var(--accent-dim); padding: 4px 0 4px 16px; color: var(--muted); margin: 24px 0 0; }

footer { padding: 36px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (max-width: 640px) {
  nav a { margin-left: 14px; font-size: 14px; }
  .hero { padding: 56px 0 40px; }
  section { padding: 48px 0; }
}
