:root{--ink:#183e36;--muted:#60736b;--paper:#fffdf6;--cream:#f3f3e7;--line:#d6dece;--leaf:#dfe8d4;--orange:#f4b18b;--blue:#e1e8f6;--yellow:#f2d66f;--radius:20px;font-family:"Avenir Next","Trebuchet MS",system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0;line-height:1.55}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}a{color:inherit}button{color:inherit}button:disabled{cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #ad591c;outline-offset:4px}button:disabled{opacity:.64}[hidden]{display:none!important}.skip{position:fixed;top:-100px;left:20px;background:var(--ink);color:white;padding:12px 20px;z-index:100}.skip:focus{top:12px}.topbar,.navigation,main,footer{width:min(1180px,calc(100% - 64px));margin-inline:auto}.topbar{height:100px;display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;gap:13px;align-items:center;text-decoration:none}.brand-mark{display:grid;place-items:center;width:48px;height:48px;background:var(--ink);color:#fffdf6;border-radius:50%;font-size:38px;line-height:1}.brand small,.brand strong{display:block}.brand small{font-size:10px;letter-spacing:2.4px;font-weight:800}.brand strong{font-size:19px;letter-spacing:-.5px}.profile-button{display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:transparent;border-radius:25px;padding:9px 15px;min-height:44px}.profile-dot{width:8px;height:8px;border-radius:50%;background:#89a47c}.navigation{display:flex;align-items:center;gap:6px;border-block:1px solid var(--line);padding:8px 0}.navigation button{background:none;border:0;padding:12px 17px;border-radius:9px;font-size:14px;font-weight:700}.navigation button[aria-current=page]{background:var(--leaf)}.age{font-size:12px;color:var(--muted);margin-left:auto}.nav-count{display:inline-grid;place-items:center;min-width:21px;height:21px;background:var(--orange);border-radius:50%;font-size:11px;margin-left:4px}main{padding-block:30px 70px;min-height:calc(100vh - 250px)}.hero{display:grid;grid-template-columns:1.3fr 1fr;gap:30px;align-items:center;padding:35px 0 42px}.eyebrow{display:block;font-size:11px;letter-spacing:2.1px;font-weight:800;color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(38px,4.7vw,62px);line-height:1.07;letter-spacing:-2.3px;margin:20px 0}h1 em{font-family:Georgia,serif;font-weight:400}h2{font-size:28px;letter-spacing:-.9px;line-height:1.18}h3{font-size:20px;letter-spacing:-.4px;line-height:1.25}.hero-copy>p{max-width:510px;font-size:17px;color:var(--muted);margin-bottom:25px}.hero-actions,.actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.primary,.secondary{border:1px solid var(--ink);border-radius:11px;min-height:48px;padding:12px 20px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:16px;text-decoration:none}.primary{background:var(--ink);color:var(--paper)}.primary:hover{background:#28594a}.secondary{background:transparent}.secondary:hover{background:var(--leaf)}.text-button,.back{border:0;background:none;padding:10px 0;text-decoration:underline;text-underline-offset:4px;min-height:44px;font-size:13px}.back{text-decoration:none;font-weight:700;font-size:14px}.hero-facts{display:flex;gap:23px;margin-top:32px;flex-wrap:wrap}.hero-facts span{font-size:12px;color:var(--muted);max-width:125px;line-height:1.4}.hero-facts strong{display:block;font-size:24px;letter-spacing:-.8px;color:var(--ink);margin-bottom:2px}.camp-map{position:relative;background:var(--cream);border-radius:46% 46% 36% 36%;padding:23px 15px 10px;transform:rotate(1deg);max-width:450px;min-height:330px}.camp-map svg{width:100%;height:auto;display:block;overflow:visible}.camp-map svg text{text-anchor:middle;dominant-baseline:auto;font-family:Georgia,serif;font-size:31px;fill:var(--ink)}.camp-map svg .map-caption{font-size:15px;font-style:italic}.map-label{display:block;text-align:center;letter-spacing:2px;font-size:9px;font-weight:800;transform:rotate(-1deg)}.map-note{display:block;text-align:center;font-family:Georgia,serif;font-size:17px;font-style:italic;margin-top:-10px;padding-bottom:13px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:24px 0}.section-heading h2{margin:8px 0 0}.quiet{font-size:13px;color:var(--muted)}.world-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.world-tile{background:var(--cream);padding:22px;text-align:left;border:1px solid transparent;border-radius:var(--radius);display:flex;flex-direction:column;min-height:275px;position:relative;transition:transform .15s,border-color .15s}.world-tile:nth-child(4n+2){background:#edf0df}.world-tile:nth-child(4n+3){background:#e8edf5}.world-tile:nth-child(4n){background:#f5e9df}.world-tile:hover{transform:translateY(-3px);border-color:#81977b}.world-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.world-icon{font-family:Georgia,serif;font-size:34px;line-height:1}.world-number{font-size:11px;color:var(--muted)}.world-tile h3{margin-bottom:9px}.world-tile p{font-size:12px;color:var(--muted);line-height:1.5;margin-bottom:20px}.world-bottom{margin-top:auto;font-size:11px;font-weight:700;display:flex;justify-content:space-between;align-items:center}.level-dots{display:flex;gap:5px;margin-top:14px}.level-dots i{display:block;height:4px;flex:1;border-radius:4px;background:#cad4c2}.level-dots i.open{background:#6f9070}.level-dots i.done{background:var(--ink)}.world-arrow{font-size:20px;line-height:1}.resume{background:var(--ink);border-radius:16px;color:var(--paper);padding:20px 25px;display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:36px}.resume p{margin:0;font-size:13px;color:#c7d7c8}.resume strong{display:block;font-size:18px}.resume button{background:var(--orange);color:var(--ink);border-color:var(--orange);white-space:nowrap}.rules{padding:28px;margin-top:30px;border:1px solid var(--line);border-radius:var(--radius);background:#fbfbf2}.rules h2{margin-top:9px}.rule-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.rule-columns p{font-size:14px;color:var(--muted)}.rule-columns strong{color:var(--ink)}.page-heading{padding:24px 0 20px}.page-heading p{color:var(--muted);max-width:610px}.world-title{display:flex;align-items:center;gap:20px;padding:22px 0}.world-title .world-icon{font-size:52px;background:var(--cream);border-radius:18px;padding:20px}.world-title h1{font-size:43px;margin:9px 0}.world-title p{color:var(--muted);margin:0;font-size:15px}.lesson{border:1px solid var(--line);border-radius:15px;padding:0 22px;background:var(--cream);margin:8px 0 30px}.lesson summary{cursor:pointer;font-weight:700;padding:19px 0}.lesson-copy{padding:0 0 16px;max-width:780px;font-size:15px}.lesson-copy .example{font-family:Georgia,serif;font-size:22px;background:var(--paper);padding:15px 20px;border-radius:10px;margin-block:15px}.lesson-copy ol{padding-left:21px;color:var(--muted)}.level-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.level-card{padding:23px;border:1px solid var(--line);border-radius:var(--radius);display:flex;flex-direction:column;align-items:start;min-height:300px}.level-card.locked{background:#f4f4ed}.level-number{font-family:Georgia,serif;font-size:46px;color:#91a38c;line-height:1;margin-bottom:22px}.level-card h2{font-size:20px}.level-card p{font-size:13px;color:var(--muted)}.level-card .certificates{margin-top:auto;margin-bottom:18px}.certificates{font-size:12px;display:flex;align-items:center;gap:7px}.stamp{display:grid;place-items:center;width:24px;height:24px;border:1px solid #b7c6ad;border-radius:50%;color:#b7c6ad;font-size:13px}.stamp.got{background:var(--ink);border-color:var(--ink);color:var(--paper)}.lock-note{font-size:12px;color:var(--muted);margin-top:auto}.level-card button{width:100%;font-size:13px;padding-inline:12px}.quiz-bar{display:flex;justify-content:space-between;gap:15px;align-items:center;font-size:13px;color:var(--muted)}.meter{height:5px;background:#e5eadf;margin:18px 0 28px;border-radius:5px;overflow:hidden}.meter span{display:block;width:0;background:#759873;height:100%;transition:width .25s}.question-card{max-width:850px;margin:0 auto;padding:38px 45px;background:var(--cream);border:1px solid #e3e7d8;border-radius:25px}.question-eyebrow{font-size:11px;font-weight:800;letter-spacing:1.5px;color:var(--muted);text-transform:uppercase}.question-card h1{font-size:clamp(25px,3vw,37px);line-height:1.25;letter-spacing:-.8px;margin:16px 0 24px}.question-context{font-size:16px;color:var(--muted)}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}.fields.single{grid-template-columns:minmax(0,340px)}.answer-field label,.answer-field legend{display:block;font-size:13px;font-weight:700;margin-bottom:8px}.answer-field input{min-width:0;width:100%;max-width:100%;border:2px solid #c7d2bf;border-radius:11px;background:var(--paper);font-size:26px;padding:12px 16px;height:64px;color:var(--ink);appearance:textfield}.answer-field input::-webkit-inner-spin-button{appearance:none}.answer-field fieldset{border:0;padding:0;margin:0}.choices{display:flex;gap:8px;flex-wrap:wrap}.choice{background:var(--paper);border:2px solid #c7d2bf;border-radius:10px;min-width:55px;min-height:55px;padding:10px 15px;font-weight:700}.choice[aria-pressed=true]{border-color:var(--ink);background:#dde9d5}.field-correct input{border-color:#6c9668}.field-wrong input{border-color:#b16841}.field-result{font-size:12px;margin-top:5px}.question-actions{display:flex;gap:20px;align-items:center;flex-wrap:wrap;margin:20px 0 0}.feedback{border-radius:14px;padding:20px 23px;margin-top:25px;border:1px solid #b7cbb0;background:#e7efdd}.feedback.wrong{border-color:#dfb28f;background:#fae8d9}.feedback h2{font-size:21px;margin:0 0 8px}.feedback p{margin-bottom:8px;font-size:15px}.feedback p:last-child{margin-bottom:0}.feedback ol{padding-left:22px;font-size:14px}.hint{padding:15px 18px;background:#fff4cd;border-radius:12px;font-size:14px;margin:20px 0 0}.quiz-foot{max-width:850px;margin:16px auto;display:flex;justify-content:space-between;align-items:center;color:var(--muted);gap:20px;font-size:12px}.math-chain{display:flex;align-items:center;gap:6px;justify-content:center;margin:24px 0;flex-wrap:wrap}.chain-cell{display:grid;place-items:center;border:2px solid #b9c8ad;border-radius:14px;min-width:60px;height:60px;font-size:23px;background:var(--paper)}.chain-cell.unknown{border-style:dashed;color:#91a38c}.chain-step{text-align:center;min-width:42px;font-size:12px;font-weight:700}.chain-step b{display:block;font-size:23px;font-weight:400;line-height:1}.chain-shortcut{text-align:center;font-size:13px;color:var(--muted)}.array-visual{margin:20px auto;text-align:center;max-width:430px}.array-visual svg{width:100%;max-height:250px}.array-caption{font-size:13px;color:var(--muted)}.summary-card{max-width:850px;margin:30px auto;background:var(--cream);border-radius:26px;padding:45px}.summary-card h1{font-size:43px;margin-top:12px}.result-number{font-family:Georgia,serif;font-size:78px;line-height:1;color:var(--ink);letter-spacing:-3px}.result-number small{font-family:inherit;font-size:28px;letter-spacing:0;color:var(--muted)}.result-split{display:grid;grid-template-columns:auto 1fr;gap:35px;align-items:center;margin:30px 0}.result-copy{font-size:15px}.result-copy p{margin-bottom:7px}.summary-note{font-size:14px;background:#e4ecd8;padding:20px;border-radius:14px;margin:20px 0}.summary-card details{font-size:14px;border-block:1px solid var(--line);padding:17px 0;margin:25px 0}.summary-card summary{font-weight:700;cursor:pointer}.result-item{padding:18px 0;border-bottom:1px solid var(--line)}.result-item p{margin-bottom:8px}.result-item:last-child{border-bottom:0}.result-status{font-size:11px;font-weight:800;letter-spacing:.5px;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:30px}.stat{padding:25px;background:var(--cream);border-radius:17px}.stat strong{display:block;font-family:Georgia,serif;font-size:43px;line-height:1.15}.stat span{font-size:13px;color:var(--muted)}.notebook-row{padding:22px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center}.notebook-row h2{font-size:20px;margin:0 0 5px}.notebook-row p{font-size:13px;color:var(--muted);margin:0}.notebook-badges{display:flex;gap:7px;margin:12px 0}.notebook-badges span{border:1px solid var(--line);border-radius:8px;padding:4px 10px;font-size:12px}.notebook-badges span.open{background:var(--leaf)}.history{margin-top:35px}.history h2{font-size:23px}.history p{border-bottom:1px solid var(--line);padding:11px 0;font-size:13px}.notice,.message{padding:15px 20px;border-radius:12px;background:#fff0be;font-size:14px;margin:0 0 20px}.notice button{border:0;background:none;text-decoration:underline;font-weight:700}.message{background:#e5eddc}footer{border-top:1px solid var(--line);padding:25px 0;display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:11px}.modal{position:fixed;inset:0;background:#17372ec9;display:grid;place-items:center;z-index:20;padding:20px}.modal-card{position:relative;width:min(500px,100%);max-height:85vh;overflow:auto;background:var(--paper);padding:35px;border-radius:23px;box-shadow:0 20px 70px #071e2444}.modal-card h2{margin-top:12px}.close{position:absolute;right:15px;top:10px;border:0;background:none;font-size:32px;width:44px;height:44px}.profile-row{display:flex;gap:15px;align-items:center;border:1px solid var(--line);background:var(--cream);padding:15px 18px;border-radius:10px;width:100%;margin:10px 0;text-align:left}.profile-row[aria-pressed=true]{border-color:var(--ink);font-weight:700}.profile-row small{margin-left:auto;font-weight:400}.profile-add{display:flex;gap:8px;margin-top:8px}.profile-add input{min-width:0;width:100%;border:1px solid var(--line);border-radius:10px;padding:10px 13px;font-size:16px}.modal-card form{margin:25px 0}.modal-card label{font-size:13px;font-weight:700}#profile-error{font-size:13px;margin:6px 0;color:#a24428}
@media(max-width:1050px){.world-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.world-tile{min-height:235px}.level-grid{grid-template-columns:repeat(2,1fr)}.camp-map{min-height:0}.hero{gap:20px}.hero-facts{gap:16px}.age{display:none}.hero-actions{gap:5px}.world-top{margin-bottom:17px}}
@media(max-width:650px){.topbar,.navigation,main,footer{width:calc(100% - 32px)}.topbar{height:83px}.brand strong{font-size:15px}.brand small{font-size:8px;letter-spacing:1.6px}.brand-mark{width:38px;height:38px;font-size:29px}.profile-button{font-size:13px;padding:8px 10px}.navigation{gap:0;justify-content:space-between}.navigation button{padding:11px 9px;font-size:12px}.hero{display:block;padding-top:20px;padding-bottom:20px}h1{letter-spacing:-1.5px}.hero-copy>p{font-size:16px}.hero-facts{gap:20px;margin-top:24px}.hero-facts strong{font-size:21px}.hero-facts span{max-width:95px;font-size:11px}.camp-map{display:none}.section-heading{align-items:start;margin:27px 0 18px}.section-heading h2{font-size:25px}.section-heading>.quiet{font-size:11px;max-width:95px;text-align:right}.world-grid{gap:11px}.world-tile{padding:17px;min-height:255px}.world-tile h3{font-size:18px}.world-tile p{font-size:11px}.world-tile .world-bottom{font-size:10px}.world-icon{font-size:29px}.world-number{font-size:10px}.world-top{margin-bottom:20px}.rules{padding:22px}.rule-columns{grid-template-columns:1fr;gap:0}.resume{padding:18px;gap:12px}.resume strong{font-size:15px}.resume p{font-size:11px}.resume button{padding:10px 13px;font-size:12px}.world-title{gap:14px}.world-title .world-icon{font-size:35px;padding:15px}.world-title h1{font-size:30px;letter-spacing:-1px}.world-title p{font-size:13px}.level-grid{gap:11px}.level-card{padding:18px;min-height:300px}.level-card h2{font-size:18px}.level-card p{font-size:12px}.certificates{font-size:10px;gap:5px;flex-wrap:wrap}.level-number{font-size:39px}.question-card{padding:25px 20px;border-radius:18px}.question-card h1{font-size:25px}.quiz-bar{font-size:11px;gap:8px;flex-wrap:wrap}.quiz-bar .back{font-size:12px}.quiz-bar #quiz-context{order:3;width:100%;text-align:center}.fields{grid-template-columns:1fr;gap:18px}.answer-field input{height:59px}.question-actions{gap:14px}.question-actions .primary{flex:1}.question-actions .text-button{font-size:12px}.quiz-foot{font-size:10px;gap:12px}.quiz-foot .text-button{font-size:11px;white-space:nowrap}.chain-cell{min-width:45px;height:47px;font-size:19px}.chain-step{min-width:30px;font-size:10px}.math-chain{gap:3px}.stats{gap:9px}.stat{padding:17px 12px}.stat strong{font-size:33px}.stat span{font-size:11px}.notebook-row{gap:10px}.notebook-row h2{font-size:17px}.notebook-row .secondary{font-size:12px;padding:10px 13px}.notebook-badges{gap:5px;flex-wrap:wrap}.notebook-badges span{font-size:10px;padding:4px 8px}.summary-card{padding:27px 22px}.summary-card h1{font-size:35px}.result-split{gap:20px}.result-number{font-size:62px}.result-number small{font-size:23px}.result-copy{font-size:13px}.summary-card .actions{flex-direction:column;align-items:stretch}.summary-note{font-size:13px}footer{flex-wrap:wrap;justify-content:center;text-align:center;font-size:10px;gap:12px}.modal-card{padding:30px 23px}.profile-add .primary{padding:12px;font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}

.chain-link{display:inline-flex;align-items:center;gap:6px}.world-tile h3,.world-title h1{overflow-wrap:anywhere}
@media(max-width:650px){.chain-link{gap:3px}}

.paused-note{display:block;font-size:11px;font-weight:700;margin-top:10px}.level-card .paused-note{color:var(--ink);margin-top:0}

:root{--ink:#283f4b;--muted:#65767a;--leaf:#dde8dc;--cream:#f2f2e9;--line:#d7ded8}.clues-map{background:#eeeee4}.clues-map .clue-label{font:700 20px "Trebuchet MS",sans-serif}.fields,.fields.single{grid-template-columns:repeat(2,minmax(0,1fr))}.selection-field{grid-column:1/-1}.selection-instruction{font-size:13px;color:var(--muted);margin:0 0 13px;line-height:1.6}.data-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.data-choice{display:flex;align-items:start;gap:12px;padding:16px;text-align:left;min-height:66px;background:var(--paper);border:2px solid #c5d1c9;border-radius:12px;font-size:16px;line-height:1.5;overflow-wrap:anywhere}.data-choice[aria-pressed=true]{background:#e2ebdc;border-color:var(--ink)}.data-tick{flex:0 0 23px;display:grid;place-items:center;width:23px;height:23px;border:1px solid #b1c0b2;border-radius:50%;font-size:16px;line-height:1.2}.data-choice[aria-pressed=true] .data-tick{background:var(--ink);border-color:var(--ink);color:white}.data-choice.item-keep{border-color:#69926c}.selection-count{font-size:12px;color:var(--muted);margin:12px 0 0}.answer-field legend,.answer-field label{font-size:15px;line-height:1.5}.choices{display:grid;grid-template-columns:1fr}.choice{text-align:left;font-size:16px;line-height:1.5}.field-result{line-height:1.6}.field-wrong .field-result{color:#8e4a2b}.question-context{font-size:17px;line-height:1.8;padding:20px;background:#fffdf6;border-radius:13px;margin-bottom:25px}.diagnosis{padding-left:23px;font-size:15px;line-height:1.7}.diagnosis li+li{margin-top:16px}.feedback p{line-height:1.7}.method-bar{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:25px}.method-sheet{max-width:880px;margin:auto;padding:40px 45px;border:1px solid var(--line);border-radius:22px;background:#fffef9}.method-sheet h1{font-size:45px}.method-sheet>p{font-size:18px;line-height:1.8}.method-steps{padding:0;list-style:none;counter-reset:method;display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:30px 0}.method-steps li{padding:23px;background:var(--cream);border-radius:15px;counter-increment:method}.method-steps li::before{content:counter(method);display:block;font-size:26px;font-family:Georgia,serif;color:#6e8c7e;margin-bottom:11px}.method-steps strong,.method-steps span{display:block}.method-steps strong{font-size:17px;margin-bottom:8px}.method-steps span{font-size:15px;line-height:1.8;color:var(--muted)}.method-reminder{background:#e9e0ef;padding:24px;border-radius:15px;margin:28px 0}.method-reminder p{margin:9px 0 0;line-height:1.8}.method-demo{border-block:1px solid var(--line);padding:26px 0;margin-bottom:25px}.method-demo h2{font-size:26px}.method-demo p{line-height:1.9;font-size:16px}.demo-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.demo-tabs button{border:1px solid var(--ink);border-radius:10px;padding:12px 16px;background:transparent;font-size:14px;min-height:48px}.demo-tabs button[aria-pressed=true]{background:var(--ink);color:white}#demo-explanation{padding:20px;background:var(--leaf);border-radius:13px}#demo-explanation p{margin:0}
@media(max-width:650px){.fields,.fields.single,.data-choices{grid-template-columns:1fr}.data-choice{padding:14px;font-size:16px;min-height:61px}.question-context{padding:17px;font-size:16px}.answer-field legend,.answer-field label{font-size:14px}.method-sheet{padding:27px 22px}.method-sheet h1{font-size:34px}.method-sheet>p{font-size:17px}.method-steps{grid-template-columns:1fr;gap:12px}.method-steps li{padding:20px}.method-bar .secondary{font-size:12px;padding:10px 13px}.method-reminder{padding:20px}.method-demo h2{font-size:23px}.diagnosis{font-size:14px}.fields .answer-field:not(.selection-field) input{max-width:340px}}
@media print{body{background:white;color:#111}.topbar,.navigation,footer,.notice,.message,.modal,.view:not(#method),.method-bar,.method-sheet>.actions{display:none!important}main{width:100%;padding:0}#method{display:block!important}.method-sheet{padding:0;border:0;max-width:none}.method-sheet h1{font-size:26pt}.method-steps{gap:12px}.method-steps li,.method-reminder,.method-demo{break-inside:avoid}.method-steps strong{font-size:12pt}.method-steps span,.method-sheet>p{font-size:11pt}.demo-tabs{display:none}}

.tri-table{margin-top:12px;font-size:13px}.tri-table summary{cursor:pointer;padding:12px 0;font-weight:700;min-height:44px}.tri-columns{display:grid;grid-template-columns:1fr 1fr;gap:14px}.tri-columns section{background:var(--paper);padding:17px;border:1px solid var(--line);border-radius:12px}.tri-columns strong{font-size:13px;line-height:1.6}.tri-columns ul{padding-left:19px;margin:10px 0 0}.tri-columns li{font-size:13px;line-height:1.7;overflow-wrap:anywhere}.tri-columns li+li{margin-top:7px}@media(max-width:650px){.tri-columns{grid-template-columns:1fr}}

/* Petits mots, preuves et couleurs des quatre familles. */
:root{--ink:#754634;--muted:#78695e;--leaf:#e9e3d0;--cream:#f6f0e8;--line:#dfd7cb;--orange:#ead28b;--paper:#fffdf7}.homophones-map{background:#f0e8db}.homophone-label{font:700 25px Georgia,serif;fill:#754634;text-anchor:middle}.homophone-symbol{font:700 30px Georgia,serif;fill:#754634;text-anchor:middle}.world-tile:nth-child(1){background:#f5e7db}.world-tile:nth-child(2){background:#e7eef0}.world-tile:nth-child(3){background:#f6edce}.world-tile:nth-child(4){background:#e7ecdf}.method-reminder{background:#e9eef0}.demo-source,.demo-result{display:grid;gap:5px;padding:13px 0;border-bottom:1px solid #c9c4af;margin:0 0 12px!important}.demo-source span,.demo-result span{font-size:11px;text-transform:uppercase;letter-spacing:1px;font-weight:700}.demo-source strong,.demo-result strong{font-size:19px;line-height:1.7}.demo-result strong{color:#754634}.input-note,.focus-note{font-size:12px;color:var(--muted);line-height:1.7;margin:8px 0 0;max-width:480px}.focus-note{margin:-17px 0 20px}.method-sheet>p{max-width:760px}.answer-field:has(input[inputmode=text]){grid-column:1/-1}.answer-field input[inputmode=text]{max-width:480px;font-size:24px}.method-steps b{color:var(--ink);text-decoration:underline;text-underline-offset:3px}.data-choice.item-keep{border-color:#708a76}.sentence{font-size:21px;color:var(--ink);line-height:1.9}.sentence mark,.data-choice mark{background:#f7dfa2;color:var(--ink);padding:3px 6px;border-radius:5px;font-weight:700;text-decoration:underline;text-underline-offset:4px;box-decoration-break:clone;-webkit-box-decoration-break:clone}.question-context{white-space:pre-line}.method-reminder p+p{margin-top:15px}
@media(max-width:650px){.brand strong{font-size:14px;max-width:175px;line-height:1.2}.demo-source strong,.demo-result strong{font-size:18px}.world-tile p{font-size:13px}.world-tile .world-bottom{font-size:11px}.world-tile{min-height:260px}.question-actions .text-button{font-size:13px}.answer-field input[inputmode=text]{font-size:22px}.sentence{font-size:19px}}
@media print{.sentence mark{background:none;border-bottom:2px solid #333}.method-sheet{color:#111}}
.homophone-label{font-size:22px}.world-top{flex-direction:column;align-items:flex-start;gap:12px}.world-top .world-icon{font-size:22px;white-space:nowrap}.world-top .world-number{font-size:10px;letter-spacing:.7px}.world-title .world-icon{font-size:25px;white-space:nowrap;padding:16px}.world-title>div{min-width:0}
@media(max-width:650px){.world-title{display:block}.world-title>.world-icon{display:inline-block;margin-bottom:12px}}
.correction-detail{margin:16px 0}.correction-detail summary{min-height:44px;padding:10px 0;cursor:pointer;font-size:14px;font-weight:700}.correction-detail p{margin-top:10px}

/* Le laboratoire des opérations et son entraînement fil rouge. */
:root{--ink:#324f77;--muted:#66748a;--leaf:#e0e8ef;--cream:#eef2f6;--line:#d7dfe8;--orange:#f0d28a}.world-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.world-tile:nth-child(1){background:#e5edf4}.world-tile:nth-child(2){background:#f7edcf}.world-tile:nth-child(3){background:#e8eede}.world-tile:nth-child(4){background:#efe5df}.world-tile:nth-child(5){background:#e7e4f0}.world-tile:nth-child(6){background:#e0ece8}.multidiv-map{background:#e8edf0}.math-label{font:700 23px Georgia,serif;fill:#324f77;text-anchor:middle}.evaluation-hub{margin:35px 0;padding:30px;background:#f5f0df;border:1px solid #e4d7ad;border-radius:22px}.evaluation-hub>div>p{max-width:750px;font-size:15px;line-height:1.8;color:#6f6a59}.evaluation-hub h2{margin-top:12px}.exam-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:22px}.exam-card{background:var(--paper);padding:23px;border-radius:15px;display:flex;flex-direction:column;border:1px solid #e4d7ad}.exam-card h3{margin:12px 0}.exam-card p{font-size:13px;line-height:1.7;color:var(--muted)}.exam-card button{margin-top:auto;font-size:13px}.demo-result strong{color:var(--ink)}.method-reminder{background:#e6eadb}.objects-demo{padding:20px;margin:20px 0 0;background:var(--paper);border-radius:14px}.object-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;max-width:250px;margin:0 auto 17px}.object-grid i{display:grid;place-items:center;border:1px solid #afbdcc;background:#e6edf4;border-radius:5px;font-style:normal;font-size:12px;height:31px}.object-grid i:nth-child(8n+5),.object-grid i:nth-child(8n+6),.object-grid i:nth-child(8n+7),.object-grid i:nth-child(8n+8){background:#f2e5bd}.objects-demo p{text-align:center;font-size:13px!important}.question-context{color:var(--ink)}
@media(max-width:1050px){.world-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.exam-grid{grid-template-columns:1fr}.exam-card{padding:22px}.exam-card button{align-self:flex-start}.evaluation-hub{padding:25px}}
@media(max-width:650px){.world-tile{min-height:275px}.world-top .world-icon{font-size:27px}.evaluation-hub{padding:22px 18px;margin-top:30px}.evaluation-hub h2{font-size:25px}.evaluation-hub>div>p{font-size:14px}.method-sheet h1{font-size:32px}.exam-card{padding:19px}.world-title .world-icon{font-size:27px}}
@media print{.objects-demo{padding:8px}.object-grid i{height:20px;font-size:9px}.method-steps li{break-inside:avoid}}
.practice-note{padding:17px 21px;background:#f1f4e9;border-left:3px solid #8d9b70;border-radius:0 12px 12px 0;margin:0 0 25px;font-size:14px;color:var(--muted);line-height:1.8}.practice-note strong{color:var(--ink)}

/* Les trois nouveaux ateliers et la table que je peux explorer. */
.world-tile:nth-child(7){background:#f3e7d4}.world-tile:nth-child(8){background:#dfeaf1}.world-tile:nth-child(9){background:#e9e3f2}
.question-visual{margin:22px 0;padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--paper,#fffdf6)}
.visual-help{margin:10px 0;font-size:15px;line-height:1.6;color:var(--muted)}
.pyth-scroll{max-width:100%;overflow-x:auto;padding:4px 0 10px;-webkit-overflow-scrolling:touch}
.pyth-table{border-collapse:separate;border-spacing:3px;min-width:460px;width:100%;table-layout:fixed;text-align:center;font-variant-numeric:tabular-nums}
.pyth-table th,.pyth-table td{padding:0;height:36px;font-size:14px;border-radius:6px;background:#f0f2ee}
.pyth-table th{background:#e4eaf1;color:var(--ink)}
.pyth-table button{display:block;width:100%;min-width:36px;min-height:36px;padding:3px;border:1px solid transparent;border-radius:6px;font:inherit;color:inherit;background:transparent;cursor:pointer}
.pyth-table button:hover{border-color:var(--ink);background:#e0e9f0}.pyth-table button:focus-visible{outline:3px solid #375e9b;outline-offset:1px}
.pyth-table .chosen-line{background:#e6edcf}.pyth-table .chosen-axis{background:#d9e8ba;font-weight:800}.pyth-table .chosen-cell{background:#f0d28a;color:#263d5b;font-weight:900;box-shadow:inset 0 0 0 2px #a27b25}
.code-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}
.code-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:14px 8px;min-height:80px;border:1px solid var(--line);border-radius:12px;background:white;text-align:center;font-size:16px;overflow-wrap:anywhere}
.code-card strong{font-size:13px;color:var(--muted)}.code-card.anchor-card{border:2px solid #9d7930;background:#fff0c9}
.pythagore-explorer{margin:25px 0;padding:20px;border:1px solid var(--line);border-radius:18px;background:#fffdf6}.pythagore-explorer h2{font-size:23px;margin:0 0 12px}.pythagore-explorer p{line-height:1.6}
.explorer-family{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:14px 0}.explorer-family>*{padding:10px;border-radius:9px;background:#edf1df;text-align:center;font-weight:700}
@media(max-width:650px){.world-grid{grid-template-columns:1fr}.question-visual,.pythagore-explorer{padding:12px}.code-board{grid-template-columns:repeat(2,minmax(0,1fr))}.code-card{font-size:14px}.explorer-family{grid-template-columns:1fr}}
@media print{.pythagore-explorer{break-inside:avoid}.pyth-scroll{overflow:visible}.pyth-table{min-width:0}.pyth-table th,.pyth-table td{height:25px;font-size:10px}.pyth-table button{min-width:0;min-height:25px}.explorer-family{grid-template-columns:repeat(2,minmax(0,1fr))}}
