/*
 * The text under each game: how to play, tips, questions and similar games.
 * site/scripts/seo-pages.mjs adds it to every built game page, before </main>,
 * and copies this file to dist/about-game.css.
 *
 * Plain text on the page's own background: no panels or boxes. It uses the
 * brand's type and colours (@coopmode/brand tokens.css, which every game page
 * loads), with fallbacks for a page that doesn't. The game's --accent tints
 * the thin rule above it and the link underlines.
 */

.about-game {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px max(16px, env(safe-area-inset-right, 0px)) 64px max(16px, env(safe-area-inset-left, 0px));
  color: var(--cm-text, #f4f6ff);
  font: 400 17px / 1.55 var(--cm-font, 'Outfit', ui-rounded, 'Trebuchet MS', system-ui, sans-serif);
  text-align: left;
}

/* A thin band of light in the game's colours, like the kit's section edges. */
.about-game::before {
  content: '';
  display: block;
  height: 2px;
  margin: 0 0 36px;
  background: linear-gradient(90deg, transparent, var(--accent, #7c5cff), var(--accent-2, #22e4ff), transparent);
  opacity: 0.45;
}

/* Every line keeps to a readable width, even on a wide screen. */
.about-game > * {
  max-width: 68ch;
}

.about-game h1,
.about-game h2 {
  font-family: var(--cm-display, 'Oxanium', 'Arial Black', system-ui, sans-serif);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.about-game h1 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.1;
}

.about-game h2 {
  margin: 36px 0 10px;
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.15;
}

.about-game h3 {
  margin: 20px 0 4px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.about-game p {
  margin: 0 0 10px;
}

.about-game h3 + p {
  color: var(--cm-dim, #a3a8c8);
}

.about-game ul {
  margin: 0 0 10px;
  padding-left: 1.2em;
}

.about-game li {
  margin: 0 0 6px;
}

.about-game li::marker {
  color: var(--accent-2, #22e4ff);
}

/* How to play: the action, then how to do it. */
.about-game__controls strong {
  font-weight: 700;
}

.about-game__controls strong::after {
  content: ':';
}

.about-game a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--accent-2, #22e4ff);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.about-game a:hover {
  color: var(--cm-cyan, #22e4ff);
}

.about-game a:focus-visible {
  outline: 2px solid var(--cm-cyan, #22e4ff);
  outline-offset: 3px;
  border-radius: 4px;
}

/* In full screen only the game shows (the kit's html.gp-pinned). */
html.gp-pinned .about-game {
  display: none;
}
