/* Shared chrome for the text pages (about, privacy). The game page keeps its own styles inline;
   this file only reuses its palette and font so the two feel like one site. */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
}
:root {
  --mat: #262d38;
  --mat-2: #1d232c;
  --paper: #f1f3f5;
  --ink: #232a34;
  --hot: #ffd166;
  --muted: rgba(241, 243, 245, .7);
  --rule: rgba(241, 243, 245, .14);
  --font: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; }
html { background: var(--mat); color: var(--paper); font-family: var(--font); -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; display: flex; flex-direction: column; line-height: 1.6; font-size: 16px; }

/* ---- header ---- */
header { position: sticky; top: 0; z-index: 1; background: rgba(29, 35, 44, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
header .bar { max-width: 56em; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 18px; }
.wordmark { font-weight: 800; font-size: 22px; letter-spacing: -.05em; color: var(--paper); text-decoration: none; margin-right: auto; }
.wordmark:hover { color: var(--hot); }
header nav { display: flex; gap: 6px; flex-wrap: wrap; }
header nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; padding: 7px 10px; border-radius: 8px; }
header nav a:hover { color: var(--paper); background: rgba(241, 243, 245, .08); }
header nav a[aria-current="page"] { color: var(--paper); }
header nav a.play { color: var(--ink); background: var(--hot); font-weight: 800; box-shadow: 0 3px 0 #b8892b; transform: translateY(-1px); }
header nav a.play:hover { background: #ffd978; }
header nav a.play:active { box-shadow: 0 1px 0 #b8892b; transform: translateY(1px); }

/* ---- body copy ---- */
main { flex: 1; width: 100%; max-width: 42em; margin: 0 auto; padding: 36px 16px 56px; }
main h1 { font-size: clamp(32px, 6vw, 44px); font-weight: 800; line-height: 1.05; letter-spacing: -.05em; margin-bottom: 10px; }
main h2 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; margin: 40px 0 10px; }
main h3 { font-size: 17px; font-weight: 800; margin: 24px 0 6px; }
main p, main li { color: var(--paper); }
main p { margin: 0 0 14px; }
main ul, main ol { padding-left: 1.4em; margin: 0 0 14px; }
main li { margin-bottom: 6px; }
main a { color: var(--hot); text-underline-offset: 3px; }
main a:hover { text-decoration-thickness: 2px; }
main code { font-size: .92em; background: var(--mat-2); padding: 1px 6px; border-radius: 5px; }
.lede { font-size: 18px; color: var(--muted); margin-bottom: 28px; }
.meta { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.card { background: var(--mat-2); border-radius: 12px; padding: 18px 20px; margin: 18px 0; outline: 1px solid var(--rule); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { position: relative; padding-left: 2.6em; margin-bottom: 12px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: .1em; width: 1.8em; height: 1.8em; display: grid; place-items: center; border-radius: 7px; background: var(--hot); color: var(--ink); font-weight: 800; font-size: 14px; box-shadow: 0 3px 0 #b8892b; }
.cta { display: inline-block; margin-top: 8px; font-weight: 800; font-size: 18px; color: var(--ink); background: var(--hot); text-decoration: none; padding: 13px 20px; border-radius: 8px; box-shadow: 0 5px 0 #b8892b; transform: translateY(-2px); }
.cta:active { box-shadow: 0 1px 0 #b8892b; transform: translateY(2px); }
.cta:focus-visible, header nav a:focus-visible, .wordmark:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 18px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
th { font-weight: 800; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 480px) { table, thead, tbody, tr, th, td { display: block; } thead { display: none; } td { padding: 4px 0; border: 0; } td:first-child { font-weight: 800; padding-top: 12px; } tr { border-bottom: 1px solid var(--rule); padding-bottom: 10px; } }

/* ---- ad slot ----
   Display units go in elements with this class once AdSense is approved: paste the unit's
   <ins class="adsbygoogle"> snippet inside. The slot is invisible while empty so the layout
   does not show a blank box before approval. */
.ad { margin: 32px auto 0; text-align: center; min-height: 0; }
.ad:empty { display: none; }

/* ---- footer ---- */
footer { border-top: 1px solid var(--rule); }
footer .bar { max-width: 56em; margin: 0 auto; padding: 18px 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
footer .copy { margin-right: auto; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
