/* Shared chrome for the non-game pages (about, intro, hall). The game itself
   is a fixed-viewport canvas app and keeps its own styles in index.html;
   these pages are ordinary scrolling documents so crawlers and humans can
   read what the canvas cannot show them. */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;600;700;800&display=swap');

:root {
  --panel: rgba(14, 20, 32, 0.92);
  --panel-border: rgba(255, 255, 255, 0.1);
  --text: #eef3fb;
  --muted: #9aa8bd;
  --accent: #5eead4;
  --gold: #fbbf24;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #101725 0%, #1a2436 60%, #2a2438 100%);
  background-attachment: fixed;
  min-height: 100vh;
  padding: 28px 18px 80px;
  line-height: 1.6;
}

h1, h2, h3 { font-family: "Space Grotesk", system-ui, sans-serif; line-height: 1.2; }

.wrap { max-width: 820px; margin: 0 auto; }

nav {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  padding-bottom: 20px; margin-bottom: 28px;
  border-bottom: 1px solid var(--panel-border);
  font-size: 13px;
}
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); }
nav .brand {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700; color: var(--text); letter-spacing: 0.02em;
  margin-right: auto; font-size: 15px;
}
nav .brand span { color: var(--accent); }

h1 { font-size: 34px; margin-bottom: 14px; }
h1 span { color: var(--accent); }
.lede { color: var(--muted); font-size: 17px; margin-bottom: 8px; }

h2 { font-size: 22px; margin: 38px 0 12px; }
h3 { font-size: 16px; margin-bottom: 6px; }
p { margin: 12px 0; }
p, li { font-size: 15px; }
a { color: var(--accent); }

ul, ol { margin: 12px 0 12px 22px; }
li { margin: 7px 0; }

.card {
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: var(--radius); padding: 16px 18px; margin: 14px 0;
}
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card .meta { font-size: 12px; color: var(--gold); margin-top: 4px; }
.card .tradeoff { font-size: 12px; color: var(--muted); }

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

.cta {
  display: inline-block; background: var(--accent); color: #06251f;
  font-weight: 800; font-size: 16px; padding: 14px 28px; border-radius: 999px;
  text-decoration: none; margin: 26px 0 8px;
}
.cta:hover { filter: brightness(1.08); }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--panel-border); }
th { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
td.num { font-variant-numeric: tabular-nums; }
tbody tr:first-child td { color: var(--gold); font-weight: 700; }
.table-wrap { overflow-x: auto; }

footer {
  margin-top: 54px; padding-top: 20px;
  border-top: 1px solid var(--panel-border);
  color: var(--muted); font-size: 12px;
}
footer a { color: var(--muted); }

@media (max-width: 560px) {
  h1 { font-size: 27px; }
  nav .brand { margin-right: 0; width: 100%; }
}
