/* pages.css — shared look for the information pages
   (about.html, privacy.html, copyright.html, support.html; challenge.html
   uses the banner too).
   Same card language as the shop (.shop-hero) and My Dashboard (.dash-hero):
   a tinted banner, then content on solid cards — never text straight on the
   page scene (css/bg-scene.css). Text colours mix muted/accent tones with
   --btn-text so they stay readable on dark themes. Pages scroll inside
   .page-scroll (css/nav.css) under a fixed nav. */

.info-page {
  box-sizing: border-box;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 20px 64px;
  color: var(--btn-text);
}

/* ── Banner ── */
.info-hero {
  /* .info-hero-copy on the left, the Blip scene (.info-hero-art) on the right;
     stacked on narrow screens */
  display: flex;
  align-items: stretch;
  gap: 12px 20px;
  padding: 30px 32px;
  margin-bottom: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--info-acc, var(--purple)) 14%, var(--surface)), color-mix(in srgb, var(--info-acc, var(--purple)) 4%, var(--surface)) 70%);
  border: 1.5px solid color-mix(in srgb, var(--info-acc, var(--purple)) 26%, var(--toolbar-border, var(--btn-border)));
  box-shadow: 0 8px 26px rgba(0,0,0,.14);
}
.info-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--info-acc, var(--purple)) 14%, var(--surface));
  color: color-mix(in srgb, var(--info-acc, var(--purple)) 80%, var(--btn-text));
  font-size: 12.5px;
  font-weight: 700;
}
.info-kicker svg { width: 14px; height: 14px; }
.info-hero h1 { margin: 0; font-size: clamp(28px, 3.8vw, 38px); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; color: var(--btn-text); }
.info-lead { margin: 0; max-width: 620px; font-size: 16px; line-height: 1.65; color: color-mix(in srgb, var(--text-muted) 50%, var(--btn-text)); }
.info-lead a { color: color-mix(in srgb, var(--purple) 70%, var(--btn-text)); font-weight: 700; }

/* Small facts row under the lead (e.g. "Hosted in Australia") */
.info-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.info-fact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--btn-border);
  font-size: 13px;
  font-weight: 700;
  color: var(--btn-text);
}
.info-fact svg { width: 15px; height: 15px; flex: none; color: #16A34A; }
.info-updated { font-size: 13px; font-weight: 600; color: var(--text-muted); }

/* Banner Blip scene: still Blips on a soft floor, drawn by js/info-hero.js.
   Each page dresses its own (About: teacher, Support: headset + builder,
   Privacy: safe in a bubble, Copyright: artist in a beret). */
.info-hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex: 1 1 auto; min-width: 0; }
.info-hero-art {
  position: relative;
  flex: 0 0 270px;
  align-self: flex-end;
  height: 200px;
  margin-bottom: -30px;   /* stand the Blips on the banner's bottom edge */
  background: radial-gradient(ellipse 80% 22% at 50% 100%, color-mix(in srgb, var(--info-acc, var(--purple)) 18%, var(--surface)) 0 60%, transparent 61%);
}
.info-hero-art canvas { position: absolute; display: block; }
.info-bubble {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--info-acc, var(--purple)) 35%, transparent);
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.7), color-mix(in srgb, var(--info-acc, var(--purple)) 10%, transparent) 60%);
}
@media (max-width: 760px) {
  .info-hero { flex-direction: column; }
  .info-hero-art { flex-basis: auto; width: 100%; max-width: 270px; height: 160px; align-self: center; margin-bottom: -22px; }
}

/* "On this page" chips */
.info-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1.5px solid var(--btn-border);
  border-radius: 16px;
}
.info-toc-label { width: 100%; margin: 0 0 4px 4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.info-toc a {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2, var(--surface));
  border: 1.5px solid var(--btn-border);
  color: var(--btn-text);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color .12s;
}
.info-toc a:hover { border-color: var(--purple); }

/* ── Content cards ── */
.info-card {
  scroll-margin-top: 20px;
  padding: 24px 28px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1.5px solid var(--btn-border);
  border-radius: 18px;
}
.info-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--btn-text);
}
.info-card h3 { margin: 18px 0 6px; font-size: 16px; font-weight: 800; color: var(--btn-text); }
.info-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--ic, var(--purple)) 14%, var(--surface));
  color: color-mix(in srgb, var(--ic, var(--purple)) 85%, var(--btn-text));
}
.info-icon svg { width: 19px; height: 19px; }
.info-card p,
.info-card li { font-size: 15px; line-height: 1.7; color: color-mix(in srgb, var(--text-muted) 55%, var(--btn-text)); }
.info-card p { margin: 0 0 12px; }
.info-card p:last-child { margin-bottom: 0; }
.info-card ul { margin: 0 0 12px; padding-left: 20px; }
.info-card li { margin-bottom: 8px; }
.info-card li::marker { color: var(--purple); }
.info-card strong { color: var(--btn-text); }
.info-card a { color: color-mix(in srgb, var(--purple) 70%, var(--btn-text)); font-weight: 700; }
.info-card code { font-size: 13px; padding: 1px 6px; border-radius: 6px; background: var(--surface-2, var(--bg)); border: 1px solid var(--btn-border); color: var(--btn-text); }

.info-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.info-grid-2 > .info-card { margin-bottom: 0; }

/* Item grid inside a card (games list, thank-you list) */
.info-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.info-items > li {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2, var(--surface));
  border: 1.5px solid var(--btn-border);
  font-size: 14px;
  line-height: 1.55;
}
.info-items > li strong { display: block; margin-bottom: 3px; font-size: 15px; }
.info-items.is-people { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.info-items.is-people > li strong { display: inline; }
.role-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 9px;
  border-radius: 20px;
  vertical-align: middle;
  background: var(--purple-light);
  color: var(--purple);
  font-size: 11.5px;
  font-weight: 800;
}
.info-person-note { display: block; margin-top: 4px; font-size: 13px; }

/* Contact / call-to-action card */
.info-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.info-cta p { margin: 0; }
.info-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  background: var(--purple);
  color: #fff !important;
  font-size: 14.5px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.info-btn:hover { background: var(--purple-dark); }
.info-btn svg { width: 16px; height: 16px; }

@media (max-width: 700px) {
  .info-page { padding: 24px 16px 48px 52px; }
  .info-hero { padding: 22px 20px; }
  .info-card { padding: 20px 18px; }
  .info-grid-2 { grid-template-columns: 1fr; }
}
