body[data-mode=motorcycle] :is(#fx,.scene-heading,.scene-haze,.studio-lines,.gauge-shell,.scene-meter,.stage-bottom,#scene-options){display:none!important}
#motorcycle-view{position:absolute;inset:0;z-index:2;background:#202d36;overflow:hidden}#motorcycle-view[hidden],#motorcycle-hud[hidden],#motorcycle-options[hidden]{display:none}#motorcycle-canvas{width:100%;height:100%;display:block}
#motorcycle-hud{position:absolute;inset:0;z-index:8;pointer-events:none;color:#f4f8fc;text-shadow:0 2px 7px #09131fcc;font-variant-numeric:tabular-nums}.bike-brand{position:absolute;top:100px;left:28px;max-width:220px}.bike-brand small{font:10px monospace;letter-spacing:2px;color:#c2e3ff}.bike-brand h2{font-size:24px;margin:9px 0}.bike-brand p{font-size:12px;color:#d7e3ed;line-height:1.7;margin:7px 0}/* Period-specific vector instruments stay clear of the central rider. */
.bike-instruments{position:absolute;left:28px;right:auto;top:clamp(245px,35vh,330px);width:288px;text-shadow:none;filter:drop-shadow(0 5px 7px #07101965)}.bike-instrument-face{width:100%;aspect-ratio:8/5}.bike-instrument-face svg{display:block;width:100%;height:100%;overflow:visible;font-family:Arial,sans-serif;font-variant-numeric:tabular-nums}.bike-svg-speed{font:700 37px monospace;letter-spacing:-2px}.bike-svg-speed-large{font-size:49px}.bike-svg-meta{fill:#f0f4e9;font-size:10px;letter-spacing:.6px;paint-order:stroke;stroke:#111d21;stroke-width:2px}.bike-instrument-note{display:flex;justify-content:space-between;gap:8px;padding:2px 8px 0;font-size:10px;line-height:1.5;color:#edf5f1;text-shadow:0 1px 4px #10212a,0 1px 8px #10212a}.bike-instruments[data-gps=false] #motorcycle-gps-state{color:#f0e5ca}.bike-rev{display:none}
#motorcycle-retry{pointer-events:auto;min-height:40px;padding:8px 15px;background:#142536aa;color:white;border:1px solid #c5deef88;border-radius:20px}
#motorcycle-options{position:absolute;z-index:12;bottom:77px;left:50%;transform:translateX(-50%);display:flex;gap:9px;width:min(610px,calc(100% - 40px))}.bike-option{flex:1;min-width:0;min-height:71px;text-align:left;border:1px solid #d1e8f64d;border-radius:12px;background:#10203086;backdrop-filter:blur(8px);padding:12px 15px;color:#f5f9fc}.bike-option[aria-pressed=true]{border-color:var(--accent);background:#29404da8;box-shadow:inset 0 -2px var(--accent)}.bike-option strong{display:block;font-size:14px;font-weight:600}.bike-option small{display:block;font-size:10px;color:#c1d2e1;margin-top:6px;white-space:nowrap}body[data-mode=motorcycle] .masthead{background:linear-gradient(#122533c9,transparent)}body[data-mode=motorcycle] :is(.render-status,.motion-pill,footer){color:#dcebf4;text-shadow:0 1px 5px #15212d}
body[data-mode=motorcycle] .drive-controls{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:0;width:max-content;max-width:calc(100% - 32px);height:48px;min-height:0;padding:0;border:0;background:none;box-shadow:none;backdrop-filter:none}body[data-mode=motorcycle] .drive-controls>*:not(#power){display:none!important}body[data-mode=motorcycle] #power{background:#10253340;border:1px solid #d9eff17a;color:white;backdrop-filter:blur(5px);min-width:150px;box-shadow:none}
@media(max-width:640px){.bike-brand{top:140px;left:200px;right:12px;max-width:none}.bike-brand h2{font-size:16px;margin:7px 0}.bike-brand small{font-size:7px;letter-spacing:.5px}.bike-brand p{font-size:9px;line-height:1.5;margin:5px 0}.bike-instruments{top:135px;left:14px;right:auto;width:174px}.bike-instrument-note{font-size:9px;gap:4px;padding-inline:2px}.bike-option{padding:10px 8px;min-height:68px}.bike-option strong{font-size:12px}.bike-option small{font-size:9px}#motorcycle-options{gap:6px;width:calc(100% - 28px);bottom:84px}}


@media(min-width:901px) and (max-height:650px){.bike-instruments{top:240px;left:24px;right:auto;width:252px}.bike-brand{top:82px}.bike-instrument-note{font-size:10px}}
@media(max-width:360px){.bike-instruments{width:156px;left:10px;right:auto}.bike-brand{left:178px;right:10px;max-width:none}.bike-brand h2{font-size:15px}.bike-instrument-note{font-size:8px}}

@media(min-width:641px) and (max-width:1100px){.bike-instruments{left:18px;top:clamp(230px,35vh,330px);width:clamp(170px,23vw,220px)}.bike-brand{top:94px;left:18px;max-width:190px}.bike-brand h2{font-size:20px}.bike-brand p{font-size:10px}.bike-brand small{font-size:8px;letter-spacing:1px}.bike-instrument-note{font-size:9px}}
#motorcycle-retry{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);white-space:nowrap;z-index:50}

/* Aim for double size, bounded by the unchanged rider and lower selector. */
@media(min-width:641px){.bike-instruments{left:12px;width:min(576px,calc(var(--motorcycle-subject-left,50vw) - 24px))}.bike-instrument-note{font-size:12px;padding-inline:6px}}
@media(min-width:641px) and (max-width:1100px){.bike-instruments{top:clamp(230px,34vh,300px);width:min(clamp(340px,46vw,440px),calc(var(--motorcycle-subject-left,50vw) - 24px))}}
@media(min-width:641px) and (max-height:650px){.bike-instruments{top:240px;max-width:calc(160vh - 656px)}}
@media(min-width:1101px) and (max-height:560px){.bike-instruments{max-width:300px}}
