:root{--colour-bg:#f6efe0;--colour-surface:#fffaf0;--colour-text:#211a14;--colour-text-muted:#6b5d4f;--colour-primary:#1f5fbf;--colour-primary-hover:#174a96;--colour-accent:#e8720f;--colour-success:#1f8a3c;--colour-warning:#c97a00;--colour-danger:#c22a1e;--colour-border:#d8c9ab;--colour-ink:#1a1510;--outline-width:3px;--shadow-sticker:4px 4px 0 var(--colour-ink);--colour-grass-a:#4caf3f;--colour-grass-b:#3f9a35;--colour-tarmac:#5b5a62;--colour-kerb-red:#d1342b;--colour-kerb-white:#f3ede0;--colour-line:#f3ede0;--car-1:#d55e00;--car-1-ink:#1a1510;--car-2:#56b4e9;--car-2-ink:#1a1510;--car-3:#009e73;--car-3-ink:#fff;--car-4:#f0e442;--car-4-ink:#1a1510;--car-5:#0072b2;--car-5-ink:#fff;--car-6:#cc79a7;--car-6-ink:#1a1510;--font-body:"Trebuchet MS", system-ui, sans-serif;--font-code:"Courier New", monospace;--text-sm:.875rem;--text-base:1rem;--text-lg:1.25rem;--text-xl:1.75rem;--text-2xl:2.5rem;--line-height:1.55;--space-1:.25rem;--space-2:.5rem;--space-3:.75rem;--space-4:1rem;--space-6:1.5rem;--space-8:2rem;--space-12:3rem;--space-16:4rem;--space-24:6rem;--radius-sm:4px;--radius-md:8px;--radius-lg:16px;--shadow-sm:0 1px 2px #00000014;--shadow-md:0 4px 12px #0000001a;--ease:cubic-bezier(.2, .7, .2, 1);--duration-fast:.12s;--duration-base:.2s;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--colour-bg:#1c1a22;--colour-surface:#262330;--colour-text:#f1ecdf;--colour-text-muted:#b6ad9d;--colour-border:#46415a;--colour-ink:#0d0b10;--colour-tarmac:#3a3942;--colour-grass-a:#1f3b22;--colour-grass-b:#1a331d}}*{box-sizing:border-box}html,body{margin:0;padding:0}body{font-family:var(--font-body);font-size:var(--text-base);line-height:var(--line-height);color:var(--colour-text);background:var(--colour-bg)}#root{flex-direction:column;min-height:100svh;display:flex}code,kbd,pre{font-family:var(--font-code)}button,input,select,textarea{font-family:inherit}:focus-visible{outline:3px solid var(--colour-primary);outline-offset:2px}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}.app-shell{justify-content:center;align-items:center;gap:var(--space-4);width:100%;max-width:1200px;padding:var(--space-8) var(--space-4);text-align:center;flex-direction:column;flex:1;margin:0 auto;display:flex}.app-shell__title{font-size:var(--text-2xl);color:var(--colour-text);margin:0;font-weight:700}.app-shell__subtitle{font-size:var(--text-lg);color:var(--colour-text-muted);max-width:70ch;margin:0}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.app-shell--game{text-align:left;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:0;width:100%;max-width:none;height:100svh;padding:0;display:flex;overflow:hidden}.toolbar{align-items:center;gap:var(--space-3);padding:var(--space-2) var(--space-3);background:var(--colour-surface);border-bottom:var(--outline-width) solid var(--colour-ink);flex-wrap:wrap;flex-shrink:0;display:flex}.toolbar__group{align-items:center;gap:var(--space-2);flex-wrap:wrap;display:flex}.toolbar__logo{flex-shrink:0;width:72px;height:72px;margin-left:auto}.toolbar__group--switches{gap:var(--space-3)}.toolbar__track-picker-label{display:flex}.toolbar__track-picker{font-weight:700;font-family:var(--font-body);font-size:var(--text-base);min-height:44px;padding:0 var(--space-2);color:var(--colour-text);background:var(--colour-surface);border:2px solid var(--colour-border);border-radius:var(--radius-sm)}@media (width<=899px){.toolbar{gap:var(--space-2);padding:var(--space-2)}.toolbar__group--switches{gap:var(--space-2);flex-wrap:wrap;order:10;width:100%}.button__label{display:none}}.button{align-items:center;gap:var(--space-2);min-width:44px;min-height:44px;padding:var(--space-2) var(--space-3);border:var(--outline-width) solid var(--colour-ink);border-radius:var(--radius-md);background:var(--colour-surface);color:var(--colour-text);font-family:var(--font-body);font-size:var(--text-base);cursor:pointer;font-weight:700;display:inline-flex}.button:hover{background:var(--colour-bg)}.button:disabled{opacity:.5;cursor:not-allowed}.button--icon svg{flex-shrink:0}.button--chip{min-width:44px;padding:var(--space-1) var(--space-2);box-shadow:none}.button--chip-selected{background:var(--colour-primary);color:#fff}.button--secondary{background:var(--colour-surface)}.button--danger{color:var(--colour-danger)}.button--danger-confirming{background:var(--colour-danger);color:#fff}.field{gap:var(--space-1);margin-bottom:var(--space-4);font-size:var(--text-base);flex-direction:column;display:flex}.field span{font-weight:700}.field output{font-family:var(--font-code);color:var(--colour-text-muted)}.field--checkbox{align-items:center;gap:var(--space-2);flex-direction:row;min-height:44px}.field--checkbox input{width:22px;height:22px}.field--compact{font-size:var(--text-sm);margin-bottom:0}input[type=range]{width:100%}.transfer-banner{justify-content:space-between;align-items:center;gap:var(--space-3);padding:var(--space-2) var(--space-4);background:var(--colour-accent);color:var(--colour-ink);border-bottom:var(--outline-width) solid var(--colour-ink);flex-wrap:wrap;display:flex}.transfer-banner__text{margin:0;font-weight:700}.stage{flex:1;min-height:0;display:flex;position:relative;overflow:hidden}.car-rail{gap:var(--space-2);padding:var(--space-2);background:var(--colour-bg);border-right:var(--outline-width) solid var(--colour-ink);flex-direction:column;flex-shrink:0;width:220px;display:flex;overflow-y:auto}.car-chip{align-items:center;gap:var(--space-2);min-height:44px;padding:var(--space-2);border:2px solid var(--colour-border);border-radius:var(--radius-md);background:var(--colour-surface);cursor:pointer;text-align:left;display:flex}.car-chip--selected{border-color:var(--colour-ink);border-width:var(--outline-width);box-shadow:var(--shadow-sticker)}.car-chip__text{font-size:var(--text-sm);flex-direction:column;line-height:1.3;display:flex}.car-chip__name{color:var(--colour-text);font-weight:700}.car-chip__status,.car-chip__best{color:var(--colour-text-muted)}.car-swatch{border-radius:var(--radius-sm);background:var(--swatch-colour);border:2px solid var(--colour-ink);flex-shrink:0;width:28px;height:28px}.track-canvas-container{background:var(--colour-bg);flex:1;min-width:0;position:relative}.track-canvas{width:100%;height:100%;display:block}@media (width<=899px){.stage{flex-direction:column}.car-rail{border-right:none;border-top:var(--outline-width) solid var(--colour-ink);flex-direction:row;order:2;width:100%;overflow:auto visible}.car-chip{flex-shrink:0}.track-canvas-container{flex:none;order:1;height:45svh}}.drawer{background:var(--colour-surface);border-left:var(--outline-width) solid var(--colour-ink);width:min(40%,480px);max-width:40%;box-shadow:var(--shadow-sticker);z-index:5;flex-direction:column;display:flex;position:absolute;top:0;bottom:0;right:0;overflow-y:auto}.drawer__header{justify-content:space-between;align-items:center;gap:var(--space-2);padding:var(--space-3);border-bottom:2px solid var(--colour-border);background:var(--colour-surface);display:flex;position:sticky;top:0}.drawer__title{font-size:var(--text-lg);margin:0}.drawer__close{min-width:44px;min-height:44px;color:var(--colour-text);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;display:flex}.drawer__body{padding:var(--space-3)}@media (width<=899px){.drawer{border-left:none;border-top:var(--outline-width) solid var(--colour-ink);width:100%;max-width:100%;max-height:70svh;top:auto;left:0;right:0}}.brain-drawer__header{align-items:center;gap:var(--space-3);margin-bottom:var(--space-4);display:flex}.brain-drawer__name{font-size:var(--text-lg);margin:0}.status-badge{color:var(--colour-primary);margin:0;font-weight:700}.brain-drawer__section{margin-bottom:var(--space-6)}.brain-drawer__section h4{margin:0 0 var(--space-2);font-size:var(--text-base);text-transform:uppercase;letter-spacing:.04em;color:var(--colour-text-muted)}.brain-drawer__step-label{margin:0 0 var(--space-2);font-weight:700}.brain-drawer__reason{color:var(--colour-text-muted);margin-top:var(--space-2)}.stat-list{gap:var(--space-2) var(--space-3);grid-template-columns:1fr auto;margin:0;display:grid}.stat-list>div{display:contents}.stat-list dt{color:var(--colour-text-muted)}.stat-list dd{text-align:right;margin:0;font-weight:700}.action-grid{border-collapse:collapse;margin:var(--space-2) 0}.action-grid__cell{border:2px solid var(--colour-border);border-radius:var(--radius-sm);width:72px;height:44px;font-size:var(--text-sm);background:var(--colour-bg);justify-content:center;align-items:center;margin:2px;display:flex;position:relative}.action-grid--mini .action-grid__cell{width:52px;height:36px;font-size:var(--text-sm)}.action-grid__cell--selected{border-color:var(--colour-ink);border-width:var(--outline-width);background:var(--colour-primary);color:#fff;font-weight:700}.action-grid__cell--tried{color:var(--colour-text-muted);border-style:dashed}.action-grid__cross{position:absolute;inset:0}.action-grid__cross:before,.action-grid__cross:after{content:"";background:var(--colour-danger);height:2px;position:absolute;top:50%;left:10%;right:10%}.action-grid__cross:before{transform:rotate(18deg)}.action-grid__cross:after{transform:rotate(-18deg)}.route-strip__scroller{padding:var(--space-2) 0;gap:2px;display:flex;overflow-x:auto}.route-strip__tile{border:1px solid var(--colour-border);border-radius:var(--radius-sm);background:var(--colour-bg);flex-shrink:0;justify-content:center;align-items:center;width:20px;height:32px;font-size:10px;display:flex}.route-strip__tile--locked{background:var(--colour-success);color:#fff;border-style:solid}.route-strip__tile--rewind{border:2px solid var(--colour-accent);background:var(--colour-surface)}.route-strip__tile--exploring{border-style:dashed}.route-strip__tile--crashed{background:var(--colour-danger);color:#fff}.route-strip__tile--current{outline:2px solid var(--colour-primary);outline-offset:1px}.route-strip__whole-bar{border:2px solid var(--colour-ink);border-radius:var(--radius-sm);cursor:pointer;height:16px;display:flex;overflow:hidden}.route-strip__whole-bar-segment--locked{background:var(--colour-success)}.route-strip__whole-bar-segment--new{background:var(--colour-border)}.route-strip__whole-bar-segment--crashed{background:var(--colour-danger)}.round-report__round{margin:0 0 var(--space-3);font-weight:700}.round-report__table{border-collapse:collapse;width:100%;font-size:var(--text-sm)}.round-report__table th,.round-report__table td{text-align:left;padding:var(--space-2);border-bottom:1px solid var(--colour-border)}.settings-drawer__section{margin-bottom:var(--space-6)}.settings-drawer__section h4{margin:0 0 var(--space-3)}.settings-drawer__seed-value{margin:0 0 var(--space-2)}.settings-drawer__hint{color:var(--colour-text-muted);font-size:var(--text-sm);margin:var(--space-2) 0 0}.settings-drawer__hint--lead{margin-top:0;margin-bottom:var(--space-3)}.settings-drawer__save-buttons{gap:var(--space-2);flex-wrap:wrap;display:flex}.settings-drawer__import-error{color:var(--colour-danger);font-size:var(--text-sm);margin:var(--space-2) 0 0}.shortcut-list{gap:var(--space-2) var(--space-3);grid-template-columns:auto 1fr;margin:0;display:grid}.shortcut-list>div{display:contents}.shortcut-list kbd{font-family:var(--font-code);background:var(--colour-bg);border:1px solid var(--colour-border);border-radius:var(--radius-sm);padding:0 var(--space-2)}.about-drawer__section{margin-bottom:var(--space-6)}.about-drawer__section h4{margin:0 0 var(--space-2)}.about-drawer__badge{width:auto;height:32px;margin:var(--space-2) 0;display:block}.about-drawer__credit{color:var(--colour-text-muted);font-size:var(--text-sm)}.learning-chart__svg{width:100%;height:auto}.learning-chart__axis{stroke:var(--colour-ink);stroke-width:1.5px}.learning-chart__guide{stroke:var(--colour-text-muted);stroke-width:1px;stroke-dasharray:3 3}.learning-chart__guide--target{stroke-width:2px;stroke-dasharray:8 3}.learning-chart__guide-label{fill:var(--colour-text-muted);font-size:10px}.learning-chart__line{fill:none}.learning-chart__end-label{fill:var(--colour-text);font-size:11px;font-weight:700}.learning-chart__point{fill:var(--colour-surface);stroke:var(--colour-ink);stroke-width:1px;pointer-events:none}.learning-chart__point-target{fill:#0000;cursor:pointer}.learning-chart__point-target:focus-visible{outline:2px solid var(--colour-primary)}.learning-chart__axis-label{fill:var(--colour-text-muted);font-size:10px}.learning-chart__readout{margin:var(--space-3) 0 0;font-size:var(--text-sm);color:var(--colour-text-muted);min-height:1.5em}.learning-chart__empty{color:var(--colour-text-muted)}.network-view__svg{width:100%;height:auto}.network-view__weight{stroke:var(--colour-border);opacity:.6}.network-view__node{fill:var(--colour-surface);stroke:var(--colour-ink);stroke-width:1.5px}.network-view__node--input{fill:var(--colour-bg)}.network-view__node--positive{fill:color-mix(in srgb, var(--colour-success) calc(var(--activation) * 100%), var(--colour-surface))}.network-view__node--negative{fill:color-mix(in srgb, var(--colour-danger) calc(var(--activation) * 100%), var(--colour-surface))}.network-view__label{fill:var(--colour-text-muted);font-size:10px}.network-view__value{font-size:9px;font-family:var(--font-code);fill:var(--colour-text)}.network-view__caption{margin:var(--space-3) 0 0;font-size:var(--text-sm);color:var(--colour-text-muted)}.network-view__empty{color:var(--colour-text-muted)}.commentary__mute{margin-bottom:var(--space-4)}.commentary__list{gap:var(--space-2);flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.commentary__list li{padding:var(--space-2) var(--space-3);border:1px solid var(--colour-border);border-radius:var(--radius-sm);background:var(--colour-bg);font-size:var(--text-sm)}.commentary__empty{color:var(--colour-text-muted)}.concepts-drawer__progress{color:var(--colour-text-muted);font-size:var(--text-sm);margin:0 0 var(--space-4)}.concept-card{border:2px solid var(--colour-border);border-radius:var(--radius-md);padding:var(--space-3);margin-bottom:var(--space-3)}.concept-card--locked{border-style:dashed}.concept-card__header{justify-content:space-between;align-items:baseline;gap:var(--space-2);margin-bottom:var(--space-2);display:flex}.concept-card__title{font-size:var(--text-base);margin:0}.concept-card__level{font-size:var(--text-sm);color:var(--colour-text-muted);flex-shrink:0}.concept-card__locked-note{align-items:center;gap:var(--space-2);color:var(--colour-text-muted);font-size:var(--text-sm);margin:0;display:flex}.concept-card__plain{margin:0 0 var(--space-3)}.concept-card__deeper{margin-top:var(--space-3);padding-top:var(--space-3);border-top:1px solid var(--colour-border)}.concept-card__ask{margin:var(--space-2) 0 0;color:var(--colour-text-muted)}.button--compact{padding:var(--space-1) var(--space-3);font-size:var(--text-sm)}.concept-notice{right:var(--space-4);bottom:var(--space-4);z-index:6;background:var(--colour-surface);border:var(--outline-width) solid var(--colour-ink);border-radius:var(--radius-md);max-width:280px;box-shadow:var(--shadow-sticker);padding:var(--space-3);animation:concept-notice-in var(--duration-base) var(--ease);position:absolute}@keyframes concept-notice-in{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}.concept-notice__label{font-size:var(--text-sm);color:var(--colour-text);text-transform:uppercase;letter-spacing:.04em;border-left:4px solid var(--colour-accent);padding-left:var(--space-2);margin:0;font-weight:700}.concept-notice__title{margin:var(--space-1) 0 var(--space-3);font-weight:700}.concept-notice__actions{justify-content:space-between;align-items:center;gap:var(--space-2);display:flex}.concept-notice__dismiss{min-width:44px;min-height:44px;color:var(--colour-text-muted);cursor:pointer;background:0 0;border:none;justify-content:center;align-items:center;display:flex}@media (width<=899px){.concept-notice{left:var(--space-3);right:var(--space-3);bottom:var(--space-3);max-width:none}}.car-swatch--pattern-stripe{background-image:linear-gradient(90deg, var(--swatch-colour) 60%, var(--swatch-ink) 60% 70%, var(--swatch-colour) 70%)}.car-swatch--pattern-spots{background-image:radial-gradient(circle at 30% 30%, var(--swatch-ink) 0 3px, transparent 4px), radial-gradient(circle at 70% 70%, var(--swatch-ink) 0 3px, transparent 4px)}.car-swatch--pattern-chevron{background-image:linear-gradient(135deg, transparent 45%, var(--swatch-ink) 45% 55%, transparent 55%)}.car-swatch--pattern-checks{background-image:linear-gradient(45deg, var(--swatch-ink) 25%, transparent 25% 75%, var(--swatch-ink) 75%);background-size:10px 10px}.car-swatch--pattern-hoops{background-image:repeating-linear-gradient(90deg, var(--swatch-ink) 0 3px, transparent 3px 9px)}
