:root{--navy:#161b30;--navy2:#242a43;--ink:#222744;--pearl:#f4efe8;--paper:#fffdf8;--muted:#747789;--brass:#f3bf62;--coral:#ee796b;--mint:#96d9d2;--border:#dedad4;--shadow:0 20px 52px rgba(25,27,46,.10)}
*{box-sizing:border-box}html{scroll-behaviour:smooth}body{margin:0;background:var(--pearl);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-size:14px;line-height:1.45}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation}button:focus-visible,input:focus-visible,canvas:focus-visible,svg:focus-visible{outline:3px solid #eaa937;outline-offset:3px}button:disabled{opacity:.5;cursor:not-allowed}[hidden]{display:none!important}.site-shell{max-width:1590px;margin:0 auto;padding:0 38px}.masthead{height:83px;display:flex;align-items:center;gap:15px;border-bottom:1px solid #d9d4cc}.brand-mark{width:47px;height:47px;border:2px solid var(--ink);border-radius:50%;display:grid;place-items:center;font-weight:950;font-size:26px;letter-spacing:-3px;transform:rotate(-10deg)}.mark-star{font-size:13px;margin-left:-4px;color:var(--coral)}.overline{font-size:11px;letter-spacing:.19em;font-weight:900}.brand-em{color:#d16d5c}.sep{padding:0 8px;color:#9c9da6}.subbrand{font-size:12px;color:var(--muted);margin-top:3px}.mast-tags{margin-left:auto;display:flex;gap:8px}.tag{padding:8px 10px;border:1px solid #d3cec6;border-radius:20px;font-weight:900;font-size:10px;letter-spacing:.08em}.tag-soft{background:#fce5d5;border-color:#f0d2ba}.intro{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:41px 0 40px}.eyebrow{font-size:11px;font-weight:900;letter-spacing:.22em;color:#c56758;display:flex;gap:11px;align-items:center}.eyebrow-dot{height:8px;width:8px;border-radius:50%;background:#d17c66;display:inline-block}.eyebrow-stroke{height:1px;width:42px;background:#c6beb2;display:inline-block}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(35px,4.2vw,68px);line-height:1.09;letter-spacing:-.065em;font-weight:900;margin:14px 0 16px}h1 em,.science-notes em{font-family:Georgia,serif;font-weight:400;letter-spacing:-.035em}h1 .gear-o{color:#ca7561}h1 .title-dash{font-weight:300;color:#aa9f92}.hero-deck{font-family:Georgia,serif;font-size:18px;line-height:1.42;color:#595a69;max-width:660px;margin:0}.ticket{flex-shrink:0;display:flex;gap:15px;align-items:center;border:1px dashed #cbb9a5;background:#f8e8d6;padding:16px 24px;transform:rotate(2deg);box-shadow:6px 7px 0 #e4d8c8}.ticket-icon{font-size:42px;color:#d47761}.ticket span,.ticket strong,.ticket small{display:block}.ticket span{font-weight:900;letter-spacing:.17em;font-size:9px}.ticket strong{font-size:16px;letter-spacing:-.03em}.ticket small{font-size:11px;color:#8e7970}.layout{display:grid;grid-template-columns:minmax(0,1.86fr) minmax(320px,.94fr);gap:22px;align-items:start}.left-rail{min-width:0}.stage-card{background:var(--navy);color:#faf7f1;border-radius:17px;overflow:hidden;box-shadow:var(--shadow)}.stage-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:23px 25px 8px}.stage-kicker,.section-num{font-size:10px;letter-spacing:.18em;font-weight:900;color:#cf806e}.stage-kicker{color:var(--brass)}.stage-kicker .record-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#71c9b8;margin-left:6px;box-shadow:0 0 13px #71c9b8}.stage-top h2{font-size:23px;letter-spacing:-.04em;margin:4px 0 0}.scene-tools{display:flex;gap:5px}.scene-tools button{background:#2f3450;color:#f4eee4;border:1px solid #4a4e67;border-radius:7px;padding:9px 10px;font-size:11px;font-weight:700}.scene-tools button:hover{background:#404963}.canvas-wrap{position:relative;height:clamp(345px,33vw,540px);overflow:hidden;background:radial-gradient(circle at 54% 42%,#343953,transparent 53%),#111525;touch-action:none}.canvas-wrap canvas{width:100%;height:100%;display:block;touch-action:none;cursor:grab}.canvas-wrap canvas:active{cursor:grabbing}#marker-layer{position:absolute;inset:0;pointer-events:none}.gear-marker{pointer-events:auto;position:absolute;transform:translate(-50%,-50%);border:1px solid #a2a9b1;background:#1b2038e6;border-radius:25px;color:#fff;font-size:11px;font-weight:800;padding:5px 11px;white-space:nowrap;box-shadow:0 4px 15px #0005}.gear-marker:first-child{border-color:#ec8068}.gear-marker.selected{background:#ffde9a;color:#1e243b;border-color:#ffde9a}.gear-marker small{font-size:9px;color:inherit;opacity:.75}.canvas-tutorial{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);color:#f7e9c3;font-size:10px;font-weight:750;white-space:nowrap;letter-spacing:.015em;padding:9px 15px;background:#171b2bbd;border:1px solid #47495b;border-radius:22px;pointer-events:none;text-align:center}.tutorial-symbol{font-size:14px}.hint-sep{color:#d6a460;margin:0 4px}#canvas-fallback{position:absolute;inset:10%;display:grid;place-items:center;text-align:center;background:#222740;color:#fff;padding:30px;font-size:18px}.playback{display:flex;align-items:center;justify-content:space-between;padding:15px 20px;border-top:1px solid #31364a;gap:12px}.transport-buttons{display:flex;gap:8px;flex-wrap:wrap}.transport-buttons button{border:1px solid #555c74;background:#2a3049;color:#fff;border-radius:6px;padding:9px 14px;font-size:11px;letter-spacing:.045em;font-weight:900}.transport-buttons button.play-primary{background:var(--brass);color:#20243a;border-color:var(--brass)}.transport-buttons button:hover{filter:brightness(1.12)}.timeline-info{text-align:right;font-size:9px;font-weight:800;letter-spacing:.1em;color:#a3aaba}.timeline-info strong{display:block;font-size:18px;letter-spacing:-.03em;color:#fff}.measure-section{margin-top:25px}.section-heading{display:flex;align-items:center;gap:10px}.section-heading h2{font-size:12px;letter-spacing:.045em;margin:0}.dotted-rule{flex:1;border-top:1px dashed #c7bdb3}.measure-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:11px;gap:8px}.measure{padding:17px 13px;background:#fffdf9;border:1px solid #e0dcd5;min-width:0;border-radius:7px;min-height:132px}.measure>span{font-size:10px;font-weight:850;letter-spacing:.06em;color:#8b8b93}.measure strong{display:block;line-height:1.2;font-size:26px;letter-spacing:-.065em;margin:12px 0 5px;white-space:nowrap}.measure strong i{font-style:normal;font-size:13px;letter-spacing:0;color:#a26f55}.measure .direction-value{font-size:21px;letter-spacing:-.05em;color:#c56a55}.measure small{font-size:10px;color:#85818a;line-height:1.25;display:block}.graph-card{background:#fffdf8;border:1px solid #e1ddd6;border-radius:12px;margin-top:22px;padding:22px 23px 12px}.graph-heading{display:flex;align-items:end;justify-content:space-between;gap:10px}.graph-heading h2{font-size:20px;letter-spacing:-.045em;margin:5px 0 0}.graph-badge{font-size:9px;font-weight:900;letter-spacing:.08em;color:#966e3a;background:#f8e5c4;padding:8px;border-radius:15px;white-space:nowrap}.graph-card p{margin:9px 0 0;font-size:12px;color:#77747e}.graph-card svg{width:100%;height:auto;display:block;margin-top:4px;touch-action:none;cursor:crosshair}.graph-footer{display:flex;justify-content:space-between;font-size:10px;letter-spacing:.065em;color:#88858e;padding:0 12px 4px;gap:8px}.graph-footer #graph-reading{font-weight:800;color:#8a6044}.learning-card{display:flex;gap:16px;margin-top:18px;background:#e9e2f0;border-radius:11px;padding:24px 23px}.learn-icon{color:#9d70af;font-size:31px}.learning-card h2{font-size:12px;letter-spacing:.12em;margin:0 0 10px}.learning-card ol{margin:0;padding-left:18px;font-size:12px;color:#625d72;line-height:1.6}.workbench{background:var(--paper);border:1px solid #e2ddd7;border-radius:14px;overflow:hidden;box-shadow:0 7px 30px #28243f09}.workbench-title{padding:25px 23px 17px;background:#fde4d4;border-bottom:1px solid #ead4c3}.workbench-title h2{font-size:31px;letter-spacing:-.06em;margin:7px 0 1px}.workbench-title p{margin:0;color:#a46b5b;font-family:Georgia,serif;font-size:14px}.wb-section{padding:19px 23px 21px;border-bottom:1px solid #e9e5df}.wb-title{display:flex;align-items:center;gap:10px;margin-bottom:12px}.wb-title>span:first-child{font-family:Georgia,serif;font-weight:bold;color:#cb8070;font-size:18px}.wb-title h3{font-size:11px;font-weight:900;letter-spacing:.12em;margin:0;flex:1}.wb-end{font-size:9px;letter-spacing:.03em;color:#bd927a;float:right}.preset-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.preset-grid button{border:1px solid #dfd9d1;background:#fff;border-radius:7px;padding:13px 7px;font-size:12px;font-weight:750;text-align:left;color:#484656}.preset-grid button.active,.preset-grid button:hover{background:#fee7d1;border-color:#d08d71;color:#793f32}.segmented{display:grid;grid-template-columns:repeat(3,1fr);padding:4px;background:#eeebe7;border-radius:8px;gap:4px}.segmented button{border:0;background:transparent;padding:10px 1px;font-size:10px;font-weight:900;border-radius:6px;color:#6f6d77}.segmented button.active{background:#282e49;color:#fff;box-shadow:0 2px 5px #2329412b}.micro-note{color:#88848b;margin:9px 0 0;font-size:11px}.rack-instruction{font-size:12px;color:#76707b;line-height:1.5;margin:0 0 11px}.gear-rack{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.gear-chip{border:1px solid #dedad2;border-radius:8px;min-height:75px;background:#f8f6f2;color:#282b44;padding:6px 3px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;user-select:none;touch-action:none}.gear-chip:hover{border-color:#c57e63;transform:translateY(-1px)}.gear-chip.selected{background:#fff0dc;border:2px solid #cd7d55}.gear-chip svg{height:29px;width:31px}.gear-chip strong{font-size:11px;font-weight:850}.gear-chip small{font-size:9px;color:#817e82}.station-row{display:flex;gap:6px;margin-top:12px}.station-row button{flex:1;min-width:0;border:1px solid #d7c6bd;background:#f7e3d8;border-radius:7px;padding:9px 4px;font-weight:900;font-size:11px;color:#6b4a42}.station-row button.active{background:#302c46;color:#fff}.picked-readout{font-size:11px;color:#b05b4a;margin-top:9px;font-weight:800}.speed-label{display:flex;align-items:center;justify-content:space-between;font-size:12px}.speed-label strong{color:#bf6f50;font-size:14px}.speed-slider{width:100%;margin:16px 0 3px;accent-color:#c56d54}.speed-ticks{display:flex;justify-content:space-between;font-size:9px;letter-spacing:.1em;font-weight:900;color:#aaa3a1}.notes-section>p{font-size:12px;color:#77737c}.notebook-actions{display:flex;gap:7px}.notebook-actions button{background:#343952;color:#fff;border:0;border-radius:7px;padding:11px 10px;font-size:10px;font-weight:900;flex:1}.notebook-actions button:last-child{background:#ece8e4;color:#383b52}.notebook-list{max-height:125px;overflow:auto;margin-top:11px;font-size:11px;color:#8c8585}.notebook-item{padding:6px 0;border-bottom:1px dashed #ddd4cb;color:#43445a}.challenge-deck{margin-top:37px;background:#22263e;border-radius:17px;overflow:hidden;box-shadow:var(--shadow);color:#fff}.challenge-header{padding:31px 31px 25px;display:flex;justify-content:space-between;gap:20px;background:radial-gradient(circle at 73% 16%,#434158 0,transparent 36%),#282b43;border-bottom:1px solid #51516a}.eyebrow.light{color:#fac68c}.challenge-header h2{font-size:clamp(25px,3vw,42px);letter-spacing:-.05em;margin:11px 0 3px}.challenge-header p{margin:0;color:#bcbacf;font-family:Georgia,serif;font-size:16px}.score-plate{text-align:center;min-width:140px;border:1px solid #74728a;border-radius:12px;padding:14px 13px;background:#292d48}.score-plate>span{font-size:9px;letter-spacing:.15em;color:#f4d19b;font-weight:900}.score-plate strong{font-size:42px;display:block;line-height:1.2}.score-plate small{font-size:14px;font-weight:600;color:#9da3b6}.score-dots{display:flex;gap:4px;justify-content:center;margin-top:7px}.score-dots i{width:8px;height:8px;border-radius:50%;background:#62667a}.score-dots i.solved{background:#f2bc65}.challenge-body{display:grid;grid-template-columns:minmax(260px,.7fr) minmax(0,1.4fr)}.challenge-body nav{padding:24px 24px 27px;border-right:1px solid #474a61}.challenge-nav-title{display:flex;justify-content:space-between;font-size:9px;font-weight:900;letter-spacing:.1em;color:#c3c3cf;margin-bottom:10px}.challenge-nav-title span{color:#f3bd6a}.challenge-list{display:grid;gap:4px}.quest{width:100%;border:1px solid transparent;background:none;color:#c7c7d5;border-radius:6px;text-align:left;padding:10px 11px;display:flex;align-items:center;gap:10px;font-weight:750;font-size:12px}.quest:hover{background:#363b59}.quest.active{border-color:#a78768;background:#414257;color:#fff}.quest-number{font-size:10px;color:#efa786;min-width:23px}.quest .quest-status{margin-left:auto;color:#d4b982}.quest.solved .quest-status{color:#a2e9c8}.new-set{background:none;border:1px dashed #b2a2a1;color:#e7cbc5;width:100%;margin-top:20px;border-radius:7px;padding:12px 5px;font-size:10px;letter-spacing:.06em;font-weight:900}.new-set:hover{background:#45435a}.question-panel{padding:25px 32px 22px;min-height:447px}.question-meta{display:flex;justify-content:space-between;align-items:center;color:#ffc586;font-size:10px;font-weight:900;letter-spacing:.13em}.question-panel h3{font-size:clamp(24px,2.5vw,37px);letter-spacing:-.05em;margin:18px 0 10px}.question-panel>p#exercise-prompt{font-size:16px;line-height:1.6;color:#d6d5df;max-width:700px;min-height:74px}.answer-wrap{margin:17px 0 20px}.answer-wrap label{display:block;font-size:11px;font-weight:850;letter-spacing:.1em;color:#f3c58b;margin-bottom:8px}.answer-wrap input{background:#fdfcf8;padding:15px 18px;font-size:22px;border:2px solid transparent;border-radius:8px;width:min(250px,90%);color:#2c2b3d}.unit-label{margin-left:10px;color:#ccc9dc}.choice-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:18px 0}.choice-option{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid #5b607c;border-radius:8px;color:#e5e5ef;cursor:pointer}.choice-option.selected,.choice-option:has(input:checked){background:#4e4c5e;border-color:#f8bd75}.choice-option input{accent-color:#eeb76d}.live-prompt{padding:14px;border:1px dashed #aa7d74;background:#343449;color:#ffdbac;border-radius:8px;font-size:13px;margin:17px 0 20px}.exercise-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.exercise-actions button{padding:11px 13px;background:#3a3f5b;color:#fff;border:1px solid #626782;border-radius:7px;font-size:10px;letter-spacing:.035em;font-weight:900}.exercise-actions button.check-answer{background:#f2bd6f;color:#292b41;border:1px solid #f2bd6f;padding:12px 17px}.exercise-actions button:hover{filter:brightness(1.12)}#feedback{min-height:25px;color:#e6d9c4;font-weight:700;font-size:13px;margin:15px 0}#feedback.correct{color:#b0f0c6}#feedback.incorrect{color:#ffc0ac}.help-box{background:#353954;color:#f1dbb7;border-left:3px solid #efb56f;padding:12px 14px;border-radius:5px;margin:10px 0;font-size:13px}.question-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:20px;padding-top:17px;border-top:1px solid #494e66}.question-bottom span{font-size:9px;color:#979bb4;font-weight:900;letter-spacing:.1em}.question-bottom button{background:none;border:0;color:#f2c184;font-weight:900;font-size:11px;white-space:nowrap}.science-notes{display:grid;grid-template-columns:.95fr 1.05fr;gap:40px;background:#fffaf2;border:1px solid #e9e0d4;padding:36px;margin-top:30px;border-radius:12px}.science-notes h2{font-size:32px;letter-spacing:-.055em;margin:9px 0 12px}.science-notes p{color:#69626a;font-size:13px;line-height:1.7}.equation-board{padding:26px;background:#f4e6d3;border-radius:10px}.equation-board>span{font-size:10px;letter-spacing:.12em;font-weight:900;color:#aa6e4f}.equation{font-family:Georgia,serif;font-size:16px;display:flex;align-items:center;gap:9px;margin:17px 0;font-weight:600}.fraction{display:inline-flex;flex-direction:column;line-height:1.15;text-align:center;font-size:14px}.fraction span:first-child{border-bottom:2px solid #b56f58;padding:0 4px 3px}.fraction span:last-child{padding:3px 4px 0}.equation-board small{color:#837a7d;font-size:10px;line-height:1.5;display:block;border-top:1px solid #d7c5ac;padding-top:13px}.footer{display:flex;justify-content:space-between;gap:15px;padding:28px 0 40px;font-size:10px;font-weight:850;letter-spacing:.11em;color:#8e8792}.footer span span{color:#d77f6b}.footer code{letter-spacing:0;font-weight:400}.drag-ghost{position:fixed;z-index:1000;pointer-events:none;transform:translate(-50%,-50%);background:#f8cf7f;color:#27293f;border:2px solid #21253c;border-radius:50%;width:69px;height:69px;display:grid;place-items:center;font-weight:900;box-shadow:0 13px 30px #0004}.dragging .gear-chip{cursor:grabbing}
@media(max-width:1140px){.site-shell{padding:0 24px}.layout{grid-template-columns:minmax(0,1.5fr) minmax(305px,.95fr)}.measure-grid{grid-template-columns:repeat(2,1fr)}.measure{min-height:105px}.ticket{padding:10px 14px}.ticket-icon{font-size:25px}}
@media(max-width:870px){.layout{grid-template-columns:1fr}.canvas-wrap{height:450px}.workbench{display:grid;grid-template-columns:repeat(2,1fr)}.workbench-title{grid-column:1/-1}.wb-section{border-right:1px solid #e9e5df}.notes-section{grid-column:1/-1}.intro{padding:28px 0}.ticket{display:none}.measure-grid{grid-template-columns:repeat(4,1fr)}.challenge-body{grid-template-columns:1fr}.challenge-body nav{border-right:0;border-bottom:1px solid #474a61}.challenge-list{grid-template-columns:repeat(3,1fr)}.quest{min-height:47px}.science-notes{gap:18px}}
@media(max-width:600px){.site-shell{padding:0 13px}.masthead{height:72px}.brand-mark{height:40px;width:40px;font-size:22px}.overline{font-size:8px;letter-spacing:.1em}.subbrand{font-size:10px}.mast-tags .tag-soft{display:none}.mast-tags .tag{font-size:8px;padding:6px}.intro{padding:23px 3px}h1{font-size:clamp(34px,9.5vw,47px);letter-spacing:-.06em}.hero-deck{font-size:15px}.stage-top{padding:15px 15px 6px}.stage-top h2{font-size:17px}.scene-tools button{padding:8px 6px;font-size:10px}.scene-tools button span{display:none}.canvas-wrap{height:320px}.canvas-tutorial{font-size:9px;bottom:6px;max-width:97%;white-space:normal}.playback{flex-direction:column;align-items:stretch}.timeline-info{text-align:left}.transport-buttons button{flex:1;font-size:10px;padding:10px 7px}.measure-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.measure{min-height:103px}.measure strong{font-size:23px}.graph-card{padding:16px 8px 10px}.graph-heading{padding:0 8px}.graph-heading h2{font-size:16px}.graph-badge{font-size:7px;padding:6px}.graph-card p{padding:0 8px}.graph-footer{font-size:9px}.workbench{display:block}.workbench-title{padding:18px}.wb-section{padding:15px 19px;border-right:0}.challenge-header{padding:21px 16px}.challenge-header h2{font-size:26px}.challenge-header p{font-size:13px}.score-plate{min-width:90px;padding:9px 5px}.score-plate strong{font-size:30px}.score-dots i{width:5px;height:5px}.challenge-body nav{padding:17px 11px}.challenge-list{grid-template-columns:repeat(2,1fr);gap:2px}.quest{font-size:10px;padding:9px 6px;gap:3px}.quest-number{min-width:19px}.question-panel{padding:20px 15px}.question-panel>p#exercise-prompt{font-size:14px}.choice-group{grid-template-columns:1fr}.exercise-actions button{padding:10px;font-size:9px}.question-bottom span{font-size:8px}.science-notes{grid-template-columns:1fr;padding:21px;gap:8px}.science-notes h2{font-size:27px}.equation{font-size:13px}.equation-board{padding:17px}.footer{flex-direction:column;font-size:9px;padding:22px 0 30px}.learning-card{padding:16px}.gear-marker{font-size:9px;padding:3px 7px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behaviour:auto!important;transition:none!important;animation:none!important}}
