:root{color-scheme:dark;--bg:#0d110e;--panel:#151c17;--panel-2:#1a231d;--line:#2b382e;--accent:#bbef70;--text:#edf2e9;--muted:#a0afa1;--danger:#ffad87;--font:ui-monospace,"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-family:var(--font);background:var(--bg);color:var(--text);font-size:16px;line-height:1.55}*{box-sizing:border-box}body{margin:0}button,a,input,select{font:inherit}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{color:inherit;cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:5px}button{border:0;background:none}a{color:inherit;text-decoration:none}.icon{width:24px;height:24px;flex-shrink:0}.accent{color:var(--accent)}.layout{display:flex;min-height:100dvh}.sidebar{width:240px;flex-shrink:0;position:fixed;inset:0 auto 0 0;border-right:1px solid var(--line);padding:36px 24px;display:flex;flex-direction:column;background:#101510;z-index:5}.brand{display:flex;align-items:center;gap:12px;font-size:27px;font-weight:800;letter-spacing:.04em}.brand-mark{display:grid;place-items:center;width:46px;height:54px;background:var(--accent);color:var(--bg);border-radius:8px}.brand-mark .icon{width:32px;height:32px}.brand small{display:block;font-size:10px;color:var(--muted);letter-spacing:.12em;font-weight:400}.navigation{margin-top:56px;display:grid;gap:12px}.nav-item{display:flex;gap:14px;align-items:center;padding:14px 16px;border-radius:8px;text-align:left;color:var(--muted);min-height:52px}.nav-item.active{background:var(--panel-2);color:var(--accent);box-shadow:inset 3px 0 var(--accent)}.nav-item:hover{background:var(--panel-2)}.sidebar-foot{margin-top:auto;padding-top:60px;font-size:14px;color:var(--muted)}.sidebar-foot p{line-height:1.8}.tiny{font-size:12px;letter-spacing:.12em}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 0;color:var(--accent);font-size:14px}.workspace{margin-left:240px;width:calc(100% - 240px);padding:0 48px;max-width:1500px}.topbar{height:102px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:12px}.eyebrow,.kicker{font-size:12px;letter-spacing:.13em;font-weight:600}.topbar .eyebrow{color:var(--muted)}.top-controls{display:flex;align-items:center;gap:14px}.energy-pill{display:flex;align-items:center;gap:8px;font-size:14px}.energy-pill .icon{width:18px;color:var(--accent)}.energy-pill b{font-size:20px}.energy-label{color:var(--muted)}.icon-button{border:1px solid var(--line);border-radius:50%;width:44px;height:44px;display:inline-grid;place-items:center;color:var(--accent);flex-shrink:0}.icon-button[aria-pressed=false]{color:var(--muted)}main{padding:34px 0 0;min-height:70vh}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:32px}.kicker{color:var(--muted)}h1{font-size:clamp(28px,3.5vw,44px);line-height:1.18;letter-spacing:-.04em;margin:12px 0 0;font-weight:650}h2{font-size:22px;line-height:1.3;letter-spacing:-.03em;margin:0}h3{font-size:18px;margin:0}.streak{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:14px;white-space:nowrap}.streak .icon{color:#dba663;width:20px}.label{font-size:14px;color:var(--muted)}.level-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.segmented{display:flex;border:1px solid var(--line);padding:4px;border-radius:8px;gap:4px;background:var(--panel)}.segmented button{padding:7px 18px;border-radius:4px;min-height:40px;font-size:14px;color:var(--muted)}.segmented .selected{background:var(--accent);color:var(--bg);font-weight:600}.shift-card{display:grid;grid-template-columns:1.2fr 1fr;border:1px solid #46543b;border-radius:16px;overflow:hidden;background:linear-gradient(115deg,#222d20,var(--panel));position:relative}.shift-card:before{content:"";position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(0deg,transparent 0,transparent 3px,#0000000b 3px,#0000000b 4px)}.shift-copy{padding:32px;position:relative}.shift-copy h2{font-size:32px;line-height:1.2;margin:16px 0}.shift-copy p{font-size:14px;color:#b3c0ac;line-height:1.7;margin-bottom:24px}.primary{display:inline-flex;align-items:center;justify-content:center;gap:24px;min-height:50px;padding:12px 20px;background:var(--accent);color:#10170e;border-radius:7px;font-size:16px;font-weight:700}.primary:hover{filter:brightness(1.06)}.primary .icon{width:20px}.shift-progress{padding:28px 32px;border-left:1px solid #ffffff12;display:flex;flex-direction:column;justify-content:center;position:relative}.progress-number{font-size:74px;color:var(--accent);line-height:1;font-weight:500;letter-spacing:-.06em}.progress-number span{font-size:30px;color:#718069;margin-left:8px;letter-spacing:-.03em}.shift-progress .label{margin:12px 0 22px}.charge-cells{display:flex;gap:7px}.charge-cells span{background:#394532;height:12px;flex:1}.charge-cells .filled{background:var(--accent)}.shift-lineup{display:grid;grid-template-columns:1fr 1fr;font-size:12px;gap:6px 12px;color:#b3c0ac;margin-top:22px}.free-games{margin-top:38px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}.game-list{display:grid;gap:10px}.game-card{display:flex;align-items:center;gap:18px;border:1px solid var(--line);border-radius:9px;padding:18px 20px;background:var(--panel);text-align:left;width:100%}.game-card:hover{border-color:var(--accent);background:var(--panel-2)}.game-number{font-size:12px;color:#7f907f}.game-symbol{width:48px;height:48px;background:var(--panel-2);display:grid;place-items:center;color:var(--accent);border-radius:8px}.game-caption{display:flex;flex-direction:column;flex:1;gap:4px}.game-caption b{font-size:18px;font-weight:600}.game-caption span{font-size:14px;color:var(--muted)}.skill{font-size:12px;color:var(--muted);border:1px solid var(--line);padding:4px 8px;border-radius:5px;white-space:nowrap}.chevron{width:18px;color:var(--muted)}.main-footer{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--line);margin-top:36px;padding:22px 0 30px;color:#7f907f;font-size:12px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.text-button:hover{text-decoration:underline}dialog{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:16px;max-width:min(480px,calc(100vw - 32px));padding:28px}dialog::backdrop{background:#000a;backdrop-filter:blur(3px)}dialog h2{margin-bottom:16px}dialog p{color:var(--muted)}.dialog-actions{display:flex;justify-content:flex-end;gap:16px;flex-wrap:wrap;margin-top:24px}.secondary{min-height:48px;padding:10px 18px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2)}.error-banner{padding:14px;border:1px solid #b77557;border-radius:8px;color:var(--danger);font-size:14px;margin-bottom:20px}.notice{color:var(--muted);font-size:14px;line-height:1.7}.panel{padding:24px;background:var(--panel);border:1px solid var(--line);border-radius:12px}button svg{pointer-events:none}
@media(min-width:1450px){.workspace{padding-left:72px;padding-right:72px}}@media(max-width:1050px){.sidebar{width:190px;padding:30px 16px}.workspace{margin-left:190px;width:calc(100% - 190px);padding:0 28px}.brand{font-size:23px}.brand small{font-size:9px}.brand-mark{width:38px}.topbar .eyebrow{font-size:10px}.shift-copy,.shift-progress{padding:24px}.skill{display:none}.shift-copy h2{font-size:28px}.game-card{gap:12px}}
@media(max-width:720px){.sidebar{inset:auto 0 0;width:100%;height:auto;padding:8px 10px calc(8px + env(safe-area-inset-bottom));border-right:0;border-top:1px solid var(--line)}.brand,.sidebar-foot{display:none}.navigation{display:flex;margin:0;gap:4px;justify-content:space-around}.nav-item{flex:1;flex-direction:column;gap:3px;padding:8px 4px;font-size:12px;min-height:54px}.nav-item .icon{width:20px;height:20px}.nav-item.active{box-shadow:none;background:#bbef7012}.workspace{margin:0;width:100%;padding:0 18px calc(92px + env(safe-area-inset-bottom));max-width:none}.topbar{position:sticky;top:0;z-index:4;background:var(--bg);padding-top:env(safe-area-inset-top,0px);height:calc(76px + env(safe-area-inset-top,0px))}.topbar .eyebrow{font-size:10px;letter-spacing:.06em}.energy-label{display:none}.top-controls{gap:10px}.energy-pill b{font-size:18px}main{padding-top:24px}.page-heading{align-items:flex-start;flex-direction:column;gap:14px;margin-bottom:24px}h1{font-size:34px}.streak{font-size:12px}.level-row{align-items:flex-start;flex-direction:column;gap:10px}.segmented{width:100%;gap:2px}.segmented button{padding:7px 8px;flex:1;font-size:14px}.shift-card{grid-template-columns:1fr}.shift-copy{padding:24px}.shift-copy h2{font-size:30px}.shift-copy p{margin-bottom:18px}.shift-copy .primary{width:100%}.shift-progress{border-left:0;border-top:1px solid #ffffff12;padding:18px 24px;display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center}.progress-number{font-size:34px;grid-column:1}.progress-number span{font-size:18px}.shift-progress .label{margin:0;text-align:right;font-size:12px}.charge-cells{grid-column:1/-1}.shift-lineup{display:none}.free-games{margin-top:30px}.section-heading h2{font-size:18px}.section-heading .label{font-size:12px}.game-card{padding:16px 12px;gap:12px}.game-number{display:none}.game-symbol{width:40px;height:44px}.game-caption b{font-size:17px}.game-caption span{font-size:12px;line-height:1.55}.main-footer{font-size:12px;flex-direction:column;gap:4px;margin-top:28px}.kicker{font-size:11px}.primary{min-height:52px}.panel{padding:18px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.game-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.exercise{max-width:550px;margin:0 auto;text-align:center;padding-bottom:30px}.exercise-heading{display:flex;align-items:center;flex-direction:column;gap:14px;margin-bottom:28px}.exercise-heading h1{margin:0}.large.game-symbol{width:72px;height:72px;margin:0 auto 8px}.large .icon{width:36px;height:36px}.instruction{font-size:18px;line-height:1.75;color:var(--text);margin-bottom:24px}.exercise-facts{display:flex;gap:18px;justify-content:center;flex-wrap:wrap;color:var(--muted);font-size:14px;margin:24px 0 32px}.wide{width:100%}.round-progress{display:flex;align-items:center;gap:18px;text-align:left;color:var(--muted);font-size:14px;margin-bottom:24px}.round-progress span{white-space:nowrap}progress{appearance:none;border:0;border-radius:5px;background:var(--panel-2);height:6px;width:100%;accent-color:var(--accent)}progress::-webkit-progress-bar{background:var(--panel-2);border-radius:5px}progress::-webkit-progress-value{background:var(--accent);border-radius:5px}progress::-moz-progress-bar{background:var(--accent);border-radius:5px}.board-instruction{font-size:18px;margin:0 0 22px}.board{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:12px;margin-bottom:24px}.cell{aspect-ratio:1;background:var(--panel-2);border:1px solid var(--line);border-radius:10px;font-size:clamp(22px,3vw,32px);display:grid;place-items:center;min-height:46px;color:var(--text);font-weight:600}.cell:disabled{opacity:1}.cell.lit{background:color-mix(in srgb,var(--accent) 22%,var(--panel));border-color:var(--accent);color:var(--accent)}.cell.flashing{background:var(--accent);border-color:var(--accent);color:var(--bg);box-shadow:0 0 26px color-mix(in srgb,var(--accent) 25%,transparent)}.cell.wrong{border-color:var(--danger);color:var(--danger)}.cell.found{opacity:.3}.cell:not(:disabled):hover{border-color:var(--accent)}.signals .cell{aspect-ratio:1.7}.number-board{gap:8px}.arithmetic{font-size:clamp(42px,8vw,68px);line-height:1.1;margin:32px 0 38px;color:var(--accent);font-weight:600;letter-spacing:-.04em}.answers .cell{aspect-ratio:2.1;font-size:32px}.rule h2{margin-top:12px}.sequence-readout{min-height:34px;color:var(--accent);font-size:20px;word-break:break-word}.feedback{display:flex;align-items:center;justify-content:center;gap:10px;padding:16px;border:1px solid var(--line);background:var(--panel);border-radius:8px;font-size:16px;margin:24px 0}.success{color:var(--accent)}.failure,.warning{color:var(--danger)}.result-score{font-size:100px;line-height:1;color:var(--accent);letter-spacing:-.06em;display:block;margin-top:24px}.result-score small{font-size:24px;color:var(--muted);margin-left:8px;letter-spacing:0}.result-facts{display:flex;justify-content:center;gap:24px;color:var(--muted);font-size:14px;margin:28px 0}.reward{display:flex;justify-content:center;align-items:center;gap:12px;font-size:24px;color:var(--accent);margin:24px 0}.big.reward{font-size:68px;line-height:1.2;flex-direction:column;gap:0}.big.reward small{font-size:16px;color:var(--muted)}.summary .kicker{display:block;margin:20px 0}.summary-list{border-top:1px solid var(--line);margin:30px 0}.summary-list>div{display:flex;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line)}.summary-list strong{color:var(--accent)}.exercise .primary{margin-top:8px}
@media(max-width:720px){.exercise-heading{gap:10px;margin-bottom:22px}.exercise-heading h1{font-size:30px}.large.game-symbol{width:56px;height:56px}.large .icon{width:28px;height:28px}.instruction{font-size:16px}.board{gap:9px}.number-board{gap:5px}.number-board .cell{font-size:22px;border-radius:6px}.exercise-facts{font-size:12px}.round-progress{font-size:12px}.result-score{font-size:82px}.game-top{margin-bottom:18px}.feedback{font-size:14px}.main-footer{line-height:1.6}}@media(max-width:360px){h1{font-size:30px}.workspace{padding-left:14px;padding-right:14px}.energy-pill b{font-size:16px}.topbar .eyebrow{font-size:9px}.top-controls{gap:6px}.number-board .cell{font-size:18px}.cell{min-height:44px}}
.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:22px}.stat-grid strong{display:block;font-size:40px;line-height:1.3;color:var(--accent);margin-top:14px;font-weight:500}.activity,.progress-panel{margin-bottom:22px}.activity h2{margin-bottom:24px}.week{display:grid;grid-template-columns:repeat(7,1fr);gap:12px}.day{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:14px;color:var(--muted)}.day b{display:grid;place-items:center;border:1px solid var(--line);width:44px;height:44px;border-radius:50%;font-size:24px}.day.trained b{border-color:var(--accent);color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,var(--panel))}.chart-filters{display:flex;gap:16px;margin:24px 0}.chart-filters label{display:grid;gap:8px;font-size:14px;color:var(--muted);flex:1}select{width:100%;min-height:44px;background:var(--panel-2);color:var(--text);border:1px solid var(--line);border-radius:6px;padding:8px 12px}.chart{width:100%;height:auto;min-height:160px;display:block;margin:20px 0}.empty-state{padding:40px 20px;text-align:center;color:var(--muted);font-size:16px;line-height:1.7}.history{margin:32px 0}.history-list{border:1px solid var(--line);border-radius:12px;background:var(--panel);overflow:hidden}.history-item{display:flex;align-items:center;gap:16px;padding:18px;border-bottom:1px solid var(--line)}.history-item:last-child{border:0}.history-name{display:grid;gap:4px;flex:1}.history-name span,.history-score>span{font-size:12px;color:var(--muted)}.history-score{display:grid;gap:4px;text-align:right}.history-score b{color:var(--accent);font-size:22px;font-weight:500}.history-score b span{font-size:14px;color:var(--muted)}.settings-panel{margin-bottom:32px}.switch-row{display:flex;align-items:center;gap:14px;position:relative;padding:24px 0;border-bottom:1px solid var(--line);cursor:pointer}.switch-row>span:first-child{flex:1;display:grid;gap:6px}.switch-row b{font-size:16px;font-weight:500}.switch-row small{font-size:14px;color:var(--muted)}.switch-row input{position:absolute;right:0;opacity:0;width:52px;height:32px;cursor:pointer;z-index:1}.switch-ui{width:52px;height:30px;border-radius:20px;background:#465046;border:1px solid var(--line);position:relative;flex-shrink:0}.switch-ui:after{content:"";width:22px;height:22px;position:absolute;left:3px;top:3px;border-radius:50%;background:#d6e0d4;transition:transform .15s}.switch-row input:checked+.switch-ui{background:var(--accent)}.switch-row input:checked+.switch-ui:after{transform:translateX(22px);background:#101510}.switch-row input:focus-visible+.switch-ui{outline:2px solid var(--accent);outline-offset:5px}.theme-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:22px 0 30px}.theme-card{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--panel)}.theme-card.current{border-color:var(--swatch)}.theme-preview{height:130px;display:flex;align-items:center;justify-content:center;gap:16px;background:color-mix(in srgb,var(--swatch) 7%,#101510);color:var(--swatch)}.theme-preview .icon{width:40px;height:40px}.theme-bars{display:flex;gap:4px;align-items:end;height:34px}.theme-bars i{width:9px;background:var(--swatch);height:16px}.theme-bars i:nth-child(2){height:25px}.theme-bars i:nth-child(3){height:34px}.theme-bars i:nth-child(4){height:23px;opacity:.4}.theme-detail{padding:18px}.theme-detail h3{margin-bottom:7px}.theme-detail .secondary{font-size:14px;width:100%;margin-top:20px}.install-panel{display:flex;align-items:center;gap:24px;margin-top:30px}.install-panel>div{flex:1}.install-panel .secondary{display:flex;align-items:center;gap:8px}.install-panel p{margin-bottom:0}body[data-theme=amber]{--accent:#ffc46b}body[data-theme=ice]{--accent:#88d7ff}
@media(max-width:900px){.theme-grid{grid-template-columns:1fr}.theme-card{display:grid;grid-template-columns:120px 1fr}.theme-preview{height:100%}.theme-detail{padding:18px}.theme-detail .secondary{width:auto;min-width:140px}.install-panel{flex-direction:column;align-items:stretch}}@media(max-width:720px){.stat-grid{gap:8px}.stat-grid .panel{padding:16px 10px}.stat-grid .label{font-size:12px}.stat-grid strong{font-size:30px}.week{gap:4px}.day{font-size:12px}.day b{width:34px;height:34px;font-size:18px}.progress-panel .section-heading{align-items:flex-start;flex-direction:column;gap:8px}.chart-filters{gap:10px}.chart-filters select{font-size:14px;padding:8px}.history-item{padding:14px 12px;gap:10px}.history-item .game-symbol{display:none}.history-name b{font-size:14px}.history-score b{font-size:19px}.history-name span,.history-score>span{font-size:12px}.switch-row small{font-size:12px}.theme-card{grid-template-columns:92px 1fr}.theme-preview{gap:4px}.theme-preview .icon{width:30px}.theme-bars{display:none}}

.countdown{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--line);background:var(--panel);border-radius:10px;padding:12px 18px;margin:0 0 22px;color:var(--muted);font-size:14px;text-align:left}
.countdown strong{font-size:30px;line-height:1.2;font-variant-numeric:tabular-nums;letter-spacing:.04em;color:var(--accent)}
.countdown.urgent{border-color:var(--danger)}.countdown.urgent strong,.result-score.failure,.summary-list strong.failure{color:var(--danger)}
.exercise .secondary.wide{margin-top:12px}
.mode-picker{display:flex;align-items:center;gap:22px;border:1px solid var(--line);background:var(--panel);border-radius:12px;padding:18px 20px;margin-bottom:20px}.mode-picker p{margin:0;color:var(--muted);font-size:13px;max-width:430px}.mode-picker .segmented{flex-shrink:0}.mode-badge,.phase-tag{display:inline-block;border:1px solid var(--line);border-radius:6px;padding:5px 10px;font-size:12px;color:var(--accent)}.phase-tag{margin-bottom:20px}.adaptive-note{font-size:12px;color:var(--muted);margin:-10px 0 22px}.chosen{border-color:var(--accent)!important;background:color-mix(in srgb,var(--accent) 12%,var(--panel))!important;color:var(--accent)}
.peripheral-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:min(100%,420px);margin:0 auto 24px}.peripheral-spot{aspect-ratio:1;display:grid;place-items:center;font-size:40px;color:var(--muted);border-radius:9px;background:var(--panel)}.peripheral-spot.target{color:var(--accent)}.peripheral-spot[data-center-stimulus]{color:var(--text)}.peripheral-origin{display:grid;place-items:center;color:var(--muted);font-size:30px}.correct-position{border-color:var(--accent);color:var(--accent)}
.crossword{display:grid;grid-template-columns:repeat(var(--cols),minmax(0,1fr));gap:3px;max-width:min(380px,calc(var(--cols)*40px));margin:0 auto 24px}.crossword-cell{position:relative;aspect-ratio:1;border:1px solid var(--line);background:var(--panel-2);display:grid;place-items:center;font-size:clamp(13px,2.8vw,22px);font-weight:bold;color:var(--accent);border-radius:3px}.crossword-cell small{position:absolute;top:0;left:3px;font-size:9px;font-weight:normal;color:var(--muted)}.crossword-cell.conflict{border-color:var(--danger);color:var(--danger)}.word-clues{text-align:left;display:grid;gap:20px}.word-clues label{display:grid;gap:8px;font-size:15px}.word-input-row{display:flex;align-items:center;gap:12px}.word-input-row input{min-width:0;flex:1;width:100%;font:inherit;font-size:19px;letter-spacing:.12em;text-transform:uppercase;background:var(--panel-2);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:12px;min-height:48px}.word-input-row input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.word-input-row small{white-space:nowrap;color:var(--muted);font-size:12px}
.shopping-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:24px}.shopping-list>div{display:flex;align-items:center;gap:10px;padding:16px;background:var(--panel);border:1px solid var(--line);border-radius:8px;text-align:left;font-size:15px}.shopping-list span{font-size:30px}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-bottom:20px}.product-card{display:flex;flex-direction:column;align-items:center;gap:5px;border:1px solid var(--line);border-radius:10px;padding:12px 4px;background:var(--panel);min-height:105px}.product-card b{font-size:13px}.product-card small{min-height:18px;color:var(--muted);font-size:11px}.product-symbol{font-size:30px}.product-card:disabled{opacity:1}.correct-product{border-color:var(--accent);color:var(--accent)}.wrong-product{border-color:var(--danger)!important;color:var(--danger)}.basket-count{color:var(--muted);font-size:14px}.distraction-stars{display:flex;justify-content:center;flex-wrap:wrap;gap:20px;font-size:42px;color:var(--accent);padding:24px;margin-bottom:24px}
.switch-object{position:relative;width:130px;height:130px;display:grid;place-items:center;margin:45px auto 30px;font-size:50px;font-weight:bold;color:var(--bg);background:#bbef70}.switch-object.amber{background:#ffc46b}.switch-object.circle{border-radius:50%}.switch-object.diamond{transform:rotate(45deg);border-radius:12px;width:110px;height:110px;margin-top:55px;margin-bottom:40px}.switch-object.diamond span{transform:rotate(-45deg)}.switch-choices button{font-size:18px;min-height:60px}.training-metrics{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:24px 0;padding:10px 0}.training-metrics>div{display:flex;justify-content:space-between;gap:18px;padding:7px 0;text-align:left;font-size:14px}.training-metrics dt{color:var(--muted)}.training-metrics dd{margin:0;color:var(--accent);white-space:nowrap}.chart-filters{flex-wrap:wrap}.chart-filters label{min-width:140px}
@media(max-width:720px){.mode-picker{display:block;padding:14px}.mode-picker p{margin-top:10px;font-size:12px}.peripheral-board{gap:8px;max-width:340px}.peripheral-spot{font-size:34px}.shopping-list>div{padding:12px 10px;font-size:13px;gap:6px}.shopping-list span{font-size:26px}.product-grid{gap:7px}.product-card b{font-size:12px}.product-card{min-height:98px}.crossword{max-width:min(330px,calc(var(--cols)*34px));gap:2px}.word-clues label{font-size:14px}.crossword-cell small{font-size:8px}.training-metrics>div{font-size:12px}.adaptive-note{line-height:1.6}.center-choices button{font-size:15px;padding:12px 8px}}

@media(max-width:720px){
 body[data-playing=true] .sidebar,body[data-playing=true] .main-footer{display:none}
 body[data-playing=true] .workspace{padding-bottom:calc(20px + env(safe-area-inset-bottom))}
 body[data-playing=true] .topbar{height:calc(56px + env(safe-area-inset-top,0px))}
 body[data-playing=true] main{padding-top:10px}
 body[data-playing=true] .game-top{margin-bottom:10px}
 body[data-playing=true] .exercise-heading{flex-direction:row;flex-wrap:wrap;justify-content:center;gap:8px 12px;margin-bottom:14px}
 body[data-playing=true] .exercise-heading .game-symbol,body[data-playing=true] .exercise-heading .kicker{display:none}
 body[data-playing=true] .exercise-heading h1{font-size:23px}
 body[data-playing=true] .round-progress{margin-bottom:12px}
 body[data-playing=true] .countdown{padding:10px 12px;margin-bottom:12px;font-size:12px}
 body[data-playing=true] .countdown strong{font-size:26px}
 body[data-playing=true] .adaptive-note{margin:0 0 14px}
 body[data-playing=true] .board-instruction{margin-bottom:14px}
 body[data-playing=true] .peripheral-board{width:min(100%,340px,40svh);margin-bottom:14px}
 body[data-playing=true] .display-field+.notice{margin:10px 0}
}

.reminder-panel{margin-bottom:28px}.reminder-form{display:grid;gap:12px;justify-items:start;margin-top:18px}.reminder-form label{display:grid;gap:8px;font-size:16px}.reminder-form input{font:inherit;color:var(--text);background:var(--panel-2);border:1px solid var(--line);border-radius:8px;min-height:48px;padding:10px 14px;min-width:160px}.reminder-form .notice{margin:0;font-size:14px}.reminder-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.reminder-panel>.notice{font-size:14px}.reminder-panel .warning{font-size:14px}

/* Pixel-brain identity; native-resolution artwork is scaled by the browser. */
.brand-logo{display:block;width:100%;height:auto;image-rendering:pixelated}.brand{display:block}.mobile-brand{display:none}.sidebar{background:var(--bg)}
@media(max-width:720px){.brand{display:none}.mobile-brand{display:block;width:142px;max-width:45%;min-width:0;flex-shrink:1}.top-controls{flex-shrink:0}.mobile-brand img{display:block;width:100%;height:auto;image-rendering:pixelated}.topbar .eyebrow{display:none}}

/* Fixed viewport header avoids iOS standalone scroll restoration hiding controls. */
@media(max-width:720px){
 :root{--mobile-bar-height:76px;--mobile-safe-top:env(safe-area-inset-top,0px);scroll-padding-top:calc(var(--mobile-bar-height) + var(--mobile-safe-top) + 12px)}
 body[data-playing=true]{--mobile-bar-height:56px}
 .workspace{padding-top:calc(var(--mobile-bar-height) + var(--mobile-safe-top))}
 .topbar,body[data-playing=true] .topbar{position:fixed;inset:0 0 auto;z-index:6;height:calc(var(--mobile-bar-height) + var(--mobile-safe-top));padding:var(--mobile-safe-top) max(18px,env(safe-area-inset-right,0px)) 0 max(18px,env(safe-area-inset-left,0px));background:var(--bg)}
}
.app-version{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:24px}
