/* Shared tokens for the landing page and the game: cream paper, indigo ink. */
:root {
  --paper: #e8cda8;
  --paper-2: #f1dcbc;
  --paper-3: #dcbf97;
  --ink: #3d3a6b;
  --ink-2: #5d5a8a;
  --ink-soft: rgba(61, 58, 107, 0.55);
  --leaf: #2f6b3a;
  --leaf-2: #4d8a3a;
  --gold: #c98a1a;
  --ember: #c8402a;
  --aqi-good: #3f8f4f;
  --aqi-sat: #8aa83a;
  --aqi-mod: #c9a227;
  --aqi-poor: #d0782a;
  --aqi-vpoor: #c0443a;
  --aqi-severe: #7d2f4a;
  --head: "Pixelify Sans", ui-monospace, system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --notch: polygon(0 6px, 3px 6px, 3px 3px, 6px 3px, 6px 0, calc(100% - 6px) 0, calc(100% - 6px) 3px, calc(100% - 3px) 3px, calc(100% - 3px) 6px, 100% 6px, 100% calc(100% - 6px), calc(100% - 3px) calc(100% - 6px), calc(100% - 3px) calc(100% - 3px), calc(100% - 6px) calc(100% - 3px), calc(100% - 6px) 100%, 6px 100%, 6px calc(100% - 3px), 3px calc(100% - 3px), 3px calc(100% - 6px), 0 calc(100% - 6px));
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .pix { font-family: var(--head); font-weight: 600; letter-spacing: 0.01em; }
a { color: var(--ink); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the framed look: cream paper, double ink border, pixel corner notches */
.frame {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  box-shadow: inset 0 0 0 3px var(--paper-2), inset 0 0 0 5px var(--ink);
  clip-path: var(--notch);
}
.btn {
  appearance: none; cursor: pointer; border: 2px solid var(--ink); background: var(--paper-2); color: var(--ink);
  font-family: var(--head); font-weight: 600; font-size: 15px; padding: 8px 14px; clip-path: var(--notch);
  box-shadow: inset 0 0 0 2px var(--paper-2), inset 0 0 0 4px var(--ink); padding: 10px 16px;
  transition: transform 0.08s ease, background 0.15s ease;
}
.btn:hover { background: #f6e6cc; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn.primary { background: var(--ink); color: var(--paper-2); box-shadow: inset 0 0 0 2px var(--ink), inset 0 0 0 4px var(--paper-2); }
.btn.primary:hover { background: #4b4880; }
.btn.small { font-size: 13px; padding: 6px 10px; box-shadow: inset 0 0 0 2px var(--paper-2), inset 0 0 0 3px var(--ink); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 4px; font: 600 11px/1 var(--head); padding: 4px 7px; color: #fff; border-radius: 2px; text-transform: uppercase; letter-spacing: 0.04em; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; scroll-behavior: auto !important; } }
