#view-mindsprint { --ms-mint: #68e6c9; --ms-purple: #b49bff; max-width: 100%; }
#view-mindsprint button { touch-action: manipulation; }
#view-mindsprint .btn:disabled { cursor: not-allowed; opacity: .5; }
.ms-heading { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.ms-eyebrow { color: var(--ms-mint); font-size: 11px; letter-spacing: .09em; font-weight: 700; }
.ms-heading .page-title { margin-top: 8px; font-size: clamp(27px, 5vw, 42px); letter-spacing: -.04em; }
.ms-heading .page-sub { line-height: 1.7; }
.ms-muted { color: var(--muted); line-height: 1.75; }
.ms-pill { display: inline-block; border: 1px solid #68e6c940; background: #39766522; color: var(--ms-mint); border-radius: 99px; font-size: 11px; font-weight: 700; padding: 7px 11px; letter-spacing: .04em; }
.ms-hero { padding: 35px; border: 1px solid #42577b; border-radius: 24px; background: radial-gradient(ellipse at 85% 15%, #6957bd38, transparent 55%), linear-gradient(140deg, #1e3049, #152138); }
.ms-hero h2 { font-size: clamp(25px, 4vw, 37px); line-height: 1.4; margin: 19px 0 13px; letter-spacing: -.04em; }
.ms-hero > p { max-width: 760px; color: #b8c7dd; line-height: 1.9; font-size: 14px; }
.ms-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 28px; }
.ms-blocks > div { padding: 20px 16px; border: 1px solid #415677; border-radius: 16px; background: #10203788; }
.ms-block-icon { display: block; font-size: 30px; color: var(--ms-mint); margin-bottom: 12px; }
.ms-blocks > div:nth-child(2) .ms-block-icon { color: var(--ms-purple); }
.ms-blocks > div:nth-child(3) .ms-block-icon { color: #ffd69b; }
.ms-blocks h3 { font-size: 16px; margin-bottom: 10px; }
.ms-blocks span { color: #9eb1ce; font-size: 11px; line-height: 1.7; }
.ms-card { padding: 25px; border: 1px solid #354b6e; border-radius: 20px; background: #182740cc; margin: 22px 0; }
.ms-card h2 { font-size: 21px; line-height: 1.6; margin-bottom: 10px; }
.ms-card > p { font-size: 13px; margin-bottom: 20px; }
.ms-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ms-actions .btn { min-height: 46px; }
.ms-join { display: flex; gap: 8px; min-width: 0; }
.ms-join input { width: 150px; min-width: 0; background: #0f1c30; border: 1px solid #4a5f84; border-radius: 10px; padding: 13px; color: white; text-transform: uppercase; }
.ms-resume { margin-top: 15px; }
.ms-practice { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }
.ms-phone-note { color: #a1b4ce; text-align: center; font-size: 12px; line-height: 1.8; }
.ms-research { border-top: 1px solid #344866; margin-top: 30px; padding-top: 21px; color: #9fb0c9; font-size: 12px; line-height: 1.85; }
.ms-research summary { color: #cad7eb; cursor: pointer; font-weight: 600; }
.ms-research p { margin-top: 14px; }
.ms-research a { display: block; margin-top: 12px; color: var(--ms-mint); }
.ms-playing .ms-heading .page-title { font-size: 24px; margin-top: 4px; }
.ms-playing .ms-eyebrow { display: none; }
.ms-playing .ms-heading .page-sub { margin-bottom: 13px; font-size: 11px; }
.ms-playing .ms-heading > .btn { font-size: 11px; padding: 9px 11px; }
.ms-players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.ms-player { min-width: 0; display: grid; gap: 5px; padding: 12px 15px; border: 1px solid #455a7c; background: #1b2d46; border-radius: 13px; }
.ms-player.is-you { border-color: #4ea78e; background: #1c3c41; }
.ms-player-name { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-player-detail { font-size: 11px; color: #b6c8de; }
.ms-track { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; max-width: 550px; margin: 18px auto; }
.ms-dot { height: 6px; border-radius: 4px; background: #324c63; }
.ms-dot.ms-block-1 { background: #554779; }
.ms-dot.ms-block-2 { background: #6b5744; }
.ms-dot.is-current { outline: 2px solid #dae9ff; outline-offset: 2px; }
.ms-dot.is-correct { background: #68e6c9; }
.ms-dot.is-wrong { background: #d78d98; }
.ms-round-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; max-width: 550px; margin: 18px auto 17px; }
.ms-round-heading h2 { font-size: 20px; line-height: 1.5; }
.ms-round-kind { display: block; color: #9fb2d1; font-size: 10px; margin-bottom: 5px; }
.ms-clock { flex-shrink: 0; display: grid; place-items: center; width: 60px; height: 60px; font-variant-numeric: tabular-nums; color: #adf2df; font-size: 23px; background: #34776722; border: 1px solid #60bba050; border-radius: 16px; }
.ms-clock.is-low { color: #ffbca0; border-color: #b87d62; }
.ms-task { max-width: 550px; margin-inline: auto; }
.ms-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; width: min(100%, 350px); margin: 0 auto; }
.ms-cell.btn { display: grid; place-items: center; aspect-ratio: 1; padding: 0; min-height: 48px; border: 1px solid #4c6386; border-radius: 13px; background: #1c2f4a; color: #dcfff7; font-size: 26px; font-weight: 800; touch-action: manipulation; }
#view-mindsprint .ms-cell:disabled { opacity: 1; }
.ms-cell.btn.is-preview { background: #86f0cf; border-color: #d4fff0; box-shadow: inset 0 0 0 5px #ffffff22, 0 0 18px #71e4c522; }
.ms-cell.btn.is-selected { background: #5c4b91; border: 2px solid #c5afff; }
.ms-cell.btn.is-solution { background: #28735e; border: 2px solid #7bf2c7; }
.ms-cell.btn.is-missed { background: #693947; border: 2px solid #f3a4b2; }
.ms-cell.btn:focus-visible, .ms-choice:focus-visible { outline: 3px solid #ffcf85; outline-offset: 3px; }
.ms-selection { color: #b4c6dd; text-align: center; font-size: 11px; line-height: 1.6; margin: 12px 0 10px; min-height: 18px; }
.ms-lock { display: block; width: min(100%, 350px); min-height: 45px; margin-inline: auto; font-size: 13px; }
.ms-task-status { color: #b5daca; text-align: center; font-size: 11px; min-height: 17px; line-height: 1.6; margin-top: 10px; }
.ms-task-status:empty { display: none; }
.ms-rule { text-align: center; padding: 15px 12px; border-radius: 14px; font-size: 17px; font-weight: 800; line-height: 1.6; }
.ms-rule-parity { background: #55427b55; border: 1px solid #a78cde80; color: #e3d6ff; }
.ms-rule-magnitude { background: #2c6f6155; border: 1px solid #72c9ad80; color: #cbf8e9; }
.ms-digit { display: block; text-align: center; font-size: 108px; line-height: 1.2; padding: 20px 0 26px; color: #f6f8ff; }
.ms-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ms-choice.btn { min-height: 85px; padding: 16px 9px; display: grid; place-content: center; gap: 8px; font-size: 18px; background: #243d5a; border: 1px solid #5b779b; border-radius: 17px; }
.ms-choice.btn strong { font-size: 40px; line-height: 1; }
.ms-choice.btn.is-selected { border: 2px solid #c0a5ff; background: #4b3d72; }
.ms-choice.btn.is-correct { border: 2px solid #71e3bd; background: #285e52; }
#view-mindsprint .ms-choice:disabled { opacity: .75; }
.ms-key-hint { color: #8da0bc; text-align: center; font-size: 10px; line-height: 1.7; margin-top: 13px; }
.ms-arrows { display: flex; justify-content: center; gap: 7px; padding: 36px 0 25px; }
.ms-arrow { flex: 0 1 auto; display: grid; place-items: center; min-width: 40px; height: 76px; font: 700 50px/1 sans-serif; color: #a1b5cd; }
.ms-target-arrow { border: 2px solid #b9a0fa; border-radius: 13px; background: #66509544; color: #f1eaff; padding: 0 9px; }
.ms-focus-hint { text-align: center; color: #c5b3ee; font-size: 12px; margin-bottom: 25px; }
.ms-feedback { display: grid; gap: 6px; max-width: 550px; text-align: center; border-radius: 14px; padding: 15px; margin: 16px auto; border: 1px solid #465d79; background: #20334a; }
.ms-feedback.is-correct { border-color: #61b995; color: #a2f0cf; background: #20473e; }
.ms-feedback.is-wrong { border-color: #ac7a87; color: #edc3cc; background: #422c3e; }
.ms-feedback strong { font-size: 19px; }
.ms-feedback span { font-size: 12px; }
.ms-leave { display: block; margin: 18px auto 0; font-size: 11px; }
.ms-connection { text-align: center; color: #ffd2a0; font-size: 11px; line-height: 1.7; margin: 12px auto; }
.ms-connection:empty { display: none; }
.ms-waiting, .ms-ready-card, .ms-countdown { text-align: center; padding: 38px 22px; }
.ms-waiting .spinner { margin: 0 auto 22px; }
.ms-room-code { display: block; font: 800 41px monospace; letter-spacing: .18em; color: var(--ms-mint); margin: 22px 0; }
.ms-waiting .btn, .ms-ready-card .btn { margin-top: 16px; }
.ms-countdown h2 { font-size: 28px; margin: 22px 0; }
.ms-countdown .ms-clock { width: 100px; height: 100px; font-size: 48px; margin: 20px auto; }
.ms-tutorial-title { font-size: 21px; margin: 19px 0 9px; }
.ms-tutorial-copy { font-size: 13px; color: #bed0e5; line-height: 1.85; margin-bottom: 23px; max-width: 700px; }
.ms-tutorial-hide, .ms-tutorial-next { display: block; margin: 18px auto; }
.ms-solo-pause { max-width: 550px; text-align: center; background: #2d294e; border: 1px solid #8f7bc0; border-radius: 14px; padding: 18px; margin: 18px auto; }
.ms-solo-pause p { margin-bottom: 12px; font-size: 13px; }
.ms-final { text-align: center; padding-top: 20px; }
.ms-final h2 { font-size: clamp(23px, 4vw, 34px); margin-top: 18px; line-height: 1.6; }
.ms-final-score { display: block; font-size: clamp(30px, 5vw, 49px); color: #a0f0d6; margin-top: 20px; letter-spacing: -.04em; }
.ms-opponent-score { margin: 10px 0; color: #c4b6e8; font-size: 15px; }
.ms-result-count { margin: 14px 0 23px; font-size: 15px; }
.ms-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 24px; }
.ms-metric { padding: 23px 16px; border: 1px solid #42617a; border-radius: 18px; background: #1b3046; display: grid; gap: 10px; }
.ms-metric h3 { font-size: 14px; }
.ms-metric > strong { font-size: 33px; color: #a0f0d6; }
.ms-metric span { font-size: 12px; color: #bdcfe3; }
.ms-metric small { font-size: 10px; color: #9fb4d0; line-height: 1.8; }
.ms-metric-switch { border-color: #7b649a; }
.ms-metric-focus { border-color: #9a8264; }
.ms-other-metric { border-top: 1px solid #45516c; padding-top: 10px; }
.ms-result-note { max-width: 700px; margin: 22px auto; color: #a0b2cb; font-size: 11px; line-height: 1.85; }
.ms-final .ms-actions { justify-content: center; }
.ms-exit-confirm { position: sticky; top: 72px; z-index: 60; border: 1px solid #b39170; border-radius: 15px; padding: 17px; background: #342c43; box-shadow: 0 10px 40px #0007; margin-bottom: 16px; }
.ms-exit-confirm p { font-size: 13px; line-height: 1.7; margin-bottom: 12px; }
.ms-exit-confirm .btn { margin: 5px 9px 0 0; }
.ms-home-card { border-color: #65a593 !important; background: radial-gradient(ellipse at 90% 20%, #9d79f533, transparent 65%), linear-gradient(150deg, #213c48, #1c2944) !important; }
.ms-pvp-entry { border-color: #65a593 !important; }
@media (max-width: 650px) {
  .ms-heading { gap: 8px; }
  .ms-heading > .btn { font-size: 10px; padding: 9px; white-space: nowrap; }
  .ms-heading .page-sub { font-size: 12px; margin-bottom: 20px; }
  .ms-hero { padding: 23px 18px; border-radius: 19px; }
  .ms-hero > p { font-size: 12px; }
  .ms-blocks { gap: 8px; margin-top: 20px; }
  .ms-blocks > div { padding: 15px 9px; border-radius: 12px; }
  .ms-blocks h3 { font-size: 11px; margin-bottom: 7px; }
  .ms-blocks span { font-size: 9px; }
  .ms-block-icon { font-size: 25px; }
  .ms-card { padding: 21px 16px; }
  .ms-card h2 { font-size: 19px; }
  .ms-card > p { font-size: 12px; }
  .ms-lobby .ms-actions > .btn { flex: 1; padding: 12px 9px; font-size: 12px; }
  .ms-join { width: 100%; }
  .ms-join input { flex: 1; }
  .ms-practice .btn { width: 100%; font-size: 12px; }
  .ms-playing .ms-heading .page-title { font-size: 21px; }
  .ms-playing .ms-heading .page-sub { font-size: 10px; margin-bottom: 10px; }
  .ms-player { padding: 10px 11px; }
  .ms-player-name { font-size: 11px; }
  .ms-player-detail { font-size: 10px; }
  .ms-track { gap: 4px; margin: 13px auto; }
  .ms-dot { height: 5px; }
  .ms-round-heading { margin: 14px auto; gap: 9px; }
  .ms-round-heading h2 { font-size: 16px; }
  .ms-clock { width: 45px; height: 45px; font-size: 19px; border-radius: 12px; }
  .ms-grid { width: min(100%, 300px); gap: 7px; }
  .ms-cell.btn { border-radius: 11px; }
  .ms-selection { margin: 9px 0; font-size: 10px; }
  .ms-lock { min-height: 44px; font-size: 12px; }
  .ms-rule { padding: 12px 9px; font-size: 15px; }
  .ms-digit { font-size: 85px; padding: 18px 0; }
  .ms-choice.btn { min-height: 80px; font-size: 15px; padding: 13px 7px; }
  .ms-choices { gap: 10px; }
  .ms-arrows { gap: 3px; padding: 30px 0 20px; }
  .ms-arrow { min-width: 26px; height: 60px; font-size: 34px; }
  .ms-target-arrow { padding: 0 5px; border-radius: 10px; }
  .ms-focus-hint { font-size: 11px; margin-bottom: 20px; }
  .ms-key-hint { font-size: 9px; }
  .ms-metrics { grid-template-columns: 1fr; gap: 11px; }
  .ms-metric { padding: 18px; }
  .ms-metric > strong { font-size: 28px; }
  .ms-tutorial-copy { font-size: 12px; }
}
@media (max-width: 359px) { .ms-grid { width: 260px; } .ms-arrow { min-width: 23px; font-size: 30px; } .ms-blocks { grid-template-columns: 1fr; } .ms-blocks > div { display: grid; grid-template-columns: 28px 1fr; gap: 6px 10px; } .ms-block-icon { grid-row: 1/3; margin: 0; } .ms-blocks h3 { margin: 0; } }
@media (prefers-reduced-motion: reduce) { #view-mindsprint * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Sustained challenge interface. Stimuli are DOM-cleared at expiry, not CSS-hidden. */
#view-mindsprint .btn { min-height: 44px; }
.ms-difficulty { margin: 26px 0; }
.ms-difficulty h2 { font-size: 18px; margin-bottom: 12px; }
.ms-difficulty p { font-size: 12px; max-width: 760px; }
.ms-levels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ms-level.btn { min-height: 44px; font-size: 12px; border: 1px solid #536783; }
.ms-level.is-selected { background: #315a58; border-color: #8ff1d0; color: #d6fff1; }
.ms-dot.is-complete { background: #76d9bd; }
.ms-nback-board { width: min(100%, 350px); aspect-ratio: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0 auto 18px; padding: 8px; border-radius: 18px; border: 1px solid #496784; background: #101b2b; }
.ms-nback-cell { display: grid; place-items: center; min-width: 0; min-height: 0; border: 1px solid #344861; border-radius: 10px; background: #1b2b41; }
.ms-nback-cell.is-stimulus { background: #eaf2e9; border-color: #fff; }
.ms-nback-center { display: grid; place-items: center; text-align: center; font-size: 13px; line-height: 1.6; padding: 5px; color: #b7a0ed; }
.ms-pattern { width: 78%; aspect-ratio: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); gap: 1px; padding: 4px; background: #eaf2e9; border-radius: 3px; }
.ms-pattern i { display: block; background: #eaf2e9; }
.ms-pattern i.is-ink { background: #172f2a; }
.ms-choices { gap: 9px; }
.ms-choice.btn { min-height: 64px; font-size: 14px; grid-template-columns: 22px minmax(0, 1fr); align-items: center; text-align: left; padding: 12px 10px; }
.ms-choice-key { border: 1px solid #7590ad; border-radius: 5px; padding: 3px; font: 600 12px/1.2 monospace; text-align: center; color: #b4cce2; }
.ms-tracking-board { width: 100%; max-width: 550px; aspect-ratio: 1; position: relative; margin: 0 auto; border: 1px solid #536a83; border-radius: 18px; background: radial-gradient(ellipse at center, #20344e, #111d31); overflow: hidden; }
.ms-ball.btn { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0; margin: 0; border-radius: 50%; transform: translate(-50%, -50%); background: transparent; color: #fff; border: 0; font-size: 16px; font-weight: 800; transition: none; }
.ms-ball::before { content: ''; position: absolute; z-index: -1; inset: 6px; border-radius: 50%; border: 1px solid #e0e8ee; background: #b9c8d4; }
#view-mindsprint .ms-ball:disabled { opacity: 1; cursor: default; }
.ms-ball.is-target::before { background: #6ae7c8; border-color: #d2fff2; box-shadow: 0 0 0 3px #70e8c73b; }
.ms-ball.is-selected::before { background: #7e63be; border: 2px solid #e2d5ff; }
.ms-ball:focus-visible { outline: 2px solid #ffdf9e; outline-offset: -3px; }
.ms-task-tracking { max-width: 550px; }
.ms-task-tracking .ms-lock { width: 100%; }
.ms-block-result { text-align: center; display: grid; justify-items: center; gap: 15px; padding: 30px 10px; }
.ms-block-result h2 { font-size: 24px; }
.ms-block-points { font-size: 40px; color: #a8f2d8; }
.ms-block-result p { font-size: 13px; line-height: 1.8; }
.ms-block-result small { color: #aec4dc; font-size: 11px; line-height: 1.7; }
.ms-example-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 550px; margin: 22px auto; }
.ms-example { display: grid; justify-items: center; gap: 12px; padding: 14px 8px; border: 1px solid #52678b; border-radius: 13px; background: #1d2e48; }
.ms-example .ms-pattern { width: min(100%, 95px); }
.ms-example > span:first-child { font-size: 12px; color: #c1b2ef; }
.ms-example small { text-align: center; font-size: 10px; line-height: 1.6; color: #c8d6e6; }
.ms-example-explanation { max-width: 550px; line-height: 1.85; font-size: 13px; color: #b4d6ca; margin: 20px auto; }
.ms-records { margin-top: 25px; border: 1px solid #405776; border-radius: 14px; padding: 18px; }
.ms-records summary { cursor: pointer; font-size: 13px; font-weight: 700; }
.ms-records > p { font-size: 11px; margin: 12px 0; }
.ms-record-row { display: grid; gap: 7px; padding: 12px 0; border-top: 1px solid #344865; font-size: 12px; }
.ms-record-row span, .ms-record-row small { color: #acbed3; font-size: 11px; }
@media (max-width: 650px) {
  .ms-nback-board { width: min(100%, 285px); gap: 5px; padding: 6px; margin-bottom: 12px; }
  .ms-nback-center { font-size: 11px; }
  .ms-round-heading { margin-top: 10px; margin-bottom: 10px; }
  .ms-round-heading h2 { font-size: 14px; }
  .ms-choice.btn { min-height: 58px; font-size: 12px; padding: 9px 7px; gap: 5px; }
  .ms-key-hint { font-size: 9px; margin-top: 8px; }
  .ms-level.btn { font-size: 11px; padding: 9px 10px; }
  .ms-hero { padding: 21px 16px; }
  .ms-blocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ms-example-strip { gap: 6px; }
  .ms-example { padding: 12px 5px; }
  .ms-example-explanation { font-size: 12px; }
  .ms-tracking-board { border-radius: 13px; }
  .ms-players { gap: 6px; }
  .ms-player { padding: 8px; }
}
@media (max-width: 359px) { .ms-blocks { grid-template-columns: 1fr; } .ms-nback-board { width: 260px; } .ms-choice.btn { font-size: 11px; } .ms-choice-key { font-size: 10px; } }
