/* The grown-ups' website: home, about, for parents, contact, privacy, 404.
   An ordinary scrolling, readable web page — none of the games' kiosk rules (common.css) apply here. */
:root {
  --cream: #fff8e1; --sun: #fff3c4; --ink: #263238; --muted: #546e7a; --line: #eadfb8;
  --blue: #4fc3f7; --blue-d: #0277bd; --pink: #ec407a; --purple: #8e24aa; --orange: #ffb74d; --green: #43a047; --green-d: #2e7d32;
  --radius: 18px; --wrap: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.i18n-wait body { visibility: hidden; }          /* see shared/i18n-early.js: no flash of English on a Spanish page */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--cream); color: var(--ink); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-d); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue-d); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, .brand { font-family: "Comic Sans MS", "Chalkboard SE", "Baloo 2", system-ui, sans-serif; line-height: 1.2; }
h1 { font-size: clamp(30px, 5.2vw, 50px); margin: 0 0 .4em; }
h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 .5em; }
h3 { font-size: 21px; margin: 0 0 .3em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---- header ---- */
.top { background: var(--sun); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand .name { display: flex; flex-direction: column; line-height: 1.05; }
.brand small { font-size: 13px; font-weight: 700; color: var(--purple); letter-spacing: .02em; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 4px 2px; border-bottom: 3px solid transparent; }
.nav a:hover { border-color: var(--orange); }
.nav a[aria-current="page"] { border-color: var(--blue); }
.langs { display: flex; gap: 4px; }
.langs button { font: inherit; font-size: 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 3px 12px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: .5em; font: inherit; font-weight: 800; text-decoration: none; border: none; cursor: pointer;
  border-radius: 999px; padding: 12px 26px; background: var(--green); color: #fff; box-shadow: 0 5px 0 var(--green-d); }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--green-d); }
.btn.light { background: #fff; color: var(--ink); box-shadow: 0 5px 0 var(--line); }
.btn.small { padding: 8px 18px; font-size: 15px; box-shadow: 0 3px 0 var(--green-d); }
.top .btn.small { margin-left: 4px; }

/* ---- sections ---- */
main { display: block; flex: 1; }
section { padding: 56px 0; }
section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead { font-size: 20px; color: var(--muted); max-width: 46em; }
.hero { padding: 48px 0 56px; background: var(--sun); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.shot { border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 30px #0002; background: #fff; border: 6px solid #fff; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 20px 0 0; list-style: none; }
.facts li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 15px; font-weight: 600; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } }

/* ---- game cards ---- */
.games { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
@media (min-width: 700px) { .games { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .games { grid-template-columns: repeat(3, 1fr); } }   /* five games: 3 + 2 */
.game { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 6px 18px #0001; display: flex; flex-direction: column;
  border-top: 8px solid var(--c, var(--blue)); }
.game img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: #e3f2fd; }
.game .body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.game .meta { font-size: 14px; color: var(--muted); font-weight: 600; }
.game p { margin: 0; }
.game .learn { font-size: 15px; color: var(--muted); }
.game .btn { align-self: flex-start; margin-top: auto; }
.game .body > :last-child { margin-top: 12px; }
.game.fishing { --c: var(--blue); } .game.seek { --c: var(--pink); } .game.drums { --c: var(--purple); } .game.sorter { --c: var(--orange); } .game.counting { --c: var(--green); }

/* ---- feature grid ---- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 22px; margin-top: 26px; }
.feature { background: var(--cream); border-radius: var(--radius); padding: 20px; }
section.alt .feature { background: var(--cream); }
.feature .ic { font-size: 34px; line-height: 1; display: block; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); }

/* ---- prose pages ---- */
.page { padding: 44px 0 64px; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose li { margin: .3em 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 15px; background: #fff; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--sun); }
.note { background: #fff; border-left: 6px solid var(--orange); border-radius: 8px; padding: 12px 16px; color: var(--muted); }
.callout { background: #fff; border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 6px 18px #0001; }
.mail { font-size: 22px; font-weight: 800; word-break: break-all; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; list-style: none; margin: 1em 0 0; }
.kbd { display: inline-block; background: #fff; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; padding: 0 6px; }

/* ---- footer ---- */
.foot { background: var(--ink); color: #cfd8dc; padding: 32px 0; font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot a { color: #fff; }
.foot p { margin: 0; }
.foot .who { margin-right: auto; }
.foot .brandline { color: #90a4ae; font-size: 14px; }

/* ---- 404 ---- */
.lost { text-align: center; padding: 80px 0; }
.lost .big { font-size: 90px; line-height: 1; }
.lost .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 26px; }
