.play{max-width:520px;display:grid;gap:var(--space-md);padding-top:var(--space-sm)}.play-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-md)}.play-head h1{font-size:var(--text-title-2)}.timer{background:var(--fill-muted);border-radius:var(--radius-full);padding:var(--space-xs) var(--space-md);font-size:var(--text-callout);color:var(--ink-2)}.tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--space-xs)}.tab{display:flex;align-items:center;justify-content:center;gap:6px;min-height:var(--tap-min);padding:0 4px;background:var(--surface);color:var(--ink);border:1px solid var(--border);border-radius:var(--radius-input);font:var(--weight-semibold) var(--text-subheadline)/1 var(--font-ui);cursor:pointer}.tab[aria-selected=true]{border-color:var(--accent);border-width:2px}.tab .dot{width:8px;height:8px;border-radius:50%;background:var(--tier-easy);flex:none}.tier-medium .dot{background:var(--tier-medium)}.tier-hard .dot{background:var(--tier-hard)}.tier-expert .dot{background:var(--tier-expert)}.tab .tick{color:var(--correct-text)}.chain{--game: var(--chains);--game-tint: var(--chains-tint);--glyph: var(--chains)}.triangle{--game: var(--triangles);--game-tint: var(--triangles-tint);--glyph: var(--ink)}.sums{--game: var(--sums);--game-tint: var(--sums-tint);--glyph: var(--sums)}.algebra{--game: var(--algebra-shapes);--game-tint: var(--algebra-shapes-tint);--glyph: var(--algebra-shapes)}.pyramid{--game: var(--pyramids);--game-tint: var(--pyramids-tint);--glyph: var(--pyramids)}.skip-chains{--game: var(--skip-chains);--game-tint: var(--skip-chains-tint);--glyph: var(--skip-chains)}.factor{--game: var(--factor-hunt);--game-tint: var(--factor-hunt-tint);--glyph: var(--ink);display:grid;gap:var(--space-md);width:100%;max-width:420px;margin:var(--space-md) auto;justify-items:center}.fh-target{display:grid;justify-items:center;gap:var(--space-xs)}.fh-target-num{font:700 var(--text-display)/1 var(--font-brand);font-feature-settings:var(--figures-numeral);color:var(--ink)}.fh-entry{display:flex;align-items:center;justify-content:center;gap:var(--space-sm)}.fh-times{font:700 var(--text-numeral)/1 var(--font-brand);color:var(--ink-2)}.cell.fh-box{min-width:72px;min-height:52px}.cell.fh-box.shake{animation:cell-shake .4s ease-in-out}@media (prefers-reduced-motion: reduce){.cell.fh-box.shake{animation:none}}.fh-msg{min-height:1.5em;margin:0;text-align:center;color:var(--ink)}.fh-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:var(--space-xs);width:100%}.fh-chip{min-height:44px;padding:0 var(--space-sm);display:inline-flex;align-items:center;border-radius:var(--radius-input);font:700 var(--text-body)/1 var(--font-brand);font-feature-settings:var(--figures-numeral);white-space:nowrap}.fh-chip.found{background:var(--correct);color:var(--on-correct)}.fh-chip.slot{background:var(--surface);border:2.5px solid var(--game);color:var(--glyph)}.sprint{--game: var(--times-sprint);--game-tint: var(--times-sprint-tint);--glyph: var(--ink);display:grid;gap:var(--space-md);width:100%;max-width:420px;margin:var(--space-md) auto;justify-items:center;text-align:center}.sprint-ready{display:grid;gap:var(--space-sm);justify-items:center;padding:var(--space-lg) 0}.sprint-ready h2{font-size:var(--text-title);margin:0}.sprint-ready p{margin:0}.sprint-start{min-width:160px;min-height:var(--tap-min)}.sprint-count{margin:0}.sprint-bar{width:100%;height:12px;border-radius:6px;background:var(--fill-muted);overflow:hidden}.sprint-bar-fill{height:100%;background:var(--game);transform-origin:left center;animation-name:sprint-drain;animation-timing-function:linear;animation-fill-mode:both}@keyframes sprint-drain{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.sprint-secs{display:none;margin:0;font:700 var(--text-title-2)/1 var(--font-brand);font-feature-settings:var(--figures-numeral);color:var(--ink)}.sprint-secs-unit{font-family:inherit;font-weight:400;font-size:var(--text-body);color:var(--ink-2)}.sprint.reduced .sprint-bar{display:none}.sprint.reduced .sprint-secs{display:block}@media (prefers-reduced-motion: reduce){.sprint .sprint-bar{display:none}.sprint .sprint-secs{display:block}}.sprint-question{margin:0;font:700 calc(var(--text-display) * 1.4)/1.1 var(--font-brand);font-feature-settings:var(--figures-numeral);color:var(--ink);white-space:nowrap}.cell.blank.sprint-answer{min-width:120px;height:64px;cursor:default}.sprint-result{display:grid;gap:var(--space-xs);justify-items:center}.sprint-result h3{margin:0;font-size:var(--text-headline)}.sprint-missed{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:var(--space-xs)}.sprint-missed li{padding:var(--space-xs) var(--space-sm);border-radius:var(--radius-input);background:var(--fill-muted);color:var(--ink);font:700 var(--text-body)/1.2 var(--font-brand);font-feature-settings:var(--figures-numeral);white-space:nowrap}.sprint-perfect{margin:0;color:var(--correct-text);font-weight:700}.array{--game: var(--array-builder);--game-tint: var(--array-builder-tint);--glyph: var(--array-builder);display:grid;gap:var(--space-md);width:100%;max-width:420px;margin:var(--space-md) auto;justify-items:center}.ab-grid{width:min(100%,420px);min-width:320px;display:grid;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;border-radius:var(--radius-input);outline:none;cursor:pointer}.ab-grid.done{cursor:default}.ab-row{display:grid;grid-template-columns:repeat(10,1fr)}.ab-cell{aspect-ratio:1;display:grid;place-items:center;border-radius:6px}.ab-cell:before{content:"";width:62%;aspect-ratio:1;border-radius:50%;background:var(--fill-muted);border:2px solid var(--ink-2);box-sizing:border-box}.ab-cell.on:before{background:var(--game-tint);border-color:var(--game)}.ab-cell.ok:before{background:var(--correct);border-color:var(--correct)}.ab-grid:focus-visible .ab-cell.focus{outline:3px solid var(--ink);outline-offset:-3px}.ab-msg p{margin:0}.ab-msg{min-height:1.5em}.chain{position:relative;display:grid;gap:var(--space-xl);padding:var(--space-lg) var(--space-md);width:100%;max-width:420px;margin:0 auto}.row{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:6px}.row.reversed{flex-direction:row-reverse}.chain-line{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:0}.chain-line path{fill:none;stroke:var(--chains);stroke-opacity:.55;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.cell{height:52px;min-width:52px;padding:0 var(--space-xs);display:inline-flex;align-items:center;justify-content:center;border-radius:var(--radius-input);border:2.5px solid transparent;background:var(--fill-muted);color:var(--ink);font:700 var(--text-numeral)/1 var(--font-brand);font-feature-settings:var(--figures-numeral);white-space:nowrap}.cell.blank{background:var(--surface);border-color:var(--game);color:var(--glyph);cursor:pointer}.cell.blank.active{background:var(--game-tint);color:var(--ink-fixed)}.cell.blank.solved{background:var(--correct);border-color:var(--correct);color:var(--on-correct)}.cell.blank.wrong:not(.active){background:var(--wrong);border-color:var(--wrong);color:var(--on-wrong)}.cell.blank:disabled{opacity:1;cursor:default}.op{flex:none;width:36px;height:36px;border-radius:50%;background:var(--fill-muted);display:grid;place-items:center;color:var(--ink-2);font:700 var(--text-numeral)/1 var(--font-brand)}button.op{border:0;padding:0;position:relative;cursor:pointer}button.op:after{content:"";position:absolute;top:-4px;right:-4px;bottom:-4px;left:-4px}.op-dot{position:absolute;top:-1px;right:-1px;width:9px;height:9px;border-radius:50%;background:var(--game);box-shadow:0 0 0 1.5px var(--paper)}button.op:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.eq{flex:none;padding:0 2px;background:var(--paper);color:var(--ink-2);font:700 var(--text-numeral)/1 var(--font-brand);text-align:center}.pyramid{container-type:inline-size;display:grid;gap:6px;justify-items:center;width:100%;max-width:420px;margin:var(--space-md) auto;--brick-w: clamp(44px, calc((100cqw - 6px * (var(--rows) - 1)) / var(--rows)), 110px);--brick-h: 52px}.pyramid-row{display:flex;justify-content:center;gap:6px}.cell.brick{width:var(--brick-w);height:var(--brick-h);min-width:0;padding:0 2px}@media (min-width: 768px){.pyramid{max-width:560px;--brick-h: 64px}}.algebra{display:grid;gap:var(--space-md);width:100%;max-width:560px;margin:var(--space-md) auto}.algebra-eqs{display:grid;gap:var(--space-sm)}.algebra-eq{--icon: calc(30px * var(--icon-scale, 1));display:flex;align-items:center;justify-content:center;gap:var(--space-sm);padding:var(--space-sm) var(--space-md);background:var(--surface);border-radius:var(--radius-card);overflow:hidden;font:700 var(--text-numeral)/1 var(--font-brand);font-feature-settings:var(--figures-numeral)}.algebra-terms{display:flex;align-items:center;gap:var(--space-sm)}.algebra-group{display:flex;gap:2px}.algebra-plus{color:var(--ink-2)}.algebra-total{color:var(--ink);white-space:nowrap}.shape-icon{flex:none;width:var(--icon, 30px);height:var(--icon, 30px);overflow:visible;stroke:var(--ink);stroke-width:2.5px;stroke-linejoin:round}.shape-square{fill:var(--chains-tint)}.shape-triangle{fill:var(--triangles-tint)}.shape-circle{fill:var(--sums-tint)}.shape-diamond{fill:var(--pyramids-tint)}.algebra-values{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:var(--space-sm)}.algebra-value{display:flex;align-items:center;justify-content:center;gap:var(--space-sm);min-height:56px;--icon: 30px;font:700 var(--text-numeral)/1 var(--font-brand)}.algebra-equals{color:var(--ink-2)}.cell.algebra-cell{min-width:52px;height:52px}.algebra .cell.blank.wrong,.algebra .cell.blank.wrong:not(.active){border-color:var(--wrong);background:var(--surface);color:var(--glyph)}.cell.algebra-cell.shake{animation:cell-shake .4s ease-in-out}@media (prefers-reduced-motion: reduce){.cell.algebra-cell.shake{animation:none}}.algebra .cell.blank.wrong.active{background:var(--game-tint);color:var(--ink-fixed)}.triangle{position:relative;container-type:inline-size;width:100%;max-width:400px;aspect-ratio:1.1;margin:var(--space-md) auto;--cell: clamp(56px, 20cqw, 96px);--inset: calc(var(--cell) / 2 + 4px)}.triangle-edges{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;overflow:visible;pointer-events:none}.triangle-edges polygon{fill:none;stroke:var(--border-strong);stroke-width:3;stroke-linejoin:round}.cell.tri-cell{position:absolute;transform:translate(-50%,-50%);min-width:0;padding:4px;font-size:calc(var(--cell) * .38)}.cell.tri-cell.circle{width:var(--cell);height:var(--cell);border-radius:50%}.cell.tri-cell.square{width:calc(var(--cell) * 1.15);height:calc(var(--cell) * .85);border-radius:var(--radius-input)}.pos-a{left:50%;top:var(--inset)}.pos-b{left:var(--inset);top:calc(100% - var(--inset))}.pos-c{left:calc(100% - var(--inset));top:calc(100% - var(--inset))}.pos-ab{left:calc(25% + var(--inset) / 2);top:50%}.pos-ca{left:calc(75% - var(--inset) / 2);top:50%}.pos-bc{left:50%;top:calc(100% - var(--inset))}.sums{container-type:inline-size;width:100%;margin:var(--space-md) auto}.sums-grid{--cell: clamp(44px, calc((100cqw - 28px - 6px * var(--cols)) / var(--cols)), 72px);display:grid;grid-template-columns:28px repeat(var(--cols),var(--cell));grid-auto-rows:auto;gap:6px;justify-content:center}.sums-sign{align-self:center;text-align:center;color:var(--ink-2);font:700 calc(var(--cell) * .5)/1 var(--font-brand)}.sums-rule{grid-column:1 / -1;height:3px;background:var(--border-strong)}.sum-cell{width:var(--cell);height:var(--cell)}.cell.sum-cell{min-width:0;padding:0;font-size:calc(var(--cell) * .5)}.cell.sum-cell.shake{animation:cell-shake .4s ease-in-out}@keyframes cell-shake{0%,to{transform:translate(0)}20%,60%{transform:translate(-6px)}40%,80%{transform:translate(6px)}}@media (prefers-reduced-motion: reduce){.cell.sum-cell.shake{animation:none}}.skip-chains{container-type:inline-size;display:grid;gap:var(--space-lg);width:100%;margin:var(--space-md) auto}.skip-row{--cell: clamp(44px, min(calc((100cqw - (var(--n) - 1) * 42px - (2 * var(--n) - 2) * 4px) / var(--n)), calc((100cqw - 60px - (var(--m) - 1) * 42px - (2 * var(--m) - 1) * 4px) / var(--m))), 60px);display:flex;align-items:center;justify-content:center;gap:4px}.skip-link{position:relative;flex:none;display:flex;justify-content:center;min-width:42px}.skip-link:before{content:"";position:absolute;left:0;right:0;top:50%;height:2px;background:var(--border-strong)}.skip-link.wrap{min-width:60px}.skip-pill{position:relative;padding:1px 6px;border-radius:var(--radius-full);background:var(--fill-muted);color:var(--ink-2);font:700 15px/22px var(--font-brand);white-space:nowrap}.cell.skip-cell{flex:none;width:var(--cell);height:var(--cell);min-width:0;padding:0;font-size:calc(var(--cell) * .4)}.cell.skip-cell.shake{animation:cell-shake .4s ease-in-out}@media (prefers-reduced-motion: reduce){.cell.skip-cell.shake{animation:none}}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--space-sm);background:var(--surface);padding:var(--space-sm);border-radius:var(--radius-sheet);border:1px solid var(--border)}.key{min-height:52px;border:0;border-radius:var(--radius-input);background:var(--fill-muted);color:var(--ink);font:700 22px/1 var(--font-brand);cursor:pointer}.key:active{background:var(--border)}.key.del{background:var(--border-strong)}.key.go{background:var(--correct);color:var(--on-correct)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);padding:var(--space-lg);display:grid;gap:var(--space-md);justify-items:center;text-align:center;box-shadow:var(--shadow-subtle)}.no-cheating{min-height:248px;align-content:center}.no-cheating p{max-width:36ch}.big-time{font-size:var(--text-display);color:var(--correct-text)}.status{min-height:1.4em;color:var(--correct-text);font-weight:var(--weight-semibold)}.app-cta{border-top:1px solid var(--border);padding-top:var(--space-md);display:grid;gap:var(--space-sm);justify-items:center;width:100%}.app-cta p{color:var(--ink-2);font-size:var(--text-callout);max-width:40ch}@media (max-width: 360px){.chain .cell{height:46px;min-width:46px;font-size:20px}.op{width:30px;height:30px;font-size:20px}button.op:after{top:-7px;right:-7px;bottom:-7px;left:-7px}.tab{font-size:13px;gap:3px}}.helper-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#0e1a3380;display:flex;align-items:flex-end;justify-content:center}.helper-dialog{position:relative;width:100%;max-width:520px;max-height:92vh;overflow-y:auto;display:grid;gap:var(--space-sm);background:var(--surface);color:var(--ink);border-radius:var(--radius-sheet) var(--radius-sheet) 0 0;padding:var(--space-md);outline:none}@media (min-width: 640px){.helper-overlay{align-items:center}.helper-dialog{border-radius:var(--radius-sheet)}}.helper-close{position:absolute;top:4px;right:4px;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:var(--ink-2);font-size:28px;line-height:1;cursor:pointer}.helper-close:focus-visible,.helper-method:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.helper-head{padding-right:44px}.helper-head h2{font:700 var(--text-numeral)/1.2 var(--font-brand);font-feature-settings:var(--figures-numeral)}.helper-kicker{color:var(--ink-2);font-size:13px;text-transform:uppercase;letter-spacing:.5px}.helper-body{display:grid;gap:var(--space-sm)}.helper-methods{display:flex;gap:var(--space-xs)}.helper-method{flex:1;min-height:44px;border:1px solid var(--border-strong);border-radius:var(--radius-input);background:var(--surface);color:var(--ink);font:600 14px/1.2 var(--font-brand);cursor:pointer}.helper-method[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}.helper-steps{list-style:decimal inside;display:grid;gap:var(--space-xs);padding:0;margin:0}.helper-step{display:grid;gap:2px;padding:var(--space-xs) var(--space-sm);border-radius:var(--radius-input)}.helper-step.done .num{color:var(--correct-text)}.helper-step.current{background:var(--fill-muted)}.helper-step.current.wrong{outline:2px solid var(--wrong)}.helper-entry{font-size:var(--text-numeral)}.helper-status{min-height:1.4em;color:var(--ink-2);font-size:var(--text-callout)}.helper-foot{display:grid}body.helper-open{overflow:hidden}.notepad-dialog{max-width:640px}.notepad-top{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:var(--space-sm)}.notepad-title{text-align:center}.notepad-title h2{font:700 var(--text-numeral)/1.2 var(--font-brand)}.notepad-sub{display:block;color:var(--ink-2);font-size:13px}.notepad-text-btn{min-width:44px;min-height:44px;border:0;background:transparent;font:600 16px/1 var(--font-brand);cursor:pointer}.notepad-clear{justify-self:start;color:var(--wrong)}.notepad-clear:disabled{color:var(--ink-3);cursor:default}.notepad-done{justify-self:end;color:var(--accent)}.notepad-confirm{display:flex;align-items:center;gap:var(--space-sm);padding:var(--space-sm);background:var(--fill-muted);border-radius:var(--radius-button);font-weight:600}.notepad-confirm[hidden]{display:none}.notepad-confirm span{flex:1}.notepad-wipe{background:var(--wrong);border-color:var(--wrong)}.notepad-pad{position:relative;aspect-ratio:4 / 3;max-height:50vh;width:100%;background:var(--paper);border:1.5px solid var(--border-strong);border-radius:var(--radius-input);overflow:hidden}.notepad-canvas{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;touch-action:none;cursor:crosshair}.notepad-hint{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;margin:0;padding:var(--space-md);text-align:center;color:var(--ink-3);pointer-events:none}.notepad-hint[hidden]{display:none}.notepad-tools{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-sm)}.notepad-spacer{flex:1}.notepad-tool{min-width:44px;min-height:44px;padding:0 var(--space-sm);border:0;border-radius:var(--radius-button);background:var(--fill-muted);color:var(--ink-2);font:600 14px/1 var(--font-brand);cursor:pointer}.notepad-tool[aria-pressed=true]{background:var(--accent);color:var(--on-accent)}.notepad-tool:disabled{opacity:.5;cursor:default}.notepad-swatch{width:44px;height:44px;border:0;background:transparent;cursor:pointer;display:grid;place-items:center}.notepad-swatch:before{content:"";width:24px;height:24px;border-radius:50%;background:var(--swatch)}.notepad-swatch[aria-pressed=true]:before{outline:2.5px solid var(--ink);outline-offset:3px}.notepad-text-btn:focus-visible,.notepad-tool:focus-visible,.notepad-swatch:focus-visible,.notepad-canvas:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.notepad-note{margin:0;color:var(--ink-3);font-size:13px}.notepad-modes{display:flex;padding:3px;gap:3px;background:var(--fill-muted);border-radius:var(--radius-button)}.notepad-mode{flex:1;min-height:44px;border:0;border-radius:var(--radius-button);background:transparent;color:var(--ink-2);font:600 16px/1 var(--font-brand);cursor:pointer}.notepad-mode[aria-pressed=true]{background:var(--accent);color:var(--on-accent)}.notepad-mode:focus-visible,.notepad-text:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.notepad-canvas[hidden],.notepad-text[hidden],.notepad-tools[hidden]{display:none}.notepad-text{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;margin:0;padding:var(--space-md);border:0;resize:none;background:transparent;color:var(--ink);font:500 max(16px,1.25rem)/1.5 var(--font-brand)}.notepad-dialog{overflow-y:auto}.notepad-open{min-height:44px}.hub{display:grid;gap:var(--space-md)}.game-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);padding:var(--space-lg);display:grid;gap:var(--space-md);box-shadow:var(--shadow-subtle)}.game-card h2{font-size:var(--text-title-2)}.game-card.game-chains,.game-card.game-triangles,.game-card.game-sums,.game-card.game-pyramids,.game-card.game-algebra_shapes,.game-card.game-factor_hunt,.game-card.game-skip_chains,.game-card.game-times_sprint,.game-card.game-array_builder{color:var(--ink-fixed);border:0;border-radius:var(--radius-sheet)}.game-card.game-chains{background:var(--chains-tint)}.game-card.game-triangles{background:var(--triangles-tint)}.game-card.game-sums{background:var(--sums-tint)}.game-card.game-pyramids{background:var(--pyramids-tint)}.game-card.game-algebra_shapes{background:var(--algebra-shapes-tint)}.game-card.game-factor_hunt{background:var(--factor-hunt-tint)}.game-card.game-skip_chains{background:var(--skip-chains-tint)}.game-card.game-times_sprint{background:var(--times-sprint-tint)}.game-card.game-array_builder{background:var(--array-builder-tint)}.game-card-top{display:flex;align-items:center;justify-content:space-between;gap:var(--space-md)}.game-card-words{display:grid;gap:var(--space-xs)}.game-card .game-tagline{color:var(--ink-fixed);opacity:.75;font-size:var(--text-callout)}.game-art{flex:none;height:auto}.game-art-chains{width:110px}.game-art-triangles,.game-art-sums,.game-art-pyramids,.game-art-algebra_shapes,.game-art-factor_hunt{width:88px}.game-art-skip_chains{width:110px}.game-card .tier-links a.tab{border-color:transparent}.tier-links{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--space-xs)}.tier-links a.tab{text-decoration:none}@media (max-width: 360px){.tier-links{grid-template-columns:repeat(2,1fr)}}.homework{margin-bottom:var(--space-md);text-align:left;display:grid;gap:var(--space-sm);justify-items:stretch}.homework h2{margin:0}.homework-item h3{margin:0;font-size:1.1rem}.homework-due{margin:2px 0 6px}.homework-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:var(--space-sm)}.homework-list li.done{color:var(--ink-2);align-self:center}.homework-list .tick{color:var(--correct-text, var(--correct));font-weight:700}.past-day{margin:0 0 var(--space-sm)}.account{gap:var(--space-lg)}.stack{display:grid;gap:var(--space-md)}.center{text-align:center}.form .btn{width:100%}.field{display:grid;gap:var(--space-xs);font-weight:var(--weight-semibold)}.field input,.field select{min-height:var(--tap-min);padding:0 var(--space-md);border-radius:var(--radius-input);border:2px solid var(--border-strong);background:var(--surface);color:var(--ink);font:inherit}.check{display:flex;gap:var(--space-sm);align-items:flex-start}.check input{width:24px;height:24px;flex:none}.form-msg{color:var(--ink-2);min-height:1.4em}.swatch{width:20px;height:20px;border-radius:50%;flex:none;border:2px solid var(--border-strong)}.colour-cobalt{background:var(--chains)}.colour-marigold{background:var(--triangles)}.colour-coral{background:var(--tier-hard)}.colour-mint{background:var(--tier-easy)}.colour-violet{background:var(--tier-expert)}.colour-ink{background:var(--ink-fixed)}.fav{background:var(--fill-muted);border-radius:var(--radius-full);padding:0 var(--space-sm)}.profile-head{display:flex;align-items:center;gap:var(--space-sm);flex-wrap:wrap}.tabs.two{grid-template-columns:repeat(2,1fr)}.stat-list{list-style:none;margin:0;padding:0;display:grid;gap:var(--space-sm)}.stat-list li{display:grid;grid-template-columns:5.5rem 1fr auto;gap:var(--space-sm);align-items:center}.tier-name{font-weight:var(--weight-semibold)}.week{display:grid;grid-template-columns:repeat(7,1fr);gap:var(--space-xs);text-align:center}.week-day{display:grid;padding:var(--space-xs);border-radius:var(--radius-input);background:var(--fill-muted);font-size:var(--text-footnote)}.week-day.some{border:2px solid var(--accent)}.week-day.full{background:var(--correct);color:var(--on-correct)}.board{list-style:none;margin:0;padding:0;display:grid;gap:var(--space-xs)}.board-row{display:grid;grid-template-columns:2rem 20px 1fr auto;gap:var(--space-sm);align-items:center;padding:var(--space-sm) var(--space-md);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-input)}.board-row.me{border:2px solid var(--accent)}.friend-list{list-style:none;margin:0;padding:0;display:grid;gap:var(--space-sm)}.friend-row{display:flex;flex-wrap:wrap;gap:var(--space-sm);align-items:center}.friend-row .nick{flex:1;min-width:6rem}.friend-actions{display:inline-flex;gap:var(--space-sm);align-items:center;flex-wrap:wrap}.invite-code{font-size:var(--text-title-2);letter-spacing:.12em;min-height:1.4em}.row-actions,.method-row{display:flex;gap:var(--space-sm);align-items:center;justify-content:space-between;flex-wrap:wrap}.row-actions .btn{flex:1}.account .card{border-radius:var(--radius-sheet);padding:var(--space-md);justify-items:stretch;text-align:left;box-shadow:none}.save-prompt,.offer{background:var(--chains-tint);color:var(--ink-fixed);border-radius:var(--radius-sheet);padding:var(--space-md);display:grid;gap:var(--space-sm)}.offer .btn-secondary{color:var(--ink-fixed);border-color:var(--ink-fixed)}.rank-line{font-weight:var(--weight-semibold)}@media (max-width: 420px){.stat-list li{grid-template-columns:4.5rem 1fr}.stat-list li .muted{grid-column:1 / -1}}.tabs.games{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.class-step{width:100%;max-width:720px;margin-inline:auto;box-sizing:border-box;display:grid;gap:var(--space-md);text-align:center}.class-step h1{margin:0}.step-label{margin:0;color:var(--ink-2);font-weight:600}.btn.big{min-height:56px;font-size:1.25rem}.class-code-input{font-family:var(--font-display, inherit);font-size:2rem;letter-spacing:.3em;text-align:center;text-transform:uppercase;min-height:64px;width:100%;max-width:320px;justify-self:center}.name-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:var(--space-sm)}.name-tile,.picture-tile{min-height:64px;border:2px solid var(--border-strong);border-radius:var(--radius-sheet, 16px);background:var(--surface);color:var(--ink);font:inherit;font-size:1.2rem;font-weight:600;cursor:pointer;padding:var(--space-sm)}.name-tile:hover,.picture-tile:hover{border-color:var(--accent)}.name-tile:focus-visible,.picture-tile:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.picture-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-sm);max-width:480px;width:100%;justify-self:center}.picture-tile{display:grid;justify-items:center;gap:4px;aspect-ratio:1;min-height:88px}.picture-tile svg{width:60%;height:auto;max-width:96px}.picture-tile:disabled{opacity:.5;cursor:default}.picture-tile,.picture-slot{background:#fff;color:#111}.btn:disabled{opacity:.5;cursor:default}.picture-label{font-size:1rem}.picture-slots{list-style:none;padding:0;margin:0;display:flex;gap:var(--space-sm);justify-content:center}.picture-slot{width:64px;height:64px;border:2px dashed var(--border-strong);border-radius:12px;display:grid;place-items:center}.picture-slot.filled{border-style:solid;border-color:var(--accent)}.picture-slot svg{width:48px;height:48px}.class-list,.pupil-list{list-style:none;padding:0;margin:0;display:grid;gap:var(--space-sm)}.class-row,.pupil-row{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-sm);padding:var(--space-sm) 0;border-bottom:1px solid var(--border)}.class-name{font-weight:700;font-size:1.15rem;margin-right:auto}.class-code{letter-spacing:.15em}.class-code-line{font-size:1.25rem;margin:0}.pupil-name{font-weight:600;min-width:8em}.pupil-actions{display:flex;flex-wrap:wrap;gap:6px;margin-left:auto;align-items:center}.pupil-actions .btn{padding:6px 12px;min-height:40px}.pupil-actions input{max-width:14em}.names-input{width:100%;font:inherit;padding:var(--space-sm);border:1px solid var(--border-strong);border-radius:8px;background:var(--surface);color:var(--ink)}.badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:.85rem;font-weight:600}.badge-warn{background:var(--warning);color:var(--on-warning)}.warn{color:var(--wrong);margin:0}.back-link{display:inline-block;margin-bottom:var(--space-sm)}.card-sheet{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:var(--space-sm)}.login-card{border:2px dashed var(--border-strong);border-radius:12px;padding:12px;display:grid;gap:6px;background:#fff;color:#111;break-inside:avoid;text-align:center}.login-brand{margin:0;font-family:var(--font-display, inherit);font-weight:700;color:var(--chains)}.login-name{margin:0;font-size:1.6rem;font-weight:700}.login-code{margin:0;font-size:1.1rem}.login-code strong{font-size:1.5rem;letter-spacing:.2em}.login-pictures{list-style:none;padding:0;margin:0;display:flex;justify-content:center;gap:10px}.login-picture{display:grid;justify-items:center;font-size:.95rem;font-weight:600}.login-picture svg{width:56px;height:56px}.login-url{margin:0;font-size:.95rem}.login-missing{display:grid;gap:6px;justify-items:center}@media print{@page{size:A4;margin:10mm}.site-header,.site-footer,.no-print,.back-link,.login-missing .btn{display:none!important}body,main.account{background:#fff!important;padding:0!important}main.account,main.play{max-width:none!important;width:auto!important;margin:0!important;padding:0!important}.card-sheet{grid-template-columns:1fr 1fr;gap:5mm}.login-card{min-height:64mm;box-sizing:border-box;align-content:space-evenly;padding:4mm;break-inside:avoid;page-break-inside:avoid}.login-picture svg{width:18mm;height:18mm}}.progress-controls{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-sm);margin-bottom:var(--space-md)}.progress-controls .week-label{margin:0 auto;font-size:1.15rem}.progress-controls .btn{width:auto;padding:6px 12px;min-height:40px}.game-filter{min-height:40px;font:inherit;padding:4px 8px;border-radius:8px;border:1px solid var(--border-strong);background:var(--surface);color:var(--ink)}.progress-wrap{position:relative;overflow-x:auto;width:100%;max-width:calc(100vw - 2 * var(--space-md, 16px));min-width:0}.progress-grid{border-collapse:collapse;width:100%;min-width:440px;background:var(--surface)}.progress-grid th,.progress-grid td{border-bottom:1px solid var(--border);padding:8px 2px;text-align:center}.progress-grid thead th{font-weight:600;color:var(--ink-2)}.progress-grid thead th.today{color:var(--accent)}.progress-grid .dow{display:block;font-size:.85rem}.progress-grid tbody th{text-align:left}.progress-grid .tier-dots{justify-content:center;gap:3px;min-height:10px}.pupil-link{background:none;border:none;padding:0;font:inherit;font-weight:600;color:var(--accent);cursor:pointer;text-decoration:underline;text-align:left}.pupil-link:focus-visible{outline:3px solid var(--accent);outline-offset:2px}.tier-key{display:flex;flex-wrap:wrap;align-items:center;gap:4px}.tier-key .dot{width:10px;height:10px;border-radius:50%;display:inline-block}.empty-state{padding:var(--space-md) 0}.pupil-detail{margin-top:var(--space-md)}.pupil-detail[hidden]{display:none}.assignment-list{list-style:none;margin:0;padding:0;display:grid;gap:var(--space-md)}.assignment{border-bottom:1px solid var(--border);padding-bottom:var(--space-md);display:grid;gap:6px}.assignment-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-sm)}.assignment-head h3,.assignment-count{margin:0}.assignment .homework-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px 12px}.homework-due.late{color:var(--wrong);font-weight:600}.who-list{list-style:none;margin:0;padding:0;display:grid;gap:4px}.who{display:flex;gap:var(--space-sm)}.who-name{min-width:9em;font-weight:600}.who.done .who-mark{color:var(--correct-text, var(--correct))}.who.late .who-mark{color:var(--warning)}.who.todo .who-mark{color:var(--ink-2)}.item-rows{display:grid;gap:var(--space-sm)}.item-row{display:flex;flex-wrap:wrap;gap:6px;align-items:center;border:1px solid var(--border);border-radius:8px;padding:6px 8px;margin:0}.item-row legend{font-size:.9rem;color:var(--ink-2);padding:0 4px}.item-row select,.item-row input{min-height:40px;font:inherit}.item-row .btn{width:auto;padding:4px 10px;min-height:36px}.assignment-who[hidden],.billing-class .stack[hidden],.billing-class .btn[hidden]{display:none}.payment-list{list-style:none;margin:0;padding:0;display:grid;gap:var(--space-sm)}.payment-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:var(--space-sm);border-bottom:1px solid var(--border);padding-bottom:var(--space-xs)}.account.teachers{max-width:720px}.teachers-hero{justify-items:start}.steps,.bullets{margin:0;padding-left:1.25rem;display:grid;gap:var(--space-sm)}.price-amount{margin:0;font:700 var(--text-title)/1.2 var(--font-brand);font-feature-settings:var(--figures-numeral)}.doc-links{display:flex;flex-wrap:wrap;gap:var(--space-md);margin:0}.confirmed{margin:0;color:var(--correct-text, var(--correct));font-weight:var(--weight-semibold)}.choice{border:2px solid var(--border-strong);border-radius:var(--radius-input);padding:var(--space-md)}.choice:has(input:checked){border-color:var(--accent)}.account .stack[hidden],.account .card[hidden]{display:none}
