/* Built by scripts/build_data.py from static/css/mod/. Do not edit. */
/* attention-span.css */
.sart-rule { margin: 0; font-weight: 700; color: var(--ink-soft); }
.sart-pad { background: var(--ink); display: grid; place-items: center; width: min(100%, 26rem); min-height: 15rem; }
.sart-pad.is-tap { animation: sart-tap 160ms ease-out; }
.sart-digit { font-size: clamp(4.5rem, 22vw, 8rem); line-height: 1; font-variant-numeric: tabular-nums; min-height: 1em; }
.sart-mask::before { content: ""; display: block; width: 0.7em; height: 0.7em; border: 0.08em solid rgba(255, 255, 255, 0.35); border-radius: 50%; }
@keyframes sart-tap { from { box-shadow: inset 0 0 0 6px var(--skill); } to { box-shadow: inset 0 0 0 0 var(--skill); } }
@media (prefers-reduced-motion: reduce) { .sart-pad.is-tap { animation: none !important; } }
/* color-clash.css */
.cc-bar { height: 10px; border-radius: 5px; }
.cc-word { min-height: 1.3em; display: flex; align-items: center; justify-content: center; width: 100%; letter-spacing: 0.02em; }
.cc-msg { font-size: var(--step-2); }
.cc-ok { color: var(--reasoning); }
.cc-bad { color: var(--ink-soft); }
.cc-red { color: var(--attention); }
.cc-blue { color: var(--memory); }
.cc-green { color: var(--reasoning); }
.cc-yellow { color: var(--speed); }
.cc-keys { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem; width: min(100%, 26rem); }
.cc-key { min-height: 5rem; color: #fff; font-size: var(--step-1); text-transform: capitalize; }
.cc-bg-red { background: var(--attention); }
.cc-bg-blue { background: var(--memory); }
.cc-bg-green { background: var(--reasoning); }
.cc-bg-yellow { background: var(--speed); color: var(--ink); }
.cc-key:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) { .cc-key:active { transform: none; } }
/* digit-span.css */
/* Digit Span, plus the shared digit keypad (.ds-pad), also used by Number Memory. */
.ds-stim { font-size: clamp(4rem, 18vw, 7rem); min-height: 1.1em; color: var(--ink); font-variant-numeric: tabular-nums; }
.ds-note, .nm-note, .vm-note { margin: 0; min-height: 1.6em; font-weight: 700; color: var(--ink-soft); }
:is(.ds-note, .nm-note, .vm-note)[data-state="right"] { color: var(--reasoning); }
:is(.ds-note, .nm-note, .vm-note)[data-state="wrong"] { color: var(--attention); }
.ds-pad { width: min(100%, 20rem); display: flex; flex-direction: column; gap: 0.75rem; }
.ds-pad[hidden] { display: none; }
.ds-typed { margin: 0; font-size: var(--step-2); font-weight: 800; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; min-height: 1.5em; }
.ds-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.ds-key { min-height: 3.6rem; border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--paper); color: var(--ink); font: inherit; font-size: var(--step-2); font-weight: 800; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.ds-key:active { background: var(--line); }
.ds-key-ok { background: var(--go); border-color: var(--go); color: #fff; font-size: var(--step-1); }
.ds-key-ok:active { background: var(--go-dark); }
.ds-key-del { font-size: var(--step-1); }
/* dual-n-back.css */
.dnb-play { display: flex; flex-direction: column; align-items: center; gap: 1rem; width: 100%; }
.dnb-play[hidden], .dnb-break[hidden] { display: none; }
.dnb-grid { width: min(100%, 18rem); grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }
.dnb-grid > * { cursor: default; display: grid; place-items: center; }
.dnb-grid > .dnb-centre { background: transparent; font-size: var(--step-4); font-weight: 900; line-height: 1; color: var(--ink); overflow: hidden; }
.dnb-grid > .dnb-centre:empty::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-soft); }
.dnb-row { width: min(100%, 26rem); flex-wrap: nowrap; }
.dnb-btn { flex: 1; min-height: 4.5rem; background: var(--paper); color: var(--ink); border-color: var(--ink); font-size: var(--step-1); -webkit-tap-highlight-color: transparent; }
.dnb-btn kbd { font: inherit; font-size: var(--step--1); padding: 0.05rem 0.4rem; border: 1px solid currentColor; border-radius: 4px; }
.dnb-btn[data-fb="ok"] { background: var(--reasoning); border-color: var(--reasoning); color: #fff; }
.dnb-btn[data-fb="bad"] { background: var(--attention); border-color: var(--attention); color: #fff; }
.dnb-break { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.dnb-note { margin: 0; font-size: var(--step-1); font-weight: 700; max-width: 30ch; }
@media (hover: none) { .dnb-btn kbd { display: none; } }
/* flanker.css */
.fl-row { display: flex; align-items: center; justify-content: center; gap: clamp(0.15rem, 1.5vw, 0.6rem); min-height: 1.3em; width: 100%; color: var(--ink); }
.fl-fix { color: var(--ink-soft); font-size: var(--step-2); }
.fl-arrow { display: inline-flex; width: clamp(2.4rem, 9vw, 4rem); }
.fl-arrow svg { width: 100%; height: auto; }
.fl-left svg { transform: scaleX(-1); }
.fl-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; width: min(100%, 30rem); }
.fl-key { min-height: 4.5rem; font-size: var(--step-1); }
@media (hover: none) { .fl-key:hover { background: var(--go); } }
/* focus-timer.css */
.fct-left { font-size: var(--step-2); color: var(--ink); }
.fct-dot { width: min(60vw, 14rem); aspect-ratio: 1; display: grid; place-items: center; }
.fct-dot > span { width: 100%; height: 100%; border-radius: 50%; background: color-mix(in srgb, var(--skill) 22%, var(--paper)); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--skill) 45%, transparent); transform: scale(0.55); animation: fct-breathe var(--fct-breath, 8s) ease-in-out infinite; }
.fct-cue { margin: 0; color: var(--ink-soft); font-weight: 700; min-height: 1.6em; }
.fct-check { max-width: 30rem; }
.fct-check-h { font-size: var(--step-2); font-weight: 800; margin: 0 0 0.3em; }
@keyframes fct-breathe { 50% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .fct-dot > span { animation: none !important; transform: none; width: 1.2rem; height: 1.2rem; background: var(--skill); box-shadow: none; }
}
/* iq-test.css */
/* Matrix board shared by the IQ Test and Pattern Forge. */
.iq-hud { margin: 0; flex-wrap: wrap; row-gap: 0.25rem; }
.iq-area { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.iq-matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; width: min(100%, 21rem, 44vh); min-width: 13rem; padding: 5px; background: var(--line); border-radius: var(--radius-s); }
.iq-box { aspect-ratio: 1; background: var(--paper); border-radius: 4px; display: grid; place-items: center; }
.iq-gap { font-size: var(--step-3); font-weight: 900; color: var(--skill); background: var(--mist); outline: 2px dashed var(--skill); outline-offset: -7px; }
.iq-svg { display: block; width: 100%; height: 100%; }
.iq-shape { stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; }
.iq-f0 { fill: var(--paper); }
.iq-f1 { fill: #9AA3B5; }
.iq-f2 { fill: var(--ink); }
.iq-mark { fill: var(--ink); }
.iq-ask { margin: 0; font-weight: 700; }
.iq-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(100%, 30rem); }
.iq-opts.iq-n6 { grid-template-columns: repeat(3, 1fr); width: min(100%, 24rem); }
.iq-opt { position: relative; aspect-ratio: 1; min-width: 0; padding: 6px; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius-s); cursor: pointer; }
.iq-opt:hover, .iq-opt:focus-visible { border-color: var(--skill); }
.iq-num { position: absolute; top: 1px; left: 5px; font-size: 0.75rem; font-weight: 700; color: var(--ink-soft); }
.iq-clock.is-low { color: var(--attention); }
.iq-skip { font-size: var(--step--1); }
/* mental-math.css */
.mm-line { display: flex; align-items: baseline; justify-content: center; gap: 0.5rem; flex-wrap: wrap; max-width: 100%; }
.mm-problem { margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mm-entry { min-width: 3.5ch; font-size: clamp(2.5rem, 9vw, 5rem); font-weight: 900; line-height: 1; color: var(--skill); border-bottom: 4px solid var(--line); font-variant-numeric: tabular-nums; text-align: left; min-height: 1.1em; }
.play-stage[data-mark="ok"] .mm-entry { border-bottom-color: var(--reasoning); }
.play-stage[data-mark="wrong"] .mm-entry { border-bottom-color: var(--attention); }
.mm-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; width: min(100%, 20rem); }
.mm-key { -webkit-tap-highlight-color: transparent; min-height: 3.6rem; border: 0; border-radius: var(--radius-s); background: var(--paper); color: var(--ink); font: inherit; font-size: var(--step-2); font-weight: 800; cursor: pointer; }
.mm-key:active { background: var(--line); }
.mm-key-ok { background: var(--ink); color: #fff; }
.mm-key-ok:active { background: var(--skill); }
.mm-key-back { color: var(--ink-soft); }
@media (prefers-reduced-motion: no-preference) { .mm-entry { transition: border-color 120ms; } }
/* n-back.css */
.nb-letter { font-size: clamp(4rem, 18vw, 7rem); color: var(--ink); min-height: 1.1em; font-variant-numeric: tabular-nums; }
.nb-match { width: min(100%, 26rem); min-height: 7rem; background: var(--skill); font-size: var(--step-2); transition: transform 80ms, background-color 80ms; -webkit-tap-highlight-color: transparent; }
.nb-match[data-pressed] { background: var(--ink); transform: scale(0.98); }
.nb-tip { margin: 0; max-width: 34ch; font-size: var(--step--1); color: var(--ink-soft); }
/* number-memory.css */
/* The keypad and the note colours come from digit-span.css (.ds-pad, .nm-note). */
.nm-num { margin: 0; max-width: 100%; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; overflow-wrap: anywhere; }
.nm-num[data-size="m"] { font-size: clamp(1.8rem, 6vw, 3rem); }
.nm-num[data-size="s"] { font-size: clamp(1.3rem, 4.2vw, 2rem); }
.nm-time[hidden] { display: none; }
/* object-tracking.css */
.mot-arena { position: relative; width: min(100%, 26rem); aspect-ratio: 1; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius-l); overflow: hidden; touch-action: none; }
.mot-dot { position: absolute; left: 0; top: 0; width: 2.75rem; height: 2.75rem; padding: 0; border: 0; border-radius: 50%; background: var(--ink); cursor: pointer; will-change: transform; }
.mot-dot:disabled { cursor: default; }
.mot-dot.is-target { background: var(--skill); box-shadow: 0 0 0 5px color-mix(in srgb, var(--skill) 30%, transparent); animation: mot-flash 500ms ease-in-out infinite alternate; }
.mot-dot.is-picked { background: var(--go); box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--go); }
.mot-dot.is-hit { background: var(--reasoning); }
.mot-dot.is-missed { background: var(--paper); box-shadow: inset 0 0 0 4px var(--reasoning); }
.mot-dot.is-wrong { background: var(--attention); }
.mot-msg { margin: 0; font-weight: 700; min-height: 1.6em; }
@keyframes mot-flash { to { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .mot-dot.is-target { animation: none !important; } }
/* pattern-forge.css */
/* Pattern Forge: soft-timer fuse and answer feedback (the board itself is styled in iq-test.css). */
.pf-fuse > span { transition: width 200ms linear; }
.pf-fuse.is-out { opacity: 0.45; }
.pf-fuse[hidden] { display: none; }
.pf-note { margin: 0; min-height: 1.5em; font-weight: 700; }
.iq-opt.pf-right { border-color: var(--reasoning); box-shadow: 0 0 0 3px var(--reasoning); }
.iq-opt.pf-wrong { border-color: var(--attention); box-shadow: 0 0 0 3px var(--attention); }
@media (prefers-reduced-motion: reduce) { .pf-fuse > span { transition: none; } }
/* reaction-time.css */
.rt-pad { background: var(--ink); transition: background-color 60ms; }
.rt-pad[data-state="go"] { background: var(--reasoning); }
.rt-pad[data-state="early"] { background: var(--attention); font-size: var(--step-1); }
.rt-pad[data-state="score"] { background: var(--go); font-size: var(--step-2); }
/* reading-speed.css */
.rs-text { width: min(100%, 38rem); text-align: left; background: var(--paper); border-radius: var(--radius-l); padding: clamp(1rem, 4vw, 2rem); font-size: var(--step-0); line-height: 1.65; user-select: text; -webkit-user-select: text; }
.rs-text h3 { margin-top: 0; }
.rs-text p:last-child { margin-bottom: 0; }
.rs-quiz { width: min(100%, 34rem); }
.rs-quiz[hidden] { display: none; }
.rs-q { font-size: var(--step-1); font-weight: 700; margin: 0 0 1rem; }
.rs-opts { display: grid; gap: 0.6rem; }
.rs-opts .btn { justify-content: flex-start; text-align: left; width: 100%; min-height: 3.2rem; background: var(--paper); }
.rs-opts .btn:hover { background: var(--mist); color: var(--ink); }
.rs-key { flex: none; display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: var(--step--1); }
/* schulte-table.css */
.sch-grid { width: min(100%, 28rem); gap: 5px; }
.sch-grid > .sch-cell { min-width: 0; min-height: 2.75rem; padding: 0; font-size: clamp(1rem, 5vw, var(--step-2)); font-variant-numeric: tabular-nums; touch-action: manipulation; }
.sch-grid > .sch-cell.is-done { cursor: default; }
.sch-grid > .sch-cell.is-wrong { animation: sch-wrong 300ms ease-out; }
@keyframes sch-wrong { from { background: var(--attention); color: #fff; } to { background: var(--paper); color: var(--ink); } }
@media (prefers-reduced-motion: reduce) { .sch-grid > .sch-cell.is-wrong { animation: none !important; } }
/* speed-reader.css */
.sr-note { margin: 0; font-weight: 700; min-height: 1.55em; }
.sr-window { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; width: min(100%, 34rem); min-height: 8rem; padding: 0 0.5rem; background: var(--paper); border-radius: var(--radius-l); overflow: hidden; font-size: clamp(1.7rem, 7vw, 2.8rem); font-weight: 700; line-height: 1; white-space: pre; }
.sr-window[hidden] { display: none; }
.sr-window::before, .sr-window::after { content: ""; position: absolute; left: 50%; width: 2px; height: 1.1rem; background: var(--line); }
.sr-window::before { top: 0.9rem; }
.sr-window::after { bottom: 0.9rem; }
.sr-pre { text-align: right; }
.sr-orp { color: var(--attention); }
.sr-post { text-align: left; }
.sr-quiz { width: min(100%, 34rem); }
.sr-quiz[hidden] { display: none; }
.sr-q { font-size: var(--step-1); font-weight: 700; margin: 0 0 1rem; }
.sr-opts { display: grid; gap: 0.6rem; }
.sr-opts .btn { justify-content: flex-start; text-align: left; width: 100%; min-height: 3.2rem; background: var(--paper); }
.sr-opts .btn:hover { background: var(--mist); color: var(--ink); }
.sr-key { flex: none; display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: var(--step--1); }
/* stroop.css */
.st-word { min-height: 1.3em; display: flex; align-items: center; justify-content: center; width: 100%; letter-spacing: 0.02em; }
.st-fix { color: var(--ink-soft); font-size: var(--step-2); }
.st-red { color: var(--attention); }
.st-blue { color: var(--memory); }
.st-green { color: var(--reasoning); }
.st-yellow { color: var(--speed); }
.st-keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; width: min(100%, 36rem); }
.st-key { min-height: 4rem; color: #fff; font-size: var(--step-1); text-transform: capitalize; }
.st-key.st-red { background: var(--attention); color: #fff; }
.st-key.st-blue { background: var(--memory); color: #fff; }
.st-key.st-green { background: var(--reasoning); color: #fff; }
.st-key.st-yellow { background: var(--speed); color: var(--ink); }
@media (max-width: 560px) { .st-keys { grid-template-columns: repeat(2, 1fr); } .st-key { min-height: 4.5rem; } }
/* task-switch.css */
.ts-board { width: min(100%, 28rem); display: grid; grid-template-rows: 1fr 1fr; border-radius: var(--radius-l); overflow: hidden; background: var(--paper); outline: 3px solid transparent; outline-offset: -3px; }
.ts-half { position: relative; min-height: 8.5rem; display: flex; align-items: center; justify-content: center; }
.ts-top { border-bottom: 3px dashed var(--line); }
.ts-bottom { background: color-mix(in srgb, var(--skill) 8%, var(--paper)); }
.ts-rule { position: absolute; top: 0.5rem; left: 0.75rem; right: 0.75rem; text-align: left; font-size: var(--step--1); font-weight: 700; color: var(--ink-soft); }
.ts-stim { letter-spacing: 0.08em; padding-top: 1rem; }
.ts-board[data-mark="ok"] { outline-color: var(--reasoning); }
.ts-board[data-mark="wrong"], .ts-board[data-mark="miss"] { outline-color: var(--attention); }
.ts-answers { width: min(100%, 28rem); flex-wrap: nowrap; }
.ts-btn { -webkit-tap-highlight-color: transparent; flex: 1 1 0; min-height: 4.5rem; flex-direction: column; gap: 0.2rem; background: var(--ink); color: #fff; padding: 0.6rem 0.5rem; }
.ts-btn:active { background: var(--skill); }
.ts-key { font: inherit; font-size: var(--step--1); font-weight: 400; opacity: 0.75; }
@media (hover: none) { .ts-key { display: none; } }
@media (prefers-reduced-motion: no-preference) { .ts-board { transition: outline-color 120ms; } }
/* tile-recall.css */
.mm-grid { width: min(100%, 24rem); }
.mm-grid > * { min-width: 0; -webkit-tap-highlight-color: transparent; transition: background-color 120ms; }
.mm-say { margin: 0; min-height: 1.6em; font-weight: 700; color: var(--ink-soft); }
/* trail-making.css */
.tm-board { position: relative; width: min(100%, 26rem); background: var(--paper); border-radius: var(--radius-l); container-type: inline-size; touch-action: manipulation; }
.tm-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tm-lines polyline { fill: none; stroke: var(--skill); stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tm-dot { position: absolute; padding: 0; border: 3px solid var(--ink); border-radius: 50%; background: var(--paper); color: var(--ink); font: inherit; font-weight: 800; font-size: clamp(0.85rem, 4.6cqi, 1.3rem); line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.tm-dot:focus-visible { outline: 3px solid var(--memory); outline-offset: 2px; }
.tm-dot.is-done { background: var(--skill); border-color: var(--skill); color: var(--ink); }
.tm-dot.is-wrong { background: var(--attention); border-color: var(--attention); color: #fff; }
@media (prefers-reduced-motion: no-preference) { .tm-dot.is-wrong { animation: tm-shake 180ms; } }
@keyframes tm-shake { 25% { translate: -3px 0; } 75% { translate: 3px 0; } }
/* visual-memory.css */
.vm-board { position: relative; width: min(100%, 26rem); aspect-ratio: 1; background: var(--ink); border-radius: var(--radius-l); }
.vm-block { position: absolute; padding: 0; border: 0; border-radius: var(--radius-s); background: #3A4A75; cursor: default; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background-color 80ms; }
.vm-board[data-live="1"] .vm-block { cursor: pointer; }
.vm-block.is-on { background: var(--speed); }
.vm-block.is-done { background: var(--paper); }
.vm-block.is-wrong { background: var(--attention); }
@media (prefers-reduced-motion: reduce) { .vm-block { transition: none; } }
/* visual-search.css */
.vs-board { position: relative; width: min(100%, 28rem); aspect-ratio: 1; background: var(--paper); border-radius: var(--radius-l); }
.vs-item { -webkit-tap-highlight-color: transparent; position: absolute; width: var(--vs-size); aspect-ratio: 1; transform: translate(-50%, -50%); border: 0; border-radius: var(--radius-s); background: transparent; padding: 0; display: grid; place-items: center; cursor: pointer; }
.vs-item:focus-visible { outline: 3px solid var(--skill); }
.vs-item.is-wrong { background: color-mix(in srgb, var(--attention) 22%, transparent); }
.vs-glyph { position: relative; display: block; width: 64%; height: 64%; transform: rotate(var(--vs-rot)); }
.vs-glyph::before, .vs-glyph::after { content: ""; position: absolute; background: var(--ink); border-radius: 2px; }
.vs-t::before { left: 0; right: 0; top: 0; height: 22%; }
.vs-t::after { left: 39%; width: 22%; top: 0; bottom: 0; }
.vs-l::before { left: 0; width: 22%; top: 0; bottom: 0; }
.vs-l::after { left: 0; right: 0; bottom: 0; height: 22%; }
.vs-hint { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }
@media (hover: none) { .vs-hint { display: none; } }
