#spot-the-change {scroll-margin-top:1rem;display:grid;grid-template-columns:minmax(200px,.86fr) minmax(320px,1.4fr);align-items:center;gap:clamp(1rem,4vw,4rem);margin-top:24px;background:var(--panel-left);padding:clamp(20px,3vw,40px);border-radius:18px}
#spot-the-change h3 {font-size:clamp(2rem,4vw,3.4rem);margin:0}
#spot-the-change h3 a {color:inherit;text-decoration:none;font-weight:inherit}
#spot-the-change h3 a:hover {text-decoration:underline}
#spot-the-change p {margin:.45rem 0}
.change-tools {display:flex;align-items:center;gap:.5rem;min-height:58px}
.change-tools button,.change-tools a {display:inline-grid;place-items:center;min-width:56px;min-height:56px;border:1px solid var(--home-edge);border-radius:50%;color:var(--text);background:transparent;padding:10px}
.change-tools .change-next {background:var(--primary);color:var(--on-primary);border:0}
.change-tools [hidden]{display:none}
.change-tools .ui-symbol,.change-direction .ui-symbol {width:28px;height:28px;display:block}
#spot-the-change [role=status] {font-size:.88rem;line-height:1.4;min-height:2.8em}
#spot-the-change[data-nowords=true] .change-words {visibility:hidden}
.change-pair {display:flex;align-items:center;justify-content:center;gap:clamp(4px,1.7vw,24px);width:100%;--cols:2;--cell:clamp(58px,8vw,96px)}
.change-pair[data-cols="3"] {--cols:3;--cell:clamp(56px,7vw,82px)}
.change-grid {display:grid;grid-template-columns:repeat(var(--cols),var(--cell));grid-auto-rows:var(--cell);padding:clamp(3px,.8vw,12px);border:0;background: url("/assets/images/counting-tray.webp") center/100% 100% no-repeat}
.change-direction {display:grid;place-items:center;color:var(--text-muted)}
.change-grid .change-cell {appearance:none;display:grid;place-items:center;position:relative;background:transparent;border:0;min-width:0;min-height:0;margin:0;padding:0;border-radius:12px;color:var(--link);opacity:1}
.change-grid button.change-cell {cursor:pointer}
.change-grid .change-cell:focus-visible {outline:3px solid var(--text);outline-offset:-3px}
.change-pair[data-guides=true] span.change-cell::after {content:"";width:7px;height:7px;background:var(--text-muted);border-radius:50%;opacity:.65}
.change-shape {display:grid;place-items:center;width:82%;height:82%}
.change-shape img {display:block;width:100%;height:100%;object-fit:contain}
.change-mark {position:absolute;right:0;bottom:0;display:none;place-items:center;font:600 18px/1 var(--font);width:26px;height:26px;border-radius:50%;background:var(--text);color:var(--bg)}
.change-mark .ui-symbol {width:21px;height:21px}
.change-cell[data-cue] {box-shadow:inset 0 0 0 2px var(--link)}
.change-cell[data-cue] .change-mark {display:grid}
.change-cell[data-cue=moved] .change-mark {background:var(--success);color:var(--bg)}
#spot-the-change .change-direction .ui-symbol {width:20px}
@media(max-width:840px){#spot-the-change {grid-template-columns:1fr;gap:8px}#spot-the-change .change-copy {display:grid;grid-template-columns:1fr auto;align-items:center}#spot-the-change .change-copy h3,#spot-the-change .change-copy p {grid-column:1}#spot-the-change .change-tools {grid-column:2;grid-row:1/3}#spot-the-change [role=status]{grid-column:1/-1;min-height:1.4em}}
@media(max-width:550px){#spot-the-change{padding:16px}#spot-the-change .change-copy {display:block}#spot-the-change .change-tools{float:right}#spot-the-change [role=status]{min-height:3.1em;margin-right:125px}#spot-the-change:has(.change-next:not([hidden])) [role=status]{margin-right:178px}.change-pair{--cell:clamp(56px,15vw,76px);gap:3px}.change-pair[data-cols="3"]{flex-direction:column;gap:2px;--cell:56px}.change-pair[data-cols="3"] .change-direction {transform:rotate(90deg)}.change-direction .ui-symbol{width:18px;height:18px}}
@media(max-height:465px) and (orientation:landscape){.change-pair,.change-pair[data-cols="3"]{--cell:56px;flex-direction:row}.change-grid{padding:2px}}


.change-grid .change-cell:focus-visible {outline-color:var(--home-ink)}
.change-pair[data-guides=true] span.change-cell::after {background:var(--home-ink)}
.change-grid .change-cell[data-cue] {box-shadow:inset 0 0 0 2px var(--home-ink)}
