/* css/site.css — shared chrome for every non-game page (tutorial, privacy,
   terms, verify, guides). Keeps header/footer navigation consistent and
   crawlable. Loaded after a page's own stylesheet so it can override it. */

:root {
  --site-bg: #0c0f08;
  --site-panel: #10180c;
  --site-text: #f2eeca;
  --site-dim: #9db18c;
  --site-line: #4a6b3c;
  --site-accent: #57d46a;
  --site-link: #7ee69a;
}

/* ---------- screen-reader-only text (headings kept for crawlers/a11y) ---- */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- header ---------- */
.site-header {
  background: var(--site-bg);
  border-bottom: 2px solid var(--site-line);
}

.site-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 14px 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.site-brand {
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--site-accent);
  text-decoration: none;
}

.site-brand:hover,
.site-brand:focus {
  color: var(--site-link);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-left: auto;
}

.site-nav a {
  color: var(--site-dim);
  text-decoration: none;
  font-size: 0.85rem;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  color: var(--site-link);
  text-decoration: underline;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--site-bg);
  border-top: 2px solid var(--site-line);
  margin-top: 3rem;
}

.site-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 1.5rem 32px;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--site-dim);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 10px;
}

.site-footer a {
  color: var(--site-link);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  text-decoration: underline;
}

.site-footer p {
  margin: 0 0 6px;
}

@media (max-width: 560px) {
  .site-header-inner {
    padding: 12px 1rem;
  }
  .site-nav {
    margin-left: 0;
    width: 100%;
  }
}

/* Interactive chrome must not trigger double-tap-to-zoom (Android Chrome /
   iOS Safari) while still allowing normal page panning. Kept at the lowest
   possible specificity so any component rule that genuinely needs
   `touch-action: none` (the game canvas, drag surfaces) still wins. */
a,
button {
  touch-action: manipulation;
}
