/* Shared style for the static content pages (how-to-play, factions, maps, about). Palette and fonts as legal.html. */
:root { --bg: #0b0806; --card: #1c1611; --ink: #e8dcc0; --dim: #a8916a; --gold: #d6ae48; --line: #4f3a26; --go: #9fe03a; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 21px/1.3 VT323, ui-monospace, monospace; overflow-wrap: break-word; }
main, .top, footer { max-width: 860px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
main { padding-top: 8px; padding-bottom: 32px; }
h1, h2, h3 { font-family: Silkscreen, monospace; font-weight: 400; color: var(--gold); letter-spacing: 1px; }
h1 { font-size: 24px; line-height: 1.25; margin: 8px 0 8px; }
h2 { font-size: 15px; line-height: 1.4; margin: 36px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
h3 { font-size: 12px; line-height: 1.4; color: var(--gold); margin: 22px 0 6px; }
h4 { font: 400 11px Silkscreen, monospace; color: var(--dim); letter-spacing: 1px; margin: 16px 0 4px; }
p, li { margin: 0 0 10px; } ul, ol { padding-left: 22px; }
a { color: var(--go); } a:hover { color: #c8ff7a; }
b, strong { color: #f3e8cc; font-weight: 400; text-shadow: 0 0 0.6px currentColor; }
.dim { color: var(--dim); }
.lead { font-size: 23px; }
.card { background: var(--card); border: 2px solid var(--line); padding: 12px 16px; margin: 0 0 14px; }
img { max-width: 100%; height: auto; display: block; image-rendering: auto; }
figure { margin: 16px 0 18px; }
figure img { border: 2px solid var(--line); background: #000; width: 100%; }
figcaption { color: var(--dim); font-size: 18px; margin-top: 4px; }
kbd { font: inherit; color: #f3e8cc; background: #2a2119; border: 1px solid var(--line); border-bottom-width: 3px; padding: 0 5px; white-space: nowrap; }

/* top bar + nav */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.brand { font: 400 13px Silkscreen, monospace; color: var(--gold); text-decoration: none; letter-spacing: 1px; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
nav li { margin: 0; }
nav a { font: 400 11px Silkscreen, monospace; color: var(--dim); text-decoration: none; letter-spacing: 1px; }
nav a:hover, nav a[aria-current="page"] { color: var(--go); }
.crumbs { font-size: 18px; color: var(--dim); margin: 12px 0 0; }
.crumbs a { color: var(--dim); }

/* play button */
.cta { margin: 18px 0 22px; }
.play { display: inline-block; font: 400 14px Silkscreen, monospace; letter-spacing: 1px; color: #0b0806; background: var(--go); text-decoration: none;
  padding: 12px 18px; border: 2px solid #d8ff8a; box-shadow: 0 4px 0 #4d7a12; }
.play:hover { color: #0b0806; background: #b8f05a; }
.play:active { transform: translateY(2px); box-shadow: 0 2px 0 #4d7a12; }
.cta small { display: block; margin-top: 10px; color: var(--dim); font-size: 18px; }

/* tables */
.tbl { width: 100%; overflow-x: auto; margin: 6px 0 14px; }
table { border-collapse: collapse; width: 100%; font-size: 19px; }
th, td { text-align: left; padding: 4px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 400 10px Silkscreen, monospace; color: var(--dim); letter-spacing: 1px; white-space: nowrap; }
td.n { text-align: right; white-space: nowrap; color: var(--gold); }
td.k { white-space: nowrap; }
dl.keys { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0; }
dl.keys dt { color: var(--ink); white-space: nowrap; } dl.keys dd { margin: 0; color: var(--dim); }

/* faction / map blocks */
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 2px 16px; margin: 0 0 12px; }
.facts dt { color: var(--dim); } .facts dd { margin: 0; }
.hero { display: grid; grid-template-columns: 222px 1fr; gap: 16px; align-items: start; margin: 12px 0 16px; }
.hero img { width: 222px; height: auto; border: 2px solid var(--line); background: #000; }
.hero blockquote { margin: 0 0 8px; color: var(--gold); }
.toc { columns: 2; column-gap: 24px; }
.toc li { break-inside: avoid; }

footer { padding-top: 16px; padding-bottom: 48px; border-top: 2px solid var(--line); color: var(--dim); font-size: 18px; }
footer nav { margin: 0 0 10px; }
footer p { margin: 0 0 6px; }

@media (max-width: 600px) {
  body { font-size: 20px; }
  h1 { font-size: 19px; } h2 { font-size: 13px; }
  .hero { grid-template-columns: 1fr; }
  .hero img { width: 100%; max-width: 444px; }
  .facts, dl.keys { grid-template-columns: 1fr; gap: 0; }
  .facts dd, dl.keys dd { margin-bottom: 6px; }
  .toc { columns: 1; }
  table { font-size: 17px; }
  th, td { padding: 4px 5px; }
}
