/* Guides, legal pages and 404: the same identity as the game's menus (tokens from css/style.css, docs/design/visual-identity.md). */
@font-face { font-family:"Nunito"; font-style:normal; font-weight:600 900; font-display:swap;
  src:url(../fonts/nunito-latin-ext.woff2) format("woff2");
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family:"Nunito"; font-style:normal; font-weight:600 900; font-display:swap;
  src:url(../fonts/nunito-latin.woff2) format("woff2");
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --surface:#221a27; --surface-2:#2d2333; --surface-3:#3b2e43; --sunk:#120d15;
  --line:rgba(255,236,220,.09); --ink:#fbf1e7; --ink-2:#c7b6c2;
  --accent:#ffc23d; --accent-dk:#d4861a; --on-accent:#3b2205; --coral:#ff6b5e; --sky:#5ab8f5;
  --blob:30px 36px 32px 38px / 36px 30px 38px 32px;
}
* { box-sizing:border-box; }
body { margin:0; min-height:100vh; padding:24px 16px 40px; font-family:"Nunito",system-ui,sans-serif; font-weight:600;
  background:linear-gradient(#1f1b18,#121010) fixed; color:var(--ink); line-height:1.6; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:28px; padding:28px 28px 32px; max-width:760px; margin:0 auto;
  box-shadow:0 24px 60px rgba(0,0,0,.35); }

/* Logo: one blob color per letter, as on the game's home screen */
.brand { display:inline-flex; font-size:42px; font-weight:900; letter-spacing:-.03em; line-height:1; text-decoration:none;
  margin-bottom:10px; filter:drop-shadow(0 4px 0 rgba(0,0,0,.45)); }
.brand span:nth-child(1) { color:hsl(4,85%,60%); } .brand span:nth-child(2) { color:hsl(28,95%,57%); }
.brand span:nth-child(3) { color:hsl(50,95%,56%); } .brand span:nth-child(4) { color:hsl(82,78%,52%); }
.brand span:nth-child(5) { color:hsl(140,65%,50%); } .brand span:nth-child(6) { color:hsl(176,72%,47%); }
.brand span:nth-child(7) { color:hsl(204,85%,57%); }

h1 { font-size:30px; font-weight:900; line-height:1.15; margin:8px 0 4px; }
h2 { font-size:21px; font-weight:900; line-height:1.25; margin:32px 0 8px; }
h3 { font-size:16px; font-weight:900; margin:20px 0 4px; }
p { margin:0 0 12px; }
.updated { margin:0 0 18px; color:var(--ink-2); font-size:14px; }
a { color:var(--accent); font-weight:800; text-underline-offset:3px; }
a:hover { color:#ffd677; }
a:focus-visible { outline:3px solid var(--sky); outline-offset:2px; border-radius:6px; }
b, strong { color:var(--ink); font-weight:900; }
kbd { display:inline-block; min-width:1.6em; padding:1px 7px; border-radius:8px; background:var(--surface-3); box-shadow:0 2px 0 var(--sunk);
  font:inherit; font-size:.85em; font-weight:900; text-align:center; }

/* Page switcher: same pills as the game's segmented tabs */
nav { display:flex; flex-wrap:wrap; gap:6px; margin:6px 0 10px; padding:4px; border-radius:16px; background:var(--sunk); width:fit-content; max-width:100%; }
nav a { text-decoration:none; padding:7px 14px; border-radius:12px; color:var(--ink-2); font-size:14px; }
nav a:hover { color:var(--ink); background:var(--surface-2); }
nav a[aria-current="page"] { background:var(--accent); color:var(--on-accent); }

ul, ol { padding-inline-start:22px; margin:0 0 12px; }
li { margin:5px 0; }
li::marker { color:var(--accent); font-weight:900; }
figure { margin:20px auto; max-width:360px; text-align:center; }
figure img { display:block; width:100%; height:auto; border-radius:20px; border:1px solid var(--line); box-shadow:0 12px 30px rgba(0,0,0,.35); }
figcaption { margin-top:10px; font-size:14px; color:var(--ink-2); }
.box { background:var(--surface-2); border-radius:16px; padding:12px 16px; margin:10px 0; }
.box p { margin:4px 0; }
.box a { color:var(--ink); }
table { width:100%; border-collapse:collapse; margin:8px 0; font-size:14px; }
th, td { text-align:start; vertical-align:top; padding:9px 10px; border-bottom:1px solid var(--surface-3); }
th { font-weight:900; color:var(--ink); background:var(--surface-2); }
th:first-child { border-start-start-radius:10px; } th:last-child { border-start-end-radius:10px; }
.table-wrap { overflow-x:auto; }
mark.todo { background:var(--accent); color:var(--on-accent); border-radius:6px; padding:0 5px; font-weight:800; }

/* "Play" button: the game's squishy play blob */
.back { display:inline-flex; align-items:center; margin:24px 0 14px; padding:12px 26px; font-size:19px; border-radius:var(--blob);
  background:var(--accent); color:var(--on-accent); text-decoration:none; font-weight:900; box-shadow:0 5px 0 var(--accent-dk); }
.back:hover { color:var(--on-accent); filter:brightness(1.05); }
.back:active { transform:translateY(3px); box-shadow:0 2px 0 var(--accent-dk); }

@media (max-width:480px) {
  body { padding:12px 10px 28px; }
  .card { padding:22px 18px 26px; border-radius:22px; }
  .brand { font-size:36px; }
  h1 { font-size:26px; }
}
