/* Shared styles for the inner pages (game page, privacy, terms, support).
   Colors and fonts match the homepage. */
:root {
  --navy: #131c3a;
  --cream: #fdf1d8;
  --amber: #f5a800;
  --link: #a54e10;
  --muted: #5b6381;
}
* { box-sizing: border-box; margin: 0; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--navy);
  font-family: "Trebuchet MS", "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}
a { color: var(--link); }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }

/* Header */
.site-header { border-bottom: 3px solid var(--navy); box-shadow: 0 4px 0 var(--amber); }
.bar {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}
.brand img { border-radius: 50%; border: 2px solid var(--navy); display: block; }
nav { display: flex; flex-wrap: wrap; gap: 0 1.1rem; }
nav a {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.55rem 0;
  border-bottom: 3px solid transparent;
}
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--amber); }

/* Content */
main {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 3.5rem;
}
h1 { font-size: clamp(1.8rem, 5vw, 2.3rem); line-height: 1.2; margin-bottom: 0.5rem; }
h2 { font-size: 1.15rem; line-height: 1.3; margin: 1.6rem 0 0.25rem; }
.doc > p:first-of-type { color: var(--muted); }
.doc > p:first-of-type b, .doc > p:first-of-type a { color: var(--navy); }
.doc > p:first-of-type a { color: var(--link); }
.card {
  margin-top: 1.75rem;
  padding: 1.4rem 1.25rem;
  background: #fffaf0;
  border: 3px solid var(--navy);
  border-radius: 18px;
  box-shadow: 0 5px 0 var(--amber);
}
.card > h2:first-child { margin-top: 0; }

/* Game page */
.game { text-align: center; }
.game-icon {
  width: 144px;
  height: 144px;
  border-radius: 32px;
  box-shadow: 0 6px 0 var(--amber);
  margin-bottom: 1.5rem;
}
.tagline { max-width: 30rem; margin: 0 auto; font-size: clamp(1.1rem, 2.5vw, 1.3rem); text-wrap: balance; }
.button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.8rem 1.75rem;
  background: var(--navy);
  color: var(--cream);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 999px;
  border: 3px solid var(--navy);
  box-shadow: 0 5px 0 var(--amber);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--amber); }
.button:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--amber); }
.game-links {
  list-style: none;
  padding: 0;
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
}
.game-links a { display: inline-block; padding: 0.5rem 0; font-weight: 700; }

/* Footer (same as homepage) */
footer {
  padding: 1.25rem;
  background: var(--navy);
  color: var(--cream);
  font-size: 0.9rem;
  text-align: center;
}
footer a { color: var(--amber); }
footer a:focus-visible { outline-color: var(--amber); }
.footer-links { margin-top: 0.35rem; }

@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
