/* The static pages: game guides, About, Privacy, 404. Same colours and type as the arcade (src/style.css). */
:root {
  --bg: #0c0f1d; --panel: #151a31; --line: #283058; --fg: #edf0ff; --dim: #97a2c9;
  --gold: #ffc93c; --gold-ink: #2b1f00; --accent: #5cc8ff;
  --display: "Pixelify Sans", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh; color: var(--fg); font: 16px/1.6 var(--body);
  background: radial-gradient(circle at 1px 1px, #1a2040 1px, transparent 0) 0 0 / 22px 22px, var(--bg);
  padding: 0 max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px));
}
a { color: var(--accent); }
/* Lined up with the header, like the arcade; text keeps a readable line length. */
.wrap { max-width: 1040px; margin: 0 auto; }
main { max-width: 760px; }
/* Header: the same as the arcade's (src/style.css, .top to .hbtn); keep the two in step. */
.top {
  --side-l: max(16px, env(safe-area-inset-left, 0px)); --side-r: max(16px, env(safe-area-inset-right, 0px));
  margin: calc(-1 * env(safe-area-inset-top, 0px)) calc(-1 * var(--side-r)) 20px calc(-1 * var(--side-l));
  padding: env(safe-area-inset-top, 0px) var(--side-r) 0 var(--side-l);
}
.top-in { max-width: 1040px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--fg); text-decoration: none; }
.logo img { width: 44px; height: 44px; flex: none; border-radius: 10px; box-shadow: 0 0 0 2px rgba(255, 201, 60, .55), 0 6px 18px -6px rgba(92, 200, 255, .45); }
.logo .word { font: 700 30px/1 var(--display); letter-spacing: .1em; white-space: nowrap; }
.logo b { color: var(--gold); }
.top-tools { display: flex; gap: 8px; justify-content: flex-end; flex: none; }
.hbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; min-width: 42px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--fg); text-decoration: none;
  font: 600 14px/1 var(--body); white-space: nowrap; transition: border-color .15s, background-color .15s;
}
.hbtn:hover { border-color: var(--dim); background: #1b2140; }
.hbtn[aria-current="page"] { border-color: var(--gold); }
.hbtn .ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--dim); }
.hbtn:hover .ico, .hbtn[aria-current="page"] .ico { color: var(--fg); }
@media (max-width: 720px) {
  .top-in { min-height: 62px; }
  .logo { gap: 9px; }
  .logo img { width: 34px; height: 34px; }
  .logo .word { font-size: 19px; letter-spacing: .06em; }
  .top-tools { gap: 6px; }
  .hbtn { width: 40px; height: 40px; min-width: 0; padding: 0; }
  .hbtn .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 400px) { .logo .word { font-size: 16px; letter-spacing: .04em; } .logo img { width: 30px; height: 30px; } .hbtn { width: 36px; height: 36px; } }
h1 { font: 700 34px/1.15 var(--display); margin: 0 0 8px; letter-spacing: .02em; }
h2 { font: 700 22px/1.2 var(--display); margin: 32px 0 10px; }
h3 { font-size: 17px; margin: 20px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }
.dim { color: var(--dim); }
.lede { font-size: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; padding: 0; list-style: none; }
.tags li { margin: 0; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--dim); }
.play { display: inline-block; margin: 6px 0 8px; padding: 12px 26px; border-radius: 999px; background: var(--gold); color: var(--gold-ink); font: 700 17px var(--body); text-decoration: none; }
.play:hover { filter: brightness(1.08); }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 20px 0; }
.box h2 { margin-top: 0; }
kbd { font: 13px ui-monospace, Menlo, monospace; }
.list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.list li { margin: 0; }
.list a { display: block; height: 100%; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--fg); text-decoration: none; }
.list a:hover { border-color: var(--dim); }
.list b { display: block; font: 700 16px var(--display); margin-bottom: 4px; }
.list span { font-size: 13px; color: var(--dim); }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; font-size: 14px; }
.ad { margin: 28px 0; min-height: 0; }
.ad:empty { display: none; }
.ad ins[data-ad-status="unfilled"] { display: none !important; }
footer { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer a { color: var(--dim); }
@media (max-width: 560px) {
  h1 { font-size: 28px; }
}
