/* ═══════ GOOD GAMES — shared styles for game pages ═══════ */

/* ── "Before you play" screen ── */
.gg-primer {
  max-width: 680px;
  margin-inline: auto;
  padding-bottom: 96px; /* room for the sticky start bar */
}

.gg-primer-head { text-align: center; margin-bottom: var(--space-6); }

.gg-primer-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gg-accent);
  margin-bottom: var(--space-2);
}

.gg-primer-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.gg-primer-head p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 460px;
  margin-inline: auto;
}

.gg-primer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.gg-primer-story { border-bottom: 1px solid var(--color-border); }
.gg-primer-story:last-child { border-bottom: none; }

.gg-primer-row {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
}

.gg-primer-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-base);
  min-width: 1.4rem;
  line-height: 1.35;
}

.gg-primer-main { flex: 1; min-width: 0; }

.gg-primer-headline {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text);
  text-decoration: none;
}

.gg-primer-headline::after { content: ' \2197'; color: var(--color-text-light); font-weight: 600; }
.gg-primer-headline:hover { text-decoration: underline; }

.gg-primer-facts { margin-top: var(--space-2); }

.gg-primer-facts summary {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--gg-accent);
  cursor: pointer;
  list-style: none;
  padding: 2px 0;
}

.gg-primer-facts summary::-webkit-details-marker { display: none; }
.gg-primer-facts summary::after { content: ' \25BE'; }
.gg-primer-facts[open] summary::after { content: ' \25B4'; }

.gg-primer-facts ul {
  margin: var(--space-2) 0 0;
  padding-left: 1.1rem;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.gg-primer-facts li { margin-bottom: 4px; }

.gg-primer-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  justify-content: center;
}

.gg-primer-start {
  width: 100%;
  max-width: 420px;
  padding: 14px var(--space-6);
  border: none;
  border-radius: var(--radius-full);
  background: var(--gg-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  cursor: pointer;
}

/* ── "Read the story" link shown during games ── */
.gg-story-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}
