/* The short "About <game>" block near each page's footer (and the hub's intro + FAQ under the games).
   It is there for people who scroll down and for search engines: a few plain sentences, three questions that open
   on a tap, and links to similar games. Its FAQ matches the FAQPage JSON-LD in the page's <head> word for word.
   Colours and typeface follow the game (currentColor, inherit), so it sits on any game's palette in light or dark
   without loading another font; sizes, spacing and shape come from the site's tokens. Every rule is scoped to
   .tg-about so no game's own styles are touched. .tg-plain switches to the site's Jost where a game's own face is
   a display or pixel font that is hard to read in a paragraph. */
@import url("tokens.css");

.tg-about {
  box-sizing: border-box; width: 100%; max-width: 640px; margin: var(--tg-s6) auto var(--tg-s4); padding: 0 var(--tg-s4);
  font-family: inherit; font-size: var(--tg-t-sm); line-height: 1.55; text-align: left; color: inherit;
  letter-spacing: normal; text-transform: none;
}
.tg-about *, .tg-about *::before, .tg-about *::after { box-sizing: border-box; }
.tg-about .tg-about-h {
  margin: 0 0 var(--tg-s2); font-family: inherit; font-size: var(--tg-t-lg); font-weight: 600; line-height: 1.3;
  letter-spacing: normal; text-transform: none; color: inherit;
}
.tg-about .tg-about-p { margin: 0 0 var(--tg-s3); opacity: .86; }
.tg-about .tg-faq {
  margin: 0; padding: 0; border: 0; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent);
  background: none; border-radius: 0;
}
.tg-about .tg-faq:last-of-type { border-bottom: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.tg-about .tg-faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--tg-s3); min-height: var(--tg-tap);
  padding: var(--tg-s2) 0; cursor: pointer; list-style: none; font-weight: 500; color: inherit;
  font-family: inherit; font-size: inherit; line-height: 1.4; letter-spacing: normal; text-transform: none;
  background: none; border: 0; touch-action: manipulation;
}
.tg-about .tg-faq summary::-webkit-details-marker { display: none; }
.tg-about .tg-faq summary::after {
  content: "+"; flex: none; width: 1.25em; text-align: center; font-size: var(--tg-t-lg); line-height: 1; opacity: .6;
}
.tg-about .tg-faq[open] summary::after { content: "\2212"; }
.tg-about .tg-faq summary:focus-visible { outline: 2px solid var(--tg-focus); outline-offset: 2px; border-radius: var(--tg-r-xs); }
.tg-about .tg-faq p { margin: 0 0 var(--tg-s3); opacity: .86; }
.tg-about .tg-more { margin: var(--tg-s4) 0 0; }
.tg-about .tg-more-h {
  margin: 0 0 var(--tg-s2); font-family: inherit; font-size: var(--tg-t-xs); font-weight: 600; line-height: 1.3;
  letter-spacing: .06em; text-transform: uppercase; opacity: .7; color: inherit;
}
.tg-about .tg-more-list { display: flex; flex-wrap: wrap; gap: var(--tg-s2); margin: 0; padding: 0; list-style: none; }
.tg-about .tg-more-list li { margin: 0; padding: 0; }
.tg-about .tg-more-list a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--tg-s4); border-radius: var(--tg-r-pill);
  border: 1px solid color-mix(in srgb, currentColor 26%, transparent); color: inherit; text-decoration: none;
  font-weight: 500; touch-action: manipulation;
}
.tg-about .tg-more-list a:focus-visible { outline: 2px solid var(--tg-focus); outline-offset: 2px; }
@media (hover: hover) {
  .tg-about .tg-more-list a:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
  .tg-about .tg-faq summary:hover { opacity: .8; }
}

/* the hub's version sits on the site's own palette */
.tg-about.tg-hub {
  max-width: var(--maxw, 1200px); margin-top: 0; margin-bottom: var(--tg-s6); padding: 0 var(--gutter, var(--tg-s4));
  color: var(--tg-ink);
}
.tg-about.tg-hub > * { max-width: 760px; }
.tg-about.tg-hub .tg-about-p { color: var(--tg-ink-2); opacity: 1; }
.tg-about.tg-hub .tg-faq p { color: var(--tg-ink-2); opacity: 1; }
.tg-about.tg-plain, .tg-about.tg-plain .tg-about-h, .tg-about.tg-plain .tg-more-h { font-family: var(--tg-font); }
.tg-about.tg-hub, .tg-about.tg-hub .tg-about-h, .tg-about.tg-hub .tg-more-h { font-family: var(--tg-font); }

/* 404: a search box (it sends ?q= to the hub's search) above the popular games */
.tg-about.tg-404 { margin-top: var(--tg-s5); padding: 0; }
.tg-about .tg-find { margin: 0 0 var(--tg-s5); }
.tg-about .tg-find label { display: block; margin: 0 0 var(--tg-s2); font-weight: 500; }
.tg-about .tg-find-row { display: flex; gap: var(--tg-s2); }
.tg-about .tg-find input {
  flex: 1; min-width: 0; min-height: var(--tg-tap); padding: 0 var(--tg-s4); border-radius: var(--tg-r-pill);
  border: 1px solid var(--tg-line-strong); background: var(--tg-surface); color: var(--tg-ink); font: inherit; font-size: 16px;
}
.tg-about .tg-find button {
  min-height: var(--tg-tap); padding: 0 var(--tg-s5); border: 0; border-radius: var(--tg-r-pill); cursor: pointer;
  background: var(--tg-accent); color: var(--tg-on-accent); font: inherit; font-weight: 600; touch-action: manipulation;
}
.tg-about .tg-find input:focus-visible, .tg-about .tg-find button:focus-visible { outline: 2px solid var(--tg-focus); outline-offset: 2px; }
.tg-about.tg-404 .tg-about-p { margin-top: var(--tg-s5); }
.tg-about.tg-404 .tg-about-p a { color: var(--tg-accent); font-weight: 600; }
