/* Child controls are shared by exercise introductions, play, and completion only. */
.child-ui .ui-symbol{display:block;width:34px;height:34px;flex:none;color:inherit}
html[data-nowords=true] .child-ui .child-word{visibility:hidden}
html[data-nowords=true] .child-ui .intro-description{opacity:0}
.exercise-page .child-ui .child-action{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:88px;min-height:64px;padding:4px 16px;line-height:1.2}
.child-ui .child-action>.child-word{font-size:clamp(14px,.9375rem,16px);font-weight:500;line-height:1.1;white-space:nowrap}
.child-ui .child-action>.ui-symbol{width:32px;height:32px}
.child-ui .task-pictogram{display:inline-flex;align-items:center;justify-content:center;flex:none;color:var(--text)}
.child-ui .task-pictogram>.ui-symbol{width:36px;height:36px}
.exercise-nav .ui-symbol,.child-ui .play-back>.ui-symbol,.child-ui .play-settings>.ui-symbol,.child-ui .speaker>.ui-symbol{width:24px;height:24px}
/* Intro: large artwork beside the centred working column on wide screens. */
.exercise-page .intro-shell.child-ui{justify-items:center;padding:12px 0}
.child-ui.intro-shell .exercise-start{grid-template-columns:minmax(0,1fr);justify-items:center;width:min(100%,640px);gap:8px}
.child-ui.intro-shell .exercise-start .start-mark img{display:block;width:58vw;height:auto;max-height:30dvh;max-width:100%;object-fit:contain}
.child-ui.intro-shell .start-copy{width:100%;justify-items:center;text-align:center;gap:8px}
.exercise-page .child-ui.intro-shell .start-copy h1{font-size:clamp(2rem,3.5vw,2.5rem);line-height:1.05}
.child-ui.intro-shell .start-copy>p{max-width:48ch;font-size:1rem;line-height:1.4}
.child-ui.intro-shell .intro-hint{grid-template-columns:minmax(0,1fr);justify-items:center;gap:0;min-height:52px}
.child-ui.intro-shell .intro-example{justify-content:center;gap:8px}
.child-ui .intro-example .ui-symbol{width:32px;height:32px}
.child-ui .intro-order{display:flex;align-items:center;gap:4px}
.child-ui .intro-count-group>.child-word{line-height:1}
.child-ui .intro-tile:has(.ui-symbol){gap:4px;font-size:.875rem}
.child-ui.intro-shell .intro-history{justify-items:center}
.child-ui.intro-shell .level-choice{gap:6px}
.child-ui.intro-shell .level-choice>p{max-width:none;width:100%}
.exercise-page .child-ui.intro-shell .level-choice .pill{align-items:center;justify-content:center;gap:3px;padding:24px 6px 6px;min-height:116px;text-align:center}
.child-ui.intro-shell .level-leaves{display:flex;justify-content:center;gap:2px;height:32px;line-height:1;flex:none;color:var(--success)}
.child-ui.intro-shell .level-leaves .ui-symbol{width:32px;height:32px;fill:currentColor}
.child-ui.intro-shell .level-preview{display:flex;align-items:center;justify-content:center;min-height:32px;height:32px;width:108px;max-width:100%;line-height:1.1;color:var(--text)}
.child-ui.intro-shell .level-material{display:block;width:108px;height:32px;max-width:100%;overflow:visible}
.child-ui.intro-shell .level-endpoint{font-size:24px}
.child-ui.intro-shell[data-exercise-id=connect-dots] .level-preview{margin-bottom:4px}
.child-ui.intro-shell .level-parts,.child-ui.intro-shell .level-pieces,.child-ui.intro-shell .level-hands{display:flex;align-items:center;justify-content:center;gap:2px;width:100%}
.child-ui.intro-shell .level-parts{flex-wrap:wrap;gap:2px}
.exercise-page .child-ui.intro-shell .level-part{border:1px solid var(--practice-edge);border-radius:3px;padding:2px;font-size:12px;line-height:1.1}
.child-ui.intro-shell .level-pieces img{width:24px;height:24px;object-fit:contain;min-width:0}
.child-ui.intro-shell .level-hands .ui-symbol{width:16px;height:24px;min-width:0}
.exercise-page .child-ui.intro-shell .level-name{font-size:14px;font-weight:400;line-height:1.2}
.exercise-page .child-ui.intro-shell .level-choice .pill[aria-pressed=true]{border-color:var(--success);outline:1px solid var(--success);background:var(--panel-left)}
.child-ui.intro-shell .level-choice .pill[aria-pressed=true]::after{content:none}
.child-ui.intro-shell .level-check{position:absolute;right:5px;top:3px;width:24px;height:24px;color:var(--text);visibility:hidden}
.child-ui.intro-shell .level-check>.ui-symbol{width:24px;height:24px;stroke-width:4.5}
.child-ui.intro-shell .pill[aria-pressed=true]>.level-check{visibility:visible}

.child-ui.intro-shell[data-exercise-id=focus] .intro-example .shape{display:block;flex:none;width:48px;height:48px;min-width:48px;margin:0}
.child-ui.intro-shell .level-rules{display:flex;align-items:center;justify-content:center;gap:2px;width:100%}
.child-ui.intro-shell .level-rules>.ui-symbol{width:22px;height:24px;min-width:0}
.child-ui.intro-shell .level-rules>.intro-arrow,.child-ui.intro-shell .level-rule-arrow{width:14px;height:20px;flex:none}
@media(max-width:600px){
 .exercise-page .play-shell.child-ui:is([data-exercise-id=punctuation],[data-exercise-id=syllables]) .instruction>.child-word{white-space:normal;overflow-wrap:anywhere}
 .exercise-page .intro-shell.child-ui{padding:8px 0}
 .child-ui.intro-shell .exercise-start,.child-ui.intro-shell .start-copy{gap:6px}
 .child-ui.intro-shell .level-choice .pill-row{gap:6px}
 .exercise-page .child-ui.intro-shell .level-choice .pill{padding:24px 3px 4px;min-height:104px;gap:1px}
 .child-ui.intro-shell .level-leaves{height:28px;gap:0}
 .child-ui.intro-shell .level-leaves .ui-symbol{width:28px;height:28px}
 .child-ui.intro-shell .level-preview{height:28px;min-height:28px}
 .child-ui.intro-shell .level-material{height:32px}
 .child-ui.intro-shell .level-pieces img{width:21px;height:21px}
 .child-ui.intro-shell .level-hands .ui-symbol{width:14px;height:22px}
}
@media(max-height:720px){
 .child-ui.intro-shell .exercise-start,.child-ui.intro-shell .start-copy{gap:2px}
 .child-ui.intro-shell .intro-hint{min-height:40px}
 .child-ui.intro-shell .intro-example{font-size:1rem}
 .child-ui.intro-shell .intro-example>img,.child-ui.intro-shell .intro-box>img{width:40px;height:40px}
 .child-ui.intro-shell .intro-line,.child-ui.intro-shell .intro-dots{height:40px}
 .child-ui.intro-shell .intro-pebble{height:44px;width:44px}
 .child-ui.intro-shell .intro-tile{padding-block:3px}
 .child-ui.intro-shell .intro-mirror{height:48px}
}
@media(max-width:600px) and (max-height:720px){
 .exercise-page .intro-shell.child-ui{padding-block:4px}
 .child-ui.intro-shell .start-copy{gap:1px}
 .child-ui.intro-shell .start-copy>p{line-height:1.3}
 .child-ui.intro-shell .intro-history{grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:8px;max-width:300px}
 .child-ui.intro-shell .intro-history-label{white-space:nowrap}
}
/* The wide introduction gives its text and choices the same weight as the artwork. */
@media(min-width:900px) and (orientation:landscape){
 .exercise-page:has(.intro-shell.child-ui){width:min(100% - 64px,1120px)}
 .child-ui.intro-shell .exercise-start{width:min(100%,1120px);grid-template-columns:minmax(320px,.405fr) minmax(0,.595fr);gap:24px;align-items:center}
 .child-ui.intro-shell .exercise-start .start-mark{width:100%}
 .child-ui.intro-shell .exercise-start .start-mark img{width:100%;height:auto;min-width:320px;max-height:min(60dvh,440px)}
 .child-ui.intro-shell .start-copy{gap:8px}
 .exercise-page .child-ui.intro-shell .start-copy h1{font-size:clamp(2.75rem,4.5vw,3rem)}
 .child-ui.intro-shell .start-copy>p{font-size:1.125rem;line-height:1.35}
 .child-ui.intro-shell .intro-hint{min-height:64px}
 .child-ui.intro-shell .intro-example{gap:10px;font-size:1.5rem}
 .child-ui.intro-shell .intro-example>img,.child-ui.intro-shell .intro-box>img{width:64px;height:64px}
 .child-ui.intro-shell[data-exercise-id=focus] .intro-example .shape{width:64px;height:64px;min-width:64px}
 .child-ui.intro-shell .intro-example .ui-symbol{width:40px;height:40px}
 .child-ui.intro-shell .intro-arrow{width:28px;height:28px}
 .child-ui.intro-shell .intro-tile{padding:8px 10px}
 .child-ui.intro-shell .intro-tile:has(.ui-symbol){font-size:1rem}
 .child-ui.intro-shell .intro-pebble{height:64px;width:64px}
 .child-ui.intro-shell .intro-line{height:64px;width:160px}
 .child-ui.intro-shell .intro-dots{height:64px;width:190px}
 .child-ui.intro-shell .intro-mirror{height:64px;width:108px}
 .child-ui.intro-shell .intro-counters>span,.child-ui.intro-shell .intro-empty{width:20px;height:20px}
 .exercise-page .child-ui.intro-shell .level-choice .pill{min-height:136px;padding:28px 6px 6px;gap:2px}
 .child-ui.intro-shell .level-leaves{height:40px}
 .child-ui.intro-shell .level-leaves .ui-symbol{width:40px;height:40px}
 .child-ui.intro-shell .level-preview{width:132px;height:40px;min-height:40px}
 .child-ui.intro-shell .level-material{width:132px;height:44px}
 .child-ui.intro-shell .level-endpoint{font-size:18px}
 .exercise-page .child-ui.intro-shell .level-part{font-size:14px;padding:3px}
 .child-ui.intro-shell .level-rules>.ui-symbol{width:28px;height:30px}
 .child-ui.intro-shell .level-rules>.intro-arrow,.child-ui.intro-shell .level-rule-arrow{width:18px;height:24px}
 .child-ui.intro-shell .level-hands .ui-symbol{width:20px;height:30px}
 .child-ui.intro-shell .level-check,.child-ui.intro-shell .level-check>.ui-symbol{width:28px;height:28px}
 .child-ui.intro-shell .level-check>.ui-symbol{stroke-width:3.857}
 .exercise-page .child-ui.intro-shell .start-copy>[data-start]{min-width:140px;min-height:72px;padding:6px 24px}
 .child-ui.intro-shell .start-copy>[data-start]>.ui-symbol{width:40px;height:40px}
 .child-ui.intro-shell .start-copy>[data-start]>.child-word{font-size:1rem}
}
.exercise-page .play-shell.child-ui{height:auto;min-height:100%;grid-template-rows:64px minmax(min-content,1fr) 72px}
.exercise-page .play-shell.child-ui .instruction{display:flex;align-items:center;justify-content:center;gap:10px;font-size:clamp(1rem,2.2vw,1.6rem);min-width:0;max-width:none}
.child-ui .instruction>.child-word{white-space:nowrap;min-width:0}
.exercise-page .play-shell.child-ui .instruction-row{gap:6px;width:100%;min-height:44px}
.child-ui .instruction .task-pictogram>.ui-symbol{width:32px;height:32px}
.exercise-page .play-shell.child-ui .task-bottom{display:grid;grid-template-columns:minmax(0,160px) minmax(64px,1fr) minmax(0,160px);grid-template-rows:minmax(64px,auto);gap:8px;padding:4px 0;min-height:72px;align-items:center}
.exercise-page .play-shell.child-ui .task-bottom .child-action{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:64px;min-width:0;width:100%;padding:4px 12px;gap:2px;font-size:.9375rem}
.child-ui .task-bottom .feedback{grid-column:2;grid-row:1;min-height:16px;font-size:.875rem;line-height:1.2;margin:0;text-align:center;max-width:none}
.child-ui .task-bottom .play-undo{grid-column:1;grid-row:1;justify-self:start}
.child-ui .task-bottom [data-ok]{grid-column:3;grid-row:1;justify-self:end}
.exercise-page .play-shell.child-ui .play-tools .play-help{min-width:64px;min-height:64px;padding:4px 6px}
.child-ui .play-tools .play-help>.ui-symbol{width:32px;height:32px}
.child-ui .play-tools .play-help>.child-word{font-size:14px}
.child-ui.completed .feedback::before{content:none}
.child-ui .answer-picture{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px}
.child-ui .answer-picture>svg{display:block;width:88px;height:44px;flex:none}
.child-ui .answer-picture>.ui-symbol{width:34px;height:34px}
.child-ui .sequence-dot{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:2px}
.child-ui .sequence-dot>.ui-symbol{width:32px;height:32px}
.child-ui .tap-pad{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}
.child-ui .tap-pad>.ui-symbol{width:48px;height:48px}
.child-ui .tap-pad>.child-word{font-size:.9375rem}
.child-ui .tap-actions .btn,.child-ui .tap-controls>[data-tap-mode]{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.child-ui .tap-actions .ui-symbol,.child-ui .tap-controls>[data-tap-mode] .ui-symbol{width:28px;height:28px}
.child-ui .ns-board.ns-comparison{display:flex;flex-wrap:nowrap}
.child-ui .ns-board.ns-comparison>.ns-group{min-width:0}
.child-ui :is(.answer-row,.letter-sentence,.sequence-prompt,.sentence-preview,.dot-board).child-correct{position:relative}
.child-ui .child-correct::before{content:'';position:absolute;right:6px;bottom:6px;width:48px;height:48px;background:url('../assets/images/feedback-check.webp') center/contain no-repeat;pointer-events:none;z-index:3}
.child-ui .answer.child-correct[aria-pressed=true]::after{content:none}
.child-ui .answer.child-correct::before{right:6px;bottom:6px}
.child-ui .stone.child-correct::before{top:12px;bottom:auto;right:-44px}
.child-ui .stone.child-correct[data-check-side=left]::before{right:auto;left:-44px}
html[data-theme=dim] .child-ui .child-correct::before{filter:brightness(1.8)}
.child-ui .transition-pictogram>.ui-symbol{width:96px;height:96px}
.exercise-page:has(.child-ui>.done){padding-bottom:0}
.child-ui .done{gap:20px;min-height:calc(100dvh - 64px);padding:20px 0}
.child-ui .done h1{display:flex;align-items:center;justify-content:center;gap:12px;font-size:3rem}
.child-ui .done h1>.ui-symbol{width:56px;height:56px}
.child-ui .done .actions{flex-direction:row;align-items:stretch;justify-content:center;gap:12px;width:auto}
.child-ui .next-exercise{display:flex;align-items:center;justify-content:center;gap:12px;min-height:80px;max-width:100%;color:var(--text);font-size:1rem}
.child-ui .next-exercise>img{width:100px;height:75px;object-fit:contain}
.child-ui .next-exercise>.ui-symbol{width:32px;height:32px}
.tutorial-overlay{position:fixed;inset:0;z-index:40;pointer-events:none;color:var(--text);overflow:visible}
.tutorial-overlay>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible;fill:none}
.tutorial-overlay polyline{fill:none;stroke:currentColor;stroke-width:2;stroke-dasharray:5 7;stroke-linecap:round;opacity:.55}
.tutorial-hand{position:absolute;left:0;top:0;width:36px;height:36px;opacity:.72;will-change:transform}
.tutorial-hand>.ui-symbol{display:block;width:36px;height:36px;fill:none}
.tutorial-mark{position:absolute;left:30px;top:-20px;display:grid;place-items:center;min-width:32px;min-height:32px;background:var(--practice-surface);color:var(--text);border:1px solid var(--practice-edge);border-radius:8px;font:600 1.5rem/1 var(--font)}
.tutorial-static .tutorial-hand>.ui-symbol{visibility:hidden}
.tutorial-static polyline{stroke-dasharray:none;opacity:.75}
@media(max-width:600px){.child-ui .task-pictogram>.ui-symbol{width:32px;height:32px}.child-ui .intro-tile:has(.ui-symbol){padding-inline:6px}.child-ui .done .actions .btn{width:auto;min-width:80px;padding-inline:10px}.child-ui .done{gap:12px}.child-ui .done .progress-branch{height:72px}.child-ui .next-exercise>img{width:80px;height:60px}}
@media(max-width:380px){.exercise-page .play-shell.child-ui .instruction{font-size:.875rem;gap:7px}.child-ui .instruction .task-pictogram>.ui-symbol{width:30px;height:30px}.child-ui .task-bottom .feedback{font-size:.8125rem}}
@media(orientation:landscape) and (max-height:500px){.exercise-page .play-shell.child-ui{grid-template-rows:64px minmax(min-content,1fr) 72px}.exercise-page .play-shell.child-ui .task-bottom{min-height:72px;padding:4px 0}.exercise-page .play-shell.child-ui .instruction{font-size:1rem}.child-ui .transition{min-height:calc(100dvh - 64px);gap:12px}.child-ui .transition-pictogram>.ui-symbol{width:56px;height:56px}.child-ui .done{min-height:calc(100dvh - 64px);gap:8px}.child-ui .done .progress-branch{height:60px}.child-ui .done .branch-leaf{height:40px}.child-ui .done h1{font-size:2rem}.child-ui .done h1>.ui-symbol{width:40px;height:40px}.child-ui .next-exercise{min-height:56px}.child-ui .next-exercise>img{width:64px;height:48px}.child-ui .next-exercise>.ui-symbol{width:24px;height:24px}.exercise-page .play-shell.child-ui[data-exercise-id=symmetric] .mirror-option{min-height:80px}.child-ui[data-exercise-id=symmetric] .game-field>div:first-child>.mirror-svg{height:80px}.exercise-page .play-shell.child-ui[data-exercise-id=symmetric] .game-field{gap:8px}}

@media(min-width:601px) and (min-height:501px) and (max-height:720px){.play-shell.child-ui[data-exercise-id=focus] .play-scene{gap:16px}.exercise-page .play-shell.child-ui[data-exercise-id=focus] .game-field{gap:24px}.exercise-page .play-shell.child-ui[data-exercise-id=focus] .focus-target{padding-block:20px}}

/* Keep instructions anchored and the working group centered below them. */
.play-shell.child-ui .play-scene{display:grid;grid-template-rows:auto minmax(min-content,1fr);justify-content:normal}
.exercise-page .play-shell.child-ui .play-scene>.game-field{grid-row:2;align-self:center;justify-self:center;width:100%}
.exercise-page .play-shell.child-ui.choice-scene .play-scene>.game-field{width:min(100%,var(--choice-width))}
.child-ui .answer-row.child-correct::before{right:6px;bottom:6px}
.child-ui .reference-word.child-correct{position:relative}
.child-ui .reference-word.child-correct::before{left:calc(100% + 12px);right:auto;top:50%;bottom:auto;transform:translateY(-50%)}
@media(min-width:601px) and (max-height:720px){.play-shell.child-ui:is([data-exercise-id=number-match],[data-exercise-id=compare-groups],[data-exercise-id=make-number]){--choice-reference-gap:40px}.child-ui .number-sense-field .ns-frame{max-width:240px}}
@media(max-width:600px) and (max-height:720px){.child-ui[data-exercise-id=connect-dots] .dots-boards>section:first-child .dot-board{width:calc(var(--dot-size)*.8)}.child-ui[data-exercise-id=connect-dots] .dots-boards>section:first-child .dot-board text{font-size:24px}.child-ui .intro-tile:has(.ui-symbol){flex-direction:column;gap:2px}.child-ui .intro-example .child-word{font-size:clamp(14px,.875rem,16px);line-height:1.1}.child-ui .intro-example .intro-tile>.ui-symbol{width:28px;height:28px}.child-ui .intro-example{gap:6px}}

/* Answer feedback is contained by the selected object. */
.play-shell.child-ui.choice-scene[data-exercise-id=reading].completed .answer[aria-pressed=true]::after{right:6px;bottom:6px;top:auto}

.play-shell.child-ui[data-exercise-id=reading] [data-reading-kind=words] .answer{padding-block:6px 48px}
.play-shell.child-ui[data-exercise-id=reading] [data-reading-kind=letters] .answer{padding-inline:8px 24px}

/* A permanent top band keeps the selected mark clear of every tile's content. */
.exercise-page .play-shell.child-ui[data-exercise-id]:not([data-exercise-id=compare-groups]) [data-game] :is(.answer,.focus-target,.letter-cell){position:relative;border-width:3px}
.exercise-page .play-shell.child-ui[data-exercise-id]:not([data-exercise-id=compare-groups]) [data-game] :is(.answer,.focus-target,.letter-cell):not([aria-pressed=true]){border-color:transparent;outline:1px solid var(--practice-edge);outline-offset:-2px}
.exercise-page .play-shell.child-ui[data-exercise-id]:not([data-exercise-id=compare-groups]) [data-game] :is(.answer,.focus-target){padding-block-start:36px}
.exercise-page .play-shell.child-ui[data-exercise-id]:not([data-exercise-id=compare-groups]) [data-game] .letter-cell{width:48px;min-width:48px;height:44px;min-height:44px;padding:0 26px 0 2px;font-size:1.125rem}
/* One selected-answer mark across the child games; completion keeps its own art. */
.exercise-page .play-shell.child-ui:not([data-exercise-id=compare-groups]) :is(.answer,.focus-target,.letter-cell,.tap-pad)[aria-pressed=true]{position:relative;border:3px solid var(--success);outline:0;box-shadow:none}
.exercise-page .play-shell.child-ui[data-exercise-id]:not([data-exercise-id=compare-groups]) [data-game] :is(.answer,.focus-target,.letter-cell,.tap-pad):focus-visible,
.exercise-page .child-ui.intro-shell .level-choice .pill[aria-pressed=true]:focus-visible{outline:3px solid var(--text);outline-offset:3px}
.exercise-page .play-shell.child-ui:not(.completed):not([data-exercise-id=compare-groups]) :is(.answer,.focus-target,.letter-cell,.tap-pad)[aria-pressed=true]::after{content:'';position:absolute;right:6px;top:6px;width:24px;height:24px;border:0;border-radius:0;transform:none;background:var(--success);clip-path:polygon(8% 47%,20% 35%,39% 55%,80% 8%,93% 20%,40% 82%);pointer-events:none}



.exercise-page .play-shell.child-ui:not(.completed):not([data-exercise-id=compare-groups]) .letter-cell[aria-pressed=true]::after{width:20px;height:20px;right:1px;top:1px}



@media(min-width:601px) and (min-height:501px) and (max-height:720px){
 .exercise-page .play-shell.child-ui.choice-scene[data-exercise-id=focus]{--focus-token:96px}
}
/* Reading keeps its compact rows and reserves a permanent right-hand column. */
.exercise-page .play-shell.child-ui.choice-scene[data-exercise-id=reading] [data-game] .answer{padding-block-start:12px;padding-inline-end:40px}
@media(max-width:600px){
 .exercise-page .play-shell.child-ui[data-exercise-id=reading] [data-reading-kind=words] .answer{font-size:clamp(1rem,calc((50cqi - 72px)/(var(--reading-length)*.7)),1.75rem)}
}


@media(min-width:601px) and (min-height:501px) and (max-height:720px){
 .exercise-page .play-shell.child-ui.choice-scene[data-exercise-id=reading] .play-scene>[data-game]{gap:24px}
 .exercise-page .play-shell.child-ui.choice-scene[data-exercise-id=reading] [data-game] .answer-row{gap:20px}
}
@media(max-width:600px){
 .exercise-page .play-shell.child-ui.choice-scene[data-exercise-id=symmetric] [data-game] .mirror-option{padding-block-start:12px;padding-inline-end:40px}
 .exercise-page .play-shell.child-ui.choice-scene[data-exercise-id=symmetric] .play-scene>[data-game]{gap:16px}
 .exercise-page .play-shell.child-ui.choice-scene[data-exercise-id=symmetric] [data-game] .answer-row{gap:16px}
}
@media(min-width:601px) and (min-height:501px) and (max-height:720px){
 .exercise-page .play-shell.child-ui.choice-scene[data-exercise-id=reading] [data-reading-kind=words] .reference-word{min-height:144px}
}
@media(max-width:600px) and (max-height:720px){
 .exercise-page .play-shell.child-ui[data-exercise-id=same-letters] .play-scene>[data-game]{gap:12px}
}

/* Letter Finder keeps whole words, with only an oversized word scrolling. */
.exercise-page .play-shell.child-ui[data-exercise-id=same-letters] [data-game] .letter-cell[aria-pressed]{width:var(--letter-tile-width,72px);min-width:var(--letter-tile-width,72px);height:72px;min-height:72px;flex:none;padding:0 26px 0 2px;font-size:2.25rem;line-height:1}
.exercise-page .play-shell.child-ui[data-exercise-id=same-letters] .letter-sentence{column-gap:32px;row-gap:12px;align-items:center}
.exercise-page .play-shell.child-ui[data-exercise-id=same-letters] .letter-word{display:flex;flex:0 0 auto;flex-wrap:nowrap;justify-content:flex-start;gap:1px;min-width:0;max-width:100%;overflow-x:auto;overflow-y:hidden;touch-action:pan-x;scrollbar-width:thin}
.exercise-page .play-shell.child-ui[data-exercise-id=same-letters] .letter-word-window{position:relative;display:block;max-width:100%;min-width:0;flex:0 0 auto}
.exercise-page .play-shell.child-ui[data-exercise-id=same-letters] .letter-word-arrow{display:none;position:absolute;right:0;bottom:4px;padding-left:4px;background:var(--bg);font-size:24px;line-height:1;color:var(--text);pointer-events:none}
.exercise-page .play-shell.child-ui[data-exercise-id=same-letters] .has-more>.letter-word-arrow{display:block}
.exercise-page .play-shell.child-ui[data-exercise-id=same-letters] .letter-word::-webkit-scrollbar{height:4px}
.exercise-page .play-shell.child-ui[data-exercise-id=same-letters] .letter-word::-webkit-scrollbar-thumb{background:var(--practice-edge);border-radius:4px}
.exercise-page .play-shell.child-ui[data-exercise-id=same-letters] .letter-word::-webkit-scrollbar-track{background:var(--panel-left)}
.exercise-page .play-shell.child-ui[data-exercise-id=same-letters] .play-scene>[data-game]{gap:16px}
.exercise-page .play-shell.child-ui[data-exercise-id=symmetric] .mirror-svg polygon{stroke:var(--honey-edge);stroke-width:2;vector-effect:non-scaling-stroke}
@media(max-width:600px){
 .exercise-page .play-shell.child-ui[data-exercise-id=same-letters] [data-game] .letter-cell[aria-pressed]{width:var(--letter-tile-width,56px);min-width:var(--letter-tile-width,56px);height:48px;min-height:48px;padding:0 24px 0 2px;font-size:26px}
 .exercise-page .play-shell.child-ui[data-exercise-id=same-letters] [data-game] .is-compact .letter-cell[aria-pressed]{height:60px;min-height:60px;padding:22px 0 0}
 .exercise-page .play-shell.child-ui[data-exercise-id=same-letters] .letter-sentence{column-gap:16px;row-gap:8px}
 .exercise-page .play-shell.child-ui[data-exercise-id=same-letters] [data-letter-level="2"] .letter-sentence{row-gap:2px}
 .exercise-page .play-shell.child-ui[data-exercise-id=same-letters] .play-scene>[data-game]{gap:8px}
 .exercise-page .play-shell.child-ui[data-exercise-id=same-letters] [data-game]>.reference-word{font-size:36px;line-height:1;min-height:36px}
}
@media(max-width:600px) and (max-height:720px){
 .exercise-page .play-shell.child-ui[data-exercise-id=same-letters] .play-scene{padding-block:0;gap:4px}
}

/* Both mirror halves use one SVG unit scale, independent of choice count. */
.exercise-page .play-shell.child-ui.choice-scene[data-exercise-id=symmetric]{--mirror-unit:1px}
.exercise-page .play-shell.child-ui.choice-scene[data-exercise-id=symmetric] .game-field>div:first-child>.mirror-svg{width:calc(200 * var(--mirror-unit));height:calc(150 * var(--mirror-unit))}
.exercise-page .play-shell.child-ui.choice-scene[data-exercise-id=symmetric] [data-game] .mirror-option{display:flex;flex:0 0 160px;flex-direction:column;justify-content:center;align-items:center;width:160px;min-width:160px;max-width:160px;height:200px;min-height:200px;padding:36px 8px 8px;gap:0}
.exercise-page .play-shell.child-ui.choice-scene[data-exercise-id=symmetric] [data-game] .mirror-option>.mirror-svg{width:calc(90 * var(--mirror-unit));height:calc(150 * var(--mirror-unit));flex:none}
.exercise-page .play-shell.child-ui.choice-scene[data-exercise-id=symmetric] .play-scene>[data-game]{gap:24px}
.exercise-page .play-shell.child-ui.choice-scene[data-exercise-id=symmetric] [data-game] .answer-row{gap:24px;display:flex;flex-wrap:nowrap}
@media(max-width:600px){
 .exercise-page .play-shell.child-ui.choice-scene[data-exercise-id=symmetric]{--mirror-unit:.6px}
 .exercise-page .play-shell.child-ui.choice-scene[data-exercise-id=symmetric] [data-game] .mirror-option{flex-basis:124px;width:124px;min-width:124px;max-width:124px;height:132px;min-height:132px;padding:30px 8px 6px}
 .exercise-page .play-shell.child-ui.choice-scene[data-exercise-id=symmetric] [data-game] .answer-row{display:grid;grid-template-columns:repeat(2,124px);gap:12px}
 .exercise-page .play-shell.child-ui.choice-scene[data-exercise-id=symmetric] .play-scene>[data-game]{gap:12px}
}

/* Connect the Dots: a quiet reference card beside the working board. */
.exercise-page .play-shell.child-ui[data-exercise-id=connect-dots] .dots-boards{width:588px;max-width:100%;grid-template-columns:200px 340px;gap:48px}
.exercise-page .play-shell.child-ui[data-exercise-id=connect-dots] .dots-boards>section:first-child{width:200px;height:200px;padding:10px;border:1px solid var(--practice-edge);border-radius:16px;background:var(--practice-surface)}
.exercise-page .play-shell.child-ui[data-exercise-id=connect-dots] .dots-boards>section:first-child .dot-board{width:180px;height:180px;max-width:none}
.exercise-page .play-shell.child-ui[data-exercise-id=connect-dots] .dots-boards>section:last-child .dot-board{width:340px;height:340px;max-width:none}
.exercise-page .play-shell.child-ui[data-exercise-id=connect-dots] .dot-point{width:64px;height:64px;min-width:64px;min-height:64px;font-size:20px;padding:0}
.exercise-page .play-shell.child-ui[data-exercise-id=connect-dots] .dot-board line{stroke:var(--success);stroke-width:6px;stroke-linecap:round;vector-effect:non-scaling-stroke}

/* Each sequence card shows the same two pads used by the child's hands. */
.exercise-page .play-shell.child-ui[data-exercise-id=hand-sequence] .sequence-prompt{gap:12px;max-width:100%}
.exercise-page .play-shell.child-ui[data-exercise-id=hand-sequence] .sequence-dot{position:relative;display:flex;align-items:center;justify-content:center;width:80px;min-width:80px;height:88px;min-height:88px;padding:8px 8px 24px;border:3px solid transparent;outline:1px solid var(--practice-edge);outline-offset:-2px;border-radius:12px;background:var(--practice-surface);opacity:1}
.exercise-page .play-shell.child-ui[data-exercise-id=hand-sequence] .sequence-dot.is-current{border-color:var(--success);outline:0}
.exercise-page .play-shell.child-ui[data-exercise-id=hand-sequence] .sequence-mini{display:flex;gap:4px}
.exercise-page .play-shell.child-ui[data-exercise-id=hand-sequence] .sequence-mini-pad{display:block;width:24px;height:40px;border:1px solid var(--practice-edge);border-radius:6px;background:transparent}
.exercise-page .play-shell.child-ui[data-exercise-id=hand-sequence] .sequence-mini-pad.left.is-required{background:var(--hand-mini-left)}
.exercise-page .play-shell.child-ui[data-exercise-id=hand-sequence] .sequence-mini-pad.right.is-required{background:var(--hand-mini-right)}
.exercise-page .play-shell.child-ui[data-exercise-id=hand-sequence] .sequence-check{display:none;position:absolute;bottom:1px;left:calc(50% - 12px);width:24px;height:24px;color:var(--success)}
.exercise-page .play-shell.child-ui[data-exercise-id=hand-sequence] .sequence-check>.ui-symbol{width:24px;height:24px;stroke-width:3}
.exercise-page .play-shell.child-ui[data-exercise-id=hand-sequence] .sequence-dot.is-complete>.sequence-check{display:block}
.exercise-page .play-shell.child-ui[data-exercise-id=hand-sequence] .tap-pad{padding-inline:12px 60px}
.exercise-page .play-shell.child-ui[data-exercise-id=both-hands] .tap-controls>[data-tap-mode]{display:flex;flex-direction:column;align-items:center;gap:2px;min-height:64px;border:0;outline-offset:2px;background:transparent;padding:4px 10px;color:var(--text)}
.exercise-page .play-shell.child-ui[data-exercise-id=both-hands] .tap-controls>[data-tap-mode]>.ui-symbol{width:36px;height:36px}
.exercise-page .play-shell.child-ui[data-exercise-id=both-hands] .tap-controls>[data-tap-mode]>.child-word{font-size:14px}

/* Punctuation is chosen directly, without opening a native select menu. */
.exercise-page .play-shell.child-ui[data-exercise-id=punctuation] .sentence-preview{font-size:32px;line-height:1.6;text-align:center;max-width:900px}
.exercise-page .play-shell.child-ui[data-exercise-id=punctuation] .punctuation-gap{display:inline-flex;align-items:center;justify-content:center;width:56px;min-width:56px;height:56px;padding:0;margin:0 4px;border:1px solid var(--practice-edge);border-radius:10px;vertical-align:middle;background:var(--practice-surface);color:var(--text);font-size:40px;line-height:1}
.exercise-page .play-shell.child-ui[data-exercise-id=punctuation] .punctuation-gap.is-active{border:3px solid var(--success)}
.exercise-page .play-shell.child-ui[data-exercise-id=punctuation] [data-game] .punctuation-answers{display:flex;flex-wrap:wrap;gap:16px}
.exercise-page .play-shell.child-ui[data-exercise-id=punctuation] [data-game] .punctuation-answers>.answer{width:96px;min-width:96px;height:96px;min-height:96px;padding:30px 48px 8px 0;font-size:48px;line-height:1}
@media(max-width:600px){
 .exercise-page .play-shell.child-ui[data-exercise-id=connect-dots] .dots-boards{width:300px;grid-template-columns:300px;gap:12px}
 .exercise-page .play-shell.child-ui[data-exercise-id=connect-dots] .dots-boards>section:first-child{width:112px;height:112px;padding:5px}
 .exercise-page .play-shell.child-ui[data-exercise-id=connect-dots] .dots-boards>section:first-child .dot-board{width:100px;height:100px}
 .exercise-page .play-shell.child-ui[data-exercise-id=connect-dots] .dots-boards>section:last-child .dot-board{width:300px;height:300px}
 .exercise-page .play-shell.child-ui[data-exercise-id=connect-dots] .dot-point{width:56px;height:56px;min-width:56px;min-height:56px;font-size:18px}
 .exercise-page .play-shell.child-ui[data-exercise-id=hand-sequence] .sequence-prompt{gap:3px}
 .exercise-page .play-shell.child-ui[data-exercise-id=hand-sequence] .sequence-dot{width:56px;min-width:56px;height:80px;min-height:80px;padding:6px 2px 24px}
 .exercise-page .play-shell.child-ui[data-exercise-id=hand-sequence] .sequence-mini-pad{width:20px;height:32px}
 .exercise-page .play-shell.child-ui[data-exercise-id=punctuation] .sentence-preview{font-size:24px;line-height:1.5}
 .exercise-page .play-shell.child-ui[data-exercise-id=punctuation] .punctuation-gap{width:44px;min-width:44px;height:44px;font-size:32px;margin-inline:2px}
 .exercise-page .play-shell.child-ui[data-exercise-id=punctuation] [data-game] .punctuation-answers{display:grid;width:min(100%,312px);grid-template-columns:repeat(auto-fit,96px);justify-content:center;gap:12px}
 .exercise-page .play-shell.child-ui[data-exercise-id=punctuation] .play-scene>[data-game]{gap:12px}
}

/* Content audio is always explicit; the picture and sentence remain visible. */
.exercise-page .play-shell.child-ui:is([data-exercise-id=syllables],[data-exercise-id=punctuation]) .content-hear{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:104px;min-width:64px;min-height:64px;border:0;padding:4px;background:transparent;color:var(--text)}
.exercise-page .play-shell.child-ui:is([data-exercise-id=syllables],[data-exercise-id=punctuation]) .content-hear>.ui-symbol{width:36px;height:36px}
.exercise-page .play-shell.child-ui:is([data-exercise-id=syllables],[data-exercise-id=punctuation]) .content-hear>.child-word{font-size:14px;line-height:1.2;white-space:normal;overflow-wrap:anywhere;max-width:100%;text-align:center}
.exercise-page .play-shell.child-ui[data-exercise-id=syllables] .word-clue{display:flex;align-items:center;justify-content:center;gap:16px}
.exercise-page .play-shell.child-ui[data-exercise-id=syllables] .word-picture{width:200px;height:200px;padding:10px;border:1px solid var(--practice-edge);border-radius:16px;background:var(--practice-surface)}
.exercise-page .play-shell.child-ui[data-exercise-id=syllables] .word-picture>img{display:block;width:100%;height:100%;object-fit:contain}
.exercise-page .play-shell.child-ui[data-exercise-id=syllables] [data-game] .answer-row{flex-wrap:nowrap;gap:16px;width:100%;max-width:680px}
.exercise-page .play-shell.child-ui[data-exercise-id=syllables] [data-game] .answer{flex:1 1 0;min-width:0;max-width:160px;padding:36px 4px 56px;font-size:28px;line-height:1.2}
.exercise-page .play-shell.child-ui[data-exercise-id=punctuation] .punctuation-sentence-group{display:flex;align-items:center;justify-content:center;gap:16px;width:100%;max-width:900px}
.exercise-page .play-shell.child-ui[data-exercise-id=punctuation] .sentence-face{display:block;width:64px;min-width:64px;height:64px;color:var(--text)}
.exercise-page .play-shell.child-ui[data-exercise-id=punctuation] .sentence-face>svg{display:block;width:64px;height:64px}
.exercise-page .play-shell.child-ui[data-exercise-id=punctuation] .punctuation-sentence-group>.sentence-preview{min-width:0;overflow-wrap:anywhere}
.exercise-page .play-shell.child-ui[data-exercise-id=punctuation] .punctuation-sentence-group>.content-hear{width:80px;min-width:64px;flex:none}
.exercise-page .play-shell.child-ui[data-exercise-id=both-hands] .hold-demo-stone{pointer-events:none;opacity:.65;z-index:2}
.exercise-page .play-shell.child-ui[data-exercise-id=both-hands] .hold-demo-hand{position:absolute;right:-24px;top:calc(50% - 24px);display:block;width:48px;height:48px;color:var(--text)}
.exercise-page .play-shell.child-ui[data-exercise-id=both-hands] .hold-demo-hand>.ui-symbol{display:block;width:48px;height:48px}
.exercise-page .play-shell.child-ui[data-exercise-id=both-hands] .hold-stone-cue{position:absolute;display:block;left:-40px;top:calc(50% - 20px);width:40px;height:40px;color:var(--text);pointer-events:none}
.exercise-page .play-shell.child-ui[data-exercise-id=both-hands] .hold-stone-cue>.ui-symbol{display:block;width:40px;height:40px}
@media(max-width:600px){
 .exercise-page .play-shell.child-ui[data-exercise-id=syllables] .word-picture{width:140px;height:140px;padding:6px}
 .exercise-page .play-shell.child-ui[data-exercise-id=syllables] [data-game] .answer-row{gap:8px}
 .exercise-page .play-shell.child-ui[data-exercise-id=syllables] [data-game] .answer{font-size:24px}
 .exercise-page .play-shell.child-ui[data-exercise-id=punctuation] .punctuation-sentence-group{gap:8px}
 .exercise-page .play-shell.child-ui[data-exercise-id=punctuation] .punctuation-sentence-group>.content-hear{width:64px}
 .exercise-page .play-shell.child-ui:is([data-exercise-id=punctuation],[data-exercise-id=syllables]) .play-scene{grid-template-columns:minmax(0,1fr)}
}



.done .paper-link{display:inline-flex;align-items:center;min-height:44px;font-size:14px;text-underline-offset:4px}.exercise-page .play-shell.child-ui[data-exercise-id=punctuation] .content-hear>.child-word{white-space:nowrap;overflow-wrap:normal}
