/* The arcade's pages for grown-ups (age pages, skill pages, word lists, questions): the same warm paper and Fredoka
   as the games, calm and still. Written by web/kids-site/pages.mjs; kids.css comes first. Nothing here moves. */
:root { --paper: #fff3dc; --card: #fffdf7; --ink: #3b2a1a; --soft: #6e5640; --blue: #3f7fc4; --red: #c4504b; --green: #3fa34d; --green-d: #2a7a36; --line: #e2d4b8; color-scheme: light; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100dvh; background: var(--paper); color: var(--ink); font: 400 18px/1.55 'Fredoka', system-ui, sans-serif; }
/* Pages for reading: grown-ups may select and copy the words (a teacher copying a list). */
body.read, body.read * { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
a { color: #24598f; }
.top { display: flex; align-items: center; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 16px 6px; min-height: 64px; max-width: 860px; margin: 0 auto; }
.round { min-height: 48px; min-width: 48px; border: 3px solid var(--ink); border-radius: 16px; background: var(--card); box-shadow: 0 4px 0 var(--ink); display: inline-grid; place-items: center; padding: 6px; color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; }
.brand img { width: 40px; height: 40px; }
main { max-width: 860px; margin: 0 auto; padding: 0 16px 32px; display: grid; gap: 18px; }
main > * { min-width: 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 15px; color: var(--soft); }
.crumbs li + li::before { content: '›'; margin-right: 8px; }
.crumbs a { color: var(--soft); }
h1 { margin: 0; font-size: clamp(30px, 7vw, 42px); line-height: 1.15; }
h2 { margin: 0; font-size: 24px; line-height: 1.25; }
h3 { margin: 0; font-size: 20px; line-height: 1.3; }
p { margin: 0; }
.lede { font-size: 20px; color: var(--soft); }
.updated { font-size: 14px; color: var(--soft); }
section, .box { display: grid; gap: 10px; }
.box { background: var(--card); border: 3px solid var(--ink); border-radius: 20px; padding: 16px; }
.note { background: #fff8e6; border: 2px dashed #b98345; border-radius: 16px; padding: 12px 16px; }
ul.plain { margin: 0; padding-left: 22px; display: grid; gap: 6px; }

/* Big buttons: Play this list, Print this list. */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 8px 22px; border: 3px solid var(--ink); border-radius: 20px; background: var(--card); box-shadow: 0 5px 0 var(--ink); color: var(--ink); font: 700 21px/1.2 'Fredoka', system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.btn.go { background: var(--green); border-color: var(--green-d); box-shadow: 0 5px 0 var(--green-d); color: #fff; }
.btn svg { flex: none; }

/* Link cards: ages, skills, lists. */
.links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.links a { display: grid; gap: 2px; height: 100%; padding: 12px 14px; border: 3px solid var(--ink); border-radius: 18px; background: var(--card); box-shadow: 0 4px 0 var(--ink); color: var(--ink); text-decoration: none; }
.links b { font-size: 20px; }
.links span { font-size: 16px; color: var(--soft); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; }

/* Word cards: the picture and the word, vowels in red like the letter tiles. */
.words { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.words li { display: grid; justify-items: center; gap: 4px; padding: 10px 6px; background: var(--card); border: 2px solid var(--line); border-radius: 14px; text-align: center; }
.words img { width: 72px; height: 72px; }
.words .w, .sight .w { font: 600 22px/1.2 'Fredoka', system-ui, sans-serif; color: var(--blue); overflow-wrap: anywhere; }
.v { color: var(--red); }
.sight { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.sight li { display: grid; gap: 2px; padding: 8px 10px; background: var(--card); border: 2px solid var(--line); border-radius: 12px; }
.sight small { font-size: 13px; color: var(--soft); }
.sight li.out { border-style: dashed; }
.faq { display: grid; gap: 14px; }
.faq div { display: grid; gap: 4px; }

footer { max-width: 860px; margin: 0 auto; padding: 18px 16px calc(28px + env(safe-area-inset-bottom)); border-top: 2px solid var(--line); display: grid; gap: 10px; font-size: 15px; color: var(--soft); }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer a { color: var(--soft); }

/* Print this list: just the title and the words, black on white. */
@media print {
  body { background: #fff; font-size: 13pt; }
  .top, .crumbs, .actions, footer, .no-print { display: none !important; }
  main { max-width: none; padding: 0; gap: 10px; }
  .box, .words li, .sight li { background: #fff; border-color: #bbb; box-shadow: none; }
  .words { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .words li { break-inside: avoid; padding: 4px; }
  .words img { width: 56px; height: 56px; }
  .words .w, .sight .w { color: #000; }
  .v { color: #000; text-decoration: underline; }
  a { color: #000; text-decoration: none; }
}
