/* Shared by the seven game pages and the 404.
 *
 * These pages are hand-written HTML copied out of public/ rather than built,
 * exactly like /privacy/ — so a crawler that runs no JavaScript still gets
 * headings, prose and links, which the app itself cannot give it: the app is
 * one <div id="root"> until React fills it in.
 *
 * One sheet rather than five copies of the same inline <style>. The CSP allows
 * it (style-src 'self'), and each page sets only --accent, which is the game's
 * own colour taken from its frontend/index.ts.
 */

:root {
  color-scheme: dark;
  --bg: #07070a;
  --ink: #d8d8e0;
  --bright: #fff;
  --dim: #7a7a88;
  --rule: #1c1c24;
  --panel: #101017;
  --accent: #39ff88; /* overridden per page */
}

* { box-sizing: border-box; }

body {
  margin: 0 auto;
  padding: 3rem 1.25rem 6rem;
  max-width: 44rem;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* The trail back to the lobby, and the only nav these pages have. */
nav.crumbs { font-size: 0.85rem; color: var(--dim); margin: 0 0 2.5rem; }
nav.crumbs a { color: var(--dim); }
nav.crumbs a:hover { color: var(--accent); }

header .icon { font-size: 2.5rem; line-height: 1; display: block; margin: 0 0 0.75rem; }

h1 {
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  color: var(--bright);
  line-height: 1.2;
}

/* The game's own name, under the heading that carries the search terms. */
.sub { color: var(--dim); margin: 0 0 2rem; font-size: 0.95rem; }
.sub strong { color: var(--accent); font-weight: 600; }

.lede { font-size: 1.08rem; color: var(--ink); margin: 0 0 2rem; }

h2 {
  font-size: 1.05rem;
  margin: 2.75rem 0 0.7rem;
  color: var(--accent);
  letter-spacing: 0.01em;
}

h3 { font-size: 0.95rem; margin: 1.75rem 0 0.4rem; color: var(--bright); }

p { margin: 0 0 1rem; }

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

strong { color: var(--bright); }

code {
  background: #14141b;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.88em;
}

ul { padding-left: 1.15rem; margin: 0 0 1rem; }
li { margin: 0 0 0.35rem; }

table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.5rem 0 1.5rem;
  font-size: 0.94rem;
}
th, td {
  text-align: left;
  padding: 0.5rem 0.75rem 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
th { color: #9a9aa8; font-weight: 600; }

/* Wide tables scroll inside themselves rather than pushing the page sideways. */
.scroll { overflow-x: auto; }

.play {
  display: inline-block;
  margin: 1rem 0 0.5rem;
  padding: 0.8rem 1.6rem;
  background: var(--accent);
  color: #07070a;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}
.play:hover { filter: brightness(1.1); }

.note { color: var(--dim); font-size: 0.88rem; }

/* The other four games, so every page is one hop from every other. */
.siblings { margin: 3.5rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--rule); }
.siblings h2 { margin-top: 0; }
.siblings ul { list-style: none; padding: 0; }
.siblings li { margin: 0 0 0.6rem; }
.siblings a { text-decoration: none; font-weight: 600; }
.siblings .what { color: var(--dim); font-weight: 400; }

footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  color: #6a6a78;
  font-size: 0.85rem;
}
footer a { color: #6a6a78; }
