@charset "UTF-8";
.clutch-mechanism{--force-color:#176650;border-top:1px solid #d5dfe9;padding:5px 12px 9px;background:#f4f7fb}
.mechanism-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:700;min-height:36px}
.mechanism-heading small{font-size:9px;font-weight:400;color:#647687;margin-left:5px}
.mechanism-heading button{font-size:11px;min-height:36px;min-width:72px;border:1px solid #d5dfe9;border-radius:20px}
.clutch-mechanism svg{display:block;width:100%;height:auto;max-height:133px;overflow:visible}
.clutch-mechanism svg text{font-size:10px;fill:#435e78}
.mechanism-block{fill:#e2eaf3;stroke:#8d9fb5}.mechanism-detail{fill:none;stroke:#6a7f98;stroke-width:2;stroke-linecap:round}
.mechanism-shaft{fill:none;stroke:#a6b6c8;stroke-width:7}.mechanism-leader{fill:none;stroke:#9dadc1;stroke-width:1}
.mechanism-spring{fill:none;stroke:#7a8fa8;stroke-linejoin:round}
.clutch-mechanism svg .mechanism-small{font-size:9px}.clutch-mechanism svg .mechanism-arrow{font-size:23px;fill:var(--force-color)}
.clutch-mechanism [data-part=flow]{stroke:var(--force-color)}.clutch-mechanism[data-flow=brake]{--force-color:#8655a5}.clutch-mechanism[data-flow=idle]{--force-color:#647687}
.mechanism-reading{display:flex;justify-content:space-between;gap:5px;align-items:center;font-size:10px;min-height:25px}.mechanism-reading strong{font-size:12px}.mechanism-reading span{color:var(--force-color)}
.mechanism-legend{display:flex;gap:10px;align-items:center;font-size:9px}.mechanism-legend span:first-child{color:#176650}.mechanism-legend span:nth-child(2){color:#8655a5}.mechanism-legend small{font-size:8px;color:#647687;margin-left:auto}
@media(max-width:760px){.clutch-mechanism{padding:2px 10px 7px}.clutch-mechanism svg{max-height:102px}.mechanism-heading{font-size:11px}.mechanism-reading strong{font-size:11px}.mechanism-legend{gap:7px}}
:root{--ink:#20394e;--muted:#647687;--blue:#205f9c;--green:var(--blue);--lime:#d9e9fb;--paper:#f2f5fa;--line:#d5dfe9;--orange:#be6c3d;font-family:-apple-system,BlinkMacSystemFont,"Noto Sans JP","Hiragino Kaku Gothic ProN",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a,input,[role=slider]{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit;border:0;background:none}button:focus-visible,a:focus-visible,[role=slider]:focus-visible{outline:3px solid #d69253;outline-offset:3px}button:disabled{cursor:default}button[hidden]{display:none}a{color:inherit}.app{max-width:1080px;margin:auto;padding:0 26px}header{display:flex;align-items:center;justify-content:space-between;height:76px;border-bottom:1px solid var(--line)}.brand{text-decoration:none;display:flex;align-items:center;gap:13px}.brand>b{color:var(--green);font-size:28px;font-style:italic;letter-spacing:-3px}.brand>span{font-size:13px;font-weight:700}.brand i{color:#9cabb9;margin:0 9px;font-style:normal}.tools{display:flex;gap:8px}.tools button{height:36px;border:1px solid var(--line);border-radius:20px;font-size:12px;padding:0 13px}.tools #help{width:36px;padding:0;font-weight:700}nav{display:flex;gap:9px;padding:24px 0 12px}.lesson{border:1px solid var(--line);border-radius:8px;text-align:left;padding:12px 20px;font-size:13px;flex:1;max-width:250px;display:flex;align-items:center;gap:10px}.lesson>span{font-size:11px;color:var(--muted);font-weight:700}.lesson.active{background:var(--green);color:#fff;border-color:var(--green)}.lesson.active>span{color:#d4e8ff}.lesson.done:not(.active)::after{content:'✓';margin-left:auto;color:var(--green)}.heading{display:flex;justify-content:space-between;align-items:center;margin:14px 0 22px}.eyebrow{font-size:10px;letter-spacing:.12em;font-weight:700;color:var(--muted)}h1{font-size:25px;margin:8px 0 0;letter-spacing:.02em}.quiet{font-size:12px;color:var(--muted);min-height:42px}main{display:grid;grid-template-columns:1.1fr 1fr;gap:24px;align-items:start}.view{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#fff}.scene{height:320px;position:relative;background:#e6eee2}canvas{width:100%;height:100%;display:block}.scene-tags{position:absolute;top:17px;left:17px;display:flex;gap:5px}.scene-tags span{font-size:10px;border-radius:5px;padding:5px 9px;background:#ffffffe3}.motion-tag{position:absolute;right:15px;top:17px;font-size:11px;background:#fff;color:var(--green);padding:5px 10px;border-radius:5px}.motion-tag.warning{background:#b85e2e;color:#fff}.scene-bottom{position:absolute;bottom:13px;left:17px;right:17px;display:flex;justify-content:space-between;font-size:10px;align-items:center}.lesson-label{letter-spacing:.14em;font-size:8px;color:#657a6d}#assistTag{color:var(--green);font-weight:600}.meters{display:grid;grid-template-columns:1.2fr .8fr 1fr;padding:20px 16px;gap:15px;min-height:88px}.meter-label{display:block;font-size:9px;color:var(--muted);margin-bottom:6px;white-space:nowrap}.rpm-line{display:flex;align-items:baseline;gap:4px}.meters strong{font-size:27px;line-height:1;font-weight:600;font-variant-numeric:tabular-nums}.meters small{font-size:10px;font-weight:400;margin-left:3px}.bars{display:flex;gap:2px;align-items:flex-end;height:16px;margin-left:5px}.bars i{width:3px;background:var(--green);border-radius:2px;transition:opacity .12s}.connection-box{border-left:1px solid var(--line);padding-left:12px}.power-track{height:5px;border-radius:4px;background:#e6edf5;margin:8px 0}.power-track i{display:block;height:100%;width:0;background:var(--green);border-radius:4px}.connection-box>span:last-child{font-size:10px}.coach{display:flex;gap:12px;align-items:flex-start;border-bottom:1px solid var(--line);padding:2px 0 19px;min-height:83px}.coach>span{width:32px;min-width:32px;height:32px;border-radius:50%;background:var(--lime);display:grid;place-items:center;font-size:11px;font-weight:700}.coach strong{display:block;font-size:15px;line-height:1.5}.coach p{font-size:12px;color:var(--muted);margin:5px 0 0;line-height:1.6}.controls{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding-top:18px}.control-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.control-title strong{font-size:13px}.control-title span{font-size:9px;color:var(--muted)}.clutch{height:222px;border:1px solid #ccd9e8;border-radius:11px;background:#e8eff7;position:relative;touch-action:none;user-select:none;cursor:ns-resize;overflow:hidden}.rail{position:absolute;top:36px;bottom:36px;width:5px;background:#c3d3e6;left:50%;border-radius:5px;transform:translateX(-50%)}.rail>i{position:absolute;bottom:0;width:100%;height:0;background:var(--green);border-radius:5px}.end-label{position:absolute;font-size:10px;width:100%;text-align:center;color:#4e657c}.end-label.top{top:9px}.end-label.bottom{bottom:9px}.clutch-knob{position:absolute;top:calc(100% - 36px);left:13px;right:13px;transform:translateY(-50%);height:37px;background:var(--green);border:1px solid #255e96;border-radius:7px;color:#fff;display:flex;align-items:center;justify-content:center;gap:9px;box-shadow:0 3px 0 #123b6330}.clutch-knob>span{font-size:23px;line-height:1;opacity:.6}.clutch-knob>b{font-size:11px;font-weight:500}.bite-guide{position:absolute;top:40%;height:20%;left:8px;right:8px;background:#6da4dd30;border-top:1px dashed #739bc6;border-bottom:1px dashed #739bc6;display:flex;align-items:center;padding:5px;font-size:9px;color:#456a92}.control-note{font-size:9px;color:var(--muted);margin:7px 0 0;text-align:center}.right-controls{display:flex;flex-direction:column;gap:10px}.gas-panel{flex:1;display:flex;flex-direction:column}.gas{background:#e8eff7;border:1px solid var(--line);border-radius:11px;flex:1;min-height:110px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;touch-action:none;user-select:none}.gas.manual{background:#e9eff8;border-color:#c2d2e6}.gas.pressed{background:var(--lime);border-color:#6487af;box-shadow:inset 0 3px 10px #213b3a12}.pedal-icon{font-size:28px;line-height:1;color:#6080a5}.gas strong{font-size:13px}.gas small{font-size:9px;color:var(--muted)}.park{background:#fff4e7;border:1px solid #e2c299;border-radius:9px;padding:13px 9px;display:flex;gap:9px;align-items:center;text-align:left;min-height:60px}.park strong{font-size:11px;display:block}.park small{font-size:10px;display:block;margin-top:5px;color:#8a6645}.brake-icon{font-size:25px;color:#a16a3b}.park.ready{background:#e3eed5;border-color:#648659}.park.released{background:#edf2f8;border-color:var(--line)}.brake{border:1px solid #d3bdae;background:#f3e9e0;border-radius:9px;padding:12px 5px;font-size:12px;touch-action:none;user-select:none;min-height:44px}.brake small{font-size:9px;margin-left:7px;color:#8b6d57}.brake.pressed{background:#d5b49a}.under-controls{display:flex;gap:8px;justify-content:space-between;align-items:center;margin-top:10px;font-size:9px;color:var(--muted)}.under-controls button{min-height:30px;font-size:10px;white-space:nowrap;text-decoration:underline;text-underline-offset:3px}footer{margin:25px 0 15px;border-top:1px solid var(--line);padding-top:17px;display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:10px;color:var(--muted)}footer button{font-size:10px;text-decoration:underline;text-underline-offset:3px;min-height:30px}dialog{width:min(440px,calc(100% - 28px));border:1px solid var(--line);border-radius:20px;padding:30px;color:var(--ink);background:#f8faff;box-shadow:0 20px 100px #16382e22;max-height:calc(100dvh - 28px);overflow:auto}dialog::backdrop{background:#172f4866;backdrop-filter:blur(5px)}dialog h2{font-size:28px;line-height:1.5;margin:10px 0 14px;letter-spacing:.01em}dialog p{font-size:13px;line-height:1.9;color:#53697f;margin:12px 0 18px}.modal-mark{width:48px;height:48px;border-radius:12px;background:var(--green);color:#fff;display:grid;place-items:center;font-weight:700;font-size:18px;margin-bottom:24px}.intro-steps{display:flex;flex-direction:column;gap:12px;padding:0 0 23px;font-size:12px}.intro-steps b{color:var(--green);margin-right:13px;font-size:10px}.primary{background:var(--green);border-radius:9px;min-height:49px;width:100%;padding:13px;font-size:14px;color:#fff;font-weight:600}.text-button{font-size:12px;min-height:45px;width:100%;color:var(--muted)}.modal-foot{display:block;font-size:9px;color:#7b877b;text-align:center;line-height:1.8;margin-top:8px}.result-symbol{display:grid;place-items:center;font-size:28px;background:var(--lime);color:var(--green);width:54px;height:54px;border-radius:50%;margin-bottom:23px}.result-tip{font-size:12px;line-height:1.9;background:#e9eff9;border-radius:10px;padding:15px;margin:18px 0 22px}#helpDialog{width:min(520px,calc(100% - 28px))}#helpDialog h2{font-size:23px}dialog ul{padding-left:19px;font-size:12px;line-height:1.8}dialog li{margin-bottom:10px}.note{background:#eaf0f8;padding:12px;border-radius:8px;font-size:11px!important}.setting{display:flex;align-items:center;gap:8px;font-size:12px;margin:15px 0;cursor:pointer}.setting input{accent-color:var(--green);width:17px;height:17px}#vibrationInfo{font-size:10px;color:var(--muted)}.keys,.source{font-size:10px!important;color:var(--muted)}body.hill .gas-panel{display:none}body.hill .park{flex:1;flex-direction:column;justify-content:center;align-items:center;text-align:center}body.hill .brake-icon{font-size:38px}body.hill .brake{min-height:56px}.paused .clutch,.paused .gas,.paused .park,.paused .brake{opacity:.5;pointer-events:none}.paused #pause{font-weight:700;color:var(--green)}
@media(max-width:760px){.app{max-width:500px;padding:0 16px}header{height:53px}.brand>b{font-size:25px}.brand>span{font-size:11px}.brand i{margin:0 5px}.tools{gap:5px}.tools button{height:30px;padding:0 9px;font-size:10px}.tools #help{width:30px}nav{padding:14px 0 0;gap:6px}.lesson{padding:11px 6px;font-size:11px;gap:5px;justify-content:center;border-radius:7px}.lesson>span{font-size:9px}.lesson.done:not(.active)::after{margin-left:0}.heading{margin:16px 0 13px}.heading .eyebrow{font-size:8px}h1{font-size:19px;margin-top:5px}.quiet{font-size:10px;min-height:30px}main{display:block}.view{border-radius:11px}.scene{height:170px}.scene-tags{top:10px;left:12px}.scene-tags span,.motion-tag{font-size:9px;padding:4px 7px}.motion-tag{right:10px;top:10px}.scene-bottom{left:12px;right:12px;bottom:8px;font-size:8px}.lesson-label{font-size:7px}.meters{padding:10px 12px;min-height:61px;gap:12px}.meter-label{font-size:8px;margin-bottom:5px}.meters strong{font-size:23px}.meters small{font-size:8px}.bars{height:13px;margin-left:2px}.bars i{width:2px}.connection-box>span:last-child{font-size:9px}.power-track{margin:7px 0 5px}.coach{padding:14px 0 10px;min-height:79px;gap:9px}.coach>span{width:27px;height:27px;min-width:27px;font-size:9px}.coach strong{font-size:13px}.coach p{font-size:10px;margin-top:3px;line-height:1.6}.controls{gap:14px;padding-top:12px}.clutch{height:181px}.control-title strong{font-size:11px}.control-title span{font-size:8px}.control-title{margin-bottom:7px}.clutch-knob{left:9px;right:9px;height:34px}.clutch-knob>b{font-size:10px}.gas{min-height:85px}.gas strong{font-size:11px}.gas small{font-size:8px}.brake{font-size:11px;padding:11px 4px}.brake small{font-size:8px;margin-left:4px}.under-controls{margin-top:5px;font-size:8px}.under-controls button{font-size:9px;min-height:28px}.control-note{font-size:8px;margin-top:5px}footer{margin-top:9px;padding-top:6px;font-size:8px;display:block;text-align:center}footer button{font-size:9px;display:block;margin:auto;min-height:27px}body.hill .park strong{font-size:11px}body.hill .brake-icon{font-size:30px}}
@media(max-width:760px) and (max-height:760px){header{height:47px}nav{padding-top:9px}.lesson{padding:9px 5px}.heading{margin:10px 0}.scene{height:132px}.meters{min-height:56px;padding:8px 12px}.coach{min-height:67px;padding:10px 0 8px}.controls{padding-top:9px}.clutch{height:151px}.clutch-knob{height:30px}.rail{top:31px;bottom:31px}.clutch-knob{top:calc(100% - 31px)}.end-label{font-size:9px}.end-label.top{top:7px}.end-label.bottom{bottom:7px}.bite-guide{font-size:8px}.control-title{margin-bottom:5px}footer{margin-top:4px}dialog{padding:24px}dialog h2{font-size:25px}.modal-mark{margin-bottom:16px}.intro-steps{gap:10px;padding-bottom:17px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

@media(max-width:760px){h1{font-size:16px}.heading .quiet{white-space:nowrap;flex-shrink:0;margin-left:8px}.heading>div{min-width:0}.heading{margin:10px 0}.scene{height:145px}.meters{padding-top:8px;padding-bottom:8px}.coach{min-height:65px;padding-top:10px;padding-bottom:8px}.controls{padding-top:9px}.clutch{height:155px}.right-controls{gap:8px}.under-controls{margin-top:3px}}
@media(max-width:760px) and (max-height:760px){.scene{height:122px}.clutch{height:143px}footer{padding-top:4px}footer button{min-height:24px}.brand>span{font-size:10px}}

.scene-status{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;background:#e6eee2;text-align:center;padding:28px;z-index:3;color:#526c5c;font-size:12px}.scene-status[hidden]{display:none}.scene-status button{background:var(--green);color:white;border-radius:6px;padding:10px 20px}.view-button{font-size:10px;background:#ffffffde;border:1px solid #c7d8ea;border-radius:6px;padding:7px 10px;min-height:30px;color:var(--green);pointer-events:auto}.view-button:disabled{opacity:.45}.scene-bottom{bottom:9px}.scene-tags{pointer-events:none}.motion-tag{pointer-events:none}.truck-badge{font-size:8px!important;letter-spacing:.04em;color:#5e7565}
@media(max-width:760px){.scene{height:180px}.view-button{font-size:9px;min-height:27px;padding:4px 8px}.scene-bottom{bottom:6px}.scene-tags span{padding:4px 6px}.truck-badge{display:none}}
@media(max-width:760px) and (max-height:760px){.scene{height:156px}}

.meters{grid-template-columns:1.2fr .8fr .62fr 1fr;gap:12px}.gear-panel{display:flex;align-items:center;flex-direction:column;border-left:1px solid var(--line);padding-left:8px;min-width:0}.gear-panel strong{color:var(--green);line-height:1}.gear-panel>span:last-child{font-size:8px;color:var(--muted);white-space:nowrap;margin-top:4px}.gear-panel.shifting{border-radius:5px}.connection-box{padding-left:8px}.clutch-knob{top:calc(100% - 36px)}
@media(max-width:760px){.meters{grid-template-columns:1.15fr .72fr .55fr 1.05fr;gap:7px;padding-left:10px;padding-right:10px}.meters strong{font-size:21px}.gear-panel{padding-left:5px}.gear-panel strong{font-size:25px}.gear-panel>span:last-child{font-size:7px}.connection-box{padding-left:5px}.meter-label{font-size:7px}.bars{display:none}.scene-tags span{font-size:8px}.motion-tag{font-size:8px}.clutch-knob{top:calc(100% - 31px)}}

/* Keep both direction labels clear of the handle at either endpoint. */
.rail{top:44px;bottom:44px}.clutch-knob{top:calc(100% - 44px)}
@media(max-width:760px){.rail{top:38px;bottom:38px}.clutch-knob{top:calc(100% - 38px)}}

/* 0.4: paired pedal levers and silent engine feedback. */
.control-title{min-height:26px}.assist-toggle{font-size:10px;border:1px solid #bfd0e6;border-radius:15px;padding:5px 9px;min-height:26px}.assist-toggle[aria-pressed=true]{background:#d9e9fb}.gas-panel{min-width:0}.gas-label{position:absolute;top:46%;width:100%;text-align:center;font-size:9px;color:#69774f}.accelerator{background:#e8eff7}.accelerator .clutch-knob{background:#446d98;border-color:#446d98}.accelerator .rail>i{background:linear-gradient(to top,#78985c 0%,#bc9a45 55%,#c45c3d 100%)}.accelerator[aria-disabled=true]{opacity:.65;cursor:default}.paused .accelerator{pointer-events:none;opacity:.5}
.foot-actions{display:flex;gap:10px;margin-top:10px;align-items:stretch}.foot-actions .brake{flex:1;min-height:44px}.foot-actions .park,body.hill .foot-actions .park{flex:1;min-height:44px;flex-direction:row;padding:6px 8px;text-align:left;justify-content:center}.foot-actions .park strong{font-size:10px}.foot-actions .park small{font-size:9px;margin-top:3px}body.hill .foot-actions .brake-icon{font-size:24px}body.hill .gas-panel{display:flex}
.view{--engine-color:#6a8177}.scene{overflow:hidden}.software-scene{position:absolute;inset:0;width:100%;height:100%}.scene-fx{position:absolute;inset:0;pointer-events:none;z-index:1;box-shadow:inset 0 0 30px transparent;transition:box-shadow .4s}.view[data-engine=high] .scene-fx{box-shadow:inset 0 0 28px #ca482f55}.view[data-engine=rough] .scene-fx{box-shadow:inset 0 -18px 25px #c7873155}.view[data-engine=bite] .scene-fx{box-shadow:inset 0 -18px 26px #2e916c33}.view[data-engine=stalled] canvas{filter:saturate(.35)}.scene-tags,.motion-tag,.scene-bottom{z-index:2}.rpm-scale{height:4px;background:#e8ebe0;border-radius:3px;margin-top:7px;overflow:hidden}.rpm-scale i{display:block;height:100%;background:var(--engine-color);transition:width .08s,color .3s}.high-rev #rpm{color:#c54a39}.engine-feedback{display:flex;align-items:center;justify-content:center;gap:9px;border-top:1px solid #d6e0eb;color:var(--engine-color);font-size:10px;min-height:28px;background:#f8faff}.engine-feedback>span:last-child{min-width:155px}#enginePulse{display:flex;align-items:center;gap:3px;height:19px}#enginePulse i{display:block;width:3px;height:17px;border-radius:2px;background:currentColor;transform:scaleY(.3)}
@media(max-width:760px){.control-title{min-height:24px}.assist-toggle{font-size:9px;padding:3px 8px;min-height:24px}.foot-actions{margin-top:6px;gap:8px}.meters{padding-top:7px;padding-bottom:7px}.engine-feedback{min-height:23px;font-size:9px}.engine-feedback>span:last-child{min-width:145px}.rpm-scale{margin-top:5px}.scene{height:150px}.coach strong{font-size:12px}.coach{min-height:60px}.gas-label{font-size:8px}}
@media(max-width:760px) and (max-height:760px){.scene{height:124px}.heading{margin:7px 0}.controls{padding-top:5px}.clutch{height:133px}.coach{min-height:56px;padding-top:7px;padding-bottom:5px}.foot-actions .brake,body.hill .foot-actions .brake{min-height:42px}.control-title{margin-bottom:3px}}
@media(prefers-reduced-motion:reduce){#enginePulse i{transition:none}.scene-fx{transition:none}canvas{transform:none!important}}

/* H gate follows the up/down buttons; the manual clutch must be disengaged. */
.controls{grid-template-columns:minmax(0,1fr) 96px minmax(0,1fr);gap:13px}.clutch-panel{min-width:0}.shifter-panel{min-width:0;display:flex;align-items:center;flex-direction:column}.shifter-panel .control-title{width:100%;justify-content:center;gap:8px}.shifter-panel .control-title span{padding:2px 5px;background:#e1ebd4;border-radius:4px;color:#3d6954}.shift-diagram{width:100%;height:194px;display:block;overflow:visible}.shift-gate{stroke:#101e1c;stroke-width:8;stroke-linecap:round;fill:none;filter:drop-shadow(0 1px 0 #6d7d72)}.shift-numbers{font-size:15px;font-weight:700;fill:#a1b0a5;paint-order:stroke;stroke:#203532;stroke-width:3px}.shift-number.selected{fill:#e0f2b0}.shift-number.reverse{fill:#ba8175}.shift-number.neutral{font-size:10px}.shift-status{font-size:12px;font-weight:700;color:#286451;min-height:20px;white-space:nowrap;margin-top:6px}.shifter-panel.is-shifting .shift-status{color:#387c95}.shifter-panel.is-shifting #shiftKnob>circle:first-child{stroke:#cce9fb}.shifter-panel .control-note{font-size:8px;margin-top:3px}.clutch-knob{left:8px;right:8px;gap:5px}.clutch-knob>span{font-size:19px}.clutch-knob>b{font-size:10px}.gas-label{font-size:8px}
@media(max-width:760px){.controls{grid-template-columns:minmax(0,1fr) 70px minmax(0,1fr);gap:8px}.control-title{flex-wrap:nowrap;gap:2px}.control-title strong{font-size:10px}.clutch-panel .control-title>span{display:none}.assist-toggle{padding:3px 5px;font-size:8px}.shifter-panel .control-title{gap:5px}.shift-diagram{height:124px}.shift-status{font-size:10px;min-height:15px;margin-top:2px}.shifter-panel .control-note{font-size:7px}.clutch-knob{left:5px;right:5px;gap:3px}.clutch-knob>span{font-size:15px}.clutch-knob>b{font-size:9px}.control-note{font-size:7px}.bite-guide{font-size:7px;left:5px;right:5px;padding:3px}.end-label{font-size:8px}}
@media(max-width:760px) and (max-height:760px){.shift-diagram{height:110px}.shift-status{min-height:15px}.shifter-panel .control-note{margin-top:2px}}

/* Manual up/down buttons remain at least 44px tall for touch. */
.shift-button{width:100%;min-height:44px;padding:4px 2px;border:1px solid #8ba99a;border-radius:8px;background:#e4eee2;color:#205c48;font-size:10px;font-weight:700;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;touch-action:manipulation;white-space:nowrap}.shift-button span{font-size:10px;line-height:1}.shift-button:disabled{opacity:.4}.shift-button:not(:disabled):active{background:#c6ddb9;transform:translateY(1px)}.shift-button.recommended{border-color:#176650;box-shadow:0 0 0 1px #176650 inset;background:#d9e9fb}.shifter-panel .shift-diagram{height:127px;margin:3px 0}.shifter-panel .shift-status{margin:0 0 3px;min-height:16px}.controls>.clutch-panel,.controls>.gas-panel{display:flex;flex-direction:column}.controls .clutch{flex:1;min-height:143px}.controls .control-note{flex-shrink:0}
@media(max-width:760px){.shift-button{font-size:9px}.shifter-panel .shift-diagram{height:88px;margin:2px 0}.shifter-panel .shift-status{font-size:9px;min-height:13px;margin:0 0 2px}.shifter-panel .control-title{margin-bottom:4px}.controls .clutch{min-height:155px}}
@media(max-width:760px) and (max-height:760px){.shifter-panel .control-title{display:none}.controls .clutch{min-height:143px}.shifter-panel .shift-diagram{height:82px}.shift-button{min-height:44px}.coach{min-height:60px}.scene{height:125px}}

@media(max-width:760px) and (max-height:760px){header{height:43px}nav{padding-top:6px}.heading{margin:6px 0}.coach{min-height:54px;padding-top:8px;padding-bottom:6px}.coach strong{font-size:12px}.scene{height:120px}}

/* Prolonged half-clutch warning: color and text, without flashing or extra panels. */
.clutch.wear-warning{border-color:#bf7a3e;background:#f5e5d0;box-shadow:inset 0 0 0 1px #d0a371}.clutch.wear-warning .bite-guide{background:#e9bc7950;border-color:#b57530;color:#874a1b}.coach.wear-warning strong{color:#985421}.coach.wear-warning>span{background:#f0d5b1;color:#8d511d}.view[data-engine=wear] .scene-fx{box-shadow:inset 0 -18px 25px #c7873145}

/* High-gear low rpm escalates from amber to red, with no flashing. */
.coach.low-rpm-warning strong{color:#99651d}.coach.low-rpm-warning>span{background:#f3dfb8;color:#87591d}.coach.low-rpm-critical strong{color:#a44130}.coach.low-rpm-critical>span{background:#f2d2c8;color:#9f3c2b}.rpm-box.low-rev,#rpmBox.low-rev{color:var(--engine-color)}#gearPanel.low-rev #gearValue{color:var(--engine-color)}.view[data-engine=low-rpm] .scene-fx{box-shadow:inset 0 -20px 30px #c7873145}.view[data-engine=lug-critical] .scene-fx{box-shadow:inset 0 -30px 35px #bd4b3a55}

/* A small whole-screen rattle conveys the approach to a stall. */
body{overflow-x:clip}.app.is-shaking{animation:clutch-rattle var(--rattle-rate,.13s) linear infinite;will-change:transform}
@keyframes clutch-rattle{0%,100%{transform:translate3d(0,0,0)}18%{transform:translate3d(calc(-1 * var(--rattle-x)),calc(.3 * var(--rattle-y)),0)}39%{transform:translate3d(var(--rattle-x),calc(-1 * var(--rattle-y)),0)}62%{transform:translate3d(calc(-.7 * var(--rattle-x)),var(--rattle-y),0)}83%{transform:translate3d(calc(.8 * var(--rattle-x)),calc(-.4 * var(--rattle-y)),0)}}
@media(prefers-reduced-motion:reduce){.app.is-shaking{animation:none;transform:none;will-change:auto}}

/* Key operation stays visible beside the silent engine feedback. */
.engine-feedback{justify-content:space-between;gap:10px;padding:5px 12px;min-height:56px}.ignition{display:flex;align-items:center;gap:7px;min-height:44px;min-width:142px;padding:2px 8px 2px 2px;text-align:left;border:1px solid #abc09f;border-radius:28px;background:#edf2e5;color:var(--ink);touch-action:manipulation}.ignition:not(:disabled):hover{background:#e0edca}.ignition:not(:disabled):active{background:#d1e4b8}.key-dial{width:42px;height:42px;flex-shrink:0}.key-turn{transform-origin:28px 28px;transform:rotate(-30deg);transition:transform .2s ease}.ignition[data-state=starting] .key-turn{transform:rotate(65deg)}.ignition[data-state=running] .key-turn,.ignition[data-state=stalled] .key-turn{transform:rotate(30deg)}.key-caption{display:flex;flex-direction:column;gap:3px;white-space:nowrap}.key-caption small{font-size:8px;letter-spacing:.12em;color:var(--muted)}.key-caption b{font-size:10px;font-weight:600}.ignition[data-state=running]{background:#f5f7ef;border-color:#d5dfe9}.ignition[data-state=starting]{border-color:#497b89;background:#e5edf0}.ignition[data-state=stalled]{border-color:#b87c53;background:#f4e6d7}.engine-sensation{display:flex;flex-direction:column;align-items:center;gap:3px;flex:1;min-width:0;text-align:center;line-height:1.4}.view[data-engine=off] canvas{filter:saturate(.55)}
@media(max-width:760px){.engine-feedback{padding:3px 8px;gap:6px;min-height:52px}.ignition{min-width:137px}.engine-sensation{font-size:8px}.engine-sensation #enginePulse{height:16px}}
@media(prefers-reduced-motion:reduce){.key-turn{transition:none}}
@media(max-width:760px) and (max-height:760px){.heading h1{font-size:14px;margin-top:4px}.heading .eyebrow{font-size:8px;letter-spacing:.03em}.scene{height:110px}.meters{padding-top:5px;padding-bottom:5px;min-height:54px}.meter-label{margin-bottom:4px}.rpm-scale{height:3px;margin-top:4px}.key-dial{width:38px;height:38px}.ignition{min-height:44px}.engine-feedback{min-height:51px}}
/* A single mission, guided by the supplied central instructor. */
.mission-heading{flex:1;min-width:0}.heading h1{font-size:21px;margin:0 0 8px}.mission-track{display:flex;gap:5px;list-style:none;padding:0;margin:0;max-width:390px}.mission-track li{flex:1;font-size:11px;text-align:center;color:var(--muted);padding:4px 2px;border-bottom:3px solid #d5dfe9;white-space:nowrap}.mission-track li.current{background:#e5eddc;color:var(--green);border-color:var(--green);font-weight:700;border-radius:4px 4px 0 0}.mission-track li.done{color:var(--green);border-color:#91b476}.heading .quiet{margin-left:15px}.engine-feedback .ignition{flex-shrink:0}.engine-sensation{order:0}.ignition{order:1}#missionNote{font-size:9px;color:var(--green);background:#ffffffe6;border-radius:4px;padding:3px 5px;font-variant-numeric:tabular-nums;white-space:nowrap}
.coach{gap:10px;padding:0 0 12px;align-items:center;border-bottom:0;min-height:96px}.instructor{width:68px;flex:0 0 68px;align-self:end;text-align:center}.instructor-portrait{display:block;position:relative;overflow:hidden;width:68px;height:76px;background:#e5edf8;border-radius:16px 16px 9px 9px;border:1px solid #c8d7e9}.instructor-portrait img{position:absolute;width:840%;height:auto;max-width:none;left:calc(50% - 2px);top:-3px;transform:translateX(-50%);pointer-events:none}.instructor-name{font-size:9px;color:var(--muted);display:block;margin-top:2px}.coach-speech{position:relative;flex:1;min-width:0;padding:10px 12px;background:#fbfdff;border:1px solid #ccdaeb;border-radius:12px 12px 12px 3px}.coach-speech:before{content:'';position:absolute;width:9px;height:9px;left:-6px;top:24px;background:inherit;border-left:1px solid #ccdaeb;border-bottom:1px solid #ccdaeb;transform:rotate(45deg)}.coach p{margin-top:4px}.coach.low-rpm-warning .coach-speech,.coach.wear-warning .coach-speech{background:#fff4df;border-color:#dfbd82}.coach.low-rpm-critical .coach-speech{background:#fce8e0;border-color:#d79d8b}.coach.mission-complete .coach-speech{background:#e0eefc;border-color:#a2beda}.coach.mission-complete strong{color:var(--green)}
@media(max-width:760px){.heading h1{font-size:15px;margin:0 0 4px}.mission-track{gap:3px;max-width:270px}.mission-track li{font-size:9px;padding:2px 0;border-bottom-width:2px}.heading .quiet{margin-left:10px}.scene-bottom #assistTag{display:none}.coach{gap:8px;padding:5px 0;min-height:70px}.instructor{width:50px;flex-basis:50px}.instructor-portrait{width:50px;height:53px;border-radius:12px 12px 7px 7px}.instructor-name{font-size:8px;margin-top:0;line-height:11px}.coach-speech{padding:6px 8px;border-radius:10px 10px 10px 3px}.coach strong{font-size:11px;line-height:1.4}.coach p{font-size:9px;line-height:1.5;margin-top:3px}.coach-speech:before{top:20px}}
@media(max-width:760px) and (max-height:760px){.heading{margin:4px 0}.heading h1{font-size:14px;margin:0 0 4px}.scene{height:100px}.coach{padding:3px 0;min-height:70px}.controls{padding-top:3px}}

@media(max-width:760px){.coach strong{font-size:12px}.coach p{font-size:10px}}

/* One orange cue follows the next action, with direction and text as well as color. */
.next-action{outline:3px solid #e77b16!important;outline-offset:2px;box-shadow:0 0 0 5px #f6ad4e35!important}
button.next-action{background:#ffdfb3!important;color:#713700!important;border-color:#ce6710!important}
.clutch.next-action{background:#fff0db;border-color:#e77b16}
.clutch.next-action .clutch-knob{background:#b95109;color:#fff;border-color:#c5640f}
.next-action[data-next-direction=up]>.top,.next-action[data-next-direction=down]>.bottom{background:#f9c67f;color:#773600;border-radius:4px;padding:2px 4px;font-weight:800}
.coach-speech{position:relative}
.action-cue{position:absolute;right:8px;top:-8px;padding:1px 5px;border:1px solid #e39b48;border-radius:5px;background:#fff0db;color:#864000;font-size:9px;font-weight:700;line-height:13px;white-space:nowrap;max-width:95%}
.action-cue[hidden],#rpmTarget[hidden],#rpmNeedle[hidden]{display:none}
.rpm-scale{position:relative;height:6px}
#rpmTarget{position:absolute;top:0;bottom:0;background:#f9b84b;border-left:1px solid #a45400;border-right:1px solid #a45400;opacity:.9}
#rpmNeedle{position:absolute;top:0;bottom:0;width:2px;background:#233c39;box-shadow:0 0 0 1px #fff;transform:translateX(-1px)}
.rev-matching #rpmLabel{color:#a55408;font-weight:700}
.rev-matching[data-match=matched] #rpmTarget{background:#7bbf84;border-color:#377d45}
@media(max-width:760px){.action-cue{font-size:8px;line-height:11px;top:-7px}.coach-speech{padding-top:9px}.next-action{outline-width:2px!important;outline-offset:1px}}

/* Engine braking and an actual RPM rise are distinct from the red over-rev warning. */
#rpmBox.engine-braking:not(.high-rev) #rpmFill{background:#377b91}
#rpmBox.rpm-surging:not(.high-rev){box-shadow:inset 0 -3px #d99b38}#rpmBox.rpm-surging:not(.high-rev) #rpm{color:#ffd08a}
.view[data-engine=engine-braking] .scene-fx{background:linear-gradient(0deg,#3e8fa22b,transparent 70%);opacity:1}
.view[data-engine=gear-grind] .scene-fx{box-shadow:inset 0 0 38px #b45b3580;background:repeating-linear-gradient(115deg,#b95c1814 0 3px,transparent 3px 13px)}
.shifter-panel.is-grinding .shift-status{color:#a05225}.shifter-panel.is-grinding #shiftKnob>circle:first-child{stroke:#e99b47;filter:drop-shadow(0 0 5px #df7339)}

.shift-number.available{fill:#ffb966;stroke:#352c20}
.shortcut-strip{display:flex;align-items:center;justify-content:center;gap:10px;padding:6px 8px;color:#60736b;font-size:10px;line-height:1.5;text-align:center}
.shortcut-strip button{color:#176650;text-decoration:underline;white-space:nowrap;font-size:10px}
@media(max-width:760px){.shortcut-strip{display:none}}

/* Put each primary keyboard action beside its on-screen control. */
button[data-key]{position:relative}
button[data-key]::after,.key-tip,.control-keys kbd{font-family:inherit;font-size:8px;font-weight:700;line-height:1.2;color:#365f4e;background:#fffdf4;border:1px solid #b8cbbc;border-radius:4px;padding:1px 3px;box-shadow:0 1px 1px #153e2618}
button[data-key]::after{content:attr(data-key);position:absolute;right:3px;top:2px;pointer-events:none}
button[data-key]:disabled::after{opacity:.7}
.lesson .key-tip{margin-left:4px;flex-shrink:0}
#viewButton,#reset,#gasAssist{padding-right:20px}
#viewButton::after,#reset::after,#gasAssist::after{top:50%;transform:translateY(-50%)}
.control-keys{margin:2px 0 0;text-align:center;color:#66776b;font-size:9px;line-height:1.35;white-space:nowrap}
.control-keys kbd{font-size:8px;padding:0 3px}
@media(max-width:760px){button[data-key]::after,.key-tip,.control-keys kbd{font-size:7px;padding:0 2px}.control-keys{font-size:7px}.lesson .key-tip{margin-left:1px}#viewButton,#reset,#gasAssist{padding-right:14px}}

/* Keep the new name and longer subtitle readable beside the header tools. */
.brand-copy{min-width:0;line-height:1.25}.brand-copy small{display:block;margin-top:3px;color:var(--muted);font-size:10px;font-weight:500;white-space:nowrap}
@media(max-width:760px){.brand{gap:8px;min-width:0}.brand-copy small{font-size:8px;margin-top:2px;letter-spacing:-.02em}.brand i{margin:0 3px}}
@media(max-width:360px){.brand-copy small{font-size:7px}}

/* Leave a scrollable gutter above mobile browsers with bottom URL/tool bars. */
@media(max-width:760px),(pointer:coarse) and (max-height:760px){html{scroll-padding-bottom:calc(120px + env(safe-area-inset-bottom,0px))}.app{padding-bottom:calc(120px + env(safe-area-inset-bottom,0px))}.foot-actions{scroll-margin-bottom:calc(120px + env(safe-area-inset-bottom,0px))}}
@media(max-width:760px){.foot-actions .brake{font-size:13px;font-weight:700;min-height:48px}.foot-actions .brake small{font-size:10px;font-weight:600;color:#5a463a}}
.scene[data-cockpit="true"] .scene-tags,.scene[data-cockpit="true"] .motion-tag{display:none}

/* 0.44: readable mechanical cutaway and tactile pedal controls. */
.view{display:flex;flex-direction:column}.view>.scene{order:1}.view>.meters{order:2}.view>.engine-feedback{order:3}.view>.clutch-mechanism{order:4}
.visual-tabs{display:none}.scene{height:275px}
.clutch-mechanism{--force-color:#176650;padding:8px 16px 12px;background:#f4f7fb}
.mechanism-heading{font-size:13px;min-height:38px;gap:8px}.mechanism-heading small{font-size:10px}.mechanism-heading button{min-height:36px;flex-shrink:0}
.clutch-mechanism svg{max-height:155px;width:100%;overflow:hidden}.clutch-mechanism svg text{font-size:12px;font-weight:600}
.mechanism-input-shaft{fill:none;stroke:#a48a5d;stroke-width:6}.mechanism-cover{fill:none;stroke:#9cafa4;stroke-width:2;stroke-linejoin:round}.mechanism-bearing{fill:#cfdae0;stroke:#647c8b;stroke-width:1.5}.mechanism-fork{fill:none;stroke:#647c8b;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.clutch-mechanism [data-part=spring]{fill:none;stroke:#647c68;stroke-width:3;stroke-linecap:round}
.mechanism-reading{font-size:11px;min-height:26px;line-height:1.5;flex-wrap:wrap}.mechanism-reading strong{font-size:13px}.mechanism-reading span{font-weight:600}
.mechanism-force-track{height:10px;position:relative;margin:0 8px 3px;display:flex;align-items:center;padding-right:27px}
.mechanism-force-track i{display:block;width:100%;background:repeating-linear-gradient(90deg,var(--force-color) 0 9px,transparent 9px 18px);border-radius:3px}
.mechanism-force-track span{position:absolute;right:0;top:-8px;font-size:23px;color:var(--force-color)}
.mechanism-rpms{display:flex;justify-content:space-between;gap:6px;color:#62766b;font-size:11px;font-variant-numeric:tabular-nums}.mechanism-rpms b{color:#294d40;font-size:13px;font-weight:600}.mechanism-rpms small{font-size:10px}
.mechanism-details{font-size:11px;line-height:1.6;margin-top:5px}.mechanism-details summary{cursor:pointer;min-height:32px;display:list-item;align-content:center;color:#506a5e}.mechanism-details p{margin:7px 0 0;color:#52685c}.mechanism-parts{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.mechanism-parts span{background:#e2e9df;border-radius:3px;padding:0 4px}.legend-drive{color:#176650}.legend-brake{color:#80509b}
.controls{gap:15px}.controls .clutch{min-height:234px;height:234px;flex:none;background:linear-gradient(100deg,#e7ebe3,#f4f5ee 48%,#e5eae0);border:1px solid #c8d2c5;border-radius:15px;box-shadow:inset 0 2px 6px #273d2710;overflow:hidden}
.controls .clutch .rail{top:var(--pedal-margin,68px);bottom:var(--pedal-margin,68px);width:4px;background:#bac8b7;opacity:.8}
.controls .clutch-knob{left:50%;right:auto;width:94px;height:50px;transform:translate(-50%,-50%);border:0;border-radius:0;background:transparent!important;box-shadow:none;color:#263b34;isolation:isolate;pointer-events:none}
.controls .clutch-knob .pedal-pad{position:absolute;inset:0;display:block;opacity:1;font-size:0;z-index:1;border:2px solid #3a4840;border-radius:11px;background:repeating-linear-gradient(0deg,transparent 0 7px,#182c2655 7px 9px),linear-gradient(135deg,#56645b,#35453e);box-shadow:0 5px 0 #253b30,0 7px 8px #22362430,inset 0 1px 1px #ffffff60;transform:perspective(240px) rotateX(calc(var(--pedal-press,0)*16deg));transform-origin:50% 85%}
.controls .accelerator .clutch-knob{width:47px;height:72px}.controls .accelerator .pedal-pad{border-radius:12px;background:repeating-linear-gradient(90deg,transparent 0 8px,#162b2355 8px 10px),linear-gradient(135deg,#586757,#334536)}
.pedal-foot{position:absolute;left:50%;top:50%;width:57px;height:117px;transform:translate(-50%,-50%) rotate(-5deg);z-index:2;overflow:visible;opacity:.2;pointer-events:none}.accelerator .pedal-foot{transform:translate(-50%,-50%) scaleX(-1) rotate(-5deg)}
.shoe-upper{fill:#dce1d3;stroke:#536d5c;stroke-width:2}.shoe-seam{fill:none;stroke:#506550;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.controls .clutch.next-action .pedal-pad{outline:2px solid #c66722;outline-offset:3px;box-shadow:0 5px 0 #253b30,0 0 0 6px #f0c39566}
.controls .end-label{font-size:11px;line-height:1.4;z-index:3;pointer-events:none}.controls .end-label.top{top:8px}.controls .end-label.bottom{bottom:8px}
.controls .bite-guide{font-size:10px;left:6px;right:6px;justify-content:flex-start;padding-left:3px;height:19%;top:41%;color:#526b43;pointer-events:none}.controls .gas-label{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.pedal-readout{font-size:12px;font-weight:600;line-height:1.5;min-height:20px;margin:8px 0 0;text-align:center;color:#315744}.pedal-readout span{font-weight:400;font-size:11px}.control-note{font-size:10px;line-height:1.5;min-height:15px;margin-top:3px}.control-keys{font-size:10px;white-space:normal;line-height:1.6}.control-keys kbd{font-size:9px}
.shifter-panel{justify-content:flex-start}.shifter-panel .shift-button{min-height:44px;font-size:11px}.shifter-panel .shift-diagram{height:143px;margin:9px 0}.shift-status{font-size:11px!important;min-height:20px!important}
.coach strong{font-size:15px}.coach p{font-size:12px}.under-controls{font-size:11px;line-height:1.5}.under-controls button{font-size:11px;min-height:36px}
@media(max-width:760px){
 .visual-tabs{order:0;display:flex;background:#edf1e7;padding:4px;gap:4px;border-bottom:1px solid #d5dfe9}.visual-tabs button{flex:1;min-height:36px;font-size:12px;font-weight:600;border-radius:7px;color:#587061}.visual-tabs button[aria-selected=true]{background:#fff;box-shadow:0 1px 3px #1c3d2518;color:#185b43}
 .view[data-panel=truck]>.clutch-mechanism{display:none}.view[data-panel=clutch]>.scene{display:none}.view>.clutch-mechanism{order:1}
 .clutch-mechanism{padding:5px 11px 7px}.mechanism-heading{min-height:23px;font-size:12px}.mechanism-heading small{font-size:9px}.mechanism-heading button{display:none}.clutch-mechanism svg{height:99px;max-height:none}
 .mechanism-reading{font-size:10px;min-height:23px;gap:3px}.mechanism-reading strong{font-size:12px}.mechanism-rpms{font-size:10px}.mechanism-rpms b{font-size:12px}.mechanism-details{font-size:11px;margin-top:2px}.mechanism-details summary{min-height:30px}
 .controls{grid-template-columns:minmax(0,1fr) 74px minmax(0,1fr);gap:9px;padding-top:9px}.controls .clutch{height:218px;min-height:218px}.controls .clutch-knob{width:80px;height:46px}.controls .accelerator .clutch-knob{width:42px;height:66px}.pedal-foot{width:54px;height:111px}
 .control-title strong{font-size:13px}.control-title span{font-size:10px}.controls .end-label{font-size:10px}.controls .bite-guide{font-size:10px}
 .shifter-panel .control-title{display:flex;margin-bottom:8px}.shifter-panel .control-title span{display:none}.shifter-panel .shift-button{font-size:10px;min-height:44px;padding:5px 1px}.shifter-panel .shift-diagram{height:104px;margin:8px 0}.shift-status{font-size:10px!important}
 .pedal-readout{font-size:11px;margin-top:7px;min-height:18px}.control-note{font-size:10px;min-height:30px;line-height:1.4}.control-keys{font-size:9px;line-height:1.5}.control-keys kbd{font-size:8px}.coach strong{font-size:13px}.coach p{font-size:11px}.coach{min-height:76px}.under-controls{font-size:10px}.under-controls button{font-size:11px;min-height:40px}
 .scene{height:130px}.meters .meter-label{font-size:10px}.connection-box>span:last-child{font-size:10px}.gear-panel>span:last-child{font-size:9px}.engine-sensation{font-size:10px}.mechanism-parts{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:360px){.app{padding-left:10px;padding-right:10px}.controls{grid-template-columns:minmax(0,1fr) 68px minmax(0,1fr);gap:7px}.controls .clutch-knob{width:69px}.controls .accelerator .clutch-knob{width:40px}.mechanism-reading{display:block}.mechanism-reading span{display:block}.mechanism-rpms{font-size:9px}.mechanism-rpms b{font-size:11px}.control-title{gap:2px}.control-title span{display:none}}
/* Design pass 1: keep the complete cutaway in the desktop view and equal foot contrast. */
@media(min-width:761px){header{height:64px}nav{padding-top:18px}.heading{margin:10px 0 17px}.scene{height:235px}.clutch-mechanism svg{height:125px}.mechanism-heading{min-height:36px}.clutch-mechanism{padding-top:5px}.controls{padding-top:13px}}
.controls .accelerator[aria-disabled=true]{opacity:1}
/* Design pass 2: short headers on narrow phones, readable labels in scaled SVG. */
@media(max-width:760px){.mechanism-heading{display:none}.clutch-mechanism svg text{font-size:17px}.mechanism-reading{font-size:11px}.mechanism-rpms{font-size:11px}.control-title strong{font-size:12px;white-space:nowrap}#gasAssist{font-size:9px;padding-left:5px;padding-right:12px;min-height:28px;white-space:nowrap}.mechanism-details summary{font-size:11px;color:#415d4e}}
/* Design pass 4: keep the start action visible in a short landscape viewport. */
@media(max-height:480px){#intro{padding:12px 20px;border-radius:12px}#intro .modal-mark{width:27px;height:27px;font-size:12px;border-radius:7px;margin-bottom:4px}#intro h2{font-size:19px;line-height:1.15;margin:4px 0}#intro p{font-size:10px;line-height:1.35;margin:5px 0}#intro .intro-steps{gap:2px;padding:4px 0}#intro .intro-steps span{font-size:10px;line-height:1.25}#intro .primary{min-height:40px;padding:8px;font-size:12px}#intro .modal-foot{display:none}}
/* Landscape phone: place the visual and controls side by side. */
@media(min-width:650px) and (max-width:760px) and (max-height:500px){.app{max-width:none;padding-left:16px;padding-right:16px}main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}.scene{height:112px}.controls .clutch{height:202px;min-height:202px}.shifter-panel .shift-diagram{height:88px}.coach{min-height:60px}#intro .primary{margin-top:7px}}
/* A changing RPM hint must not resize the speed column on a narrow display. */
.meters{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr) minmax(0,.62fr) minmax(0,1fr)}
.meters>div{min-width:0}
.meters #rpmLabel{white-space:pre-line;line-height:1.15;min-height:2.3em;overflow:hidden}
.meters .speed-box{white-space:nowrap}
.meters .connection-box>span:last-child{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:760px){.meters{grid-template-columns:minmax(0,1.15fr) minmax(64px,.72fr) minmax(0,.55fr) minmax(0,1.05fr)}}
/* Detailed, still diagrammatic silhouettes: the engine and gearbox do not move with the clutch plates. */
.clutch-mechanism .mechanism-gear-badge{fill:#234b3c;stroke:#d8e6d5;stroke-width:1.5}
.clutch-mechanism svg .mechanism-gear-value{fill:#fff;font-size:13px;font-weight:800;letter-spacing:.02em}
.controls .clutch-knob .pedal-name{position:absolute;z-index:3;left:50%;bottom:5px;transform:translateX(-50%);font-size:8px;line-height:1.25;letter-spacing:.04em;white-space:nowrap;color:#f7f8f0;background:#203a32e8;border-radius:3px;padding:1px 4px;pointer-events:none}
@media(max-width:760px){.clutch-mechanism svg .mechanism-gear-value{font-size:17px}.controls .clutch-knob .pedal-name{font-size:8px;bottom:4px}}

/* 0.48: compact view button and a shared visual slot on phones. */
.view>.clutch-mechanism{order:1}
.view[data-panel=truck]>.clutch-mechanism{display:none}
.view[data-panel=clutch]>.scene{display:none}
.clutch-mechanism .mechanism-heading button{display:none}
.engine-feedback #viewButton{flex:0 0 auto;min-height:36px;padding:5px 18px 5px 8px;background:#fffdf4;border:1px solid #b9cbb8;border-radius:8px;font-size:11px}
.engine-feedback .engine-sensation{min-width:0}
@media(max-width:760px){
 .app{padding:0 10px max(8px,env(safe-area-inset-bottom,0px))}
 html{scroll-padding-bottom:env(safe-area-inset-bottom,0px)}
 header{height:38px}
 .brand-copy small{display:none}
 .tools{gap:3px}
 .tools button{height:30px;padding:0 8px;font-size:10px}
 .tools #help{height:30px;width:30px}
 .tools #pause{font-size:0;width:30px;padding:0}
 #pause::before{content:'Ⅱ';font-size:14px}
 .paused #pause::before{content:'▶'}
 nav{padding:4px 0;gap:6px}
 .lesson{padding:4px 8px;min-height:34px;gap:5px;max-width:none}
 .heading{margin:2px 0 4px;min-height:27px}
 .heading h1{font-size:14px;margin:0}
 .heading .quiet{min-height:30px}
 .mission-track{display:none}
 .view{--visual-height:108px}
 .view>.scene{height:var(--visual-height)}
 .scene-bottom{bottom:5px;left:7px;right:7px}
 .meters{padding:4px 6px;gap:4px;min-height:54px}
 .meters strong{font-size:20px}
 .meter-label{margin-bottom:3px}
 .connection-box{padding-left:6px}
 .engine-feedback{min-height:46px;padding:2px 5px;gap:4px}
 .engine-feedback #viewButton{min-height:38px;font-size:10px;padding-left:5px;padding-right:13px}
 .engine-sensation #engineFeel{display:none}
 .engine-sensation #enginePulse{gap:2px}
 .engine-sensation #enginePulse i{width:2px}
 .engine-feedback .ignition{min-width:119px;min-height:40px;gap:3px;padding-right:12px}
 .key-dial{width:34px;height:34px}
 .coach{min-height:58px;padding:3px 0;gap:6px}
 .instructor{width:42px;flex-basis:42px}
 .instructor-portrait{width:42px;height:45px}
 .coach-speech{padding:8px 7px 5px}
 .coach strong{font-size:12px;line-height:1.35}
 .coach p{font-size:10px;line-height:1.35;margin-top:2px}
 .controls{padding-top:3px;gap:8px}
 .control-title{margin-bottom:3px;min-height:26px}
 .controls .clutch{height:148px;min-height:148px}
 .shifter-panel .control-title{margin-bottom:3px;min-height:26px}
 .shifter-panel .shift-diagram{height:60px;margin:2px 0}
 .shifter-panel .shift-status{min-height:16px!important;margin:0;font-size:10px!important}
 .shifter-panel .shift-button{min-height:44px}
 .pedal-readout{margin:2px 0 0;min-height:16px;line-height:1.3}
 .control-note,.control-keys{display:none}
 .foot-actions{margin-top:4px;scroll-margin-bottom:env(safe-area-inset-bottom,0px)}
 .foot-actions .park,.foot-actions .brake{min-height:46px}
 .under-controls,.shortcut-strip,footer{display:none}
 .view>.clutch-mechanism{height:var(--visual-height);padding:2px 6px;overflow:hidden}
 .clutch-mechanism svg{height:calc(var(--visual-height) - 25px);max-height:none}
 .mechanism-reading{min-height:21px;line-height:1.2;font-size:10px;display:flex;flex-wrap:nowrap}
 .mechanism-reading strong{font-size:11px;white-space:nowrap}
 .mechanism-reading span{font-size:10px;white-space:nowrap}
 .mechanism-rpms,.mechanism-force-track,.mechanism-details{display:none}
}
@media(max-width:760px) and (max-height:620px){
 header{height:34px}
 .view{--visual-height:86px}
 .controls .clutch{height:134px;min-height:134px}
 .shifter-panel .shift-diagram{height:48px}
 .coach{min-height:52px}
 .coach-speech{padding-top:7px}
 .foot-actions .park{padding:4px}
}
@media(max-width:360px){
 .app{padding-left:8px;padding-right:8px}
 .brand{gap:5px}.brand>span{font-size:10px}.brand>b{font-size:23px}
 .meters{gap:3px;padding-left:5px;padding-right:5px}
 .engine-feedback .ignition{min-width:108px;gap:2px}
 .key-caption b{font-size:9px}
 .controls{grid-template-columns:minmax(0,1fr) 68px minmax(0,1fr);gap:6px}
 .control-title strong{font-size:11px}
}
/* Compact pass 2: put course selection and utility buttons on one line. */
@media(max-width:760px){
 .app{position:relative}
 header{height:0;border:0}
 header .brand{display:none}
 header .tools{position:absolute;right:10px;top:6px;z-index:4}
 nav{padding-right:109px}
 nav .lesson{font-size:11px;padding:4px;justify-content:center;white-space:nowrap}
 nav .lesson>span,nav .key-tip{display:none}
 .meters{padding-top:3px;padding-bottom:3px}
 .meters #rpmLabel{font-size:8px;line-height:1.1;min-height:18px}
 .meters .meter-label{margin-bottom:2px}
 .rpm-scale{height:3px;margin-top:2px}
 .shifter-panel .shift-diagram{height:48px}
 .pedal-foot{height:94px;width:46px}
}
@media(max-width:760px) and (max-height:620px){
 header{height:0}
 .controls .clutch{height:124px;min-height:124px}
 .shifter-panel .shift-diagram{height:38px}
 .pedal-foot{height:75px;width:37px}
 .foot-actions .park strong{font-size:9px;white-space:nowrap}
 .foot-actions .park .brake-icon{font-size:19px}
 .foot-actions .park small{font-size:9px;margin-top:1px}
 .foot-actions .brake{min-height:46px;padding:4px}
}

/* Compact pass 3: retain a small safe-area inset on the shortest screens. */
@media(max-width:760px) and (max-height:620px){.app{padding-bottom:max(4px,env(safe-area-inset-bottom,0px))}}
@media(max-width:760px) and (max-height:620px){.view{--visual-height:80px}.controls .clutch{height:118px;min-height:118px}.pedal-foot{height:70px;width:34px}}
/* 0.49: resume consumes its own tap; live mechanism shares the key/button row. */
.resume-overlay:not([hidden]){position:fixed;inset:0;width:100%;height:100%;z-index:50;background:transparent;cursor:pointer;touch-action:manipulation}
.connection-box .engine-sensation{display:flex;align-items:flex-start;text-align:left;color:var(--engine-color);gap:2px}
.connection-box #engineFeel{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:9px}
.engine-feedback #clutchMechanism{flex:1;min-width:0;padding:0 4px;border:0;background:transparent;align-self:center}
.engine-feedback #clutchMechanism .mechanism-heading,.engine-feedback #clutchMechanism .mechanism-reading,.engine-feedback #clutchMechanism .mechanism-rpms,.engine-feedback #clutchMechanism .mechanism-details{display:none}
.engine-feedback #clutchMechanism svg{height:60px;max-height:none}
.engine-feedback #clutchMechanism svg>text:not([data-part]){display:none}
.engine-feedback #clutchMechanism .mechanism-force-track{display:flex;height:5px;margin:0 6px 2px;padding-right:12px}
.engine-feedback #clutchMechanism .mechanism-force-track i{max-height:5px}
.engine-feedback #clutchMechanism .mechanism-force-track span{font-size:14px;top:-7px}
@media(max-width:760px){
 .engine-feedback{height:50px;min-height:50px}
 .engine-feedback #clutchMechanism{padding:0}
 .engine-feedback #clutchMechanism svg{height:39px}
 .connection-box #engineFeel{display:none}
 .connection-box #enginePulse{height:20px;margin-top:4px}
 .engine-feedback #clutchMechanism svg .mechanism-gear-value{font-size:24px}
}
@media(max-width:760px) and (max-height:620px){.view{--visual-height:74px}}
/* 0.50: named mechanism parts, independent input/wheel rotation and handbrake. */
.mechanism-labels{height:16px;width:min(100%,264px);margin:auto;position:relative;color:#405c50;font-size:10px;line-height:14px;white-space:nowrap}
.mechanism-labels span{position:absolute;transform:translateX(-50%)}
.mechanism-labels span:nth-child(1){left:11%}.mechanism-labels span:nth-child(2){left:41%}.mechanism-labels span:nth-child(3){left:88%}
.mechanism-output-coupling{stroke:#49675f;stroke-width:4;fill:none}
.connection-box #enginePulse.engine-braking{color:#80509b}
.handbrake-illustration{width:52px;height:36px;flex:0 0 52px;overflow:visible}
.handbrake-lever{transform-origin:13px 40px;transform:rotate(-38deg);transition:transform .25s ease}
.park.released .handbrake-lever{transform:rotate(0deg)}
.foot-actions .park{gap:5px}.foot-actions .park>div{min-width:0}.foot-actions .park small{white-space:nowrap}
.control-title .pedal-word{font:inherit;color:inherit}
@media(prefers-reduced-motion:reduce){.handbrake-lever{transition:none}}
@media(max-width:760px){
 .engine-feedback{height:58px;min-height:58px}
 .engine-feedback #viewButton{min-height:44px;font-size:10px;padding-left:4px;padding-right:13px}
 .engine-feedback .ignition{min-width:88px;min-height:44px;padding-left:0;padding-right:9px;gap:2px}
 .key-dial{width:28px;height:28px}.key-caption b{font-size:9px}
 .engine-feedback #clutchMechanism svg{height:32px}
 .mechanism-labels{height:12px;width:min(100%,140.8px);font-size:9px;line-height:12px}
 .engine-feedback #clutchMechanism .mechanism-force-track{margin-bottom:0}
 .control-title .pedal-word{display:block;font-size:inherit;line-height:12px}
 .clutch-panel .control-title strong,.gas-panel .control-title strong{font-size:11px;line-height:12px}
 .handbrake-illustration{width:38px;height:32px;flex-basis:38px}
 .foot-actions .park,.hill .foot-actions .park{padding:4px;gap:3px;flex:1 1 0;min-width:0}
 .foot-actions .park strong,.hill .foot-actions .park strong{font-size:9px}
 .foot-actions .park small{font-size:8px;margin-top:2px}
 .foot-actions .brake{flex:1 1 0;min-width:0;font-size:11px;white-space:nowrap}
 .foot-actions .brake small{display:block;margin:2px 0 0;font-size:9px}
}
@media(max-width:760px) and (max-height:620px){.view{--visual-height:70px}}

/* 0.52: blue interface, persistent connection prediction, opt-in shift assist. */
:root{--paper:#f2f5fa}
.clutch-mechanism{--force-color:#176650}
.scene-tags,.scene-bottom,.motion-tag{z-index:3}
.fear-vignette{position:absolute;inset:0;z-index:2;pointer-events:none;opacity:0;background:radial-gradient(ellipse at center,transparent 20%,rgba(7,12,25,.3) 52%,rgba(4,8,18,.92) 100%);transition:opacity .18s linear}
.instructor-portrait[data-fear]:not([data-fear="-1"]){width:96px;height:66.67px;background-image:url('assets/instructor-fear-sheet.png');background-size:355.556% 341.333%;background-repeat:no-repeat;border-color:#c8d7e9}
.instructor:has(.instructor-portrait[data-fear]:not([data-fear="-1"])){width:96px;flex-basis:96px}
.instructor-portrait:not([data-fear="-1"])[data-fear] img{visibility:hidden}
.instructor-portrait[data-fear="0"]{background-position:4.348% 20.028%}
.instructor-portrait[data-fear="1"]{background-position:50% 20.028%}
.instructor-portrait[data-fear="2"]{background-position:95.652% 20.028%}
.instructor-portrait[data-fear="3"]{background-position:4.348% 86.326%}
.instructor-portrait[data-fear="4"]{background-position:50% 86.326%}
.instructor-portrait[data-fear="5"]{background-position:95.652% 86.326%}
.rpm-prediction{display:block;white-space:pre-line;font-size:11px;line-height:1.25;min-height:2.5em;margin-top:5px;color:#205f9c;font-weight:600;font-variant-numeric:tabular-nums}
.rpm-prediction.overrev{color:#b54133}
.meters #rpmLabel{min-height:0;white-space:nowrap}
.shifter-panel .control-title{display:flex;flex-wrap:wrap;justify-content:center;gap:4px}
#shiftAssist{white-space:nowrap}
.mechanism-legend span:first-child{color:#176650}
@media(max-width:760px){
 .meters{grid-template-columns:minmax(112px,1.4fr) minmax(57px,.75fr) minmax(36px,.5fr) minmax(47px,.7fr);align-items:center;gap:4px}
 .rpm-prediction{font-size:10px;line-height:1.2;margin-top:3px;min-height:2.4em}
 .meters #rpmLabel{font-size:9px;min-height:0;line-height:1.2}
 .shifter-panel .control-title{display:flex;min-height:26px;margin-bottom:3px}
 .shifter-panel .control-title>strong{display:none}
 #shiftAssist{font-size:10px;padding:3px 8px;min-height:26px}
 .instructor-portrait[data-fear]:not([data-fear="-1"]){width:64px;height:44.44px}
 .instructor:has(.instructor-portrait[data-fear]:not([data-fear="-1"])){width:64px;flex-basis:64px}
}
@media(prefers-reduced-motion:reduce){.fear-vignette{transition:none}}

.controls .clutch{background:linear-gradient(145deg,#edf3fa,#dde7f3);border-color:#c2d1e2}
.controls .clutch .rail{background:#b7c9de}
.controls .clutch-knob .pedal-pad{background:repeating-linear-gradient(0deg,transparent 0 7px,#18253255 7px 9px),linear-gradient(135deg,#566675,#354553);border-color:#3a4855;box-shadow:0 5px 0 #253647,0 7px 8px #22334430,inset 0 1px 1px #ffffff60}
.shift-button:not(:disabled){background:#edf4fc;color:#205f9c;border-color:#c0d4e9}
@media(max-width:760px){.meters .connection-box>.meter-label{font-size:8px;letter-spacing:-.03em}.controls .clutch.wear-warning{background:#f5e5d0}}
@media(max-width:360px){.app{padding-bottom:4px}.meters{grid-template-columns:minmax(99px,1.3fr) minmax(48px,.65fr) minmax(34px,.45fr) minmax(40px,.6fr);gap:3px}.foot-actions .park,.foot-actions .brake{min-height:44px}}

.shift-button{background:#edf4fc;color:#205f9c;border-color:#c0d4e9}
@media(max-width:760px) and (max-height:620px){
 .view{--visual-height:62px}
 .engine-feedback{height:50px;min-height:50px}
 .coach-speech{padding-bottom:4px}.coach p{font-size:10px;line-height:1.25}
 .rpm-prediction{font-size:9px;min-height:2.4em;line-height:1.2}
}

@media(max-width:760px) and (max-height:620px){.heading{margin-bottom:2px}.rpm-prediction{margin-top:2px}.controls{padding-top:2px}}

.mission-track li.current{background:#e1edf9}.ignition{background:#edf3fa}.mechanism-labels{color:#435e78}

/* 0.53: comments and expression changes must not move driving controls. */
.coach{height:110px;min-height:110px;padding:0 0 10px;align-items:stretch}
.instructor,.instructor:has(.instructor-portrait[data-fear]:not([data-fear="-1"])){width:96px;flex:0 0 96px;height:100px;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;align-self:stretch}
.instructor-portrait{flex-shrink:0}
.coach-speech{height:100%;min-height:0;display:flex;flex-direction:column}
.coach-message{min-height:0;flex:1;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-gutter:stable;overflow-wrap:anywhere}
.coach-message:focus-visible{outline:2px solid #3576b5;outline-offset:2px}
@media(max-width:760px){
 .coach{height:76px;min-height:76px;padding:3px 0;align-items:stretch}
 .instructor,.instructor:has(.instructor-portrait[data-fear]:not([data-fear="-1"])){width:64px;flex-basis:64px;height:70px}
}

/* Free driving: replace the coach with a stable, non-blocking 400m dashboard. */
.free-mode .coach{display:none}
.free-mode .mission-track{display:none}
.free-mode .shift-number.available{fill:#637b91}
.free-panel[hidden]{display:none}
.free-panel{height:110px;display:grid;grid-template-columns:minmax(0,1fr) 135px;grid-template-rows:1fr 20px;gap:3px 12px;padding:8px 12px;border:1px solid #c2d4e7;border-radius:12px;background:linear-gradient(120deg,#e5f0fc,#f7faff);overflow:hidden}
.race-readout{min-width:0}.race-label{display:block;color:#205f9c;font-size:10px;letter-spacing:.1em;font-weight:700}
#raceTime{font-size:30px;line-height:1.15;font-variant-numeric:tabular-nums;color:#194f83}.race-unit{font-size:12px}
#raceDistance{float:right;font-size:10px;margin-top:10px;font-variant-numeric:tabular-nums}
#raceProgress{display:block;width:100%;height:4px;accent-color:#286dac;margin:4px 0}
#raceBest,.race-result small{display:block;font-size:10px;color:#4e6880;font-variant-numeric:tabular-nums;white-space:nowrap}
.race-result{align-self:center;text-align:center}
.race-share{display:flex;align-items:center;justify-content:center;min-height:44px;padding:6px;background:#205f9c;color:white;border-radius:8px;text-decoration:none;font-size:12px;font-weight:600;white-space:nowrap}
.race-share[aria-disabled="true"]{background:#dbe5ef;color:#6c8196;cursor:default}
.race-share:focus-visible{outline:3px solid #ed9d40;outline-offset:2px}
.race-result small{margin-top:4px}#raceState{grid-column:1/-1;font-size:11px;line-height:18px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.free-panel[data-state="finished"]{border-color:#5790bf;background:#e4f0fd}.free-panel[data-state="invalid"] #raceState{color:#a64132}
@media(max-width:760px){
 nav{gap:4px}nav .lesson{font-size:10px;min-width:0;flex:1;padding:4px 2px}
 .free-panel{height:84px;grid-template-columns:minmax(0,1fr) 105px;grid-template-rows:1fr 15px;padding:5px 7px;gap:1px 8px;border-radius:9px}
 .race-label{font-size:8px}#raceTime{font-size:24px}#raceDistance{font-size:8px;margin-top:9px}.race-unit{font-size:10px}
 #raceProgress{height:3px;margin:1px 0}#raceBest,.race-result small{font-size:8px}.race-share{font-size:10px}.race-result small{margin-top:1px}#raceState{font-size:9px;line-height:14px}
}
@media(max-width:760px){
 .free-panel{height:76px;padding:3px 7px;grid-template-rows:1fr 14px;gap:0 8px}
 .race-label{line-height:10px}.race-readout>div{height:28px;line-height:28px}
 #raceBest,.race-result small{line-height:10px}#raceProgress{margin:1px 0}
}
@media(max-width:760px){nav{padding-right:124px}}
