/* =========================================================
 *  Tiny Hands Play — content pages (games/*, guides/*, about, teachers)
 *  Builds on css/base.css tokens. No JS required on these pages.
 * ========================================================= */

.pg-body {
  margin: 0;
  background: linear-gradient(180deg, #FFF8F1 0%, #F5F0FF 100%);
  color: var(--color-text);
  font-family: 'Nunito', system-ui, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.pg-body a { color: var(--color-primary); }
.pg-body h1, .pg-body h2, .pg-body h3 { font-family: 'Baloo 2', 'Quicksand', sans-serif; line-height: 1.15; color: #4B3F9E; }
.pg-body h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin: 0.2em 0 0.3em; }
.pg-body h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: 1.6em 0 0.5em; }
.pg-body h3 { font-size: 1.1rem; margin: 1.3em 0 0.4em; }
.pg-body p, .pg-body li { font-size: 1.05rem; }
.pg-body img.emoji-img { display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em; }

/* ---- Header ---- */
.pg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(124, 107, 191, 0.12);
}
.pg-logo {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  color: #4B3F9E;
}
.pg-nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.pg-nav a { text-decoration: none; font-weight: 700; font-size: 0.95rem; color: #5A4FA3; }
.pg-nav a:hover { text-decoration: underline; }

/* ---- Main column ---- */
.pg {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px clamp(16px, 4vw, 32px) 56px;
}
.pg-crumbs { font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 8px; }
.pg-crumbs a { color: var(--color-text-muted); }
.pg-lead { font-size: 1.15rem; color: #5A5A5A; }

/* ---- Game hero ---- */
.pg-hero {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 36px);
  padding: 24px clamp(16px, 3vw, 28px);
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 8px 30px rgba(124, 107, 191, 0.10);
  margin: 8px 0 12px;
}
.pg-hero-icon img { width: clamp(84px, 18vw, 140px); height: auto; }
.pg-hero-text h1 { margin: 6px 0 4px; }
.pg-tagline { margin: 0 0 14px; font-size: 1.15rem; color: #5A5A5A; }
.age-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
  background: var(--color-primary-light);
  color: var(--color-primary);
}
.pg-play {
  display: inline-block;
  background: #F4845F;
  color: #fff;
  text-decoration: none;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 12px 26px;
  border-radius: 50px;
  box-shadow: 0 6px 18px rgba(244, 132, 95, 0.35);
  transition: transform 0.15s ease;
}
.pg-play:hover { transform: translateY(-2px); }
.pg-facts { margin: 12px 0 0; font-size: 0.9rem; color: var(--color-text-muted); font-weight: 600; }
.pg-cta { text-align: center; margin: 32px 0 0; }

/* ---- Sections ---- */
.pg-section ul, .pg-section ol { padding-left: 1.3em; }
.pg-howto li { margin-bottom: 0.5em; }
.pg-faq dt { font-weight: 800; margin-top: 1em; color: #2D2D2D; }
.pg-faq dd { margin: 0.25em 0 0; }
.pg-guide-box {
  background: #fff;
  border-radius: 20px;
  padding: 16px 20px;
  box-shadow: 0 4px 18px rgba(124, 107, 191, 0.08);
  margin-top: 28px;
}
.pg-guide-box h2 { margin-top: 0.2em; }

/* ---- Related mini cards ---- */
.pg-minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pg-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 10px;
  background: #fff;
  border-radius: 20px;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease;
}
.pg-mini:hover { transform: translateY(-3px); }
.pg-mini-icon { width: 48px !important; height: 48px !important; }
.pg-mini-name { font-weight: 800; }
.pg-mini-age { font-size: 0.8rem; color: var(--color-text-muted); }

/* ---- Articles / guides ---- */
.pg-article article > p:first-of-type { font-size: 1.15rem; }
.pg-article-head { margin-bottom: 8px; }
.pg-meta { color: var(--color-text-muted); font-size: 0.9rem; margin-top: 0; }
.pg-article blockquote {
  margin: 1.2em 0;
  padding: 10px 18px;
  border-left: 4px solid var(--color-primary);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 0 14px 14px 0;
}
.pg-guide-list { list-style: none; padding: 0; margin: 0; }
.pg-guide-list li { padding: 12px 0; border-bottom: 1px solid rgba(124, 107, 191, 0.12); }
.pg-guide-list a { font-weight: 800; text-decoration: none; display: block; }
.pg-guide-list a:hover { text-decoration: underline; }
.pg-guide-list span { display: block; color: #5A5A5A; font-size: 0.95rem; }
.pg-guide-list-big li { padding: 16px 0; }
.pg-guide-list-big a { font-size: 1.15rem; }

/* ---- Footer ---- */
.pg-footer {
  background: #fff;
  border-top: 1px solid rgba(124, 107, 191, 0.12);
  padding: 32px clamp(16px, 4vw, 40px) 28px;
}
.pg-footer-cols {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.pg-footer h2 { font-size: 1rem; margin: 0 0 8px; color: #5A4FA3; }
.pg-links { display: flex; flex-direction: column; gap: 4px; }
.pg-links a { text-decoration: none; font-size: 0.95rem; }
.pg-links a:hover { text-decoration: underline; }
.pg-footer-note { max-width: 980px; margin: 24px auto 0; font-size: 0.85rem; color: var(--color-text-muted); }

@media (max-width: 560px) {
  .pg-hero { flex-direction: column; text-align: center; }
}

/* ---- Tables ---- */
.pg-table-wrap { overflow-x: auto; margin: 1em 0; }
.pg-body table { border-collapse: collapse; width: 100%; background: #fff; border-radius: 14px; overflow: hidden; font-size: 0.95rem; }
.pg-body th, .pg-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(124, 107, 191, 0.12); vertical-align: top; }
.pg-body th { background: var(--color-primary-light); color: #4B3F9E; font-weight: 800; }
