/* Shared look for the reading pages (parents, guides, about, privacy):
   the game's sky and colors, with plain readable text for grown-ups. */
:root {
  --ink: #2d3436; --muted: #5f6b6d; --line: #e3e6ea; --purple: #6c5ce7; --deep: #4c1d95;
  --sky1: #8ec5ff; --sky2: #c9b6ff; --sky3: #ffd6e7;
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); line-height: 1.65;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, var(--sky1) 0%, var(--sky2) 60%, var(--sky3) 100%) fixed;
}
a { color: var(--purple); }
.site-nav {
  max-width: 820px; margin: 0 auto; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 8px 14px;
  align-items: center; justify-content: space-between;
}
.site-nav .brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; color: #fff; text-decoration: none; text-shadow: 0 2px 0 rgba(0,0,0,.18); }
.site-nav .brand img { width: 40px; height: 40px; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.site-nav li a {
  display: block; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--deep);
  text-decoration: none; font-weight: 700; font-size: .92rem; box-shadow: 0 3px 0 rgba(0,0,0,.1);
}
.site-nav li a[aria-current="page"] { background: var(--purple); color: #fff; }
main.page {
  max-width: 820px; margin: 0 auto 24px; background: #fff; border-radius: 22px; padding: 24px 22px 28px;
  box-shadow: 0 6px 0 rgba(0,0,0,.12);
}
main.page h1 { margin: 0 0 6px; font-size: 2rem; line-height: 1.2; color: var(--deep); }
main.page h2 { margin: 30px 0 8px; font-size: 1.35rem; color: var(--deep); }
main.page h3 { margin: 20px 0 6px; font-size: 1.1rem; }
.lede { font-size: 1.12rem; color: var(--muted); margin-top: 0; }
.play-btn {
  display: inline-block; margin: 6px 0 4px; padding: 12px 22px; border-radius: 999px; background: #00b894; color: #fff;
  font-weight: 800; text-decoration: none; box-shadow: 0 4px 0 #00896d;
}
.game-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 12px 0; }
.game-card h3 { margin-top: 0; }
.game-card ul { margin: 6px 0 0; padding-left: 1.2em; }
.tip { background: #fff8e1; border-left: 5px solid #fdcb6e; border-radius: 10px; padding: 10px 14px; margin: 14px 0; }
.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 12px 0; }
.cards a { display: block; border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-decoration: none; color: var(--ink); }
.cards a b { display: block; color: var(--deep); font-size: 1.05rem; margin-bottom: 4px; }
.site-footer { max-width: 820px; margin: 0 auto; padding: 4px 16px 28px; text-align: center; color: #fff; font-size: .9rem; text-shadow: 0 1px 0 rgba(0,0,0,.25); }
.site-footer a { color: #fff; }

/* Worksheet and game cards, and game screenshots (games/, worksheets/). */
.ws-grid, .game-grid { display: grid; gap: 14px; margin: 12px 0 8px; }
.ws-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.game-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.ws-card, .game-tile { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 10px; text-decoration: none; color: inherit; background: #fff; }
.ws-card img, .game-tile img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid #eef0f2; }
.ws-card b, .game-tile b { display: block; margin-top: 8px; color: var(--deep); line-height: 1.25; }
.ws-card span, .game-tile span { font-size: .85rem; color: var(--muted); }
.game-shot { float: right; width: min(40%, 230px); height: auto; margin: 4px 0 14px 18px; border-radius: 22px; border: 6px solid #1e1b4b; }
@media (max-width: 560px) { .game-shot { float: none; display: block; width: 62%; margin: 6px auto 14px; } }
main.page h2 { clear: both; }
