/* Dark asphalt with motorway sign amber. No scripts and no inline styles (the content security policy
   allows neither). */
:root {
  --bg: #121417;
  --panel: #1b1f24;
  --panel-2: #22272e;
  --line: #2f3640;
  --text: #e6e8eb;
  --muted: #9aa3ad;
  --accent: #f2b33d;
  --accent-ink: #1a1405;
  --ok: #5cc48a;
  --bad: #ef6b6b;
  --radius: 10px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); }
a:hover { color: #ffd27a; }

/* header: a road with a dashed centre line */
.top {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.top::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 28px, transparent 28px 52px);
  opacity: .8;
}
.top-inner {
  max-width: 980px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.brand {
  font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text); text-decoration: none; font-size: 20px;
}
.brand span { color: var(--accent); }
nav { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
nav a, nav button {
  color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px;
  background: none; border: 0; font: inherit; cursor: pointer;
}
nav a:hover, nav button:hover { color: var(--text); background: var(--panel-2); }
nav form { margin: 0; }

main { flex: 1; width: 100%; max-width: 980px; margin: 0 auto; padding: 32px 16px 48px; }
footer {
  color: var(--muted); font-size: 13px; text-align: center; padding: 20px 16px 28px;
  border-top: 1px solid var(--line);
}

h1 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 20px; margin: 0 0 12px; }
p { margin: 0 0 14px; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 18px;
}
.narrow { max-width: 460px; margin: 0 auto; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* forms */
label { display: block; font-weight: 600; margin: 14px 0 6px; }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { margin-top: 5px; }
input[type=text], input[type=password], input[type=search], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.hint { color: var(--muted); font-size: 13px; margin-top: 4px; }

.btn {
  display: inline-block; padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--accent); color: var(--accent-ink);
}
.btn:hover { filter: brightness(1.08); color: var(--accent-ink); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn.ghost:hover { background: var(--panel-2); color: var(--text); }
.btn.danger { background: var(--bad); color: #210707; }
.btn.steam { background: #171a21; color: #fff; border-color: #3d4450; }
.btn.steam:hover { background: #23272f; color: #fff; }
.btn.wide { width: 100%; margin-top: 18px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

.or {
  display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0 4px;
}
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* messages */
.flash { border-radius: 8px; padding: 12px 14px; margin-bottom: 16px; border: 1px solid; }
.flash.ok { border-color: #2e6a49; background: #15281e; color: #bfeccf; }
.flash.error { border-color: #7a3434; background: #2a1515; color: #ffd0d0; }
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--panel-2); color: var(--muted); border: 1px solid var(--line); vertical-align: middle;
}
.badge.admin { color: var(--accent); border-color: #6b5320; }
.badge.banned { color: var(--bad); border-color: #7a3434; }

/* steps on the sign up page */
.steps { display: flex; gap: 8px; margin-bottom: 18px; }
.step {
  flex: 1; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted);
  font-size: 14px;
}
.step.on { border-color: var(--accent); color: var(--text); }
.step.done { color: var(--ok); }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
td form { margin: 0; }
.link-button { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; }

/* home */
.hero { padding: 26px 0 30px; }
.hero h1 { font-size: 40px; }
.hero .actions { margin-top: 22px; }
.how { counter-reset: how; list-style: none; padding: 0; margin: 0; }
.how li { counter-increment: how; position: relative; padding-left: 40px; margin-bottom: 14px; }
.how li::before {
  content: counter(how); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center;
}
.stat { font-size: 30px; font-weight: 800; color: var(--accent); }
code { background: var(--panel-2); padding: 1px 6px; border-radius: 6px; font-size: 14px; }

@media (max-width: 560px) {
  .hero h1 { font-size: 30px; }
  h1 { font-size: 24px; }
  .card { padding: 18px; }
  .steps { flex-direction: column; }
}
