/*
 * Shared skin for the static pages (how-to-play, about, privacy) — the same
 * forest world as the game: ground gradient, glass article panel, Fredoka
 * display voice, meaning colours untouched. Fonts are the repo's own copies;
 * nothing here comes from a CDN.
 */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/fredoka-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/fredoka-latin-700-normal.woff2') format('woff2');
}

:root {
  --ground-1: #14402e;
  --ground-2: #0d2a1f;
  --ground-3: #091d16;
  --bone: #eaf3ee;
  --soft: #c9d8d0;
  --muted: #9fb4a8;
  --line: rgb(234 243 238 / 16%);
  --accent: #51d88a;
  --bonus: #7ff0ae;
  --sel: #ffe36b;
  --font-display: 'Fredoka', 'Avenir Next', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Avenir, 'Avenir Next', system-ui, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--soft);
  line-height: 1.7;
  background: var(--ground-2);
}
/* Painted once on a fixed layer — `background-attachment: fixed` repaints
   the gradients on every scroll frame on mobile. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55vmax 55vmax at -10% -10%, rgb(81 216 138 / 10%), transparent 65%),
    radial-gradient(44vmax 44vmax at 105% 30%, rgb(127 240 174 / 6%), transparent 65%),
    linear-gradient(170deg, var(--ground-1) 0%, var(--ground-2) 55%, var(--ground-3) 100%);
}
main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
}

/* ---------- masthead ---------- */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--bone);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lockup .mark {
  display: block;
  filter: drop-shadow(0 0 12px rgb(81 216 138 / 30%));
}
main > header {
  border: 0;
  padding: 1.25rem 0 1.5rem;
  color: var(--bone);
}
.eyebrow {
  margin: 1.4rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
h1 {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--bone);
  text-shadow: 0 0 30px rgb(81 216 138 / 25%);
}
.intro {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 44ch;
}

/* ---------- article: the glass panel ---------- */
article {
  margin-top: 0.5rem;
  padding: clamp(1.25rem, 5vw, 2.5rem);
  background: rgb(13 42 31 / 82%);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 58px rgb(0 0 0 / 35%);
}
h2 {
  margin: 2rem 0 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--bone);
}
h2:first-child {
  margin-top: 0;
}
p,
li {
  margin-top: 0.4rem;
}
ol {
  padding-left: 1.3rem;
}
a {
  color: var(--bonus);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgb(127 240 174 / 45%);
}
a:hover {
  text-decoration-color: var(--bonus);
}
strong {
  color: var(--bone);
}

/* Mode cards inside how-to-play. */
.modes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.8rem;
  padding: 0;
  list-style: none;
}
.modes li {
  margin: 0;
  padding: 1rem;
  background: rgb(9 29 22 / 60%);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.modes strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

/* The one solid button on the page. */
.play {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #10291d;
  background: var(--accent);
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.09s, box-shadow 0.09s;
}
.play:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 32px rgb(81 216 138 / 35%);
  text-decoration: none;
}

footer {
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
footer a {
  color: var(--muted);
  font-weight: 500;
}
footer a:hover {
  color: var(--bone);
}

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