/* ==========================================================================
   Shared SEO / info block for every game page.
   Keeps the game in a fixed first screen (.gm-screen), lets the page scroll
   to reveal crawlable text below. Colors are explicit so this works no matter
   what each game's own :root defines.
   ========================================================================== */

html {
  height: auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scroll-behavior: smooth;
}
body {
  height: auto !important;
  min-height: 100dvh !important;
  overflow: visible !important;
}

/* the game keeps exactly the first viewport, unchanged */
.gm-screen {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

/* ===== the text block ===== */
.game-seo {
  flex: 0 0 auto;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(185,130,255,.10), transparent 60%),
    #0b0713;
  border-top: 2px solid rgba(185,130,255,.30);
  color: #c4b6e4;
  font-family: var(--font-body, "Manrope", system-ui, sans-serif);
  padding: clamp(30px,5vw,60px) clamp(16px,4vw,40px) clamp(40px,6vw,72px);
}
.game-seo-inner { max-width: 780px; margin-inline: auto; }

.gs-crumb {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 12px;
  letter-spacing: .04em;
  color: #7d6fa6;
  margin-bottom: 18px;
}
.gs-crumb a { color: #00e6c0; text-decoration: none; }
.gs-crumb a:hover { text-decoration: underline; }

.game-seo h2 {
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-weight: 800;
  font-size: clamp(24px,4vw,36px);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: #f6f0ff;
  margin-bottom: 14px;
  text-shadow: 0 0 22px rgba(185,130,255,.28);
}
.gs-intro { font-size: clamp(15px,1.7vw,17px); line-height: 1.7; color: #cdc0ea; }

.gs-cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(18px,3vw,34px);
  margin-top: clamp(24px,3.5vw,38px);
}
.game-seo h3 {
  font-family: var(--font-display, "Bricolage Grotesque", sans-serif);
  font-weight: 700;
  font-size: 18px;
  color: #f6f0ff;
  margin-bottom: 12px;
}
.gs-how ol { margin: 0; padding-left: 0; list-style: none; counter-reset: step; }
.gs-how li {
  position: relative;
  padding: 0 0 12px 40px;
  line-height: 1.6;
  font-size: 15px;
  counter-increment: step;
}
.gs-how li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -2px;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  font-family: var(--font-mono, monospace);
  font-size: 12px; font-weight: 700;
  color: #0b0713;
  background: #c4ff3d;
  border-radius: 6px;
  box-shadow: 0 0 12px rgba(196,255,61,.5);
}

.gs-side {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 18px 18px 20px;
  align-self: start;
}
.gs-controls { list-style: none; margin: 0 0 18px; padding: 0; }
.gs-controls li {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 14px; line-height: 1.5; padding: 5px 0;
}
.gs-controls kbd {
  flex: 0 0 auto;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: #00ffd5;
  background: rgba(0,255,213,.10);
  border: 1px solid rgba(0,255,213,.30);
  border-radius: 5px;
  padding: 3px 7px;
  white-space: nowrap;
}
.gs-tip {
  border-left: 3px solid #ffe54a;
  background: rgba(255,229,74,.07);
  border-radius: 0 8px 8px 0;
  padding: 10px 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #e8dcc0;
}
.gs-tip span {
  display: block;
  font-family: var(--font-mono, monospace);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ffe54a;
  margin-bottom: 4px;
}

.gs-faq-h { margin-top: clamp(28px,4vw,42px); }
.gs-faq details {
  border-bottom: 1px solid rgba(255,255,255,.09);
  padding: 4px 0;
}
.gs-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 34px 12px 0;
  position: relative;
  font-weight: 600;
  font-size: 15.5px;
  color: #eee6ff;
}
.gs-faq summary::-webkit-details-marker { display: none; }
.gs-faq summary::after {
  content: "+";
  position: absolute; right: 6px; top: 10px;
  font-family: var(--font-mono, monospace);
  font-size: 20px; color: #b982ff;
  transition: transform .2s ease;
}
.gs-faq details[open] summary::after { content: "–"; }
.gs-faq p { padding: 0 0 14px; font-size: 14.5px; line-height: 1.65; color: #b3a6d4; }

.gs-more { margin-top: clamp(26px,4vw,38px); font-size: 15px; }
.gs-more a { color: #ff2e93; font-weight: 600; }
.gs-more a:hover { text-decoration: underline; }

/* Let the desktop highscore panel scroll away with the game instead of
   floating over the info text (it is anchored via `top`, so absolute works). */
@media (min-width: 760px) {
  .hs { position: absolute !important; }
}

@media (max-width: 620px) {
  .gs-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
