
@font-face{font-family:Reading;src:url('assets/reading-bold.ttf') format('truetype');font-weight:700;font-display:swap}
:root{--dark:#183f3d;--ink:#26343e;--teal:#007f84;--mint:#e7f3ef;--cream:#f7f5ee;--line:#d4e2d8;--muted:#587065;--gold:#ffe24c;--paper:#fff;--reading:Reading,'Comic Sans MS',sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:ui-rounded,'Arial Rounded MT Bold',system-ui,-apple-system,sans-serif;-webkit-tap-highlight-color:transparent}button,select{font:inherit}button{cursor:pointer;color:inherit;touch-action:manipulation}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #c38a13;outline-offset:4px}button{border:0}button svg{flex-shrink:0}svg{vertical-align:middle}button,a{-webkit-user-select:none;user-select:none}[hidden]{display:none!important}.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}body.modal-open{overflow:hidden}
.sitebar{border-bottom:1px solid var(--line);background:#fffdf6}.sitebar-inner{max-width:1120px;margin:auto;min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 26px}.brand{color:var(--dark);font-weight:850;font-size:16px;letter-spacing:-.6px;display:flex;align-items:center;gap:10px;text-decoration:none}.brand-mark{display:grid;place-items:center;background:var(--dark);color:#fff;width:34px;height:34px;border-radius:11px;transform:rotate(-6deg)}.top-actions{display:flex;gap:8px}.utility{min-height:43px;padding:9px 13px;border:1px solid var(--line);border-radius:12px;background:white;display:inline-flex;align-items:center;justify-content:center;gap:7px;color:var(--dark);font-size:13px;font-weight:750}.utility:hover{background:var(--mint)}.utility[aria-pressed=false] .sound-waves{display:none}.page{max-width:1120px;margin:auto;padding:27px 26px 24px}.intro{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:23px}.kicker{color:var(--teal);font-size:11px;letter-spacing:.12em;font-weight:850;text-transform:uppercase;margin-bottom:7px}.intro h1{font-size:clamp(30px,4vw,44px);line-height:1.08;letter-spacing:-1.9px;margin:0 0 10px;font-weight:850}.intro p{font-size:16px;color:var(--muted);margin:0;line-height:1.5}.level-chip{display:flex;align-items:center;gap:8px;flex-shrink:0;border:1px solid #ccdcd1;background:#edf5ee;border-radius:30px;padding:9px 13px;color:var(--dark);font-size:12px;font-weight:750}.level-dot{height:8px;width:8px;background:var(--teal);border-radius:50%}
.play-card{background:#fff;border:1px solid var(--line);border-radius:23px;box-shadow:0 8px 25px #18392d08;overflow:hidden}.round-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:62px;padding:14px 23px;border-bottom:1px solid var(--line)}.round-label{white-space:nowrap;flex-shrink:0;font-size:14px;font-weight:750;color:var(--dark)}.round-label span{font-weight:500;color:var(--muted)}.stars{display:flex;gap:5px;align-items:center}.stars.many{gap:3px}.stars.many .star{width:19px;height:19px}.star{width:23px;height:23px;fill:#eef2ec;color:#cbd8cd}.star.earned{fill:var(--gold);color:#bd8b20;animation:star-pop .3s ease-out}.star svg{display:block;width:100%;height:100%}.game-grid{display:grid;grid-template-columns:34% 66%;min-height:390px}.picture-panel{background:#fcfaf2;border-right:1px solid var(--line);padding:24px 20px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px}.picture-frame{width:100%;aspect-ratio:1;max-width:310px;mix-blend-mode:multiply}.picture-frame img{width:100%;height:100%;object-fit:contain;display:block;border-radius:16px}.listen-btn{background:#fffdf9;border:1px solid #d6e1d3;border-radius:30px;display:flex;align-items:center;gap:8px;padding:10px 16px;font-size:13px;font-weight:750;color:var(--dark);min-height:44px}.listen-btn:hover{background:var(--mint)}.activity{padding:25px 27px 23px;min-width:0}.steps{display:flex;align-items:center;gap:6px;margin:0 0 22px}.step{display:flex;align-items:center;gap:5px;color:#66766d;font-size:11px;font-weight:700;white-space:nowrap}.step-num{display:grid;place-items:center;width:21px;height:21px;border:1px solid #d4dfd5;border-radius:50%;font-size:10px;background:#f4f7f2}.step.active{color:var(--dark)}.step.active .step-num{background:var(--dark);border-color:var(--dark);color:white}.step.done{color:var(--teal)}.step.done .step-num{background:var(--mint);border-color:#b5d4c0;color:var(--dark)}.step-line{height:1px;flex:1;background:var(--line);min-width:8px;max-width:33px}.instruction{font-size:clamp(21px,2.5vw,27px);font-weight:800;letter-spacing:-.65px;line-height:1.15;margin:0 0 7px}.instruction-note{color:var(--muted);font-size:13px;line-height:1.5;margin:0 0 20px;min-height:20px}.area-label{color:#567064;text-transform:uppercase;letter-spacing:.09em;font-size:10px;font-weight:800;margin:0 0 9px}.sentence-board{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:14px;background:#f3f8f2;border:1px solid #d4e4d3;border-radius:15px;min-height:90px;transition:background .15s}.slot{width:var(--tile-w,86px);height:61px;border:2px dashed #bbceba;border-radius:11px;display:flex;align-items:center;justify-content:center;position:relative;background:#ffffff80;flex-shrink:0}.slot.filled{border:0;background:none}.slot.drop-target{background:#fce6a0;border-color:#b58b26;outline:3px solid #f1c958;outline-offset:2px}.slot-num{color:#6f876e;font-size:17px;font-weight:600}.word-tile{font-family:var(--reading);font-size:var(--word-size,29px);font-weight:700;line-height:1;min-width:var(--tile-w,86px);height:58px;background:#fff;border:1px solid #7ca38b;border-radius:10px;box-shadow:0 3px 0 #bdd2bf;display:inline-flex;align-items:center;justify-content:center;padding:8px 13px;position:relative;touch-action:none;white-space:nowrap;-webkit-user-select:none;user-select:none}.word-tile:hover{background:#fff9df;border-color:#7f9d72}.slot .word-tile{width:100%;min-width:0}.word-tile.drag-source{opacity:.25}.word-tile.lifted{position:fixed;z-index:1000;pointer-events:none;background:#fff7d6;box-shadow:0 8px 24px #203e3533;transform:rotate(-4deg) scale(1.05)}.bank-head{display:flex;align-items:center;justify-content:space-between;margin:21px 0 9px}.bank-head .area-label{margin:0}.undo{padding:4px 0 4px 8px;min-height:28px;background:none;color:var(--teal);font-size:11px;font-weight:750;display:inline-flex;align-items:center;gap:5px}.word-bank{display:flex;flex-wrap:wrap;gap:10px;align-content:flex-start;min-height:64px;padding:0 0 5px;border:2px solid transparent;border-radius:12px}.word-bank.return-target{background:var(--mint);border:2px dashed #91b29c}.bank-message{font-size:13px;color:var(--muted);display:flex;align-items:center;min-height:58px;margin:0}.feedback{min-height:22px;font-size:13px;color:var(--dark);line-height:1.5;margin:13px 0 2px;display:flex;gap:6px;align-items:center}.feedback.error{color:#815316}.feedback.good{color:#286b44}.controls{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:12px}.primary{min-height:47px;border-radius:12px;background:var(--dark);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 21px;font-size:14px;font-weight:750;box-shadow:0 3px 0 #173d32}.primary:hover{background:#34755f}.primary:active{transform:translateY(2px);box-shadow:0 1px 0 #173d32}.primary:disabled{background:#81978a;box-shadow:0 3px 0 #647a6d;opacity:.65}.quiet{color:var(--teal);font-size:12px;font-weight:750;min-height:44px;padding:8px 0;background:none;display:flex;align-items:center;gap:5px}.quiet:hover{text-decoration:underline}.game-footer{border-top:1px solid var(--line);padding:13px 23px;display:flex;align-items:center;justify-content:space-between;gap:15px;color:var(--muted);font-size:11px;background:#fdfefa}.footer-tip{display:flex;align-items:center;gap:7px;line-height:1.5}.footer-level{white-space:nowrap;font-weight:650}.page-footer{display:flex;align-items:center;justify-content:space-between;margin-top:17px;color:#6d7f70;font-size:11px}.return-link{display:inline-flex;align-items:center;gap:5px;color:var(--teal);text-decoration:none;font-weight:700;min-height:35px}.return-link:hover{text-decoration:underline}
.sentence-board.punctuation{gap:6px;padding:17px 13px;line-height:1.5;align-content:center}.punctuation .slot{width:auto;height:auto;min-height:54px;border:0;background:none}.punctuation .word-tile{font-family:var(--reading);font-size:31px;height:54px;min-width:0;border:0;box-shadow:none;background:none;border-radius:5px;padding:5px 2px;touch-action:auto}.first-word{display:flex;align-items:center;font-family:var(--reading);font-size:31px;font-weight:700}.capital-letter{font-family:inherit;font-weight:inherit;font-size:inherit;color:var(--dark);border:2px solid #d5a33b;background:#ffebae;min-width:40px;min-height:49px;line-height:1;border-radius:8px;padding:2px;box-shadow:0 3px 0 #e9ce80;animation:nudge 1.8s ease-in-out infinite;margin-right:1px}.capital-letter:hover{background:#ffe08c}.first-letter-done{color:var(--dark);font-family:inherit}.dot-target{width:43px;height:47px;margin-left:0;border:2px dashed #c49732;border-radius:10px;background:#fff1c3;color:#836219;font-size:27px;line-height:1;animation:nudge 1.8s ease-in-out infinite}.final-dot{margin-left:0}.sentence-board.finished{background:#eff8e9;border-color:#acc69e}.sentence-board.finished .word-tile{color:#2c603f}.punctuation-help{border:1px solid #e8d593;background:#fff9e7;border-radius:12px;padding:12px 14px;margin-top:19px;font-size:13px;color:#705718;line-height:1.5;display:flex;align-items:center;gap:11px}.punctuation-help .symbol{background:#f7e5ac;min-width:39px;height:39px;border-radius:9px;display:grid;place-items:center;font-family:var(--reading);font-size:24px}.success-note{margin-top:18px;display:flex;align-items:center;gap:11px;background:#f1f8ec;border:1px solid #d0e3c6;border-radius:12px;padding:13px 14px;color:#356a40;font-size:13px;line-height:1.5}.success-badge{height:35px;width:35px;display:grid;place-items:center;flex-shrink:0;background:#d5eacd;border-radius:50%;color:#3e7944}.success-note strong{display:block;margin-bottom:2px;font-size:15px}.sprinkles{position:absolute;inset:0;pointer-events:none;overflow:hidden}.sprinkles i{position:absolute;top:-10px;width:7px;height:11px;border-radius:2px;background:var(--gold);animation:fall 1.25s ease-in forwards}.play-card{position:relative}
dialog{color:var(--ink);border:1px solid var(--line);border-radius:22px;padding:0;width:min(94vw,475px);box-shadow:0 20px 60px #18392d33;background:var(--cream)}dialog::backdrop{background:#173a2f77;backdrop-filter:blur(3px)}.dialog-inner{padding:27px}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.dialog-head h2{font-size:25px;letter-spacing:-.7px;margin:0}.close-btn{display:grid;place-items:center;height:38px;width:38px;flex-shrink:0;border-radius:50%;background:#e6eee3;color:var(--dark)}.setting-field{border:0;padding:0;margin:0 0 21px}.setting-field legend{padding:0;font-size:13px;font-weight:750;margin-bottom:9px}.choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.choice-grid.two{grid-template-columns:repeat(2,1fr)}.choice{position:relative}.choice input{position:absolute;opacity:0;width:1px;height:1px}.choice span{min-height:70px;padding:11px 7px;display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;border:1px solid #cdddcf;background:white;border-radius:12px;font-weight:750;font-size:14px;cursor:pointer}.choice small{font-size:10px;font-weight:600;color:var(--muted)}.choice input:checked+span{background:var(--mint);border:2px solid var(--dark);padding:10px 6px}.choice input:focus-visible+span{outline:3px solid #c38a13;outline-offset:3px}.dialog-copy{font-size:13px;line-height:1.65;color:var(--muted);margin:0 0 17px}.settings-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid var(--line);padding-top:19px}.settings-footer .quiet{padding:8px 4px}.result-content{text-align:center;padding:34px 28px}.result-icon{display:grid;place-items:center;background:#e1efdb;width:77px;height:77px;border-radius:50%;margin:0 auto 18px}.result-icon svg{fill:var(--gold);color:#a67b1c;width:43px;height:43px}.result-content h2{font-size:31px;letter-spacing:-1px;margin:0 0 12px}.result-content p{color:var(--muted);font-size:14px;line-height:1.6;margin:0 0 18px}.result-stars{justify-content:center;gap:6px;margin:18px 0 22px}.result-stars .star{width:30px;height:30px}.result-content .primary{width:100%}.result-content .quiet{justify-content:center;width:100%;margin-top:9px}.result-note{font-size:12px!important;margin:21px 0 0!important}
@keyframes nudge{0%,65%,100%{transform:translateY(0)}80%{transform:translateY(-3px)}}@keyframes star-pop{0%{transform:scale(.5)}65%{transform:scale(1.22)}100%{transform:scale(1)}}@keyframes fall{to{transform:translateY(480px) rotate(320deg);opacity:0}}
@media(max-width:850px){.page{padding:23px 18px}.sitebar-inner{padding:10px 18px}.intro h1{font-size:35px}.game-grid{grid-template-columns:31% 69%}.picture-panel{padding:19px 12px}.activity{padding:23px 19px}.steps{gap:4px}.step{font-size:10px}.word-tile{font-size:var(--word-size,27px)}.level-chip{padding:8px 10px}.step-line{max-width:15px}.picture-frame{max-width:250px}}
@media(max-width:620px){.sitebar-inner{min-height:60px;padding:8px 14px}.brand{font-size:13px;gap:7px}.brand-mark{width:30px;height:30px;border-radius:9px}.utility{min-width:40px;padding:8px;min-height:40px}.utility .utility-label{display:none}.page{padding:20px 12px}.intro{margin:0 3px 18px;align-items:flex-start}.intro h1{font-size:29px;letter-spacing:-1.1px;margin-bottom:8px}.intro p{font-size:13px;max-width:255px}.kicker{font-size:10px;margin-bottom:7px}.level-chip{display:none}.round-bar{min-height:52px;padding:12px 15px}.round-label{font-size:12px}.stars.many{gap:2px}.stars.many .star{width:16px;height:16px}.star{width:20px;height:20px}.stars{gap:3px}.game-grid{grid-template-columns:1fr;min-height:0}.picture-panel{border-right:0;border-bottom:1px solid var(--line);padding:13px 17px;flex-direction:row;gap:20px}.picture-frame{width:150px;height:150px;max-width:none;aspect-ratio:auto}.listen-btn{font-size:11px;padding:9px 12px;max-width:142px;line-height:1.4;text-align:left}.activity{padding:19px 16px 21px}.steps{margin-bottom:18px;justify-content:flex-start;gap:6px}.step{font-size:10px}.step-line{max-width:30px}.instruction{font-size:23px}.instruction-note{font-size:12px;margin-bottom:15px;min-height:18px}.sentence-board{padding:11px;gap:8px;min-height:85px}.slot{height:55px}.word-tile{height:52px;font-size:var(--word-size,27px);padding:7px 10px;border-radius:9px}.bank-head{margin-top:19px}.word-bank{gap:9px;min-height:58px}.primary{font-size:13px;padding:11px 16px;min-height:46px}.quiet{font-size:11px}.controls{padding-top:9px}.feedback{font-size:12px;margin-top:9px;min-height:18px}.game-footer{padding:11px 15px;font-size:10px}.footer-level{display:none}.page-footer{margin:11px 4px 0;font-size:10px}.punctuation .word-tile,.first-word{font-size:29px}.punctuation-help{font-size:12px;margin-top:16px;padding:10px}.success-note{font-size:12px}.play-card{border-radius:18px}.dialog-inner{padding:22px}.dialog-head h2{font-size:23px}.settings-footer .primary{padding:11px 14px}.choice span{font-size:13px}.result-content{padding:30px 23px}}
@media(max-width:365px){.brand{font-size:12px}.brand-mark{display:none}.intro h1{font-size:27px}.activity{padding:17px 13px}.step{font-size:9px}.steps{gap:4px}.step-line{max-width:15px}.picture-frame{width:136px;height:136px}.picture-panel{gap:14px}.word-tile{font-size:var(--word-size,25px)}.controls{gap:7px}.primary{padding:11px 12px;font-size:12px;gap:6px;white-space:nowrap}.game-footer{padding:10px 12px}.footer-tip{font-size:9px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Child-facing reading prompts and a single sentence line. */
.intro p{font-family:var(--reading);font-size:22px;color:var(--ink)}
.game-grid{grid-template-columns:31% 69%;min-height:430px}
.picture-panel{padding:22px 18px}.picture-frame{max-width:285px}
.activity{padding:25px 25px 24px}.steps{display:none}
.instruction{font-family:var(--reading);font-size:36px;font-weight:700;line-height:1.2;letter-spacing:0;margin:0 0 7px}
.instruction-note{font-family:var(--reading);font-size:24px;line-height:1.35;color:var(--ink);margin:0 0 23px;min-height:30px}
.area-label{font-family:var(--reading);font-size:19px;font-weight:700;letter-spacing:0;text-transform:none;margin-bottom:9px}
.sentence-board,.sentence-board.punctuation{flex-wrap:nowrap;white-space:nowrap;align-items:center;gap:var(--sentence-gap,6px);padding:12px 10px;min-height:88px;overflow:visible}
.slot,.punctuation .slot{flex:0 0 auto;min-width:0;height:58px;min-height:58px;border-radius:9px}
.slot .word-tile,.punctuation .word-tile{width:100%;min-width:0;height:56px;min-height:0;font-family:var(--reading);font-size:var(--sentence-font,34px);font-weight:700;line-height:1;letter-spacing:0;padding:8px var(--sentence-pad,8px);border-radius:9px}
.slot-num{font-family:var(--reading);font-size:var(--number-size,20px)}
.punctuation .capital-word{border:1px solid #7ca38b;background:white;box-shadow:0 3px 0 #bdd2bf;cursor:pointer;touch-action:manipulation}
.punctuation .capital-word:hover{background:#fff9df;border-color:#7f9d72}
.punctuation .read-word{border:0;box-shadow:none;background:none;padding:8px var(--sentence-pad,2px)}
.punctuation .dot-target{flex:0 0 43px;min-width:43px;width:43px;height:47px;margin-left:0}
.word-bank .word-tile{width:auto;min-width:58px;font-size:32px;min-height:58px;height:58px;padding:8px 14px}
.word-bank{gap:11px;min-height:65px}.bank-head{margin:21px 0 11px}
.bank-message{font-family:var(--reading);font-size:20px;color:var(--muted)}
.feedback{font-family:var(--reading);font-size:22px;line-height:1.3;min-height:28px;margin:13px 0 1px}
.primary,.quiet,.undo,.listen-btn{font-family:var(--reading);font-weight:700;letter-spacing:0}
.primary{font-size:22px;min-height:54px;min-width:104px;white-space:nowrap;padding:11px 22px;gap:8px}
.quiet{font-size:21px;min-height:50px;gap:7px}.undo{font-size:18px;min-height:38px;gap:6px}
.listen-btn{font-size:22px;min-height:52px;padding:9px 19px;gap:9px}.listen-btn svg{width:21px;height:21px}
.round-label{font-family:var(--reading);font-size:18px;white-space:nowrap}.round-bar{padding:14px 21px}
.controls{padding-top:8px}.game-footer{display:none}#nextButton{margin-left:auto}
@media(max-width:980px){
 .game-grid{grid-template-columns:1fr;min-height:0}
 .picture-panel{flex-direction:row;border-right:0;border-bottom:1px solid var(--line);padding:12px 20px;gap:28px}
 .picture-frame{width:180px;height:180px;max-width:none;aspect-ratio:auto}
 .listen-btn{max-width:none}.activity{padding:24px}.intro p{font-size:22px}
}
@media(max-width:620px){
 .intro p{font-size:20px}.picture-panel{gap:25px;padding:11px 18px}.picture-frame{width:160px;height:160px}
 .activity{padding:20px 14px}.instruction{font-size:30px}.instruction-note{font-size:22px;margin-bottom:19px;min-height:28px}
 .area-label{font-size:18px}.sentence-board,.sentence-board.punctuation{padding:10px 6px;min-height:80px}
 .slot,.punctuation .slot{height:54px;min-height:54px}.slot .word-tile,.punctuation .word-tile{height:52px}
 .word-bank .word-tile{font-size:29px;min-width:52px;min-height:54px;height:54px;padding:8px 11px}
 .word-bank{gap:10px}.feedback{font-size:21px}.primary{font-size:22px;min-height:53px;padding:10px 20px}
 .quiet{font-size:21px}.listen-btn{font-size:22px;max-width:none;min-height:51px;padding:9px 16px}
 .round-label{font-size:16px}.round-bar{padding:13px 15px}.bank-head{margin-top:19px}
}
@media(max-width:365px){
 .activity{padding:18px 12px}.instruction{font-size:28px}.instruction-note{font-size:22px}
 .picture-frame{width:136px;height:136px}.picture-panel{gap:18px;padding:10px 16px}
 .listen-btn{font-size:21px;padding:9px 13px}.primary{font-size:21px;padding:10px 18px;min-width:95px}.quiet{font-size:20px}
 .sentence-board,.sentence-board.punctuation{padding:10px 5px}.round-label{font-size:15px}
}


.result-content h2{font-family:var(--reading);font-size:34px;letter-spacing:0}.result-content p{font-family:var(--reading);font-size:22px}.result-note{display:none}.result-content .quiet{font-size:19px}

/* Listen first; add a full stop at the end of the sentence. */
.listen-btn.listen-first{background:var(--dark);color:white;border-color:var(--dark);font-size:25px;min-height:62px;box-shadow:0 4px 0 #173d32;animation:listen-glow 2.2s ease-in-out infinite}
.listen-btn.listen-first:hover{background:#34755f}
.punctuation .dot-target.stop-choice{position:relative;flex:0 0 var(--stop-size,24px);width:var(--stop-size,24px);min-width:var(--stop-size,24px);height:var(--stop-size,24px);padding:0;margin:0;border:1px dashed #bd963c;border-radius:5px;background:#fff1c3;color:#705718;font-size:var(--stop-font,18px);line-height:1;display:grid;place-items:center;animation:none}
.stop-choice::before{content:'';position:absolute;inset:-10px -4px}
.punctuation .stop-choice:hover{background:#ffe298;border-style:solid}
@keyframes listen-glow{0%,100%{outline:4px solid #d4e6d0;outline-offset:3px}50%{outline:4px solid #f1d88d;outline-offset:6px}}
@media(max-width:620px){.listen-btn.listen-first{font-size:23px;min-height:60px;padding:10px 13px;gap:7px}.picture-panel{gap:18px}}


/* Teacher-selected phonics progression, separate from the child prompts. */
dialog{max-height:90dvh;overflow:auto}.level-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}.level-choice:last-child{grid-column:1/-1}.level-choice{position:relative}.level-choice input{position:absolute;opacity:0;width:1px;height:1px}.level-choice>span{display:flex;align-items:center;gap:9px;min-height:69px;padding:10px;border:1px solid #cbdccf;background:white;border-radius:12px;cursor:pointer}.level-choice>span>b{display:grid;place-items:center;width:27px;height:27px;flex-shrink:0;background:var(--mint);color:var(--dark);border-radius:50%;font-size:14px}.level-choice strong{display:block;font-size:14px}.level-choice small{display:block;color:var(--muted);font-size:11px;line-height:1.35;margin-top:4px}.level-choice input:checked+span{border:2px solid var(--dark);padding:9px;background:#edf5e9}.level-choice input:focus-visible+span{outline:3px solid #c38a13;outline-offset:3px}.level-guide{border:1px solid #d3e0d0;background:#edf5e9;border-radius:12px;margin:-6px 0 20px;padding:12px;font-size:12px;line-height:1.55}.level-guide p{margin:5px 0 0}.level-guide strong{color:var(--dark);font-size:12px}.teacher-guide{border-top:1px solid var(--line);margin:0 0 20px;padding-top:15px;font-size:12px;line-height:1.65}.teacher-guide summary{cursor:pointer;font-weight:750;font-size:14px;color:var(--dark);min-height:32px}.teacher-guide p{margin:10px 0}.teacher-guide table{border-collapse:collapse;width:100%;margin:12px 0}.teacher-guide th,.teacher-guide td{text-align:left;border:1px solid #d0ddcf;padding:6px}.teacher-guide th{background:#e8f0e3}.teacher-guide h3{font-size:14px;margin:15px 0 7px}.teacher-guide a{color:var(--dark);text-underline-offset:2px}.guide-sources{font-size:11px}.result-content .result-level{font-size:18px;margin:0 0 6px}.result-content .repeat-level{margin-top:8px;font-size:21px}#nextLevelButton{width:100%}

.round-level{display:block;font-family:inherit;font-size:13px;font-weight:700;color:var(--muted);margin-top:4px}
.band-label{display:block;font-size:13px;font-weight:750;margin-bottom:8px}.reading-band{width:100%;min-height:46px;padding:9px 32px 9px 11px;background:white;border:1px solid #b5cdbb;border-radius:10px;color:var(--dark);font-size:14px;margin-bottom:13px}.progression-intro{margin:-8px 0 17px;font-size:12px;line-height:1.55;color:var(--muted)}.teacher-guide td small{display:block;color:var(--muted);margin-top:3px}.teacher-guide .table-scroll{max-height:340px;overflow:auto;border-bottom:1px solid var(--line);margin:12px 0}.teacher-guide .table-scroll table{margin:0}.teacher-guide .table-scroll thead{position:sticky;top:0;z-index:1}.reading-band option{color:var(--ink)}
@media(max-width:620px){.round-level{font-size:12px}.level-choice strong{font-size:13px}.reading-band{font-size:13px}.settings-footer{flex-wrap:wrap}.settings-footer .primary{flex:1}}
.level-options{grid-template-columns:repeat(6,1fr);gap:7px}.level-choice:last-child{grid-column:auto}.level-choice>span{justify-content:center;min-height:45px;padding:5px;font-family:var(--reading);font-size:22px;font-weight:700}.level-choice input:checked+span{padding:4px;background:var(--dark);color:white}.level-choice input:focus-visible+span{outline:3px solid #c38a13;outline-offset:2px}
.result-more-info{border:1px solid #ccdccc;background:#f2f7ec;border-radius:11px;margin:16px 0 20px;text-align:left;padding:10px 12px}.result-more-info summary{cursor:pointer;color:var(--dark);font-family:inherit;font-size:14px;font-weight:750;min-height:25px;display:list-item}.result-more-info p{font-family:inherit;font-size:13px;line-height:1.55;margin:9px 0;color:var(--ink)}.result-more-info .age-guide-note{font-size:11px;color:var(--muted);margin-bottom:0}.result-content .result-more-info p:last-child{margin-bottom:0}.result-info-content{max-height:245px;overflow:auto;scrollbar-width:thin}
@media(max-width:365px){.level-options{grid-template-columns:repeat(5,1fr)}}

/* Choose a level before entering the game. */
.level-screen{padding:27px;background:white;border:1px solid var(--line);border-radius:23px;box-shadow:0 8px 25px #18392d08}
.level-screen h2{font-family:var(--reading);font-size:34px;line-height:1.2;margin:0 0 8px}
.level-screen-note{font-family:var(--reading);font-size:22px;color:var(--muted);line-height:1.4;margin:0 0 23px}
.level-screen .level-options{grid-template-columns:repeat(10,minmax(0,1fr));gap:10px;margin-bottom:25px}
.level-select{display:grid;place-items:center;min-width:0;min-height:62px;padding:8px;border:1px solid #aec7b6;border-radius:12px;background:#f1f7ed;color:var(--dark);font-family:var(--reading);font-size:29px;font-weight:700;box-shadow:0 3px 0 #d0dfce}
.level-select:hover{background:#e2efda;transform:translateY(-1px)}
.level-select[aria-pressed=true]{background:var(--dark);color:white;border-color:var(--dark);box-shadow:0 3px 0 #193e33}
.level-screen-footer{border-top:1px solid var(--line);padding-top:21px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.level-screen .setting-field{margin:0;min-width:0;width:300px;max-width:100%}
.level-screen .setting-field legend{font-family:var(--reading);font-size:21px;margin-bottom:11px}
.level-screen .choice span{min-height:53px;font-family:var(--reading);font-size:21px;padding:9px 12px}
.level-screen .choice input:checked+span{padding:8px 11px}
.level-info-inner{padding:27px}.level-info-inner .dialog-head{margin-bottom:15px}
.level-info-inner .dialog-head h2{font-family:var(--reading);font-size:33px;letter-spacing:0}
.level-info-name{font-family:var(--reading);font-size:27px;font-weight:700;line-height:1.25;margin:0 0 12px}
.level-info-length{display:inline-block;padding:7px 11px;border-radius:9px;background:#e8f2e1;color:var(--dark);font-size:14px;font-weight:700;margin:0 0 17px}
.level-info-description{font-size:16px;line-height:1.6;margin:0 0 17px}
.level-info-patterns{background:#f5f7ef;border-left:3px solid #92b28b;padding:11px 13px;margin-bottom:23px}
.level-info-patterns strong{display:block;font-size:13px;margin-bottom:5px}.level-info-patterns p{font-size:14px;line-height:1.55;margin:0}
.level-info-inner>.primary{width:100%;white-space:normal}.level-info-inner>.quiet{width:100%;justify-content:center;margin-top:10px;font-size:20px}
@media(max-width:800px){.level-screen .level-options{grid-template-columns:repeat(5,minmax(0,1fr))}.level-select{min-height:56px}}
@media(max-width:620px){.level-screen{padding:21px 16px;border-radius:18px}.level-screen h2{font-size:31px}.level-screen-note{font-size:21px;margin-bottom:19px}.level-screen .level-options{gap:8px;margin-bottom:22px}.level-select{font-size:27px;min-height:52px;padding:7px}.level-screen-footer{display:block;padding-top:18px}.level-screen .setting-field{width:100%}#resumeButton{width:100%;justify-content:center;margin-top:15px}.level-info-inner{padding:23px}.level-info-name{font-size:26px}.level-info-description{font-size:15px}}

/* Keep shared site controls readable alongside the child-facing game. */
.sitebar .header-inner{max-width:1120px;margin:auto}.sitebar .header-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.intro{margin-bottom:18px}.intro .kicker{margin:0}.page-footer .return-link{white-space:normal}.page-footer{flex-wrap:wrap;gap:12px}#resultDialog>.mw-return-games{margin:0 auto 24px;text-align:center;max-width:calc(100% - 40px)}
@media(max-width:620px){.intro .kicker{font-size:10px}.sitebar .header-actions{width:100%;justify-content:flex-end}.page-footer{justify-content:center;text-align:center}}
