:root{--ink:#233d35;--green:#27644f;--muted:#697b70;--bg:#fafaf3;--line:#e1e7db;--yellow:#f5ce66;--serif:Georgia,serif}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:16px 'DM Sans',sans-serif}button,input,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #be6b36;outline-offset:4px}button{color:inherit}a{color:inherit;text-decoration:none}.topbar{height:100px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;max-width:1200px;margin:auto;padding:0 30px}.brand{display:flex;gap:12px;align-items:center;font:900 21px 'Nunito',sans-serif}.brand small{display:block;font:600 9px 'DM Sans',sans-serif;letter-spacing:2.4px;margin-top:5px}.brand-mark{font-size:38px;color:var(--green);line-height:1}.header-actions{display:flex;gap:20px;align-items:center}.cp-label{font-size:12px;border:1px solid #cad7c5;padding:7px 12px;border-radius:20px}.quiet{background:transparent;border:0;padding:12px 4px;font-weight:600;font-size:13px}.quiet:hover{color:#9c502c}main{max-width:1200px;margin:auto;padding:42px 30px 55px}.hero{display:grid;grid-template-columns:1.3fr 1fr;align-items:center;gap:35px;margin-bottom:32px}.eyebrow{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:2.3px;color:#62816a;display:flex;align-items:center;gap:8px}.eyebrow:before{content:'';width:7px;height:7px;background:#92ad79;border-radius:50%}h1{font:600 clamp(36px,4.5vw,58px)/1.08 var(--serif);letter-spacing:-1.7px;margin:17px 0}h1 em{font-weight:500;color:var(--green)}.intro{color:var(--muted);font-size:15px;line-height:1.8;max-width:470px}.primary{background:var(--green);color:#fff;border:1px solid var(--green);padding:15px 24px;border-radius:12px;font-weight:700;box-shadow:0 3px 0 #153d30}.primary:hover{background:#1c503e;transform:translateY(-1px)}.primary:active{transform:translateY(2px);box-shadow:none}.hero-action{display:flex;align-items:center;gap:16px;margin-top:22px}.hero-action small{color:var(--muted);font-size:12px}.garden-art{height:285px;position:relative;background:#edf1df;border-radius:47% 47% 30% 35%;display:flex;align-items:center;justify-content:center}.garden-art svg{width:100%;height:100%;overflow:visible}.art-note{position:absolute;bottom:8px;right:8px;transform:rotate(-5deg);background:#fffef5;border:1px solid #e1e4cd;padding:10px 17px;border-radius:8px;font:800 13px 'Nunito',sans-serif;box-shadow:0 4px 10px #39582b0b}.settings-bar{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 22px;display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:34px}.setting-group{display:flex;gap:22px;align-items:center}.setting-group label{font-size:12px;color:var(--muted);display:flex;gap:10px;align-items:center}.setting-group select{border:0;background:#f2f5ed;border-radius:7px;padding:8px 10px;color:var(--ink);font-weight:700;font-size:12px}.star-total{font:800 14px 'Nunito',sans-serif}.star-total span{color:#b98921;font-size:22px;vertical-align:middle;margin-right:5px}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:19px}h2{font:800 23px 'Nunito',sans-serif;margin:0 0 6px}.section-heading p{color:var(--muted);font-size:13px;margin:0}.mini-label{font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:20px;padding:7px 12px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.card{text-align:left;background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px 21px;position:relative;min-height:179px;transition:transform .15s,box-shadow .15s}.card:hover{transform:translateY(-4px);box-shadow:0 8px 20px #233d3509;border-color:#a8b9a0}.card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.category-icon{height:42px;width:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;font:800 31px 'Nunito',sans-serif}.peach{background:#fbe4d7;color:#b96941}.lilac{background:#eee6f8;color:#8c67b1}.blue{background:#e5edf9;color:#5b7fbb}.yellow{background:#fcf0c9;color:#aa7c1b}.mint{background:#e2f0df;color:#5d8d54}.card-num{font-size:11px;color:#a7afa4}.card h3{font:800 18px 'Nunito',sans-serif;margin:0 0 5px}.card p{font-size:12px;color:var(--muted);margin:0 0 15px}.card-bottom{border-top:1px solid #f0f2eb;padding-top:10px;display:flex;justify-content:space-between;font-size:11px;color:#82907d}.card-bottom b{color:var(--green);font-weight:500;font-size:16px}.bottom-note{display:flex;gap:9px;justify-content:center;font-size:12px;color:var(--muted);margin-top:25px}footer{border-top:1px solid var(--line);max-width:1140px;margin:auto;padding:22px 0 30px;display:flex;justify-content:space-between;color:#84907e;font-size:11px}.exercise-wrap{max-width:840px;margin:auto}.exercise-nav{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.back{border:0;background:transparent;font-size:13px;padding:10px 0}.exercise-title{display:flex;align-items:center;gap:12px}.exercise-title h1{font:800 24px 'Nunito',sans-serif;margin:0;letter-spacing:0}.exercise-meta{color:var(--muted);font-size:12px;margin:5px 0}.progress-track{height:7px;background:#e3e9dd;border-radius:20px;overflow:hidden;margin:14px 0 25px}.progress-track div{height:100%;background:#7ca776;transition:width .3s}.exercise-panel{background:white;border:1px solid var(--line);border-radius:24px;text-align:center;padding:30px 38px;min-height:480px}.prompt-row{display:flex;justify-content:center;gap:12px;align-items:center}.prompt-row h2{font-size:23px;line-height:1.5;max-width:660px}.icon-btn{border:1px solid var(--line);background:#f7f9f2;border-radius:50%;width:44px;height:44px;flex-shrink:0;font-size:20px}.visual{display:flex;justify-content:center;align-items:center;gap:15px;min-height:175px;padding:22px 0;flex-wrap:wrap}.number-tile{min-width:72px;min-height:80px;padding:8px 15px;border-radius:14px;display:inline-flex;align-items:center;justify-content:center;background:#f1f5eb;font:900 44px 'Nunito',sans-serif}.number-tile.hidden-number{background:#fff5ce;color:#92721f;border:2px dashed #e6cf7d}.math-symbol{font:700 38px 'Nunito',sans-serif}.answers{display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.answer{min-width:100px;min-height:64px;padding:12px 20px;border:2px solid #dce5d6;border-bottom:5px solid #dce5d6;background:#fff;border-radius:14px;font:800 29px 'Nunito',sans-serif}.answer:hover:not(:disabled){background:#f3f7ed;border-color:#88aa78}.answer.correct{background:#e2f2df;border-color:#6e9b65}.answer.wrong{background:#fff1dc;border-color:#dfaf6a}.answer:disabled{opacity:.8}.answer.correct:disabled{opacity:1}.hint-btn{border:0;background:transparent;color:#6d8060;margin-top:21px;padding:10px;font-size:13px}.hint-box{background:#f6f7ec;padding:13px 17px;border-radius:10px;font-size:14px;line-height:1.6;margin:10px auto;max-width:600px}.feedback{margin-top:22px;border-radius:14px;padding:19px;background:#eff5e8;line-height:1.6}.feedback.error{background:#fff5e7}.feedback strong{font:900 20px 'Nunito',sans-serif}.feedback p{margin:6px 0 16px;font-size:15px}.feedback .primary{font-size:16px}.session-caption{text-align:center;font-size:12px;color:var(--muted);margin-top:20px}.shape-choice{width:130px;height:106px;padding:12px}.shape-svg{width:130px;height:115px;overflow:visible}.shape-choice .shape-svg{width:90px;height:70px}.collection{display:flex;max-width:420px;gap:10px;flex-wrap:wrap;justify-content:center;min-height:80px;align-items:center}.object{border:0;background:#fafbf7;border-radius:11px;width:49px;height:49px;font-size:31px;position:relative;display:flex;align-items:center;justify-content:center}.object.marked{background:#dcebd5;outline:2px solid #80a36c}.object.marked:after{content:'✓';position:absolute;right:-3px;top:-8px;font:bold 16px sans-serif;color:#306144;background:#fff;border-radius:50%;width:20px;height:20px}.story-art{font-size:64px;background:#f7f7ed;width:128px;height:128px;border-radius:50%;display:grid;place-items:center}.rank-line{width:100%;display:flex;gap:6px;justify-content:center;align-items:center;flex-wrap:nowrap}.rank-animal{font-size:clamp(22px,4vw,43px);background:#f3f5ee;padding:10px 5px;border-radius:12px;flex:1;max-width:66px}.rank-animal.target{outline:2px solid #dcad4b;background:#fff3d0}.flag{font-size:24px;align-self:center}.rank-help{font-size:12px;color:var(--muted);width:100%;margin-top:-7px}.vertical-add{font:800 43px/1.3 'Nunito',sans-serif;text-align:right;min-width:125px;letter-spacing:7px}.vertical-line{border-top:3px solid #4e6959;letter-spacing:0;margin-top:5px}.number-line{display:flex;gap:4px;flex-wrap:wrap;justify-content:center;margin:9px 0}.number-line span{background:white;border:1px solid #d8e1ce;padding:4px 7px;border-radius:5px}.number-line .current{background:#dce9d3;font-weight:bold}.result{text-align:center;background:white;border:1px solid var(--line);border-radius:25px;padding:40px 25px;max-width:740px;margin:20px auto}.result-art{font-size:64px;margin-bottom:15px}.result h1{font-size:43px}.result p{color:var(--muted);line-height:1.8}.result-stars{font-size:45px;letter-spacing:10px;color:#dba72c}.result-stats{display:flex;gap:10px;justify-content:center;margin:25px 0}.result-stats div{background:#f2f5ed;padding:18px 25px;border-radius:15px;font-size:13px}.result-stats b{display:block;font:900 29px 'Nunito',sans-serif;margin-bottom:5px}.result-actions{display:flex;justify-content:center;gap:15px;flex-wrap:wrap}dialog{border:1px solid var(--line);border-radius:22px;max-width:740px;width:calc(100% - 30px);padding:28px;color:var(--ink);max-height:90vh}dialog::backdrop{background:#1c352d70;backdrop-filter:blur(3px)}.dialog-top{display:flex;justify-content:space-between;align-items:center}dialog p{font-size:13px;line-height:1.7;color:var(--muted)}.progress-table{width:100%;border-collapse:collapse;font-size:13px;margin:20px 0}.progress-table th{text-align:left;font-size:11px;color:var(--muted);padding:12px 5px}.progress-table td{border-top:1px solid var(--line);padding:11px 5px}.progress-table td:nth-child(n+2),.progress-table th:nth-child(n+2){text-align:center}.danger{color:#ad593f}#reset-state{min-height:20px}.audio-note{font-size:12px;color:#8c623b;margin-top:8px}.empty{font-size:18px;color:var(--muted);border:2px dashed var(--line);padding:30px;border-radius:15px}.reduced-label{font-size:12px;color:var(--muted)}@media(max-width:800px){.topbar{padding:0 22px;height:85px}.brand{font-size:18px}.brand small{font-size:8px;letter-spacing:1.5px}.header-actions{gap:10px}.cp-label{display:none}main{padding:25px 22px 40px}.hero{gap:15px;grid-template-columns:1.2fr 1fr}.garden-art{height:230px}.grid{grid-template-columns:repeat(2,1fr)}.settings-bar{flex-wrap:wrap}.setting-group{gap:13px}.setting-group label{flex-direction:column;align-items:flex-start;gap:6px}footer{margin:0 22px;gap:12px}.exercise-panel{padding:24px 20px}.answer{min-width:80px}}@media(max-width:520px){.topbar{padding:0 16px}.header-actions .quiet{font-size:11px}.brand{font-size:15px}.brand-mark{font-size:30px}.brand small{font-size:7px;letter-spacing:1px}main{padding:25px 16px 35px}.hero{grid-template-columns:1fr;margin-bottom:23px;gap:18px}h1{font-size:42px}.intro{font-size:14px;max-width:320px}.garden-art{height:185px;border-radius:80px 80px 35px 35px}.garden-art svg{width:280px}.art-note{right:20px;bottom:10px;font-size:11px}.hero-action{gap:12px}.hero-action small{font-size:11px}.primary{padding:14px 18px}.settings-bar{padding:15px;gap:14px;margin-bottom:28px}.setting-group{width:100%;justify-content:space-between;gap:6px}.setting-group select{padding:8px 6px;font-size:11px}.star-total{font-size:12px}.grid{gap:11px}.card{padding:16px 13px;min-height:190px}.card h3{font-size:16px;line-height:1.25}.card p{font-size:11px;min-height:28px;line-height:1.5;margin-bottom:10px}.card-top{margin-bottom:13px}.category-icon{width:38px;height:38px;font-size:27px}.card-bottom{font-size:10px}.section-heading h2{font-size:21px}.section-heading p{font-size:12px}.mini-label{display:none}.bottom-note{font-size:11px;text-align:center;line-height:1.5}.exercise-title h1{font-size:21px}.exercise-panel{padding:22px 13px}.prompt-row h2{font-size:20px}.prompt-row{gap:6px}.icon-btn{width:38px;height:38px;font-size:17px}.visual{gap:8px;min-height:150px}.number-tile{min-width:49px;min-height:64px;font-size:31px;padding:7px 10px}.math-symbol{font-size:29px}.answer{min-width:64px;min-height:62px;padding:10px 15px;font-size:25px}.answers{gap:9px}.shape-choice{min-width:80px;width:85px;height:83px;padding:7px}.shape-choice .shape-svg{width:65px;height:58px}.rank-line{gap:3px}.rank-animal{font-size:24px;padding:9px 2px}.flag{font-size:17px}.object{width:42px;height:42px;font-size:27px}.collection{gap:8px}.result{padding:28px 15px}.result h1{font-size:36px}.result-stats div{padding:15px 13px;font-size:11px}.progress-table{font-size:11px}.progress-table th{font-size:10px}footer{flex-direction:column;gap:7px;font-size:10px}.exercise-nav .mini-label{display:block}.session-caption{line-height:1.7}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Installation and phone safe areas; all visual assets are local. */
body{padding-top:env(safe-area-inset-top);padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);padding-bottom:env(safe-area-inset-bottom)}
.app-install-bar{max-width:1140px;margin:0 auto;display:flex;align-items:center;gap:18px;padding:12px 0 0;font-size:11px;color:var(--muted);flex-wrap:wrap}.install-link{background:#edf3e7;border:1px solid #d4e1c9;border-radius:20px;padding:9px 14px;font-size:12px;font-weight:700;color:var(--green)}.install-link:hover{background:#e1ecd9}[hidden]{display:none!important}.install-intro{display:flex;align-items:center;gap:17px;margin:18px 0}.install-intro img{border-radius:18px}.install-steps{background:#f2f6ec;padding:20px;border-radius:14px;margin:13px 0}.install-steps h3{margin:0 0 12px;font:800 18px 'Nunito',sans-serif}.install-steps ol{padding-left:22px;font-size:14px;line-height:1.8;margin:0}.install-steps a{text-decoration:underline}.update-notice{color:#976c27}#offline-status[data-ready="true"]{color:var(--green)}
@media(max-width:1200px){.app-install-bar{margin:0 30px}}@media(max-width:800px){.app-install-bar{margin:0 22px}}@media(max-width:520px){.app-install-bar{margin:0 16px;gap:10px;padding-top:14px}.app-install-bar #offline-status{font-size:10px}.install-link{font-size:11px}.install-steps{padding:16px}.install-steps ol{font-size:13px}.setting-group select{font-size:16px;max-width:190px}.setting-group{flex-wrap:wrap;gap:12px}.topbar .quiet{min-height:44px}}
@media(display-mode:standalone){.topbar{height:85px}.app-install-bar{padding-top:9px}.app-install-bar #install-app{background:transparent;padding-left:0;border:0}}

/* Accounts */
.sync-bar{max-width:1120px;margin:0 auto;padding:6px 24px;color:#476752;font-size:13px;min-height:30px;overflow-wrap:anywhere}
#account-dialog{width:min(680px,calc(100% - 24px));max-height:90dvh;overflow:auto}
#account-dialog form{display:grid;gap:12px;margin:20px 0}
#account-dialog label{display:grid;gap:5px;font-weight:700}
#account-dialog input:not([type=checkbox]){width:100%;min-height:46px;border:1px solid #b8cbb6;border-radius:10px;padding:10px;font:inherit;background:#fff;color:#243e2d;box-sizing:border-box}
#account-dialog .import-choice{display:flex;align-items:flex-start;gap:10px;font-weight:400}
.import-choice input{width:22px;height:22px;flex:none}
.account-actions{display:flex;gap:12px;flex-wrap:wrap}
#account-dialog details{border-top:1px solid #dbe3d4;margin-top:18px;padding-top:14px}
#account-dialog summary{cursor:pointer;font-weight:700;padding:5px 0}
#account-message{color:#655130;white-space:pre-line}
.history-list{max-height:380px;overflow:auto}
.history-row{display:grid;gap:5px;border-bottom:1px solid #dbe3d4;padding:15px 0}
.history-row b{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}
.history-row b span{color:#8e6b1a}
.history-row time,.history-row small{font-size:13px;color:#526650}
@media(max-width:650px){.topbar{flex-wrap:wrap;gap:12px}.header-actions{flex-wrap:wrap;gap:8px}.header-actions .cp-label{display:none}.sync-bar{padding:8px 20px}.account-actions>*{flex:1}.history-row b{display:block}.history-row b span{display:block}}

/* Star rewards and tactile puzzles. */
.puzzle-page{padding:30px 0 55px}.puzzle-heading{display:flex;justify-content:space-between;align-items:center;gap:24px;margin:24px 0 30px}.puzzle-heading h1{font-size:clamp(29px,4vw,48px);line-height:1.15;margin:12px 0}.puzzle-heading p{color:#65745f;max-width:600px}.puzzle-heading em{color:#547b58}.puzzle-wallet{display:flex;align-items:center;gap:15px;padding:18px 24px;border:1px solid #e8d8ac;border-radius:22px;background:#fff7dc;min-width:225px;font-size:14px}.puzzle-wallet strong{font-size:32px;color:#76602d}.puzzle-wallet small{display:block;font-size:11px;margin-top:4px;color:#786a4d}.wallet-star{font-size:40px;color:#cda24e}.puzzle-rule{display:flex;align-items:center;flex-wrap:wrap;gap:18px;background:#edf2e4;border-radius:15px;padding:18px 24px;margin-bottom:25px}.puzzle-rule b{color:#426749}.puzzle-rule span{font-size:14px;color:#66765b}.puzzle-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.puzzle-card{display:block;text-align:left;padding:0;background:#fffdf7;color:inherit;border:1px solid #dce4d3;border-radius:24px;overflow:hidden;cursor:pointer;transition:transform .2s,box-shadow .2s}.puzzle-card:hover{transform:translateY(-4px);box-shadow:0 14px 25px #354e3312}.puzzle-cover{position:relative;aspect-ratio:4/3;overflow:hidden;background:#e8eddf}.puzzle-cover img{width:100%;height:100%;object-fit:cover}.puzzle-cover>span{position:absolute;bottom:14px;right:14px;background:#fffdf5;border-radius:30px;padding:7px 13px;font-size:12px;font-weight:800}.puzzle-card-body{padding:22px}.puzzle-card-body h2{font-size:22px;margin:0 0 10px}.puzzle-card-body p{font-size:13px;color:#697660;min-height:40px}.puzzle-card-body>div{display:flex;justify-content:space-between;gap:8px;font-size:11px}.puzzle-card-body small{display:block;color:#87907e;margin-top:12px;font-size:11px}.puzzle-card progress{appearance:none;width:100%;height:7px;border:0;background:#e8eddf;border-radius:8px;margin:12px 0}.puzzle-card progress::-webkit-progress-bar{background:#e8eddf;border-radius:8px}.puzzle-card progress::-webkit-progress-value{background:#739c67;border-radius:8px}.puzzle-card progress::-moz-progress-bar{background:#739c67;border-radius:8px}.puzzle-info{background:#edf2e4;border-radius:14px;padding:14px 18px;font-size:14px;line-height:1.6;margin:18px 0}.puzzle-workspace{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:32px;align-items:start}.puzzle-board{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));grid-template-rows:repeat(var(--rows),minmax(0,1fr));border:7px solid #dfdccb;border-radius:12px;overflow:hidden;background:#edeadd;box-shadow:0 6px 0 #cac7b6}.puzzle-slot{padding:0;min-width:0;min-height:0;display:grid;place-items:center;background-color:transparent;background-repeat:no-repeat;border:1px dashed #c6c9b5;color:#8b937b;cursor:pointer;font-family:inherit;font-weight:700;font-size:18px;touch-action:manipulation}.puzzle-slot:not(.is-placed):hover{background:#e3e6d1}.puzzle-slot.is-placed{border:.5px solid #ffffff28;opacity:1;cursor:default}.puzzle-slot span{font-size:clamp(12px,2vw,20px)}.puzzle-help{display:flex;align-items:center;gap:10px;font-size:13px;margin:22px 0}.puzzle-help input{width:21px;height:21px;accent-color:#537c55}.puzzle-model summary{cursor:pointer;font-size:13px;padding:8px 0}.puzzle-model img{display:block;max-width:280px;width:100%;border-radius:10px;margin-top:8px}.puzzle-side{padding:24px;border:1px solid #dbe4d2;border-radius:22px;background:#fffdf7}.puzzle-side h2{margin:0 0 8px;font-size:24px}.puzzle-side>p{font-size:13px;line-height:1.7}.puzzle-feedback{min-height:44px;color:#55744a;font-weight:700}.puzzle-tray{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;max-height:360px;overflow:auto;padding:5px;margin:15px -5px}.puzzle-tray>p{grid-column:1/-1;font-size:13px;color:#819075;padding:20px 10px;text-align:center;background:#f2f4e9;border:1px dashed #d4ddc6;border-radius:12px}.puzzle-piece{position:relative;aspect-ratio:1;background-repeat:no-repeat;border:2px solid #fdfbf3;border-radius:8px;cursor:pointer;box-shadow:0 2px 5px #40543828;touch-action:manipulation}.puzzle-piece.is-selected{outline:3px solid #4d7850;outline-offset:1px;transform:scale(.95)}.puzzle-piece span{position:absolute;bottom:4px;right:4px;min-width:23px;background:#fffdf4ee;color:#3c5b42;border-radius:7px;padding:3px;font-size:12px;font-weight:800}.puzzle-buy{width:100%;margin-top:10px}.puzzle-buy:disabled{opacity:.55;cursor:default}.puzzle-buy-note{color:#768268;font-size:12px!important}.puzzle-celebration{background:#f6ebc7;color:#71602e;text-align:center;border-radius:18px;padding:24px;margin:0 0 30px;font-size:25px;font-weight:800}.puzzle-celebration small{display:block;font-size:13px;font-weight:400;margin-top:8px}.puzzle-page button:focus-visible{outline:3px solid #39725b;outline-offset:3px}
@media(max-width:850px){.puzzle-heading{align-items:flex-start;flex-direction:column;gap:10px}.puzzle-wallet{min-width:0}.puzzle-cards{grid-template-columns:1fr}.puzzle-card{display:grid;grid-template-columns:40% 60%}.puzzle-cover{aspect-ratio:auto;height:100%}.puzzle-workspace{grid-template-columns:1fr}.puzzle-tray{grid-template-columns:repeat(5,minmax(0,1fr));max-height:250px}.puzzle-side{padding:20px}.puzzle-heading h1{font-size:32px}.header-actions{flex-wrap:wrap}}
@media(max-width:420px){.puzzle-card{display:block}.puzzle-cover{aspect-ratio:4/3}.puzzle-tray{grid-template-columns:repeat(4,minmax(0,1fr))}.puzzle-board{border-width:4px}.puzzle-rule{gap:8px}.puzzle-heading h1{font-size:28px}.header-actions button{font-size:12px}}

/* Deux matières, une progression commune. */
.subject-nav{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 0 4px}.subject-nav p{margin:5px 0;color:var(--muted);font-size:14px}.subject-buttons{display:flex;gap:10px}.subject-buttons button{display:flex;align-items:center;gap:12px;border:1px solid #d4ddce;border-radius:16px;background:#fffdf7;color:#58725c;padding:14px 24px;font-size:22px;font-weight:800;min-height:58px}.subject-buttons button span{font-size:15px}.subject-buttons .selected{background:#27644f;color:white;border-color:#27644f;box-shadow:0 5px 16px #27644f18}.subject-buttons button:focus-visible{outline:3px solid #d8a84a;outline-offset:4px}.reading-text{white-space:pre-line;text-align:left;line-height:1.9;letter-spacing:.025em;font-size:clamp(23px,3.6vw,32px);max-width:700px;background:#fffcf4;border:1px solid #e4e5d5;border-radius:18px;padding:24px;width:100%;color:#293f32}.reading-text[hidden]{display:none}.letter-display{font-size:clamp(48px,9vw,82px);font-weight:700;line-height:1.4;overflow-wrap:anywhere}.visual:has(.reading-text),.visual:has(.letter-display),.visual:has(#listen-word){flex-direction:column;gap:18px}.oral-instructions{font-size:16px;line-height:1.7;max-width:650px;text-align:left}.adult-help{font-size:14px;text-align:left;max-width:600px;width:100%;border-top:1px solid #dce2d5;padding-top:14px}.adult-help summary{cursor:pointer;color:#61715d}.adult-help p{font-size:19px}.adult-validation{background:#eff3e8;padding:22px;border-radius:16px;text-align:center}.adult-validation p{font-size:14px;line-height:1.6}.adult-validation button{margin:8px}.dictation-form{display:flex;align-items:center;flex-direction:column;gap:14px}.dictation-form label{font-weight:700}.dictation-form input{width:min(100%,380px);border:2px solid #8cae8e;border-radius:14px;padding:14px;font:inherit;font-size:25px;font-weight:700;text-align:center;background:#fff;color:#263f30}.answers .answer{overflow-wrap:anywhere;max-width:100%}.topbar{height:auto;min-height:100px;padding-top:16px;padding-bottom:16px;gap:18px}.header-actions{justify-content:flex-end}.cp-label{white-space:nowrap}.progress-table small{white-space:normal}
@media(max-width:800px){.topbar{flex-wrap:wrap;min-height:110px;height:auto!important}.header-actions{justify-content:flex-start;gap:8px}.header-actions .cp-label{display:inline-block;font-size:11px}.subject-nav{align-items:flex-start;flex-direction:column;gap:12px}.subject-buttons{width:100%}.subject-buttons button{flex:1;justify-content:center;padding:13px 16px}.subject-nav .eyebrow{font-size:11px}.subject-nav p{display:none}.reading-text{padding:18px}.adult-validation{padding:16px}.exercise-nav .mini-label{font-size:11px;text-align:right;max-width:55%}.progress-table{font-size:12px}.progress-table td,.progress-table th{padding:8px 5px}}
@media(max-width:420px){.header-actions .quiet{font-size:11px;padding:8px 6px}.answers{gap:10px}.answers .answer{font-size:20px;min-width:0;padding:14px}.subject-buttons button{font-size:20px}.subject-buttons button span{font-size:14px}.dictation-form input{box-sizing:border-box}}
