/* CUT IT UP — road instruments, racing typography and a single amber/cyan palette. */
:root{font-family:Arial,Helvetica,sans-serif;color:#f1ecdf;color-scheme:dark;--lime:#ffb47d;--ink:#08121b;--muted:#9bb0b8;--edge:#d4e3e326;--crew:#7ee9dc;--paper:#eee8dc;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#10151c}body{overscroll-behavior:none}button,input,select{font:inherit}button,a,summary{-webkit-tap-highlight-color:transparent;touch-action:manipulation;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}button{cursor:pointer;color:inherit;border:0;border-radius:0}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid var(--lime);outline-offset:3px}[hidden]{display:none!important}
#world{position:fixed;inset:0;display:block;width:100%;height:100%;touch-action:none}.cinematic{position:fixed;inset:0;pointer-events:none;background:linear-gradient(90deg,#070d165e,transparent 50%),linear-gradient(0deg,#060b12e0,transparent 55%)}.riding .cinematic{opacity:.1}
.small-label,.eyebrow{font-size:10px;font-weight:800;letter-spacing:.18em;line-height:1.6;color:var(--muted)}.live-dot{display:inline-block;width:5px;height:5px;flex:none;background:var(--crew);border-radius:50%}.garage{position:fixed;inset:0;height:100dvh;pointer-events:none}.garage>*{pointer-events:auto}.wordmark{position:absolute;left:5vw;top:calc(40px + var(--safe-top))}.eyebrow{display:flex;align-items:center;gap:9px;font-size:9px}.wordmark h1{font-size:clamp(50px,6.5vw,98px);font-style:italic;font-weight:900;letter-spacing:-.065em;line-height:.84;margin:18px 0;text-shadow:3px 3px #0003}.wordmark h1 span{color:var(--paper)}.wordmark p{display:none}.wordmark:after{content:'RIDE THE LINE.';font-size:10px;letter-spacing:.28em;color:var(--lime)}
.bike-caption{position:absolute;left:5vw;bottom:44px;width:310px;display:flex;flex-direction:column;gap:8px}.machine-heading{display:flex;justify-content:space-between}.machine-heading .small-label{color:var(--lime);font-size:9px}.machine-nav{display:flex;align-items:center;gap:12px}.machine-nav h2{flex:1;font-size:38px;font-weight:900;font-style:italic;letter-spacing:-.05em;line-height:1;margin:8px 0}.machine-nav button{width:44px;height:44px;background:#ffffff09;color:var(--lime);font-size:28px}.bike-caption p{font-size:11px;color:var(--muted);margin:0}.finishes{display:flex;gap:5px;margin-top:8px}.finish{width:40px;height:40px;padding:6px;background:none;border:1px solid transparent}.finish:before{content:'';display:block;width:100%;height:100%;background:linear-gradient(135deg,var(--paint) 0 68%,var(--accent) 69%)}.finish[aria-pressed=true]{border-color:var(--lime)}.finish-name{font-size:8px;letter-spacing:.16em;color:var(--muted)}.machine-specs{display:flex;gap:22px;border-top:1px solid var(--edge);padding-top:12px;font-size:9px;color:var(--muted)}.machine-specs b{font-size:20px;font-weight:800;color:var(--paper)}.machine-specs span:last-child{font-size:8px;align-self:center}
.ride-card{position:absolute;right:5vw;bottom:44px;width:300px}.card-top{display:flex;justify-content:space-between;margin-bottom:12px}.card-top .small-label{font-size:8px}.machine-button{display:flex;justify-content:space-between;align-items:center;width:100%;padding:12px 0;margin-bottom:12px;background:none;border-top:1px solid var(--edge);text-align:left}.machine-button small{display:block;font-size:8px;letter-spacing:.16em;color:var(--muted)}.machine-button b{display:block;margin-top:5px;font-size:18px}.machine-button>span:last-child{color:var(--lime);font-size:9px}.primary,.secondary{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;padding:14px 18px;text-align:left;text-decoration:none;font-weight:900;letter-spacing:.1em}.primary{color:#10171c;background:var(--lime)}.primary:hover{background:#ffd0a9}.primary span{font-size:23px;line-height:1}.secondary{background:#ecf0e409;color:var(--paper);border-bottom:1px solid var(--edge);margin-top:8px}.secondary:hover{background:#ecf0e414}.ride-card .primary,.ride-card .secondary{font-size:19px;font-style:italic;letter-spacing:.025em;transform:skewX(-3deg)}.chip{font-size:8px;font-style:normal;letter-spacing:.1em;color:var(--muted)}.card-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px}.card-footer button{background:none;font-size:10px;color:var(--muted);min-height:44px;padding:0}.loading,.fallback{position:fixed;inset:0;z-index:1200;background:#10151c;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:28px;text-align:center}.mark{font-size:62px;font-style:italic;font-weight:900;letter-spacing:-.06em}.mark span{color:var(--lime)}.loading p{color:var(--muted);font-size:10px;letter-spacing:.16em}.fallback p{max-width:440px;line-height:1.6;color:var(--muted)}.fallback button{max-width:340px}
/* Every in-ride control sits on the perimeter; the forward sight line stays open. */
.hud{position:fixed;inset:0;pointer-events:none;font-variant-numeric:tabular-nums;text-shadow:0 2px 4px #0008}.hud button,.hud a,.hud summary{pointer-events:auto}#world,#hud,#hud *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.score-box{border-left:2px solid var(--lime);min-width:0}.score-box .small-label{display:block;font-size:8px;color:#c6cabe;letter-spacing:.14em}.score-box>#score{display:block;font-size:28px;font-style:italic;font-weight:900;letter-spacing:-.045em;line-height:1.08;margin-top:2px}.session-line{display:flex;gap:14px;font-size:8px;color:var(--muted);margin-top:6px;letter-spacing:.07em}.top-actions{position:absolute;right:24px;top:calc(16px + var(--safe-top));display:flex;gap:5px;pointer-events:auto}.top-actions>button,#ride-actions>summary{min-width:44px;min-height:44px;background:#08121ba8;border-bottom:1px solid #d2e5db50;font-size:9px;font-weight:800;letter-spacing:.08em;padding:10px 12px}.top-actions #camera-name{color:var(--lime);font-size:8px;margin-left:7px}#ride-actions{position:relative}#ride-actions>summary{list-style:none;display:grid;place-items:center;padding:0;font-size:18px}#ride-actions>summary::-webkit-details-marker{display:none}.ride-action-menu{position:absolute;top:50px;right:0;z-index:10;width:200px;padding:8px;background:#08121bf5;border-left:2px solid var(--lime);display:flex;flex-direction:column}.ride-action-menu button,.ride-action-menu a{display:flex;align-items:center;min-height:44px;padding:12px;background:none;color:var(--paper);font-size:10px;text-align:left;text-decoration:none;border-bottom:1px solid var(--edge)}#record{color:#ffac94}
.speedometer{position:absolute;right:28px;bottom:90px;width:150px}.speed-number{display:flex;align-items:center;justify-content:space-between}.speed-number strong{font-size:70px;font-weight:900;font-style:italic;letter-spacing:-.065em;line-height:.95}.speed-number>span{font-size:9px;letter-spacing:.1em;color:var(--muted)}.power-track,.clutch-track{height:3px;background:#ceddd92b;margin-top:10px}.power-track i,.clutch-track i{display:block;width:0;height:100%;background:var(--lime)}.speed-foot{display:flex;justify-content:space-between;gap:8px;margin-top:8px;font-size:7px;letter-spacing:.04em;color:var(--muted)}.region-chip{position:absolute;bottom:42px;left:50%;transform:translateX(-50%);max-width:50vw;text-align:center;display:flex;flex-direction:column;gap:5px;font-size:9px;letter-spacing:.16em}.region-chip small{font-size:7px;letter-spacing:.07em;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.network-pill{position:absolute;left:50%;bottom:calc(15px + var(--safe-bottom));transform:translateX(-50%);display:flex;align-items:center;gap:7px;max-width:calc(100% - 32px);white-space:nowrap;font-size:7px;letter-spacing:.07em}.network-pill #net-summary{overflow:hidden;text-overflow:ellipsis;color:var(--muted)}.network-pill button{background:none;color:var(--crew);font-size:8px;font-weight:800;padding:8px}.network-pill.waiting .live-dot{background:var(--lime)}.desktop-controls{position:absolute;left:24px;bottom:26px;display:flex;flex-wrap:wrap;gap:12px;max-width:52vw;font-size:8px;color:var(--muted)}.desktop-controls span{display:flex;align-items:center;gap:4px}kbd{font:8px Arial;border-bottom:1px solid #ffffff55;padding:3px 4px;color:var(--paper);background:#08121b77}.touch-controls{display:none}
.route-radar{min-width:0;background:#08121b94;border-left:2px solid var(--crew);padding:8px;text-shadow:none}.route-radar>div{display:flex;align-items:center;justify-content:space-between;font-size:7px;font-weight:800;letter-spacing:.1em;color:var(--muted)}.route-radar canvas{display:block;width:100%;aspect-ratio:3/2;margin:4px 0}.route-radar small{display:block;font-size:7px;line-height:1.5;color:var(--crew);min-height:20px;overflow-wrap:anywhere}.route-radar button{pointer-events:auto;background:none;color:var(--lime);font-size:7px;min-height:32px;padding:4px}.crew-radar{position:absolute;left:24px;bottom:96px;max-width:220px}.crew-radar>.small-label{font-size:7px}.crew-position{display:flex;justify-content:space-between;gap:12px;border-left:2px solid var(--crew);padding-left:7px;margin-top:8px;font-size:8px}.crew-position b{font-size:8px}.crew-position span{color:var(--muted)}
.rider-tags{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:2;contain:layout paint;visibility:hidden}.riding .rider-tags{visibility:visible}.rider-tag{position:absolute;left:0;top:0;display:flex;flex-direction:column;align-items:center;gap:3px;padding:5px 9px 7px;background:linear-gradient(0deg,#06121cdc,#06121c70);border-bottom:1px solid var(--crew);color:var(--crew);white-space:nowrap;text-shadow:0 1px 3px #000;will-change:transform}.rider-tag b{font-size:11px;font-weight:800;letter-spacing:.035em}.rider-tag small{font-size:8px;letter-spacing:.04em;color:#d0ddda}.rider-tag:after{content:'';position:absolute;bottom:-5px;left:calc(50% - 3px);border-left:3px solid transparent;border-right:3px solid transparent;border-top:4px solid var(--crew)}.rider-tag.bot{border-color:var(--lime);color:var(--lime)}.rider-tag.bot:after{border-top-color:var(--lime)}.rider-tag.stale{filter:grayscale(1)}.fleet-open .rider-tags,body:has(dialog[open]) .rider-tags{visibility:hidden}
/* RPM, gear and rev-match warnings share the same compact instrument face. */
.tachometer{position:absolute;right:205px;bottom:88px;width:204px;padding:10px 12px;background:#08121bcb;border-left:2px solid #93b9bc;pointer-events:none;text-shadow:none}.tach-head{display:flex;justify-content:space-between;gap:6px;font-size:7px;letter-spacing:.07em;color:var(--muted)}.tach-title{color:var(--paper)}.tach-title small{font-size:7px}.tach-readout{display:flex;justify-content:space-between;align-items:center;margin:8px 0;gap:12px}.tach-readout>div{display:flex;flex-direction:column;gap:3px}.tach-readout strong{font-size:29px;font-weight:900;letter-spacing:-.04em;line-height:1}.tach-readout small{font-size:6px;letter-spacing:.1em;color:var(--muted)}.gear-readout{padding-left:12px;border-left:1px solid var(--edge);text-align:center}.gear-readout strong{font-size:38px;color:var(--crew)}.rpm-meter{position:relative;height:6px;background:linear-gradient(90deg,#50727955 84%,#db776344 84%);overflow:hidden}.rpm-meter i{display:block;width:0;height:100%;background:var(--crew)}.rpm-meter:after{content:'';position:absolute;inset:0;background:repeating-linear-gradient(90deg,transparent 0 calc(5% - 1px),#08121b 5%)}.tach-scale{display:flex;justify-content:space-between;font-size:6px;color:var(--muted);margin-top:4px}.tach-scale span:last-child{color:#efaa92}.shift-status{font-size:8px;letter-spacing:.05em;color:var(--muted);margin-top:8px;min-height:11px}.shift-hint{font-size:7px;color:var(--muted);margin-top:5px}.clutch-readout{border-top:1px solid var(--edge);padding-top:7px;margin-top:7px;font-size:7px;color:var(--muted)}.clutch-readout>div:not(.clutch-track){display:flex;justify-content:space-between;gap:6px;line-height:1.6}.clutch-track{margin:4px 0 6px;height:2px}.clutch-track i{background:var(--crew)}.downshift-preview{color:var(--crew);font-variant-numeric:tabular-nums}.downshift-preview.danger,.overrev-risk #match-rpm,.overrev-risk .shift-status{color:#ff9178}.downshift-preview.danger b:after{content:' !'}.tachometer.shift-ready,.tachometer.rev-limit,.tachometer.overrev-risk{border-left-color:var(--lime)}.shift-ready .shift-status,.shift-ready .gear-readout strong{color:var(--lime)}.rev-limit .shift-status,.rev-limit .gear-readout strong,.overrev-risk .gear-readout strong{color:#ff9178}.rev-limit .rpm-meter i{background:#ff9178}.balance-instrument .rpm-meter{background:linear-gradient(90deg,#985f5055 48%,#eee8dc 49% 51%,#507b7155 52%)}.balance-instrument .gear-readout strong{font-size:24px}.manual-tip{position:absolute;top:26%;left:50%;transform:translateX(-50%);width:min(430px,84vw);padding:12px 16px;background:#08121bdc;border-left:2px solid var(--lime);text-align:center;font-size:10px;line-height:1.5}.manual-tip b{display:block;color:var(--lime);font-size:11px;margin-bottom:4px}
.notice{position:absolute;left:50%;transform:translateX(-50%);text-align:center}.notice{top:30%;width:max-content;max-width:80vw;background:#08121bea;border-left:2px solid var(--lime);padding:10px 14px;font-size:10px;line-height:1.5;opacity:0;transition:opacity .2s}.impact-overlay{position:absolute;inset:0;opacity:0;pointer-events:none;box-shadow:inset 0 0 140px #ae372860}.shield-aura{position:absolute;inset:0;pointer-events:none;opacity:0;background:radial-gradient(ellipse,transparent 65%,#49decf26);transition:opacity .3s}.shield-active .shield-aura{opacity:1}.shield-active .impact-overlay{box-shadow:inset 0 0 80px #49decf55}.reward-hud{display:flex;flex-wrap:wrap;gap:5px;width:180px;margin-top:9px}.reward-chip{position:relative;display:flex;align-items:center;gap:7px;padding:6px 8px 9px;background:#08121bd9;border-left:2px solid var(--reward-color,#49decf);font-size:8px;text-shadow:none}.reward-chip b{font-size:7px;letter-spacing:.07em}.reward-chip small{font-size:9px;color:var(--reward-color,#49decf)}.reward-meter{position:absolute;bottom:3px;left:8px;right:8px;height:2px;background:#ffffff18}.reward-meter i{display:block;height:100%;width:100%;background:var(--reward-color,#49decf)}
.crash-hud{position:absolute;bottom:calc(32px + var(--safe-bottom));left:50%;transform:translateX(-50%);width:min(430px,92vw);display:flex;flex-direction:column;align-items:center;gap:12px;pointer-events:auto}.crash-hud>.small-label{color:var(--lime);font-size:11px;text-align:center}.crash-hud>div{display:flex;gap:8px;width:100%}.crash-hud button{flex:1;min-height:50px;background:#08121be8;font-size:10px;font-weight:800;padding:12px}.crash-hud #crash-reset{background:var(--lime);color:var(--ink)}.crash-hud small{font-size:8px;color:var(--muted)}.crashed .touch-controls,.crashed .speedometer,.crashed .tachometer,.crashed .network-pill,.crashed .region-chip,.crashed .desktop-controls,.crashed .crew-radar,.crashed .manual-tip,.crashed .reward-hud,.crashed .reward-toast{visibility:hidden}
/* Full-screen racing menus; no floating form cards or translucent blur stack. */
.panel{position:fixed;inset:0;margin:auto;width:min(700px,100%);max-width:none;max-height:calc(var(--visible-height,100dvh) - 32px);padding:30px 38px;color:var(--paper);border:0;border-left:2px solid var(--lime);background:#09121bf5;overflow:auto;overscroll-behavior:contain;scroll-padding:24px;scrollbar-width:thin;box-shadow:none}.panel::backdrop{background:#040810b5}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--edge)}.panel-header button{background:none;width:44px;height:44px;font-size:18px;color:var(--muted)}
.panel-header .menu-back{width:auto;min-width:78px;padding:0 10px;font-size:12px;font-weight:900;color:var(--paper);background:#172f3d;border:1px solid var(--edge);box-shadow:2px 2px 0 #08121b}
.primary .menu-return-label{font-size:inherit;line-height:inherit;min-width:0}.panel h2{font-size:38px;font-style:italic;font-weight:900;letter-spacing:-.055em;line-height:1.02;margin:24px 0}.panel p{font-size:12px;color:var(--muted);line-height:1.65}.panel label{display:flex;flex-direction:column;gap:8px;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.panel>label{margin:16px 0}.options{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}input,select{min-width:0;width:100%;min-height:48px;background:#040b129c;border:0;border-bottom:1px solid #a8bcc466;color:var(--paper);font-size:16px;font-weight:400;letter-spacing:0;padding:12px;border-radius:0;text-transform:none}.check{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;line-height:1.5;letter-spacing:0!important;text-transform:none!important}.check input{width:18px;height:18px;min-height:0;accent-color:var(--lime)}.comfort-option{margin:22px 0}.settings-panel .options{display:flex;flex-direction:column;gap:0}.settings-panel .options>label{display:grid;grid-template-columns:minmax(100px,1fr) minmax(180px,1.6fr);align-items:center;min-height:52px;border-bottom:1px solid var(--edge)}.setting-stepper{display:grid;grid-template-columns:44px 1fr 44px;align-items:center;gap:4px}.setting-stepper button{width:44px;height:44px;color:var(--lime);background:none;font-size:26px}.setting-stepper output{font-size:11px;font-weight:500;letter-spacing:.02em;line-height:1.5;text-align:center;color:var(--paper)}.setting-stepper button:disabled{opacity:.2}
.pause-panel{width:100%;height:100dvh;max-height:none;margin:0;display:none;border:0;background:linear-gradient(90deg,#070c13f5,#070c1377);padding:8vw}.pause-panel[open]{display:flex;flex-direction:column;justify-content:center}.pause-panel .panel-header{position:absolute;top:calc(18px + var(--safe-top));left:8vw;right:8vw}.pause-panel h2{font-size:clamp(32px,5vw,64px);margin:24px 0}.pause-nav{display:flex;flex-direction:column;width:min(460px,100%);gap:3px}.menu-choice{display:flex;align-items:center;gap:20px;min-height:54px;padding:12px 14px;text-align:left;background:none;font-size:17px;font-weight:900;letter-spacing:.04em;border-left:2px solid transparent}.menu-choice small{font-size:9px;color:var(--muted)}.menu-choice span{margin-left:auto;color:var(--lime)}.menu-choice:hover,.menu-choice:focus-visible{background:linear-gradient(90deg,#ffb47d1c,transparent);border-left-color:var(--lime);color:var(--lime)}.menu-hint{font-size:8px!important;letter-spacing:.08em;margin-top:24px!important}
.fleet-panel{position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-width:none;max-height:none;padding:0;overflow:hidden;border:0;background:linear-gradient(0deg,#070c13f5,transparent 68%);color:var(--paper)}.fleet-panel::backdrop{background:transparent}.fleet-panel .panel-header{position:absolute;left:5vw;right:5vw;top:calc(16px + var(--safe-top));border:0}.fleet-panel .panel-header button{background:#08121b8a;width:44px;height:44px}.fleet-panel>h2{position:absolute;left:5vw;top:74px;margin:0;font-size:35px;font-style:italic;letter-spacing:-.04em}.fleet-dock{position:absolute;left:5vw;right:5vw;bottom:calc(24px + var(--safe-bottom));max-width:1100px;margin:auto}.fleet-grid{display:flex;overflow-x:auto;gap:0;margin-bottom:16px;scroll-snap-type:x mandatory;scrollbar-width:thin}.fleet-option{flex:1 0 128px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:76px;padding:12px;text-align:left;background:#08121b9a;border-bottom:2px solid #9bb0b850;scroll-snap-align:center}.fleet-option>span{font-size:8px;color:var(--muted)}.fleet-option strong{font-size:17px;font-style:italic;font-weight:900}.fleet-option small{font-size:7px;color:var(--muted);letter-spacing:.06em}.fleet-option[aria-pressed=true]{border-color:var(--lime);background:#ffb47d1a}.fleet-option[aria-pressed=true] small{color:var(--lime)}.fleet-detail,.fleet-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px}.fleet-detail h3{font-size:32px;font-style:italic;font-weight:900;margin:7px 0;letter-spacing:-.04em}.fleet-detail p{font-size:11px;color:var(--muted);margin:0}.fleet-detail .small-label{font-size:8px;color:var(--lime)}.fleet-performance{display:flex;gap:24px;font-size:9px;color:var(--muted)}.fleet-performance span{display:flex;flex-direction:column;gap:5px}.fleet-performance b{font-size:24px;color:var(--paper)}.fleet-bottom{margin-top:14px}.fleet-bottom .primary{width:240px;font-size:11px}.fleet-open .garage{visibility:hidden}.fleet-open .cinematic{opacity:0}
.live-rides{border-top:1px solid var(--edge);border-bottom:1px solid var(--edge);margin:22px 0;padding:8px 0}.rides-heading{display:flex;justify-content:space-between;align-items:center}.rides-heading .small-label{color:var(--lime)}.rides-heading button{background:none;min-height:44px;font-size:9px;color:var(--muted)}.ride-list{display:flex;flex-direction:column;gap:4px;max-height:240px;overflow:auto}.live-ride{display:grid;grid-template-columns:1fr auto;gap:6px 12px;text-align:left;padding:14px;background:#7ee9dc08;border-left:2px solid #7ee9dc66;min-height:72px}.live-ride:hover{background:#7ee9dc12}.live-ride strong{font-size:15px;font-style:italic;overflow-wrap:anywhere}.live-ride small{font-size:8px;color:var(--muted);letter-spacing:.05em;grid-column:1}.live-ride>span{font-size:12px;color:var(--crew);grid-column:2;grid-row:1/3;align-self:center}.ride-list-status{font-size:11px!important}.lobby-actions{margin:18px 0}.lobby-actions>.check{margin-top:14px}.invite-entry,.advanced{border-top:1px solid var(--edge);padding-top:12px;margin-top:18px}.invite-entry summary,.advanced summary{display:flex;align-items:center;min-height:44px;font-size:10px;color:var(--muted);cursor:pointer}.invite-entry label{margin:12px 0}.advanced p,.advanced .fine{font-size:10px}.net-status{color:var(--crew);font-size:11px;line-height:1.6;padding:10px 0}.join-actions,.room-buttons{display:flex;gap:8px;margin:12px 0;flex-wrap:wrap}.join-actions button,.room-buttons button{min-height:44px;flex:1}.room-result{padding:14px;border-left:2px solid var(--crew);background:#7ee9dc09}.room-result strong{display:block;color:var(--crew);font-size:26px;letter-spacing:.12em;margin-top:8px}.text-button{padding:12px;background:none;white-space:nowrap;font-size:10px}.members{font-size:11px}.member{display:flex;justify-content:space-between;border-bottom:1px solid var(--edge);padding:10px 0;gap:16px}.member span:last-child{color:var(--muted)}.control-table{margin:20px 0}.control-table>div{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid var(--edge);font-size:11px}.control-table b{color:var(--lime);font-size:10px;flex:1}.control-table span{color:var(--muted);flex:1;text-align:right}.result-score{font-size:74px;font-weight:900;font-style:italic;color:var(--lime);letter-spacing:-.05em}
/* Touch layout uses explicit groups instead of a tall stack of tiny buttons. */
.touch-layout .touch-controls{display:block}.touch-layout .desktop-controls{display:none}.touch-layout #stick{pointer-events:auto;position:absolute;left:calc(16px + env(safe-area-inset-left));bottom:calc(76px + var(--safe-bottom));width:108px;height:108px;border:1px solid #c5ddd54a;border-radius:50%;background:radial-gradient(circle,#08121b20 52%,#08121b83 54%);touch-action:none;display:grid;place-items:center}.touch-layout #stick:before{content:'';position:absolute;inset:15px;border:1px dashed #c5ddd52d;border-radius:50%}.stick-guide{position:absolute;bottom:-21px;font-size:8px;font-weight:800;letter-spacing:.12em;color:#bdcfcf}.touch-layout #stick-knob{width:42px;height:42px;border:1px solid #f1ecdf82;background:#d3e4df20;border-radius:50%;pointer-events:none}.touch-right{position:absolute;right:calc(16px + env(safe-area-inset-right));bottom:calc(76px + var(--safe-bottom));width:122px;height:194px}.pedals{position:absolute;bottom:0;right:0;display:flex;align-items:flex-end;gap:6px}.pedals button{touch-action:none;width:56px;height:78px;background:#08121b8a;border:1px solid #c5ddd54a;font-size:8px;font-weight:800;letter-spacing:.06em}.pedals #throttle{width:60px;height:100px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;font-size:29px;color:var(--lime);border-color:#ffb47d75;background:#241b158c}.pedals #throttle span{font-size:8px}.touch-small{position:absolute;background:#08121b94;border-bottom:1px solid #c5ddd54a;font-size:7px;font-weight:800;letter-spacing:.04em;min-height:44px;touch-action:none}#reverse{right:62px;bottom:112px;width:60px}#tuck{right:0;bottom:112px;width:58px}#wheelie{right:0;bottom:164px;width:122px}.manual-bike #reverse,.manual-bike #tuck{bottom:164px}.manual-bike #wheelie{bottom:214px}.touch-shifts{position:absolute;right:0;bottom:112px;display:flex;gap:6px}.touch-shifts button{width:58px;min-height:46px;background:#08121bb3;border-bottom:1px solid var(--crew);font-size:23px;touch-action:none;color:var(--paper);display:flex;flex-direction:column;align-items:center;justify-content:center}.touch-shifts small{font-size:6px;letter-spacing:.07em;color:var(--muted)}.manual-touch{position:absolute;left:calc(16px + env(safe-area-inset-left));bottom:calc(198px + var(--safe-bottom));width:108px;display:flex;flex-direction:column;gap:6px}.manual-touch>button{min-height:50px;touch-action:none;background:#08121bb3;border-bottom:1px solid var(--crew);font-size:9px;font-weight:800}.manual-touch>button small{display:block;font-size:6px;color:var(--muted);margin-top:5px}.manual-touch>div{display:flex;gap:6px}.manual-touch>div button{min-height:44px;flex:1;background:#08121bb3;font-size:8px;touch-action:none}.touch-controls button.active{color:#10171c;background:#ffb47dba!important;border-color:var(--lime)}.touch-controls button.active small{color:#172631}.mono-bike #wheelie{display:none}.mono-bike #stick:after{content:'FWD ↑ / BACK ↓';position:absolute;bottom:-35px;font-size:6px;letter-spacing:.07em;color:var(--muted)}
@media(max-width:700px){
 .wordmark{left:22px;top:calc(28px + var(--safe-top))}.wordmark h1{font-size:44px;margin:16px 0}.wordmark .eyebrow{font-size:7px;letter-spacing:.12em}.wordmark:after{font-size:8px}.garage .bike-caption{left:22px;right:22px;bottom:226px;width:auto;gap:4px}.machine-nav h2{font-size:31px}.machine-heading .small-label{font-size:8px}.bike-caption p{display:none}.machine-specs{position:absolute;right:0;bottom:10px;border:0;padding:0;gap:12px;font-size:8px}.machine-specs b{font-size:16px}.machine-specs span:last-child{display:none}.garage .ride-card{left:22px;right:22px;bottom:calc(18px + var(--safe-bottom));width:auto}.ride-card .machine-button{display:none}.ride-card .primary,.ride-card .secondary{font-size:21px}.card-top{margin-bottom:8px}.score-box>#score{font-size:23px}.score-box .small-label{font-size:6px}.session-line{font-size:7px;gap:8px}.top-actions{right:16px;top:calc(14px + var(--safe-top))}.top-actions #camera-name{display:none}.top-actions>button{padding:8px;font-size:8px}#camera{font-size:0}#camera:before{content:'◉';font-size:18px}#pause{font-size:0}#pause:before{content:'Ⅱ';font-size:18px}.route-radar{padding:6px}.route-radar>div{font-size:6px;letter-spacing:0}.route-radar small{font-size:6px;min-height:18px}.route-radar canvas{margin:3px 0}.route-radar button{font-size:6px}.crew-radar{display:none}.rider-tag{padding:4px 7px 6px}.rider-tag b{font-size:10px}.rider-tag small{font-size:7px}.region-chip{bottom:calc(37px + var(--safe-bottom));font-size:8px;max-width:60vw}.region-chip small{font-size:6px}.network-pill{bottom:calc(7px + var(--safe-bottom));font-size:6px;gap:5px}.network-pill button{min-height:32px;padding:6px;font-size:7px}.speedometer{right:20px;width:120px;bottom:88px}.speed-number strong{font-size:56px}.tachometer{right:158px;bottom:88px;width:168px}.reward-hud{width:115px;gap:3px;margin-top:6px}.reward-chip{font-size:6px;padding:4px 5px 7px}.reward-chip b{font-size:6px}.reward-chip small{font-size:7px}.reward-meter{left:5px;right:5px;bottom:2px}.manual-tip{top:33%;font-size:9px}.manual-tip b{font-size:9px}.panel{inset:0;width:100%;height:var(--visible-height,100dvh);max-height:none;margin:0;padding:calc(18px + var(--safe-top)) 22px calc(22px + var(--safe-bottom));border:0;border-top:2px solid var(--lime);background:#08111bf7}.panel h2{font-size:34px}.settings-panel .options>label{grid-template-columns:minmax(80px,1fr) minmax(174px,1.7fr);font-size:8px;letter-spacing:.07em}.setting-stepper output{font-size:10px}.settings-panel .options{margin:12px 0}.options{gap:12px}.comfort-option{font-size:10px!important;letter-spacing:0!important}.pause-panel{padding:24px}.pause-panel .panel-header{left:22px;right:22px}.menu-choice{font-size:16px}.fleet-panel .panel-header{left:22px;right:22px}.fleet-panel>h2{left:22px;font-size:28px}.fleet-dock{left:22px;right:22px;bottom:calc(18px + var(--safe-bottom))}.fleet-grid{margin-bottom:12px}.fleet-option{flex-basis:104px;min-height:68px;padding:10px}.fleet-option strong{font-size:15px}.fleet-detail{gap:10px}.fleet-detail h3{font-size:28px}.fleet-detail p{font-size:9px}.fleet-performance{gap:12px;font-size:7px}.fleet-performance b{font-size:18px}.fleet-bottom{gap:10px;margin-top:10px}.fleet-bottom .primary{width:164px;font-size:9px;min-height:48px;padding:12px}.fleet-bottom .finish{width:32px;height:32px}.fleet-bottom .finishes{gap:2px}.fleet-bottom .finish-name{font-size:7px}.control-table>div{font-size:10px}.crew-panel .panel-header{position:sticky;top:0;background:#08111b;z-index:1}.live-ride strong{font-size:14px}.live-ride small{font-size:8px;line-height:1.5}.join-actions button{font-size:10px}.crash-hud>.small-label{font-size:9px}
}
@media(orientation:portrait){
 .touch-layout .speedometer{left:50%;right:auto;transform:translateX(-50%);bottom:calc(103px + var(--safe-bottom));width:82px}.touch-layout .speed-number strong{font-size:43px}.touch-layout .speed-number>span{font-size:7px}.touch-layout .speed-foot{font-size:6px}.touch-layout #hud-bike{display:none}.touch-layout .power-track{margin-top:8px}.touch-layout .tachometer{left:50%;right:auto;transform:translateX(-50%);width:108px;bottom:calc(190px + var(--safe-bottom));padding:8px;border-left-width:1px}.touch-layout .tach-head #gear-mode,.touch-layout .tach-scale,.touch-layout .shift-hint,.touch-layout .tach-title small{display:none}.touch-layout .tach-readout{gap:6px;margin:7px 0}.touch-layout .tach-readout strong{font-size:18px}.touch-layout .gear-readout{padding-left:7px}.touch-layout .gear-readout strong{font-size:27px}.touch-layout .tach-readout small{font-size:5px}.touch-layout .shift-status{font-size:6px;line-height:1.5;letter-spacing:0;margin-top:6px}.touch-layout .clutch-readout{font-size:6px;padding-top:5px;margin-top:5px}.touch-layout .clutch-readout>div:first-child,.touch-layout .clutch-track,.touch-layout #engine-health{display:none}.touch-layout .clutch-readout>div{flex-wrap:wrap}.touch-layout .downshift-preview{font-size:6px}.touch-layout .balance-instrument{bottom:calc(201px + var(--safe-bottom))}.touch-layout .balance-instrument .gear-readout strong{font-size:13px}
}
@media(max-width:359px) and (orientation:portrait){.touch-layout #stick{width:88px;height:88px}.touch-layout .manual-touch{width:88px}.touch-layout .touch-right{width:112px}.touch-layout .pedals button{width:50px}.touch-layout .pedals #throttle{width:56px}.touch-layout #reverse{right:58px;width:54px}.touch-layout #tuck{width:52px}.touch-layout #wheelie{width:112px}.touch-layout .touch-shifts button{width:53px}.touch-layout .speedometer{width:64px}.touch-layout .speed-number strong{font-size:35px}.touch-layout .tachometer{width:91px}.touch-layout .tach-readout strong{font-size:16px}.touch-layout .gear-readout strong{font-size:24px}.top-actions{gap:2px;right:10px}.settings-panel .options>label{grid-template-columns:78px 1fr}.setting-stepper output{font-size:9px}.panel{padding-left:16px;padding-right:16px}}
@media(max-height:650px) and (orientation:portrait){.wordmark{top:22px}.wordmark h1{font-size:36px}.wordmark .eyebrow,.wordmark:after{display:none}.garage .bike-caption{bottom:218px}.garage .machine-heading{display:none}.garage .finishes .finish{width:34px;height:34px}.garage .ride-card{bottom:14px}.manual-tip{top:33%;padding:8px 10px;font-size:8px}.manual-tip b{font-size:8px}.touch-layout .tachometer{bottom:183px}.touch-layout .manual-touch{bottom:192px}.touch-layout .manual-touch>button{min-height:44px}.touch-layout .manual-touch>div button{min-height:36px}.manual-bike #wheelie{bottom:208px}.route-radar canvas{height:54px;aspect-ratio:auto}}
@media(max-height:540px) and (orientation:landscape){
 .wordmark{left:24px;top:24px}.wordmark h1{font-size:36px}.wordmark:after,.wordmark .eyebrow{display:none}.garage .bike-caption{left:24px;bottom:24px;width:235px}.machine-heading,.machine-specs,.bike-caption p{display:none}.machine-nav h2{font-size:27px}.finishes .finish{width:32px;height:32px}.garage .ride-card{left:auto;right:24px;bottom:20px;width:240px}.ride-card .machine-button{display:none}.ride-card .primary,.ride-card .secondary{min-height:46px;font-size:20px;padding:12px}.card-footer{margin-top:4px}.score-box>#score{font-size:22px}.score-box .small-label{font-size:6px}.session-line{font-size:7px}.top-actions{right:16px;top:12px}.top-actions #camera-name{display:none}.route-radar{padding:5px}.route-radar canvas{height:56px;aspect-ratio:auto}.route-radar small{font-size:6px}.crew-radar{display:none}.region-chip{bottom:16px;font-size:7px;max-width:30vw}.region-chip small{display:none}.network-pill{left:auto;right:16px;transform:none;bottom:0;font-size:6px}.desktop-controls{max-width:50vw;font-size:7px;bottom:12px;left:16px}.touch-layout #stick{bottom:38px;width:88px;height:88px}.touch-layout .touch-right{bottom:36px;width:234px;height:142px}.touch-layout .pedals button{width:56px;height:70px}.touch-layout .pedals #throttle{width:60px;height:90px}.touch-layout #reverse{bottom:0;right:182px;width:52px}.touch-layout #tuck{bottom:50px;right:182px;width:52px}.touch-layout #wheelie{bottom:100px;right:120px;width:114px;min-height:40px}.touch-layout .touch-shifts{bottom:0;right:122px;flex-direction:column;gap:4px}.touch-layout .touch-shifts button{width:52px;min-height:44px;font-size:20px}.touch-layout .manual-touch{left:116px;bottom:36px;width:92px}.touch-layout .manual-touch>button{min-height:46px}.touch-layout .manual-touch>div button{min-height:44px}.touch-layout .speedometer{left:48%;right:auto;transform:translateX(-50%);bottom:42px;width:86px}.touch-layout .speed-number strong{font-size:42px}.touch-layout .speed-number>span{font-size:7px}.touch-layout .speed-foot{font-size:6px}.touch-layout #hud-bike{display:none}.touch-layout .tachometer{left:48%;right:auto;transform:translateX(-50%);bottom:118px;width:166px;padding:8px}.touch-layout .tach-head #gear-mode,.touch-layout .tach-scale,.touch-layout .shift-hint,.touch-layout .clutch-readout>div:first-child,.touch-layout .clutch-track,.touch-layout #engine-health{display:none}.touch-layout .tach-readout{margin:5px 0}.touch-layout .tach-readout strong{font-size:22px}.touch-layout .gear-readout strong{font-size:28px}.touch-layout .shift-status{font-size:7px;margin-top:5px}.touch-layout .clutch-readout{font-size:6px;margin-top:5px;padding-top:5px}.manual-tip{top:20%;left:54%;width:40vw;font-size:8px;padding:8px}.manual-tip b{font-size:8px}.reward-hud{width:110px;gap:3px}.reward-chip{padding:4px 5px 7px}.reward-chip b{font-size:6px}.reward-chip small{font-size:7px}.pause-panel{padding:60px 8vw 12px}.pause-panel h2{font-size:30px;margin:8px 0}.pause-panel .panel-header{top:8px}.menu-choice{font-size:13px;min-height:40px;padding:8px 12px}.menu-hint{margin-top:8px!important}.fleet-panel .panel-header{top:8px}.fleet-panel>h2{top:58px;font-size:25px}.fleet-dock{bottom:12px}.fleet-grid{margin-bottom:8px}.fleet-option{min-height:55px;padding:8px;flex-basis:110px;gap:4px}.fleet-option strong{font-size:15px}.fleet-detail h3{font-size:24px;margin:4px 0}.fleet-detail p{display:none}.fleet-performance b{font-size:20px}.fleet-bottom{margin-top:6px}.fleet-bottom .primary{min-height:44px}.fleet-bottom .finish{width:30px;height:30px}.panel{max-height:calc(100dvh - 20px);padding:18px 26px}.panel h2{font-size:28px;margin:14px 0}.settings-panel .options>label{min-height:46px}.settings-panel .options{margin:12px 0}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Review refinements: readable sky-side HUD and familiar riding-control symbols. */
.control-icon{display:block;width:24px;height:24px;flex:none;pointer-events:none}.action-label{font-size:8px;letter-spacing:.08em}.top-actions>button{display:flex;align-items:center;justify-content:center;gap:7px}.top-actions .control-icon{width:20px;height:20px}
.touch-small{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border:1px solid #d6e8df52;border-radius:50%;background:radial-gradient(circle,#08121b25,#08121b90);font-size:8px;min-height:50px}.touch-small .control-icon{width:24px;height:24px}.touch-small span{pointer-events:none}#reverse{width:56px;right:66px}#tuck{width:54px;right:0}#wheelie{width:54px;right:34px}.score-box{background:linear-gradient(90deg,#08121bba,#08121b20);padding:7px 10px}.score-box .small-label{color:#e3e8dc}.session-line{color:#c3d4d5}.route-radar>div{color:#c3d4d5}
@media(max-width:700px){.score-box{padding:7px 9px}.score-box .small-label{font-size:7px;letter-spacing:.07em}.session-line{font-size:8px}.top-actions>button{flex-direction:column;gap:2px;padding:5px 8px;font-size:8px}.top-actions #camera,.top-actions #pause{font-size:8px}.top-actions #camera:before,.top-actions #pause:before{content:none}.top-actions .control-icon{width:18px;height:18px}.top-actions .action-label{font-size:7px}.route-radar>div{font-size:8px;letter-spacing:.04em}.route-radar small{font-size:7px}.settings-panel .options>label{font-size:10px;letter-spacing:.025em}.setting-stepper output{font-size:11px}.rider-tag b{font-size:11px}.rider-tag small{font-size:8px}.touch-shifts button small{font-size:8px}.stick-guide{font-size:9px}.manual-touch>button{font-size:10px}.manual-touch>div button{min-height:44px;font-size:9px}.manual-touch>button small{font-size:7px}}
@media(orientation:portrait){.touch-layout .tach-readout small{font-size:6px}.touch-layout .shift-status{font-size:7px}.touch-layout .downshift-preview{font-size:7px;letter-spacing:-.03em}.touch-layout .clutch-readout>div:last-child{display:none}.touch-layout .rpm-meter{height:5px}.touch-layout .speed-foot{font-size:7px}}
@media(max-width:359px) and (orientation:portrait){#reverse{right:60px;width:52px}#tuck{width:52px}#wheelie{right:29px;width:54px}.score-box .small-label{font-size:6px}.settings-panel .options>label{font-size:9px}.setting-stepper output{font-size:10px}.touch-layout .manual-touch>div button{min-height:44px}}
@media(max-height:540px) and (orientation:landscape){.touch-layout #reverse{right:182px;width:52px}.touch-layout #tuck{right:182px;width:52px}.touch-layout #wheelie{right:122px;width:52px;min-height:50px}.score-box{padding:5px 9px}.top-actions>button{min-height:44px}.touch-small{min-height:46px;font-size:7px}.touch-small .control-icon{width:21px;height:21px}}

.settings-panel .options>label:has(#units){display:none}
@media(min-width:701px) and (min-height:541px){.network-pill{left:24px;bottom:72px;transform:none;max-width:38vw}.crew-radar{bottom:120px}.desktop-controls{max-width:40vw}}
@media(max-width:700px){.panel:not(.pause-panel)>.panel-header{position:sticky;top:-18px;z-index:2;background:#08111bf7}.panel:not(.pause-panel)>.primary:last-child{position:sticky;bottom:0}}
@media(max-height:540px) and (orientation:landscape){
 .touch-layout .tachometer{left:48%;bottom:108px;width:250px;height:72px;padding:8px;transform:translateX(-50%)}
 .touch-layout .tach-head{display:none}.touch-layout .tach-readout{float:left;width:100px;gap:6px;margin:0}.touch-layout .tach-readout strong{font-size:20px}.touch-layout .gear-readout{padding-left:7px}.touch-layout .gear-readout strong{font-size:27px}.touch-layout .tach-readout small{font-size:6px}
 .touch-layout .rpm-meter,.touch-layout .shift-status,.touch-layout .clutch-readout{margin-left:110px}.touch-layout .rpm-meter{margin-top:5px}.touch-layout .shift-status{margin-top:7px;font-size:7px}.touch-layout .clutch-readout{margin-top:6px;padding-top:3px;font-size:7px}.touch-layout .clutch-readout>div:last-child{display:none}
}
.manual-touch>div button{min-width:44px}
@media(max-width:359px) and (orientation:portrait){.touch-layout .manual-touch{width:94px}}
@media(max-height:540px) and (orientation:landscape){.touch-layout .manual-touch{width:94px}}
@media(max-width:359px) and (max-height:650px) and (orientation:portrait){
 .touch-layout .touch-right :is(#reverse,#tuck,#wheelie){position:fixed;top:calc(152px + var(--safe-top));bottom:auto;width:50px;height:50px;min-height:50px}
 .touch-layout .touch-right #reverse{right:128px}.touch-layout .touch-right #tuck{right:72px}.touch-layout .touch-right #wheelie{right:16px}
 .touch-layout .touch-right .touch-shifts{right:0;bottom:112px;flex-direction:column;gap:6px}.touch-layout .touch-right .touch-shifts button{width:53px;min-height:46px}
 .touch-layout .tachometer .tach-head,.touch-layout .tachometer .tach-readout small{display:none}.touch-layout .tachometer .tach-readout{margin:5px 0}.touch-layout .tachometer .shift-status{margin-top:4px}.touch-layout .tachometer .downshift-preview{flex-direction:column;gap:0;line-height:1.4}
}

.rider-tag:after{left:calc(50% + var(--pointer-offset,0px) - 3px)}
@media(max-width:359px) and (max-height:650px) and (orientation:portrait){.touch-layout .tachometer:before{content:'RPM';position:absolute;left:8px;top:2px;font-size:6px;color:var(--muted)}}

#touch-controls button,#touch-controls #stick{touch-action:none}

/* Saved road visibility; alerts and dialogs retain full contrast. */
:root{--hud-opacity:.72}
.riding #touch-controls button,.riding #stick,.riding .route-radar,.riding .score-box,.riding .tachometer,.riding .speedometer,.riding .top-actions,.riding .region-chip,.riding .desktop-controls,.riding .network-pill:not(.waiting),.riding .riding-pose{opacity:var(--hud-opacity)}
.riding #touch-controls button:active,.riding #stick:active{opacity:1}
.riding-pose{position:fixed;bottom:calc(21px + var(--safe-bottom));left:50%;transform:translateX(-50%);padding:5px 9px;color:#ffe3a0;background:#09121b70;border-left:2px solid #e5bb6a;font-size:8px;font-weight:800;letter-spacing:.12em;text-shadow:0 1px 3px #000;pointer-events:none}
.car-machine #wheelie,.car-machine #tuck{display:none!important}
/* At intermediate widths the physical car cluster already carries speed,
   RPM and gear; the floating duplicates otherwise cover that same display. */
@media(max-width:1100px){.car-machine.first-person #tachometer,.car-machine.first-person .speedometer{display:none!important}}
@media(max-width:700px) and (orientation:portrait){.riding-pose{bottom:calc(81px + var(--safe-bottom));max-width:180px;text-align:center;font-size:7px}}
@media(orientation:landscape) and (max-height:540px){.riding-pose{bottom:calc(18px + var(--safe-bottom));left:48%;font-size:7px}}

@media(max-width:700px) and (orientation:portrait){
 .car-machine.first-person #tachometer,.car-machine.first-person .speedometer{display:none!important}
 .tucked-bike.first-person.touch-layout #tachometer{left:auto;right:14px;top:calc(267px + var(--safe-top));bottom:auto;transform:none;width:108px}
}
@media(orientation:landscape) and (max-height:540px){
 .car-machine.first-person #tachometer{display:none!important}
 .tucked-bike.first-person.touch-layout #tachometer{left:32%;top:37px;bottom:auto;transform:none;width:155px}
}
@media(max-width:359px) and (orientation:portrait){
 .tucked-bike.first-person.touch-layout #tachometer{left:50%;right:auto;transform:translateX(-50%);top:calc(213px + var(--safe-top));bottom:auto;width:91px}
 .tucked-bike.first-person.touch-layout #tachometer .downshift-preview{display:none}
}

/* Keep stacked crew labels tied to their rider and active controls readable. */
.rider-tag:before{content:'';position:absolute;top:100%;left:calc(50% + var(--pointer-offset,0px));height:var(--tag-lift,0px);width:1px;background:currentColor;opacity:.65}
.rider-tag:after{bottom:calc(-6px - var(--tag-lift,0px))}
.riding #touch-controls button.active{opacity:1}
.riding #touch-controls button,.riding .top-actions button{border-radius:4px}
.riding .top-actions{background:linear-gradient(90deg,#07111915,#07111988);border-bottom:1px solid #c6ddd34a}
@media(max-width:359px) and (orientation:portrait){.riding-pose{bottom:calc(73px + var(--safe-bottom));max-width:130px;letter-spacing:.05em}}

/* Instrument polish: steady numbers and tactile menu feedback, no backdrop blur. */
.speed-number,.tach-readout,.score-box>#score,.session-line,.rider-tag small,.setting-stepper output{font-variant-numeric:tabular-nums lining-nums}
.speed-number strong,.tach-readout strong{text-shadow:0 2px 5px #02080c80}
.menu-choice:focus-visible{background:linear-gradient(90deg,#ffb47d24,transparent);border-left-color:var(--lime);color:var(--paper);outline-offset:0}
.setting-stepper button:focus-visible,.setting-stepper button:active{background:#ffb47d20;color:#ffe3ce}
.fleet-option[aria-pressed=true]{box-shadow:inset 0 -2px 0 var(--lime)}
.panel-header .small-label{color:#b9cccf}
@media(prefers-reduced-motion:no-preference){
 .menu-choice,.setting-stepper button{transition:background-color .12s,color .12s,border-color .12s}
 .panel[open]:not(.fleet-panel){animation:menu-arrive .12s ease-out}
 @keyframes menu-arrive{from{opacity:.8;translate:0 5px}to{opacity:1;translate:0 0}}
}

/* Compact ride telemetry stays within the established speedometer footprint. */
.speed-number .speed-meta{display:flex;flex-direction:column;align-items:flex-end;gap:5px;min-width:0;letter-spacing:.07em}
.ride-state{font-size:9px;line-height:1;white-space:nowrap;color:var(--muted);font-weight:800}
.ride-state[data-state=drive],.ride-state[data-state=tuck]{color:var(--crew)}
.ride-state[data-state=brake],.ride-state[data-state=reverse],.ride-state[data-state=lift]{color:var(--lime)}
.ride-state[data-state=slip],.ride-state[data-state=warning],.ride-state[data-state=impact]{color:#ff887a}
.lean-indicator{position:relative;display:block;width:24px;height:9px;border-bottom:1px solid #9bb0b84d}
.lean-indicator:before{content:'';position:absolute;left:50%;top:0;height:9px;border-left:1px solid #eee8dc5e}
.lean-indicator i{position:absolute;left:2px;top:4px;width:20px;height:2px;background:var(--paper);transform:rotate(var(--bank,0deg));transition:transform .1s linear}
.speedometer .power-track{height:8px;margin-top:5px;background:none;position:relative;background:repeating-linear-gradient(0deg,#ceddd91f 0 2px,transparent 2px 3px)}
.speedometer .power-track i{position:absolute;left:0;height:2px;transition:width .1s linear}
.speedometer #power{top:0;background:#eee8dc80}
.speedometer #throttle-meter{top:3px;background:var(--crew)}
.speedometer #brake-meter{top:6px;background:#ff887a}
.touch-layout .speed-number .speed-meta{gap:3px;letter-spacing:0}
.ride-state[data-state=coast]{display:none}
.speed-foot:has(.ride-state:not([data-state=coast])) #hud-bike{display:none}
.touch-layout .speed-foot:has(.ride-state:not([data-state=coast])) #battery{display:none}
.touch-layout .speed-foot{min-height:9px}
.touch-layout .ride-state{font-size:9px;letter-spacing:0}
/* The native cluster's footer projects to about 3–4px on a short laptop.
   Read its existing fuel/state HUD at a fixed size outside the road corridor. */
@media(min-width:900px) and (min-height:541px){
 .riding.first-person:not(.touch-layout):not(.car-machine) .speed-foot{flex-direction:column;align-items:flex-start;gap:2px;min-height:38px;font-size:14px;line-height:18px;letter-spacing:0;font-weight:700;color:var(--paper);text-shadow:1px 1px 0 #172637,-1px -1px 0 #172637,1px -1px 0 #172637,-1px 1px 0 #172637}
 .riding.first-person:not(.touch-layout):not(.car-machine) .speed-foot .ride-state{font-size:inherit;line-height:inherit}
}
.touch-layout .lean-indicator{width:16px;height:6px}
.touch-layout .lean-indicator:before{height:6px}
.touch-layout .lean-indicator i{left:1px;top:2px;width:14px;height:1px}
@media(prefers-reduced-motion:reduce){.lean-indicator i,.speedometer .power-track i{transition:none}}
/* STREET DIVISION — original handheld-city art: ink, sun yellow, coral, teal. */
:root{--lime:#f5ce52;--ink:#172637;--muted:#b2c7ca;--crew:#73ded0;--paper:#fff0c6;--edge:#fff0c640}
body{background:#263d51}.cinematic{background:linear-gradient(0deg,#172637d9,transparent 48%),linear-gradient(90deg,#17263730,transparent 60%)}.riding .cinematic{opacity:0}
.wordmark .eyebrow{color:#fff0c6;letter-spacing:.12em}.wordmark h1{font-family:Impact,'Arial Black',Arial,sans-serif;font-style:normal;letter-spacing:-.045em;color:#fff0c6;text-shadow:3px 3px 0 #172637,6px 6px 0 #ee7354;transform:rotate(-3deg)}.wordmark h1 span{color:#f5ce52}.wordmark:after{content:'STREET DIVISION / RIDE THE GAP';background:#172637;color:#fff0c6;padding:6px 10px;letter-spacing:.1em;font-weight:900}
.garage .ride-card{background:#172637eb;border:2px solid #fff0c6;padding:14px;box-shadow:6px 6px 0 #172637}.garage .bike-caption{padding:12px 16px;border-left:5px solid var(--lime);background:linear-gradient(90deg,#172637ed,#17263730)}.machine-nav h2,.fleet-detail h3,.panel h2{font-family:Impact,'Arial Black',Arial,sans-serif;letter-spacing:.01em;font-style:normal}.machine-nav button{border:1px solid #fff0c655;background:#172637bd}
.primary{border:2px solid #172637;box-shadow:3px 3px 0 #070e16}.secondary{border:1px solid #fff0c680;background:#294858}.primary:hover{background:#ffe89b}.secondary:hover{background:#356276}.ride-card .primary,.ride-card .secondary{font-style:normal;transform:none;font-weight:900}.ride-card .primary{font-size:23px}.ride-card .secondary{font-size:16px}
.score-box>#score{color:#f5ce52;text-shadow:2px 2px 0 #172637,3px 3px 0 #172637}.score-box .small-label{color:#fff0c6}.session-line{color:#d0e4e1}.speed-number strong{color:#fff0c6;text-shadow:2px 2px 0 #172637}.speedometer .power-track{filter:drop-shadow(0 1px 0 #172637)}
.route-radar{border:2px solid #172637;border-top:3px solid var(--lime);background:#203849ed;box-shadow:3px 3px 0 #17263780}.region-chip{border-left:4px solid #ee7354;background:#172637d9;padding:6px 9px}.region-chip>span{color:var(--lime);font-weight:900}.top-actions button,.top-actions summary{border:1px solid #fff0c660;background:#172637c9}.top-actions button:hover{background:#325665}.network-pill{background:#172637e6;border:1px solid #73ded070}.network-pill button{background:#73ded0;color:#172637;font-weight:900}
.tachometer{background:#172637d9;border-left:3px solid #f5ce52}.gear-readout strong{color:#f5ce52}.rider-tag{background:#172637e8;border:1px solid #73ded0;box-shadow:2px 2px 0 #172637}.rider-tag.bot{border-color:#f5ce52}
.panel{background:#172637f5;border-top:4px solid #f5ce52}.panel-header{border-color:#fff0c650}.setting-stepper button{background:#f5ce5212;color:#f5ce52}.fleet-option{border:1px solid #fff0c630;border-bottom:3px solid #547782;background:#172637d9}.fleet-option[aria-pressed=true]{background:#f5ce52;color:#172637;border-color:#172637}.fleet-option[aria-pressed=true] small,.fleet-option[aria-pressed=true]>span{color:#31434b}.live-ride{background:#294858;border-left:4px solid #73ded0}.menu-choice:hover,.menu-choice:focus-visible{background:#f5ce5226}
.touch-layout .pedals button,.touch-layout .touch-small,.touch-layout .manual-touch>button,.touch-layout .touch-shifts button{box-shadow:2px 2px 0 #17263780;border-width:2px}.touch-layout .pedals #throttle{background:#f5ce522b;color:#ffe891;border-color:#f5ce52}.touch-layout #brake{border-color:#ee7354;color:#ffa98b;background:#572d2a99}.touch-layout #stick{border:2px solid #fff0c680;background:radial-gradient(circle,#17263738 52%,#172637bd 54%)}.touch-layout #stick-knob{background:#73ded033;border:2px solid #73ded0}.touch-controls button.active{background:#f5ce52!important;color:#172637!important}
.fallback{background:linear-gradient(135deg,#172637ed,#294858ed);border:8px solid #f5ce52}.fallback h1{font-family:Impact,'Arial Black',sans-serif;color:#f5ce52;letter-spacing:.04em}.fallback>.primary{max-width:340px}.failure-details{max-width:min(600px,90vw);width:100%;text-align:left;border:1px solid #fff0c655;padding:12px}.failure-details summary{font-weight:bold;cursor:pointer}.failure-details pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.5 monospace;max-height:30vh;overflow:auto;color:#fff0c6}
@media(max-width:700px){.garage .ride-card{padding:10px}.garage .bike-caption{padding:8px 12px}.wordmark h1{text-shadow:2px 2px #172637,4px 4px #ee7354}.region-chip{padding:3px 6px}.route-radar{border-width:1px;border-top-width:3px}}
@media(max-height:500px) and (orientation:landscape){.garage .ride-card{padding:9px}.garage .ride-card .primary,.garage .ride-card .secondary{font-size:17px}.garage .bike-caption{padding:8px 12px}}

.riding #world{cursor:crosshair}.riding.mouse-driving #world{cursor:ew-resize}
#speed-sensation{position:fixed;inset:0;pointer-events:none;overflow:hidden;opacity:0;transition:opacity .3s;--rush-time:1s;z-index:1}#speed-sensation i{position:absolute;left:0;top:33%;width:16vw;height:2px;background:linear-gradient(90deg,#fff0b9,transparent);transform-origin:left center;animation:road-rush var(--rush-time) linear infinite;animation-play-state:paused}#speed-sensation i:nth-child(2){top:55%;width:12vw;animation-delay:-.3s}#speed-sensation i:nth-child(3){top:74%;width:19vw;animation-delay:-.6s}#speed-sensation i:nth-child(n+4){left:auto;right:0;transform-origin:right center;background:linear-gradient(270deg,#a6f2e7,transparent)}#speed-sensation i:nth-child(5){top:55%;width:12vw;animation-delay:-.45s}#speed-sensation i:nth-child(6){top:74%;width:19vw;animation-delay:-.15s}.riding #speed-sensation[data-active=true] i{animation-play-state:running}
/* A pair of narrow, soft edge bands suggest air rushing past without blurring
   the central road or adding a full-screen post-processing pass. */
#speed-sensation:before,#speed-sensation:after{content:"";position:absolute;top:-3%;bottom:-3%;width:min(13vw,96px);min-width:44px;opacity:.38;pointer-events:none;background:linear-gradient(180deg,#d6fff91a 0%,transparent 24%,#d6fff916 50%,transparent 76%,#d6fff91a 100%);mask-image:linear-gradient(90deg,#000,transparent);animation:wind-edge var(--rush-time) linear infinite;animation-play-state:paused}
#speed-sensation:before{left:0}#speed-sensation:after{right:0;transform:scaleX(-1)}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){#speed-sensation:before,#speed-sensation:after{backdrop-filter:blur(1.25px) saturate(1.04);-webkit-backdrop-filter:blur(1.25px) saturate(1.04)}}
@keyframes wind-edge{to{background-position:0 120%}}
.riding #speed-sensation[data-active=true]:before,.riding #speed-sensation[data-active=true]:after{animation-play-state:running}
@keyframes road-rush{0%{transform:scaleX(.2);opacity:0}30%{opacity:.9}100%{transform:scaleX(1.2);opacity:0}}
.quiet-ride #speed-sensation{display:none}
@media(prefers-reduced-motion:reduce){#speed-sensation{display:none}}

/* Momentary mouse instrument stays with the speed cluster, off the road line. */
.mouse-drive-guide{position:absolute;right:28px;bottom:calc(29px + var(--safe-bottom));width:150px;padding-top:8px;border-top:1px solid #fff0c655;color:#fff0c6;text-shadow:1px 1px #172637;pointer-events:none}
.mouse-drive-guide>div:first-child{display:flex;justify-content:space-between;gap:5px;font-size:9px;font-weight:800;letter-spacing:.04em}.mouse-drive-guide b{color:#73ded0}.mouse-drive-guide[data-state=brake] b{color:#ffa98b}
.mouse-steering-track{position:relative;height:17px;margin:4px 0;display:flex;align-items:center;justify-content:space-between;font-size:7px;font-weight:900;background:linear-gradient(#fff0c660,#fff0c660) center/84% 1px no-repeat}.mouse-steering-track:before{content:'';position:absolute;left:50%;top:2px;height:13px;width:1px;background:#fff0c6}.mouse-steering-track i{position:absolute;left:50%;top:4px;width:8px;height:8px;transform:translateX(-50%) rotate(45deg);border:1px solid #172637;background:#73ded0;box-shadow:0 0 0 1px #172637}.mouse-drive-guide[data-state=brake] i{background:#ffa98b}.mouse-drive-guide small{display:block;font-size:8px;letter-spacing:.03em}
@media(max-width:700px){.mouse-drive-guide{right:20px;width:120px;bottom:calc(25px + var(--safe-bottom))}}
@media(max-height:500px) and (orientation:landscape){.mouse-drive-guide{bottom:calc(35px + var(--safe-bottom))}}
/* Narrow mouse windows use the vacant pocket beside the speed digits, away
   from the centered CREW/region footer. Existing touch controls stay intact. */
@media(max-width:700px) and (orientation:portrait){.mouse-drive-guide{left:20px;right:auto;width:min(150px,calc(100vw - 180px));bottom:calc(104px + var(--safe-bottom))}}
.touch-layout .mouse-drive-guide{display:none}
@media(max-width:700px) and (orientation:portrait){
 .riding:not(.touch-layout) .desktop-controls{display:none}
 .riding .region-chip{bottom:calc(47px + var(--safe-bottom))}
}

.route-credit{font-size:11px;line-height:1.5;color:#b6bdc4;margin:12px 0}.route-credit a{color:#d4ff62;text-decoration:underline}

.vehicle-condition{color:#e2bc7e;font-size:9px;letter-spacing:.09em;margin:5px 0}.vehicle-condition.critical{color:#ff8e72}

/* Vehicle browser is a persistent garage action, including compact screens. */
.machine-nav{gap:7px}
.machine-nav h2{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(20px,2vw,30px)}
.machine-nav .vehicle-browser{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:48px;min-width:48px;height:44px;padding:3px;border:1px solid #f5ce65;background:#f5ce6518;color:#ffe18a;font-size:7px;font-weight:900;letter-spacing:.04em;line-height:1}
.machine-nav .vehicle-browser svg{width:17px;height:17px}
.machine-nav .vehicle-browser:hover,.machine-nav .vehicle-browser:focus-visible{background:#f5ce6540;outline:3px solid #73ded0;outline-offset:2px}
@media(max-width:700px){.machine-nav{gap:5px}.machine-nav h2{font-size:clamp(18px,5.7vw,24px)}}
@media(max-width:359px){.machine-nav .vehicle-browser{width:44px;min-width:44px}.machine-nav .vehicle-browser span:not([hidden]){font-size:6px}}

.crashed .ride-score-dock,.crashed .rider-tags{visibility:hidden}

/* THE BAY — a separate, mapped city diorama. Highway instruments stay intact. */
.world-choice{display:flex;align-items:center;gap:12px;margin-bottom:15px;font-size:9px;letter-spacing:.09em;font-weight:900}.world-choice span{color:#f4ce56;border-bottom:2px solid #f4ce56;padding:7px 0}.world-choice a{color:#cfdfd5;text-decoration:none;padding:7px 0}.world-choice a:hover{color:#ffe18a}.city-mode> :not(#city-app):not(script){display:none!important}
#city-app{position:fixed;inset:0;background:#c8d7dc;color:#f5f0dc;font:12px Arial,Helvetica,sans-serif;isolation:isolate;--edge:24px;--safe:env(safe-area-inset-top,0px)}
#city-world{position:absolute;inset:0;width:100%;height:100%;touch-action:none}
#city-app button{background:#19343deb;color:#f4efdc;min-height:44px;padding:11px 15px;font-size:12px;font-weight:800;letter-spacing:.045em;border:1px solid #eee4c139;border-radius:3px;cursor:pointer;touch-action:manipulation}
#city-app button:hover{background:#36565b}#city-app button:disabled{opacity:.65;cursor:wait}#city-app button:focus-visible,#city-app a:focus-visible,#city-app select:focus-visible{outline:3px solid #f4cf63;outline-offset:3px}#city-app a{color:inherit;text-decoration:none}#city-app [hidden]{display:none!important}
.city-header{position:absolute;left:var(--edge);top:calc(20px + var(--safe));display:flex;gap:26px;align-items:center;pointer-events:none;filter:drop-shadow(0 2px 3px #17323c99)}.city-brand{font-size:27px;font-weight:1000;letter-spacing:-.07em;font-style:italic;pointer-events:auto;line-height:1}.city-brand span{display:block;font-size:8px;letter-spacing:.16em;font-style:normal;color:#ffe082;margin-top:6px}.city-location{border-left:2px solid #f2d37c;padding-left:14px;max-width:270px}.city-location b{display:block;font-size:15px;letter-spacing:.065em}.city-location span{display:block;font-size:12px;color:#f5f0df;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.city-actions{position:absolute;right:var(--edge);top:calc(18px + var(--safe));display:flex;gap:5px}.city-actions button{box-shadow:0 3px 12px #132a3440}.city-actions button span{color:#ffe084}#city-app kbd{font:10px Arial,sans-serif;color:#bdc9bd;margin-right:5px;border:1px solid #aac0b64d;padding:2px 4px;border-radius:2px}
.city-radar{position:absolute;left:var(--edge);bottom:38px;width:180px;padding:9px;background:#172f38e8;border:1px solid #e3d6ac50;box-shadow:0 4px 18px #142b3440;border-radius:3px}.city-radar>div{display:flex;justify-content:space-between;color:#ffe084;font-size:9px;letter-spacing:.06em;margin-bottom:6px}.city-radar canvas{display:block;width:100%;height:116px;touch-action:none;border-radius:1px}.city-radar small{display:block;margin-top:6px;font-size:10px;color:#dedfcb}.city-instruments{position:absolute;right:var(--edge);bottom:38px;width:190px;padding:10px 13px;background:#18323ce8;border-bottom:3px solid #f1cc65;box-shadow:0 4px 18px #152a3440;border-radius:3px}.city-speed{display:flex;align-items:baseline;gap:7px}.city-speed strong{font-size:57px;line-height:1;font-style:italic;font-weight:1000;letter-spacing:-.07em}.city-speed span{color:#d7d9c3;font-size:11px}.city-speed>b{margin-left:auto;font-size:28px;color:#ffe084}.city-revs{height:3px;background:#829c9b44;margin:8px 0}.city-revs i{height:100%;display:block;background:#f4ce6e;transition:width .1s linear}.city-machine{display:flex;gap:8px;justify-content:space-between;align-items:center;font-size:9px}.city-machine b{letter-spacing:.02em}.city-machine span{color:#d5d9c5;white-space:nowrap}.city-control-hint{position:absolute;bottom:9px;left:50%;transform:translateX(-50%);margin:0;font-size:11px;color:#f7f0dd;text-shadow:0 1px 4px #102631;white-space:nowrap;pointer-events:none}.city-control-hint i{font-style:normal;color:#f5d170;padding:0 7px}
.city-performance{position:absolute;right:var(--edge);top:calc(72px + var(--safe));white-space:pre-line;padding:8px 10px;border:1px solid #a1d3c967;border-radius:3px;background:#122c36e8;color:#d4eee1;font:11px/1.6 monospace;pointer-events:none}.city-toast{position:absolute;top:calc(92px + var(--safe));left:50%;transform:translate(-50%,-5px);opacity:0;max-width:min(80vw,540px);padding:12px 18px;background:#19353feb;border-left:3px solid #f5cf68;transition:opacity .2s,transform .2s;pointer-events:none;text-align:center;line-height:1.5;font-weight:700}.city-toast.show{opacity:1;transform:translate(-50%,0)}#city-app .city-recover{position:absolute;left:50%;bottom:90px;transform:translateX(-50%);background:#f4ce65;color:#18313b;box-shadow:0 4px 20px #172d4155;font-size:14px;z-index:3}
.city-start{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(430px,calc(100vw - 36px));padding:30px;background:#16343df5;border:1px solid #e5d79f66;box-shadow:0 18px 70px #13232e66;border-radius:4px}.city-kicker{font-size:10px;letter-spacing:.15em;color:#efce78}.city-start h1{font-size:65px;line-height:.9;font-style:italic;letter-spacing:-.065em;color:#f3d16d;margin:25px 0 20px}.city-start p{font-size:16px;line-height:1.6;color:#e2e3d0;margin:0 0 24px}.city-start button{display:block;width:100%;margin-top:8px}.city-start>a{display:block;font-size:12px;margin-top:18px;min-height:26px;color:#d9e0ce!important}.city-start>a:hover{text-decoration:underline}#city-app .city-primary{background:#f6d16b;color:#18343d;border-color:#ffe59b;min-height:52px;font-size:14px}#city-app .city-primary:hover{background:#ffe18a}
.city-dialog{width:min(490px,calc(100vw - 32px));max-height:calc(100dvh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));overflow-y:auto;padding:24px;margin:auto;background:#17343efc;color:#f2eddb;border:1px solid #e8d8a169;border-radius:5px;box-shadow:0 20px 90px #0c1b2b88;overscroll-behavior:contain}.city-dialog::backdrop,.city-atlas::backdrop{background:#071b2e70;backdrop-filter:blur(3px)}.city-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.city-dialog-head>span{color:#e8cf84;font-size:10px;letter-spacing:.1em}#city-app .city-dialog-head>button,#city-app .city-atlas-head>button{width:44px;height:44px;padding:0;flex:none;font-size:19px}.city-dialog h2{font-size:38px;font-style:italic;letter-spacing:-.04em;line-height:1;margin:22px 0}.city-dialog>.city-primary{width:100%}.city-menu-links{display:grid;gap:8px;margin:10px 0 18px}.city-settings{border-top:1px solid #9eaca63b;padding-top:12px;display:grid;gap:7px}.city-settings label{display:flex;justify-content:space-between;align-items:center;gap:15px;min-height:44px;font-size:12px;color:#ecebd7}.city-settings select,#city-app .city-select-label select{background:#102c36;color:#f8f0d5;border:1px solid #9ba99a7d;border-radius:3px;padding:10px;font-size:12px;min-height:44px;max-width:65%}.city-settings .city-check{cursor:pointer}.city-settings input[type=checkbox]{appearance:auto;min-height:0;width:20px;height:20px;margin:0 10px;accent-color:#f6d16b;cursor:pointer}.city-dialog p{font-size:12px;line-height:1.8;color:#d7decd;margin:18px 0}.city-highway-link{display:block;min-height:44px;line-height:1.5;padding:12px 0;color:#ead498!important;font-size:12px}.city-dialog #city-audio{margin-top:12px;min-width:130px}.city-select-label{display:flex;flex-direction:column;gap:9px;font-size:12px}.city-select-label select{width:100%;max-width:100%!important}.city-paints{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}#city-app .city-paints button{width:46px;height:46px;padding:0;border:2px solid #ffffff55;box-shadow:inset 0 0 0 3px #172c3a44}.city-paints button[aria-pressed=true]{outline:3px solid #f2d274;outline-offset:3px}
.city-atlas{width:min(1180px,calc(100vw - 40px));height:min(780px,calc(100dvh - 40px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)));max-height:none;margin:auto;padding:20px;background:#17343efa;color:#f3edda;border:1px solid #e8d8a177;border-radius:5px;overflow:hidden}.city-atlas-head{display:flex;justify-content:space-between;align-items:center;height:72px;gap:16px}.city-atlas-head span{font-size:10px;color:#e5cf83;letter-spacing:.12em}.city-atlas h2{font-size:32px;line-height:1;font-style:italic;letter-spacing:-.04em;margin:7px 0 13px}.city-atlas-layout{height:calc(100% - 124px);display:grid;grid-template-columns:250px 1fr;gap:15px}.city-atlas-layout>nav{overflow-y:auto;padding:0 7px 0 0;overscroll-behavior:contain}#city-app .city-atlas-layout>nav button{display:flex;width:100%;text-align:left;align-items:center;gap:10px;padding:14px 9px;margin:0 0 7px;min-height:66px}.city-atlas-layout nav small{font-size:11px;color:#e7ca70}.city-atlas-layout nav span{font-size:14px;flex:1}.city-atlas-layout nav em{display:block;font-size:10px;line-height:1.4;font-style:normal;color:#c1cebe;margin-top:5px}.city-atlas-layout nav b{color:#e7ca70;font-size:20px}.city-map-surface{position:relative;min-height:0;overflow:hidden;background:#1d4148;border:1px solid #c6cfac55}.city-map-surface>canvas{display:block;width:100%;height:100%;touch-action:none}.city-map-tools{position:absolute;top:10px;right:10px;display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}#city-app .city-map-tools button{padding:9px 12px;min-width:44px;min-height:44px;font-size:11px;background:#142f3bed}.city-map-instruction{position:absolute;bottom:10px;left:12px;padding:7px 9px;background:#17343dda;font-size:10px;letter-spacing:.03em;pointer-events:none}.city-atlas footer{height:45px;display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:11px;line-height:1.5}.city-atlas footer a{font-size:10px;color:#e3d091!important;flex:none}.city-touch{display:none}.city-credits{position:absolute;bottom:5px;right:10px;font-size:9px;color:#f3eddd!important;text-shadow:0 1px 3px #132c3a}.city-mode .city-credits:hover{text-decoration:underline}
#city-app:not([data-state=drive]) .city-radar,#city-app:not([data-state=drive]) .city-instruments,#city-app:not([data-state=drive]) .city-control-hint{visibility:hidden}#city-app[data-state=welcome] .city-actions{display:none}#city-app[data-state=welcome] .city-location{display:none}
#city-app[data-touch=true] .city-touch{position:absolute;left:var(--edge);right:var(--edge);bottom:calc(28px + env(safe-area-inset-bottom,0px));display:flex;align-items:flex-end;justify-content:space-between;pointer-events:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}#city-stick{position:relative;pointer-events:auto;width:146px;height:112px;background:#17333dc7;border:1px solid #dedcba6b;border-radius:50%;touch-action:none;overflow:hidden;box-shadow:inset 0 0 25px #142c3540}#city-stick>span{position:absolute;top:15px;left:0;width:100%;text-align:center;font-size:11px;letter-spacing:.12em;color:#e4d8af}#city-stick>i{position:absolute;left:calc(50% - 22px);top:44px;width:44px;height:44px;border-radius:50%;background:#e6d7a9dd;box-shadow:0 2px 8px #10273255}#city-stick>b{position:absolute;bottom:4px;left:0;width:100%;font-size:23px;text-align:center;color:#b8ccbf88;pointer-events:none}.city-pedals{pointer-events:auto;display:grid;grid-template-columns:70px 70px;gap:6px}#city-app .city-pedals button{touch-action:none;padding:8px 4px;font-size:11px;min-height:44px;background:#183640dc;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}#city-app #city-power,#city-app #city-brake{height:76px;font-size:12px}#city-app #city-power{color:#ffe08a;border-bottom:3px solid #f4ce67;background:#29484adb}#city-app .city-pedals button.held{background:#f5d175;color:#17343d}#city-app[data-touch=true] .city-radar,#city-app[data-touch=true] .city-instruments{top:calc(86px + var(--safe));bottom:auto}#city-app[data-touch=true] .city-control-hint{display:none}
@media(max-width:700px){
 #city-app{--edge:12px}.city-header{top:calc(14px + var(--safe));left:12px;right:12px;gap:12px;justify-content:space-between}.city-brand{font-size:23px;flex:none}.city-brand span{font-size:7px;letter-spacing:.1em;margin-top:5px}.city-location{padding-left:10px;max-width:48%;border-left-width:1px}.city-location b{font-size:12px;letter-spacing:.035em}.city-location span{font-size:11px;margin-top:3px}.city-actions{left:12px;right:12px;top:calc(64px + var(--safe));display:grid;grid-template-columns:repeat(4,1fr);gap:5px}#city-app .city-actions button{padding:9px 4px;font-size:11px;min-height:44px}.city-actions kbd{display:none}.city-radar,#city-app[data-touch=true] .city-radar{left:12px;top:calc(120px + var(--safe));bottom:auto;width:112px;padding:6px}.city-radar>div{font-size:8px;margin-bottom:4px}.city-radar>div>span{display:none}.city-radar canvas{height:74px}.city-radar small{font-size:10px;margin-top:5px}.city-instruments,#city-app[data-touch=true] .city-instruments{right:12px;top:calc(120px + var(--safe));bottom:auto;width:120px;padding:7px 9px}.city-speed{gap:4px}.city-speed strong{font-size:44px}.city-speed span{font-size:10px}.city-speed>b{font-size:22px}.city-revs{margin:5px 0}.city-machine{display:block;font-size:9px;line-height:1.5}.city-machine span{display:block}.city-control-hint{white-space:normal;width:calc(100% - 50px);text-align:center;bottom:29px;font-size:10px;line-height:1.6}.city-start{padding:25px;width:calc(100vw - 38px);max-width:400px}.city-start h1{font-size:59px;margin:24px 0 20px}.city-start p{font-size:15px}.city-kicker{font-size:9px}.city-toast{top:calc(240px + var(--safe));width:calc(100% - 40px);font-size:12px;padding:9px 12px}.city-performance{top:calc(249px + var(--safe));left:12px;right:auto;font-size:9px;line-height:1.6;padding:6px 8px;max-width:calc(100% - 24px)}.city-toast.show~.city-performance{opacity:.6}.city-dialog{padding:20px;width:calc(100vw - 26px);max-height:calc(100dvh - 26px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}.city-dialog h2{font-size:34px;margin:20px 0}.city-dialog p{font-size:12px;line-height:1.7}.city-dialog-head>span{font-size:9px}.city-settings label{gap:10px}.city-settings select{font-size:11px;max-width:64%;padding:8px 5px}.city-atlas{width:calc(100vw - 16px);height:calc(100dvh - 20px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));padding:12px}.city-atlas-head{height:67px}.city-atlas h2{font-size:27px}.city-atlas-layout{display:flex;flex-direction:column;height:calc(100% - 142px);gap:8px}.city-atlas-layout>nav{display:flex;gap:6px;flex:none;overflow-x:auto;padding:0 0 5px}#city-app .city-atlas-layout>nav button{flex:none;width:156px;margin:0;padding:9px 8px;min-height:63px}.city-atlas-layout nav span{font-size:13px}.city-atlas-layout nav em{font-size:9px}.city-map-surface{flex:1;min-height:180px}.city-atlas footer{height:68px;display:block;padding-top:8px;font-size:11px}.city-atlas footer a{display:block;margin-top:5px;font-size:9px}.city-map-tools{top:7px;right:7px;gap:4px}#city-app .city-map-tools button{padding:8px;font-size:10px}.city-map-instruction{font-size:9px;left:7px;bottom:7px}.city-credits{font-size:8px;bottom:6px}.city-touch #city-stick{width:132px;height:112px}.city-pedals{grid-template-columns:66px 66px;gap:5px}#city-app .city-recover{bottom:calc(185px + env(safe-area-inset-bottom,0px));font-size:12px;min-width:170px}
}
@media(max-height:540px) and (orientation:landscape){
 #city-app{--edge:14px}.city-header{top:calc(11px + var(--safe));left:14px;gap:14px}.city-brand{font-size:22px}.city-brand span{font-size:7px}.city-location b{font-size:12px}.city-location span{font-size:11px}.city-actions{top:calc(9px + var(--safe));right:14px;left:auto;display:flex;gap:4px}#city-app .city-actions button{font-size:10px;padding:9px;min-height:44px}.city-actions kbd{display:none}.city-radar,#city-app[data-touch=true] .city-radar{left:14px;top:calc(70px + var(--safe));bottom:auto;width:108px;padding:6px}.city-radar canvas{height:60px}.city-radar>div{font-size:8px}.city-radar>div>span{display:none}.city-radar small{font-size:9px}.city-instruments,#city-app[data-touch=true] .city-instruments{right:14px;top:calc(70px + var(--safe));bottom:auto;width:120px;padding:6px 9px}.city-speed strong{font-size:39px}.city-speed>b{font-size:22px}.city-machine{font-size:8px;display:block}.city-machine span{display:block}.city-revs{margin:4px 0}.city-touch #city-stick{width:132px;height:100px}.city-touch{bottom:calc(20px + env(safe-area-inset-bottom,0px))!important}.city-pedals{grid-template-columns:64px 64px;gap:5px}#city-app #city-power,#city-app #city-brake{height:61px}.city-control-hint{font-size:9px;bottom:10px;width:auto;white-space:nowrap}.city-start{width:370px;padding:20px;max-height:calc(100dvh - 24px);overflow-y:auto}.city-start h1{font-size:41px;margin:16px 0 12px}.city-start h1 br{display:none}.city-start p{font-size:13px;margin-bottom:10px}.city-start p br{display:none}.city-start>a{margin-top:10px}.city-dialog{max-height:calc(100dvh - 20px);padding:18px 24px}.city-dialog h2{margin:14px 0;font-size:30px}.city-toast{top:calc(66px + var(--safe));font-size:11px;max-width:50vw;padding:8px 10px}.city-performance{top:auto;bottom:10px;left:50%;right:auto;transform:translateX(-50%);font-size:9px;padding:5px 7px;max-width:44vw}.city-atlas{height:calc(100dvh - 16px);padding:10px 14px}.city-atlas-head{height:49px}.city-atlas h2{font-size:25px;margin:3px 0}.city-atlas-layout{display:grid;grid-template-columns:190px 1fr;gap:10px;height:calc(100% - 93px)}.city-atlas-layout>nav{display:block;overflow-y:auto}#city-app .city-atlas-layout>nav button{width:100%;min-height:57px;padding:8px;margin-bottom:6px}.city-atlas-layout nav span{font-size:12px}.city-atlas-layout nav em{font-size:9px}.city-atlas footer{height:40px;display:flex;padding-top:5px;font-size:10px}.city-atlas footer a{font-size:9px;margin:0}.city-map-surface{min-height:0}#city-app .city-recover{bottom:50px;font-size:12px}
}
@media(prefers-reduced-motion:reduce){.city-toast,.city-revs i{transition:none}}
.city-dialog-head{position:sticky;top:0;z-index:2;background:#17343e}

/* Camera selection is a readable, deliberate control in both worlds. */
.view-picker{pointer-events:auto;width:min(720px,calc(100vw - 32px));margin:auto;padding:24px;background:#193441fa;color:#fff0d0;border:2px solid #f4ce65;border-radius:5px;box-shadow:8px 8px 0 #0c1b2ba8;max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain}
.view-picker::backdrop{background:#071b2e9c;backdrop-filter:blur(3px)}
.view-picker-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.view-picker-heading>div>span{font:800 10px/1.4 Arial,sans-serif;letter-spacing:.13em;color:#d9d2b7}
.view-picker-heading h2{font:italic 34px/.98 Impact,'Arial Black',sans-serif;letter-spacing:-.025em;color:#f5ce65;margin:9px 0 0}
.view-picker .view-picker-close,#city-app .view-picker .view-picker-close{width:48px;height:48px;flex:none;padding:0;border:1px solid #e9dfbd80;background:#102b37;color:#f4eddb;font-size:22px}
.view-picker-options{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.view-picker .view-option,#city-app .view-picker .view-option{position:relative;display:flex;align-items:flex-start;flex-direction:column;gap:15px;min-height:162px;padding:18px 15px;border:1px solid #b8cec461;border-radius:3px;background:#132c37;text-align:left;color:#f4eacf;cursor:pointer}
.view-picker .view-option svg{width:42px;height:42px;color:#a8d8cc}
.view-option b{display:block;font-size:15px;letter-spacing:.035em;line-height:1.3}
.view-option small{display:block;margin-top:6px;color:#c4d4ca;font-size:12px;line-height:1.4}
.view-option i{position:absolute;right:14px;top:15px;font-size:20px;color:#a4b6b0;font-style:normal}
.view-picker .view-option[aria-pressed=true],#city-app .view-picker .view-option[aria-pressed=true]{background:#2a4c4b;border:2px solid #f5ce65;padding:17px 14px;box-shadow:inset 0 -3px #f5ce65}
.view-option[aria-pressed=true] b,.view-option[aria-pressed=true] svg{color:#ffe18a}
.view-option[aria-pressed=true] i{color:#ffe18a}
.view-picker .view-option:hover,#city-app .view-picker .view-option:hover{background:#315455}
.view-picker button:focus-visible{outline:3px solid #fff0c6;outline-offset:3px}
.view-picker-hint{font-size:12px;line-height:1.5;margin:18px 0 0;color:#b9cdc4}
.top-actions{gap:6px;align-items:stretch;background:none!important;border:0!important;z-index:50}
.top-actions #ride-actions{position:static}
.riding .top-actions:has(#ride-actions[open]),.riding .top-actions:focus-within{opacity:1}
.top-actions>button,#ride-actions>summary{min-height:52px;border:1px solid #f2e4ba70;border-radius:4px;background:#172f3dec;box-shadow:0 2px 0 #0c1c2b80}
.top-actions #camera{min-width:122px;display:grid;grid-template-columns:24px auto;grid-template-rows:auto auto;column-gap:8px;row-gap:2px;justify-content:start;padding:9px 12px}
#camera .control-icon{grid-column:1;grid-row:1/3;width:24px;height:24px}
#camera .action-label{grid-column:2;font-size:10px;line-height:1.2;text-align:left;color:#f2eddb}
.top-actions #camera-name{grid-column:2;font-size:11px;line-height:1.2;margin:0;display:block!important;white-space:nowrap;color:#f5ce65}
#ride-actions>summary{min-width:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10px;padding:6px 10px;letter-spacing:.05em;cursor:pointer}
.options-icon{font-size:20px;line-height:1}
.ride-action-menu{top:calc(100% + 8px);width:min(280px,calc(100vw - 32px));padding:10px;background:#132e3cfb;border:1px solid #e7d391a1;border-left:3px solid #f5ce65;border-radius:3px;box-shadow:5px 5px 0 #0b1e2a80;max-height:calc(100dvh - 100px);overflow:auto}
.ride-options-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:11px;letter-spacing:.11em;color:#e9d397;padding:0 0 8px 12px}
.ride-action-menu .ride-options-heading button{width:44px;min-height:44px;padding:0;justify-content:center;font-size:24px;line-height:1;border:1px solid #c9d2b770;border-radius:3px}
.ride-action-menu button,.ride-action-menu a{min-height:50px;padding:13px 12px;font-size:12px;line-height:1.4;letter-spacing:.03em}
.ride-action-menu button:hover,.ride-action-menu a:hover{background:#355754}
.top-actions #pause{min-width:70px;gap:5px;font-size:11px}
.top-actions #pause .action-label{font-size:10px}
.world-choice{font-size:10px;gap:15px;line-height:1.5}
.world-choice a,.world-choice span{min-height:36px;display:flex;align-items:center}
.city-mode-note{display:grid;gap:5px;margin:0 0 18px;padding:12px 0;border-top:1px solid #c9d2b742;border-bottom:1px solid #c9d2b742}
.city-mode-note b{font-size:11px;letter-spacing:.10em;color:#f4d477}
.city-mode-note span{font-size:12px;line-height:1.5;color:#cbd7c9}
#city-app .city-actions button{min-height:50px;font-size:12px;padding:10px 14px}
.city-actions #city-camera{border-color:#f4d4759e;color:#f8df95}
@media(max-width:700px){
 .top-actions{right:12px;top:calc(12px + var(--safe-top));gap:5px}
 .top-actions #camera{min-width:78px;padding:7px 8px;grid-template-columns:16px auto;column-gap:5px}
 #camera .control-icon{width:17px;height:17px}
 #camera .action-label{font-size:9px}.top-actions #camera-name{font-size:9px}
 #ride-actions>summary{min-width:57px;padding:6px;font-size:10px;min-height:50px}
 .options-icon{font-size:19px}.top-actions #pause{min-width:49px;padding:7px 6px;min-height:50px}
 .top-actions #pause .control-icon{width:17px;height:17px}.top-actions #pause .action-label{font-size:8px}
 .ride-action-menu{width:min(276px,calc(100vw - 24px))}
 .view-picker{width:calc(100vw - 28px);padding:20px}
 .view-picker-heading{margin-bottom:18px}.view-picker-heading h2{font-size:30px}.view-picker-heading>div>span{font-size:9px}
 .view-picker-options{grid-template-columns:1fr;gap:9px}
 .view-picker .view-option,#city-app .view-picker .view-option{flex-direction:row;align-items:center;gap:16px;min-height:76px;padding:14px}
 .view-picker .view-option[aria-pressed=true],#city-app .view-picker .view-option[aria-pressed=true]{padding:13px}
 .view-option svg{width:35px!important;height:35px!important;flex:none}.view-option b{font-size:14px}.view-option small{font-size:12px;margin-top:4px}.view-option i{position:static;margin-left:auto;flex:none}
 .view-picker-hint{font-size:11px;margin-top:15px}
 .world-choice{font-size:9px;gap:12px}
 #city-app .city-actions button{min-height:50px;padding:10px 5px;font-size:11px}
 .city-radar,#city-app[data-touch=true] .city-radar,.city-instruments,#city-app[data-touch=true] .city-instruments{top:calc(126px + var(--safe))}
 .city-start h1{font-size:52px}.city-start p{font-size:14px;margin-bottom:16px}.city-start{max-height:calc(100dvh - 36px);overflow:auto}
}
@media(max-height:540px) and (orientation:landscape){
 .view-picker{width:min(680px,calc(100vw - 28px));padding:18px}.view-picker-heading{margin-bottom:14px}.view-picker-heading h2{font-size:27px}.view-picker-options{grid-template-columns:repeat(3,1fr)}
 .view-picker .view-option,#city-app .view-picker .view-option{min-height:124px;flex-direction:column;gap:8px;align-items:flex-start}.view-option small{font-size:11px}.view-option b{font-size:13px}.view-option i{position:absolute}
 .view-picker-hint{margin-top:12px}.top-actions{top:calc(9px + var(--safe-top))}
 #city-app .city-actions button{min-height:46px;padding:9px;font-size:10px}.city-radar,#city-app[data-touch=true] .city-radar,.city-instruments,#city-app[data-touch=true] .city-instruments{top:calc(72px + var(--safe))}
 .city-start h1{font-size:39px}.city-mode-note{margin-bottom:10px;padding:8px 0}.city-mode-note span{font-size:11px}.city-start p{font-size:13px}
}
@media(max-width:359px) and (orientation:portrait){
 .city-start{padding:18px;width:calc(100vw - 28px)}.city-start h1{font-size:42px;line-height:.94;margin:17px 0 15px}.city-start p{font-size:13px;line-height:1.5;margin-bottom:13px}
 .city-kicker{font-size:8px;letter-spacing:.09em}.city-mode-note{padding:9px 0;margin-bottom:12px}.city-mode-note b{font-size:10px}.city-mode-note span{font-size:11px;line-height:1.45}
 #city-app .city-start .city-primary{min-height:48px}.city-start>a{margin-top:10px;min-height:34px;display:flex;align-items:center}
}

/* Compact manual controls share the existing city drive dock. */
.city-drive-info{display:grid;gap:2px;margin-top:5px;font-size:9px;line-height:1.4;letter-spacing:.04em}.city-drive-info b{color:#f4d67b}.city-drive-info span{font-size:8px;color:#c3dedb}.city-drive-actions{position:relative;pointer-events:none}.city-manual{position:absolute;right:0;bottom:calc(100% + 7px);display:grid;grid-template-columns:44px 1fr 44px;gap:4px;width:142px;pointer-events:auto}.city-manual[hidden]{display:none!important}#city-app .city-manual button{padding:5px 2px;min-height:44px;min-width:0;font-size:10px;touch-action:none;background:#183640ef;user-select:none;-webkit-user-select:none}.city-manual #city-clutch{font-size:9px;color:#ffe08a}.city-manual #city-engine-start{grid-column:span 2}.city-manual button.held{background:#f5d175!important;color:#17343d!important}#city-menu-help{white-space:pre-line}
@media(min-width:641px) and (max-height:550px){.city-manual{right:calc(100% + 8px);bottom:0}.city-drive-info{font-size:8px}}
@media(max-width:640px){.city-drive-info{font-size:8px}.city-drive-info span{font-size:8px}.city-manual{width:137px}}

/* Cut feedback stays within the left-hand score and map panels. */
.ride-score-dock {
 --score-dock-width:156px;
 --score-dock-edge:24px;
 --score-dock-top:20px;
 position:absolute;
 top:calc(var(--score-dock-top) + var(--safe-top));
 left:calc(var(--score-dock-edge) + env(safe-area-inset-left));
 width:var(--score-dock-width);
 display:grid;
 gap:6px;
}
.score-box .session-line{justify-content:space-between;gap:4px;margin-top:3px}
.score-box .reward-hud{width:auto}
.score-label-row {
 display:grid;
 grid-template-columns:minmax(0,1fr) auto;
 align-items:baseline;
 gap:4px;
}
.score-label-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.score-gain {
 color:#64dfcc;
 font-size:9px;
 font-weight:900;
 line-height:1;
 letter-spacing:0;
 font-variant-numeric:tabular-nums;
 white-space:nowrap;
}
.chain-wrap {
 margin-top:5px;
 color:#f5ce52;
 font-size:8px;
 font-weight:900;
 line-height:1;
 letter-spacing:.06em;
}
.chain-wrap>div{height:2px;background:#fff2;margin-top:2px}
.chain-wrap i{display:block;height:100%;background:var(--lime)}
.reward-toast {
 color:var(--reward-color,#64dfcc);
 font-size:8px;
 font-weight:900;
 line-height:1.25;
 overflow-wrap:anywhere;
}
.reward-toast:not(:empty){margin-top:4px}
.city-radar>.city-cut-score {
 display:grid;
 align-items:center;
 border-top:1px solid #fff0c640;
 padding-top:6px;
 margin-top:5px;
 font-size:8px;
 color:#fff0c6;
 letter-spacing:.06em;
}
.city-cut-score>#city-score{font-size:19px;color:#f5ce52}
.city-cut-score>#city-cut-chain{color:#99e9f2;font-size:8px;line-height:1;min-height:1em;margin:2px 0 4px}
#city-app:not([data-state=drive]) .city-cut-score{display:none}

@media(max-width:700px){
 .ride-score-dock{--score-dock-width:112px;--score-dock-edge:16px;--score-dock-top:14px}
}
@media(max-width:640px){
 .city-cut-score{font-size:7px}
 .city-cut-score>#city-score{font-size:16px}
}
@media(max-width:359px) and (orientation:portrait){
 .ride-score-dock{--score-dock-width:104px;--score-dock-edge:10px}
}
@media(max-height:540px) and (orientation:landscape){
 .ride-score-dock{--score-dock-width:110px;--score-dock-edge:16px;--score-dock-top:12px;gap:4px}
 .ride-score-dock .route-radar canvas{height:38px}
 .ride-score-dock .route-radar small{min-height:0}
}
@media(max-height:420px) and (orientation:landscape){
 .touch-layout .ride-score-dock {
  width:min(208px,calc(40vw - var(--score-dock-edge) - env(safe-area-inset-left)));
  grid-template-columns:var(--score-dock-width) minmax(0,1fr);
  align-items:start;
 }
 #city-app[data-touch=true] .city-radar {
  width:min(204px,calc(40vw - 14px));
  display:grid;
  grid-template-columns:96px minmax(0,1fr);
  grid-template-rows:auto 48px auto;
  column-gap:6px;
 }
 #city-app[data-touch=true] .city-radar>:is(div:first-child,canvas,small){grid-column:2}
 #city-app[data-touch=true] .city-radar canvas{height:100%}
 #city-app[data-touch=true] .city-radar>.city-cut-score {
  grid-column:1;
  grid-row:1/-1;
  align-content:start;
  border-top:0;
  border-right:1px solid #fff0c640;
  margin:0;
  padding:0 5px 0 0;
 }
}

/* Touch driving keeps the steer pad and pedals in fixed thumb positions. */
.touch-extras{position:absolute;right:0;bottom:calc(100% + 8px);pointer-events:none}
.touch-extras summary{display:flex;align-items:center;justify-content:center;gap:6px;min-width:78px;min-height:44px;padding:0 10px;list-style:none;border:1px solid #e9dbac80;border-radius:4px;background:#172c38eb;color:#fff0ce;font:800 10px/1 Arial,sans-serif;letter-spacing:.08em;pointer-events:auto;cursor:pointer;touch-action:manipulation}
.touch-extras summary::-webkit-details-marker{display:none}
.touch-extras summary::before{content:'+';font-size:16px;line-height:1;color:#f5ce65}
.touch-extras[open] summary::before{content:'−'}
.touch-extras summary:focus-visible{outline:2px solid #f5ce65;outline-offset:2px}
.touch-extra-buttons{position:absolute;right:0;bottom:calc(100% + 5px);display:flex;gap:5px;padding:5px;background:#132e3cf5;border:1px solid #e9dbac70;border-radius:4px}
.touch-extra-buttons button{pointer-events:auto;touch-action:none}
#touch-extras{bottom:84px}
#touch-extras :is(#reverse,#tuck,#wheelie){position:static;width:50px;min-height:48px;height:48px;padding:3px;gap:2px;font-size:8px}
#touch-extras .control-icon{width:18px;height:18px}
.touch-layout .pedals button,.touch-layout .pedals #throttle{min-width:56px;height:74px;font:900 12px/1 Arial,sans-serif}
.touch-layout .pedals #throttle{background:#f5ce52e8;color:#152632}
.touch-layout #brake{background:#402c2bea;color:#fff0e2}
.touch-layout #room-open{min-width:44px;min-height:44px;padding-inline:10px}
.touch-layout .manual-touch>div button{min-height:44px}
.touch-layout.manual-bike #touch-extras{bottom:174px}
#city-app[data-touch=true] #city-machine-open{display:none}
#city-app .city-pedals{display:flex;gap:6px}
#city-app .city-pedals button{width:56px;height:74px;min-height:44px;padding:5px;border:2px solid #ee7354;background:#402c2bea;color:#fff0e2;font:900 12px/1 Arial,sans-serif}
#city-app .city-pedals #city-power{width:60px;border-color:#f5ce52;background:#f5ce52e8;color:#152632}
#city-app .city-pedals #city-power.held,#city-app .city-pedals button.held,#city-app .touch-extra-buttons button.held{background:#f5d175;color:#17343d}
#city-app .city-manual{width:151px;grid-template-columns:44px 1fr 44px;left:0;right:auto;bottom:calc(100% + 8px)}
#city-app .touch-extra-buttons button{width:52px;padding:4px;font-size:9px;touch-action:none}
@media(max-width:700px) and (orientation:portrait){
 #city-app[data-touch=true] .city-actions{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:359px) and (orientation:portrait){
 .touch-layout.manual-bike #touch-extras{bottom:224px}
}
@media(max-height:540px) and (orientation:landscape){
 .touch-layout .touch-right{bottom:calc(48px + var(--safe-bottom))}
 .touch-layout.manual-bike #touch-extras{bottom:84px}
 #city-app .city-manual{left:144px;bottom:0}
}

#precision-hud { margin-top: 6px; }
#precision-trigger { display: grid; gap: 4px; width: 100%; min-height: 30px; padding: 4px 6px; border: 1px solid #769c9d; border-radius: 4px; background: #0c232b; color: #d7f7f6; text-align: left; font-size: 10px; letter-spacing: .08em; pointer-events: auto; }
#precision-trigger:disabled { opacity: 1; cursor: default; }
#precision-trigger:enabled, #precision-hud[data-active="true"] #precision-trigger { color: #c6fff0; border-color: #7ff3c6; }
#precision-meter { display: block; height: 4px; background: #386063; }
#precision-fill { display: block; width: 100%; height: 100%; background: #8ff5d0; transform: scaleX(0); transform-origin: left; }
@media (pointer: coarse) { #precision-trigger { min-height: 44px; } }

/* Cel HUD ink stays on the real controls and respects the rider's HUD opacity. */
.saturday-cel-hud {
  --cel-panel: #032838;
  --cel-cream: #fff9d6;
  --cel-gold: #ffdb12;
  --cel-ink: #20102c;
}
.saturday-cel-hud .score-box,
.saturday-cel-hud .route-radar {
  background: var(--cel-panel);
  border-color: var(--cel-cream);
  border-left: 2px solid var(--cel-gold);
}
.saturday-cel-hud .score-box > #score {
  color: var(--cel-gold);
  font-weight: 950;
  text-shadow: 1px 2px var(--cel-ink), 2px 3px var(--cel-ink);
}
.saturday-cel-hud .score-label-row .small-label,
.saturday-cel-hud .session-line,
.saturday-cel-hud .route-radar > div,
.saturday-cel-hud .route-radar small,
.saturday-cel-hud .action-label,
.saturday-cel-hud .speed-meta,
.saturday-cel-hud .speed-foot {
  color: var(--cel-cream);
  font-weight: 800;
}
.saturday-cel-hud .top-actions > button,
.saturday-cel-hud #ride-actions > summary {
  background: var(--cel-panel);
  color: var(--cel-cream);
  border-color: #c4fff2;
  box-shadow: 0 2px var(--cel-ink);
}
.saturday-cel-hud .top-actions #camera-name { color: var(--cel-gold); }

/* Keep the desktop controls readable without boxing in the view around the live feed. */
@media (min-width: 850px) and (min-height: 490px) and (orientation: landscape) and (pointer: fine) {
  .riding:not(.touch-layout) .saturday-cel-hud :is(.score-box, .route-radar) {
    background: #102b3ceb;
    border-color: #bed8d24d;
    border-left-color: #e4ca68;
    box-shadow: 0 1px 0 #10233170;
  }

  .riding:not(.touch-layout) .saturday-cel-hud .top-actions {
    gap: 4px;
  }

  .riding:not(.touch-layout) .saturday-cel-hud :is(.top-actions > button, #ride-actions > summary) {
    min-height: 44px;
    min-width: 44px;
    background: #102b3ce6;
    border-color: #bed8d24d;
    box-shadow: 0 1px 0 #10233190;
    padding: 4px 8px;
  }

  .riding:not(.touch-layout) .saturday-cel-hud :is(.top-actions > button, #ride-actions > summary):hover {
    background: #254555;
    border-color: #bed8d283;
  }

  .riding:not(.touch-layout) .saturday-cel-hud .top-actions #camera {
    min-width: 97px;
    grid-template-columns: 18px auto;
    column-gap: 6px;
  }

  .riding:not(.touch-layout) .saturday-cel-hud #camera .control-icon {
    width: 18px;
    height: 18px;
  }

  .riding:not(.touch-layout) .saturday-cel-hud #ride-actions > summary {
    min-width: 62px;
    gap: 1px;
  }

  .riding:not(.touch-layout) .saturday-cel-hud .options-icon {
    font-size: 17px;
  }

  .riding:not(.touch-layout) .saturday-cel-hud .top-actions #pause {
    min-width: 68px;
  }
}

.saturday-cel-hud .speed-number strong {
  color: #ffffd2;
  font-family: 'Arial Black', Arial, sans-serif;
  font-weight: 900;
  -webkit-text-stroke: .045em currentColor;
  paint-order: stroke fill;
  text-shadow: .04em .045em #170827, .075em .065em #170827;
}
.saturday-cel-hud .power-track { background: var(--cel-ink); }
.saturday-cel-hud .region-chip {
  background: var(--cel-panel);
  border-left-color: var(--cel-gold);
}
.saturday-cel-hud .score-label-row .small-label,
.saturday-cel-hud .route-radar > div {
  font-size: 8px;
  letter-spacing: .025em;
}
@media (max-width: 359px) and (orientation: portrait) {
 .saturday-cel-hud .score-label-row > .small-label {
  white-space:normal;
  overflow:visible;
  line-height:1.18;
 }
}
.saturday-cel-hud .desktop-controls {
  color: var(--cel-cream);
  font-weight: 750;
  text-shadow: 1px 1px var(--cel-ink), -1px -1px var(--cel-ink);
}

/* Composite the large numerals separately so crossing lane paint cannot wash
   out their face in Clear mode. Minimal and Solid keep their selected value. */
.riding .saturday-cel-hud .speedometer { opacity: 1; }
.saturday-cel-hud .speed-number > *,
.saturday-cel-hud .speedometer > .power-track,
.saturday-cel-hud .speedometer > .speed-foot {
  opacity: var(--hud-opacity);
}
body:has(#hud-opacity option[value="0.72"]:checked) .saturday-cel-hud #speed {
  opacity: .97;
}

@media (max-width: 700px) and (orientation: portrait) {
 .garage:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: calc(18px + var(--safe-top)) 22px calc(14px + var(--safe-bottom));
  overflow-y: auto;
  pointer-events: auto;
 }
 .garage .wordmark, .garage .bike-caption, .garage .ride-card {
  position: relative;
  inset: auto;
  width: auto;
  flex: none;
 }
 .garage .bike-caption { margin-top: auto; }
}

#city-app[data-live-rear] .city-instruments { top: auto; bottom: 24px; width: 135px; }

@media (min-width: 850px) and (min-height: 490px) {
 #city-app[data-saturday-style]:not([data-touch=true]) .city-header {
  gap: 12px;
  padding: 7px 12px;
  border-left: 3px solid #ffe085;
  background: #102737df;
  filter: none;
 }
 #city-app[data-saturday-style]:not([data-touch=true]) :is(.city-radar,.city-instruments) {
  background: #0d2638e8;
  border: 1px solid #92d0db63;
  border-left: 3px solid #6ce7dc;
  box-shadow: 2px 4px #06152255;
 }
 #city-app[data-saturday-style]:not([data-touch=true]) .city-radar canvas { height: 48px; }
 #city-app[data-saturday-style]:not([data-touch=true]) .city-cut-score { grid-template-columns: 1fr auto; }
 #city-app[data-saturday-style] .city-cut-score :is(#city-cut-chain,.reward-toast) { grid-column: 1 / -1; }
 #city-app[data-saturday-style] #city-cut-chain:empty { display: none; }
 #city-app[data-saturday-style] .city-speed strong { color: #fff0a2; }
}

@media (min-width: 701px) and (max-height: 620px) and (orientation: landscape) {
 .saturday-cel-hud .desktop-controls {
  max-width: 36vw;
  gap: 5px;
 }
 .saturday-cel-hud .region-chip { bottom: calc(24px + var(--safe-bottom)); }
}

#city-app #city-pause { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
#city-app .city-pause-icon {
 display: inline-block;
 width: 7px;
 height: 8px;
 border-inline: 2px solid currentColor;
 flex: none;
}

@media (max-width: 380px) and (orientation: portrait),
       (max-width: 1040px) and (max-height: 540px) and (orientation: landscape) {
 .garage .machine-nav { display: grid; grid-template-columns: 44px 44px 48px; gap: 6px; }
 .garage .machine-nav h2 {
  grid-column: 1 / -1;
  grid-row: 1;
  overflow: visible;
  white-space: normal;
  margin: 2px 0;
 }
}

@media (min-width: 850px) and (max-width: 1150px) and (min-height: 490px) and (orientation: landscape) {
 .first-person:not(.touch-layout) .saturday-cel-hud #tachometer {
  top: calc(172px + var(--safe-top));
  left: 16px;
  right: auto;
  bottom: auto;
  width: 176px;
 }
}

/* The styled portrait showroom reserves a clean camera stage in the scroll flow. */
@media (max-width: 700px) and (orientation: portrait) {
 .garage[data-saturday-showroom]:not([hidden]) {
  gap: 8px;
  padding: calc(12px + var(--safe-top)) max(14px,env(safe-area-inset-right,0px)) calc(12px + var(--safe-bottom)) max(14px,env(safe-area-inset-left,0px));
  scroll-padding: 12px;
 }
 .garage[data-saturday-showroom]::before {
  content: '';
  order: 0;
  flex: 1 0 clamp(158px,calc(var(--visible-height,100dvh) - 395px),340px);
 }
 .garage[data-saturday-showroom] .wordmark { order: -1; }
 .garage[data-saturday-showroom] .wordmark h1 { margin: 5px 0; font-size: clamp(29px,8vw,36px); }
 .garage[data-saturday-showroom] .wordmark::after { display: none; }
 .garage[data-saturday-showroom] .bike-caption {
  order: 1;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  margin-top: 0;
  padding: 6px 9px;
  gap: 1px 8px;
  background: #152838f2;
 }
 .garage[data-saturday-showroom] .machine-heading { grid-column: 1 / -1; grid-row: 1; }
 .garage[data-saturday-showroom] .machine-nav { grid-column: 1 / -1; grid-row: 2; }
 .garage[data-saturday-showroom] .machine-nav {
  display: grid;
  grid-template-columns: minmax(0,1fr) 44px 44px 44px;
  gap: 3px;
 }
 .garage[data-saturday-showroom] .machine-nav h2 {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  font-size: clamp(15px,4.75vw,20px);
  line-height: 1.06;
  white-space: normal;
 }
 .garage[data-saturday-showroom] .machine-nav button { grid-row: 1; width: 44px; min-height: 44px; }
 .garage[data-saturday-showroom] #prev-bike { grid-column: 2; }
 .garage[data-saturday-showroom] #next-bike { grid-column: 3; }
 .garage[data-saturday-showroom] #fleet-open { grid-column: 4; }
 .garage[data-saturday-showroom] .finishes { grid-column: 1; grid-row: 3; flex-wrap: wrap; margin: 0; gap: 1px; }
 .garage[data-saturday-showroom] .finishes .finish { width: clamp(34px,10vw,42px); height: 40px; padding: 5px; }
 .garage[data-saturday-showroom] .finish-name { grid-column: 1; grid-row: 4; }
 .garage[data-saturday-showroom] .machine-specs {
  position: static;
  grid-column: 2;
  grid-row: 3 / 5;
  align-self: center;
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 8px;
  white-space: nowrap;
  text-align: right;
 }
 .garage[data-saturday-showroom] .machine-specs span:last-child { display: block; grid-column: 1 / -1; font-size: 7px; }
 .garage[data-saturday-showroom] .ride-card {
  order: 2;
  display: grid;
  grid-template-columns: minmax(0,1.14fr) minmax(0,1fr);
  gap: 5px 7px;
  padding: 7px 9px 3px;
 }
 .garage[data-saturday-showroom] .ride-card :is(.world-choice,.card-top,.card-footer) { grid-column: 1 / -1; margin: 0; }
 .garage[data-saturday-showroom] .world-choice { gap: 10px; justify-content: space-between; }
 .garage[data-saturday-showroom] .world-choice :is(a,span) { min-height: 36px; padding-block: 3px; }
 .garage[data-saturday-showroom] .ride-card :is(.primary,.secondary) { min-height: 44px; margin: 0; padding: 7px 10px; }
 .garage[data-saturday-showroom] .ride-card .primary { font-size: 19px; }
 .garage[data-saturday-showroom] .ride-card .secondary { font-size: 13px; letter-spacing: 0; }
 .garage[data-saturday-showroom] .ride-card .secondary .chip { display: none; }
 .garage[data-saturday-showroom] .card-footer button { min-width: 44px; padding-inline: 3px; }
}

@media (min-width:701px) and (orientation:landscape) {
 .garage[data-saturday-showroom] .machine-nav h2 {
  overflow:visible;
  text-overflow:clip;
  white-space:normal;
  font-size:clamp(17px,1.55vw,22px);
  line-height:1.03;
 }
 .garage[data-saturday-showroom] .machine-nav button { flex:none; }
}

@media (min-width:850px) and (min-height:490px) and (orientation:landscape) {
 #city-app[data-state=drive][data-saturday-style]:not([data-touch=true]) .city-radar {
  top:calc(74px + var(--safe));
  bottom:auto;
 }
 #city-app[data-state=drive][data-saturday-style]:not([data-touch=true]) .city-instruments {
  inset:auto auto 19px 14px;
  width:124px;
  padding:7px 9px 8px;
  background:linear-gradient(150deg,#132638f5,#0b1b31ec);
  border-color:#f7d770a1;
  border-left:3px solid #f1ce6b;
  box-shadow:3px 4px #10263985;
 }
 #city-app[data-state=drive][data-saturday-style]:not([data-touch=true]) .city-speed strong {
  font-style:italic;
  color:#fff0a2;
  text-shadow:2px 2px #604a32;
 }
 #city-app[data-state=drive][data-saturday-style]:not([data-touch=true]) .city-instruments .city-revs {
  background:#343244;
 }
}

@media (max-width:700px) and (min-height:540px) and (orientation:portrait) {
 .riding.first-person:not(.car-machine) .saturday-cel-hud .speedometer {
  inset:calc(88px + min(21.4vw,135px) + var(--safe-top)) max(12px,env(safe-area-inset-right,0px)) auto auto;
  transform:none;
  width:104px;
  padding:5px 7px;
  background:#102838ed;
  border-left:2px solid var(--cel-gold);
 }
 .riding.first-person:not(.car-machine) .saturday-cel-hud .speed-number strong {
  font-size:clamp(29px,9vw,39px);
 }
 .riding.first-person:not(.car-machine) .saturday-cel-hud .speed-foot {
  gap:4px;
  font-size:7px;
 }
 .riding.first-person:not(.car-machine):not(.touch-layout) .saturday-cel-hud .region-chip {
  inset:auto auto calc(13px + var(--safe-bottom)) max(10px,env(safe-area-inset-left,0px));
  transform:none;
  max-width:41vw;
  text-align:left;
 }
 .riding.first-person:not(.car-machine):not(.touch-layout) .saturday-cel-hud .network-pill:not(.waiting) {
  inset:auto max(10px,env(safe-area-inset-right,0px)) calc(13px + var(--safe-bottom)) auto;
  transform:none;
  max-width:43vw;
 }
}

@media (max-width:430px) and (min-height:540px) and (orientation:portrait) {
 .riding.first-person:not(.car-machine) .saturday-cel-hud .top-actions {
  gap:4px;
 }
 .riding.first-person:not(.car-machine) .saturday-cel-hud .top-actions #camera {
  min-width:70px;
  min-height:47px;
  padding:6px;
  grid-template-columns:15px auto;
  column-gap:4px;
 }
 .riding.first-person:not(.car-machine) .saturday-cel-hud #ride-actions > summary {
  min-width:50px;
  min-height:47px;
  padding:4px;
  font-size:9px;
 }
 .riding.first-person:not(.car-machine) .saturday-cel-hud .top-actions #pause {
  min-width:45px;
  min-height:47px;
  padding:5px;
 }
 .riding.first-person:not(.car-machine) .saturday-cel-hud .speedometer {
  top:calc(76px + min(21.4vw,135px) + var(--safe-top));
  width:98px;
  padding:4px 6px;
 }
 .riding.first-person:not(.car-machine) .saturday-cel-hud .ride-score-dock {
  gap:4px;
 }
 .riding.first-person:not(.car-machine) .saturday-cel-hud .score-label-row > .small-label {
  font-size:8px;
  white-space:nowrap;
 }
 .riding.first-person:not(.car-machine) .saturday-cel-hud .route-radar canvas {
  height:46px;
 }
 .riding.first-person:not(.car-machine) .saturday-cel-hud .speed-foot {
  white-space:nowrap;
 }
}

@media (min-width:850px) and (min-height:490px) and (orientation:landscape) {
 .riding.first-person:not(.touch-layout):not(.car-machine) .saturday-cel-hud .speedometer {
  inset:auto auto calc(34px + var(--safe-bottom)) max(15px,env(safe-area-inset-left,0px));
  width:121px;
  padding:6px 8px;
  border-left:2px solid var(--cel-gold);
  background:linear-gradient(100deg,#101e35ef 58%,#152a42ad);
  box-shadow:2px 3px #11203676;
 }
 .riding.first-person:not(.touch-layout):not(.car-machine) .saturday-cel-hud .speed-number strong {
  font-size:clamp(37px,5vw,48px);
  font-style:italic;
  color:#fff3be;
  filter:drop-shadow(2px 1px 0 #101a32);
 }
 .riding.first-person:not(.touch-layout):not(.car-machine) .saturday-cel-hud .speed-foot {
  gap:4px;
  font-size:7px;
 }
}

@media (min-width:850px) and (min-height:541px) and (orientation:landscape) {
 .riding.first-person:not(.touch-layout):not(.car-machine) .saturday-cel-hud .speedometer {
  bottom:calc(112px + var(--safe-bottom));
 }
 .riding.first-person:not(.touch-layout):not(.car-machine) .saturday-cel-hud .network-pill:not(.waiting) {
  left:auto;
  right:max(24px,env(safe-area-inset-right,0px));
 }
}

@media (min-width:850px) and (min-height:490px) and (orientation:landscape) {
 .riding.first-person:not(.touch-layout):not(.car-machine) .saturday-cel-hud .region-chip {
  left:auto;
  right:max(16px,env(safe-area-inset-right,0px));
  bottom:calc(58px + var(--safe-bottom));
  transform:none;
 }
}

@media (min-width:850px) and (min-height:541px) and (orientation:landscape) {
 .riding.first-person:not(.touch-layout):not(.car-machine) .saturday-cel-hud .region-chip {
  bottom:calc(117px + var(--safe-bottom));
 }
}

@media (min-width:850px) and (min-height:490px) and (orientation:landscape) {
 .riding.first-person:not(.touch-layout):not(.car-machine):has(#hud-opacity option[value="0.45"]:checked) .saturday-cel-hud .speedometer {
  padding:4px 5px;
  width:clamp(132px,12.8vw,180px);
  bottom:calc(clamp(31px,5.1vh,48px) + var(--safe-bottom));
  border-left:0;
  background:none;
  box-shadow:none;
 }
 .riding.first-person:not(.touch-layout):not(.car-machine):has(#hud-opacity option[value="0.45"]:checked) .saturday-cel-hud #speed {
  opacity:.96;
  font-size:clamp(43px,5.4vw,77px);
  -webkit-text-stroke:.055em currentColor;
  filter:drop-shadow(-2px 0 #142037) drop-shadow(2px 2px #142037);
 }
 .riding.first-person:not(.touch-layout):not(.car-machine):has(#hud-opacity option[value="0.45"]:checked) .saturday-cel-hud .speed-number {
  justify-content:flex-start;
  align-items:flex-end;
  column-gap:clamp(7px,.65vw,12px);
 }
 .riding.first-person:not(.touch-layout):not(.car-machine):has(#hud-opacity option[value="0.45"]:checked) .saturday-cel-hud .speed-meta {
  align-items:flex-start;
  gap:3px;
  padding-bottom:.25rem;
  opacity:.94;
  text-shadow:1px 1px #142037,-1px -1px #142037;
 }
 .riding.first-person:not(.touch-layout):not(.car-machine):has(#hud-opacity option[value="0.45"]:checked) .saturday-cel-hud #speed-unit {
  font-size:clamp(11px,1.12vw,16px);
  font-style:italic;
  font-weight:850;
 }
}

@media (min-width:850px) and (min-height:490px) and (orientation:landscape) and (pointer:fine) {
 .riding.first-person:not(.touch-layout):not(.car-machine):has(#hud-opacity option[value="0.45"]:checked) .saturday-cel-hud :is(.score-box,.route-radar) {
  background:linear-gradient(102deg,#102538bf,#10253828);
  border-color:transparent;
  border-left-color:#e4ca68;
  box-shadow:none;
 }
 .riding.first-person:not(.touch-layout):not(.car-machine):has(#hud-opacity option[value="0.45"]:checked) .saturday-cel-hud :is(.score-box,.route-radar):focus-within {
  background:#102b3ceb;
 }
 .riding.first-person:not(.touch-layout):not(.car-machine):has(#hud-opacity option[value="0.45"]:checked) .saturday-cel-hud .ride-score-dock {
  width:clamp(102px,8.4vw,122px);
  gap:3px;
 }
 .riding.first-person:not(.touch-layout):not(.car-machine):has(#hud-opacity option[value="0.45"]:checked) .saturday-cel-hud .score-box, .riding.first-person:not(.touch-layout):not(.car-machine):has(#hud-opacity option[value="0.45"]:checked) .saturday-cel-hud .route-radar {
  padding:5px 7px;
 }
 .riding.first-person:not(.touch-layout):not(.car-machine):has(#hud-opacity option[value="0.45"]:checked) .saturday-cel-hud .score-box > #score {
  font-size:clamp(22px,1.8vw,28px);
  line-height:1;
 }
 .riding.first-person:not(.touch-layout):not(.car-machine):has(#hud-opacity option[value="0.45"]:checked) .saturday-cel-hud .route-radar canvas {
  margin:2px 0;
 }
 .riding.first-person:not(.touch-layout):not(.car-machine):has(#hud-opacity option[value="0.45"]:checked) .saturday-cel-hud .route-radar small {
  min-height:0;
  line-height:1.25;
 }
 .riding.first-person:not(.touch-layout):not(.car-machine):has(#hud-opacity option[value="0.45"]:checked) .saturday-cel-hud .score-box .session-line {
  flex-wrap:wrap;
  row-gap:2px;
 }
 .riding.first-person:not(.touch-layout):not(.car-machine):has(#hud-opacity option[value="0.45"]:checked) .saturday-cel-hud :is(.top-actions > button,#ride-actions > summary):not(:hover):not(:focus-visible) {
  background:#1025388f;
  border-color:transparent;
  box-shadow:none;
 }
 .riding.first-person:not(.touch-layout):not(.car-machine):has(#hud-opacity option[value="0.45"]:checked) .saturday-cel-hud #ride-actions[open] > summary {
  background:#254555;
  border-color:#bed8d283;
 }
}

@media (max-width:430px) and (min-height:540px) and (orientation:portrait) {
 .riding.first-person:not(.car-machine) .saturday-cel-hud .route-radar {
  padding:4px 6px;
  background:#122b3bed;
 }
 .riding.first-person:not(.car-machine) .saturday-cel-hud .route-radar canvas {
  height:34px;
  margin-block:2px;
 }
 .riding.first-person:not(.car-machine) .saturday-cel-hud .route-radar small {
  min-height:0;
 }
 .riding.first-person:not(.car-machine) .saturday-cel-hud .speedometer {
  /* Keep clearance for the larger helmet and recording inset. */
  top:calc(78px + 21.4vw + var(--safe-top));
  width:86px;
  padding:3px 6px;
  background:#152638f4;
  box-shadow:2px 2px #101a2b8c;
 }
 .riding.first-person:not(.car-machine) .saturday-cel-hud .speed-number {
  align-items:baseline;
  justify-content:flex-start;
  gap:5px;
 }
 .riding.first-person:not(.car-machine) .saturday-cel-hud .speed-number strong {
  font-size:clamp(24px,7.6vw,31px);
  line-height:1;
 }
 .riding.first-person:not(.car-machine) .saturday-cel-hud .speed-meta {
  gap:2px;
  white-space:nowrap;
 }
 .riding.first-person:not(.car-machine) .saturday-cel-hud .speed-foot {
  flex-wrap:wrap;
  row-gap:2px;
  font-size:7px;
 }
 .riding.first-person:not(.car-machine) .saturday-cel-hud #hud-bike {
  display:none;
 }
}

.riding .saturday-cel-hud.elevated-street-hud .region-chip {
 left:auto;
 right:max(24px,env(safe-area-inset-right,0px));
 bottom:calc(54px + var(--safe-bottom));
 transform:none;
}
.riding .saturday-cel-hud.elevated-street-hud:has(.mouse-drive-guide:not([hidden])) .region-chip {
 right:max(190px,calc(190px + env(safe-area-inset-right,0px)));
}

@media (max-width:430px) and (min-height:540px) and (orientation:portrait) {
 .riding.first-person:not(.car-machine):has(#hud-opacity option[value="0.45"]:checked) .saturday-cel-hud .speedometer {
  padding:2px 4px;
  width:79px;
  border:0;
  background:none;
  box-shadow:none;
 }
 .riding.first-person:not(.car-machine):has(#hud-opacity option[value="0.45"]:checked) .saturday-cel-hud #speed {
  opacity:.96;
  font-size:clamp(25px,8.2vw,35px);
  filter:drop-shadow(-1px -1px #112031) drop-shadow(1px 2px #112031);
 }
 .riding.first-person:not(.car-machine):has(#hud-opacity option[value="0.45"]:checked) .saturday-cel-hud :is(.speed-meta,.speed-foot) {
  color:#fff3cb;
  text-shadow:-1px 0 #112031,1px 1px #112031;
 }
 .riding.first-person:not(.car-machine):has(#hud-opacity option[value="0.45"]:checked) .saturday-cel-hud .speed-meta {
  opacity:.90;
  font-weight:900;
 }
 .riding.first-person:not(.car-machine):has(#hud-opacity option[value="0.45"]:checked) .saturday-cel-hud .speedometer .power-track {
  height:5px;
  margin-top:3px;
  opacity:.82;
  background:#112031d9;
 }
 .riding.first-person:not(.car-machine):has(#hud-opacity option[value="0.45"]:checked) .saturday-cel-hud .speed-foot {
  width:max-content;
  max-width:100%;
  margin-top:4px;
  padding:1px 3px;
  font-size:8px;
  opacity:.88;
  background:#112031d9;
 }
}

#city-app[data-saturday-style] .city-atlas[open] {
 box-sizing:border-box;
 display:grid;
 grid-template-rows:auto minmax(0,1fr) auto;
 gap:12px;
 inset:0;
 width:100%;
 height:100dvh;
 max-width:none;
 max-height:none;
 margin:0;
 padding:max(12px,env(safe-area-inset-top,0px)) max(18px,env(safe-area-inset-right,0px)) max(12px,env(safe-area-inset-bottom,0px)) max(18px,env(safe-area-inset-left,0px));
 border:0;
 border-radius:0;
 background:#152b44;
 color:#ffeac1;
}
#city-app[data-saturday-style] .city-atlas-head {height:auto;min-height:50px}
#city-app[data-saturday-style] .city-atlas-head h2 {margin:3px 0 0}
#city-app[data-saturday-style] .city-atlas-head span,
#city-app[data-saturday-style] .city-atlas-layout nav b {color:#f7a087}
#city-app[data-saturday-style] .city-atlas-layout {
 display:grid;
 grid-template-columns:minmax(166px,218px) minmax(0,1fr);
 gap:12px;
 height:auto;
 min-height:0;
}
#city-app[data-saturday-style] .city-atlas-layout nav button {
 background:#203b57;
 border-color:#426884;
 color:#ffeac1;
 min-height:58px;
 padding:10px;
}
#city-app[data-saturday-style] .city-atlas-layout nav button:is(:hover,:focus-visible) {
 background:#2e5271;
 border-color:#f49279;
}
#city-app[data-saturday-style] .city-atlas-layout nav em {color:#b9ccd7}
#city-app[data-saturday-style] .city-map-surface {
 display:grid;
 grid-template-rows:auto minmax(0,1fr) auto;
 min-height:0;
 border-color:#4d7895;
 background:#1a344e;
}
#city-app[data-saturday-style] .city-map-surface canvas {grid-row:2; min-width:0; min-height:0}
#city-app[data-saturday-style] .city-map-tools {
 grid-row:1;
 position:static;
 justify-content:flex-start;
 padding:5px;
 border-bottom:1px solid #4d7895;
}
#city-app[data-saturday-style] .city-map-tools button {background:#213c59;color:#ffeac1;padding:5px 9px}
#city-app[data-saturday-style] .city-map-instruction {
 position:static;
 grid-row:3;
 padding:6px 8px;
 background:#1a344e;
 color:#c4dbeb;
}
#city-app[data-saturday-style] .city-atlas footer {
 height:auto;
 min-width:0;
 gap:6px 14px;
 flex-wrap:wrap;
 padding:0;
 color:#b5f9df;
}
#city-app[data-saturday-style] .city-atlas footer a {color:#ffe0a6!important}
@media(max-width:700px) and (orientation:portrait) {
 #city-app[data-saturday-style] .city-atlas[open] {
  gap:7px;
  padding:max(8px,env(safe-area-inset-top,0px)) max(8px,env(safe-area-inset-right,0px)) max(8px,env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));
 }
 #city-app[data-saturday-style] .city-atlas-layout {grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);gap:6px}
 #city-app[data-saturday-style] .city-atlas-layout>nav {
  height:64px;
  align-items:flex-start;
  scrollbar-width:thin;
 }
 #city-app[data-saturday-style] .city-atlas-layout nav button {
  width:140px;
  height:56px;
  min-height:56px;
  padding:5px 7px;
  gap:5px;
 }
 #city-app[data-saturday-style] .city-atlas-layout nav span {
  min-width:0;
  font-size:12px;
  line-height:1.15;
 }
 #city-app[data-saturday-style] .city-atlas-layout nav em {
  margin-top:3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
 }
 #city-app[data-saturday-style] .city-atlas-layout nav b {
  position:relative;
  display:block;
  width:12px;
  height:12px;
  flex:none;
  font-size:0;
 }
 #city-app[data-saturday-style] .city-atlas-layout nav b::before,
 #city-app[data-saturday-style] .city-atlas-layout nav b::after {
  content:'';
  position:absolute;
 }
 #city-app[data-saturday-style] .city-atlas-layout nav b::before {
  top:2px;
  right:1px;
  width:6px;
  height:6px;
  border-top:1px solid currentColor;
  border-right:1px solid currentColor;
 }
 #city-app[data-saturday-style] .city-atlas-layout nav b::after {
  top:6px;
  left:1px;
  width:11px;
  height:1px;
  background:currentColor;
  transform:rotate(-45deg);
 }
 #city-app[data-saturday-style] .city-map-tools {gap:4px;padding:4px}
 #city-app[data-saturday-style] .city-map-tools button {min-height:40px;padding:5px 8px}
 #city-app[data-saturday-style] .city-map-instruction {padding:5px 6px}
 #city-app[data-saturday-style] .city-atlas footer {font-size:10px}
 #city-app[data-saturday-style] .city-atlas footer a {margin-top:2px}
}

@media (max-width:430px) and (min-height:540px) and (orientation:portrait) {
 .riding.first-person:not(.car-machine):has(#hud-opacity option[value="0.45"]:checked) .saturday-cel-hud {
  .ride-score-dock {
   gap:0;
   border-left:1px solid #cdb878;
   background:linear-gradient(90deg,#142739e6,#142739a1 76%,#14273961);
  }
  .ride-score-dock :is(.score-box,.route-radar) {
   opacity:1;
   background:none;
   border:0;
   box-shadow:none;
   padding:4px 7px;
  }
  .ride-score-dock .score-box .small-label,
  .ride-score-dock .route-radar > div {
   color:#f0e8c9;
   font-size:8px;
   letter-spacing:.035em;
  }
  .ride-score-dock .score-box > #score {
   font-size:21px;
   margin-top:1px;
   line-height:.98;
  }
  .ride-score-dock .route-radar {
   border-top:1px solid #b9d1d743;
  }
  .ride-score-dock .route-radar > div {
   flex-wrap:wrap;
   column-gap:2px;
  }
  .ride-score-dock .route-radar canvas {
   height:29px;
   opacity:.78;
  }
  .ride-score-dock .route-radar small {
   color:#b6eedc;
   font-size:8px;
  }
 }
}
