/* The legal surface — the game's palette, turned down until long-form
   prose is actually readable. Served as a real file rather than inlined
   because two documents share it and they must never drift apart.
   Deliberately the ONE stylesheet in the project that is not part of the
   bundle: these pages must render even if the game bundle is broken. */

:root {
  --void: #02040a;
  --line: rgba(0, 255, 255, 0.18);
  --dim: rgba(155, 232, 238, 0.62);
  --body: #cfeef2;
  --bright: #b6fbff;
  --amber: #ffa32e;
}

* { box-sizing: border-box; }

html {
  background: var(--void);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 24px 96px;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(0, 255, 255, 0.07) 0%, rgba(2, 4, 10, 0) 60%),
    var(--void);
  color: var(--body);
  font: 15px/1.72 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.shell { max-width: 74ch; margin: 0 auto; }

/* ── masthead ─────────────────────────────────────────────────────── */

header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 44px;
}

header .shell {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 26px 0 18px;
}

.wordmark {
  color: var(--bright);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 8px;
  text-decoration: none;
  text-shadow: 0 0 22px rgba(0, 255, 255, 0.55);
}

.wordmark:hover { text-shadow: 0 0 30px rgba(0, 255, 255, 0.9); }

nav { display: flex; gap: 18px; font-size: 11px; letter-spacing: 3px; }

nav a { color: var(--dim); text-decoration: none; }
nav a:hover { color: var(--bright); }
nav a[aria-current='page'] { color: var(--bright); }

/* ── document ─────────────────────────────────────────────────────── */

h1 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 9px;
  color: var(--bright);
  text-shadow: 0 0 26px rgba(0, 255, 255, 0.4);
}

.stand {
  margin: 0 0 42px;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--dim);
  opacity: 0.8;
}

h2 {
  margin: 44px 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--bright);
  text-transform: uppercase;
}

h2::before {
  content: '';
  display: block;
  width: 26px;
  height: 1px;
  margin-bottom: 14px;
  background: var(--line);
}

p { margin: 0 0 16px; }

address { font-style: normal; margin: 0 0 16px; }

a { color: var(--bright); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #fff; }

strong { color: var(--bright); font-weight: 600; }

ol, ul { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }
li::marker { color: var(--dim); }

code {
  color: var(--amber);
  font-size: 0.94em;
  background: rgba(255, 163, 46, 0.08);
  padding: 1px 5px;
}

/* Wide content scrolls inside itself; the page body never does. */
.scroll { overflow-x: auto; margin: 0 0 16px; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
  font-size: 13px;
}

th, td {
  border: 1px solid var(--line);
  padding: 9px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--bright);
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 11px;
  text-transform: uppercase;
  background: rgba(0, 255, 255, 0.04);
}

/* The pulled-aside note: the one visual weight above body text. */
.note {
  border-left: 2px solid rgba(255, 163, 46, 0.5);
  background: rgba(255, 163, 46, 0.05);
  padding: 14px 18px;
  margin: 0 0 16px;
  font-size: 14px;
}

.note p:last-child { margin-bottom: 0; }

footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding-top: 20px;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--dim);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 560px) {
  body { font-size: 14px; padding: 0 18px 72px; }
  h1 { font-size: 20px; letter-spacing: 6px; }
  .wordmark { letter-spacing: 5px; }
}
