/* Turning Point: online manual. Same art direction as the 3D table
   (js/../style.css): petrol ground, amber accents, thin teal rules, mono for
   labels and numbers. Self-contained: no font loading, no external assets. */

:root {
  --petrol-deep: #06161b;
  --petrol: #081a1f;
  --petrol-raised: #0e2830;
  --petrol-panel: #0b2027;
  --teal-line: #1d4a52;
  --teal-line-soft: #143137;
  --amber: #ffb066;
  --amber-deep: #ff9a3c;
  --amber-dim: #b56a26;
  --text: #cfe3e6;
  --text-dim: #7fa0a6;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Work Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--petrol);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------------- nav */

.rules-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 10px 22px;
  background: rgba(6, 22, 27, 0.94);
  border-bottom: 1px solid var(--teal-line);
  backdrop-filter: blur(6px);
}

.rules-nav .brand {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  margin-right: 6px;
}

.rules-nav .brand::first-letter { color: var(--amber); }

.rules-nav a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
  padding: 3px 0;
  border-bottom: 1px solid transparent;
  transition: color 120ms ease, border-color 120ms ease;
}

.rules-nav a:hover { color: var(--text); border-bottom-color: var(--amber-dim); }
.rules-nav a[aria-current="page"] { color: var(--amber); border-bottom-color: var(--amber); }

/* The manual you are reading, named rather than linked: a manual is one game's
   own document, so the bar carries its title and a way back to the hub, and
   nothing that offers a different game. */
.rules-nav .here {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  padding: 3px 0;
  border-bottom: 1px solid var(--amber);
}

.rules-nav .spacer { flex: 1; }
.rules-nav .to-table { color: var(--amber-dim); }

/* ------------------------------------------------------------------ page */

.wrap {
  max-width: 74ch;
  margin: 0 auto;
  padding: 46px 22px 90px;
}

header.page-head { margin-bottom: 34px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber-dim);
}

h1 {
  margin-top: 10px;
  font-size: 40px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #eaf5f6;
}

h1 .sub {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.standfirst {
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--teal-line-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.meta span { white-space: nowrap; }
.meta span + span::before { content: "·"; margin-right: 10px; color: var(--amber-dim); }

h2 {
  margin-top: 48px;
  padding-top: 14px;
  border-top: 1px solid var(--teal-line);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

h3 {
  margin-top: 28px;
  font-size: 19px;
  font-weight: 600;
  color: #eaf5f6;
}

h4 {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

p { margin-top: 12px; }
p.lede { font-size: 17px; color: var(--text); }

ul, ol { margin: 12px 0 0 22px; }
li { margin-top: 7px; padding-left: 4px; }
li::marker { color: var(--amber-dim); font-family: var(--mono); font-size: 0.9em; }

ol.steps { counter-reset: none; }
ol.steps > li { margin-top: 12px; }

b, strong { color: #eaf5f6; font-weight: 600; }

.tag {
  font-family: var(--mono);
  font-size: 0.86em;
  letter-spacing: 0.06em;
  color: var(--amber);
}

.num { font-family: var(--mono); color: #eaf5f6; }

a { color: var(--amber); }
a:hover { color: #ffd0a0; }

/* ---------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; margin-top: 18px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

th, td {
  padding: 7px 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--teal-line-soft);
}

thead th {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber-dim);
  border-bottom: 1px solid var(--teal-line);
}

tbody tr:hover { background: rgba(29, 74, 82, 0.16); }

td.n, th.n { font-family: var(--mono); text-align: right; white-space: nowrap; }
td.n { color: #eaf5f6; }
td .kind {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.dirty { color: var(--amber-deep); }
.clean { color: #7fd0b0; }

/* ---------------------------------------------------------------- blocks */

.note, .strategy, .callout {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--teal-line);
  border-left: 2px solid var(--amber-dim);
  border-radius: 4px;
  background: var(--petrol-panel);
}

.note { font-size: 14px; color: var(--text-dim); }
.note b { color: var(--text); }

.note .label, .strategy .label, .callout .label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-dim);
  margin-bottom: 4px;
}

.strategy { background: var(--petrol-raised); }
.strategy li { font-size: 15px; }

.callout { border-left-color: var(--amber); }

.keyline {
  margin-top: 22px;
  padding: 12px 16px;
  border: 1px solid var(--amber-dim);
  border-radius: 4px;
  background: rgba(255, 154, 60, 0.07);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: #eaf5f6;
}

/* ----------------------------------------------------------- version cards */

.versions { margin-top: 18px; display: grid; gap: 14px; }

.ver-card {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--teal-line);
  border-radius: 6px;
  background: var(--petrol-panel);
  text-decoration: none;
  color: var(--text);
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease;
}

.ver-card:hover {
  border-color: var(--amber-dim);
  background: var(--petrol-raised);
  transform: translateY(-1px);
}

.ver-card .ver-name {
  font-size: 20px;
  font-weight: 600;
  color: #eaf5f6;
}

.ver-card .ver-meta {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.ver-card p { margin-top: 10px; font-size: 15px; color: var(--text); }

/* Games not yet offered (Sam, 29 September 2026): still visible and
   readable, greyed out and labelled "Coming soon". */
.soon-badge {
  display: inline-block; margin-left: 10px; padding: 2px 9px; vertical-align: middle;
  border: 1px solid var(--amber); border-radius: 999px; color: var(--amber);
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.ver-card.soon, .video-embed.soon, .page-head.soon { filter: grayscale(1); opacity: .62; }
.ver-card.soon:hover { opacity: .8; }
.rules-nav a.soon { opacity: .55; }

.ver-card .go {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

/* -------------------------------------------------------------- key facts */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.fact {
  padding: 12px 14px;
  border: 1px solid var(--teal-line);
  border-radius: 4px;
  background: var(--petrol-panel);
}

.fact .k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.fact .v {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 17px;
  color: var(--amber);
}

/* ------------------------------------------------------------------ misc */

.toc {
  margin-top: 22px;
  padding: 14px 18px;
  border: 1px solid var(--teal-line);
  border-radius: 4px;
  background: var(--petrol-panel);
}

.toc ul { margin: 6px 0 0 18px; columns: 2; column-gap: 26px; }
.toc li { margin-top: 4px; font-size: 14px; }
.toc a { text-decoration: none; color: var(--text); }
.toc a:hover { color: var(--amber); }

footer.page-foot {
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid var(--teal-line);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

footer.page-foot a { color: var(--amber-dim); text-decoration: none; }
footer.page-foot a:hover { color: var(--amber); }

@media (max-width: 620px) {
  h1 { font-size: 30px; }
  .wrap { padding: 32px 16px 70px; }
  .toc ul { columns: 1; }
}

/* ------------------------------------------------------------------ print */

@media print {
  :root {
    --text: #12181a;
    --text-dim: #4a5a5e;
    --amber: #8a4b09;
    --amber-dim: #8a4b09;
    --amber-deep: #8a4b09;
    --teal-line: #9aacae;
    --teal-line-soft: #c8d2d3;
  }

  html, body {
    background: #ffffff;
    color: #12181a;
    font-size: 11pt;
    line-height: 1.45;
  }

  .rules-nav, .toc, .ver-card .go { display: none; }

  .wrap { max-width: none; padding: 0; }

  h1 { font-size: 24pt; color: #000; }
  h1 .sub { color: #333; }
  h2 {
    margin-top: 22pt;
    color: #000;
    border-top: 1px solid #9aacae;
    page-break-after: avoid;
  }
  h3, h4 { color: #000; page-break-after: avoid; }
  b, strong, .num, td.n { color: #000; }

  .note, .strategy, .callout, .keyline, .fact, .ver-card, .facts .fact {
    background: #f4f6f6;
    border: 1px solid #9aacae;
    border-left-width: 2px;
    color: #12181a;
    page-break-inside: avoid;
  }

  .keyline { background: #f4f6f6; color: #12181a; }
  .note { color: #33454a; }

  table { font-size: 9.5pt; page-break-inside: avoid; }
  thead th { color: #000; }
  tbody tr:hover { background: none; }

  a { color: #12181a; text-decoration: none; }

  footer.page-foot { color: #4a5a5e; border-top: 1px solid #9aacae; }
}

/* Video tutorial links and the AI-voice disclosure. Deliberately plain: the
   same dim 14px the .note blocks use, without their border, so the line reads
   as a footnote beside the link rather than as another callout. */
.video-note, .video-link { font-size: 14px; color: var(--text-dim); }
.video-link a, .video-note a { color: var(--amber-dim); }
.video-link a:hover, .video-note a:hover { color: var(--amber); }

/* ------------------------------------------------------- inline video player

   The tutorials play in the page rather than opening a bare MP4 in a tab. The
   player borrows .ver-card's border, radius and panel colour so an embed reads
   as the page's own furniture rather than as a pasted-in widget.

   preload="metadata" is the whole reason this is affordable: a reader who never
   presses play downloads the poster and a few kilobytes of container header,
   not sixty-odd megabytes of video. The poster is a real frame of the finished
   cut, so the still and the video can never disagree.

   The aspect ratio is the master's own 1920 x 1200, held by aspect-ratio so the
   box reserves its height before any metadata arrives and the page does not
   jump when the video loads. */
.video-embed { margin-top: 18px; }

.video-embed video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  background: #0b0f14;
  border: 1px solid var(--teal-line);
  border-radius: 6px;
}

.video-embed .video-head {
  margin-bottom: 10px;
}

.video-embed .video-head .ver-name {
  font-size: 20px;
  font-weight: 600;
  color: #eaf5f6;
}

.video-embed .ver-meta {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.video-embed > .video-note { margin-top: 10px; }
.video-embed > p:not(.video-note) { margin-top: 10px; font-size: 15px; color: var(--text); }

/* Print: a video is not a printable thing, so the page keeps the disclosure and
   the description and drops the player itself. */
@media print {
  .video-embed video { display: none; }
}
