/* =========================================================
   FIGHTDLE — "About this game" + page heading
   Every page gets a short explainer under the game: what it is, how to
   play, a few questions and links to the other games. It's written for
   first-time visitors and search engines, so it sits below everything
   players actually use, and the questions fold away.
   ========================================================= */

/* The page's one h1 wraps the logo. display: contents takes the h1's own
   box out of layout, so the logo sits exactly where it did; the h1 is
   still there for search engines, read through the logo's alt text. */
.logo-heading { display: contents; }

/* The footer heading used to be an h1. As an h2 it keeps the h1's look. */
.footer .footer-title { font-size: 2em; margin: .67em 0; }

/* ---------- the explainer ---------- */
.about-game {
  box-sizing: border-box;
  /* Some pages put this inside a container that sizes itself to its
     widest child. inline-size containment means the paragraphs here
     never widen it (it measured the game at 653px before, 720px after),
     and the section just takes the width it's given. */
  contain: inline-size;
  width: min(720px, calc(100% - 32px));
  margin: 32px auto 8px;
  padding: 22px 22px 14px;
  background: rgba(20, 20, 20, .9);
  border: 1px solid rgba(196, 162, 106, .45);
  border-radius: 14px;
  color: #d6d6d6;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}
/* The games outline all headings and paragraphs in black; long-form
   text reads better without it. */
.about-game, .about-game * { text-shadow: none; }

.about-game h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 5.5vw, 28px);
  line-height: 1.15;
  color: #fff;
  text-align: left;
}
.about-game h3 {
  margin: 18px 0 6px;
  font-size: 19px;
  color: var(--gold-bright, #d9b77a);
  text-align: left;
}
.about-game p,
.about-game li {
  margin: 0 0 10px;
  font-size: 16px;
  color: #d6d6d6;
  text-align: left;
}
.about-game li { margin-bottom: 6px; }
.about-game ol,
.about-game ul { margin: 0 0 6px; padding-left: 22px; }
.about-game a { color: var(--gold-bright, #d9b77a); }

/* Questions fold away so the section stays short */
.about-game details { border-top: 1px solid rgba(255, 255, 255, .1); padding: 8px 0; }
.about-game details:last-of-type { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.about-game summary {
  cursor: pointer;
  font-weight: 700;
  color: #f2f2f2;
}
.about-game details p { margin: 8px 0 4px; }

/* The other games, as plain links (crawlable, unlike the icon bar) */
.about-game .about-games {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 6px;
  padding: 0;
  list-style: none;
}
.about-game .about-games li { margin: 0; }
.about-games a {
  display: inline-block;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  color: #eee;
  font-size: 15px;
  text-decoration: none;
}
@media (hover: hover) {
  .about-games a:hover { border-color: var(--gold, #c4a26a); color: var(--gold-bright, #d9b77a); }
}
