@font-face{font-family:"Barlow Condensed";font-style:normal;font-weight:700;font-display:swap;src:url("assets/fonts/barlow-condensed-latin-700.woff2") format("woff2")}
#route {
  --brief-gutter:max(clamp(18px,3.5vw,56px),env(safe-area-inset-left),env(safe-area-inset-right));
  --brief-photo-width:min(calc(100vw - 2 * var(--brief-gutter)),107vh);
  --brief-photo-left:calc((100% - var(--brief-photo-width)) / 2);
  --corner-inset:max(var(--x),var(--r),env(safe-area-inset-left),env(safe-area-inset-right));
  --x:max(4vw,env(safe-area-inset-left,0px),20px);--r:max(4vw,env(safe-area-inset-right,0px),20px);
  --y:max(3.7vh,env(safe-area-inset-top,0px),16px);--floor:max(4.6vh,env(safe-area-inset-bottom,0px),24px);
}
#night-overlay {
  --paper:#f5f2e9;--amber:#ffc580;--muted:#c6c7c8;--line:rgba(239,237,231,.29);
  --stick-size:clamp(148px,40vw,164px);--trick-size:clamp(70px,20.6vw,80px);--wheelie-size:clamp(58px,17vw,66px);
  --mono:ui-monospace,"SFMono-Regular",Consolas,"Liberation Mono",monospace;
  --title:"Helvetica Neue",Helvetica,Arial,sans-serif;
  --condensed:"Barlow Condensed","Arial Narrow",var(--title);
  position:absolute;inset:0;pointer-events:none;color:var(--paper);font:14px/1.25 var(--title);
  -webkit-tap-highlight-color:transparent;isolation:isolate;
}
#night-overlay :is(button,select,input) {font-family:var(--title)}
#night-overlay button {pointer-events:auto;color:inherit;touch-action:manipulation;user-select:none;-webkit-user-select:none}
#night-overlay button:focus-visible {outline:2px solid var(--paper);outline-offset:3px}
#night-overlay button:disabled {opacity:.38;cursor:default}
.nr-icon {display:block;width:1.35rem;height:1.35rem;flex:none}
.nr-shade {position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,rgba(5,8,12,.82),transparent 20%),linear-gradient(0deg,rgba(4,7,11,.52),transparent 29%),linear-gradient(70deg,rgba(4,7,10,.94) 0%,rgba(4,7,10,.72) 19%,rgba(4,7,10,.23) 40%,transparent 62%)}
#route[data-ride-mode="ride"] .nr-shade {background:linear-gradient(180deg,rgba(3,6,10,.59),transparent 16%),linear-gradient(0deg,rgba(4,8,12,.32),transparent 19%)}
.nr-nav,.nr-nav-left,.nr-nav-right,.nr-link,.nr-brief-actions,.nr-pager,.nr-metrics,.nr-guide-main,.nr-stats,.nr-keyline,.nr-keyline span,.nr-speed,.nr-dialog-head,.nr-map-legend,.nr-map-legend span {display:flex;align-items:center}
.nr-nav {position:absolute;left:var(--x);right:var(--corner-inset);top:var(--y);justify-content:space-between;z-index:3}
.nr-nav-left,.nr-nav-right {gap:8px;pointer-events:none}
.nr-link {justify-content:center;min-width:44px;min-height:44px;gap:8px;padding:0 11px;font-weight:600;font-size:13px;line-height:1;letter-spacing:.015em;background:rgba(8,12,17,.74);border:1px solid rgba(231,232,227,.25);border-radius:4px}
@media (hover:hover) {.nr-nav .nr-link:hover,.nr-dialog .nr-link:hover,.nr-secondary:hover {border-color:#efefeaa6;background:#292b30}}

.nr-brief,.nr-result {position:absolute;left:var(--x);bottom:var(--floor);width:min(396px,calc(100vw - var(--x) - var(--r)));pointer-events:none;text-shadow:0 2px 12px #05070a66;z-index:1}
.nr-kicker {margin:0 0 17px;color:#f6d4ab;font:600 11px/1.3 var(--mono);letter-spacing:.11em;text-transform:uppercase}
.nr-pager {width:max-content;margin:0 0 3px;gap:2px;pointer-events:auto;position:relative;left:-11px}
.nr-pager span {padding:0 2px;font:600 11px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;white-space:nowrap;color:#e7e5de}
.nr-pager button {min-width:36px;height:40px;display:grid;place-items:center;background:transparent;border-radius:4px}
@media (hover:hover) {.nr-pager button:hover {background:#f8f4e91a}}
.nr-pager .nr-icon {width:14px;height:14px}
.nr-brief h1,.nr-result h1,.nr-dialog h2,.nr-guide-name,.nr-speed b,.nr-place,.nr-stats dd {font-family:var(--title);font-weight:700}
.nr-brief h1,.nr-result h1 {padding:0;margin:0;font-size:clamp(56px,7.2vw,110px);line-height:.83;text-transform:uppercase;letter-spacing:-.023em;text-wrap:balance}
.nr-brief .nr-desc,.nr-result-body>p:not(.nr-kicker) {margin:18px 0 22px;max-width:39ch;font-size:15px;line-height:1.43;color:var(--ink)}
.nr-brief-actions {gap:8px;flex-wrap:wrap}
.nr-btn {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 17px;border:1px solid transparent;border-radius:3px;font-size:14px;font-weight:700;letter-spacing:.005em;box-sizing:border-box}
#night-overlay .nr-primary {background:var(--paper);border-color:var(--paper);color:#161b1e}
@media (hover:hover) {#night-overlay .nr-primary:hover {background:#fff;border-color:#fff}}
.nr-primary .nr-icon {width:15px;height:15px}
.nr-secondary {background:#0d1219c9;border:1px solid #e7e7e658}
.nr-secondary .nr-icon {width:17px;height:17px}
.nr-record {font:11px/1.4 var(--mono);color:#cccac1;margin:10px 0 0}
.nr-drive {position:absolute;inset:0}
.nr-guide,.nr-metrics,.nr-radar,.nr-speed,.nr-place,.nr-keyline,.nr-feedback,.nr-touch {position:absolute}
.nr-guide {left:var(--x);top:calc(var(--y) + 60px);max-width:min(410px,55vw);border-left:2px solid var(--amber);padding:2px 0 4px 10px;text-shadow:0 1px 2px #080a0f,0 2px 9px #020408,0 1px 20px #000}
.nr-guide-name {margin-bottom:3px;font-size:clamp(17px,2.1vw,29px);line-height:.98;letter-spacing:.015em;text-transform:uppercase}
.nr-guide-main {gap:6px;min-height:20px;color:#eeeee7;font:12px/1.2 var(--mono)}
.nr-bearing {width:16px;height:16px;display:grid;place-items:center;flex:none;background:#e7aa681a;border-radius:50%}
.nr-bearing .nr-icon {width:17px;height:17px;color:var(--amber)}
.nr-distance {color:var(--amber);white-space:nowrap;margin-left:1px}
.nr-progress {display:flex;width:63px;margin-top:5px;height:2px;gap:3px}
.nr-progress i {flex:1;background:#e9e8e94f}
.nr-progress i.current {background:#ffc98f}
.nr-progress i.done {background:#e8efe9}
.nr-metrics {right:var(--r);top:calc(var(--y) + 58px);display:flex;gap:12px;color:#f5f2eb;text-shadow:0 1px 4px #000,0 1px 14px #000;font:12px/1.4 var(--mono);font-variant-numeric:tabular-nums}
.nr-radar {left:var(--x);bottom:calc(var(--floor) + 30px);width:112px;height:122px;overflow:hidden;padding:0;background:#11171cde;border:1px solid #e0e1d654;border-radius:3px;box-shadow:0 3px 14px #080b1190}
@media (hover:hover) {.nr-radar:hover {border-color:var(--paper)}}
.nr-tiny-map {position:absolute;inset:4px 8px;overflow:hidden}
.nr-tiny-map svg,.nr-large-map svg {display:block;width:100%;height:100%}
.nm-compass {fill:#e7e7e1;stroke:#171e23;stroke-width:2;paint-order:stroke;font:700 6.5px var(--mono)}
.nm-edge-target {fill:#ffbc6f;stroke:#31281d;stroke-width:1;stroke-linejoin:round}
.nm-edge-target[data-kind="spot"]{fill:#dc3547;stroke:#fff2db;stroke-width:.75}
.nm-buildings {fill:#384048;stroke:#252c32;stroke-width:.8}
.nm-streets {fill:#596068;stroke:#596068;stroke-width:.7}
.nm-roofs {fill:#7c796b}
.nm-route {fill:none;stroke:#cea06b;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.nm-next {fill:none;stroke:#f1b870;stroke-width:1;stroke-opacity:.65;stroke-dasharray:2.5 4}
.nm-target path {fill:#ffbc6f;stroke:#201a13;stroke-width:1.1}
.nm-halo {fill:#f7ad5730;stroke:#ffca7e;stroke-width:.7}
.nm-driver {fill:#eff7fb;stroke:#151a1e;stroke-width:1.1;stroke-linejoin:round}
.nm-dispatch rect {fill:#8bbab8;stroke:#182527;stroke-width:.9}
.nm-dispatch text {fill:#132225;font:700 5.5px var(--mono)}
.nm-names {font:3.8px var(--mono);fill:#fffdf3;paint-order:stroke;stroke:#242c33;stroke-width:1.4;stroke-linejoin:round}
.nr-speed {bottom:calc(var(--floor) + 24px);left:calc(var(--x) + 124px);height:42px;align-items:flex-end;gap:4px;text-shadow:0 1px 5px #0c0d10}
.nr-speed b {font-variant-numeric:tabular-nums;font-size:48px;line-height:.83;letter-spacing:-.035em}
.nr-speed span {font:10px/1 var(--mono);letter-spacing:.06em;color:#f0c797}
.nr-place {bottom:var(--floor);left:var(--x);font-size:19px;line-height:1;text-transform:uppercase;letter-spacing:.04em;text-shadow:0 1px 4px #000,0 2px 12px #000}
.nr-keyline {right:var(--r);bottom:var(--floor);gap:13px;color:#edebe4;font:11px/1.2 var(--mono);text-shadow:0 1px 5px #08090a}
.nr-keyline span {gap:5px}
#night-overlay kbd {font:inherit}
.nr-keyline kbd,.nr-instructions kbd {display:inline-flex;align-items:center;justify-content:center;min-height:21px;padding:1px 5px;border-radius:3px;border:1px solid #f5f3eb5c;color:#fff;background:#10151bce;white-space:nowrap}
.nr-feedback {left:50%;top:calc(var(--y) + 59px);transform:translateX(-50%);width:max-content;max-width:min(420px,48vw);padding:7px 11px;margin:0;border-radius:2px;background:#11161ddb;box-shadow:0 1px 5px #07080b5a;color:#f7f4ed;font:12px/1.4 var(--title);text-align:center;pointer-events:none}
.nr-touch {left:var(--x);right:var(--r);bottom:var(--floor);display:none;align-items:flex-end;justify-content:space-between;gap:8px;pointer-events:none}
#route[data-input="touch"] .nr-touch {display:flex}
#route[data-input="touch"] .nr-keyline {display:none}
#route[data-input="touch"] .nr-radar {width:78px;height:85px}
#route[data-input="touch"] .nr-speed {left:auto;right:var(--r);bottom:calc(var(--floor) + 108px);height:32px}
#route[data-input="touch"] .nr-speed b {font-size:36px}
#route[data-input="touch"] .nr-place {left:var(--x);bottom:calc(var(--floor) + var(--stick-size) + 8px);font-size:15px}
.nr-stick,.nr-pedals button {user-select:none;-webkit-user-select:none;touch-action:none!important;pointer-events:auto;-webkit-touch-callout:none}
.nr-stick {position:relative;width:var(--stick-size);height:var(--stick-size);flex:0 0 auto;border:1px solid #f0eee075;border-radius:50%;background:radial-gradient(circle at center,#141a20aa,#161c24c9);box-shadow:inset 0 0 0 4px #ebefec09}
.nr-stick::before {content:"";position:absolute;inset:-5px -10px calc(0px - var(--floor)) -10px;touch-action:none}
.nr-stick.active {border-color:#e9c7a2}
.nr-stick>span {display:block;position:absolute;width:6px;height:6px;border:solid #e7e8e795;border-width:1.5px 1.5px 0 0}
.nr-stick-n {top:10%;left:calc(50% - 3px);transform:rotate(-45deg)}
.nr-stick-s {bottom:10%;left:calc(50% - 3px);transform:rotate(135deg)}
.nr-stick-e {right:10%;top:calc(50% - 3px);transform:rotate(45deg)}
.nr-stick-w {left:10%;top:calc(50% - 3px);transform:rotate(-135deg)}
.nr-thumb {position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:36%;height:36%;border-radius:50%;background:#677078c9;border:1px solid #d8d9d99c;box-shadow:0 2px 6px #03050766}
.nr-pedals {display:grid;grid-template-columns:repeat(2,minmax(54px,1fr));gap:5px;max-width:170px;width:31vw}
.nr-pedals button {height:48px;min-width:0;display:flex;align-items:center;justify-content:center;gap:4px;flex-direction:column;padding:4px;border-radius:6px;border:1px solid #e3e7e163;background:#141b21d9;color:var(--paper);font-weight:600;font-size:11px;line-height:1}
.nr-pedals .nr-icon {width:17px;height:17px}
.nr-pedals button.active {background:#c4a37a;color:#1d2020;border-color:#ffe1ba}
.nr-stats {align-items:flex-start;gap:24px;margin:0 0 22px;padding:14px 0 0;border-top:1px solid var(--line)}
.nr-stats dt {color:var(--muted);font:11px/1.3 var(--mono);text-transform:uppercase;letter-spacing:.06em}
.nr-stats dd {margin:4px 0 0;font-size:32px;line-height:.95;font-variant-numeric:tabular-nums}
.nr-modal {position:fixed;inset:0;display:grid;place-items:center;z-index:5;pointer-events:auto;background:#06080db3;padding:max(14px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))}
.nr-dialog {width:min(100%,450px);max-height:100%;overflow:auto;padding:18px 22px 22px;color:var(--paper);border:1px solid #c5c7c23f;background:#000;box-shadow:0 16px 64px #0008;overscroll-behavior:contain}
.nr-dialog-head {justify-content:space-between;gap:20px;margin:0 0 13px}
.nr-dialog h2 {margin:0;font-size:40px;line-height:1;text-transform:uppercase;letter-spacing:-.015em}
.nr-dialog .nr-link {min-height:40px;min-width:40px;background:transparent}
.nr-instructions dl {margin:0}
.nr-instructions dl>div {padding:7px 0;display:grid;grid-template-columns:35% 1fr;gap:10px;border-top:1px solid #b9bec42e}
.nr-instructions dt {margin:0;color:#faf8f1;font-size:14px;font-weight:600}
.nr-instructions dd {display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin:0;color:#d2d4d5;font-size:13px;line-height:1.35}
.nr-instructions kbd {font:11px/1 var(--mono)!important;min-height:19px}
.nr-large-map {width:100%;height:min(48vh,430px);min-height:154px;background:#20262d;overflow:hidden}
.nr-map-legend {justify-content:center;gap:22px;margin-top:13px;font:12px var(--mono)}
.nr-map-legend span {gap:6px}
.nr-map-legend i {width:7px;height:7px;background:var(--paper);border-radius:50%}

.nr-lockers {display:flex;flex-wrap:wrap;justify-content:center;gap:4px 20px;margin:12px 0 0;padding:0;list-style-position:inside;font:12px var(--mono);color:#d2dbdf}
@media(max-width:720px){
  #route {--x:max(18px,env(safe-area-inset-left));--r:max(18px,env(safe-area-inset-right));--y:max(13px,env(safe-area-inset-top));--floor:max(20px,env(safe-area-inset-bottom))}
  .nr-nav-left,.nr-nav-right {gap:5px}
  .nr-link {padding:0 8px;gap:5px}
  .nr-brief {width:min(338px,calc(100vw - var(--x) - var(--r)))}
  .nr-brief h1,.nr-result h1 {font-size:clamp(49px,11.8vw,69px)}
  .nr-brief .nr-desc {font-size:14px;margin:10px 0 14px}
  .nr-kicker {margin-bottom:8px;font-size:10px}
  .nr-shade {background:linear-gradient(180deg,rgba(5,7,13,.7),transparent 16%),linear-gradient(0deg,#05090df7 0%,#070c13e3 12%,#070c13b0 26%,#060a0f49 40%,transparent 54%)}
  .nr-pager {margin-bottom:3px}
  .nr-keyline {max-width:40vw;justify-content:flex-end;flex-wrap:wrap;gap:4px 7px}
  .nr-keyline span {font-size:9px}
  .nr-optional {display:none}
  .nr-radar {width:72px;height:82px}
  .nr-speed {left:calc(var(--x) + 82px)}
  .nr-metrics {font-size:11px;gap:7px}
  .nr-guide {top:calc(var(--y) + 53px);max-width:59vw;padding-left:7px}
  .nr-guide-main {font-size:10px}
  .nr-feedback {top:auto;bottom:calc(var(--floor) + 145px);max-width:80vw;font-size:12px}
  .nr-guide-name {font-size:18px}
}
@media(max-width:360px){
  #route {--x:12px;--r:12px}.nr-brief h1,.nr-result h1{font-size:47px}.nr-link{min-width:40px}
  .nr-pedals{width:120px}.nr-btn{min-height:44px;padding:0 13px}
}
@media(max-height:510px) and (min-aspect-ratio:1/1){
  #route {--y:max(6px,env(safe-area-inset-top));--floor:max(10px,env(safe-area-inset-bottom));--x:max(22px,env(safe-area-inset-left));--r:max(22px,env(safe-area-inset-right))}
  .nr-brief,.nr-result {width:min(358px,52vw)}
  .nr-brief h1,.nr-result h1 {font-size:clamp(44px,8.5vh,66px)}
  .nr-brief .nr-desc,.nr-result-body>p:not(.nr-kicker) {font-size:13px;margin:6px 0 8px}
  .nr-kicker{margin-bottom:1px;font-size:9px}.nr-pager button{height:30px}.nr-pager{margin-bottom:2px}
  .nr-btn {min-height:38px}.nr-nav .nr-link{min-height:38px}
  .nr-shade {background:linear-gradient(80deg,#06090df2,#080c12c7 29%,#090d1433 53%,transparent 67%),linear-gradient(180deg,#07090e59,transparent 18%)}
  .nr-pedals{width:142px;gap:4px}.nr-pedals button{height:42px}
  #route[data-input="touch"] .nr-speed {bottom:calc(var(--floor) + 94px)}
  #route[data-input="touch"] .nr-radar {width:56px;height:67px}
  .nr-guide {top:calc(var(--y) + 43px);max-width:40vw}
  .nr-metrics {top:calc(var(--y) + 43px)}
  .nr-feedback {inset:calc(var(--y) + 12px) auto auto 50%;max-width:35vw}
  .nr-keyline{max-width:45vw}
  .nr-stats{margin:8px 0;padding:7px 0 0}.nr-stats dd{font-size:25px}.nr-dialog{padding:10px 16px;max-width:510px}.nr-instructions dl>div{padding:4px 0}
}
.nr-searchlight {display:inline-flex;align-items:center;gap:5px;color:#c2dfff}
.nr-searchlight {font:700 16px/.98 var(--title);text-transform:uppercase;letter-spacing:-.012em}
@media(max-width:520px){.nr-metrics{flex-wrap:wrap;justify-content:flex-end;max-width:118px;gap:2px 7px}.nr-searchlight{flex-basis:100%;justify-content:flex-end}}

.nr-charge {display:flex;align-items:center;gap:5px;margin-top:6px;color:var(--paper);font:10px/1.1 var(--mono)}
.nr-charge i {display:block;width:42px;height:3px;background:#f2ede456}
.nr-charge b {display:block;height:100%;background:var(--amber);transform-origin:left}
.nr-stage-tabs,.nr-board-heat,.nr-board-scope,.nr-alias>div {display:flex;align-items:center;gap:6px}
.nr-stage-tabs {margin:0 0 18px;gap:3px}
.nr-stage-tabs button,.nr-board-scope button,.nr-board-heat button {border:1px solid #eee9dc42;border-radius:3px;padding:9px 12px;color:#e7e5df;font:600 13px/1.15 var(--title);background:#121820b8}
.nr-stage-tabs button[aria-pressed="true"] {border-color:var(--amber);color:#ffdaac;background:#2f271fd9}
@media (hover:hover) {.nr-stage-tabs button:hover,.nr-board-heat button:hover,.nr-board-scope button:hover {border-color:#ffe0b4}}
.nr-brief {width:min(475px,calc(100vw - var(--x) - var(--r)))}
.nr-brief .nr-desc,.nr-result-body>p:not(.nr-kicker) {font-size:16px}
.nr-metrics {flex-direction:column;align-items:flex-end;gap:3px}
.nr-heat {display:flex;gap:6px;align-items:center;position:relative;font-size:12px}
.nr-heat>span:first-child {font-size:10px;letter-spacing:.09em}
.nr-star-track {display:block;position:relative}
.nr-star-track i,.nr-star-track b {display:block;font:17px/1 var(--title);letter-spacing:1px}
.nr-star-track i {color:#74808b}
.nr-star-track b {position:absolute;left:0;top:0;color:#ffc37b}
.nr-scoreline {display:flex;align-items:center;gap:7px}
.nr-scoreline strong {font:700 25px/1 var(--title);letter-spacing:.015em}
.nr-scoreline>span {color:var(--amber);font:12px/1 var(--mono)}
.nr-stock,.nr-lock {display:flex;align-items:center;gap:6px}
.nr-stock .nr-icon,.nr-lock .nr-icon {width:15px;height:15px}
.nr-stock {color:#e0e2df;font:12px/1.3 var(--mono);letter-spacing:.02em}
.nr-coach {margin:5px 0 0;color:#f0e8db;font-size:13px;line-height:1.28;max-width:36ch}
.nr-lock {position:absolute;left:50%;top:67%;transform:translateX(-50%);min-height:32px;padding:5px 10px;background:#12191fdd;border:1px solid #f2c082aa;border-radius:3px;font:600 13px/1.1 var(--title);color:#ffdaaa;text-align:center}
.nr-lock kbd {padding:2px 4px;border:1px solid #deb17f99;border-radius:2px}
#route[data-input="touch"] .nr-lock kbd {display:none}
.nr-feedback {top:calc(var(--y) + 28px)}
.nr-board-heat {margin:15px 0 8px;gap:4px}
.nr-board-heat>span {margin-right:5px;font:12px/1.1 var(--mono);color:#c6cbcd;text-transform:uppercase}
.nr-board-heat button {padding:0;min-height:35px;min-width:35px}
.nr-board-scope button[aria-pressed="true"],.nr-board-heat button[aria-pressed="true"] {border-color:#edbd86;color:#ffd4a3;background:#342c23}
.nr-board-empty {margin:12px 0;padding:18px 0;border-top:1px solid #e4e2dc2b;border-bottom:1px solid #e4e2dc2b;color:#e1e4e3;font-size:14px;line-height:1.45}
.nr-leaderboard table {width:100%;border-collapse:collapse;text-align:left;margin:14px 0;font:13px/1.3 var(--mono)}
.nr-leaderboard th {color:#d5c0a6;font-size:11px;text-transform:uppercase;letter-spacing:.06em}
.nr-leaderboard td,.nr-leaderboard th {border-bottom:1px solid #e4e2dc29;padding:8px 4px;overflow-wrap:anywhere}
.nr-leaderboard td:last-child,.nr-leaderboard th:last-child {text-align:right}
.nr-lifetime,.nr-alias label {color:#bdc1c3;font:12px/1.4 var(--mono)}
.nr-alias {margin-top:14px}.nr-alias>div {margin-top:5px}.nr-alias input,.nr-alias button {font:14px/1 var(--title);min-height:36px;padding:0 8px;border-radius:2px;border:1px solid #e4e2dc4f;background:#10151a;color:#f3f2e9}
.nr-alias input {width:100%;max-width:240px}
.nm-route-street {stroke:#e0e0d8;stroke-width:2.3}
.nm-route-roof {stroke:#f0ac65;stroke-width:2.6}
.nm-route-press {stroke:#91b8bd;stroke-width:2;stroke-dasharray:4 2}
.nm-receivers {fill:#f2bc79;stroke:#24282b;stroke-width:.7}
.nm-receivers [data-status="inactive"],.nm-receivers [data-status="delivered"] {display:none}
.nm-warehouse rect {fill:#9ac8c4;stroke:#1b2c30;stroke-width:.9}
.nm-warehouse text {font:4.4px var(--mono);fill:#d4f5f1;paint-order:stroke;stroke:#242c33;stroke-width:1.2}

@media(max-width:720px){
  .nr-stage-tabs {margin:0 0 13px}.nr-brief .nr-desc{font-size:15px}.nr-guide-main{font-size:12px}.nr-coach{font-size:12px}.nr-scoreline strong{font-size:23px}
  .nr-feedback {top:auto;bottom:calc(var(--floor) + 143px)}
  .nr-lock{top:59%;max-width:85vw}
}
@media(max-width:600px){
  .nr-guide{max-width:min(62vw,290px)}
  #route[data-input="touch"] .nr-radar{width:76px;height:82px}
  .nr-metrics{max-width:95px;gap:3px;flex-wrap:nowrap}
  .nr-heat {gap:3px}.nr-heat>span:first-child{display:none}
}
@media(max-height:510px) and (min-aspect-ratio:1/1){
  .nr-stage-tabs{margin-bottom:7px}.nr-stage-tabs button{padding:5px 9px}.nr-coach{max-width:35ch;font-size:11px}
  .nr-brief{max-width:42vw}.nr-brief h1{font-size:clamp(38px,10vh,53px)}
  #route[data-input="touch"] .nr-radar{height:66px;width:70px}
  .nr-guide {max-width:42vw}.nr-feedback {top:var(--y);bottom:auto}
  .nr-lock{top:66%}
}
/* Scores live in the world. The small persistent HUD remains readable while
   the warmer, higher contrast receipt clears after the landed action. */
.nr-world-awards {position:absolute;inset:0;overflow:hidden;pointer-events:none}
.nr-world-xp {position:absolute;width:max-content;white-space:nowrap;transform-origin:50% 90%;color:#ffe296;filter:drop-shadow(0 2px 1px #130e09);line-height:.86;will-change:transform,opacity}
.nr-world-xp strong {font:700 clamp(32px,4.5vw,66px)/.86 var(--condensed);letter-spacing:-.035em;text-shadow:0 0 3px #805116,0 0 12px var(--xp-glow,#ffb30070)}
.nr-world-xp small {padding-left:4px;font:700 clamp(13px,1.5vw,22px)/1 var(--title);letter-spacing:.035em}
.nr-recap {position:absolute;left:50%;bottom:13%;display:grid;justify-items:center;gap:5px;width:min(75vw,28rem);max-width:calc(100% - 24px);grid-template-columns:minmax(0,1fr);transform:translateX(-50%);text-align:center;transition:opacity .12s;pointer-events:none;color:#ffe296;text-shadow:0 2px 1px #130e0b,0 2px 9px #100b06e0,0 0 18px #bc7c2b70}
.nr-recap strong {font:700 clamp(32px,4.1vw,64px)/.88 var(--title);letter-spacing:-.012em;text-transform:uppercase}
.nr-recap span {width:max-content;max-width:100%;padding:4px 8px;background:#191811c9;border-radius:2px;color:#ffdea6;font:600 13px/1.15 var(--mono);letter-spacing:.04em}
.nr-recap[data-tone="red"] {color:#ffaba0;text-shadow:0 2px 2px #1c0808,0 0 16px #491b1a}.nr-recap[data-tone="red"] span{color:#ffd2bc;background:#291514d9}
.nr-scoreline {flex-direction:column;align-items:flex-end;gap:1px}
.nr-scoreline strong {font-size:clamp(36px,3.5vw,58px);line-height:.86;letter-spacing:-.022em;transform-origin:right center;font-variant-numeric:tabular-nums}
.nr-scoreline>span {position:relative;padding:2px 0 5px;color:#ffe296;font-size:13px;font-weight:700}
.nr-scoreline>span::after {position:absolute;content:"";left:0;right:0;bottom:1px;height:2px;background:currentColor;transform-origin:left;transform:scaleX(var(--time-left,1))}
.nr-wheelie {
  position:absolute;left:calc(50vw - var(--x) - 2px);top:clamp(0px,3vh,42px);
  transform:translateX(-50%);display:grid;justify-items:center;width:max-content;
  color:#fff8ed;text-align:center;pointer-events:none;
  text-shadow:0 1px 2px #080c12,0 2px 7px #080c12,0 2px 15px #080c12
}
.nr-wheelie[hidden]{display:none}
.nr-wheelie-label,.nr-wheelie-context {font:700 10px/1.25 var(--mono);text-transform:uppercase;letter-spacing:.08em;white-space:nowrap}
.nr-wheelie-label {background:#161a20db;border-radius:2px;padding:1px 5px}
.nr-wheelie strong{display:flex;align-items:baseline;gap:2px;font:700 clamp(36px,4.4vw,60px)/.95 var(--title);font-variant-numeric:tabular-nums}
.nr-wheelie small {font:700 .4em/1 var(--title)}
.nr-wheelie-context {margin-top:2px;color:#fce3b3}
.nr-wheelie[data-state=best] strong,.nr-wheelie[data-state=best] .nr-wheelie-context{color:#ffe190}
@media(max-width:600px) and (orientation:portrait){
  .nr-wheelie {top:calc(100% + 8px)}
  .nr-wheelie strong{font-size:36px}
}
@media(max-height:510px) and (min-aspect-ratio:1/1){
  .nr-wheelie {top:-40px}.nr-wheelie strong{font-size:33px}
}
.nr-stock {margin-top:2px}.nr-attempt {margin:4px 0 5px;color:#ffcf96;font:600 12px/1.25 var(--mono)}
.nr-pause-sheet>p {margin:0 0 18px;color:#d5d9da;font-size:16px}
.nr-pause-sheet .nr-brief-actions {gap:8px}
.nr-pedals {grid-template-columns:repeat(3,minmax(42px,1fr));max-width:213px;width:43vw}
#route[data-input="touch"] .nr-recap{bottom:calc(var(--floor) + 130px);max-width:85vw}
#route[data-input="touch"] .nr-recap strong{font-size:clamp(29px,5vw,42px)}
#route[data-input="touch"] .nr-feedback{top:calc(var(--y) + 80px);bottom:auto}
@media(max-width:600px){
  #route[data-input="touch"] .nr-feedback{top:auto;bottom:calc(var(--floor) + 184px)}
  .nr-scoreline strong{font-size:34px}.nr-scoreline>span{font-size:11px}.nr-metrics{max-width:39vw}
  .nr-guide{max-width:58vw}.nr-attempt{font-size:11px}
  .nr-pedals{width:46vw;max-width:183px}
}
@media(max-height:510px) and (min-aspect-ratio:1/1){
  .nr-scoreline strong{font-size:31px}.nr-metrics{gap:1px}.nr-pedals{width:178px}
  #route[data-input="touch"] .nr-recap{bottom:11%;max-width:45vw}
}
.nm-map-base {fill:#171e23}
.nm-map-grid {fill:none;stroke:#283239;stroke-width:.4;stroke-opacity:.8}
.nm-road-edge,.nm-road-bed {fill:none;stroke-linecap:round;stroke-linejoin:round}
.nm-road-edge{stroke:#465058;stroke-width:14}.nm-road-bed{stroke:#333c44;stroke-width:12}
.nm-main-line,.nm-roof-line {fill:none;stroke-linejoin:round;stroke-linecap:round}
.nm-main-line {stroke:#e3e2db;stroke-width:2.2}.nm-roof-line {stroke:#f4b163;stroke-width:2.9}
.nm-station {fill:#bcbdb6;stroke:#15191b;stroke-width:1}
.nm-map-streets text{font:600 4.2px/1 var(--mono);fill:#b1bdc1;stroke:#1a2126;stroke-width:1.35;paint-order:stroke}
.nm-map-streets text:empty{display:none}
.nm-course-spot {fill:#c1a4d4;stroke:#1a1720;stroke-width:1.0}
.nm-course-spot[data-done="true"]{fill:#677175}
.nr-map-legend {flex-wrap:wrap;gap:6px 14px}

.nr-tiny-map {inset:0}
.nr-instructions dl>div {padding:7px 0}
.nr-instructions dd {display:block;align-self:center}
.nr-instructions [data-guide-input=touch],#route[data-input=touch] .nr-instructions [data-guide-input=keyboard] {display:none}
#route[data-input=touch] .nr-instructions [data-guide-input=touch] {display:inline}
.nr-control-basics dt {align-self:center}
.nr-more-controls {margin-top:5px;border-top:1px solid var(--line)}
.nr-more-controls summary {cursor:pointer;padding:12px 0;font-size:14px;font-weight:600}
.nr-more-controls summary:focus-visible {outline:2px solid var(--paper);outline-offset:2px}
.nr-more-controls h3 {margin:12px 0 5px;color:#b9bec4;font:600 11px/1.3 var(--mono);text-transform:uppercase;letter-spacing:.06em}
.nr-more-controls dl>div {padding:5px 0}

.nr-large-map {height:min(51vh,500px);min-height:145px}
@media(max-height:510px){.nr-large-map{height:39vh;min-height:110px}}

.nm-map-callouts path{fill:none;stroke:#8f9ca1;stroke-width:.7;opacity:.72}
.nm-map-callouts text{fill:#ecede7;paint-order:stroke;stroke:#1b2327;stroke-width:2;font:600 12px var(--title);letter-spacing:.035em}
[data-view="local"] .nm-map-callouts,[data-view="overview"] .nm-map-streets{display:none}
.nr-recap-title{display:flex;justify-content:center;align-items:baseline;flex-wrap:wrap;gap:2px 8px;min-width:0;max-width:100%}
.nr-recap-title strong,.nr-recap>span{min-width:0;max-width:100%;overflow-wrap:anywhere;text-wrap:balance}
.nr-recap-title strong{line-height:1.02}
.nr-recap>span{white-space:normal;box-sizing:border-box}
.nr-recap-title b{position:relative;top:-.06em;flex:none;color:#fff7db;font:700 clamp(23px,3.1vw,48px)/1 var(--title);letter-spacing:-.04em}
@media(max-width:600px){.nr-recap-title{gap:5px}.nr-recap-title b{font-size:24px}}
.nr-guide-caption{margin-bottom:4px;color:#e8d9be;font:600 11px/1.15 var(--mono);letter-spacing:.035em;text-transform:uppercase}
.nr-fx-anchor{position:absolute;width:0;height:0;pointer-events:none}
.nr-fx-burst{position:absolute;left:0;top:0;width:clamp(90px,9vw,145px);height:auto;overflow:visible;transform-origin:center;filter:drop-shadow(0 0 3px #f9a126b0);will-change:transform,opacity}
.nr-spark-ray,.nr-fx-ring{fill:none;stroke:#fff2be;stroke-linecap:round}
.nr-spark-ray{stroke-width:1.65}.nr-spark-chip{fill:#ffd16b}.nr-fx-ring{stroke-width:1.1;opacity:.9}
@media(prefers-reduced-motion:reduce){.nr-fx-burst{display:none}}

/* On a cold start, pause and help remain legible while construction finishes. */

.nr-hud-stack {display:contents}
#route[data-input="touch"] .nr-hud-stack {
  position:absolute;right:var(--r);top:calc(var(--y) + 58px);
  display:grid;justify-items:end;grid-template-rows:minmax(68px,max-content) auto;
  gap:6px;pointer-events:none
}
#route[data-input="touch"] .nr-hud-stack .nr-metrics {position:static;align-self:start}
#route[data-input="touch"] .nr-hud-stack .nr-radar {position:relative;inset:auto;align-self:start;pointer-events:auto}
@media(max-width:600px){
  #route[data-input="touch"] .nr-hud-stack {grid-template-rows:minmax(102px,max-content) auto}
}
@media(max-height:510px) and (min-aspect-ratio:1/1){
  #route[data-input="touch"] .nr-hud-stack {top:calc(var(--y) + 43px);grid-template-rows:minmax(85px,max-content) auto}
}
@media(max-height:380px) and (min-aspect-ratio:1/1){
  #route[data-input="touch"] .nr-hud-stack .nr-radar {height:58px}
}
@media(max-height:370px) and (min-aspect-ratio:1/1){
  #route[data-input="touch"] .nr-hud-stack {grid-template-rows:auto}
  #route[data-input="touch"] .nr-hud-stack .nr-radar {position:absolute;top:50px;left:auto;right:calc(100% + 10px);bottom:auto}
}

/* The number over each landmark is the number on the rider's checklist. */
.nr-objectives{display:grid;gap:1px;padding:0;margin:5px 0 7px;list-style:none;width:max-content;max-width:100%}
.nr-objectives li{display:grid;grid-template-columns:23px minmax(0,1fr) 12px;align-items:center;gap:6px;min-height:20px;padding:2px 6px 2px 0;color:#f5f4f0;font:600 13px/1.1 var(--title);background:linear-gradient(90deg,#0a1016d9,#0a10168a 80%,transparent)}
.nr-check-num{display:grid;place-items:center;align-self:stretch;background:#a32231;color:#fff3f0;font:700 13px/1 var(--title);letter-spacing:.04em;text-shadow:none;border-left:2px solid transparent}
.nr-check-state{visibility:hidden;font:700 13px/1 var(--title);text-align:center}
.nr-objectives [data-status=current] .nr-check-num{border-left-color:#fff6eb;background:#dc2d3d}
.nr-objectives [data-status=done]{color:#a8b2b1}
.nr-objectives [data-status=done] .nr-check-num{background:#2c393a;color:#c6d3ce}
.nr-objectives [data-status=done] .nr-check-state{visibility:visible;color:#b7d9c8}
.nr-objectives[data-kind=drop] .nr-check-num{background:#73532e}
.nr-objectives[data-kind=drop] [data-status=current] .nr-check-num{background:#97662d}
#route[data-ride-stage=tricks] .nr-guide{border-left-color:#d73a48}
.nr-spot-field{position:absolute;inset:0;overflow:hidden;pointer-events:none}
.nr-spot-marker{position:absolute;display:grid;place-items:center;width:30px;height:29px;transform:translate(-50%,-100%) scale(var(--size,1));transform-origin:center bottom;border:1px solid #ff9e9f;border-radius:2px;background:#ae2132ed;color:#fff6eb;font:700 21px/.92 var(--title);letter-spacing:.02em;box-shadow:0 1px 3px #070c14ad;text-shadow:0 1px 2px #621721}
.nr-spot-marker::after{content:"";position:absolute;left:50%;top:100%;border-top:5px solid #eda6a7;border-left:4px solid transparent;border-right:4px solid transparent;transform:translateX(-50%)}
.nr-spot-marker[data-status=current]{background:#d62d3e;border-color:#ffe0d9}
.nr-spot-marker[data-status=current]::after{border-top-color:#ffe0d9}
.nr-spot-field[data-kind=drop] .nr-spot-marker{background:#664927ec;border-color:#f6ba75;text-shadow:0 1px 2px #523417}
.nr-spot-field[data-kind=drop] .nr-spot-marker::after{border-top-color:#f6ba75}
.nm-number-pin rect{fill:#bb2b3a;stroke:#f3b3b4;stroke-width:.43}
.nm-number-pin[data-active=true] rect{fill:#dc3547;stroke:#fff2db;stroke-width:.85}
.nm-number-pin text{fill:#fff;font:700 5.5px/1 var(--title)}
.nm-number-pin[data-done=true] rect{fill:#454e50;stroke:#93a1a0}

.nr-map-legend>span[data-kind=spot] i{background:#d83546}
.nr-pedals{grid-template-columns:repeat(4,minmax(36px,1fr));max-width:240px;width:50vw}
@media(max-width:600px){
  .nr-spot-marker{width:26px;height:25px;font-size:19px}
  .nr-objectives{margin:4px 0 5px}.nr-objectives li{min-height:19px;font-size:12px;gap:5px}
  .nr-pedals{min-width:158px;max-width:205px;width:52vw}
}
@media(max-height:500px) and (min-aspect-ratio:1/1){
  .nr-guide .nr-objectives{margin:3px 0 4px;gap:0}
  .nr-objectives li{min-height:17px;padding-top:1px;padding-bottom:1px;font-size:11px;grid-template-columns:21px minmax(0,1fr) 10px}
  .nr-check-num{font-size:12px}.nr-spot-marker{width:23px;height:22px;font-size:17px}
  #route[data-input=touch] .nr-guide-caption{margin-bottom:2px}
}

.nr-recap[data-linked=true] strong{font-size:clamp(24px,3vw,44px);line-height:.97}
.play-device-desktop .nr-recap{transition:none}
.play-device-desktop .nr-recap-title strong{font-size:clamp(28px,3.6vw,56px)}
.play-device-desktop .nr-recap[data-linked=true] strong{font-size:clamp(21px,2.65vw,39px)}
#route[data-input=touch] .nr-recap[data-linked=true] strong{font-size:clamp(23px,4.4vw,33px)}
.nm-apron{fill:#333c44;stroke:#465058;stroke-width:.8}

#route[data-yard-finish] :is(.nr-drive,.nr-nav) {visibility:hidden}
.nr-yard-payoff {position:absolute;left:var(--x);right:var(--r);bottom:var(--floor);width:fit-content;max-width:calc(100% - var(--x) - var(--r));padding:7px 12px 8px;border-left:2px solid #e8ceb0;background:linear-gradient(90deg,#070a10df,#070a10a6);color:var(--paper);animation:nr-yard-payoff .25s ease-out .55s both}
.nr-yard-payoff strong,.nr-yard-payoff span {display:block}
.nr-yard-payoff strong {font:600 clamp(22px,4vw,40px)/1.05 var(--title);letter-spacing:-.04em}
.nr-yard-payoff span {margin-top:3px;font:500 clamp(13px,2vw,16px)/1.3 var(--title)}
@keyframes nr-yard-payoff {from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.nr-yard-payoff{animation:none}}

.nr-scoreline>small {margin-bottom:2px;color:#e8d9be;font:600 11px/1 var(--mono);letter-spacing:.035em;text-transform:uppercase}
.nr-dispatch-stats {display:grid;grid-template-columns:1fr 1fr;gap:16px;max-width:380px}
.nr-dispatch-stats>div+div {border-left:1px solid var(--line);padding-left:16px}
.nr-dispatch-stats dd {font-size:clamp(35px,3.6vw,53px);white-space:nowrap}
.nr-dispatch-stats dd.nr-stat-record {margin-top:6px;color:var(--muted);font:500 12px/1.3 var(--mono)}
.nr-dispatch-stats dd.new-record {color:#ffda9d}

/* Mark the rideable line to the current drop on both district maps. */
[data-dispatch="true"] :is(.nm-main-line,.nm-roof-line){stroke:#65717a;stroke-width:1.05}
.nm-getaway-road,.nm-getaway-roof{fill:none;stroke-linecap:round;stroke-linejoin:round}
.nm-getaway-road{stroke:#eed4a1;stroke-width:2.2}
.nm-getaway-roof{stroke:#ffad60;stroke-width:2.1;stroke-dasharray:2.5 2.0}
.nm-blockade rect{fill:#689bdf;stroke:#dceaff;stroke-width:.6}

/* Keep trick actions clear of the steering hand. */
#night-overlay .nr-pedals{display:flex;align-items:flex-end;gap:10px;min-width:0;max-width:none;width:auto}
#night-overlay .nr-pedals button{width:var(--wheelie-size);height:var(--wheelie-size);flex:0 0 auto;border-radius:50%;font-size:12px}
#night-overlay .nr-pedals .nr-icon{width:21px;height:21px}
#night-overlay .nr-pedals button[data-pedal="jump"]{width:var(--trick-size);height:var(--trick-size);background:#edeae1e6;color:#171c21;border-color:#faf8efc7}
#night-overlay .nr-pedals button[data-pedal="jump"].active{background:#ffd193}
@media(max-width:360px){
  #night-overlay{--stick-size:min(148px,calc(100vw - var(--x) - var(--r) - var(--wheelie-size) - var(--trick-size) - 16px))}
  #night-overlay .nr-pedals{gap:8px}
}
.nr-run-clock{color:var(--paper);font:550 13px/1.2 var(--mono);font-variant-numeric:tabular-nums;letter-spacing:.035em}
/* Statistics scroll independently of the panel's two close controls. */
.nr-details-trigger {display:inline-flex;align-items:center;gap:5px;min-height:44px;padding:0 5px 0 0;margin:0 0 6px;background:transparent;border:0;color:var(--paper);font:600 14px/1.2 var(--title);text-decoration:underline;text-underline-offset:3px}
.nr-details-trigger .nr-icon {width:15px;height:15px}
.nr-modal[data-panel=run-details] {min-width:0;min-height:0;grid-template:minmax(0,1fr)/minmax(0,1fr);background:#040507d6}
.nr-modal[data-panel=run-details] .nr-dialog {display:flex;flex-direction:column;box-sizing:border-box;min-height:0;max-height:100%;overflow:hidden;width:min(100%,430px)}
.nr-modal[data-panel=run-details] .nr-dialog-head {flex:none;margin:0 0 6px}
.nr-modal[data-panel=run-details] .nr-dialog-head h2 {font-size:clamp(27px,5.5vw,36px)}
.nr-modal[data-panel=run-details] [data-act=dismiss] {min-width:44px;min-height:44px}
.nr-run-breakdown {min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:1px 4px;scrollbar-width:thin}
.nr-run-breakdown dl {margin:0}
.nr-run-breakdown dl>div {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:12px;border-bottom:1px solid #c9c8bb36;padding:8px 0}
.nr-run-breakdown dt {font:500 14px/1.3 var(--title);color:#d9d7cf}
.nr-run-breakdown dd {margin:0;font:650 17px/1.15 var(--title);color:#fff;font-variant-numeric:tabular-nums}
.nr-details-back {flex:none;align-self:start;min-width:78px;min-height:44px;margin-top:10px}

.nr-result{overflow-y:auto;pointer-events:auto;overscroll-behavior:contain;max-height:calc(100% - 68px)}
@media(max-height:500px){.nr-result{max-height:calc(100% - 56px)}}
.nr-route-pointer{position:absolute;top:calc(var(--y) + 6px);left:50%;transform:translateX(-50%);display:grid;justify-items:center;gap:2px;pointer-events:none;color:#fff2df;filter:drop-shadow(0 2px 3px #111a22);z-index:2}
.nr-route-pointer svg{display:block;width:53px;height:46px;overflow:visible}
.nr-route-pointer span{font:650 10px/1.1 var(--mono);text-transform:uppercase;letter-spacing:.09em;white-space:nowrap;text-shadow:0 1px 2px #000,0 1px 8px #070c12}
.nr-dispatch-stats{grid-template-columns:auto auto auto;max-width:550px}
.nr-dispatch-stats dd{font-size:clamp(21px,3.4vw,43px)}
@media(min-width:650px) and (min-height:520px){.nr-radar{width:128px;height:134px}}
@media(max-width:620px){.nr-route-pointer{top:calc(var(--y) + 46px)}.nr-route-pointer svg{width:35px;height:30px}.nr-route-pointer span{font-size:8px;max-width:85px;white-space:normal;text-align:center}.nr-dispatch-stats{gap:8px}.nr-dispatch-stats>div+div{padding-left:8px}}
@media(max-height:480px) and (min-width:621px){.nr-route-pointer svg{width:36px;height:31px}.nr-route-pointer span{font-size:8px}}
@media(min-width:650px) and (min-height:520px){
  #route[data-input=keyboard] .nr-speed{left:calc(var(--x) + 140px)}
  #route[data-ride-stage=delivery] .nr-feedback{top:calc(var(--y) + 76px)}
}
@media(min-width:621px) and (max-height:519px){
  #route[data-ride-stage=delivery] .nr-feedback{top:calc(var(--y) + 50px)}
}

/* Dispatch keeps the road clear. The map opens the complete district manifest. */
.nr-race-strip,.nr-open-route,.nr-race-callout{display:none}
#route[data-ride-mode=ride][data-ride-stage=delivery] .nr-open-route{display:flex}
#route[data-ride-mode=ride][data-ride-stage=delivery] :is(.nr-nav-left button span,.nr-nav-right button:not(.nr-open-route,.nr-sound),.nr-speed,.nr-keyline,.nr-place,.nr-hud-stack,.nr-spot-field){display:none}
#route[data-ride-mode=ride][data-ride-stage=delivery] .nr-guide{display:contents}
#route[data-ride-mode=ride][data-ride-stage=delivery] .nr-guide>:not(.nr-wheelie,.nr-charge){display:none}
#route[data-ride-mode=ride][data-ride-stage=delivery] .nr-nav .nr-link{width:44px;min-width:44px;height:44px;padding:0}
#route[data-ride-mode=ride][data-ride-stage=delivery] .nr-race-strip{
  position:absolute;top:var(--y);left:max(calc(var(--x) + 49px),calc(50% - 176px));right:max(calc(var(--r) + 100px),calc(50% - 176px));
  display:grid;grid-template-columns:1fr minmax(44px,1.25fr) 1fr;align-items:start;justify-items:center;column-gap:2px;
  min-height:44px;pointer-events:none;color:#f9f8f1;text-shadow:0 1px 3px #05070de6,0 2px 9px #070e17;
}
.nr-race-strip .nr-run-clock,.nr-run-parcels{align-self:start;margin-top:13px;font:650 clamp(11px,1.25vw,15px)/1.1 var(--mono);font-variant-numeric:tabular-nums;letter-spacing:0;white-space:nowrap}
.nr-race-strip .nr-run-clock{grid-column:1;grid-row:1}
.nr-run-parcels{grid-column:3;grid-row:1;display:inline-flex;gap:5px;align-items:center}
.nr-run-parcels .nr-icon{height:1.05em;width:1.05em}
.nr-race-strip .nr-route-pointer{position:static;transform:none;grid-column:2;grid-row:1;min-width:0;max-width:100%;gap:1px;text-align:center}
.nr-race-strip .nr-route-pointer svg{width:clamp(33px,4vw,47px);height:clamp(28px,3.3vw,40px)}
.nr-race-strip .nr-route-pointer span{min-width:0;max-width:100%;font:700 clamp(10px,.9vw,12px)/1.05 var(--title);letter-spacing:.035em;white-space:normal;text-wrap:balance;overflow-wrap:anywhere}
#route[data-ride-mode=ride][data-ride-stage=delivery] .nr-race-callout{
  position:absolute;display:grid;justify-items:center;left:50%;top:calc(var(--y) + 65px);width:min(88%,370px);transform:translateX(-50%);pointer-events:none;
}
#route[data-ride-stage=delivery] .nr-race-callout :is(.nr-feedback,.nr-searchlight){
  position:static;inset:auto;transform:none;margin:0;width:max-content;max-width:100%;text-align:center;padding:4px 8px;
  background:#101720e6;border-radius:3px;color:#eff5ff;font:700 15px/1.1 var(--title);letter-spacing:.025em;text-shadow:none;
}
#route[data-ride-stage=delivery] .nr-world-awards{clip-path:inset(calc(var(--y) + 87px) 0 0)}
.nr-race-callout:has(.nr-feedback:not([hidden])) .nr-searchlight{display:none}
#route[data-ride-stage=delivery] .nr-wheelie{position:absolute;left:50%;top:36%;transform:translate(-50%,-50%);justify-items:center;text-align:center}
#route[data-ride-stage=delivery][data-input=touch] .nr-wheelie{top:27%}
#route[data-ride-stage=delivery] .nr-charge{position:absolute;left:50%;bottom:23%;top:auto;transform:translateX(-50%);margin:0}
#route[data-ride-stage=delivery] .nr-race-callout .nr-searchlight{background:transparent;color:#e2ecf7;font:700 clamp(17px,2vw,25px)/.98 var(--title);text-shadow:0 1px 3px #081224;letter-spacing:-.012em}
.nr-rearview{position:absolute;top:calc(var(--y) + 55px);left:50%;width:clamp(130px,25vw,204px);transform:translateX(-50%);overflow:hidden;border-radius:6px 6px 12px 12px;background:#10171e;border:1px solid #e7edf16e;box-shadow:0 2px 10px #04080b91;pointer-events:none;text-align:center}
.nr-rearview[hidden]{display:none}
.nr-mirror-film{position:relative;width:100%;aspect-ratio:408/142;overflow:hidden}
.nr-mirror-film img{position:absolute;inset:0 auto auto 0;width:600%;height:300%;max-width:none}
.nr-rearview strong{display:block;padding:4px 5px 5px;color:#fff7df;background:#10171e;font:700 12px/1 var(--title);text-transform:uppercase;letter-spacing:.12em}
.nr-drive:has(.nr-rearview:not([hidden])) .nr-race-callout{visibility:hidden}
.nr-pause-tools{display:flex;gap:5px;flex-wrap:wrap;margin:16px 0 0}
.nr-pause-tools .nr-btn{font-size:12px;min-height:39px;padding:0 10px}
#nr-pause-ranked-rules {flex-basis:100%;margin:3px 0 0;font-size:13px;line-height:1.35}
.nr-pause-tools:has([data-act="start-ranked"][hidden]) #nr-pause-ranked-rules {display:none}

.nr-stage-tabs{flex-wrap:wrap}
#route[data-ride-stage=warehouse] .nr-guide{border-left-color:#d73a48}
@media(max-width:365px){
  .nr-race-strip .nr-run-clock,.nr-run-parcels{font-size:10px}
  .nr-run-parcels{gap:3px}
}
@media(max-height:500px) and (min-aspect-ratio:1/1){
  #route[data-ride-stage=delivery] .nr-wheelie{top:40%}
  .nr-rearview{width:140px}
  #route[data-ride-stage=delivery][data-input=touch] .nr-wheelie{
    grid-template-columns:auto auto;align-items:center;gap:0 4px;
  }
  #route[data-ride-stage=delivery][data-input=touch] .nr-wheelie-context{grid-column:1/-1}
  #route[data-ride-stage=delivery][data-input=touch] .nr-rearview{
    left:auto;right:var(--r);transform:none;
  }
  #route[data-ride-stage=delivery][data-input=touch] .nr-drive:has(.nr-wheelie:not([hidden])) .nr-race-callout{
    left:var(--x);width:calc(50% - var(--x) - 60px);transform:none;justify-items:start;
  }
}
@media(orientation:portrait){
  #route[data-ride-stage=delivery][data-input=touch] .nr-drive:has(.nr-rearview:not([hidden])) .nr-wheelie{
    top:max(27%,calc(var(--y) + 126px + clamp(130px,25vw,204px) * .348));
  }
  /* The practice checklist is much taller than the dispatch strip. Give the
     live distance its own short row above the checklist on a narrow phone. */
  #route[data-input=touch]:not([data-ride-stage=delivery]) .nr-wheelie{
    position:fixed;left:50%;top:calc(var(--y) + 47px);transform:translateX(-50%);
    grid-auto-flow:column;align-items:center;gap:5px;
  }
  #route[data-input=touch]:not([data-ride-stage=delivery]) .nr-wheelie strong{font-size:27px}
  #route[data-input=touch]:not([data-ride-stage=delivery]) .nr-wheelie-context{margin-top:0}
  #route[data-input=touch]:not([data-ride-stage=delivery]) :is(.nr-guide,.nr-hud-stack){top:calc(var(--y) + 79px)}
}

/* Keep the complete picture visible, with both navigation controls on the photograph. */
#route .nr-brief {
  --paper:#17191c;--ink:#f1f0ec;
  --gutter:var(--brief-gutter);
  --gap:clamp(15px,2.6vh,28px);
  --photo-h:calc(var(--brief-photo-width) * 1143 / 2048);
  --title:"Helvetica Neue",Helvetica,Arial,sans-serif;--condensed:"Barlow Condensed","Arial Narrow",var(--title);
  position:absolute;inset:0;display:none;width:100%;height:100%;margin:0;padding:0;max-width:none;
  overflow:hidden;box-sizing:border-box;pointer-events:auto;text-align:left;text-shadow:none;
  background:transparent;color:var(--ink);font:16px/1.35 var(--title);-webkit-tap-highlight-color:transparent;
}
#route[data-ride-mode=menu] .nr-brief {display:block}
#route[data-ride-mode=menu] #night-overlay .nr-shade {display:none}
#route .nr-brief::before {content:"";position:absolute;inset:0;background:var(--paper);opacity:var(--brief-paper,1);pointer-events:none}
#route .nr-brief-back {
  position:absolute;z-index:1;top:var(--y);left:calc(var(--brief-photo-left) + var(--corner-inset));
  display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;
  background:transparent;color:white;touch-action:manipulation;
}
#route .nr-brief-back:is(:hover,:focus-visible,:active) {color:#fff}
#route .nr-brief-back:focus-visible {outline:1px solid currentColor;outline-offset:-3px}
#route .nr-brief-photo {
  position:absolute;top:0;left:var(--brief-photo-left);width:var(--brief-photo-width);aspect-ratio:2048 / 1143;
  margin:0;padding:0;pointer-events:none;transform-origin:0 0;
}
#route[data-ride-mode=menu] :is(.nr-brief-back,.nr-context-sound) svg {filter:drop-shadow(0 1px 2px #101319)}
#route #ride-brief-art {display:block;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;object-fit:contain;object-position:center}
#route .nr-brief-heading,#route .nr-brief-panel {position:absolute;box-sizing:border-box;top:calc(var(--photo-h) + var(--gap));min-width:0;margin:0}
#route .nr-brief-heading {left:max(var(--gutter),calc(50% - 57vh));width:min(34%,44vh)}
#route .nr-brief-panel {right:max(var(--gutter),calc(50% - 57vh));width:min(53%,62vh);bottom:max(12px,env(safe-area-inset-bottom));display:flex;flex-direction:column;min-height:0}
.nr-brief-info {min-height:0;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin}
#route .nr-brief h1 {margin:0;font:600 clamp(40px,4.6vw,78px)/.96 var(--title);text-transform:none;letter-spacing:-.055em;text-wrap:balance}
.nr-brief-copy {margin:14px 0 20px;max-width:34ch;color:#d7d8d7;font-size:clamp(15px,1.22vw,18px);line-height:1.4}
.nr-brief .nr-ranked-purpose {display:none;flex-shrink:0;margin:12px 0 0;color:#e4e3df;font-size:clamp(14px,1.1vw,17px);line-height:1.35}
.nr-brief[data-load-state=ready]:has(.nr-brief-replay:not([hidden])) .nr-ranked-purpose {display:block}
.nr-brief[data-load-state=ready]:has(.nr-brief-replay:not([hidden])) .nr-brief-action {margin-top:7px}
.nr-ranked-prize {font-weight:700;color:#fff}
.nr-ranked-purpose .nr-ranked-prize {display:block}
.nr-brief-controls {list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;padding:0}
.nr-brief-controls li {display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.nr-brief-controls strong {display:block;margin:8px 0 4px;text-transform:uppercase;letter-spacing:.025em;font:700 clamp(15px,1.2vw,18px)/1 var(--condensed)}
.nr-brief-controls small {font:400 clamp(12px,.86vw,14px)/1.35 var(--title);color:#d0d1d1}
.nr-slide-cue {display:inline-flex;align-items:center;gap:.25em;white-space:nowrap}
.nr-brief-glyph {height:38px;display:flex;align-items:center;justify-content:flex-start;color:var(--ink)}
.nr-brief-glyph svg {width:38px;height:38px}
.nr-brief-glyph kbd {
  display:inline-grid;place-content:center;min-width:26px;height:24px;padding:0 5px;
  box-sizing:border-box;border:1px solid #adaeaa;border-bottom-width:2px;border-radius:4px;
  font:700 14px/1 var(--title);color:var(--ink);
}
.nr-brief-glyph .nr-wasd {display:grid;grid-template-columns:repeat(3,15px);gap:2px}
.nr-wasd kbd {height:15px;min-width:0;padding:0;border-radius:3px;font-size:11px}
.nr-wasd kbd:first-child {grid-column:2}
.nr-wasd kbd:nth-child(2) {grid-column:1}
.nr-brief .nr-touch-guide {display:none}
#route[data-input=touch] .nr-brief .nr-key-guide {display:none}
#route[data-input=touch] .nr-brief .nr-touch-guide {display:block}
@media (any-pointer:coarse) {
  #route:not([data-input]) .nr-brief .nr-key-guide {display:none}
  #route:not([data-input]) .nr-brief .nr-touch-guide {display:block}
}
.nr-brief-action {display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(46px,auto);align-items:center;gap:clamp(10px,2vw,20px);min-height:48px;margin-top:16px;flex-shrink:0}
#route .nr-brief-action :is(.nr-primary,.nr-brief-progress) {min-width:0}
.nr-brief .nr-primary {
  width:100%;padding:9px 18px;min-height:46px;box-sizing:border-box;cursor:pointer;
  border:1px solid #eee9df;border-radius:3px;background:#f1ede6;color:#16171b;
  font:700 20px/1 var(--title);letter-spacing:.03em;text-transform:uppercase;
}
.nr-brief .nr-primary:focus-visible {outline:2px solid #e96b60;outline-offset:3px}
.nr-brief:focus {outline:none}
.nr-brief[data-load-state=loading] [data-act=start],.nr-brief:not([data-load-state=loading]) .nr-brief-progress {display:none}
.nr-progress-label {display:flex;justify-content:space-between;margin:0 0 8px;color:var(--ink);text-transform:uppercase;font:700 15px/1 var(--title);letter-spacing:.055em;font-variant-numeric:tabular-nums}
.nr-brief-progress progress {
  display:block;width:100%;height:3px;appearance:none;-webkit-appearance:none;
  overflow:hidden;border:0;border-radius:0;background:#494a4e;color:#ff0000;accent-color:#ff0000;
}
.nr-brief-progress progress::-webkit-progress-bar {background:#494a4e}
.nr-brief-progress progress::-webkit-progress-value {background:#ff0000}
.nr-brief-progress progress::-moz-progress-bar {background:#ff0000}
.nr-brief [data-field=load-error] {margin:9px 0 0;color:#ffb7aa;font-size:14px}
@media (orientation:portrait) {
  #route {--brief-photo-width:100vw;--brief-photo-left:0px}
  #route .nr-brief {overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
  #route .nr-brief-back {position:sticky;left:auto;margin:0 0 -44px var(--corner-inset)}
  #route .nr-brief-photo {position:relative;left:0;top:0;margin:0}
  #route .nr-brief-heading,#route .nr-brief-panel {position:relative;inset:auto;width:auto;max-width:620px;margin-inline:auto;padding-inline:var(--gutter)}
  #route .nr-brief-heading {padding-top:var(--gap)}
  #route .nr-brief-panel {padding-top:var(--gap);padding-bottom:max(18px,env(safe-area-inset-bottom))}
  #route .nr-brief h1 {font-size:clamp(32px,8.8vw,62px)}
  .nr-brief-copy {margin:9px 0 0}
  .nr-brief-action {margin-top:16px;gap:8px 12px}
}
@media (orientation:portrait) and (max-height:650px) {
  #route .nr-brief {--gap:9px}
  #route .nr-brief-panel {padding-bottom:max(9px,env(safe-area-inset-bottom))}
  .nr-brief-glyph,.nr-brief-glyph svg {height:32px}
  .nr-brief-copy,.nr-brief .nr-ranked-purpose {font-size:14px;margin-top:6px}
  .nr-brief-action {margin-top:10px}
  .nr-brief[data-load-state=ready]:has(.nr-brief-replay:not([hidden])) .nr-brief-action {grid-template-columns:1fr 1fr}
  #route .nr-brief .nr-brief-replay {grid-column:2;grid-row:1}
  #route .nr-brief :is(.nr-primary,.nr-brief-replay) {padding:5px 6px;font-size:15px}
}
@media (orientation:landscape) {
  .nr-brief[data-load-state=ready]:has(.nr-brief-replay:not([hidden])) .nr-brief-action {grid-template-columns:1fr 1fr}
  #route .nr-brief .nr-brief-replay {grid-row:1;grid-column:2}
}
@media (orientation:landscape) and (max-height:540px) {
  #route {--brief-photo-width:min(54vw,133vh,calc(100vw - 288px));--brief-photo-left:0px}
  #route[data-ride-mode=menu] .nr-brief {
    --gutter:max(12px,env(safe-area-inset-right));display:grid;grid-template-columns:var(--brief-photo-width) minmax(0,1fr);
    grid-template-rows:auto minmax(0,1fr);column-gap:var(--gutter);row-gap:10px;padding:0 var(--gutter) max(8px,env(safe-area-inset-bottom)) 0;
  }
  #route .nr-brief-heading,#route .nr-brief-panel {position:relative;inset:auto;grid-column:2;width:auto}
  #route .nr-brief-heading {grid-row:1;padding-top:max(8px,env(safe-area-inset-top))}
  #route .nr-brief-panel {grid-row:2}
  #route .nr-brief h1 {font-size:clamp(26px,6.6vh,40px)}
  .nr-brief-copy {margin:7px 0 0;font-size:14px}
  .nr-brief-glyph,.nr-brief-glyph svg {height:27px}
  .nr-brief-controls strong {margin:5px 0 3px}
  .nr-brief-action {margin-top:8px;gap:4px 8px}
  .nr-brief .nr-ranked-purpose {font-size:13px;margin-top:5px}
  #route .nr-brief :is(.nr-primary,.nr-brief-replay) {font-size:15px;padding:4px 6px}
}
@media (orientation:landscape) and (max-height:350px) {
  #route .nr-brief-panel {position:static}
  #route .nr-brief-info {
    position:absolute;top:calc(var(--photo-h) + 10px);left:var(--gutter);
    width:calc(var(--brief-photo-width) - 2 * var(--gutter));
  }
  #route .nr-brief-action {margin-top:0}
}
.nr-quality {display:inline-flex;align-items:center;gap:7px;font:700 14px/1 var(--title);color:var(--muted);pointer-events:auto}
.nr-quality select {min-height:40px;max-width:100%;padding:5px 8px;color:#fff5e7;background:#1e242b;border:1px solid #b7bec55c;border-radius:3px;font:inherit;cursor:pointer}
.nr-pause-sheet .nr-quality {margin:0 0 15px;gap:13px}
.nr-quality select:focus-visible {outline:2px solid var(--amber);outline-offset:2px}
.nr-modal[data-panel=pause] {place-items:end start;background:transparent}
.nr-modal[data-panel=pause] .nr-dialog {width:min(405px,100%);background:#000;border-color:#ffffff36;padding:13px 17px 16px}
.nr-modal[data-panel=pause] .nr-dialog-head {margin-bottom:4px}
.nr-modal[data-panel=pause] .nr-dialog h2 {font-size:30px}
.nr-pause-sheet>p {font-size:13px;margin:0 0 8px}

.nr-modal[data-panel=pause] .nr-pause-tools {margin-top:8px}
@media (max-height:540px) and (min-aspect-ratio:1/1) {
  .nr-modal[data-panel=pause] .nr-dialog {max-width:min(48%,380px)}
  .nr-modal[data-panel=pause] .nr-pause-tools .nr-btn {font-size:11px;padding:0 8px}
}
#route[data-ride-mode=intro] .nr-shade {background:linear-gradient(0deg,#050810a8,transparent 25%)}
#route[data-ride-mode=intro] :is(.nr-film,.nr-shade) {opacity:var(--nr-film-opacity,1)}
.nr-ride-takeover {display:none}
#route[data-ride-from-film] .nr-ride-takeover {
  position:absolute;inset:0;z-index:4;display:grid;place-items:center;pointer-events:none;
  --cue-duration:.92s;animation:nr-takeover-end var(--cue-duration) step-end both;
}
.nr-ride-takeover::before {
  content:"";position:absolute;inset:0;background:#000;
  animation:nr-street-reveal .41s ease-in-out both;
}
.nr-ride-takeover span {
  position:relative;align-self:start;top:32%;font:550 clamp(34px,5vw,60px)/1 var(--title);
  letter-spacing:-.065em;color:#fff5e4;text-shadow:0 1px 5px #080a0d;
  animation:nr-takeover-go var(--cue-duration) cubic-bezier(.2,.7,.25,1) both;
}
@keyframes nr-street-reveal {from{opacity:var(--nr-takeover-black,0)}to{opacity:0}}
@keyframes nr-takeover-go {0%{opacity:0;transform:translateY(var(--cue-lift,4px))}18%,68%{opacity:1;transform:none}100%{opacity:0;transform:none}}
@keyframes nr-takeover-end {from{visibility:visible}to{visibility:hidden}}
#route[data-ride-from-film] :is(.nr-nav,.nr-drive,.nr-shade) {animation:nr-ride-arrive .55s cubic-bezier(.3,.05,.3,1) backwards}
@keyframes nr-ride-arrive {from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){
  #route[data-ride-from-film] :is(.nr-nav,.nr-drive,.nr-shade),.nr-ride-takeover::before {animation-duration:.12s}
  .nr-ride-takeover span {--cue-lift:0px;animation-timing-function:linear}
}
.nr-film {position:absolute;inset:0;pointer-events:none;color:#fff5e0}
.nr-film:focus {outline:none}
.nr-film-actions {position:absolute;left:var(--corner-inset);top:var(--y);pointer-events:none}
.nr-film-actions button {
  position:relative;isolation:isolate;display:grid;place-items:center;min-width:44px;height:44px;padding:0 8px;
  background:transparent;color:#fff5e0;border:0;pointer-events:auto;font:550 13px/1 var(--title);letter-spacing:-.02em;
}
.nr-film-actions button::before {
  content:"";position:absolute;z-index:-1;inset:9px 0;background:#080b11b8;border:1px solid #fff3d65e;border-radius:3px;
}
.nr-film p {
  position:absolute;left:max(5%,calc(env(safe-area-inset-left) + 1rem));
  bottom:max(6%,calc(env(safe-area-inset-bottom) + .875rem));margin:0;max-width:84%;
  font:600 clamp(1.06rem,1.55vw,1.65rem)/1.22 var(--title);letter-spacing:-.01em;
  color:#fff9ed;text-shadow:0 1px 3px #070b12,0 2px 8px #070b12;
}
.nr-film:has(p:not(:empty))::before {
  content:"";position:absolute;inset:63% 0 0;
  background:linear-gradient(transparent,rgba(6,9,14,.56));
}
#night-overlay .nr-film[data-opening=true] p {
  font-size:clamp(.9rem,1.25vw,1.25rem);letter-spacing:.065em;
}

.nr-overtime-metric {display:flex;align-items:center;gap:10px;margin:14px 0 8px;color:#cac7c2;font:12px/1.2 var(--mono)}
.nr-overtime-metric[hidden],.nr-board-heat[hidden] {display:none}
.nr-overtime-metric select {min-height:36px;border:1px solid #eee9dc42;border-radius:3px;background:#14191f;color:#f5f1e9;padding:0 8px;font:600 13px/1.2 var(--title)}

/* Screen readers announce a lap change once. The visual HUD keeps time separately. */
.nr-receipt-announcement {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
#route[data-ride-mode=ranked-bail] .nr-shade {background:transparent}
#route[data-ranked-result] .nr-shade {background:linear-gradient(75deg,#090c11e8,transparent 64%);animation:nr-result-arrive .48s ease-out both}
#route[data-ranked-result] .nr-result {animation:nr-result-arrive .48s ease-out both;text-shadow:0 1px 4px #07090f}
#route[data-ranked-result] .nr-result h1 {font-size:clamp(45px,8vh,82px)}
#route[data-ranked-result] .nr-result-body > p:not(.nr-kicker) {margin:6px 0 13px}
#route[data-ranked-result] .nr-brief-actions {gap:6px;flex-wrap:wrap}
#route[data-ranked-result] .nr-brief-actions button {font-size:14px;min-height:43px;padding:6px 12px}
@keyframes nr-result-arrive {from{opacity:0}to{opacity:1}}
.nr-restart-card {
  position:absolute;inset:0;z-index:9;display:grid;place-items:center;
  background:#eeeae2;pointer-events:auto;
}
.nr-restart-card img {width:clamp(60px,11vmin,98px);height:auto;filter:brightness(0);display:block}
#route[data-ranked-restart=cover] .nr-restart-card {animation:nr-restart-cover .19s ease-out both}
#route[data-ranked-restart=reveal] .nr-restart-card {animation:nr-restart-reveal .32s ease-in-out both}
@keyframes nr-restart-cover {from{opacity:0}to{opacity:1}}
@keyframes nr-restart-reveal {from{opacity:1}to{opacity:0}}
@media(max-width:620px) and (orientation:portrait){
  #route[data-ranked-result] .nr-shade {background:linear-gradient(0deg,#0c0e13f5 10%,#0c1018d9 33%,#0c101880 52%,transparent 74%)}
}
@media(max-height:500px) and (min-aspect-ratio:1/1){
  #route[data-ranked-result] .nr-result{max-height:calc(100% - 19px);bottom:var(--floor)}
  #route[data-ranked-result] .nr-result h1 {font-size:38px}
}
@media(prefers-reduced-motion:reduce){
  #route[data-ranked-result] :is(.nr-result,.nr-shade),#route[data-ranked-restart] .nr-restart-card{animation:none}
  #route[data-ranked-restart] .nr-restart-card {background:#242429}
  #route[data-ranked-restart] .nr-restart-card img {filter:none}
}

.nr-race-strip .nr-route-pointer span,.nr-race-callout .nr-searchlight,.nr-recap-title,.nr-run-parcels,.nr-rearview strong,.nr-objectives li,.nr-brief-glyph kbd {font-family:var(--condensed)}
.nr-brief-progress progress {height:4px}
.nr-map-legend span.nr-route-key i {width:17px;height:3px;transform:none;background:#f2f2ed}
.nr-map-legend span.nr-rider-key i {width:9px;height:11px;transform:none;border-radius:0;background:#ff3741;clip-path:polygon(50% 0,100% 100%,50% 77%,0 100%)}
.nr-overview {background:#14191d}
.nr-overview .nm-carriageway {fill:#47515a;stroke:#71808b;stroke-width:.7;stroke-linejoin:round}
.nr-overview .nm-block {fill:#2d353c;stroke:#1b2126;stroke-width:.75}
.nr-overview .nm-garden {fill:#33443d;stroke:#596458;stroke-width:.65}
.nr-overview .nm-river {fill:#263e4a}
.nr-overview .nm-ramp {fill:#66726c;stroke:#343c37;stroke-width:.6}
.nr-overview .nm-plan-gate {stroke:#c77769;stroke-width:1.4;stroke-dasharray:2 1}
.nr-overview .nm-alternative,.nr-overview .nm-route {fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.nr-overview .nm-alternative {stroke:#818384;stroke-width:2;stroke-dasharray:3 5}
.nr-overview .nm-route {stroke:#f4f4ee;stroke-width:3}
.nr-overview .nm-driver {fill:#ff3741;stroke:#100d0e;stroke-width:1.25}

.nr-earned-patch[hidden] {display:none}
.nr-earned-patch {display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;font-size:.9rem}
.nr-earned-patch strong,.nr-earned-patch small {display:block}
.nr-earned-patch small {margin-top:.2rem;color:#c4c4c4}
.nr-earned-patch .nr-btn {min-height:38px;padding:.4rem .75rem}
.nr-earned-patch img {height:1.6em;width:1.6em;object-fit:contain}

/* Station uses the same medium-weight, closely tracked heading for its
   signature. Play scales it to each panel, preserving the authored casing. */
#route .nr-brief h1,#night-overlay .nr-result h1,#night-overlay .nr-dialog h2 {
  font-family:var(--title);font-weight:550;letter-spacing:-.065em;text-transform:none;
}
#route .nr-brief .nr-primary,#night-overlay .nr-brief-actions .nr-btn,#night-overlay .nr-pause-tools .nr-btn {
  font-family:var(--title);font-weight:550;letter-spacing:-.02em;text-transform:none;
}

.nr-race-strip .nr-run-timing {grid-column:1;grid-row:1;display:grid;justify-items:start;align-self:start;margin-top:13px;font:650 clamp(11px,1.25vw,15px)/1.1 var(--mono);font-variant-numeric:tabular-nums}
.nr-race-strip .nr-run-timing:has([data-field=run-lap]:not([hidden])) {margin-top:5px;row-gap:2px}
.nr-race-strip .nr-run-timing .nr-run-clock {grid-column:auto;grid-row:auto;margin:0}
.nr-ranked-entry {margin:10px 0 14px;padding:10px 12px;border:1px solid #777;background:#13151bee;color:white;text-shadow:none}
.nr-ranked-entry[hidden],.nr-ranked-entry form[hidden] {display:none}
.nr-ranked-entry fieldset {min-width:0;margin:0;padding:0;border:0}
.nr-ranked-entry legend {padding:0;font:700 17px/1.2 var(--title)}
.nr-ranked-entry fieldset>p {margin:4px 0 10px;font-size:13px;line-height:1.3}
.nr-claim-fields {display:grid;grid-template-columns:1fr 1.2fr;gap:8px}
.nr-claim-fields label {min-width:0;font-size:13px;font-weight:600}
.nr-claim-fields input {display:block;box-sizing:border-box;width:100%;min-width:0;min-height:38px;margin-top:3px;border:1px solid #95989c;border-radius:2px;padding:6px 7px;color:white;background:#07090d;font:400 16px/1.2 var(--title)}
.nr-claim-fields input[aria-invalid=true] {border-color:#ffaea4}
.nr-claim-fields small {display:block;color:#ffb6aa;font:400 12px/1.3 var(--title)}
.nr-claim-fields small:not(:empty) {margin-top:4px}
.nr-ranked-entry .nr-claim-submit {min-height:40px;margin-top:8px}
.nr-claim-status {margin:0;font-size:14px;line-height:1.35}
.nr-ranked-entry form:not([hidden])+.nr-claim-status:not(:empty) {margin-top:8px}
#route[data-ranked-result] .nr-result>.nr-brief-actions {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:5px}
#route[data-ranked-result] .nr-result>.nr-brief-actions button {min-width:0;padding:5px 3px;font-size:clamp(12px,3.3vw,14px);line-height:1.1;white-space:normal}
#route[data-ranked-result] [data-act=continue] .nr-icon {display:none}
.nr-race-strip .nr-run-timing [data-field=run-lap],
.nr-race-strip .nr-run-timing:has([data-field=run-lap]:not([hidden])) .nr-run-clock {font-size:clamp(.78rem,1.25vw,.94rem)}


/* Keep navigation outside the scrollable summary, including on zoomed screens. */
#route[data-ride-mode=result] .nr-result {container-type:inline-size;display:flex;flex-direction:column;width:min(33rem,calc(100% - var(--x) - var(--r)));min-width:0;max-height:calc(100% - var(--floor) - max(12px,env(safe-area-inset-top)));overflow:visible}
.nr-result:focus {outline:none}
#route[data-ride-mode=result] .nr-result h1 {max-width:100%;margin:0;padding:0 0 .08em;font-size:clamp(1.9rem,14cqi,4rem);line-height:1.03;overflow-wrap:anywhere}
#route[data-ride-mode=result] .nr-result-body {display:block;min-height:0;min-width:0;flex:0 1 auto;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;scroll-padding:6px;padding:2px 6px 2px 2px;scrollbar-width:thin}
#route[data-ride-mode=result] .nr-result>.nr-brief-actions {flex:0 0 auto;padding-top:7px}
.nr-result-body:focus-visible,.nr-run-breakdown:focus-visible {outline:1px solid var(--paper);outline-offset:-1px}
#route .nr-result .nr-stats {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,8.25rem),1fr));gap:12px;max-width:100%;margin:.6rem 0}
#route .nr-result .nr-stats>div {min-width:0;border:0;padding:0}
#route .nr-result .nr-stats :is(dt,dd) {white-space:normal;overflow-wrap:anywhere;line-height:1.15}
#route .nr-result .nr-stats dd:not(.nr-stat-record) {font-size:clamp(1.2rem,6.3cqi,2.05rem)}
.nr-result .nr-brief-actions button,.nr-result .nr-ranked-entry,.nr-result .nr-claim-status {min-width:0;overflow-wrap:anywhere}
.nr-claim-fields {grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}
.nr-run-breakdown dl>div {grid-template-columns:minmax(0,1fr) minmax(0,auto)}
.nr-run-breakdown :is(dt,dd) {overflow-wrap:anywhere;min-width:0}
@container (max-width:17rem){.nr-result .nr-claim-fields {grid-template-columns:minmax(0,1fr)}}
.nr-brief-replay {grid-column:1;grid-row:2;min-height:44px;padding:5px 8px;color:var(--ink);background:transparent;border:1px solid #666;border-radius:3px;font:600 15px/1.2 var(--title)}
.nr-brief-replay[hidden] {display:none}
.nr-brief:not([data-load-state=ready]) .nr-brief-replay {display:none}
#route[data-ranked-result] .nr-ranked-highlight {margin:0 0 12px;font:650 clamp(17px,3.5vw,23px)/1.15 var(--title);color:#f9e7c7}

.nr-free-share {min-width:0;margin:8px 0;padding:10px 12px;border:1px solid #666}
.nr-free-share[hidden] {display:none}
.nr-free-share legend {padding:0 4px;font-weight:650}
.nr-free-share label {display:block;font-size:14px}
.nr-free-share input[type=text] {display:block;width:100%;box-sizing:border-box;min-height:38px;margin:3px 0;padding:5px 7px;font-size:16px}
.nr-free-share .nr-share-opt {display:flex;align-items:center;gap:6px;min-height:40px}
.nr-free-share p {margin:0;font-size:13px}

.nr-review-permission{display:flex;align-items:center;gap:.55rem;color:#dcdad5;font:400 .86rem/1.35 var(--nr-ui,sans-serif);cursor:pointer;margin:.55rem 0}
.nr-review-permission input{flex:none;width:1.1rem;height:1.1rem;margin:0;accent-color:#eee}
