/* GENERATED by gen-brain-game.mjs from products/xml/games/family/axill-reading-g2-L6.xml (+ jaxillmind-brand skin). DO NOT HAND-EDIT — edit the node, re-run. style.css */
:root {
  --bg: #faf6ec; --bg2: #f2ebda; --panel2: #ffffff; --edge: #26456f;
  --text: #223148; --dim: #566079; --block-face: #ffcf5a; --block-shadow: #d19a3e; --hairline: #e4ddcb; --soft: #ffffff;
  --head: #2f5aa6; --win: #3f7d20; --lose: #c0392b;
  --acc-a: #8FA35C; --acc-b: #E06A45; --acc-c: #E5A43B; --acc-d: #7E93A8;
  --level-acc: #8FA35C;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-block: ui-monospace, 'SFMono-Regular', 'Courier New', monospace;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; font-family: var(--font-body);
       background: radial-gradient(circle at 50% 0%, var(--panel2), var(--bg) 55%, var(--bg2)); color: var(--text); padding: 16px; }
main { text-align: center; max-width: 480px; width: 100%; position: relative; }
.home-btn { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 11px 20px; min-height: 44px;
        font-family: var(--font-block); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em;
        color: var(--edge); background: var(--block-face); border: 4px solid var(--edge); border-radius: 12px;
        box-shadow: 3px 3px 0 var(--edge); text-decoration: none; }
.home-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--edge); }
.brand { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px 0 2px; }
.emblem { width: 54px; height: 54px; flex: none; image-rendering: pixelated; filter: drop-shadow(3px 3px 0 var(--edge)); }
.brand-text { text-align: left; }
.kicker { font-family: var(--font-block); font-weight: 700; font-size: .58rem; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
.worked { background: var(--panel, #fff); border: 3px solid var(--edge, #26456f); border-radius: 10px;
  padding: 12px 16px; margin: 0 auto 14px; width: min(92vw, 540px); text-align: left; }
.worked[hidden] { display: none; }
.worked-title { font-family: var(--font-block); font-size: .95rem; text-transform: uppercase; letter-spacing: .04em;
  margin: 0 0 8px; color: var(--head, #26456f); }
.worked-steps { margin: 0; padding-left: 1.2em; }
.worked-steps li { font-size: 1rem; line-height: 1.45; margin: 0 0 5px; }
.next-btn { position: static; inset: auto; translate: none; width: auto; height: auto;
  padding: 11px 26px; margin: 12px auto 2px; display: block; }
.lesson { background: var(--bg2, #f2ebda); border: 3px solid var(--edge, #26456f); border-radius: 10px;
  padding: 14px 16px; margin: 0 0 14px; text-align: left; }
.lesson-title { font-family: var(--font-block); font-size: 1rem; text-transform: uppercase; letter-spacing: .04em;
  margin: 0 0 8px; color: var(--head, #26456f); }
.lesson-idea { font-size: 1.06rem; font-weight: 700; margin: 0 0 6px; line-height: 1.4; }
.lesson-why { font-size: .98rem; margin: 0 0 6px; line-height: 1.45; }
.lesson-example { font-size: .98rem; margin: 0; line-height: 1.45; }
.wordmark { font-family: var(--font-block); font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
            font-size: clamp(1.3rem, 6.5vw, 2rem); line-height: 1; margin: 3px 0 0; color: var(--head);
            text-shadow: 2px 0 var(--edge), -2px 0 var(--edge), 0 2px var(--edge), 0 -2px var(--edge),
                         3px 3px 0 var(--block-shadow), 4px 4px 0 var(--edge); }
.game-line { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.gf-badge { font-family: var(--font-block); font-weight: 800; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase;
            color: var(--soft); background: var(--edge); padding: 4px 9px; border-radius: 6px; box-shadow: 2px 2px 0 var(--level-acc); }
.gf-measures { font-size: .62rem; color: var(--dim); margin-top: 5px; line-height: 1.3; }
.bloom-badge { font-family: var(--font-block); font-weight: 700; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase;
               color: var(--soft); background: var(--edge); padding: 3px 7px; border-radius: 5px; box-shadow: 2px 2px 0 var(--level-acc); }
.bloom-kid { font-size: .68rem; color: var(--dim); }
/* Bloom ladder — the higher-order rungs, from the node's <bloom-ladder>. A game may START at recall
   but must SHOW the child where it goes: analyze, evaluate, create. */
.ladder { margin: 14px auto 6px; max-width: 560px; text-align: left; border: 2px solid var(--block-edge); border-radius: 12px; padding: 12px 14px; background: rgba(255,255,255,.06); }
.ladder-title { font-size: .82rem; margin: 0 0 8px; letter-spacing: .02em; }
.ladder-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rung { display: flex; gap: 8px; align-items: baseline; font-size: .72rem; line-height: 1.35; }
/* --block-edge and --ink are NOT tokens this skin defines (it has --hairline/--edge/--text) — the chip had a
   dead background and inherited colour in every game until 2026-07-24. Keep these on declared tokens only. */
.rung-tag { flex: 0 0 auto; font-weight: 700; border-radius: 6px; padding: 2px 7px; background: var(--hairline); color: var(--text); white-space: nowrap; }
.rung.higher .rung-tag { background: var(--edge); color: var(--soft); box-shadow: 2px 2px 0 #8FA35C; }
.rung-ask { color: var(--dim); }
.ladder-note { margin: 9px 0 0; font-size: .66rem; color: var(--dim); }
.tagline { color: var(--dim); margin: 10px 0 16px; font-size: .95rem; }
.hud { display: flex; justify-content: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.stat { color: var(--text); font-family: var(--font-block); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
        background: var(--panel2); border: 3px solid var(--edge); border-radius: 8px; padding: 6px 10px; box-shadow: 3px 3px 0 var(--edge); }
.stat strong { color: var(--head); font-size: 1.05rem; margin-left: 4px; }
.start-btn { border: 5px solid var(--edge); background: var(--block-face); color: var(--edge);
             font-family: var(--font-block); font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
             font-size: 1.05rem; cursor: pointer; border-radius: 14px; box-shadow: 4px 4px 0 var(--edge); }
.start-btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--edge); }
#status { min-height: 2.4em; color: var(--text); font-weight: 600; margin-top: 8px; }
#status.lost { color: var(--lose); } #status.won { color: var(--win); }

.locked-note { border: 4px solid var(--edge); border-radius: 16px; background: var(--panel2); padding: 16px; margin: 0 auto 16px; max-width: min(84vw,420px); }
.prompt { font-family: var(--font-block); font-weight: 700; font-size: clamp(1rem, 5vw, 1.35rem); color: var(--text); min-height: 2.6em; margin: 4px 0 14px; padding: 0 6px; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(84vw, 360px); margin: 0 auto 16px; }
.opt { font-size: clamp(2.4rem, 12vw, 3.4rem); min-height: 96px; line-height: 1; border: 5px solid var(--edge); border-radius: 16px; cursor: pointer; box-shadow: 5px 5px 0 var(--edge); transition: transform .07s, box-shadow .07s, opacity .1s; }
/* TEXT ANSWERS. Sized by the longest label in the item — set on #options at render time by setOptScale().
   One column for sentence-length answers so lines are readable instead of two cramped columns. */
.options.text-mid .opt { font-size: clamp(1.15rem, 5vw, 1.6rem); line-height: 1.2; min-height: 76px; padding: 10px 12px; }
.options.text-long { grid-template-columns: 1fr; width: min(92vw, 540px); }
.options.text-long .opt { font-size: clamp(.98rem, 3.8vw, 1.18rem); line-height: 1.34; min-height: 0;
  padding: 13px 15px; text-align: left; }
.opt { overflow-wrap: anywhere; hyphens: auto; }
.opt-a { background: var(--acc-a); } .opt-b { background: var(--acc-b); } .opt-c { background: var(--acc-c); } .opt-d { background: var(--acc-d); }
.matrix { display: grid; grid-template-columns: repeat(var(--mx-cols, 3), 1fr); gap: 8px; width: min(84vw, 340px); margin: 0 auto 16px; padding: 12px; background: var(--panel, #fff); border: 5px solid var(--edge); border-radius: 16px; box-shadow: 5px 5px 0 var(--edge); }
.matrix[hidden] { display: none; }
.mx-cell { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; }
.mx-cell svg { width: 100%; height: auto; max-width: 88px; }
.opt-mx { display: flex; align-items: center; justify-content: center; padding: 6px; background: var(--panel, #fff); }
.opt-mx svg { width: 100%; height: auto; max-width: 84px; }
.opt:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--edge); }
.opt.right { outline: 5px solid var(--win); outline-offset: 1px; }
.opt.wrong { outline: 5px solid var(--lose); outline-offset: 1px; opacity: .55; }
.start-btn.big { position: static; inset: auto; translate: none; width: auto; height: auto; padding: 14px 34px; margin: 4px auto 0; display: block; }
.hearts { letter-spacing: 2px; }
.timer { width: min(84vw, 360px); height: 10px; margin: 0 auto 12px; border: 3px solid var(--edge); border-radius: 6px; background: var(--soft); overflow: hidden; }
.timer i { display: block; height: 100%; width: 100%; background: var(--block-face); transform-origin: left center; }
.level-up { animation: lvlpop .5s ease; }
@keyframes lvlpop { 0% { transform: scale(1); } 45% { transform: scale(1.5); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .level-up { animation: none; } .timer i { transition: none; } }
.ttcf { text-align: left; margin-top: 18px; font-size: .72rem; color: var(--dim); }
.ttcf summary { cursor: pointer; font-size: .8rem; color: var(--dim); }
.ttcf table { border-collapse: collapse; margin-top: 8px; width: 100%; }
.ttcf th, .ttcf td { border: 1px solid var(--hairline); padding: 4px 6px; vertical-align: top; text-align: left; color: var(--dim); }
.ttcf .prov { color: var(--dim); }
:focus-visible { outline: 3px solid var(--head); outline-offset: 2px; }
/* license gate — shared skin, blocky, readable */
.license-gate { position: fixed; inset: 0; background: radial-gradient(circle at 50% 0%, var(--panel2), var(--bg) 55%, var(--bg2)); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 999; }
.license-gate.unlocked { display: none; }
/* player picker — reuses the .license-gate modal shell (same visual language); only the chip is new. */
.who-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.who { font-family: var(--font-block); font-weight: 800; font-size: .95rem; color: var(--head); background: var(--panel);
       border: 3px solid var(--edge); border-radius: 10px; padding: 9px 20px; min-height: 44px; cursor: pointer; }
.who.on { color: var(--edge); background: var(--block-face); }
/* LOCAL TARGET: players are created on the device, so the picker carries an add-a-name form. No family
   name from any node is compiled into the public build. */
.who-add { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.who-add input { font-family: var(--font-body); font-size: 1rem; padding: 10px 12px; min-width: 0; width: min(56vw, 190px);
  border: 4px solid var(--edge); border-radius: 12px; background: var(--panel2); color: var(--text); }
.who-add input::placeholder { color: var(--dim); }
.who-add .start-btn { position: static; inset: auto; translate: none; width: auto; height: auto; padding: 10px 20px; font-size: 1rem; }
.who-note { font-family: var(--font-block); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); margin-top: 12px; }
.who-chip { position: fixed; top: 8px; right: 8px; z-index: 900; font-family: var(--font-block); font-weight: 800;
            font-size: .72rem; color: var(--head); background: var(--panel); border: 2px solid var(--edge);
            border-radius: 999px; padding: 4px 10px; min-height: 28px; cursor: pointer; }

.gate-card { background: var(--panel2); border: 5px solid var(--edge); border-radius: 16px; padding: 26px 22px; max-width: 360px; width: 100%; text-align: center; box-shadow: 6px 6px 0 var(--edge); }
.gate-card .emblem { width: 56px; height: 56px; margin: 0 auto 6px; }
.gate-card h2 { font-family: var(--font-block); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--head); margin: 0 0 4px; }
.gate-card p { color: var(--dim); margin: 6px 0; }
.gate-card input { width: 100%; padding: 12px 14px; margin: 12px 0; border: 3px solid var(--edge); border-radius: 10px; font: 16px var(--font-body); min-height: 44px; color: var(--edge); background: var(--soft); }
.gate-card .start-btn { width: 100%; padding: 12px; }
.gate-msg { color: var(--lose); font-weight: 700; font-size: 14px; min-height: 20px; margin: 6px 0 0; }
