.game-cue{font-size:1rem;font-weight:700;color:#355566;margin:14px 0 0}.game-count{font-weight:800;font-size:1.2rem;margin:12px}.paint-palette{display:flex;justify-content:center;gap:14px;margin-bottom:18px}.brush{background:white;color:var(--ink);font-size:36px;border:3px solid transparent;border-radius:50%;width:64px;height:64px;padding:0;box-shadow:0 4px 0 #dae4e7}.brush.picked{border-color:#33576c;transform:translateY(-3px)}.workshop-sheet{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding:16px;background:#f9fbff;border:2px dashed #c7dbe3;border-radius:18px}.paint-stamp{font-family:inherit;font-size:clamp(45px,8vw,76px);font-weight:800;line-height:1.1;min-height:95px;border:0;border-radius:12px;background:white;color:#748a97;box-shadow:0 3px 0 #d9e3e8;touch-action:manipulation}.paint-stamp.coloured{color:var(--ink);background:#fff4de;opacity:1;transform:rotate(-4deg)}.pattern-1 .paint-stamp:nth-child(even){border-radius:50%}.pattern-2 .paint-stamp{border:3px solid #e4dcf6}.hinted{outline:4px solid #ffd153!important;outline-offset:2px}.basket-targets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin:0 0 24px}.letter-basket{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:142px;border:4px solid #d8a65e;border-radius:15px 15px 32px 32px;background:linear-gradient(#fff9e9,#f2d7a4);padding:10px;color:#77532b;box-shadow:0 5px 0 #c79049}.letter-basket>.basket-label .phonetic-target{margin:0;gap:2px}.basket-label .phonetic-cell{width:34px;height:40px;font-size:27px;border-radius:8px}.basket-counter{background:white;border-radius:20px;padding:3px 14px;font-size:18px;font-weight:800}.letter-basket>span:last-child{font-size:23px;line-height:16px;letter-spacing:4px}.letter-scatter{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;background:#e8f5ef;border-radius:24px;padding:24px 14px}.scatter-token{border:3px solid white;border-radius:19px;padding:10px 2px;min-height:72px;background:#fff;color:#365b76;box-shadow:0 5px 0 #c5ded4;font-family:inherit;font-size:clamp(25px,6vw,40px);font-weight:800;transform:rotate(var(--tilt));touch-action:manipulation}.scatter-token.picked{border-color:#efad32;background:#fff1bd;transform:translateY(-6px);box-shadow:0 7px 0 #dbab4d}.scatter-token.sorted{color:#3b936f;background:#d9eee3;opacity:1;box-shadow:none;transform:none}.station-sign{margin-bottom:20px;border:2px solid #f0c554;border-radius:14px;background:#fff7dc;padding:8px}.station-sign .phonetic-target{margin:0}.train-track{display:flex;justify-content:center;align-items:center;gap:7px;border-bottom:8px double #7e8e93;padding-bottom:12px;margin:15px 0 28px}.locomotive{font-size:52px;flex-shrink:0}.train-wagon{font-family:inherit;background:#d5edf7;color:#27536d;border:3px solid #a9cddd;border-bottom:10px solid #819ba6;border-radius:14px 14px 9px 9px;min-height:80px;min-width:64px;padding:6px;font-size:35px;font-weight:800}.train-wagon.picked{border-color:#f0b137;background:#fff2bf}.train-wagon.needs-fix{border-color:#e17e70}.cargo-depot{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-bottom:22px}.cargo{background:white;border:2px solid #c4dbe4;border-radius:14px;padding:9px;min-height:64px;min-width:64px}.cargo .phonetic-target{margin:0}.cargo .phonetic-cell{width:32px;height:40px;font-size:25px}.train-arrived{color:#267658;font-size:22px;font-weight:800;margin-top:12px}.storybook-game{background:#fffaf0;border:2px solid #eadbbd;border-radius:8px 24px 24px 8px;box-shadow:-7px 0 #dfceb0;overflow:hidden;padding:14px}.book-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#846139;font-size:16px}.book-heading>span:first-child{font-size:27px}.book-heading>span:last-child{border:1px solid #dbc6a2;border-radius:50%;padding:4px 9px}.story-instruction{font-size:22px;font-weight:800;color:#35566c;min-height:52px;margin:15px 0}.book-scene{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:12px 0;align-items:start}.story-object{padding:4px;border:3px solid transparent;border-radius:15px;background:#fff;min-width:0;transition:border-color .15s;touch-action:manipulation}.story-object .picture-card{width:100%;height:auto;aspect-ratio:.86;margin:0;border-radius:10px;box-shadow:none}.story-object.discovered{border-color:#dfa844;box-shadow:0 4px 0 #e7d3a6}.story-object:disabled{opacity:1}.story-caption{display:block;padding:5px 0;font-size:25px;font-weight:800}.story-caption .phonetic-target{margin:0}.story-caption .phonetic-cell{width:21px;height:30px;font-size:21px;gap:1px;border-radius:5px}.story-dialogue{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;padding:12px 0}.story-word{background:white;border:2px solid #dbcaab;border-radius:12px;padding:8px;min-height:60px}.story-word .phonetic-target{margin:0}.story-word .phonetic-cell{width:24px;height:34px;font-size:23px}.story-steps{display:flex;justify-content:center;gap:14px;padding-top:15px}.story-steps span{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:#eadfca;color:#796b57;font-weight:800}.story-steps .done{background:#d3eddf;color:#337151}.unique-lesson .instruction h2{font-size:clamp(24px,5vw,32px)}@media(max-width:370px){.workshop-sheet{padding:10px;gap:8px}.paint-stamp{min-height:80px}.letter-scatter{gap:12px;padding:19px 10px}.basket-targets{gap:10px}.letter-basket{padding:8px}.basket-label .phonetic-cell{width:27px;height:36px;font-size:24px}.locomotive{font-size:39px}.train-wagon{min-width:53px;font-size:29px}.storybook-game{padding:10px}.book-scene{gap:4px}.story-object{padding:2px}.story-caption .phonetic-cell{width:18px;height:28px;font-size:18px}.story-word{padding:6px}.story-word .phonetic-cell{width:21px}}
.story-gap{display:flex;flex-basis:100%;justify-content:center;align-items:center;gap:7px;margin-bottom:9px}.gap-token{background:#fff0bd;border:2px dashed #bc9743;border-radius:8px;min-width:46px;height:42px;display:grid;place-items:center;font-size:25px;font-weight:800}.pause-button{border:0;border-radius:12px;background:#eaf2f4;color:#416777;min-width:44px;min-height:44px;font-size:20px}.lesson-head{gap:8px}.lesson-head .progress{min-width:25px}
.tracing-game{display:grid;grid-template-columns:minmax(0,1fr) 58px;gap:10px;align-items:center;width:100%;margin-top:18px}.trace-board{display:block;width:100%;aspect-ratio:300/290;border-radius:20px;background:#748896;touch-action:none;user-select:none;-webkit-user-select:none;box-shadow:inset 0 0 0 3px #d0dce3}.trace-guide{fill:none;stroke:#c5d0d6;stroke-width:24;stroke-linecap:round}.trace-guide.current{stroke:#e1e9ed}.trace-border{fill:none;stroke:#314856;stroke-width:18;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.trace-ink{fill:none;stroke-width:13;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.trace-direction{fill:none;stroke:#257d93;stroke-width:4;pointer-events:none}.trace-start{fill:#fff;stroke:#287c90;stroke-width:3;pointer-events:none}.trace-number{font-size:17px;font-weight:800;text-anchor:middle;fill:#246376;pointer-events:none}.trace-palette{display:flex;flex-direction:column;gap:12px}.trace-color{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;width:58px;min-height:72px;border:2px solid #d7e0e4;border-radius:14px;background:white;padding:6px 3px;color:#273e4a;font-size:15px;font-family:inherit}.trace-color em{font-style:normal;font-weight:900;color:#c72556;background:#ffe2eb;border-radius:3px}.trace-color.picked{border-color:#247b93;box-shadow:0 0 0 2px #b4dce7}.ink-swatch{width:28px;height:28px;border-radius:50%;background:var(--ink);border:2px solid #7f8d94}.trace-cue{font-size:17px;font-weight:700;color:#365f71;margin-top:16px}.keys>span{display:flex;flex-direction:column;align-items:center;gap:1px}.key-label{font-size:10px;line-height:1.1;white-space:nowrap;font-weight:700}.flag-label{display:block;font-size:9px;line-height:1.1}.compact-score{white-space:nowrap}@media(max-width:370px){.tracing-game{grid-template-columns:minmax(0,1fr) 50px;gap:6px}.trace-color{width:50px;font-size:14px;min-height:68px}.key-label{font-size:9px}.compact-score .flag-label{font-size:8px}}
.story-goal{display:flex;align-items:center;justify-content:center;gap:12px;border:2px dashed #ddc794;border-radius:14px;padding:7px;background:#fff;margin:0 auto 10px;max-width:200px}.story-goal .picture-card{width:56px;height:58px;margin:0;border-radius:8px;box-shadow:none}.story-goal .phonetic-target{margin:0}.story-goal .phonetic-cell{width:25px;height:34px;font-size:24px}.story-goal>span{font-size:24px;color:#796a51}
.key-label{font-size:12px}.flag-label{font-size:11px}.compact-journey{grid-template-columns:minmax(0,1fr) 65px}.map-title{flex-wrap:wrap}.map-title .counter{font-size:14px}@media(max-width:370px){.stats .pill.keys{padding-left:7px;padding-right:7px}.key-label{font-size:11px}.compact-score .flag-label{font-size:10px}}
@media(max-width:370px){.stats{display:grid;grid-template-columns:64px 82px minmax(0,1fr);gap:6px;width:100%}.stats .pill{padding:6px;min-width:0;box-sizing:border-box}.stats .pill.keys{gap:3px;font-size:18px;padding:6px 4px}.key-label{white-space:normal;max-width:43px;font-size:11px;line-height:1.05}.music-button{min-width:0;width:100%;padding:4px 6px;box-sizing:border-box}.music-button>span:first-child{font-size:22px}.music-button b{font-size:12px}}

.parent-test-banner{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px 14px;width:100%;padding:7px 9px;border-radius:10px;background:#fff0bf;border:2px solid #d3a33b;color:#624619;font-size:13px;box-sizing:border-box}.parent-test-banner strong{font-size:15px}.test-exit{background:#fff;border:1px solid #b68e3a;border-radius:8px;color:#614913;min-height:36px;padding:5px 10px;font-size:13px;font-weight:700}.modal .panel>button.full{margin:10px 0}

/* Adult dialogs must remain above the sticky game header. */
.modal{z-index:1000;isolation:isolate}.modal .panel{position:relative;overscroll-behavior:contain}.modal button{position:relative;min-height:48px}.modal [role=status]:empty{display:none}

/* Opaque final themes: the meadow must not turn the selected girl's screen green. */
html{background:#c4eadb}body[data-hero=neutral]{background:#c4eadb;--teal:#138368;--ink:#174f43}body[data-hero=girl]{background:#ffd7e8;--teal:#a83475;--ink:#553151}body[data-hero=boy]{background:#d0eafa;--teal:#157db0;--ink:#244c6d}
.compact-track{margin-right:22px}.start-flag{font-size:18px;color:#b5284b;display:block;margin:10px 0 0 8px}.finish-flag{position:absolute;right:-13px;top:-7px;font-size:34px;color:#a82545;line-height:1;z-index:4}.skip-task{margin-top:20px;font-size:17px;min-height:48px}
