/* Text content: the home page sections, the guide under each game's setup screen,
   the site pages (guides, about, privacy, terms, contact, 404) and the footer.
   Every rule is scoped to .info, .site-footer or .page, so the game screens are not touched. */

/* Site pages use a wider column than the game screens. */
main.page { max-width: 760px; }
main.page h1 { font-size: clamp(28px, 7vw, 40px); line-height: 1.15; }

.info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  line-height: 1.6;
  font-size: 16px;
}
/* Under a game's setup: a clear break between the app and the guide. */
.info.game-guide { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }

.info h2 { font-size: 22px; margin: 18px 0 0; letter-spacing: -0.3px; }
.info h2:first-child { margin-top: 0; }
.info h3 {
  font-size: 17px;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  margin: 10px 0 0;
}
.info p, .info li, .info td { color: #d3d6f3; }
.info p { margin: 0; }
.info ol, .info ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.info a { color: var(--accent); }
.info a.btn { color: #1b1b1b; text-decoration: none; display: inline-block; }
.info strong, .info b { color: var(--text); }
.info .lead { font-size: 18px; color: var(--text); }
.info code { background: var(--panel); padding: 1px 5px; border-radius: 6px; font-size: 14px; }

/* Quick facts: players, time, phones */
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0 !important; flex-direction: row !important; }
.facts li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14px;
  color: var(--text);
}

/* Tables scroll sideways on a narrow phone instead of widening the page. */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
.info table { border-collapse: collapse; width: 100%; font-size: 15px; }
.info th, .info td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.info th { color: var(--muted); font-weight: 600; background: var(--panel); white-space: nowrap; }
.info tr:last-child td { border-bottom: 0; }

/* FAQ: each question opens on its own. */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--panel); border-radius: 12px; padding: 12px 14px; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--text); }
.faq details p { margin-top: 8px; }

/* Cards that link to other games or guides */
.link-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; list-style: none; padding: 0 !important; }
.link-cards a {
  display: block;
  height: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text);
  text-decoration: none;
}
.link-cards a b { display: block; margin-bottom: 2px; }
.link-cards a span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.link-cards a:hover { border-color: var(--accent); }

.note {
  background: var(--panel);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 12px 14px;
}
.placeholder { background: rgba(255, 207, 63, 0.12); border: 1px dashed var(--accent); border-radius: 12px; padding: 12px 14px; }

.byline { color: var(--muted); font-size: 14px; margin: 0; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* Footer on every page (inside the setup screen on game pages, so it hides during play) */
.site-footer {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.site-footer a { color: var(--muted); text-decoration: none; padding: 2px 0; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer p { margin: 0; }
.site-footer .brand { color: var(--text); font-weight: 800; }
