/* Generated by tools/manual/make_manual_reader.py - do not edit. */
:root { --bg: #fffaf2; --surface: #ffffff; --ink: #33291f; --ink-soft: #5c4d40; --tint: #fde9c8; --tile: #fff3df; --tile-press: #f6dcb2; --line: #d9c4a5; --accent: #8a3b12; --banner: #fff1b8; --focus: #1f5fbf; --kids: #e7f1fb; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --bg: #1d1915; --surface: #26211c; --ink: #f4ece2; --ink-soft: #d7cbbd; --tint: #3a2f22; --tile: #2f2820; --tile-press: #42372b; --line: #55483a; --accent: #f2b48a; --banner: #4a3d14; --focus: #8db8ff; --kids: #1f2a35; } }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.5 system-ui, -apple-system,
        "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; overflow-wrap: anywhere; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* front page */
header { padding: 16px 0 8px; }
h1 { font-size: 24px; line-height: 1.2; margin: 0; }
.version { font-size: 16px; color: var(--ink-soft); margin: 4px 0 0; }
.banner { background: var(--banner); border-radius: 10px; padding: 10px 12px; margin: 10px 0 0; font-size: 16px; }
.ownership { background: var(--tint); border-radius: 10px; padding: 10px 12px; margin: 10px 0 4px; }
.group { margin: 16px 0 8px; }
.group > h2 { font-size: 22px; margin: 0 0 4px; }
.group.kids { background: var(--kids); border-radius: 14px; padding: 12px 12px 4px; margin-left: -4px; margin-right: -4px; }
.group .ribbon { font-size: 15px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; margin: 0 0 8px; }
.world { font-size: 16px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; margin: 10px 0 6px; }   /* 10 px: keeps every adults' tile above a 360x640 fold */
.tiles { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 680px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tiles a { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 8px; border-radius: 12px;
            background: var(--tile); color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.2;
            font-weight: 600; border: 1px solid var(--line); overflow-wrap: normal; }
.tiles a:active { background: var(--tile-press); }
.tile-icon { width: 40px; height: 40px; object-fit: contain; flex: none; color: var(--ink); }
.paper { border-top: 1px solid var(--line); margin-top: 16px; padding: 16px 0; }
.button { display: block; text-align: center; min-height: 48px; padding: 12px; border-radius: 12px;
           border: 2px solid var(--accent); color: var(--accent); background: var(--surface);
           font-weight: 700; text-decoration: none; }
.button:active { transform: translateY(1px); background: var(--tile-press); }
.paper a.text { display: inline-block; padding: 12px 0; }

/* game pages */
.back { display: inline-block; padding: 12px 0; font-weight: 700; font-size: 18px; text-decoration: none; }
.back:active { text-decoration: underline; }
.page-head { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.page-head h1 { font-size: 26px; }
.page-head .tile-icon { width: 48px; height: 48px; }
.kids-badge { display: inline-block; background: var(--kids); color: var(--accent); font-size: 14px; font-weight: 700;
               text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; margin: 0 0 8px; }
main { padding-bottom: 8px; }
h3 { font-size: 20px; margin: 18px 0 8px; }
p, ul, ol { margin: 0 0 12px; max-width: 65ch; }
/* counters, not ::marker: a step that holds a .card keeps its number at the top, not the card's baseline */
ol.steps { list-style: none; counter-reset: step; padding-left: 1.6em; }
ol.steps > li { counter-increment: step; position: relative; margin-bottom: 8px; }
ol.steps > li::before { content: counter(step) "."; position: absolute; left: -1.6em; top: 0; font-weight: 700; }
ol.steps img { width: 32px; height: auto; vertical-align: middle; }
.lead { font-weight: 700; font-size: 20px; }
.small { font-size: 14px; color: var(--ink-soft); }
/* the transcribed kids' pages carry their own "Solo para niños" ribbon; on the web the page's
   .kids-badge says it once, in the page's language */
.kids-only { display: none; }
figure.fig { margin: 12px 0; text-align: center; }
figure.fig img { display: block; width: 100%; height: auto; background: #fff; border-radius: 8px; }
figure.fig-small img { width: 40%; margin: 0 auto; background: none; }
figure.maze img { border: 1px solid var(--line); }
figcaption { font-size: 18px; font-weight: 700; margin-top: 4px; }
.card { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line);
         border-radius: 12px; padding: 10px; margin: 0 0 10px; }
.card-img { width: 96px; height: auto; max-height: 112px; object-fit: contain; flex: none; }
svg.card-img { width: 72px; height: 72px; }
.card-body { flex: 1; min-width: 0; }
.card-body > :last-child { margin-bottom: 0; }
.card-body img { max-width: 72px; max-height: 72px; object-fit: contain; }
.callout { background: var(--tint); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.callout h3 { margin-top: 0; }
.pin { display: flex; justify-content: space-between; gap: 6px; margin: 8px 0 16px; }
.pin img { width: 23%; max-width: 72px; height: auto; }
.cols { display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); gap: 4px; margin: 12px 0; }
.cols img { width: 100%; height: auto; background: #fff; border-radius: 4px; }
.cols b { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--surface);
           border-radius: 4px; font-size: 16px; }
table.pairs, table.grid { width: 100%; border-collapse: separate; table-layout: fixed; margin: 8px 0; }
table.pairs { border-spacing: 6px; }
table.pairs th { font-size: 15px; text-align: center; padding: 6px; background: var(--tint); border-radius: 8px; }
table.pairs td { background: #fff; border-radius: 10px; text-align: center; padding: 8px; height: 96px; }
table.pairs td.alt { background: #fff6e8; }
table.pairs img { max-height: 80px; width: auto; max-width: 100%; }
table.grid { border-collapse: collapse; }
table.grid th, table.grid td { padding: 3px; text-align: center; vertical-align: middle; }
table.grid td { background: #fff; border: 2px solid var(--ink); }
table.grid tbody th { border-right: 2px solid var(--ink); }
table.grid img { max-width: 100%; max-height: 52px; width: auto; }
figure.chart img { background: none; }
.end { border-top: 1px solid var(--line); margin-top: 8px; }
footer { font-size: 14px; color: var(--ink-soft); padding: 8px 0 32px; }

@media print {
  :root { --bg: #fffaf2; --surface: #ffffff; --ink: #33291f; --ink-soft: #5c4d40; --tint: #fde9c8; --tile: #fff3df; --tile-press: #f6dcb2; --line: #d9c4a5; --accent: #8a3b12; --banner: #fff1b8; --focus: #1f5fbf; --kids: #e7f1fb; }
  body { background: #fff; font-size: 11pt; }
  .ownership, .back, .end, .paper, .banner { display: none !important; }
  figure.maze { break-before: page; break-inside: avoid; }
  figure.maze img { max-height: 22cm; width: auto; margin: 0 auto; }
  .card, figure, table { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
