/* The guide pages (tools/build-guides.mjs): the game's look, hairlines and square edges, readable on a phone. */
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("assets/fonts/barlow-condensed-800.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 600; font-display: swap; src: url("assets/fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 400; font-display: swap; src: url("assets/fonts/barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-display: swap; src: url("assets/fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-weight: 500; font-display: swap; src: url("assets/fonts/chakra-petch-500.woff2") format("woff2"); }
:root { color-scheme: dark; --bg: #0a0a0b; --panel: #121216; --line: #26262d; --bone: #f4f1ea; --text: #d9dbe0; --muted: #8a8f99; --red: #F0144A; --good: #3fdc8a; --warn: #f2c14e; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 "Barlow", system-ui, sans-serif; }
a { color: var(--bone); text-decoration-color: rgba(240, 20, 74, 0.6); text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration-color: var(--red); }
img { max-width: 100%; height: auto; }
.g-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); background: rgba(10, 10, 11, 0.94); border-bottom: 1px solid var(--line); }
.g-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.g-brand img { width: 92px; }
.g-brand span { font: 800 20px/1 "Barlow Condensed", "Arial Narrow", sans-serif; text-transform: uppercase; letter-spacing: 0.04em; color: var(--bone); }
.g-nav { display: flex; gap: 4px 16px; flex-wrap: wrap; align-items: center; font: 500 13px/1 "Chakra Petch", monospace; text-transform: uppercase; letter-spacing: 0.08em; }
.g-nav a { text-decoration: none; color: var(--muted); }
.g-nav a:hover { color: var(--bone); }
.g-nav .g-play { color: var(--bone); border: 1px solid var(--red); padding: 7px 10px; }
.g-main { max-width: 820px; margin: 0 auto; padding: 22px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); }
.g-crumbs { font: 500 12px/1.4 "Chakra Petch", monospace; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.g-crumbs a { color: var(--muted); text-decoration: none; }
.g-crumbs > * + *::before { content: " / "; color: #4a4d55; }
h1 { margin: 10px 0 14px; font: 800 clamp(34px, 7vw, 54px)/0.95 "Barlow Condensed", "Arial Narrow", sans-serif; text-transform: uppercase; color: var(--bone); text-wrap: balance; }
h2 { margin: 34px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); font: 800 26px/1.05 "Barlow Condensed", "Arial Narrow", sans-serif; text-transform: uppercase; color: var(--bone); text-wrap: balance; }
h3 { margin: 18px 0 6px; font: 600 15px/1.2 "Chakra Petch", monospace; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.g-kicker { margin: 0 0 6px; font: 500 12px/1.4 "Chakra Petch", monospace; text-transform: uppercase; letter-spacing: 0.1em; color: var(--red); }
.g-answer { position: relative; margin: 0 0 6px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); font-size: 17px; color: var(--bone); max-width: 70ch; }
.g-answer::before { content: ""; position: absolute; top: -1px; left: -1px; width: 10px; height: 10px; border-top: 2px solid var(--red); border-left: 2px solid var(--red); }
.g-hero { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; }
.g-hero > div { min-width: 0; }
.g-portrait { width: 120px; height: 120px; object-fit: cover; object-position: 50% 12%; background: var(--panel); border: 1px solid var(--line); }
@media (max-width: 520px) { .g-hero { grid-template-columns: 1fr; } .g-portrait { width: 96px; height: 96px; } }
.g-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.g-list li { display: grid; grid-template-columns: auto auto 1fr; gap: 6px 12px; align-items: center; padding: 10px 12px; background: var(--bg); }
.g-list li > * { min-width: 0; }
@media (max-width: 560px) { .g-list li { grid-template-columns: 1fr auto; } .g-list .g-how { grid-column: 1 / -1; } }
.g-op { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; margin-right: 6px; }
.g-op img { width: 34px; height: 34px; object-fit: contain; }
.g-op b { font: 800 19px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; color: var(--bone); }
.g-tag { justify-self: start; font: 500 11px/1 "Chakra Petch", monospace; text-transform: uppercase; letter-spacing: 0.08em; padding: 5px 6px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.g-tag.s3 { color: var(--red); border-color: rgba(240, 20, 74, 0.5); }
.g-tag.s2 { color: var(--warn); border-color: rgba(242, 193, 78, 0.4); }
.g-how { color: var(--text); }
.g-plain { padding-left: 20px; max-width: 72ch; }
.g-plain li { margin: 6px 0; }
.g-brief { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.g-brief li { font: 500 13px/1.3 "Chakra Petch", monospace; padding: 6px 8px; border: 1px solid var(--line); color: var(--bone); }
.g-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 18px 0 0; }
.g-plans figure { margin: 0; border: 1px solid var(--line); background: var(--panel); }
.g-plans img { display: block; width: 100%; }
.g-plans figcaption { padding: 6px 10px; font: 500 12px/1.3 "Chakra Petch", monospace; color: var(--muted); }
.g-grid, .g-maps, .g-sites { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.g-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.g-grid a, .g-maps a, .g-sites a { display: grid; gap: 4px; height: 100%; padding: 10px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; }
.g-grid a:hover, .g-maps a:hover, .g-sites a:hover { border-color: var(--red); }
.g-grid img { width: 48px; height: 48px; object-fit: contain; }
.g-grid b, .g-maps b, .g-sites b { font: 800 20px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; color: var(--bone); }
.g-grid small, .g-maps small, .g-sites small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.g-maps { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.g-maps img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.g-sites { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 16px; }
.g-mapimg { display: block; width: 100%; max-height: 300px; object-fit: cover; border: 1px solid var(--line); margin-bottom: 14px; }
.g-more { line-height: 2; }
.g-more a { margin-right: 10px; white-space: nowrap; }
.g-src { font-size: 14px; color: var(--muted); padding-left: 22px; overflow-wrap: anywhere; }
.g-src a { color: var(--muted); }
.g-note { color: var(--warn); }
.g-faq dt { margin-top: 14px; font-weight: 600; color: var(--bone); }
.g-faq dd { margin: 4px 0 0; max-width: 72ch; }
.g-cta { margin: 40px 0 0; padding: 18px; border: 1px solid var(--red); background: linear-gradient(90deg, rgba(240, 20, 74, 0.12), transparent 70%); }
.g-cta b { display: block; font: 800 26px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; color: var(--bone); }
.g-cta p { margin: 8px 0 14px; max-width: 60ch; }
.g-btn { display: inline-block; padding: 12px 18px; background: var(--red); color: #fff; text-decoration: none; font: 800 20px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: 0.04em; }
.g-btn:hover { background: #ff2a5e; color: #fff; }
.g-foot { border-top: 1px solid var(--line); padding: 18px max(16px, env(safe-area-inset-right, 0px)) 30px max(16px, env(safe-area-inset-left, 0px)); text-align: center; color: var(--muted); font-size: 13px; }
.g-foot a { color: var(--muted); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
