/* 21 Signum: Terms and Privacy pages (same midnight-blue + gold look as the game). */
:root {
  color-scheme: dark;
  --bg: #0a1128;
  --panel: #111a3a;
  --ink: #eceff7;
  --muted: #9ba6c6;
  --line: rgba(236, 239, 247, 0.12);
  --brass: #e2b35c;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
header {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}
header a { color: var(--brass); font-weight: 800; font-size: 20px; text-decoration: none; letter-spacing: 0.02em; }
header a small { color: var(--muted); font-weight: 500; font-size: 13px; margin-left: 8px; }
main { max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
h1 { color: var(--brass); font-size: clamp(28px, 7vw, 38px); line-height: 1.15; margin: 8px 0 4px; }
.updated { color: var(--muted); margin: 0 0 24px; font-size: 14px; }
h2 { font-size: 20px; margin: 32px 0 8px; padding-top: 16px; border-top: 1px solid var(--line); }
h3 { font-size: 16px; margin: 20px 0 6px; }
p, li { color: var(--ink); }
ul { padding-left: 22px; }
li { margin: 4px 0; }
a { color: var(--brass); }
.summary { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: 10px; padding: 12px 16px; }
.summary p { margin: 6px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0; }
th, td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
code { font: 13px/1.4 ui-monospace, Menlo, Consolas, monospace; color: var(--brass); overflow-wrap: anywhere; }
footer { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 16px; }
@media (max-width: 520px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  td { border: 0; padding: 2px 0; }
  td:first-child { font-weight: 600; }
}

/* readable game pages (how-to-play, strategy, about, faq: tools/build-pages.js) */
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
.site-nav a { color: var(--muted); font-weight: 600; font-size: 14px; text-decoration: none; letter-spacing: 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brass); }
.lede { color: var(--muted); font-size: 17px; margin: 4px 0 16px; }
.content .num { color: var(--brass); font-weight: 600; font-variant-numeric: tabular-nums; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.toc a { font-size: 13px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.toc a:hover { color: var(--ink); border-color: var(--muted); }
.table-wrap { overflow-x: auto; }
.rules td.v { text-align: center; font-variant-numeric: tabular-nums; }
.rules ol { padding-left: 22px; }
.play-cta { margin: 36px 0 0; }
.cta { display: inline-block; background: var(--brass); color: #0a1128; font-weight: 800; text-decoration: none; border-radius: 10px; padding: 10px 18px; }
.cta:hover { filter: brightness(1.08); }
@media (max-width: 520px) {
  /* keep the rules' tables as real tables on phones (the legal pages stack theirs) */
  .rules .table-wrap table { display: table; width: 100%; }
  .rules .table-wrap thead { display: table-header-group; }
  .rules .table-wrap tbody { display: table-row-group; }
  .rules .table-wrap tr { display: table-row; padding: 0; }
  .rules .table-wrap th, .rules .table-wrap td { display: table-cell; padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
  .rules .table-wrap td:first-child { font-weight: 600; }
}
