/* Shared BTO-style surface. Loaded after the three assessment-owned game styles. */
.cognitive-page {
  display:flow-root;
  --battery-accent:#4263ff;
  --battery-dark:#3451e8;
  --battery-ink:#202b40;
  --battery-muted:#606c82;
  --battery-line:#dce3f2;
  background:radial-gradient(ellipse at 100% 0,#fff1d626,transparent 58%),radial-gradient(ellipse at 0 100%,#fff1d626,transparent 60%),#fafbff;
  color:var(--battery-ink);
  font-family:Montserrat,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  width:100%;
  min-width:0;
}
.cognitive-page * {
  box-sizing:border-box;
}
.cognitive-page [hidden] {
  display:none!important;
}
.cognitive-page :is(#practice,#zapn-root) {
  display:block;
  width:100%;
  max-width:1180px;
  margin:0 auto;
  padding:32px clamp(18px,3vw,40px) 64px;
  background:transparent;
  min-height:calc(100dvh - 110px);
  font-size:16px;
  line-height:1.6;
}
.cognitive-page :is(button,input,select) {
  font:inherit;
}
.cognitive-page button {
  cursor:pointer;
}
.cognitive-page button:disabled {
  cursor:default;
  opacity:.6;
}
.cognitive-page :is(button,a,input,select,summary):focus-visible {
  outline:3px solid #4263ff;
  outline-offset:4px;
}
.cognitive-page [tabindex="-1"]:focus {
  outline:none;
}
.cognitive-page :is(#practice,#zapn-root)[data-screen=lobby] {
  max-width:none;
  padding:24px clamp(20px,3vw,52px) 36px;
  display:block!important;
}
.eq-battery-breadcrumb {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:12px;
  color:#606c82;
  flex-wrap:wrap;
}
.eq-battery-breadcrumb a {
  color:#4263ff;
  text-decoration:none;
}
.cognitive-page .eq-battery-hero {
  width:min(100%,800px);
  max-width:800px;
  margin:0 auto;
  min-height:calc(100dvh - 220px);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:48px 0 56px;
}
.cognitive-page .eq-battery-eyebrow {
  display:inline-block;
  border:1px solid #c8d0ff;
  border-radius:30px;
  background:#edf0ff;
  color:#4263ff;
  padding:6px 13px;
  margin:0 0 20px;
  font-size:10px;
  font-weight:700;
  letter-spacing:1.8px;
}
.cognitive-page .eq-battery-hero h1 {
  font-size:clamp(38px,5.6vw,76px);
  font-weight:650;
  letter-spacing:-.045em;
  line-height:1.12;
  margin:0 0 20px;
  max-width:780px;
}
.cognitive-page .eq-battery-hero h1 span {
  display:inline;
  color:#202b40;
}
.cognitive-page .eq-battery-hero h1 .eq-battery-accent {
  color:#4263ff;
}
.cognitive-page .eq-battery-subtitle {
  font-size:clamp(15px,1.5vw,19px);
  color:#606c82;
  line-height:1.65;
  margin:0 0 28px;
  max-width:640px;
}
.cognitive-page .eq-battery-start-row {
  display:flex;
  justify-content:center;
  gap:9px;
  width:min(100%,360px);
}
.cognitive-page .eq-battery-primary,.cognitive-page .eq-battery-settings {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:11px;
  min-height:58px;
  font-size:15px;
  font-weight:650;
  margin:0;
  padding:13px 22px;
  border:1px solid #526cff;
}
.cognitive-page .eq-battery-primary {
  background:#4263ff;
  color:white;
  gap:25px;
  box-shadow:0 4px 14px #4263ff24;
}
.cognitive-page .eq-battery-start-row .eq-battery-primary {
  flex:1;
}
.cognitive-page .eq-battery-settings {
  width:58px;
  padding:0;
  flex:none;
  font-size:25px;
  font-weight:400;
  color:#4263ff;
  background:#f1f3ff;
  border-color:#b8c4ff;
}
.cognitive-page .eq-battery-primary:hover:not(:disabled) {
  background:#3451e8;
}
.cognitive-page .eq-battery-message {
  margin:10px 0 0;
  color:#606c82;
  font-size:13px;
}
.cognitive-page .eq-battery-message:empty {
  display:none;
}
.cognitive-page .eq-battery-links {
  display:flex;
  justify-content:center;
  gap:24px;
  flex-wrap:wrap;
  margin:22px 0 0;
}
.cognitive-page .eq-battery-links button {
  border:0;
  background:none;
  padding:8px 0;
  font-size:13px;
  color:#606c82;
  border-radius:0;
}
.cognitive-page .eq-battery-links button:hover {
  color:#4263ff;
}
.cognitive-page .eq-battery-formats {
  width:min(100%,580px);
  margin:20px auto 0;
  padding:9px 17px;
  border:1px solid #ffcf80;
  border-left:4px solid #f6a000;
  border-radius:12px;
  background:#fff5de;
  text-align:left;
  font-size:12px;
  color:#946025;
}
.eq-battery-formats>div {
  display:grid;
  grid-template-columns:125px 1fr;
  gap:12px;
  padding:5px 0;
}
.eq-battery-formats>div+div {
  border-top:1px solid #f0d5aa;
}
.eq-battery-formats strong,.eq-battery-formats a {
  font-weight:650;
}
.cognitive-page .eq-battery-formats a {
  color:#4263ff;
  text-decoration:underline;
}
.eq-battery-resume {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
  margin-top:20px;
}
.eq-battery-resume button {
  border:0;
  background:none;
  color:#4263ff;
  font-size:13px;
}
.cognitive-page .eq-battery-dialog {
  color:#202b40;
  border:1px solid #dce3f2;
  border-radius:18px;
  padding:28px;
  max-height:85dvh;
  width:min(640px,calc(100vw - 32px));
  max-width:none;
  overflow:auto;
  background:white;
  box-shadow:0 24px 80px #15234333;
}
.cognitive-page .eq-battery-options {
  width:min(820px,calc(100vw - 32px));
}
.eq-battery-dialog::backdrop {
  background:#15234380;
}
.cognitive-page .eq-battery-dialog h2 {
  font-size:24px;
  line-height:1.3;
  letter-spacing:-.025em;
  margin:0 0 14px;
}
.eq-battery-dialog p {
  color:#606c82;
  font-size:14px;
}
.eq-battery-dialog-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
}
.eq-battery-close {
  background:none;
  border:0;
  font-size:28px!important;
  line-height:1;
  width:40px;
  height:40px;
  color:#606c82;
}
.cognitive-page .eq-battery-controls {
  display:flex;
  align-items:end;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:16px;
  margin:12px 0 20px;
}
.eq-battery-controls label {
  display:grid;
  gap:5px;
  font-size:12px;
  color:#606c82;
}
.eq-battery-controls button,.eq-battery-controls select {
  font-size:13px!important;
  min-height:44px;
  border:1px solid #dce3f2;
  border-radius:8px;
  padding:9px 13px;
  background:white;
  color:#202b40;
}
.eq-battery-controls button[aria-pressed=true] {
  background:#eef1ff;
  color:#3451e8;
  border-color:#a8b7ff;
}
.cognitive-page .eq-battery-library {
  width:100%;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:0 0 24px;
}
.cognitive-page .eq-battery-card {
  min-width:0;
  min-height:110px;
  text-align:left;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  border:1px solid #dce3f2;
  border-radius:11px;
  padding:14px;
  background:white;
  color:#202b40;
}
.cognitive-page .eq-battery-card[aria-checked=true][aria-disabled=false] {
  background:white;
  border-color:#4263ff;
  box-shadow:inset 0 0 0 1px #4263ff;
}
.cognitive-page .eq-battery-card strong {
  font-size:14px;
}
.cognitive-page .eq-battery-card span,.cognitive-page .eq-battery-card small {
  font-size:11px;
  line-height:1.5;
  color:#606c82;
}
.cognitive-page .eq-battery-card[aria-disabled=true] {
  cursor:default;
}
.eq-battery-selection-help {
  font-size:12px!important;
}
.eq-battery-options>.eq-battery-primary {
  display:flex;
  margin-left:auto;
  min-height:46px;
}
.cognitive-page .mas-page-note,.cognitive-page .battery-preview {
  display:none;
}
/* Preparation and live workspace use the same BTO title, clock and white panel. */
.cognitive-page :is(.battery-top,.work-header,.mas-topbar) {
  position:static;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  background:transparent;
  width:100%;
  padding:0;
  margin:0 0 22px;
}
.cognitive-page :is(.battery-top h1,.work-header h1) {
  font-size:clamp(24px,2.3vw,30px);
  font-weight:600;
  line-height:1.25;
  letter-spacing:-.03em;
  margin:0;
}
.cognitive-page .battery-top h1>span:first-child {
  font-size:13px;
  font-weight:500;
  color:#606c82;
  margin-bottom:4px;
}
.cognitive-page .battery-top h1>span:last-child {
  color:#202b40;
}
.cognitive-page .battery-time {
  margin-left:auto;
}
.cognitive-page .battery-time small {
  letter-spacing:0;
  text-transform:none;
  font-size:11px;
}
.cognitive-page :is(.work-subtitle,.battery-meta,.mas-subtitle) {
  color:#606c82;
}
.cognitive-page :is(.battery-progress,.battery-steps) {
  display:flex;
  flex-wrap:wrap;
  gap:9px 16px;
  justify-content:flex-start;
  list-style:none;
  padding:0 0 16px;
  margin:0 0 24px;
  border-bottom:1px solid #dce3f2;
}
.cognitive-page :is(.battery-progress,.battery-steps) li {
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
  white-space:nowrap;
  font-size:11px;
  line-height:1.4;
}
.cognitive-page .battery-progress li>span:first-child,.cognitive-page .step-dot {
  width:24px;
  height:24px;
  flex:0 0 24px;
  border:1px solid #c9d2e6;
  border-radius:50%;
  display:grid;
  place-items:center;
}
.cognitive-page .battery-progress li>span.battery-progress-name {
  display:inline;
  width:auto;
  height:auto;
  border:0;
  border-radius:0;
  background:none!important;
  color:inherit!important;
  white-space:normal;
}
.cognitive-page .battery-progress [aria-current]>span:first-child {
  color:white;
  background:#4263ff;
}
.cognitive-page :is(.battery-panel,.preparation-card,.mas-instructions) {
  width:min(100%,760px);
  max-width:760px;
  margin:28px auto;
  background:white;
  border:1px solid #dce3f2;
  border-radius:16px;
  padding:clamp(24px,4vw,42px);
  box-shadow:0 8px 30px #20304704;
}
.cognitive-page :is(.battery-panel h2,.preparation-card h2) {
  font-size:30px;
  font-weight:600;
  letter-spacing:-.03em;
}
.cognitive-page :is(.battery-panel p,.preparation-card p,.mas-instructions li) {
  font-size:15px;
  line-height:1.8;
}
.cognitive-page .battery-panel ul {
  font-size:15px;
}
.cognitive-page :is(.battery-game-root,.playfield,.mas-game-mount) {
  width:100%;
  max-width:900px;
  min-height:360px;
  margin:24px auto 0;
  padding:28px;
  background:white;
  border:1px solid #dce3f2;
  border-radius:16px;
  overflow:visible;
}
.cognitive-page .playfield {
  display:flex;
}
.cognitive-page :is(.battery-game-root,.playfield,.mas-game-mount) :is(svg,canvas) {
  max-width:100%;
}
.cognitive-page :is(.battery-play-caption,.session-note) {
  font-size:12px;
  line-height:1.6;
  margin:16px auto;
  color:#606c82;
}
.cognitive-page .timed-status {
  max-width:900px;
}
.cognitive-page .mas-screen-title {
  font-size:32px;
  line-height:1.25;
  margin:0 auto 18px;
  font-weight:600;
}
.cognitive-page .mas-title-kicker {
  font-size:12px;
  font-weight:500;
  margin-bottom:8px;
}
.cognitive-page :is(.battery-button,.btn,.mas-primary,.mas-secondary) {
  min-height:48px;
  border-radius:10px;
  font-size:14px!important;
  padding:12px 22px;
  font-weight:600;
}
.cognitive-page :is(.battery-primary,.btn.primary,.mas-primary) {
  background:#4263ff;
  border-color:#4263ff;
  color:white;
}
.cognitive-page .mas-error:empty {
  display:none;
}
.cognitive-page .mas-live {
  position:absolute!important;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
}
/* Typed game metrics, with BTO's compact summary and stacked actions. */
.cognitive-page :is(.battery-result,.results-screen) {
  max-width:1020px;
}
.cognitive-page [data-screen=results] .battery-top,.cognitive-page [data-screen=results] .battery-progress {
  display:none;
}
.cognitive-page :is(.results-screen .work-header,.results-screen .work-header>div) {
  display:block;
  text-align:center;
}
.cognitive-page .results-screen .work-subtitle {
  text-align:center;
  max-width:680px;
  margin:0 auto 24px;
}
.cognitive-page :is(.battery-results-title,.results-screen .work-header h1) {
  font-size:36px;
  line-height:1.2;
  text-align:center;
  font-weight:600;
  margin-bottom:12px;
}
.cognitive-page .battery-result h2 {
  font-size:30px;
}
.cognitive-page :is(.battery-metrics,.metric-grid,.mas-metric-grid) {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:0;
  background:white;
  border:1px solid #dce3f2;
  border-radius:16px;
  margin:24px auto;
  padding:24px 12px;
  max-width:900px;
}
.cognitive-page :is(.battery-metric,.metric,.mas-metric) {
  border:0;
  background:transparent;
  border-radius:0;
  padding:8px 14px;
  text-align:center;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:6px;
  min-width:0;
}
.cognitive-page :is(.battery-metric,.metric,.mas-metric)+:is(.battery-metric,.metric,.mas-metric) {
  border-left:1px solid #e7ebf4;
}
.cognitive-page :is(.battery-metric strong,.metric strong,.mas-metric strong) {
  font-size:34px;
  font-weight:650;
  line-height:1.2;
  letter-spacing:-.025em;
}
.cognitive-page :is(.battery-metric span,.metric span,.mas-metric span) {
  font-size:12px;
  line-height:1.5;
}
.cognitive-page .metric small {
  font-size:10px;
}
.cognitive-page .result-card {
  max-width:900px;
  margin:24px auto;
  padding:24px;
  border-radius:16px;
}
.cognitive-page .result-card .metric-grid {
  border:0;
  padding:6px 0;
}
.cognitive-page :is(.result-actions,.battery-result>.battery-actions,[data-phase=results]>.mas-lobby-actions) {
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  margin:24px auto;
  max-width:340px;
}
.cognitive-page :is(.result-actions,.battery-result>.battery-actions,[data-phase=results]>.mas-lobby-actions)>button {
  width:100%;
}
.cognitive-page :is(.battery-signup,.battery-premium,.mas-save-gate) {
  max-width:760px;
  margin:32px auto;
  padding:28px;
  border-radius:16px;
  border:1px solid #d5ddff;
  background:#f3f5ff;
}
.cognitive-page :is(.battery-signup,.battery-premium,.mas-save-gate) h2 {
  font-size:25px;
}
.cognitive-page :is(.battery-signup,.mas-save-gate) form {
  display:flex;
  flex-direction:column;
  gap:10px;
  width:min(100%,410px);
  margin:20px auto 0;
}
.cognitive-page :is(.battery-signup,.mas-save-gate) input[type=email] {
  width:100%;
  min-height:48px;
  border:1px solid #bbc8ff;
  border-radius:9px;
  margin:0;
  padding:10px 14px;
}
.cognitive-page :is(.battery-review,.review-details,#breakdown) {
  scroll-margin-top:24px;
}
.cognitive-page .battery-battery-row {
  padding:20px;
  margin:12px 0;
}
.cognitive-page .battery-battery-row p {
  line-height:1.8;
}
.cognitive-page .battery-about {
  display:none;
}
@media(max-width:700px) {
  .cognitive-page .eq-battery-hero {
    padding:44px 0 36px;
    min-height:calc(100dvh - 200px);
  }
  .cognitive-page .eq-battery-hero h1 {
    font-size:44px;
  }
  .cognitive-page .eq-battery-library {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .eq-battery-formats>div {
    grid-template-columns:1fr;
    gap:1px;
  }
  .cognitive-page .eq-battery-dialog {
    padding:20px;
  }
  .cognitive-page :is(.battery-top,.work-header) {
    flex-wrap:wrap;
  }
  .cognitive-page .battery-top .battery-time {
    font-size:21px;
  }
  .cognitive-page :is(.battery-metrics,.metric-grid,.mas-metric-grid) {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px 0;
    padding:16px 8px;
  }
  .cognitive-page :is(.battery-metric,.metric,.mas-metric):nth-child(odd) {
    border-left:0;
  }
  .cognitive-page .battery-metric:last-child {
    grid-column:auto;
  }
  .cognitive-page :is(.battery-game-root,.playfield,.mas-game-mount) {
    padding:20px 12px;
    min-height:330px;
  }
  .cognitive-page .battery-progress .battery-progress-name {
    display:none!important;
  }
  .cognitive-page .battery-steps {
    gap:8px;
    justify-content:space-between;
  }
  .cognitive-page .battery-steps li {
    font-size:10px;
  }
  .cognitive-page :is(.battery-signup,.battery-premium,.mas-save-gate) {
    padding:22px 16px;
  }
  .cognitive-page .mas-screen-title {
    font-size:28px;
  }
}
@media(max-width:380px) {
  .cognitive-page .eq-battery-hero h1 {
    font-size:36px;
  }
  .cognitive-page .eq-battery-library {
    grid-template-columns:1fr;
  }
  .eq-battery-controls>div {
    display:flex;
    width:100%;
  }
  .eq-battery-controls>div>button {
    flex:1;
  }
  .cognitive-page .eq-battery-start-row {
    gap:7px;
  }
  .cognitive-page .eq-battery-primary {
    font-size:13px;
    padding-inline:14px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .cognitive-page * {
    scroll-behavior:auto!important;
  }
}
.cognitive-page .zapn-account {
  max-width:760px;
  margin:28px auto;
  padding:28px;
  background:#f3f5ff;
  border:1px solid #d5ddff;
  border-radius:16px;
  text-align:center;
}
.cognitive-page .zapn-account h3 {
  font-size:25px;
  font-weight:600;
  margin:0 0 12px;
}
.cognitive-page .zapn-account p {
  font-size:13px;
  color:#606c82;
  margin-bottom:20px;
}
.cognitive-page .zapn-account .battery-actions {
  display:flex;
  flex-direction:column;
  width:min(100%,410px);
  gap:10px;
  margin:0 auto;
}
.cognitive-page .zapn-account form,.cognitive-page .zapn-account button {
  width:100%;
}
.cognitive-page .battery-signup>button {
  margin-top:12px;
  width:min(100%,410px);
}
.cognitive-page .battery-signup form:last-child {
  margin-top:10px;
}
.cognitive-page .battery-signup form:last-child button {
  background:none;
  border:0;
  font-size:12px!important;
  min-height:28px;
  padding:0;
  color:#606c82;
}
.cognitive-page .results-screen .battery-steps {
  display:none;
}
.cognitive-page .result-actions [data-action=library] {
  border:0;
  background:none;
  color:#606c82;
  font-size:12px!important;
  min-height:32px;
}
.cognitive-page .mas-metric-grid .mas-metric strong {
  order:-1;
}
.cognitive-page .mas-metric-grid small {
  font-size:10px;
  color:#606c82;
}
.cognitive-page :is(.mas-hint,.measurement-note,.battery-meta) {
  line-height:1.7;
}
.cognitive-page .mas-direction .mas-game-status {
  display:none;
}

/* Game discovery stays on the lobby, immediately below Learn more. */
.cognitive-page .eq-battery-hero {max-width:1080px;width:100%;min-height:0;padding:54px 0 24px}
.cognitive-page .eq-battery-hero h1 {font-size:clamp(38px,5.2vw,68px)}
.cognitive-page .eq-battery-hero>.eq-battery-library {grid-template-columns:repeat(3,minmax(0,1fr));margin:22px 0 0;gap:14px}
.cognitive-page .eq-battery-card {min-height:150px;padding:20px}
.cognitive-page .eq-battery-card strong {font-size:16px}
.cognitive-page .eq-battery-card span {font-size:13px}
.cognitive-page .eq-battery-card small {margin-top:auto;color:#4263ff;font-weight:600}
.cognitive-page .eq-battery-card[aria-checked=true] {background:white;border-color:#4263ff;box-shadow:inset 0 0 0 1px #4263ff}
@media(max-width:700px){.cognitive-page .eq-battery-hero>.eq-battery-library{grid-template-columns:repeat(2,minmax(0,1fr))}.cognitive-page .eq-battery-card{padding:14px}}
@media(max-width:380px){.cognitive-page .eq-battery-hero>.eq-battery-library{grid-template-columns:1fr}}

/* Compact ZAP-N cards; four-game batteries use two balanced rows. */
.cognitive-page #zapn-root .eq-battery-card {min-height:125px;padding:15px 20px}
.cognitive-page #practice .eq-battery-hero>.eq-battery-library {grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:380px){.cognitive-page #practice .eq-battery-hero>.eq-battery-library{grid-template-columns:1fr}.cognitive-page #zapn-root .eq-battery-card{padding:14px}}

/* In-page assessment guides follow the BTO article layout. */
.cognitive-page .eq-battery-information {max-width:920px;margin:40px auto 72px;padding:32px 24px;scroll-margin-top:130px;text-align:left;color:#65718b;font-size:16px;line-height:1.9}
.cognitive-page .eq-battery-information[hidden] {display:none}
.cognitive-page .eq-battery-information h2 {font-size:clamp(25px,3vw,36px);line-height:1.25;color:#21365d;font-weight:700;margin:32px 0 20px;letter-spacing:-.6px}
.cognitive-page .eq-battery-information h2:first-child {font-weight:400;margin-top:0}
.cognitive-page .eq-battery-information h2 span,.cognitive-page .eq-battery-information a {color:#465fff}
.cognitive-page .eq-battery-information p {margin:18px 0}
.cognitive-page .eq-battery-information-table {border:1px solid #dae0ff;border-radius:12px;overflow:hidden;margin:24px 0}
.cognitive-page .eq-battery-information table {width:100%;border-collapse:collapse;table-layout:fixed;font-size:14px;line-height:1.7}
.cognitive-page .eq-battery-information caption {padding:12px 16px;text-align:left;font-weight:600;color:#21365d}
.cognitive-page .eq-battery-information th,.cognitive-page .eq-battery-information td {padding:14px 16px;border-bottom:1px solid #e2e7f7;overflow-wrap:anywhere;text-align:left}
.cognitive-page .eq-battery-information thead {background:#eef1ff;color:#3e54ed}
.cognitive-page .eq-battery-information th:first-child {width:27%}
.cognitive-page .eq-battery-information tbody th {color:#21365d}
.cognitive-page .eq-battery-information details {border-bottom:1px solid #e2e7f7;padding:17px 0}
.cognitive-page .eq-battery-information summary {cursor:pointer;color:#21365d;font-weight:650;line-height:1.6}
.cognitive-page .eq-battery-information-note {font-size:13px}
@media(max-width:600px){.cognitive-page .eq-battery-information{padding:24px 16px;font-size:15px;scroll-margin-top:100px}.cognitive-page .eq-battery-information th,.cognitive-page .eq-battery-information td{padding:10px}}

/* Match the BTO text link, overriding assessment-specific anchor colours. */
.cognitive-page .eq-battery-hero .eq-battery-links a[data-info],
.cognitive-page .eq-battery-hero .eq-battery-links a[data-info]:visited {color:#3e4d65!important;background:transparent;font-size:14px;font-weight:400;line-height:24px;text-decoration:none}
.cognitive-page .eq-battery-hero .eq-battery-links a[data-info]:hover {color:#3451e8!important;text-decoration:underline;text-underline-offset:4px}

/* Focused practice: one centred task, generous desktop targets, quiet controls. */
.cognitive-page :is(#practice,#zapn-root)[data-screen=work] {max-width:1320px;padding:32px clamp(18px,3vw,48px) 40px}
.cognitive-page #practice[data-screen=work],.cognitive-page .battery-stage {display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:calc(100dvh - 230px);width:100%;gap:18px}
.cognitive-page .battery-stage>* {flex-shrink:0}
.cognitive-page :is(.battery-top,.work-header,.work-header>div) {display:block;width:100%;text-align:center;margin:0}
.cognitive-page :is(.battery-top h1,.work-header h1,.mas-screen-title) {font-size:clamp(28px,3vw,42px);line-height:1.2;letter-spacing:-.04em;margin:0;text-align:center}
.cognitive-page :is(.battery-top h1>span:first-child,.work-header .eyebrow,.mas-title-kicker) {font-size:14px;font-weight:500;letter-spacing:0;text-transform:none;color:#65718b;margin:0 0 8px;display:block}
.cognitive-page :is(.battery-top h1>span:last-child,.mas-screen-title>span:last-child) {display:block;color:#4263ff}
.cognitive-page .work-header h1 {color:#4263ff}
.cognitive-page .battery-time {display:flex;justify-content:center;align-items:center;gap:12px;margin:14px auto 0;font-size:20px;line-height:1.3}
.cognitive-page .battery-time small {font-size:12px}
.cognitive-page .practice-bottom-actions {order:100;display:flex;justify-content:center;width:100%;margin:8px auto 0;padding:0;gap:16px}
.cognitive-page .practice-bottom-actions :is(button,.mas-link) {background:transparent;border:1px solid #dce3f2;color:#65718b;box-shadow:none;font-size:13px!important;font-weight:500;min-height:42px;padding:8px 22px;border-radius:9px}
.cognitive-page :is(.battery-notice:empty,.notice:empty,.work-subtitle:empty) {display:none}
.cognitive-page :is(.battery-panel,.preparation-card,.mas-instructions,.demo-card) {width:min(100%,860px);max-width:860px;margin:10px auto;padding:clamp(24px,3.2vw,48px);border:1px solid #e0e6f5;border-radius:20px;background:#fff;text-align:center;box-shadow:0 12px 40px #3451e807}
.cognitive-page :is(.battery-panel h2,.preparation-card h2) {font-size:26px;margin:0 0 16px;color:#202b40}
.cognitive-page :is(.practice-instructions,.preparation-card>p) {max-width:690px;margin:12px auto 22px;font-size:17px;line-height:1.8;color:#606c82}
.cognitive-page :is(.battery-controls,.controls-copy,.mas-controls-note) {border:0;padding:0;font-size:13px!important;color:#65718b;line-height:1.6;margin:18px auto}
.cognitive-page :is(.battery-panel .battery-actions,.preparation-card>.btn,.mas-instructions .mas-lobby-actions) {margin-top:24px}
.cognitive-page :is(.preparation-card>.btn) {margin-inline:6px}
.cognitive-page .ready-settings {display:flex;justify-content:center;gap:12px;margin:18px auto;font-size:13px}
.cognitive-page .mas-instruction-icon {margin:0 auto 20px;color:#4263ff}
.cognitive-page :is(.battery-game-root,.playfield,.mas-game-mount) {width:100%;max-width:1060px;min-height:420px;margin:8px auto 0;padding:32px;border-radius:20px}
.cognitive-page .battery-play-caption {margin:0 auto;font-size:13px;text-align:center}
.cognitive-page .timed-status,.cognitive-page .mas-play-toolbar {width:min(100%,1000px);margin:0 auto;font-size:14px}
.cognitive-page .session-note {display:none}
.cognitive-page :is(.zapn-feedback,.mas-feedback,.input-note) {font-size:14px;line-height:1.5;min-height:24px}
.cognitive-page .zapn-code-content {border-radius:14px;padding:8px}
.cognitive-page .zapn-code-options {max-width:840px;gap:18px}
.cognitive-page .zapn-code-options .zapn-choice {display:flex;align-items:center;justify-content:center;gap:14px;min-height:84px;font-size:25px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.04em}
.cognitive-page .zapn-code-options .zapn-choice::before {content:none}
.cognitive-page .zapn-code-options kbd {font:500 12px Montserrat,sans-serif;border:1px solid #dce3f2;border-radius:5px;padding:3px 6px;color:#65718b;letter-spacing:0}
.cognitive-page .zapn-code-target strong {font-size:clamp(32px,4vw,62px);color:#202b40}
.cognitive-page .zapn-code-target>span {font-size:14px}
.cognitive-page .zapn-trial {font-size:14px;margin:8px 0 20px!important}
.cognitive-page .zapn-choice:disabled {opacity:1;cursor:default}
.cognitive-page [data-selected=true] {background:#edf1ff!important;border-color:#4263ff!important;color:#3451e8!important;box-shadow:inset 0 0 0 1px #4263ff}
.cognitive-page .zapn-next-track {height:3px;overflow:hidden;background:#edf1fa;border-radius:3px;max-width:840px;margin:24px auto 0}
.cognitive-page .zapn-next-fill {height:100%;background:#4263ff;transform-origin:left;will-change:transform}
.cognitive-page .zapn-demo {margin:24px auto 0;padding:24px;background:#fafbff;text-align:center}
.cognitive-page .zapn-demo .zapn-choice {min-height:64px;font-size:19px}
.cognitive-page .zapn-demo [data-answer=success] {background:#e5f7ed;border:2px solid #149b63;color:#087647}
.cognitive-page .zapn-demo [data-answer=failure] {background:#fff0f1;border:2px solid #df4560;color:#b52842}
.cognitive-page .answer-mark {font-size:18px;font-weight:700}
.cognitive-page .zapn-demo-message {font-size:14px;line-height:1.6;margin:18px 0}
.cognitive-page :is(.practice-countdown,.mas-countdown) {font-size:88px;font-weight:700;color:#4263ff;display:grid;place-items:center;min-height:280px;position:static;inset:auto;transform:none;width:100%;background:transparent;pointer-events:none}
.cognitive-page .zapn-countdown strong {font-size:88px;font-weight:700}
.cognitive-page .battery-progress,.cognitive-page .battery-steps {justify-content:center;width:100%}

/* BTO results hierarchy: large headline, open score columns, save card, breakdown. */
.cognitive-page :is(#practice,#zapn-root)[data-screen=results] {max-width:1160px;text-align:center;padding-top:58px}
.cognitive-page :is(.battery-results-title,.results-screen .work-header h1,[data-phase=results] .mas-screen-title) {font-size:clamp(34px,4vw,52px);font-weight:650;line-height:1.16;letter-spacing:-.045em;margin:0 auto 20px}
.cognitive-page .battery-results-title>span {display:block}
.cognitive-page :is(.battery-result-status,.status-badge) {font-size:12px;letter-spacing:0;text-transform:none;color:#65718b}
.cognitive-page .battery-result h2,.cognitive-page .result-card-title h2 {font-size:22px;font-weight:500;margin:8px auto 20px}
.cognitive-page :is(.battery-metrics,.metric-grid,.mas-metric-grid) {background:transparent;border:0;border-radius:0;padding:16px 0;margin:28px auto 30px;max-width:1000px;gap:20px}
.cognitive-page :is(.battery-metric,.metric,.mas-metric) {border:0!important;padding:10px 12px;gap:12px;justify-content:start}
.cognitive-page :is(.battery-metric>span,.metric>span,.mas-metric>span) {order:-1;font-size:14px;color:#65718b}
.cognitive-page :is(.battery-metric strong,.metric strong,.mas-metric strong) {font-size:clamp(36px,4.8vw,64px);line-height:1;font-weight:650;letter-spacing:-.05em;color:#4263ff;order:0!important}
.cognitive-page .battery-metric strong small {font-size:22px;letter-spacing:0;margin-left:4px}
.cognitive-page :is(.metric small,.mas-metric small) {font-size:11px;color:#65718b}
.cognitive-page .result-card:not(.battery-signup):not(.battery-premium) {background:transparent;border:0;box-shadow:none;padding:0;margin:24px auto}
.cognitive-page .result-card-title {display:flex;flex-direction:column;gap:6px;align-items:center}
.cognitive-page .result-card-title h2 {margin:0}
.cognitive-page .coverage {font-size:13px;color:#65718b}
.cognitive-page :is(.zapn-account,.battery-signup,.battery-premium,.mas-save-gate) {max-width:680px;padding:32px;background:#f1f3ff;border:1px solid #dbe1ff;border-radius:16px;margin:32px auto;text-align:center}
.cognitive-page :is(.zapn-account,.battery-signup,.battery-premium,.mas-save-gate) :is(h2,h3) {font-size:26px;font-weight:650;letter-spacing:-.025em}
.cognitive-page :is(.zapn-account,.battery-signup,.battery-premium,.mas-save-gate) p {font-size:14px;line-height:1.7}
.cognitive-page :is(.battery-review,.practice-breakdown,.mas-breakdown) {margin:64px auto 0;text-align:left;max-width:1040px;scroll-margin-top:120px}
.cognitive-page .practice-breakdown>h2 {font-size:30px}
.cognitive-page :is(.review-details,.mas-review-item,.battery-review details) {scroll-margin-top:120px}
.cognitive-page .zapn-account form:has([value=login]) button {background:transparent;border:0;color:#65718b;box-shadow:none;font-size:13px!important;min-height:30px;padding:4px}
@media(min-width:1000px) {
 .cognitive-page .battery-game-root .zapn-shape {width:140px;height:140px}
 .cognitive-page .zapn-shape-stage {min-height:230px}
 .cognitive-page .battery-game-root .zapn-choice {min-height:76px;font-size:22px}
 .cognitive-page .battery-app .memory-grid {width:380px;gap:9px}
 .cognitive-page .battery-app .memory-cell {font-size:15px}
 .cognitive-page .battery-app .arrow-row {font-size:68px;gap:15px}
 .cognitive-page .battery-app .arrow-field {height:280px;width:640px}
 .cognitive-page .battery-app .intercept-field {width:560px;max-height:420px}
 .cognitive-page .battery-app .match-board {width:700px}
 .cognitive-page .battery-app .shape {font-size:78px}
 .cognitive-page .battery-app .response-controls .btn {min-width:180px;min-height:64px;font-size:18px!important}
 .cognitive-page .mas-arrows {font-size:92px;height:190px;gap:24px}
 .cognitive-page .mas-response {min-height:72px;min-width:240px;font-size:19px}
 .cognitive-page .mas-dial {width:340px}
 .cognitive-page .mas-sequence {max-width:900px}
 .cognitive-page .mas-frame-svg {width:180px}
 .cognitive-page .mas-attribute-grid select {font-size:13px;min-height:44px}
}
@media(max-width:700px) {
 .cognitive-page #practice[data-screen=work],.cognitive-page .battery-stage {min-height:calc(100dvh - 170px);gap:14px}
 .cognitive-page :is(#practice,#zapn-root)[data-screen=work] {padding:24px 14px 32px}
 .cognitive-page :is(.battery-game-root,.playfield,.mas-game-mount) {padding:20px 12px;min-height:340px}
 .cognitive-page .zapn-code-options {gap:10px}
 .cognitive-page .zapn-code-options .zapn-choice {font-size:clamp(14px,4vw,20px);gap:6px;padding:12px 6px;min-height:68px;letter-spacing:0}
 .cognitive-page .zapn-code-options kbd {display:none}
 .cognitive-page :is(.practice-instructions,.preparation-card>p) {font-size:15px}
 .cognitive-page .ready-settings {flex-wrap:wrap}
 .cognitive-page :is(.battery-metrics,.metric-grid,.mas-metric-grid) {gap:18px 6px}
 .cognitive-page :is(.battery-panel,.preparation-card,.mas-instructions,.demo-card) {padding:24px 18px}
 .cognitive-page .zapn-demo {padding:18px 12px}
 .cognitive-page .zapn-demo .zapn-choice {font-size:14px;padding:12px 8px}
 .cognitive-page :is(.battery-signup,.battery-premium,.mas-save-gate,.zapn-account) {padding:24px 18px}
}
.cognitive-page .zapn-code-options kbd {background:#f0f3fc;color:#65718b}
.cognitive-page .battery-panel:has([data-demo-root]) {padding-top:18px;padding-bottom:24px}
.cognitive-page .battery-panel:has([data-demo-root]) .zapn-demo {margin-top:0}
.cognitive-page [data-screen=results] .mas-title-kicker {font-size:22px;color:#202b40;margin-bottom:12px}
.cognitive-page :is(.battery-result>.battery-actions,.result-actions,[data-phase=results]>.mas-lobby-actions) {margin-top:22px}

.cognitive-page :is(.battery-metric>span,.metric>span,.mas-metric>span) {min-height:2.8em;display:flex;align-items:center;justify-content:center;line-height:1.4}
.cognitive-page [data-result-library] {border:0;background:transparent;box-shadow:none;color:#65718b;font-size:13px!important;min-height:32px}
@media(min-width:1000px) {
 .cognitive-page .zapn-demo .zapn-choice {font-size:19px!important}
 .cognitive-page .zapn-demo:has([data-demo-choice="0"]) .zapn-demo-challenge>p {font-size:26px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
}

/* The game guide is available at the point of selection, without a second lobby. */
.cognitive-page .eq-game-option {position:relative;min-width:0;display:flex}
.cognitive-page .eq-game-option .eq-battery-card {width:100%;height:100%;padding-right:44px}
.cognitive-page .eq-game-info {position:absolute;top:18px;right:16px;display:grid;place-items:center;width:20px;height:20px;min-height:0;padding:0;border:1px solid #9baaca;border-radius:50%;background:transparent;color:#65718b;font:14px Georgia,serif!important;box-shadow:none;cursor:help;z-index:1}
.eq-game-preview {position:fixed;z-index:1100;box-sizing:border-box;padding:20px;border:1px solid #d8dfff;border-radius:16px;background:#fff;box-shadow:0 12px 48px #142c5830;color:#202b40;max-height:calc(100dvh - 24px);overflow:auto;text-align:left;font-family:Montserrat,sans-serif}
.eq-game-preview[hidden] {display:none}
.eq-game-preview h3 {font-size:18px;margin:0 0 10px;font-weight:700}
.eq-game-preview p {font-size:13px;line-height:1.7;margin:0 0 14px;color:#65718b}
.eq-game-preview img {display:block;width:100%;height:auto;max-height:300px;object-fit:contain;border-radius:10px;border:1px solid #e1e6f4;background:#fafbff}
.cognitive-page .eq-game-info:focus-visible {outline:3px solid #8499ff;outline-offset:3px}

/* Match the 80 in 8 result and signup composition, with game-specific metrics. */
.cognitive-page :is(#practice,#zapn-root).cg-results[data-screen=results] {display:block;max-width:none;width:100%;padding:0;margin:0;text-align:center}
.cg-results .cg-breadcrumb {box-sizing:border-box;padding:0 24px;display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:22px 0 0;text-align:left;color:#65718b;font-size:13px}
.cg-results .cg-breadcrumb a {color:#4263ff;text-decoration:none}
.cg-results .cg-result-hero {box-sizing:border-box;min-height:calc(100dvh - 155px);padding:clamp(72px,12vh,140px) 20px 56px;text-align:center}
.cg-results .cg-result-hero h1 {display:block;font-size:clamp(30px,3.2vw,40px);line-height:1.25;font-weight:700;letter-spacing:-.035em;color:#202b40;max-width:800px;margin:0 auto 12px}
.cg-results .cg-result-hero h1>span {display:inline;color:#4263ff}
.cg-results .cg-result-game {font-size:16px;color:#65718b;margin:8px auto}
.cg-results .cg-feedback {font-size:20px;color:#65718b;line-height:1.5;margin:12px auto}
.cg-results .cg-metrics {display:flex;justify-content:center;flex-wrap:wrap;gap:0;width:min(100%,780px);margin:18px auto 30px}
.cg-results .cg-metric {flex:1 1 150px;padding:0 22px;min-width:0}
.cg-results .cg-metric+.cg-metric {border-left:1px solid #d8dfff}
.cg-results .cg-metric-label {font-size:14px;line-height:1.45;font-weight:600;color:#536b96;min-height:40px}
.cg-results .cg-value {position:relative;display:inline-flex;justify-content:center}
.cg-results .cg-value strong {font-size:58px;line-height:1.1;color:#4263ff;letter-spacing:-.04em;font-weight:700;white-space:nowrap}
.cg-results .cg-value small {font-size:23px;letter-spacing:0;margin-left:3px}
.cg-results .cg-metric-info {position:absolute;right:-15px;top:0;z-index:3}
.cg-results .cg-metric-info summary {display:grid;place-items:center;width:17px;height:17px;border:1px solid #9baaca;border-radius:50%;font:12px Georgia,serif;color:#65718b;list-style:none;cursor:pointer}
.cg-results .cg-metric-info summary::-webkit-details-marker {display:none}
.cg-results .cg-metric-info p {position:absolute;right:0;width:230px;padding:14px;border:1px solid #d8dfff;background:white;border-radius:10px;box-shadow:0 8px 28px #20366b20;color:#405778;font-size:13px;line-height:1.6;text-align:left}
.cg-results .cg-signup {box-sizing:border-box;width:100%;max-width:520px;margin:22px auto 0;padding:28px;border:1px solid #d8dfff;border-radius:18px;background:#fff;box-shadow:0 14px 48px #4263ff18;text-align:center}
.cg-results .cg-signup h3 {margin:0 0 14px;color:#0b172b;font-size:28px;line-height:1.22;letter-spacing:-.035em;font-weight:750}
.cg-results .cg-signup p {margin:0 0 20px;color:#253952;font-size:15px;line-height:1.6}
.cg-results .cg-signup form {margin:0}
.cg-results .cg-google button,.cg-results .cg-primary {display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;padding:8px 12px;border:1px solid #4263ff;border-radius:10px;background:#4263ff;color:#fff;font:700 16px Montserrat,sans-serif!important;text-decoration:none;box-shadow:0 4px 12px #4263ff26;cursor:pointer}
.cg-results .cg-google-icon {display:flex;padding:5px;background:#fff;border-radius:5px}
.cg-results .cg-auth-links {display:flex;justify-content:center;align-items:center;gap:8px;margin-top:16px;color:#63718a}
.cg-results .cg-auth-links button {width:auto;min-height:28px;padding:2px;border:0;background:none;color:#3656e8;font:400 13px Montserrat,sans-serif!important;box-shadow:none;cursor:pointer}
.cg-results .cg-email:not([hidden]) {display:flex;gap:8px;margin-top:12px}
.cg-results .cg-email input {min-width:0;flex:1;min-height:44px;padding:10px;border:1px solid #cbd8e8;border-radius:10px;color:#14273f;background:#fff}
.cg-results .cg-email button {min-height:44px;padding:8px 14px;border:1px solid #b1bfff;border-radius:10px;color:#3656e8;background:#f4f6ff;font-size:13px!important}
.cg-results button.cg-text-link {display:block;margin:22px auto 0;min-height:32px;width:auto;padding:4px;border:0;box-shadow:none;background:transparent;color:#4263ff;font:600 16px Montserrat,sans-serif!important;cursor:pointer}
.cg-results .cg-breakdown-section {width:100%;border-top:1px solid #d3ddfc;background:#fafbff;padding:48px 0 70px}
.cg-results .cg-breakdown {width:calc(100% - 32px);max-width:960px;margin:0 auto;text-align:left;scroll-margin-top:130px}
.cg-results .cg-breakdown h2 {font-size:30px;margin-bottom:24px}
.cg-results .cg-filters {display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.cg-results .cg-filters button {min-height:44px;padding:10px 16px;border:1px solid #cbd7fa;border-radius:9px;background:#fff;color:#3656e8;font:700 14px Montserrat,sans-serif!important;cursor:pointer;box-shadow:none}
.cg-results .cg-filters [aria-pressed=true] {background:#4263ff;border-color:#4263ff;color:#fff}
.cg-results .cg-review-card {padding:20px;border:1px solid #b1bfff;border-radius:16px;margin:10px 0;background:#ffffff50;overflow-wrap:anywhere}
.cg-results [hidden] {display:none!important}
.cg-results .cg-question-heading {display:flex;justify-content:space-between;gap:16px;color:#65718b;font-size:12px;margin-bottom:10px}
.cg-results .cg-status {color:#65718b;font-weight:600}
.cg-results [data-outcome=correct] .cg-status {color:#009b65}
.cg-results [data-outcome=incorrect] .cg-status {color:#ff3347}
.cg-results .cg-prompt {font-size:17px;color:#253952;margin:12px 0}
.cg-results .cg-stimulus {font-size:38px;text-align:center;letter-spacing:12px;color:#202b40}
.cg-results .cg-choices {list-style:none;padding:0;margin:12px 0;display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}
.cg-results .cg-choices li {display:flex;align-items:center;gap:10px;border:1px solid #dce3f2;border-radius:9px;padding:10px;color:#253952;font-size:14px}
.cg-results .cg-letter {color:#65718b;font-size:12px}
.cg-results .cg-choices small {margin-left:auto;font-size:11px;color:#536b96}
.cg-results .cg-choices [data-selected=true] {background:#fff3f5!important;border-color:#f4a5b4!important;color:#253952!important;box-shadow:none!important}
.cg-results .cg-choices [data-correct=true] {background:#effaf5!important;border-color:#95d9b8!important}
.cg-results .cg-answer-details {display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0;font-size:14px}
.cg-results .cg-answer-details>div {padding:12px;background:#f5f7ff;border:1px solid #dce3f2;border-radius:8px}
.cg-results .cg-answer-details dt {color:#65718b;font-size:12px;margin-bottom:8px}
.cg-results .cg-answer-details dd {margin:0;color:#253952}
.cg-results .cg-solution {margin-top:16px;font-size:14px;color:#253952}
.cg-results .cg-solution>summary {color:#4263ff;cursor:pointer;font-size:15px}
.cg-results .cg-solution>p {line-height:1.8;margin-top:18px}
.cg-results .cg-gate {padding:32px 20px;margin:16px 0 4px;border:1px solid #dce6f4;border-radius:22px;background:repeating-linear-gradient(180deg,#f8fbff 0 24px,#f3f6fc 25px 26px)}
.cg-results .cg-gate .cg-signup {margin:0 auto;max-width:480px}
.cg-results .cg-response-time {font-size:12px;color:#65718b}
.cg-results .cg-memory-review {display:grid;grid-template-columns:repeat(5,1fr);max-width:260px;gap:6px;margin:20px auto}
.cg-results .cg-memory-review span {padding:10px;text-align:center;border:1px solid #dce3f2;border-radius:6px}
.cg-results .cg-memory-review [data-selected=true] {background:#fff3f5!important;border-color:#f4a5b4!important;color:#253952!important;box-shadow:none!important}
.cg-results .cg-memory-review [data-correct=true] {background:#effaf5!important;border-color:#95d9b8!important}
.cg-results .cg-frames {display:flex;flex-wrap:wrap;gap:12px;margin:16px 0}
.cg-results .cg-frames figure {max-width:160px;flex:1;min-width:90px;margin:0}
.cg-results .cg-frames svg {width:100%}
@media(max-width:700px){
 .cg-results .cg-result-hero {padding:65px 8px 36px;min-height:calc(100dvh - 130px)}
 .cg-results .cg-breadcrumb {font-size:11px;gap:8px}
 .cg-results .cg-metric {flex-basis:100px;padding:0 12px;margin-bottom:18px}
 .cg-results .cg-value strong {font-size:40px}
 .cg-results .cg-value small {font-size:16px}
 .cg-results .cg-metric-label {font-size:12px}
 .cg-results .cg-signup {padding:24px 18px}
 .cg-results .cg-signup h3 {font-size:24px}
 .cg-results .cg-review-card {padding:16px 12px}
 .cg-results .cg-gate {padding:20px 10px}
 .cg-results .cg-choices,.cg-results .cg-answer-details {grid-template-columns:1fr}
 .cg-results .cg-metric-info p {position:fixed;top:30%;right:24px;left:24px;width:auto}
}

/* Match each preview control to its game title; selection remains a separate radio button. */
.cognitive-page .eq-game-option .eq-battery-card {padding-right:20px}
.cognitive-page .eq-game-option .eq-battery-card>strong {visibility:hidden;padding-right:28px}
.cognitive-page .eq-game-heading {position:absolute;inset:20px 20px auto;display:flex;align-items:center;gap:8px;pointer-events:none;color:#202b40;font-size:16px;font-weight:700;line-height:1.5}
.cognitive-page #zapn-root .eq-game-heading {top:15px}
.cognitive-page .eq-game-heading .eq-game-info {position:static;flex:0 0 20px;pointer-events:auto}
@media(max-width:700px){.cognitive-page .eq-game-heading{inset:14px 14px auto}.cognitive-page #zapn-root .eq-game-heading{top:15px}}
@media(max-width:380px){.cognitive-page #zapn-root .eq-game-heading{top:14px}}

/* Compact results and clearly marked premium choices. */
.cg-results .cg-result-hero .cg-assessment-pill {display:table;margin:0 auto 18px;padding:7px 14px;border:1px solid #cbd5ff;border-radius:999px;background:#eef2ff;color:#4263ff;font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.cg-results .cg-metrics {width:min(100%,640px)}
.cg-results .cg-metric {padding-inline:16px}
.cognitive-page .eq-game-option .eq-battery-card[data-locked=true] {background:#eef0f4;border-color:#dce1e9}
.cognitive-page .eq-game-option .eq-battery-card[data-locked=true][aria-checked=true] {background:#eef0f4;border-color:#4263ff}
.cg-results .cg-shape-stimulus {width:56px;height:56px;margin:24px auto;background:#4263ff}
.cg-results .cg-shape-stimulus[data-shape=circle] {border-radius:50%}
/* The page itself is the play surface; retain bounds only for the controls. */
.cognitive-page :is(#practice,#zapn-root)[data-screen=work] {max-width:none;width:100%;padding:22px clamp(16px,3vw,48px);min-height:calc(100dvh - 104px)}
.cognitive-page .battery-stage {max-width:none;min-height:calc(100dvh - 150px);gap:12px}
.cognitive-page :is(.battery-game-root,.playfield,.mas-game-mount) {max-width:none;flex:1;width:100%;min-height:clamp(320px,48vh,640px);border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;padding:20px 0;margin:0 auto}
.cognitive-page .battery-play-caption {display:none}
.cognitive-page .practice-bottom-actions {margin:4px auto 0}
@media(max-width:700px){.cognitive-page :is(#practice,#zapn-root)[data-screen=work]{padding:18px 16px}.cg-results .cg-metric{padding-inline:10px}}
.cg-results .cg-choices li {flex-wrap:wrap;min-width:0}
.cg-results .cg-choices li>span,.cg-results .cg-choices li>small {min-width:0;overflow-wrap:anywhere;white-space:normal}
.cg-results .cg-value {gap:4px;align-items:flex-start}
.cg-results .cg-metric-info {position:relative;right:auto;top:auto;flex:0 0 17px}
@media(max-width:480px){.cg-results .cg-metric{flex-basis:140px}.cg-results .cg-metric+.cg-metric{border-left:0}}

/* BTO test hierarchy: count, blue progress line, one consistent timer line. */
.cognitive-page .oa-play-progress {width:min(100%,360px);margin:16px auto 0;text-align:center;flex-shrink:0}
.cognitive-page .oa-play-count {font-size:16px;line-height:1.5;color:#65718b;margin:0 0 12px!important}
.cognitive-page .oa-play-track {height:7px;width:min(310px,100%);margin:auto;border-radius:10px;background:#dfe5fb;overflow:hidden}
.cognitive-page .oa-play-track>span {display:block;width:100%;height:100%;border-radius:inherit;background:#4263ff;transform-origin:left;transition:transform 140ms ease}
.cognitive-page .oa-play-time {font-size:18px;font-weight:600;line-height:1.5;color:#334569;font-variant-numeric:tabular-nums;margin:12px 0 0!important}
.cognitive-page :is(#practice,#zapn-root)[data-screen=work] :is(.battery-top h1,.work-header h1,.mas-screen-title) {font-size:clamp(28px,2.6vw,36px);line-height:1.2}
.cognitive-page :is(#practice,#zapn-root)[data-screen=work] {gap:12px}
.cognitive-page .battery-game-root {display:flex;flex-direction:column;justify-content:center}
.cognitive-page .zapn-code-content {width:min(100%,880px);margin:auto;padding:0}
.cognitive-page .zapn-code-target {margin:0 auto 30px}
.cognitive-page .zapn-code-target strong {display:inline-block;font-size:clamp(34px,4vw,62px);line-height:1.4}
.cognitive-page :is(.zapn-code-target>span,.zapn-target>span,.zapn-rule,.phase-label,.mas-overline,.mas-game-status) {font-size:18px;line-height:1.5}
.cognitive-page .zapn-shape-name {font-size:18px;line-height:1.5;top:calc(100% + 14px)}
.cognitive-page :is(.zapn-feedback,.mas-hint,.input-note,.mas-feedback) {font-size:16px;line-height:1.6}
.cognitive-page .zapn-shape-stage {flex-shrink:0;min-height:250px}
.cognitive-page .zapn-two-buttons {width:min(100%,640px);gap:16px;margin-top:30px}
.cognitive-page .battery-game-root .zapn-choice {font-size:22px!important;min-height:72px}
.cognitive-page .zapn-code-options .zapn-choice {font-size:25px!important}
.cognitive-page :is(.zapn-trial,.zapn-feedback,.input-note,.phase-label,.mas-feedback):empty {display:none}
.cognitive-page .mas-direction .mas-game-status {display:none}
.cognitive-page .practice-bottom-actions :is([data-end-practice],[data-action=exit],[data-exit]) {background:#4263ff;border:1px solid #4263ff;color:white;box-shadow:0 5px 16px #4263ff20;font-size:16px!important;font-weight:650;min-height:48px;padding:12px 26px;border-radius:10px}
.cognitive-page .practice-bottom-actions :is([data-end-practice],[data-action=exit],[data-exit]):hover {background:#3451e8;color:white;border-color:#3451e8}
@media(max-width:600px){
 .cognitive-page .oa-play-progress {margin-top:12px}
 .cognitive-page .oa-play-time {font-size:17px}
 .cognitive-page .zapn-shape-stage {min-height:210px}
 .cognitive-page .battery-game-root .zapn-choice {font-size:18px!important;min-height:62px;padding:10px 12px}
 .cognitive-page .zapn-code-options .zapn-choice {font-size:18px!important;gap:7px;letter-spacing:0}
 .cognitive-page .zapn-code-options {gap:10px}
 .cognitive-page .zapn-code-target>span,.cognitive-page .zapn-shape-name {font-size:17px}
}
@media(prefers-reduced-motion:reduce){.cognitive-page .oa-play-track>span{transition:none}}

/* One stable stage from the first countdown frame through the final answer. */
.cognitive-page #practice[data-screen=work],.cognitive-page .battery-stage {justify-content:flex-start}
.cognitive-page .oa-play-area {position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1 0 auto;width:100%;min-height:440px;margin:0 auto}
.cognitive-page .oa-play-area :is(.battery-game-root,.playfield,.mas-game-mount) {width:100%;min-height:440px;flex:1;margin:0;padding:20px 0}
.cognitive-page .oa-play-area :is(.practice-countdown,.mas-countdown) {position:absolute;inset:0;min-height:0;height:100%;margin:0;display:grid;place-items:center;font-size:clamp(72px,8vw,104px);line-height:1;z-index:1}
.cognitive-page .oa-play-area :is(.practice-countdown,.mas-countdown)[hidden] {display:none}
.cognitive-page .oa-time-track {width:min(100%,880px);height:3px;flex:0 0 3px;overflow:hidden;border-radius:3px;background:#e3e8f7;margin:12px auto 16px}
.cognitive-page .oa-time-track>span {display:block;height:100%;width:100%;background:#4263ff;transform-origin:left;will-change:transform}
.cognitive-page .practice-bottom-actions {flex-direction:column;align-items:center;gap:8px;margin:8px auto 0}
.cognitive-page .practice-bottom-actions .practice-back-link {border:0;background:transparent;color:#65718b;box-shadow:none;font-size:14px!important;font-weight:400;min-height:32px;padding:4px 12px}
.cognitive-page .practice-bottom-actions .practice-back-link:hover {color:#4263ff;text-decoration:underline;background:transparent}
@media(max-width:700px){
 .cognitive-page .oa-play-area {min-height:471px}
 .cognitive-page .oa-play-area :is(.battery-game-root,.playfield,.mas-game-mount) {min-height:440px}
}

.cognitive-page .oa-play-area .playfield {min-height:580px}
@media(max-width:700px){.cognitive-page .oa-play-area .playfield {min-height:510px}}

/* Keep the countdown slightly above the task centre without moving the layout. */
.cognitive-page .oa-play-area :is(.practice-countdown,.mas-countdown) {transform:translateY(-40px)}
.cognitive-page .zapn-code-content>.oa-time-track {width:100%;max-width:840px;margin:18px auto 12px}
.cognitive-page .zapn-code-content>.zapn-feedback {margin-top:12px}
.cognitive-page .zapn-shape-content {width:100%;margin:auto}
.cognitive-page .zapn-shape-content .zapn-shape-stage {position:relative;display:grid;place-items:center}
.cognitive-page .zapn-fixation {color:#8793ad;font-size:32px;font-weight:400;line-height:1}
.cognitive-page .zapn-shape-content .zapn-choice:disabled {opacity:1;cursor:default}
.cognitive-page .zapn-shape-content .zapn-choice[data-selected=true] {background:white!important;border-color:#4263ff!important;box-shadow:inset 0 0 0 1px #4263ff;color:#3451e8!important}
.cognitive-page .zapn-shape-content .answer-mark {display:inline-block;min-width:1em;margin-left:8px;color:#4263ff}
@media(max-width:700px){.cognitive-page .oa-play-area :is(.practice-countdown,.mas-countdown){transform:translateY(-28px)}}

/* Selected answers retain the neutral surface; only the outline changes. */
.cognitive-page .oa-play-area button[data-selected=true] {background:white!important}

/* Large, simplified examples replace scaled-down full game screenshots. */
.eq-game-preview {padding:24px}
.eq-game-preview h3 {font-size:21px}
.eq-game-preview p {font-size:15px;line-height:1.55}
.eq-preview-example {padding:24px 16px;border:1px solid #e1e6f4;border-radius:12px;background:#fafbff;text-align:center}
.eq-preview-stimulus {font-size:clamp(26px,4vw,38px);font-weight:600;line-height:1.4;color:#4263ff;margin-bottom:22px;overflow-wrap:anywhere}
.eq-preview-options {display:flex;flex-wrap:wrap;justify-content:center;gap:10px}
.eq-preview-options>span {flex:1 1 38%;padding:12px 10px;border:1px solid #cbd5f5;border-radius:9px;background:white;font-size:19px;line-height:1.4;color:#202b40}
@media(max-width:600px){.eq-game-preview {padding:16px}.eq-preview-example {padding:18px 10px}.eq-preview-options>span {font-size:17px}}

.eq-preview-example:is([data-example=shape_reaction],[data-example=figure_deduction],[data-example=balloon_risk]) .eq-preview-stimulus {font-size:88px;line-height:1.2}
.eq-preview-example:is([data-example=direction],[data-example=synchronize]) .eq-preview-stimulus {font-size:38px;letter-spacing:3px}

/* Keep metric groups centred even when values have different units. */
.cg-results .cg-metrics {align-items:stretch}
.cg-results .cg-metric {text-align:center}
.cg-results .cg-value {padding:0 21px;gap:0}
.cg-results .cg-metric-info {position:absolute;right:0;top:0}
.cg-results .cg-value small {font-size:clamp(16px,1.5vw,23px)}

/* At most three summary metrics, with room for timing values and help controls. */
.cg-results .cg-metrics{width:min(100%,780px);flex-wrap:nowrap}
.cg-results .cg-metric{flex:1 1 0;padding-inline:18px;box-sizing:border-box}
.cg-results .cg-value{padding-inline:21px}
.cg-results .cg-value strong{font-size:clamp(36px,4vw,58px)}
@media(max-width:650px){
 .cg-results .cg-metrics{flex-direction:column;gap:22px;max-width:360px}
 .cg-results .cg-metric{flex-basis:auto;margin:0;padding:0 16px}
 .cg-results .cg-metric+.cg-metric{border-left:0}
 .cg-results .cg-metric-label{min-height:0;margin-bottom:8px}
 .cg-results .cg-value strong{font-size:46px}
}

/* Toasts are portalled to body so transitions cannot change their fixed position. */
.eq-game-notices{position:fixed;z-index:10050;top:calc(env(safe-area-inset-top,0px) + 16px);left:50%;transform:translateX(-50%);width:min(560px,calc(100% - 32px));display:flex;flex-direction:column;gap:10px;pointer-events:none;font-family:inherit}
.eq-game-toast{display:flex;align-items:flex-start;gap:14px;padding:14px 16px;border:1px solid #dce3ef;border-radius:14px;background:#fff;color:#202b40;box-shadow:0 6px 28px #14284624;pointer-events:auto}
.eq-game-toast[hidden]{display:none}
.eq-game-toast-content{flex:1;min-width:0;font-size:14px;line-height:1.5;margin:0;overflow-wrap:anywhere}
.eq-game-toast-close{flex:none;border:0;background:transparent;color:#637189;font:24px/1 sans-serif;padding:0 4px;cursor:pointer}
.eq-game-toast button:focus-visible{outline:2px solid #4263ff;outline-offset:3px}
.eq-game-toast-content button{margin-left:8px;border:0;background:transparent;color:#4263ff;text-decoration:underline;cursor:pointer;font:inherit}

/* The stimulus changes sides; the stage and controls never move. */
.cognitive-page .zapn-shape-stage {position:relative}
.cognitive-page .zapn-shape-content .zapn-shape-stage {width:min(100%,860px);margin-inline:auto}
.cognitive-page .zapn-shape-stage .zapn-shape[data-position] {position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:none}
.cognitive-page .zapn-shape-stage .zapn-shape[data-position=left] {left:25%}
.cognitive-page .zapn-shape-stage .zapn-shape[data-position=right] {left:75%}
@media(max-width:600px){.cognitive-page .zapn-shape-stage .zapn-shape[data-position]{width:min(100px,28vw);height:min(100px,28vw)}}
