/* Stable application chrome. Motion stays inside game content. */
html{overscroll-behavior:none;scroll-behavior:auto;scrollbar-gutter:stable}body{overscroll-behavior:none}button,a,input,select{-webkit-tap-highlight-color:transparent}button{transition:background-color .12s,border-color .12s,color .12s}button:active{transform:none!important}button:focus:not(:focus-visible){outline:none}button:focus-visible,a:focus-visible{outline-offset:2px}.pill,.stat,.clock,.countdown{font-variant-numeric:tabular-nums}.pill.score.bump,.pulse,.counter-hit{animation:none!important;transform:none!important}.tile.flash{transform:none!important}.brain .flow,.neuro-brain-dock .flow,.bl-flow,.bl-playing .bl-flow{animation-duration:18s!important;opacity:.38}.brain .ring,.nb-live i,.live i,.bl-halo,.bl-playing .bl-halo,.neuro-brain-dock .nb-on,.brain-art .node{animation:none!important}.brain-art .circuit{animation-duration:20s}.impact-shake{transform:none!important;animation:contained-error 1s ease-out!important}@keyframes contained-error{0%,35%{box-shadow:inset 0 0 0 2px #ff5269,0 0 18px #ff526933}100%{box-shadow:none}}
/* Daily programme */
.program-header{height:72px;min-height:72px;padding:12px 24px;flex:none}.programme-run{height:calc(100dvh - 72px);padding:12px 20px 8px;gap:10px;overflow:hidden}.run-bar{height:58px;min-height:58px;flex-wrap:nowrap}.run-title{flex:1;min-width:0;font-size:11px;line-height:1.6}.run-title b{font-size:14px}.run-bar .clock{min-width:64px;text-align:center}.run-bar .actions{flex-wrap:nowrap}.run-layout{grid-template-columns:minmax(0,1fr) 310px;gap:16px}.run-stage,.brain-live{border-radius:12px}.run-stage{overflow:hidden}.run-cover{overflow:auto;align-items:safe center;overscroll-behavior:contain}.run-cover>div{padding:12px 0}.run-hint{height:16px;min-height:16px;margin:0;font-size:9px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bl-head h2{font-size:18px}.bl-note{font-size:9px;line-height:1.4}.bl-sound{min-width:48px;min-height:38px}.brain-live{background:#0b1114}.bl-figure svg{height:160px}.bl-skills ul{grid-template-columns:1fr 1fr;gap:12px 10px}.bl-skills strong{font-size:11px;line-height:1.45}.bl-skills small{display:none}.bl-skill-title{font-size:10px;margin-bottom:10px}.bl-skills{min-height:105px}.bl-legend{font-size:8px}.bl-performance{margin-top:8px;padding-top:8px}.bl-chart{height:48px}.bl-note{margin:8px 0 0}.clock{font-size:24px}.run-title #phase-title{display:inline-block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}
/* Free-practice screens use the same dimensions before, during and after play. */
body:has(.neuro-frame) main,body.playing:has(.neuro-frame) main{height:100dvh;padding:14px 20px 8px;overflow:hidden}body:has(.neuro-frame) .head,body.playing:has(.neuro-frame) .head{display:flex;min-height:62px;height:62px;padding:0 0 12px;margin:0 0 12px}body:has(.neuro-frame) .foot,body.playing:has(.neuro-frame) .foot{display:block;height:22px;min-height:22px;padding:4px;font-size:10px}.neuro-frame,body.playing .neuro-frame{grid-template-columns:minmax(0,1fr) 310px;gap:20px;overflow:hidden}.neuro-brain-dock,body.playing .neuro-brain-dock{border:1px solid #2c383d;border-radius:12px;padding:14px;overflow:auto;background:#0b1114}.neuro-brain-dock .brain,body.playing .neuro-brain-dock .brain{height:165px}.nb-heading h2{font-size:19px}.nb-details ul{grid-template-columns:1fr 1fr;gap:12px 8px}.nb-details li strong{font-size:11px}.nb-details li small{font-size:10px}.shell,body.playing .shell{border:1px solid #2c383d;border-radius:12px;overflow:auto}.shell>.section,body.playing .shell>.section{padding:14px}.hud,body.playing .hud{min-height:52px;align-content:center}.hud .heading{font-size:19px}.hud .pill{font-size:11px;min-height:32px}.hud #score{min-width:76px;text-align:center}.hud #clock{min-width:106px;text-align:center}.note,body.playing .note{height:40px;min-height:40px;padding:8px 10px;margin:6px 0;font-size:12px;line-height:20px;overflow:auto}.sub,body.playing .sub{min-height:36px;margin:4px 0;font-size:12px;line-height:18px}.timebar,body.playing .timebar{height:4px;min-height:4px;margin:8px 0}.journey-lobby{padding:14px 8px}.journey-lobby h1{font-size:42px}.journey-list{gap:10px}.journey-step{padding:13px}.journey-title b{font-size:19px}.journey-title small{font-size:12px}.journey-number{width:32px;height:32px}.journey-lobby .session-actions{gap:8px}.journey-lobby .session-actions .btn{font-size:12px;min-height:44px;padding:10px 12px}.nb-heading p{margin-bottom:12px}.nb-research{font-size:10px}.fsbtn,.exit-game{min-height:40px}
/* Stay on Track */
body:has(#track){height:100dvh;overflow:hidden}body:has(#track)>header{height:72px;min-height:72px;padding:12px 24px}.layout{height:calc(100dvh - 72px);padding:16px 20px 10px;gap:20px;grid-template-columns:minmax(0,1fr) 310px;overflow:hidden}.companion{background:#0b1114;border:1px solid #2c383d;border-radius:12px;padding:14px;overscroll-behavior:contain}.companion .brain{height:165px}.companion .benefits{grid-template-columns:1fr 1fr;gap:12px 8px}.companion .benefits li{font-size:10px}.companion .benefits strong{font-size:11px}.companion h2{font-size:18px}.status{height:42px;min-height:42px;margin:8px 0;font-size:12px;overflow:auto}.title h1{font-size:28px}.stat{min-width:80px;min-height:34px;font-size:11px}.board{border-radius:12px;min-height:120px}.overlay{align-items:safe center;overscroll-behavior:contain}.overlay-content{padding:12px 0}.overlay h2{font-size:30px}.overlay .rules{margin:14px 0}.overlay p{font-size:13px}.neuro-sound-toggle{min-height:36px!important;min-width:48px}.bl-head .bl-status{font-size:9px;letter-spacing:1px}
@media(min-height:950px) and (min-width:901px){.bl-skills small{display:block;font-size:10px}.bl-figure svg{height:200px}}
@media(max-width:1000px) and (min-width:651px){.run-layout,.neuro-frame,body.playing .neuro-frame,.layout{grid-template-columns:minmax(0,1fr) 255px;gap:12px}.brain-live,.neuro-brain-dock,body.playing .neuro-brain-dock,.companion{padding:12px}.bl-figure svg,.neuro-brain-dock .brain,body.playing .neuro-brain-dock .brain,.companion .brain{height:145px}.bl-skills strong{font-size:10px}.nb-details li small,.companion .benefits li{font-size:9px}}
@media(max-width:650px){
 html{scrollbar-gutter:auto}.program-header{height:58px;min-height:58px;padding:8px 12px}.program-header .brand{font-size:15px;gap:7px}.program-header .brand img{height:29px}.program-header .brand small{font-size:8px;letter-spacing:1.5px}.program-header nav a{font-size:11px;min-height:40px;display:flex;align-items:center}.programme-run{height:calc(100dvh - 58px);padding:8px;gap:8px}.run-bar{height:72px;min-height:72px;display:grid;grid-template-columns:minmax(0,1fr) 55px;grid-template-rows:29px 36px;gap:4px 8px}.run-title{font-size:10px;line-height:1.35;grid-column:1;grid-row:1;white-space:nowrap;overflow:hidden}.run-title b{font-size:12px}.run-bar .clock{grid-column:2;grid-row:1;font-size:21px;min-width:0}.run-bar .actions{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:1fr 1fr;gap:8px}.run-bar .btn{height:36px;min-height:36px;font-size:11px;padding:7px 10px}.run-layout{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 154px;gap:8px}.run-hint{height:12px;min-height:12px;font-size:8px;line-height:12px}.brain-live{height:154px;display:grid;grid-template-columns:116px minmax(0,1fr);grid-template-rows:30px 63px 43px;padding:8px;gap:0 10px;border-radius:10px}.bl-head{grid-column:1/-1;grid-row:1;align-items:center}.bl-head>div{display:flex;align-items:center;gap:8px;min-width:0}.bl-head h2{font-size:12px;margin:0}.bl-head .bl-status{font-size:7px;letter-spacing:.5px}.bl-sound{min-height:30px;height:30px;font-size:10px;min-width:44px}.bl-figure{grid-column:1;grid-row:2/4;align-self:center}.bl-figure svg{height:104px}.bl-legend,.bl-note{display:none}.bl-skills{grid-column:2;grid-row:2;min-height:0;overflow:auto}.bl-skill-title{display:none}.bl-skills ul{grid-template-columns:1fr 1fr;gap:4px 7px}.bl-skills strong{font-size:8px;line-height:1.4}.bl-skills small{display:none}.bl-performance{grid-column:2;grid-row:3;margin:0;padding:2px 0 0;border:0}.bl-performance b{font-size:8px}.bl-performance b span{font-size:11px}.bl-chart{height:28px}.bl-performance>small{display:none}.run-cover{padding:16px}.run-cover h1,.run-cover h2{font-size:25px;margin:8px 0}.run-cover p{font-size:12px;margin:9px 0}.run-cover .countdown{font-size:30px;margin:8px 0}.round-list{gap:5px;margin:10px 0}.round-list li{font-size:9px;padding:5px 7px}.review-buttons{gap:6px;flex-wrap:wrap;margin:12px 0}.review-buttons .btn{min-height:40px}.pause-shade{padding:16px}.pause-shade .btn{min-height:44px}
 body:has(.neuro-frame) main,body.playing:has(.neuro-frame) main{padding:8px;height:100dvh}.head,body.playing .head{min-height:52px!important;height:52px!important;padding:0 0 8px!important;margin:0 0 8px!important}.olbrand{gap:7px}.olbrand img{height:28px}.olbrand b{font-size:14px}.olbrand small{font-size:7px}.progress{font-size:10px}.head .fsbtn{font-size:10px;min-height:36px;margin-left:6px;padding:5px 8px}.steps{display:none}.neuro-frame,body.playing .neuro-frame{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 146px;gap:8px}.neuro-brain-dock,body.playing .neuro-brain-dock{padding:8px;display:grid;grid-template-columns:105px minmax(0,1fr);grid-template-rows:24px minmax(0,1fr);gap:0 8px}.neuro-brain-dock .nb-live{grid-column:1/-1;grid-row:1;font-size:7px;letter-spacing:.8px;min-height:24px}.neuro-brain-dock .nb-map{grid-column:1;grid-row:2;align-self:center}.neuro-brain-dock .brain,body.playing .neuro-brain-dock .brain{height:95px}.nb-details,body.playing .nb-details{grid-column:2;grid-row:2;overflow:auto;min-height:0}.nb-heading h2,body.playing .nb-heading h2{font-size:12px;margin:4px 0 8px}.nb-details ul,body.playing .nb-details ul{grid-template-columns:1fr 1fr;gap:5px 7px}.nb-details li strong,body.playing .nb-details li strong{font-size:9px;line-height:1.45}.nb-details li small,.nb-heading p,.nb-heading>span,.nb-research{display:none}.shell>.section,body.playing .shell>.section{padding:10px}.hud,body.playing .hud{min-height:78px;gap:5px}.hud .heading{font-size:16px;width:100%;flex:none}.hud .pill{min-height:28px;font-size:10px;padding:4px 7px}.hud #clock{min-width:98px}.hud .fsbtn{min-height:34px;font-size:10px;padding:5px 8px}.hud #level,.hud .session-mode,.hud #fs2{display:none}.sub,body.playing .sub{height:36px;min-height:36px;overflow:auto;font-size:11px}.note,body.playing .note{height:38px;min-height:38px;line-height:17px;padding:4px 8px;font-size:10px}.stage,body.playing .stage{min-height:100px}.journey-lobby h1{font-size:29px}.journey-lobby .lobby-intro{font-size:12px;margin-bottom:18px}.journey-step{padding:10px;gap:7px}.journey-title b{font-size:16px}.journey-title small{font-size:10px}.journey-title .journey-skill{font-size:7px}.journey-number{display:none}.journey-play{min-height:44px;min-width:58px;font-size:11px}.journey-lobby .session-actions{display:grid;grid-template-columns:1fr}.journey-lobby .session-actions .btn{width:100%}.journey-lobby .lobby-foot{font-size:10px}.foot,body.playing .foot{font-size:8px!important;height:18px!important;min-height:18px!important}.answers{gap:6px}.answer{min-height:44px!important;font-size:22px}.mathlayout{grid-template-columns:1fr;grid-template-rows:52px minmax(0,1fr);gap:8px}.equation{font-size:32px;padding:0}.memorygrid{gap:8px}.tile{min-height:44px!important;border-radius:10px}.result{padding:20px 10px}.result .big{font-size:28px}.result h2{font-size:23px}
 body:has(#track)>header{height:58px;min-height:58px;padding:8px 12px}.layout{height:calc(100dvh - 58px);grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) 146px;gap:8px;padding:8px}.title h1{font-size:23px;margin:4px 0 8px}.title .eyebrow{font-size:8px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.stat{min-width:0;min-height:31px;padding:5px;font-size:9px;white-space:nowrap;text-align:center}.status{height:36px;min-height:36px;margin:6px 0;font-size:11px}.board{min-height:110px}.below{margin-top:6px;min-height:36px}.below span{font-size:9px;max-width:150px}.below .btn{min-height:36px;font-size:10px;padding:6px 10px}.companion{padding:8px;display:grid;grid-template-columns:102px minmax(0,1fr);grid-template-rows:23px minmax(0,1fr);gap:0 8px}.companion .brain{grid-column:1;grid-row:2;height:96px;align-self:center}.companion .live{grid-column:1/-1;grid-row:1;font-size:7px;min-height:23px}.companion h2,.companion .networks,.companion .research,.companion .challenge{display:none}.companion .benefits{grid-column:2;grid-row:2;display:grid;grid-template-columns:1fr 1fr;gap:5px 7px;align-content:center;overflow:auto}.companion .benefits li{font-size:0}.companion .benefits strong{font-size:9px;line-height:1.45;margin:0}.overlay{padding:12px}.overlay h2{font-size:25px;margin:6px 0 10px}.overlay p{font-size:11px}.rules{gap:6px;margin:12px 0}.rule{padding:8px;font-size:10px}.rule strong{font-size:18px}.overlay .btn{min-height:44px;padding:9px 14px;font-size:12px}.big-score{font-size:48px}.result-grid{gap:6px;margin:10px 0}.result-grid strong{font-size:20px}.result-grid span{font-size:9px}
}
/* Short landscape uses a side dock, so the board keeps useful height. */
@media(max-height:520px) and (min-width:651px){.program-header,body:has(#track)>header{height:48px;min-height:48px;padding:6px 14px}.programme-run{height:calc(100dvh - 48px);padding:6px 10px;gap:5px}.run-bar{height:40px;min-height:40px}.run-title{font-size:9px}.run-title b{font-size:11px}.run-bar .btn{min-height:32px;padding:5px 10px}.run-layout{grid-template-columns:minmax(0,1fr) 220px;gap:8px}.brain-live{padding:8px}.bl-head h2{font-size:13px}.bl-status{font-size:7px}.bl-figure svg{height:80px}.bl-legend,.bl-note,.bl-skill-title{display:none}.bl-skills{min-height:55px}.bl-skills ul{gap:5px}.bl-skills strong{font-size:8px}.bl-performance{margin-top:5px;padding-top:4px}.bl-chart{height:28px}.bl-performance>small{display:none}.bl-sound{min-height:30px}.run-cover h1,.run-cover h2{font-size:24px;margin:6px 0}.run-cover p{font-size:11px;margin:6px 0}.run-cover .countdown{font-size:24px;margin:6px 0}.round-list{margin:6px 0}.round-list li{font-size:9px;padding:4px 6px}.run-hint{height:12px;min-height:12px;line-height:12px}.neuro-frame,body.playing .neuro-frame,.layout{grid-template-columns:minmax(0,1fr) 220px;gap:8px}.layout{height:calc(100dvh - 48px);padding:8px}.title h1{font-size:20px}.status{height:28px;min-height:28px;margin:4px 0}.companion .brain{height:90px}.companion h2{font-size:13px;margin:4px 0}.companion .benefits{gap:6px}.companion .benefits li{font-size:0}.companion .benefits strong{font-size:9px}.companion .challenge,.companion .research,.companion .networks{display:none}.run-cover{padding:10px}.board{min-height:80px}}
@media(prefers-reduced-motion:reduce){.brain .flow,.neuro-brain-dock .flow,.bl-flow,.brain-art .circuit,.impact-shake{animation:none!important}}

body.program-running{height:100dvh;overflow:hidden}body.program-running #programme{min-height:0}body.program-running .program-header{position:relative}

.nf-network{opacity:0;transition:opacity .12s}.nf-link{fill:none;stroke:#85f4ff;stroke-width:2;stroke-dasharray:4 8;filter:drop-shadow(0 0 3px #4bd9f7)}.nf-node{fill:#e9ef86;stroke:#fbffe0;stroke-width:1;filter:drop-shadow(0 0 7px #e9ef86)}.nf-active .nf-network{opacity:.95}.nf-active .nf-link{animation:nf-signal 1s linear infinite}.nf-active .bl-zone,.nf-active .zone{fill:#e9ef8628!important}.nf-error .nf-node{fill:#ff9c63;filter:drop-shadow(0 0 6px #ff9c63)}.nf-status{height:24px;min-height:24px;font-size:10px;line-height:24px;color:#a8d5db;text-align:center;white-space:nowrap}.bl-figure .nf-status{font-size:9px;height:22px;min-height:22px;line-height:22px}.companion{position:relative}.companion>.nf-status{position:absolute;top:205px;left:14px;right:14px;background:#0b1114}.companion .brain{margin-bottom:26px}.bl-figure svg{height:145px}.bl-skills ul{gap:8px 10px}.bl-skills{min-height:108px}.nf-steady .nf-link{animation:none!important}@keyframes nf-signal{to{stroke-dashoffset:-48}}@media(max-width:650px){.bl-skills strong{font-size:9px}.bl-skills{min-height:0}.bl-figure svg{height:88px}.bl-figure .nf-status{font-size:6px;height:15px;min-height:15px;line-height:15px;white-space:normal}.companion .brain{margin:0;height:80px}.companion>.nf-status{top:auto;bottom:5px;left:8px;right:auto;width:102px;font-size:6px;height:18px;min-height:18px;line-height:9px;white-space:normal}}@media(max-height:520px) and (min-width:651px){.bl-figure svg{height:65px}.bl-figure .nf-status{height:16px;min-height:16px;line-height:16px;font-size:7px}.bl-skills{min-height:50px}.companion>.nf-status{top:auto;bottom:6px;font-size:8px}.companion .brain{margin:0}}@media(prefers-reduced-motion:reduce){.nf-active .nf-link{animation:none!important}}

.companion>.nf-status{position:static;top:auto;left:auto;right:auto;bottom:auto;width:auto;background:transparent}.companion .brain{margin-bottom:0}@media(max-width:650px){.companion>.nf-status{grid-column:1;grid-row:2;align-self:end;height:18px;min-height:18px;width:102px}.companion .brain{align-self:start}}

.nb-map .nf-status{font-size:9px;line-height:18px;height:18px;min-height:18px}@media(max-width:650px){.nb-map .nf-status{font-size:6px;height:14px;min-height:14px;line-height:7px;white-space:normal}.neuro-brain-dock .brain,body.playing .neuro-brain-dock .brain{height:80px}}

body.programme-embedded .hud{height:36px!important;min-height:36px!important;align-content:center}body.programme-embedded .section{padding:10px!important}body.programme-embedded .mathlayout{grid-template-rows:44px minmax(0,1fr)}@media(min-width:651px){body.programme-embedded .mathlayout{grid-template-rows:1fr}}

.larger-text .run-title{font-size:13px}.larger-text .game-card p,.larger-text .small-note,.larger-text .footer-note{font-size:14px}.larger-text .bl-skills strong{font-size:12px}.larger-text .run-hint{font-size:10px}.larger-text .btn{font-size:15px}.larger-text .status,.larger-text .note{font-size:14px}.larger-text .bl-skills{overflow:auto}@media(max-width:650px){.bl-figure svg{height:78px}.bl-figure .nf-status{font-size:8px;line-height:10px;height:24px;min-height:24px}.companion>.nf-status{font-size:8px;line-height:10px;height:22px;min-height:22px}.nb-map .nf-status{font-size:8px;line-height:10px;height:22px;min-height:22px}.neuro-brain-dock .brain,body.playing .neuro-brain-dock .brain{height:74px}.larger-text .run-layout{grid-template-rows:minmax(0,1fr) 174px}.larger-text .brain-live{height:174px;grid-template-rows:30px 83px 43px}.larger-text .bl-skills strong{font-size:10px}.larger-text .run-title{font-size:11px}.larger-text .run-bar .btn{font-size:12px}.larger-text .run-cover p{font-size:14px}}
@media(max-height:520px) and (min-width:651px){.companion .live,.nb-live{font-size:8px;letter-spacing:.6px;flex-wrap:nowrap!important}.neuro-sound-toggle{flex:none}}
