*{box-sizing:border-box}html{scroll-behavior:smooth;background:var(--bg);color:var(--text);font-family:var(--font);font-size:16px}body{margin:0;font-size:1.125rem;line-height:1.6}button,a,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:var(--link);font-weight:600;text-decoration:none}a:hover,a:focus-visible{text-decoration:underline}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--text);outline-offset:3px}button:disabled{opacity:.45;cursor:default}button:active:not(:disabled){transform:translateY(1px)}h1,h2,h3,p{margin:0}h1,h2,h3{text-wrap:balance;font-weight:500}h1{font-size:clamp(2.5rem,5.2vw,4.25rem);line-height:1.1;max-width:11em}h2{font-size:clamp(1.75rem,3.2vw,2.5rem);line-height:1.2}h3{font-size:1.5rem;line-height:1.3}p{text-wrap:pretty;max-width:60ch}.container{width:min(100% - 48px,1120px);margin:auto}.site-header{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:112px}.brand{color:var(--text);font-size:1.5rem;font-weight:600}.nav{display:flex;gap:24px;align-items:center;font-size:1rem}.plain{border:0;background:none;color:var(--link);font-weight:600;padding:16px 0;min-height:56px}.menu-button{display:none}.btn{display:inline-flex;align-items:center;justify-content:center;min-height:56px;border:2px solid var(--primary);border-radius:999px;padding:12px 24px;background:var(--primary);color:var(--on-primary);font-size:1rem;font-weight:600;line-height:1.3;text-align:center;text-decoration:none;gap:8px}.btn:hover{background:color-mix(in srgb,var(--primary) 90%,var(--text));text-decoration:none}.btn.secondary{background:transparent;color:var(--text);border-color:var(--text)}.btn.secondary:hover{background:var(--panel-left)}.hero{min-height:656px;display:grid;grid-template-columns:1.05fr 1fr;align-items:center;gap:32px}.hero-copy{display:grid;gap:32px;padding:32px 0 64px}.hero .btn{justify-self:start}.hero-art{width:100%;max-width:520px}.hero-art svg{display:block;width:100%;height:auto}.continue{font-size:1rem}.home-section{margin-top:128px;scroll-margin-top:32px}.section-heading{display:grid;gap:16px;margin-bottom:48px}.exercise-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.exercise-card{min-height:284px;padding:32px;border-radius:24px;position:relative;display:flex;flex-direction:column;justify-content:flex-end;color:var(--text);background:var(--panel-left);outline:2px solid transparent;outline-offset:4px}.exercise-card:nth-child(2),.exercise-card:nth-child(3){background:var(--panel-right)}.exercise-card:hover,.exercise-card:focus-visible{outline-color:var(--text);text-decoration:none}.exercise-card .mark{position:absolute;right:24px;top:16px;width:156px;height:156px;transition:transform .2s}.exercise-card:hover .mark{transform:translateY(-4px)}.exercise-card .label{font-size:1rem;margin-bottom:8px}.exercise-card h3{font-size:1.875rem}.exercise-card p{font-size:1rem;max-width:28ch;margin-top:8px}.last-time{font-size:1rem;margin-top:12px}.more-exercises{margin-top:48px}.more-list{display:grid;grid-template-columns:1fr 1fr;gap:0 32px;margin-top:24px}.more-list a{display:flex;justify-content:space-between;gap:16px;padding:24px 0;border-bottom:1px solid var(--hair);color:var(--text)}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:32px}.step-visual{min-height:104px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:24px}.step h3{margin:16px 0}.step-number{font-size:1rem}.pill-row{display:flex;flex-wrap:wrap;gap:16px}.pill{border:2px solid var(--text);background:transparent;color:var(--text);border-radius:999px;min-height:56px;padding:12px 24px;font-size:1rem;font-weight:600}.pill[aria-pressed=true],.pill.selected{background:var(--text);color:var(--bg)}.mini-pill{border:2px solid var(--text);padding:8px 12px;border-radius:999px;font-size:1rem}.mini-pill.selected{background:var(--text);color:var(--bg)}.principles{display:grid;grid-template-columns:1fr 1.4fr;gap:64px}.principle{padding:24px 0;border-bottom:1px solid var(--hair)}.principle:first-child{padding-top:0}.principle h3{margin-bottom:12px}.parent-panel{padding:48px;background:var(--panel-left);border-radius:24px;display:grid;gap:24px}.parent-panel p{color:var(--text)}.disclaimer{font-size:1rem;max-width:70ch}.site-footer{display:flex;justify-content:space-between;gap:24px;padding:64px 0 32px;margin-top:96px;border-top:1px solid var(--hair);font-size:1rem}.dots{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.dot{display:inline-block;width:12px;height:12px;border:2px solid var(--text);border-radius:50%;flex:none}.dot.filled{background:var(--text)}.dot.current{outline:2px solid var(--text);outline-offset:4px}.result-line{display:flex;gap:12px;align-items:center}.muted{color:var(--text-muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.icon{width:24px;height:24px;display:inline-block;vertical-align:middle}.exercise-page{padding-bottom:32px}.gesture{display:flex;align-items:center;gap:16px;min-height:64px}.gesture-line{height:2px;background:var(--text);width:96px}.gesture-circle{border:3px solid var(--text);background:var(--shape-blue);height:48px;width:48px;border-radius:50%}.gesture-target{border:3px solid var(--text);height:56px;width:64px;border-radius:16px}.task-head{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:16px 0 24px}.task-title{font-size:1.5rem}.instruction-row{display:flex;align-items:center;gap:16px;margin:16px 0 24px}.instruction{font-size:clamp(1.5rem,3vw,2rem);font-weight:500;line-height:1.3}.speaker{width:56px;min-width:56px;padding:12px}.game-field{position:relative;touch-action:pan-x pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;border-radius:24px;min-height:300px;padding:24px;background:var(--panel-left);overflow:hidden;color:var(--text)}.game-field button,.game-field select{color:var(--text)}.task-bottom{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-top:24px}.task-bottom .btn{min-height:64px;min-width:128px}.feedback{min-height:40px;font-weight:500;font-size:1.25rem;line-height:1.5;margin-top:16px}.completed .game-field{outline:3px solid var(--success);outline-offset:4px}.completed .game-field{pointer-events:none}.task-note{font-size:1rem;min-height:24px;margin:8px 0}.transition,.done{min-height:560px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:32px;text-align:center}.done h1{max-width:none}.done .actions{display:flex;gap:16px;flex-wrap:wrap;justify-content:center}.rule-badge{display:inline-flex;align-items:center;gap:12px;border:2px solid var(--text);border-radius:999px;padding:8px 24px;font-weight:600}.shape{width:72px;height:72px;border:3px solid var(--text);display:block;flex:none}.shape.circle{border-radius:50%}.shape.square{border-radius:8px}.shape.blue{background:var(--shape-blue)}.shape.sand{background:var(--shape-sand)}.focus-card{width:112px;height:112px;border:2px solid var(--text);border-radius:16px;background:var(--bg);display:flex;align-items:center;justify-content:center;margin:24px auto;touch-action:none}.focus-card.dragging{transform:scale(1.04);box-shadow:var(--drag-shadow);position:relative;z-index:3}.focus-targets{display:grid;grid-template-columns:1fr 1fr;gap:32px}.focus-target{min-height:120px;border:2px solid var(--text);border-radius:16px;background:transparent;display:flex;align-items:center;justify-content:center;gap:24px}.focus-target[aria-pressed=true]{outline:3px solid var(--text);outline-offset:4px;background:var(--bg)}.focus-target .shape{width:56px;height:56px}.reference-word{font-size:3rem;border:2px solid var(--text);border-radius:16px;padding:8px 32px;display:table;margin:8px auto 32px;background:var(--bg);line-height:1.5}.answer-row{display:flex;justify-content:center;gap:24px;flex-wrap:wrap}.answer{background:var(--bg);border:2px solid var(--text);border-radius:16px;padding:16px 24px;min-height:72px;min-width:72px;font-size:1.75rem;line-height:1.3}.answer[aria-pressed=true],.answer.hint{background:var(--panel-right);outline:3px solid var(--text);outline-offset:4px}.number-value{font-size:3rem;text-align:center;line-height:1.3;margin:8px 0 32px}.number-track{position:relative;height:144px;margin:0 24px;cursor:pointer;touch-action:none}.axis{position:absolute;top:76px;left:0;right:0;height:3px;background:var(--text)}.tick{position:absolute;top:76px;width:2px;height:16px;background:var(--text);transform:translateX(-50%)}.axis-label{position:absolute;top:104px;transform:translateX(-50%);font-size:1.25rem}.stone{width:56px;height:56px;border:3px solid var(--text);border-radius:50%;background:var(--shape-blue);position:absolute;top:16px;transform:translateX(-50%);touch-action:none}.stone.dragging{box-shadow:var(--drag-shadow)}.answer-marker{position:absolute;top:56px;transform:translateX(-50%);border:3px solid var(--text);border-radius:50%;width:32px;height:32px;background:var(--shape-sand);opacity:.7}.progress-page{padding-top:48px}.progress-page>p{margin:24px 0}.progress-list{display:grid;gap:48px;margin:48px 0}.session{display:grid;grid-template-columns:12em 8em 1fr;gap:24px;padding:24px 0;border-bottom:1px solid var(--hair);font-size:1rem}.legend{display:flex;gap:32px;margin:24px 0}.progress-actions{display:flex;flex-wrap:wrap;gap:16px;margin:32px 0}.styleguide{padding:48px 0;display:grid;gap:48px}.theme-demo{padding:32px;border-radius:24px;background:var(--bg);color:var(--text);display:grid;gap:24px;border:1px solid var(--hair)}.hand-field{display:grid;grid-template-columns:1fr 1fr;padding:0;min-height:320px}.hand-half{position:relative;min-height:320px;background:var(--panel-left);touch-action:pan-x pan-y}.hand-half+.hand-half{border-left:1px solid var(--text);background:var(--panel-right)}.hand-label{position:absolute;top:16px;left:24px;font-size:1rem}.hand-ring,.hand-stone{position:absolute;width:88px;height:88px;border:3px solid var(--text);border-radius:50%;left:calc(50% - 44px)}.hand-ring{top:64px;background:transparent}.hand-stone{bottom:32px;background:var(--shape-blue);touch-action:none}.hand-half:nth-child(2) .hand-stone{background:var(--shape-sand)}.hand-half.inactive{opacity:.45}.hand-ring.held{background:var(--success)}.hand-help{font-size:1rem;margin-top:16px}.lights{display:flex;gap:16px;justify-content:center;position:absolute;top:128px;left:0;right:0}.light{border:3px solid var(--text);width:56px;height:56px;background:var(--bg);border-radius:50%}.light.lit{background:var(--success)}.orientation-note{display:none;padding:48px 24px;text-align:center}.letter-sentence{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;margin:24px 0}.letter-word{display:flex;flex-wrap:wrap;gap:4px}.letter-cell{width:56px;min-height:64px;background:var(--bg);border:2px solid var(--text);border-radius:16px;font-size:1.75rem;padding:0}.letter-cell[aria-pressed=true]{background:var(--shape-sand)}.letter-palette{display:flex;justify-content:center;flex-wrap:wrap;gap:16px;margin-top:24px}.sentence-preview{font-size:1.5rem;line-height:2;max-width:100%}.sentence-preview select{background:var(--bg);border:2px solid var(--text);border-radius:16px;padding:12px;min-height:56px;min-width:72px;margin:8px}.syllable-preview{text-align:center;font-size:2rem;margin:24px 0}.dots-boards{display:grid;grid-template-columns:1fr 1fr;gap:32px}.dot-board{position:relative;aspect-ratio:1;max-width:360px;margin:auto;width:100%}.dot-board svg{position:absolute;width:100%;height:100%;inset:0;overflow:visible}.dot-point{position:absolute;transform:translate(-50%,-50%);border:2px solid var(--text);border-radius:50%;background:var(--bg);width:56px;height:56px;padding:0;font-size:1rem}.dot-point[aria-pressed=true]{background:var(--shape-sand)}.dot-board line,.mirror-svg polygon{stroke:var(--text);stroke-width:3;fill:var(--shape-sand)}.dot-board text{fill:var(--text);font-size:18px;dominant-baseline:central;text-anchor:middle}.dot-board circle{fill:var(--bg);stroke:var(--text);stroke-width:2}.mirror-svg{display:block;width:200px;height:180px;margin:auto}.mirror-option svg{width:72px;height:112px}.mirror-option{min-width:112px}.mirror-axis{stroke:var(--text);stroke-width:2;stroke-dasharray:4 8}.sequence-prompt{display:flex;justify-content:center;gap:16px;margin:24px 0}.sequence-dot{width:32px;height:32px;border:2px solid var(--text);border-radius:50%;background:var(--shape-blue)}.sequence-dot.right{background:var(--shape-sand);border-radius:8px}.sequence-dot.is-complete{opacity:.3}.tap-pads{display:grid;grid-template-columns:1fr 1fr;gap:32px}.tap-pad{min-height:160px;background:var(--panel-left);border:3px solid var(--text);border-radius:24px;font-size:1.5rem}.tap-pad+.tap-pad{background:var(--panel-right)}[data-size=large]{font-size:19.2px}[data-spacing=wide] body{letter-spacing:.08em;word-spacing:.16em;line-height:1.85}[data-spacing=wide] .instruction{line-height:1.6}html[data-motion=none] *,html[data-motion=none] *::before,html[data-motion=none] *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}::selection{background:var(--shape-sand);color:var(--text)}
@media(min-width:768px){body{font-size:1.25rem}.container{width:min(100% - 112px,1120px)}}
@media(max-width:1100px){.nav{gap:16px}.nav a,.nav button{font-size:1rem}.site-header{gap:16px}.hero{grid-template-columns:1.05fr 1fr;gap:16px}.hero-copy{gap:24px}.exercise-card .mark{width:132px;height:132px}}
@media(max-width:950px){.menu-button{display:inline-flex}.nav{display:none;position:absolute;top:88px;left:24px;right:24px;z-index:10;background:var(--bg);border:2px solid var(--text);border-radius:24px;padding:24px;align-items:flex-start;flex-direction:column}.nav.open{display:flex}.hero{min-height:656px}.hero h1{font-size:clamp(2.5rem,5.2vw,4.25rem)}}
@media(max-width:767px){.site-header{min-height:96px}.hero{grid-template-columns:1fr;min-height:auto;gap:0}.hero-copy{padding:32px 0 0}.hero-art{width:100%;max-width:400px;margin:0 auto}.home-section{margin-top:72px}.exercise-grid{grid-template-columns:1fr}.exercise-card{min-height:260px;padding:24px}.exercise-card .mark{width:120px;height:120px}.steps{grid-template-columns:1fr;gap:48px}.step-visual{margin-bottom:16px}.principles{grid-template-columns:1fr;gap:32px}.parent-panel{padding:32px 24px}.site-footer{flex-direction:column;margin-top:64px;padding-top:32px}.more-list{grid-template-columns:1fr}.task-head{flex-wrap:wrap}.task-head .dots{order:3;width:100%}.instruction-row{align-items:flex-start}.game-field{padding:16px;min-height:300px}.focus-targets{gap:16px}.focus-target{gap:16px;min-height:112px;flex-direction:column;padding:16px}.focus-target .shape{width:48px;height:48px}.answer-row{gap:16px}.answer{font-size:1.5rem;padding:16px;min-width:64px}.reference-word{font-size:3rem;padding:8px 24px}.task-bottom{gap:16px;flex-wrap:wrap}.number-track{margin:0 16px}.session{grid-template-columns:1fr 1fr;gap:16px}.session .dots{grid-column:1/-1}.legend{gap:24px;flex-wrap:wrap}.progress-actions{flex-direction:column;align-items:flex-start}.dots-boards{grid-template-columns:1fr;gap:24px}.dot-board{max-width:300px}.tap-pads{gap:16px}.tap-pad{min-height:144px}.hand-field{padding:0}.hand-field .hand-half{min-height:320px}.done .actions{flex-direction:column}.task-title{font-size:1.25rem}}
@media(orientation:portrait){.two-hands-task .orientation-note{display:block}.two-hands-task .hand-field{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{html,body{background:white!important;color:black!important}.site-header,.site-footer,.progress-actions,.settings-dialog{display:none!important}.container{width:100%!important}.session{break-inside:avoid}.dot{border-color:black!important}.dot.filled{background:black!important}.progress-list{gap:24px}.progress-page{padding:0}.muted{color:black!important}h1{font-size:32px}.disclaimer{font-size:16px}a{color:black!important}}
/* Dense learning controls retain full touch targets in a local scrolling region. */
.letter-word{gap:16px;flex-wrap:nowrap}.letter-sentence{justify-content:flex-start}.letter-cell.hint{outline:3px solid var(--text);outline-offset:4px}.dot-scroll{overflow:auto;padding:16px;margin:0 -16px;max-width:100%;touch-action:pan-x pan-y;overscroll-behavior-x:contain;overscroll-behavior-y:auto}.dot-board{max-width:none;aspect-ratio:auto}.dots-boards{min-width:0}.dots-boards>section{min-width:0}.focus-target.hint{outline:3px solid var(--text);outline-offset:4px}.focus-card{transition:transform .2s}.focus-card.dragging{transition:none}.game-field .letter-sentence{overflow-x:auto;max-width:100%;touch-action:pan-x pan-y}.gesture-circle{width:48px;height:48px}.reference-word span{border-radius:4px}
@media(min-width:768px) and (max-width:899px){.hero{grid-template-columns:1fr;min-height:0}.hero-copy{max-width:600px;padding-bottom:0}.hero-art{max-width:400px;margin:auto}}
[hidden]{display:none!important}
.hand-icon{display:inline-flex;width:32px;height:32px;flex:none}.hand-label{display:flex;align-items:center;gap:12px}.hand-icon svg,.demo-hand svg{width:100%;height:100%}.mirrored svg{transform:scaleX(-1)}.demo-hand{position:absolute;width:64px;height:64px;opacity:.7;pointer-events:none;z-index:3}.dot-scroll{cursor:grab}.dot-scroll:active{cursor:grabbing}
.dot-board svg{pointer-events:none}.dot-point:active:not(:disabled){transform:translate(-50%,calc(-50% + 1px))}.dot-point{z-index:1}
/* First visual review: preserve targets while removing empty vertical space. */
.site-header .menu-button{display:none}.task-note:empty,.feedback:empty{display:none}.gesture-tap{position:relative;width:56px;height:56px;border:3px solid var(--text);border-radius:50%;display:inline-flex;align-items:center;justify-content:center}.gesture-tap span{width:16px;height:16px;border-radius:50%;background:var(--shape-blue);border:2px solid var(--text)}.gesture-hand{width:56px;height:56px;flex:none}.gesture{flex-wrap:wrap}.exercise-card{min-height:424px;padding-top:216px}.exercise-card .mark{width:180px;height:180px;top:16px}.exercise-card p{max-width:34ch}.letter-word{flex-wrap:wrap;max-width:100%}.game-field .letter-sentence{overflow:visible;touch-action:pan-x pan-y}.focus-target{min-height:168px;padding:16px;flex-direction:column;justify-content:space-between;gap:16px}.focus-target .shape{margin-top:16px}.focus-target[aria-pressed=true]>.shape{opacity:0}.focus-target>span:last-child{font-size:1rem}.focus-card{z-index:2;position:relative;pointer-events:auto}
@media(max-width:950px){.site-header .menu-button{display:inline-flex}}
@media(max-width:767px){.exercise-card{min-height:360px;padding-top:152px}.exercise-card .mark{width:120px;height:120px}.focus-target{min-height:168px}.gesture-line{width:64px}.letter-word{gap:16px}}
@media(min-width:900px) and (max-height:850px){.task-head{padding:8px 0 16px}.instruction-row{margin:8px 0 16px}.feedback{min-height:32px;margin-top:8px}.task-bottom{padding-top:16px}.exercise-page{padding-bottom:16px}.completed .hand-help{display:none}.hand-help{margin-top:8px}.two-hands-task .instruction{font-size:1.5rem}.two-hands-task .game-field{min-height:304px}.two-hands-task .hand-half{min-height:304px}}
.nav a,.brand,.continue{display:inline-flex;align-items:center;min-height:56px}.nav a{padding:12px 0}

.letter-cell[aria-pressed=true]{color:var(--ink-on-shape)}.syllable-preview{overflow-wrap:anywhere;max-width:100%}
/* Technical accessibility layer: bypass, focus visibility, reflow and gesture alternatives. */
.skip-link{position:fixed;top:16px;left:24px;z-index:20;transform:translateY(-200%);display:inline-flex;align-items:center;min-height:56px;max-width:calc(100% - 48px);padding:12px 24px;border:3px solid var(--text);border-radius:12px;background:var(--bg);color:var(--text);font-weight:600}.skip-link:focus{transform:translateY(0);outline:3px solid var(--text);outline-offset:3px}a,button,input,select,[tabindex]{scroll-margin-block:24px}.transition-title{font-size:clamp(1.75rem,3.2vw,2.5rem);max-width:24ch;line-height:1.2}.reference-word{display:block;width:fit-content;max-width:100%;overflow-wrap:anywhere;text-align:center}.answer{max-width:100%;overflow-wrap:anywhere}.sequence-prompt{flex-wrap:wrap}.tap-controls{display:grid;gap:16px;margin-top:24px}.tap-controls>[data-tap-mode]{justify-self:start}.tap-actions{display:flex;gap:16px;flex-wrap:wrap}.tap-actions .btn{min-height:56px}.two-hands-task .orientation-note{display:none}.two-hands-task .hand-field{display:grid}.game-field[aria-disabled=true]{cursor:default}.game-field[aria-disabled=true] button:disabled{opacity:1}.settings-dialog :focus-visible{outline-offset:3px}
@media(max-width:600px){.two-hands-task .hand-field{grid-template-columns:1fr}.two-hands-task .hand-field .hand-half{min-height:304px}.two-hands-task .hand-half+.hand-half{border-left:0;border-top:1px solid var(--text)}.tap-controls .btn{max-width:100%;white-space:normal}.tap-actions{flex-direction:column}.tap-actions .btn{width:100%}}
@media print{.skip-link{display:none}}
.hand-half.inactive{opacity:1}.hand-half.inactive .hand-ring,.hand-half.inactive .hand-stone{opacity:.45}
html[data-motion=none]{scroll-behavior:auto}
[tabindex]:focus-visible{outline:3px solid var(--text);outline-offset:3px}.dot-scroll:focus-visible{outline-offset:-3px}

/* Keep the main action reachable while long boards remain freely scrollable. */
.exercise-page:has(.task-bottom){padding-bottom:144px}
.task-bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);z-index:5;width:min(calc(100% - 48px),1120px);padding:16px 0 max(16px,env(safe-area-inset-bottom));background:var(--bg);border-top:2px solid var(--text);flex-wrap:nowrap}
.game-field,.hand-half{touch-action:pan-x pan-y}.hand-stone,.focus-card,.number-track,.light{touch-action:none}
.letter-cell[aria-pressed=true]{outline:3px solid var(--text);outline-offset:3px;box-shadow:inset 0 -6px 0 var(--text)}
.dot.retry{border-radius:2px;background:var(--text);transform:rotate(45deg)}.dot.earlier{border-style:dashed}
.dot.help{border-radius:2px}.session-summary{grid-column:1/-1;font-size:1rem}.session{row-gap:12px}
.brand{gap:10px}.brand img{width:40px;height:40px;object-fit:contain;flex:none}.home .brand img{width:48px;height:48px}
.document-page{max-width:880px;padding-top:48px}.document-page h1{max-width:none}.document-page section{margin-top:40px}.document-page section p{margin-top:16px}.document-page a{text-decoration:underline}.progress-page h1{max-width:none}
@media(max-width:767px){.task-bottom .btn{min-width:112px}.home .brand{font-size:1.875rem}.home .brand img{width:36px;height:36px}}
@media(min-width:768px){.task-bottom{width:min(calc(100% - 112px),1120px)}}
@media print{.session-summary{color:black!important}.dot.retry{background:black!important}.dot.earlier{border-style:dashed}.progress-list section{break-inside:avoid}}

.sequence-dot{display:inline-flex;align-items:center;justify-content:center;min-width:48px;width:auto;height:48px;padding:4px 10px;color:var(--ink-on-shape);font-size:1rem;font-weight:600}.sequence-dot.is-complete{opacity:1;background:var(--bg);color:var(--text);border-style:dashed}.sequence-prompt{gap:12px}

/* Short landscape keeps both full-size stones and rings above the action bar after scrolling. */
@media(orientation:landscape) and (max-height:500px) and (min-width:601px){.two-hands-task .hand-field{min-height:280px}.two-hands-task .hand-field .hand-half{min-height:280px;height:280px}}

/* Browser focus scrolling must reserve the space occupied by the fixed task actions. */
html:has(.task-bottom){scroll-padding-bottom:calc(128px + env(safe-area-inset-bottom))}

/* A keyboard-focusable whole board needs its full height, including its focus outline. */
html:has(.game-field:focus){scroll-padding-bottom:calc(98px + env(safe-area-inset-bottom))}.game-field:focus{scroll-margin-block:6px}

/* Shared illustrated exercise shell; interaction geometry stays with each activity. */
@font-face{font-family:Newsreader;src:url('../assets/fonts/newsreader-latin.woff2') format('woff2');font-style:normal;font-weight:400 600;font-display:swap}
.exercise-page .brand,.exercise-page .task-title,.exercise-page .transition-title,.exercise-page .done h1{font-family:Newsreader,Georgia,serif;font-weight:500;letter-spacing:-.025em}

.exercise-page .btn{border-radius:16px;transition:transform .12s}
.exercise-page .btn.secondary{border-color:var(--practice-edge);background:var(--practice-surface)}
.exercise-page .btn.secondary:hover{background:var(--panel-left)}
.exercise-page [data-start]{min-width:152px;min-height:60px;margin-top:4px}
.exercise-page .task-head{padding:12px 0 16px;gap:20px}
.exercise-page .task-title{font-size:2rem;max-width:none;line-height:1.15}
.exercise-page .instruction-row{margin:12px 0 24px}
.exercise-page .instruction{font-size:clamp(1.5rem,2.5vw,1.875rem);line-height:1.35}
.exercise-page .game-field{background:var(--practice-surface);border-radius:24px}
.exercise-page .hand-half{background:var(--panel-left)}.exercise-page .hand-half+.hand-half{background:var(--practice-blue)}
.exercise-page .answer,.exercise-page .letter-cell,.exercise-page .sentence-preview select{background:var(--bg);border-color:var(--practice-edge)}
.exercise-page .answer[aria-pressed=true],.exercise-page .answer.hint{background:var(--panel-left)}
.exercise-page .task-bottom{border-top-color:var(--practice-edge)}
.exercise-page .task-bottom .btn{border-radius:16px}
.exercise-page .transition,.exercise-page .done{min-height:0;padding:32px 0 64px;gap:24px}
.exercise-page .transition-art,.exercise-page .done-art{display:block;width:min(280px,55vw);height:auto;max-height:220px;object-fit:contain}
.exercise-page .transition-title{font-size:clamp(2.25rem,4.5vw,3.5rem);max-width:20ch}
.exercise-page .done h1{font-size:clamp(3.5rem,6vw,5rem);line-height:1}
.exercise-page #done-summary{max-width:48ch}
.exercise-page .done .actions{margin-top:8px}
.exercise-page [data-exercise-id=focus] .game-field{min-height:0;padding:24px}
.exercise-page [data-exercise-id=focus] .rule-badge{font-size:1rem;background:var(--panel-left);border:0;border-radius:12px;padding:10px 16px}
.exercise-page [data-exercise-id=focus] .focus-card{background:var(--bg);border-color:var(--practice-edge);border-radius:20px;margin:20px auto}
.exercise-page [data-exercise-id=focus] .focus-target{background:var(--practice-blue);border-color:var(--practice-edge);border-radius:20px;min-height:152px}
.exercise-page [data-exercise-id=focus] .focus-target+.focus-target{background:var(--panel-right)}
.exercise-page [data-exercise-id=focus] .focus-target[aria-pressed=true]{background:var(--panel-left);border-color:var(--text)}
.exercise-page [data-exercise-id=focus] .shape{background-color:transparent;border-color:transparent;background-repeat:no-repeat;background-position:center;background-size:contain}
.exercise-page [data-exercise-id=focus] .shape.blue.circle{background-image:url('../assets/images/switch-blue-circle.webp')}
.exercise-page [data-exercise-id=focus] .shape.blue.square{background-image:url('../assets/images/switch-blue-square.webp')}
.exercise-page [data-exercise-id=focus] .shape.sand.circle{background-image:url('../assets/images/switch-sand-circle.webp')}
.exercise-page [data-exercise-id=focus] .shape.sand.square{background-image:url('../assets/images/switch-sand-square.webp')}
@media(max-width:950px){}
@media(max-width:600px){.exercise-page .task-head{gap:12px}.exercise-page .task-title{font-size:1.875rem}.exercise-page .instruction-row{margin-bottom:20px}.exercise-page [data-exercise-id=focus] .game-field{padding:20px 16px}.exercise-page [data-exercise-id=focus] .focus-target{min-height:144px;padding:12px;gap:12px}.exercise-page .transition,.exercise-page .done{padding-top:16px}.exercise-page .done .actions{width:100%}.exercise-page .done .actions .btn{width:100%}}
@media(orientation:landscape) and (max-height:500px){.exercise-page .task-head{padding-top:0}.exercise-page .instruction-row{margin:8px 0 16px}.exercise-page .transition-art,.exercise-page .done-art{width:176px;max-height:132px}}

@media(orientation:landscape) and (max-height:500px) and (min-width:601px){.exercise-page [data-exercise-id=focus] .game-field{display:grid;grid-template-columns:112px minmax(0,1fr);gap:16px;padding:16px;align-items:center}.exercise-page [data-exercise-id=focus] .rule-badge{grid-column:1/-1;justify-self:start}.exercise-page [data-exercise-id=focus] .focus-card{margin:0}.exercise-page [data-exercise-id=focus] .focus-targets{gap:16px}.exercise-page [data-exercise-id=focus] .focus-target{min-height:144px;padding:12px}}

/* A deliberate phone masthead keeps both navigation controls together. */
@media(max-width:600px){}
/* Short landscape shows the rule, source, both destinations and task actions together. */
@media(orientation:landscape) and (max-height:500px) and (min-width:601px){
.exercise-page [data-exercise-id=focus]{position:relative}
.exercise-page [data-exercise-id=focus] .task-head{min-height:44px;padding:0}
.exercise-page [data-exercise-id=focus] .task-title{font-size:1.625rem}
.exercise-page [data-exercise-id=focus] .task-head .btn{min-height:44px;padding:8px 16px}
.exercise-page [data-exercise-id=focus] .instruction-row{min-height:44px;margin:0 0 4px}
.exercise-page [data-exercise-id=focus] .instruction{font-size:1.5rem;line-height:1.2}
.exercise-page [data-exercise-id=focus] .speaker{min-height:44px;width:44px;min-width:44px;padding:8px}
.exercise-page [data-exercise-id=focus] .task-note{position:absolute;top:54px;right:0;max-width:42%;min-height:0;margin:0;font-size:.875rem;line-height:1.3;text-align:right}
.exercise-page [data-exercise-id=focus] .game-field{gap:16px;padding:16px}
.exercise-page [data-exercise-id=focus] .rule-badge{display:none}
.exercise-page [data-exercise-id=focus] .focus-target{min-height:112px;padding:8px;gap:4px}
.exercise-page [data-exercise-id=focus] .focus-target .shape{margin-top:0}
}

/* Active practice: one open scene between a small toolbar and a single action row. */
.playing .exercise-page{width:min(calc(100% - 32px),1400px);height:100dvh;padding:0;margin-inline:auto}
.playing .exercise-page .exercise-nav{display:none}
.play-shell{display:grid;grid-template-rows:56px minmax(0,1fr) 56px;height:100%;min-height:0;font-family:var(--font)}
html:has(.play-shell){scroll-padding-block:8px}
.play-top{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center}
.play-top .dots{justify-content:center;gap:7px;flex-wrap:nowrap}
.play-top .dot{width:8px;height:8px;border-width:1.5px}
.play-top .dot.current{outline-width:1.5px;outline-offset:3px}
.play-tools{display:flex;gap:6px;align-items:center}
.play-back,.play-help,.play-settings,.play-undo,.play-shell .speaker{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:8px;border:0;background:transparent;color:var(--text);font:inherit;font-size:1rem;border-radius:12px}
.play-help{font-size:.9375rem;white-space:nowrap}
.play-back:hover,.play-help:hover,.play-settings:hover,.play-undo:hover,.play-shell .speaker:hover{background:var(--panel-left)}
.play-scene{display:flex;flex-direction:column;min-height:0;gap:8px;padding:8px 0}
.exercise-page .play-shell .instruction-row{display:flex;justify-content:center;align-items:center;min-height:44px;gap:8px;margin:0;flex:none}
.exercise-page .play-shell .instruction{font-family:var(--font);font-size:clamp(1.75rem,2.6vw,2rem);line-height:1.2;font-weight:500;letter-spacing:0;max-width:36ch;text-align:center}
.play-shell .speaker{width:44px;min-width:44px;flex:none}
.exercise-page .play-shell .game-field{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:20px;min-height:0;min-width:0;padding:0;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
.exercise-page .play-shell.completed .game-field{outline:0}
.exercise-page .play-shell .task-bottom{position:static;transform:none;width:100%;padding:6px 0;min-height:56px;display:grid;grid-template-columns:64px minmax(0,1fr) 104px;gap:12px;border:0;background:transparent}
.exercise-page .play-shell .task-bottom>.btn{min-height:44px;min-width:104px;padding:10px 20px;border-radius:16px;font-size:1rem;line-height:1.2}
.play-undo{justify-self:start;padding-inline:0}
.play-shell .feedback{font-size:1rem;line-height:1.25;margin:0;min-height:0;text-align:center;justify-self:center;max-width:100%}
.play-shell.completed .feedback::before{content:'';display:inline-block;width:7px;height:12px;border:solid var(--success);border-width:0 2px 2px 0;transform:rotate(45deg);margin-right:12px}
.play-shell .answer-row{gap:12px;width:100%;align-items:center;justify-content:center;min-width:0}
.exercise-page .play-shell .answer,.exercise-page .play-shell .letter-cell,.exercise-page .play-shell .focus-target{position:relative;border:1.5px solid var(--practice-edge);background:color-mix(in srgb,var(--bg) 65%,var(--panel-left));border-radius:16px;color:var(--text)}
.play-shell .answer{font-size:1.75rem;min-height:64px;min-width:64px;padding:14px 20px;line-height:1.25}
.exercise-page .play-shell [aria-pressed=true]:is(.answer,.letter-cell,.focus-target,.tap-pad){border-color:var(--text);background:var(--panel-left);outline:1px solid var(--text);outline-offset:0;box-shadow:none}
.play-shell [aria-pressed=true]:is(.answer,.letter-cell,.focus-target,.tap-pad)::after{content:'';position:absolute;right:8px;top:6px;width:6px;height:10px;border:solid var(--text);border-width:0 2px 2px 0;transform:rotate(45deg);pointer-events:none}
.play-shell .letter-cell[aria-pressed=true]::after{right:3px;top:2px;width:4px;height:7px}
.play-shell .reference-word{font-size:clamp(2.5rem,5vw,4rem);line-height:1.2;padding:0;margin:0;border:0;border-radius:0;background:transparent}
.play-shell .number-value{font-size:3rem;margin:0;line-height:1.2}
.play-shell .number-track{width:calc(100% - 48px);max-width:900px;margin:0 24px;flex:none}
.play-shell .stone{background:transparent url('../assets/images/practice-pebble.webp') center/contain no-repeat;border:0;border-radius:0}
.play-shell .letter-sentence{width:100%;max-width:960px;gap:6px 12px;margin:0;justify-content:center;align-content:center}
.play-shell .letter-word{gap:2px;flex-wrap:wrap;justify-content:center}
.exercise-page .play-shell .letter-cell{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;font-size:1.5rem;border-radius:10px;line-height:1}
.play-shell .sentence-preview{font-size:1.5rem;line-height:1.7;max-width:900px;text-align:center}
.play-shell .sentence-preview select{min-height:44px;min-width:64px;margin:4px;padding:6px;background:var(--bg);border:1.5px solid var(--practice-edge);border-radius:10px;font-size:1.125rem}
.play-shell .syllable-preview{font-size:2rem;line-height:1.2;margin:0}
.play-shell .game-field>p:first-child{font-size:1rem;text-align:center;line-height:1.4}
.play-shell .mirror-svg{height:150px;width:200px}
.play-shell .mirror-option{min-width:112px;min-height:136px;font-size:1rem;display:grid;justify-items:center;gap:8px;padding:12px}
.play-shell .mirror-option svg{width:64px;height:88px}
.play-shell .sequence-prompt{margin:0;gap:8px;justify-content:center;flex-wrap:nowrap}
.play-shell .sequence-dot{min-width:40px;height:40px;font-size:1rem;padding:4px 8px}
.play-shell .tap-pads{width:100%;max-width:720px;gap:20px}
.play-shell .tap-pad{position:relative;min-height:160px;font-size:1.5rem;border:1.5px solid var(--practice-edge);background:var(--panel-left)}
.play-shell .tap-pad+.tap-pad{background:var(--panel-right)}
html[data-touch=true] .play-shell .tap-pad>span{display:none}
.play-shell .dots-boards{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:center;justify-items:center}
.play-shell .dots-boards>section{width:100%;display:grid;justify-items:center}
.play-shell .dots-boards h3{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.play-shell .dot-scroll{overflow:visible;padding:0;margin:0;width:100%;display:grid;justify-items:center;cursor:default}
.play-shell .dot-board{width:var(--dot-size);height:auto;aspect-ratio:1;max-width:100%;min-width:0;margin:0}
.play-shell .dot-point{width:44px;height:44px;min-width:44px;min-height:44px;font-size:.875rem;border:1.5px solid var(--practice-edge)}
.play-shell .dot-board text{font-size:20px}
.play-shell .dot-point[aria-pressed=true]{outline:2px solid var(--text);outline-offset:2px}
.play-shell .dots-boards+.hand-help{font-size:.875rem;line-height:1.3;margin:0;text-align:center}
.play-shell .game-field.number-sense-field{display:flex;gap:16px}
.play-shell .number-sense-field .ns-board{width:100%;display:flex;justify-content:center;align-items:center;gap:24px}
.play-shell .number-sense-field .ns-group{width:auto;flex:0 1 280px;gap:8px}
.play-shell .number-sense-field .ns-caption{font-size:1rem;line-height:1.3}
.play-shell .number-sense-field .ns-frame{width:min(100%,260px);gap:6px}
.play-shell .number-sense-field .ns-cell{border:1.5px solid var(--practice-edge);background:transparent;min-height:0}
.play-shell .number-sense-field .ns-counter{background:var(--shape-blue);color:var(--text)}
.play-shell .number-sense-field .ns-added{border:2px dashed var(--text);background:var(--shape-sand)}
.play-shell .number-sense-field .ns-summary{font-size:.875rem;line-height:1.3;text-align:center;max-width:50ch}
.play-shell .number-sense-field .answer{font-size:1.125rem;min-width:64px;min-height:48px;padding:8px 14px}
.exercise-page .play-shell[data-exercise-id=focus] .game-field{display:grid;grid-template-columns:128px minmax(0,1fr);gap:32px;align-content:center;padding:0}
.play-shell[data-exercise-id=focus] .rule-badge{display:none}
.exercise-page .play-shell[data-exercise-id=focus] .focus-card{width:128px;height:128px;margin:0;border:0;border-radius:0;background:transparent;display:grid;place-items:center}
.exercise-page .play-shell[data-exercise-id=focus] .focus-card .shape{width:112px;height:112px}
.play-shell[data-exercise-id=focus] .focus-targets{gap:24px;width:100%}
.exercise-page .play-shell[data-exercise-id=focus] .focus-target{min-height:184px;padding:16px;gap:16px;justify-content:center}
.exercise-page .play-shell[data-exercise-id=focus] .focus-target .shape{width:96px;height:96px;margin:0}
.play-shell .keyboard-help{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.play-shell .tap-controls{gap:6px;margin:0;flex:none}
.play-shell .tap-controls .btn{min-height:44px;padding:8px 12px;font-size:.875rem}
.play-shell .tap-controls .tap-actions{flex-direction:row;gap:8px}
.play-shell .tap-controls .tap-actions .btn{width:auto;flex:1}
.exercise-page .play-shell .hand-field{display:grid;grid-template-columns:1fr 1fr;width:100%;padding:0;gap:16px;align-items:stretch}
.exercise-page .play-shell .hand-field .hand-half{--hand-size:88px;--hand-top:40px;--hand-bottom:16px;min-height:calc(var(--hand-top) + 2 * var(--hand-size) + var(--hand-bottom) + 16px);height:auto;background:transparent;border:0;position:relative}
.play-shell .hand-label{top:0;left:0;font-size:1rem;gap:8px;line-height:1.3}
.play-shell .hand-icon{width:24px;height:24px}
.play-shell .hand-ring,.play-shell .hand-stone{width:var(--hand-size);height:var(--hand-size);left:calc(50% - var(--hand-size)/2);border:0;border-radius:0}
.play-shell .hand-ring{top:var(--hand-top);background:transparent url('../assets/images/practice-ring.webp') center/contain no-repeat}
.play-shell .hand-stone{bottom:var(--hand-bottom);background:transparent url('../assets/images/practice-pebble.webp') center/contain no-repeat}
.play-shell .hand-half:nth-child(2) .hand-stone{background-image:url('../assets/images/switch-sand-circle.webp')}
.play-shell .hand-ring.held{outline:2px solid var(--success);outline-offset:3px}
.play-shell .lights{top:96px;gap:8px;align-items:center}
.play-shell .light{width:44px;height:44px;border:1.5px solid var(--practice-edge);background:var(--bg)}
.play-shell .light.lit{background:var(--panel-left);border-color:var(--text)}
@media(max-width:359px){.play-shell .lights{gap:4px}.play-shell .light{width:40px;height:40px}}
.play-shell.completed .answer[aria-pressed=true],.play-shell.completed .focus-card{animation:object-settle .2s ease-out}
@keyframes object-settle{from{translate:0 -3px}to{translate:0 0}}
@media(max-width:600px){.play-top{gap:6px}.play-top .dots{gap:4px}.play-top .dot{width:6px;height:6px}.play-help{padding:8px 4px}.play-scene{gap:8px;padding:8px 0}.exercise-page .play-shell .instruction{font-size:1.75rem}.exercise-page .play-shell .game-field{gap:16px}.play-shell .answer-row{gap:10px}.play-shell .answer{font-size:1.5rem;padding:12px 16px;min-height:56px}.play-shell .dots-boards{grid-template-columns:1fr;gap:12px}.play-shell .number-sense-field .ns-board{gap:12px}.play-shell .number-sense-field .ns-frame{gap:4px}.play-shell .number-sense-field .ns-group{gap:6px}.play-shell .number-sense-field .ns-comparison .ns-cell{font-size:.75rem}.play-shell .number-sense-field .ns-summary{font-size:.8125rem}.exercise-page .play-shell[data-exercise-id=focus] .game-field{grid-template-columns:1fr;justify-items:center;gap:24px}.exercise-page .play-shell[data-exercise-id=focus] .focus-target{min-height:168px;padding:12px}.play-shell .mirror-option{min-width:112px}.play-shell .mirror-svg{height:140px}.play-shell .tap-pads{gap:12px}.play-shell .sequence-prompt{gap:4px}.play-shell .sequence-dot{min-width:36px;height:36px;padding:4px 6px}.play-shell .tap-pad{min-height:144px}}
@media(orientation:landscape) and (max-height:500px){.play-scene{padding:0;gap:4px}.exercise-page .play-shell .instruction-row{min-height:44px}.exercise-page .play-shell .game-field{gap:8px}.play-shell .reference-word{font-size:2.75rem}.play-shell .answer{min-height:48px;padding:8px 16px;font-size:1.375rem}.play-shell .mirror-svg{height:96px}.play-shell .mirror-option{display:flex;gap:8px;min-height:88px;padding:8px}.play-shell .mirror-option svg{height:64px;width:48px}.play-shell .number-value{font-size:2.5rem}.play-shell .number-track{height:136px}.play-shell .syllable-preview{font-size:1.5rem}.play-shell .tap-pad{min-height:128px}.play-shell .number-sense-field .ns-group{flex-basis:200px;gap:4px}.play-shell .number-sense-field .ns-frame{width:150px;gap:3px}.play-shell .number-sense-field .ns-caption{font-size:.875rem}.play-shell .number-sense-field .ns-cell{font-size:.75rem}.play-shell .number-sense-field .ns-summary{font-size:.75rem;line-height:1.2}.play-shell .number-sense-field .answer{min-height:44px;padding:6px 12px}.play-shell .number-sense-field .ns-board{gap:24px}.play-shell .number-sense-field .answer-row{gap:10px}.exercise-page .play-shell[data-exercise-id=focus] .game-field{gap:24px;grid-template-columns:128px minmax(0,1fr)}.exercise-page .play-shell[data-exercise-id=focus] .focus-target{min-height:144px;padding:8px;gap:8px}.play-shell .hand-field .hand-half{--hand-size:72px;--hand-top:32px;--hand-bottom:8px}.play-shell .tap-controls .btn{min-height:44px;padding:6px 10px}.play-shell .tap-controls{position:absolute;left:16px;bottom:62px}.play-shell:has(.tap-actions:not([hidden])) .play-scene{padding-bottom:48px}.play-shell .hand-label{font-size:.875rem}.play-shell .hand-help:not(.keyboard-help){font-size:.8125rem;line-height:1.3}.play-shell .dots-boards+.hand-help{position:absolute;left:0;right:0;bottom:61px;font-size:.75rem}.play-shell[data-exercise-id=connect-dots] .game-field{padding-bottom:0}.play-shell[data-exercise-id=connect-dots] .play-scene{padding-bottom:0}}
@media(max-width:359px),(max-height:359px){.playing .exercise-page{height:auto;min-height:100dvh}.play-shell{height:auto;min-height:100dvh;grid-template-rows:56px minmax(480px,1fr) 56px}.play-scene{min-height:480px}}
html[data-size=large] .play-shell,html[data-spacing=wide] .play-shell{min-height:760px}

.play-shell .task-bottom [data-ok]{grid-column:3}.play-shell .feedback{grid-column:2;grid-row:1}.play-shell .play-undo{grid-column:1;grid-row:1}
.play-shell .dot-board text{font-size:22px}
@media(orientation:landscape) and (max-height:500px){.play-shell[data-exercise-id=same-letters] .game-field{display:grid;grid-template-columns:56px minmax(0,1fr);gap:16px;align-content:center}.play-shell .dots-boards+.hand-help{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.play-shell .game-field.number-sense-field{gap:8px}}

.play-top{position:relative}.play-top>.dots{position:absolute;left:50%;transform:translateX(-50%)}.play-top .play-tools{grid-column:3}
@media(max-width:600px){.play-top .dots{gap:3px}}
@media(orientation:landscape) and (max-height:500px){.exercise-page .play-shell .hand-field .hand-half{--hand-size:72px;--hand-top:32px;--hand-bottom:8px}}

/* Keep the working group human-sized on a wide open stage. */
.exercise-page .play-shell[data-exercise-id=focus] .game-field{width:100%;max-width:760px;align-self:center}
.play-shell .hand-half:nth-child(2) .hand-stone{background:transparent url('../assets/images/switch-sand-circle.webp') center/contain no-repeat}
.play-shell .number-value{font-size:3rem}
.exercise-page .play-shell .number-sense-field .number-answer{font-size:3rem;line-height:1;min-height:72px;min-width:80px;padding:10px 12px}
@media(orientation:landscape) and (max-height:500px){
.play-shell .number-value{font-size:3rem}
.exercise-page .play-shell .game-field.number-sense-field{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:center;align-content:center}
.play-shell .number-sense-field .ns-board{grid-column:1;grid-row:1}
.play-shell .number-sense-field .answer-row{grid-column:2;grid-row:1;max-width:330px}
.play-shell .number-sense-field .ns-summary{grid-column:1/-1;grid-row:2}
.play-shell .tap-controls{position:static;display:flex;align-items:center;justify-content:center;gap:10px}
.play-shell .tap-controls>[data-tap-mode]{flex:none}
.play-shell .tap-controls .tap-actions{flex-wrap:nowrap}
.play-shell:has(.tap-actions:not([hidden])) .play-scene{padding-bottom:0}
.exercise-page .play-shell .hand-field .hand-half{--hand-size:64px;--hand-top:28px;--hand-bottom:8px}
}

.exercise-page .play-shell .task-bottom{position:sticky;bottom:0;z-index:5;background:var(--bg)}
.play-shell .hand-ring.held{outline:0}

.play-shell .number-sense-field .ns-counter,.play-shell .number-sense-field .ns-added{color:var(--ink-on-shape)}

.exercise-page .transition-title{font-family:var(--font)}
.play-shell .focus-card.dragging,.play-shell .stone.dragging{box-shadow:none}

/* Keep instruction, source and two deep trays together in the center of the stage. */
.play-shell[data-exercise-id=focus]{--focus-token:128px}
.play-shell[data-exercise-id=focus] .play-scene{justify-content:center;gap:24px}
.exercise-page .play-shell[data-exercise-id=focus] .game-field{display:grid;flex:none;grid-template-columns:1fr;grid-template-rows:var(--focus-token) auto;gap:32px;align-content:center;justify-items:center;width:100%;max-width:680px;padding:0}
.exercise-page .play-shell[data-exercise-id=focus] .focus-card{width:var(--focus-token);height:var(--focus-token);align-self:center;justify-self:center;animation:none}
.exercise-page .play-shell[data-exercise-id=focus] .focus-card.dragging{transform:none}
.exercise-page .play-shell[data-exercise-id=focus] .shape,.exercise-page .play-shell[data-exercise-id=focus] .focus-card .shape,.exercise-page .play-shell[data-exercise-id=focus] .focus-target .shape{width:var(--focus-token);height:var(--focus-token);min-width:var(--focus-token);margin:0;opacity:1}
.exercise-page .child-ui[data-exercise-id=focus] .shape.blue,.exercise-page .child-ui[data-exercise-id=focus] .shape.sand{background-image:url('../assets/images/switch-material.webp');background-size:256px 256px;background-position:center;background-repeat:repeat;background-blend-mode:multiply;border:2px solid var(--token-edge);background-color:var(--token-color);border-radius:6px}
.exercise-page .child-ui[data-exercise-id=focus] .shape.blue{--token-color:#9AB7C4;--token-edge:var(--blue-edge)}
.exercise-page .child-ui[data-exercise-id=focus] .shape.sand{--token-color:var(--shape-sand);--token-edge:var(--honey-edge)}
.exercise-page .child-ui[data-exercise-id=focus] .shape.circle{border-radius:50%}
.exercise-page .play-shell[data-exercise-id=focus] .focus-targets{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;gap:32px}
.exercise-page .play-shell[data-exercise-id=focus] .focus-target{display:grid;grid-template-columns:var(--focus-token);grid-template-rows:var(--focus-token) auto var(--focus-token);align-items:center;justify-items:center;justify-content:center;gap:12px;min-height:0;padding:24px;border-radius:16px}
.play-shell[data-exercise-id=focus] .focus-label{font-size:1rem;line-height:1.3;text-align:center}
.play-shell[data-exercise-id=focus] .focus-landing{display:block;width:var(--focus-token);height:var(--focus-token);border:1.5px dashed var(--practice-edge);border-radius:12px;background:transparent}
@media(max-width:600px),(max-height:700px){.play-shell[data-exercise-id=focus]{--focus-token:104px}.play-shell[data-exercise-id=focus] .play-scene{gap:16px}.exercise-page .play-shell[data-exercise-id=focus] .game-field{gap:24px;max-width:560px}.exercise-page .play-shell[data-exercise-id=focus] .focus-target{padding:16px}.exercise-page .play-shell[data-exercise-id=focus] .focus-targets{gap:16px}}
@media(orientation:landscape) and (max-height:500px){.play-shell[data-exercise-id=focus]{--focus-token:80px}.play-shell[data-exercise-id=focus] .play-scene{gap:8px}.exercise-page .play-shell[data-exercise-id=focus] .game-field{gap:12px;max-width:760px}.exercise-page .play-shell[data-exercise-id=focus] .focus-target{grid-template-columns:var(--focus-token) minmax(0,1fr) var(--focus-token);grid-template-rows:var(--focus-token);gap:8px;padding:12px}.play-shell[data-exercise-id=focus] .focus-label{font-size:.875rem}}

/* A completed leaf belongs to the task that just finished, including before Next. */
.progress-branch{position:relative;display:flex;align-items:center;justify-content:space-around;isolation:isolate;width:100%;max-width:420px;height:44px;justify-self:center;color:var(--text)}
.branch-stem{position:absolute;inset:0;width:100%;height:100%;z-index:-1;fill:none;stroke:currentColor;stroke-width:1.5}
.branch-leaf{position:relative;display:block;flex:1;max-width:24px;height:28px;background:url('../assets/images/progress-leaf-outline.webp') center/contain no-repeat}
.branch-leaf:nth-of-type(even){transform:translateY(6px) rotate(180deg)}
.branch-leaf:nth-of-type(odd){transform:translateY(-6px)}
.branch-leaf.own{background-image:url('../assets/images/progress-leaf.webp')}
.branch-leaf.retry::after{content:'';position:absolute;inset:0;background:url('../assets/images/progress-leaf.webp') center/contain no-repeat;clip-path:inset(0 50% 0 0)}
.branch-leaf.pending{opacity:.5}html[data-theme=dim] .branch-leaf.pending{opacity:.6}html[data-theme=dim] .branch-leaf.pending.current{opacity:.85}
.branch-leaf.current::before{content:'';position:absolute;inset:2px -1px;border:1.5px solid var(--text);border-radius:50%}
.branch-leaf.pending.current{opacity:.75}
.done .progress-branch{max-width:600px;height:104px}
.done .branch-leaf{max-width:52px;height:64px}
.play-shell[data-exercise-id=focus] .instruction{display:flex;align-items:center;justify-content:center;gap:12px}
.rule-icon{width:36px;height:36px;flex:none;fill:none;stroke:currentColor;stroke-width:2}
.exercise-page .play-shell[data-exercise-id=focus] .focus-target{grid-template-rows:var(--focus-token) 52px var(--focus-token)}
.play-shell[data-exercise-id=focus] .focus-label{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-width:0}
.play-shell[data-exercise-id=focus] .focus-label>span{min-width:0}
.focus-check{display:block;width:52px;height:52px;flex:none;object-fit:contain}
.focus-check[hidden]{display:none}
.exercise-page .play-shell[data-exercise-id=focus] .focus-success[aria-pressed=true]{border-color:var(--success);outline:2px solid var(--success);opacity:1;background:color-mix(in srgb,var(--panel-left) 55%,white);transition:background-color .55s ease-out}
html[data-theme=dim] .exercise-page .play-shell[data-exercise-id=focus] .focus-success[aria-pressed=true]{background:color-mix(in srgb,var(--panel-left) 85%,white)}
.play-shell[data-exercise-id=focus] .focus-success[aria-pressed=true]::after{content:none}
.play-shell[data-exercise-id=focus] .focus-success::before{content:'';position:absolute;inset:-2px;border:3px solid var(--success);border-radius:inherit;pointer-events:none;opacity:0;animation:focus-wave .55s ease-out}
.play-shell[data-exercise-id=focus] .focus-success .focus-check{animation:focus-check-reveal .3s ease-out}
.play-shell[data-exercise-id=focus] .focus-settled>.shape{animation:focus-settle .25s ease-out}
@keyframes focus-wave{from{opacity:.6;transform:scale(1)}to{opacity:0;transform:scale(1.06)}}
@keyframes focus-check-reveal{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}
@keyframes focus-settle{0%,100%{transform:scale(1)}45%{transform:scale(1.06)}}
html[data-theme=dim] .branch-leaf,html[data-theme=dim] .focus-check{filter:brightness(1.8)}
@media(orientation:landscape) and (max-height:500px){.exercise-page .play-shell[data-exercise-id=focus] .focus-target{grid-template-rows:minmax(var(--focus-token),88px)}.play-shell[data-exercise-id=focus] .focus-success .focus-label{flex-direction:column-reverse;gap:0}.play-shell[data-exercise-id=focus] .focus-label{font-size:.8125rem}}
@media(prefers-reduced-motion:reduce){.play-shell[data-exercise-id=focus] .focus-success::before,.play-shell[data-exercise-id=focus] .focus-check,.play-shell[data-exercise-id=focus] .focus-settled>.shape{animation:none!important}}

/* Comfort settings: a compact sheet with one shared control per choice. */
.settings-dialog{--bg:var(--home-paper);--text:var(--home-ink);--text-muted:var(--home-muted);--primary:var(--home-accent);--on-primary:var(--home-paper);--settings-selected:var(--home-blue-wash);--settings-line:var(--home-line);background:var(--bg);color:var(--text);border:0;border-radius:16px;padding:0;width:min(600px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:hidden;box-shadow:0 18px 56px color-mix(in srgb,var(--home-ink) 20%,transparent)}
html[data-theme=dim] .settings-dialog{--bg:var(--home-dim-paper);--text:var(--home-dim-ink);--text-muted:var(--home-dim-muted);--primary:var(--home-dim-accent);--on-primary:var(--home-dim-paper);--settings-selected:var(--home-dim-blue-wash);--settings-line:var(--home-dim-line)}
.settings-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto}
.settings-dialog::backdrop{background:color-mix(in srgb,var(--home-ink) 18%,transparent)}
.settings-dialog .dialog-head{padding:24px 24px 12px}
.settings-dialog h2{font-size:1.75rem;line-height:1.25}
.settings-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 24px;scrollbar-color:var(--settings-line) var(--bg);scrollbar-width:thin}
.settings-dialog .setting{display:grid;grid-template-columns:minmax(0,1fr) 17rem;align-items:center;gap:16px;min-height:72px;padding:10px 0;border-bottom:1px solid var(--settings-line)}
.settings-dialog .setting:last-of-type{border-bottom:0}
.settings-dialog .setting strong{font-size:1rem;font-weight:500;line-height:1.4}
.settings-dialog .pill-row{display:grid;grid-template-columns:1fr 1fr;gap:0;min-width:0;padding:3px;border:1px solid var(--settings-line);border-radius:12px}
.settings-dialog .pill{display:flex;justify-content:center;align-items:center;gap:6px;min-width:0;min-height:44px;padding:8px;border:0;border-radius:8px;background:transparent;color:var(--text);font-size:.9375rem;font-weight:500;line-height:1.4}
.settings-dialog .pill:hover{background:color-mix(in srgb,var(--settings-selected) 65%,var(--bg))}
.settings-dialog .pill[aria-pressed=true]{background:var(--settings-selected);color:var(--text)}
.settings-dialog .setting-check{width:16px;height:16px;flex:none;visibility:hidden}
.settings-dialog .pill[aria-pressed=true] .setting-check{visibility:visible}
.settings-dialog :focus-visible{outline:3px solid var(--text);outline-offset:2px;position:relative;z-index:1}
.settings-note{font-size:.9375rem;line-height:1.5;color:var(--text-muted);padding:4px 0 8px;max-width:none}
.settings-dialog .dialog-footer{display:flex;justify-content:flex-end;padding:16px 24px 24px;background:var(--bg)}
.settings-dialog .dialog-footer .btn{min-height:44px;padding:10px 24px}
@media(max-width:620px){.settings-dialog{width:calc(100% - 24px);max-height:calc(100dvh - 24px)}.settings-dialog .dialog-head{padding:20px 20px 12px}.settings-body{padding:0 20px}.settings-dialog .setting{grid-template-columns:minmax(0,1fr);gap:4px;padding:8px 0}.settings-dialog .pill{padding:8px 4px}.settings-dialog .dialog-footer{padding:12px 20px 20px}}

/* A shared working group for the six comparison and choice activities. */
.exercise-page .play-shell.choice-scene{--choice-width:clamp(608px,65vw,1024px);--choice-gap:32px;--choice-reference-gap:64px;--choice-card:128px;height:auto;min-height:100%;grid-template-rows:56px minmax(min-content,1fr) 56px}
.play-shell.choice-scene .play-scene{justify-content:center;gap:36px;padding:16px 0}
.exercise-page .play-shell.choice-scene .instruction{font-size:2rem}
.exercise-page .play-shell.choice-scene .game-field{flex:none;gap:var(--choice-reference-gap);width:min(100%,var(--choice-width));max-width:none;align-self:center}
.play-shell.choice-scene .answer-row{display:flex;flex-wrap:wrap;align-items:stretch;justify-content:center;gap:var(--choice-gap);width:100%}
.exercise-page .play-shell.choice-scene .answer{display:flex;align-items:center;justify-content:center;flex-direction:column;flex:0 0 var(--choice-card);min-width:0;min-height:var(--choice-card);padding:16px 12px;font-size:4rem;line-height:1.2;overflow-wrap:normal}
.play-shell.choice-scene[data-exercise-id=reading] .reference-word{display:flex;align-items:center;justify-content:center;min-width:200px;min-height:200px;padding:20px;margin:0;border:1.5px solid var(--practice-edge);border-radius:16px;background:var(--practice-surface);font-size:7rem;line-height:1.1;white-space:nowrap;overflow-wrap:normal}
.exercise-page .play-shell.choice-scene[data-exercise-id=reading] .answer{flex-direction:row}.play-shell.choice-scene[data-exercise-id=reading] [data-reading-kind=words] .reference-word{min-width:280px;min-height:160px;font-size:4rem}
.play-shell.choice-scene[data-exercise-id=reading] [data-reading-kind=words] .answer-row{display:grid;grid-template-columns:repeat(2,minmax(200px,1fr));container-type:inline-size}
.exercise-page .play-shell.choice-scene[data-exercise-id=reading] [data-reading-kind=words] .answer{font-size:clamp(2.5rem,calc((50cqi - 2.5rem)/(var(--reading-length)*.7)),3rem);white-space:nowrap}
.exercise-page .play-shell.choice-scene .game-field.number-sense-field{display:flex;flex-direction:column;gap:var(--choice-reference-gap)}
.play-shell.choice-scene .number-sense-field .ns-board{display:flex;justify-content:center;align-items:flex-start;gap:32px;width:100%;grid-column:auto;grid-row:auto}
.play-shell.choice-scene .number-sense-field .ns-group{flex:0 1 280px;gap:10px}
.play-shell.choice-scene .number-sense-field .ns-frame{width:100%;gap:8px}
.play-shell.choice-scene .number-sense-field .ns-caption{font-size:1.125rem;line-height:1.3}
.play-shell.choice-scene .number-sense-field .ns-cell{font-size:1rem}
.play-shell.choice-scene .number-sense-field .answer-row{max-width:none;grid-column:auto;grid-row:auto}
.play-shell.choice-scene .number-sense-field .ns-summary{grid-column:auto;grid-row:auto;margin-top:calc(16px - var(--choice-reference-gap));font-size:1rem;line-height:1.4}
.exercise-page .play-shell.choice-scene[data-exercise-id=compare-groups] .answer{flex-basis:200px;font-size:1.5rem}
.play-shell.choice-scene[data-exercise-id=symmetric] .game-field>div:first-child>.mirror-svg{width:280px;height:210px}
.exercise-page .play-shell.choice-scene .mirror-option{gap:12px;font-size:1rem;min-height:200px}
.play-shell.choice-scene .mirror-option svg{width:88px;height:144px}
.exercise-page .play-shell.choice-scene[data-exercise-id=focus] .game-field{gap:32px}
.exercise-page .play-shell.choice-scene[data-exercise-id=focus] .focus-targets{gap:var(--choice-gap)}
@media(min-width:1400px){.play-shell.choice-scene[data-exercise-id=reading] [data-reading-kind=words] .answer-row{grid-template-columns:repeat(4,minmax(200px,1fr))}.exercise-page .play-shell.choice-scene[data-exercise-id=reading] [data-reading-kind=words] .answer{font-size:clamp(2.5rem,calc((25cqi - 2rem)/(var(--reading-length)*.7)),3rem)}}
@media(max-height:850px){.exercise-page .play-shell.choice-scene{--choice-reference-gap:56px}.play-shell.choice-scene .play-scene{gap:24px;padding:12px 0}.play-shell.choice-scene[data-exercise-id=focus]{--focus-token:104px}.play-shell.choice-scene[data-exercise-id=symmetric] .game-field>div:first-child>.mirror-svg{height:176px}.exercise-page .play-shell.choice-scene .mirror-option{min-height:168px}.play-shell.choice-scene .mirror-option svg{height:112px}}
@media(max-width:600px){.exercise-page .play-shell.choice-scene{--choice-width:90%;--choice-card:calc((100% - 24px)/2);--choice-gap:24px;--choice-reference-gap:32px}.play-shell.choice-scene .play-scene{gap:24px}.exercise-page .play-shell.choice-scene .instruction{font-size:1.75rem}.exercise-page .play-shell.choice-scene .answer{min-height:112px;padding:12px 8px;font-size:3.5rem}.play-shell.choice-scene[data-exercise-id=reading] .reference-word{min-width:160px;min-height:160px;font-size:6rem}.play-shell.choice-scene[data-exercise-id=reading] [data-reading-kind=words] .reference-word{min-width:0;max-width:100%;min-height:112px;font-size:clamp(2rem,9vw,3rem)}.play-shell.choice-scene[data-exercise-id=reading] [data-reading-kind=words] .answer-row{grid-template-columns:repeat(2,minmax(0,1fr))}.exercise-page .play-shell.choice-scene[data-exercise-id=reading] [data-reading-kind=words] .answer{font-size:clamp(1.25rem,calc((50cqi - 1.5rem)/(var(--reading-length)*.7)),1.75rem)}.exercise-page .play-shell.choice-scene[data-exercise-id=compare-groups] .answer{flex-basis:calc((100% - 24px)/2);font-size:1.125rem}.play-shell.choice-scene .number-sense-field .ns-board{gap:16px}.play-shell.choice-scene .number-sense-field .ns-frame{gap:5px}.play-shell.choice-scene .number-sense-field .ns-group{gap:8px}.play-shell.choice-scene .number-sense-field .ns-cell{font-size:.875rem}.play-shell.choice-scene .number-sense-field .ns-caption{font-size:1rem}.play-shell.choice-scene[data-exercise-id=symmetric] .game-field>div:first-child>.mirror-svg{width:224px;height:168px}.exercise-page .play-shell.choice-scene .mirror-option{min-height:168px;font-size:1rem}.play-shell.choice-scene[data-exercise-id=focus]{--focus-token:88px}.exercise-page .play-shell.choice-scene[data-exercise-id=focus] .focus-target{padding:12px}.exercise-page .play-shell.choice-scene[data-exercise-id=focus] .focus-targets{gap:16px}}
@media(orientation:landscape) and (max-height:500px){.exercise-page .play-shell.choice-scene{--choice-width:100%;--choice-gap:24px;--choice-reference-gap:16px;--choice-card:80px}.play-shell.choice-scene .play-scene{gap:8px;padding:8px 0}.exercise-page .play-shell.choice-scene .instruction{font-size:1.75rem}.exercise-page .play-shell.choice-scene .answer{min-height:80px;font-size:2.75rem;padding:8px}.play-shell.choice-scene[data-exercise-id=reading] .reference-word{min-width:80px;min-height:80px;padding:8px;font-size:4rem}.play-shell.choice-scene[data-exercise-id=reading] [data-reading-kind=words] .reference-word{min-width:200px;min-height:64px;font-size:2.75rem}.play-shell.choice-scene[data-exercise-id=reading] [data-reading-kind=words] .answer-row{grid-template-columns:repeat(4,minmax(0,1fr))}.exercise-page .play-shell.choice-scene[data-exercise-id=reading] [data-reading-kind=words] .answer{font-size:clamp(1rem,calc((25cqi - 1.5rem)/(var(--reading-length)*.7)),2rem)}.exercise-page .play-shell.choice-scene .game-field.number-sense-field{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 24px}.play-shell.choice-scene .number-sense-field .ns-board{gap:24px;grid-column:1;grid-row:1}.play-shell.choice-scene .number-sense-field .answer-row{grid-column:2;grid-row:1 / span 2;flex-wrap:nowrap;gap:12px;max-width:320px}.play-shell.choice-scene .number-sense-field .ns-summary{grid-column:1;grid-row:2;margin-top:0}.play-shell.choice-scene[data-exercise-id=compare-groups] .answer-row{display:grid;grid-template-columns:200px;gap:8px}.play-shell.choice-scene .number-sense-field .ns-group{flex-basis:200px;gap:4px}.play-shell.choice-scene .number-sense-field .ns-frame{width:150px;gap:3px}.play-shell.choice-scene .number-sense-field .ns-caption{font-size:.875rem}.play-shell.choice-scene .number-sense-field .ns-cell{font-size:.75rem}.play-shell.choice-scene .number-sense-field .ns-summary{font-size:.8125rem;line-height:1.2}.exercise-page .play-shell.choice-scene[data-exercise-id=compare-groups] .answer{min-height:64px;flex-basis:200px;font-size:1.25rem}.play-shell.choice-scene[data-exercise-id=symmetric] .game-field>div:first-child>.mirror-svg{width:144px;height:96px}.exercise-page .play-shell.choice-scene .mirror-option{flex-basis:104px;min-height:96px;font-size:.875rem;gap:4px;padding:6px}.play-shell.choice-scene .mirror-option svg{height:60px;width:44px}.play-shell.choice-scene[data-exercise-id=focus]{--focus-token:80px}.exercise-page .play-shell.choice-scene[data-exercise-id=focus] .game-field{gap:12px}}

/* Short phones keep the full choice set above the action row. */
@media(orientation:portrait) and (max-width:600px) and (max-height:700px){
.exercise-page .play-shell.choice-scene{--choice-gap:20px;--choice-reference-gap:24px}
.play-shell.choice-scene .play-scene{gap:16px;padding:8px 0}
.exercise-page .play-shell.choice-scene .answer{min-height:96px;padding:10px 8px;font-size:3rem}
.play-shell.choice-scene[data-exercise-id=reading] .reference-word{min-width:128px;min-height:128px;padding:12px;font-size:4.75rem}
.play-shell.choice-scene[data-exercise-id=reading] [data-reading-kind=words] .reference-word{min-width:0;min-height:96px;font-size:2.5rem}
.play-shell.choice-scene .number-sense-field .ns-frame{max-width:190px}
.play-shell.choice-scene .number-sense-field .ns-group{gap:6px}
.play-shell.choice-scene .number-sense-field .ns-summary{font-size:.875rem;line-height:1.35}
.play-shell.choice-scene:is([data-exercise-id=number-match],[data-exercise-id=make-number]) .answer-row{flex-wrap:nowrap;gap:16px}
.exercise-page .play-shell.choice-scene:is([data-exercise-id=number-match],[data-exercise-id=make-number]) .answer{flex:1 1 0;min-height:80px}
.exercise-page .play-shell.choice-scene[data-exercise-id=compare-groups] .answer{min-height:80px;font-size:1.125rem}
.play-shell.choice-scene[data-exercise-id=symmetric] .game-field>div:first-child>.mirror-svg{width:160px;height:120px}
.exercise-page .play-shell.choice-scene .mirror-option{min-height:120px;padding:6px;font-size:1rem;gap:6px}
.play-shell.choice-scene .mirror-option svg{width:48px;height:72px}
}

/* Look-Alikes keeps its instruction steady when the answer grid changes. */
.play-shell.choice-scene[data-exercise-id=reading] .play-scene{display:grid;grid-template-rows:auto minmax(min-content,1fr);justify-content:normal}
.play-shell.choice-scene[data-exercise-id=reading] .instruction-row{grid-row:1}
.exercise-page .play-shell.choice-scene[data-exercise-id=reading] .game-field{grid-row:2;justify-self:center;align-self:center}
.play-shell.choice-scene[data-exercise-id=reading].completed .answer[aria-pressed=true]::after{width:48px;height:48px;top:auto;bottom:-18px;right:-18px;border:0;border-radius:0;transform:none;background:url('../assets/images/feedback-check.webp') center/contain no-repeat}
html[data-theme=dim] .play-shell.choice-scene[data-exercise-id=reading].completed .answer[aria-pressed=true]::after{filter:brightness(1.8)}
@media(orientation:landscape) and (max-height:500px){.exercise-page .play-shell.choice-scene[data-exercise-id=reading]{--choice-reference-gap:32px}.play-shell.choice-scene[data-exercise-id=reading].completed .answer[aria-pressed=true]::after{top:-32px;bottom:auto}}
@media(orientation:portrait) and (max-width:600px) and (max-height:700px){.exercise-page .play-shell.choice-scene[data-exercise-id=reading] [data-reading-kind=words] .answer{padding-block:6px 14px}}

/* Number Line: the numbered stone points to one exact position on the axis. */
.play-shell[data-exercise-id=math]{--math-stone:80px;--math-axis:calc(var(--math-stone) + 24px)}
.play-shell[data-exercise-id=math] .number-track{width:min(88%,calc(100% - var(--math-stone) - 16px));max-width:none;height:calc(var(--math-axis) + 64px);margin:0}
.play-shell[data-exercise-id=math] .stone{display:flex;align-items:center;justify-content:center;top:8px;width:var(--math-stone);height:var(--math-stone);font-size:2.25rem;font-weight:500;line-height:1;letter-spacing:0;word-spacing:0;color:var(--ink-on-pebble)}
.play-shell[data-exercise-id=math] .stone::after{content:'';position:absolute;top:82.8%;left:50%;transform:translateX(-50%);width:2px;height:calc(17.2% + 16px);background:var(--text)}
.play-shell[data-exercise-id=math] .axis,.play-shell[data-exercise-id=math] .tick{top:var(--math-axis)}
.play-shell[data-exercise-id=math] .axis-label,.play-shell[data-exercise-id=math] .math-result{position:absolute;top:calc(var(--math-axis) + 28px);transform:translateX(-50%);font-size:1.25rem;line-height:1.3;white-space:nowrap}
.play-shell[data-exercise-id=math] .math-result{color:#42654B;font-weight:600;font-size:1.5rem}
html[data-theme=dim] .play-shell[data-exercise-id=math] .math-result{color:#A6C9A9}
.play-shell[data-exercise-id=math] .stone[data-digits="3"]{font-size:1.65rem}
.play-shell[data-exercise-id=math] .stone.math-success{filter:drop-shadow(2px 0 0 var(--success)) drop-shadow(-2px 0 0 var(--success)) drop-shadow(0 2px 0 var(--success)) drop-shadow(0 -2px 0 var(--success))}
.play-shell[data-exercise-id=math] .stone.math-success::after{background:var(--success)}

/* Exercise introductions share a quiet{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:16px;min-height:80px;padding:8px 0}
@media(max-width:520px){}
@media(max-width:680px){}

/* Introductions center one complete, static working example before play. */
.exercise-page:has(.intro-shell){display:grid;grid-template-rows:64px minmax(min-content,1fr);min-height:100dvh;padding-bottom:0}
.exercise-page .exercise-nav{display:flex;align-items:center;justify-content:space-between;min-height:64px}
.exercise-nav .exercise-back,.exercise-nav .exercise-settings{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:10px;border:0;border-radius:12px;background:transparent;color:var(--text)}
.exercise-nav .exercise-back .icon{width:24px;height:24px}
.exercise-nav .exercise-back:hover,.exercise-nav .exercise-settings:hover{background:var(--panel-left)}
.intro-shell{display:grid;align-items:center;min-width:0;padding:24px 0}
.exercise-start{display:grid;grid-template-columns:minmax(0,.45fr) minmax(0,.55fr);gap:40px;align-items:center;width:100%}
.start-mark{display:grid;place-items:center;min-width:0}
.intro-shell .exercise-start .start-mark img{display:block;width:auto;height:min(36dvh,360px);max-width:100%;object-fit:contain}
.start-copy{display:grid;justify-items:start;gap:14px;min-width:0}
.exercise-page .start-copy h1{font-family:Newsreader,Georgia,serif;font-size:clamp(2.5rem,4.6vw,3.5rem);font-weight:500;letter-spacing:-.025em;line-height:1.04;max-width:none}
.start-copy>p{font-size:1.125rem;line-height:1.4;max-width:42ch}
.level-choice{display:grid;gap:8px;width:100%}
.level-choice>p{font-size:.9375rem;line-height:1.3}
.level-choice .pill-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;align-items:stretch}
.exercise-page .level-choice .pill{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:4px;min-width:0;min-height:44px;padding:10px 12px;border:1.5px solid var(--practice-edge);border-radius:12px;background:var(--practice-surface);color:var(--text);font-size:.9375rem;line-height:1.3;text-align:left}
.level-choice .pill span{font-size:.8125rem;font-weight:400;line-height:1.35}
.exercise-page .level-choice .pill[aria-pressed=true]{background:var(--panel-left);border-color:var(--text);outline:1px solid var(--text);outline-offset:0}
.level-choice .pill[aria-pressed=true]::after{content:'';position:absolute;right:7px;top:9px;width:5px;height:9px;border:solid var(--text);border-width:0 2px 2px 0;transform:rotate(45deg)}
.start-copy>[data-start]{min-height:48px;min-width:112px;padding:10px 24px;font-size:1rem}
.intro-hint{display:grid;align-items:center;width:100%;min-height:64px}
.intro-example{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-width:0;flex-wrap:wrap;font-size:1.25rem;line-height:1.2}
.intro-example>img,.intro-box>img{width:56px;height:56px;object-fit:contain}
.intro-arrow{width:24px;height:24px;flex:none}
.intro-tile{display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;padding:6px 10px;border:1.5px solid var(--practice-edge);border-radius:10px;background:var(--practice-surface)}
.intro-selected{background:var(--panel-left);border-color:var(--text)}
.intro-box{display:grid;place-items:center;padding:4px 12px;background:var(--practice-blue);border:1.5px solid var(--practice-edge);border-radius:12px}
.intro-pebble{position:relative;display:grid;place-items:center;width:64px;height:64px;flex:none}
.intro-pebble img{position:absolute;inset:0;width:100%;height:100%}
.intro-pebble>span{position:relative;z-index:1;color:var(--ink-on-pebble);font-size:1.5rem;line-height:1}
.intro-line{width:140px;height:56px;stroke:var(--text);stroke-width:2;fill:none}
.intro-line text{stroke:none;fill:var(--text);font-size:20px;text-anchor:middle}
.intro-stone-pair{display:flex;gap:2px}.intro-stone-pair img{width:48px;height:48px;object-fit:contain}
.intro-ring{display:block;width:44px;height:44px;border:2px solid var(--practice-edge);border-radius:50%;flex:none}
.intro-sentence,.intro-word{font-size:1.125rem;line-height:1.3}
.intro-sentence mark{background:var(--panel-right);color:var(--text);border-radius:4px}
.intro-dots{width:180px;height:58px;stroke:var(--text);stroke-width:2;fill:var(--practice-surface)}
.intro-mirror{width:108px;height:80px;fill:var(--shape-sand);stroke:var(--text);stroke-width:2}
.intro-mirror path{fill:none;stroke-dasharray:5 5}
.intro-counters,.intro-five{display:flex;align-items:center;gap:5px}
.intro-counters>span,.intro-empty{display:block;width:16px;height:16px;border:1.5px solid var(--practice-edge);border-radius:50%;background:var(--shape-blue);flex:none}
.intro-empty{background:transparent}
.intro-count-group{display:grid;justify-items:center;gap:4px;font-size:.875rem}
.intro-history{display:grid;gap:2px;width:min(100%,300px)}
.intro-history-label{font-size:.8125rem;line-height:1.3;color:var(--text-muted)}
.intro-history .progress-branch{height:28px;min-height:28px;width:100%;max-width:300px}
.intro-history .branch-leaf{height:22px;max-width:20px}
@media(max-aspect-ratio:5/4){.intro-shell{padding:20px 0}.exercise-start{grid-template-columns:minmax(0,1fr);gap:20px;justify-items:center}.intro-shell .exercise-start .start-mark img{height:clamp(96px,22dvh,220px)}.start-copy{width:min(100%,640px);justify-items:center;gap:12px;text-align:center}.intro-example{justify-content:center}.intro-history{justify-items:center}.level-choice .pill{text-align:left}.start-copy>p{max-width:46ch}}
@media(max-width:600px){.intro-shell{padding:12px 0}.exercise-start{gap:12px}.start-copy{gap:10px}.exercise-page .start-copy h1{font-size:2.25rem}.start-copy>p{font-size:1.125rem}.intro-shell .exercise-start .start-mark img{height:clamp(80px,19dvh,160px)}.intro-hint{min-height:52px}.intro-example{gap:8px;font-size:1.125rem}.intro-example>img,.intro-box>img{width:44px;height:44px}.intro-box{padding:2px 10px}.intro-pebble{width:52px;height:52px}.intro-mirror{height:64px;width:88px}.intro-line{height:48px;width:120px}.intro-dots{height:48px;width:160px}.intro-tile{padding:6px 8px}.intro-sentence,.intro-word{font-size:1rem}.exercise-page .level-choice .pill{padding:8px 9px;font-size:.875rem}.level-choice .pill span{font-size:.8125rem}.start-copy>[data-start]{min-height:44px}.intro-history{max-width:280px}}
@media(max-width:600px) and (max-height:700px){.intro-shell .exercise-start .start-mark img{height:clamp(72px,14dvh,104px)}.start-copy{gap:8px}.exercise-start{gap:10px}}


/* A one-pixel natural edge follows the artwork alpha instead of boxing it in. */
.play-shell :is(.hand-stone,.hand-ring){filter:drop-shadow(1px 0 0 var(--object-edge)) drop-shadow(-1px 0 0 var(--object-edge)) drop-shadow(0 1px 0 var(--object-edge)) drop-shadow(0 -1px 0 var(--object-edge))}
.play-shell .hand-ring.held{outline:2px solid var(--success);outline-offset:3px;border-radius:50%}
.branch-leaf.pending,.branch-leaf.help{opacity:1!important;filter:none!important;background:var(--success);mask:url('../assets/images/progress-leaf-outline.webp') center/contain no-repeat}
.branch-leaf.pending.current{mask:none;background:transparent url('../assets/images/progress-leaf-outline.webp') center/contain no-repeat}
html[data-theme=dim] .branch-leaf.pending.current{filter:brightness(1.8)!important}
