/* OSP Arcade game shell. Simulation, scenery and effects remain in the game. */
body.osp-interface[data-osp-mode]{--game-bg:#0b0e12;--game-panel:#171c23;--game-line:#ffffff1a;--game-text:#f4f5ee;--game-muted:#abb3bd;--game-lime:#c9fa70;--mode-glow:#72e2df;--mode-rgb:114,226,223;font-family:var(--osp-body);color:var(--game-text);background:var(--game-bg);font-synthesis:none}
body.osp-interface[data-osp-mode=rift]{--mode-glow:#bba0fa;--mode-rgb:187,160,250}
body.osp-interface[data-osp-mode=tetherline]{--mode-glow:#ffb293;--mode-rgb:255,178,147}
.osp-interface[data-osp-mode] [hidden],.osp-interface[data-osp-mode] .hidden{display:none!important}
.osp-interface[data-osp-mode] :is(a,button){font-family:var(--osp-body);touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.osp-interface[data-osp-mode] :is(button,a,input):focus-visible{outline:2px solid var(--game-lime);outline-offset:4px}
.osp-interface[data-osp-mode] button:disabled{cursor:default;opacity:.5}
.osp-interface[data-osp-mode] [data-osp-icon]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;pointer-events:none;line-height:1}
.osp-interface[data-osp-mode] .osp-glyph{width:21px;height:21px}
/* Familiar, quiet active-play navigation. */
body.osp-interface.flight-page .flight-header{height:72px;min-height:72px;padding:10px max(22px,env(safe-area-inset-left));gap:16px;background:var(--game-bg);border:0;border-bottom:1px solid var(--game-line);box-shadow:none}
.osp-interface[data-osp-mode] :is(.back-base,.home-link){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 14px;border:1px solid var(--game-line);border-radius:12px;background:var(--game-panel);color:var(--game-text);font:650 12px/1 var(--osp-body);letter-spacing:0;text-decoration:none;white-space:nowrap}
.osp-interface[data-osp-mode] :is(.back-base,.home-link)>span{font:inherit;color:inherit}
.osp-interface[data-osp-mode] :is(.back-base,.home-link):hover{background:#252d36;border-color:#ffffff3b}
body.osp-interface.flight-page .flight-title{font:750 16px/1.2 var(--osp-display);letter-spacing:-.2px;color:var(--game-text)}
body.osp-interface.flight-page .flight-title>span{display:block;margin-top:4px;color:var(--game-muted);font:500 10px/1.3 var(--osp-body);letter-spacing:0;text-align:left}
body.osp-interface.flight-page .flight-actions{display:flex;gap:6px;margin-left:auto;align-items:center;flex-shrink:0}
body.osp-interface.flight-page .icon-button,.osp-interface[data-osp-mode=tetherline] .hud-actions button,body.osp-interface[data-osp-mode] .osp-music-toggle{display:grid;place-items:center;flex-shrink:0;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--game-line);border-radius:12px;background:var(--game-panel);color:var(--game-text);font-size:0;box-shadow:none;backdrop-filter:none}
body.osp-interface[data-osp-mode] :is(.icon-button,.hud-actions button,.osp-music-toggle):hover{background:#29323d;border-color:#ffffff3b}
body.osp-interface.flight-page #pause-button{font-size:0}
body.osp-interface.flight-page[data-phase=intro] #pause-button,body.osp-interface.flight-page[data-phase=result] #pause-button,body.osp-interface.flight-page[data-phase=connecting] #pause-button{display:none}
body.osp-interface.flight-page .flight-hud{top:16px;left:22px;right:22px;gap:20px;align-items:flex-start}
body.osp-interface.flight-page .sector-label .eyebrow{font:650 9px/1.3 var(--osp-body);letter-spacing:.7px;color:var(--mode-glow);margin-bottom:5px}
body.osp-interface.flight-page .sector-label strong{font:650 12px/1.3 var(--osp-display);letter-spacing:0;color:var(--game-text)}
body.osp-interface.flight-page .mission-progress{width:180px;margin-left:auto;padding:10px 12px;border:1px solid var(--game-line);border-radius:12px;background:#0b0e12d9}
body.osp-interface.flight-page .progress-head{align-items:center;font:600 9px/1.2 var(--osp-body);letter-spacing:.4px;color:var(--game-muted);margin-bottom:7px}
body.osp-interface.flight-page .progress-head b{font-size:19px;font-weight:750;color:var(--game-text);letter-spacing:-.5px}
body.osp-interface.flight-page .progress-track{height:3px;background:#ffffff1f}
body.osp-interface.flight-page .progress-track i{background:var(--mode-glow);box-shadow:none}
body.osp-interface.flight-page .progress-track>span,body.osp-interface.flight-page .capsule-status{display:none}
body.osp-interface.flight-page:is([data-phase=intro],[data-phase=connecting],[data-phase=paused],[data-phase=result]) .flight-hud{visibility:hidden}
/* Gate on the real overlay, keeping the play surface the same size on Resume. */
body.osp-interface.flight-page:is(:has(#mission-overlay:not(.hidden)),:has(dialog[open])) :is(.flight-controls,.flight-hud,.countdown,.sector-toast,.relay-charge){visibility:hidden;pointer-events:none}
body.osp-interface[data-osp-mode=rift] .rift-statusbar{position:absolute;top:88px;left:22px;right:22px;height:auto;background:none;z-index:3}
/* One concise launch panel; focused pause and result cards. */
body.osp-interface.flight-page .mission-overlay{padding:24px;display:flex;align-items:center;justify-content:center;overflow:auto;background:#0b0e1275;backdrop-filter:none}
body.osp-interface.flight-page .mission-dialog,.osp-interface[data-osp-mode=tetherline] .run-panel{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:0 20px;align-items:center;width:min(710px,100%);max-width:710px;max-height:100%;padding:30px!important;margin:0;border:1px solid #ffffff24!important;border-radius:20px 12px 20px 12px;background:var(--game-panel)!important;box-shadow:0 18px 70px #0005!important;overflow:auto;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;isolation:isolate;animation:none}
.osp-interface[data-osp-mode] .osp-lounge-copy{grid-column:1;grid-row:1;position:relative;z-index:1;padding:0}
.osp-interface[data-osp-mode] .osp-lounge-copy .eyebrow{margin:0 0 12px;color:var(--mode-glow);font:700 10px/1.4 var(--osp-body);letter-spacing:.8px;text-transform:uppercase}
.osp-interface[data-osp-mode] .osp-lounge-copy :is(h1,h2){margin:0 0 12px;font:800 clamp(30px,4vw,43px)/1.05 var(--osp-display);letter-spacing:-1.3px;color:var(--game-text);text-shadow:none}
.osp-interface[data-osp-mode] .osp-lounge-copy :is(h1,h2) em{font:inherit;font-style:normal;color:inherit;text-shadow:none}
.osp-interface[data-osp-mode] .osp-lounge-copy .dialog-description,.osp-interface[data-osp-mode=tetherline] #panel-copy{max-width:45ch;margin:0;color:var(--game-muted);font:450 14px/1.65 var(--osp-body);letter-spacing:0}
.osp-interface[data-osp-mode] .osp-mode-portrait{grid-column:2;grid-row:1/3;position:relative;align-self:center;display:grid;place-items:center;width:180px;height:200px;min-height:0;pointer-events:none}
.osp-interface[data-osp-mode] .osp-mode-portrait img{display:block;width:100%;height:170px;object-fit:contain;filter:drop-shadow(0 14px 12px #0005);animation:none}
.osp-interface[data-osp-mode] .osp-unit-signature{position:static;margin-top:8px;color:var(--mode-glow);font:750 10px/1 var(--osp-body);letter-spacing:1.5px;text-align:center}
.osp-interface[data-osp-mode] .osp-lounge-actions{grid-column:1;grid-row:2;width:100%;padding:0;min-width:0}
.osp-interface[data-osp-mode] .mission-dialog #tutorial-strip{display:none!important}
.osp-interface[data-osp-mode] .osp-lounge-cues{display:flex;flex-wrap:wrap;gap:10px 16px;margin:18px 0;color:var(--game-muted)}
.osp-interface[data-osp-mode] .osp-lounge-cues>span{display:flex;align-items:center;gap:6px;font:500 10px/1.4 var(--osp-body)}
.osp-interface[data-osp-mode] .osp-lounge-cues b{font:inherit}
.osp-interface[data-osp-mode] .osp-lounge-cues .osp-glyph{width:15px;height:15px;color:var(--mode-glow)}
.osp-interface[data-osp-mode] .run-context{margin:18px 0 12px;color:var(--game-muted);font:500 11px/1.6 var(--osp-body);overflow-wrap:anywhere}
.osp-interface[data-osp-mode] .run-sign-in{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;margin:0 0 12px;color:var(--game-lime);font:650 12px/1.4 var(--osp-body);text-decoration:none}
.osp-interface[data-osp-mode] :is(.mission-dialog .primary,#run-start,.osp-help-done,.relay-help-return){display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;min-height:54px;margin:0;padding:9px 12px 9px 18px;border:1px solid var(--game-lime);border-radius:12px;background:var(--game-lime);color:#17200d;font:750 15px/1.3 var(--osp-body);letter-spacing:0;box-shadow:none;text-transform:none;cursor:pointer}
.osp-interface[data-osp-mode] :is(.mission-dialog .primary,#run-start,.osp-help-done,.relay-help-return):hover{background:#d6ff94;border-color:#d6ff94;transform:none}
.osp-interface[data-osp-mode] .osp-action-orb{display:grid!important;place-items:center;width:30px;height:30px;flex-shrink:0;margin:0!important;padding:0;border:0;border-radius:8px;background:#17200d12;color:inherit;box-shadow:none;font-size:0;line-height:1}
.osp-interface[data-osp-mode] .osp-action-orb .osp-glyph{width:20px;height:20px}
.osp-interface[data-osp-mode] .osp-menu-secondary{display:flex;gap:8px;margin-top:10px}
.osp-interface[data-osp-mode] .osp-menu-secondary :is(button,a){display:flex;align-items:center;justify-content:center;gap:8px;flex:1;width:auto;min-width:0;min-height:44px;margin:0;padding:10px 12px;border:1px solid #ffffff24;border-radius:11px;background:#ffffff05;color:var(--game-text);font:650 12px/1.3 var(--osp-body);letter-spacing:0;text-decoration:none}
.osp-interface[data-osp-mode] .osp-menu-secondary :is(button,a):hover{background:#ffffff0e;border-color:#ffffff40}
.osp-interface[data-osp-mode] .osp-menu-secondary :is(button,a)>span{display:inline-flex!important;align-items:center;font:inherit;letter-spacing:inherit;color:inherit}
.osp-interface[data-osp-mode] .osp-menu-secondary .osp-glyph{width:17px;height:17px}
.osp-interface[data-osp-mode] .osp-lounge-links{display:flex;flex-wrap:wrap;gap:3px 14px;align-items:center;justify-content:flex-start;margin-top:12px;border-top:1px solid var(--game-line);padding-top:5px}
.osp-interface[data-osp-mode] .osp-lounge-links :is(button,a),.osp-interface[data-osp-mode=tetherline] #run-board{display:inline-flex;align-items:center;justify-content:flex-start;gap:7px;width:auto;min-height:44px;margin:0;padding:9px 0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--game-muted);font:600 11px/1.3 var(--osp-body);letter-spacing:0;text-decoration:none}
.osp-interface[data-osp-mode] .osp-lounge-links :is(button,a):hover{color:var(--game-text)}
.osp-interface[data-osp-mode] .osp-lounge-links .osp-glyph{width:16px;height:16px}
.osp-interface[data-osp-mode] :is(.save-status,.save-message){margin:12px 0 0;padding:0;color:var(--game-muted);font:500 11px/1.65 var(--osp-body);max-width:none;min-height:0;overflow-wrap:anywhere;text-align:left}
.osp-interface[data-osp-mode] :is(.save-status,.save-message):empty{display:none}
.osp-interface[data-osp-mode] :is(.save-status,.save-message) :is(button,a){display:inline-flex;align-items:center;min-height:44px;padding:8px 11px;margin:6px 4px 0 0;background:#ffffff0b;color:var(--game-lime);border:1px solid #ffffff24;border-radius:9px;text-decoration:none}
.osp-interface[data-osp-mode] .result-stats{display:block;margin:2px 0 16px;padding:0;border:0;color:var(--game-lime);font:800 clamp(42px,7vw,64px)/1 var(--osp-display);letter-spacing:-2px;font-variant-numeric:tabular-nums}
body.osp-interface.flight-page:is([data-phase=paused],[data-phase=result]) .mission-dialog,.osp-interface[data-osp-mode=tetherline]:is([data-menu=paused],[data-menu=finished],[data-menu=crashed],[data-menu=practice]) .run-panel{grid-template-columns:minmax(0,1fr);width:min(440px,100%);max-width:440px;gap:0;padding:26px!important}
body.osp-interface.flight-page:is([data-phase=paused],[data-phase=result]) :is(.osp-mode-portrait,.osp-lounge-cues,.run-context),.osp-interface[data-osp-mode=tetherline]:is([data-menu=paused],[data-menu=finished],[data-menu=crashed],[data-menu=practice]) :is(.osp-mode-portrait,.input-hint){display:none}
body.osp-interface.flight-page:is([data-phase=paused],[data-phase=result]) .osp-lounge-copy h1,.osp-interface[data-osp-mode=tetherline]:is([data-menu=paused],[data-menu=crashed],[data-menu=practice]) .osp-lounge-copy h2{font-size:31px;line-height:1.1;margin-bottom:10px;letter-spacing:-.8px}
body.osp-interface.flight-page[data-phase=result] .osp-lounge-copy{margin-bottom:16px}
body.osp-interface.flight-page[data-phase=result] .osp-lounge-copy h1{font-size:23px;letter-spacing:-.5px}
body.osp-interface.flight-page[data-phase=result] #help-button,.osp-interface[data-osp-mode=tetherline][data-menu=finished] #tether-menu-help{display:none}
body.osp-interface.flight-page[data-phase=paused] .osp-lounge-actions{margin-top:20px}
/* Help, online tables and music use the same solid panel language. */
.osp-interface[data-osp-mode] :is(.relay-help,.tetherline-help,.osp-board,.tetherline-board),body.osp-interface[data-osp-mode] dialog.osp-music-panel{width:min(610px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:26px;border:1px solid #ffffff24;border-radius:18px 12px 18px 12px;background:var(--game-panel);color:var(--game-text);font-family:var(--osp-body);box-shadow:0 22px 80px #0008;overflow:auto}
.osp-interface[data-osp-mode] dialog::backdrop{background:#06080bbd;backdrop-filter:none}
.osp-interface[data-osp-mode] :is(.relay-help-header,.tetherline-help>header){display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}
.osp-interface[data-osp-mode] :is(.relay-help,.tetherline-help) h2{margin:5px 0 8px;font:800 29px/1.1 var(--osp-display);letter-spacing:-.7px;color:var(--game-text)}
.osp-interface[data-osp-mode] .relay-help-header .eyebrow{font-size:9px;letter-spacing:.8px;color:var(--mode-glow)}
.osp-interface[data-osp-mode] .relay-help-header p:last-child{font:450 12px/1.65 var(--osp-body);color:var(--game-muted);margin:0}
.osp-interface[data-osp-mode] :is(.relay-help-close,#tether-help-close),body.osp-interface[data-osp-mode] .osp-music-panel .osp-music-close{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;min-height:44px;padding:0;background:#ffffff08;color:var(--game-text);border:1px solid #ffffff24;border-radius:11px;font-size:0}
.osp-interface[data-osp-mode] .relay-help .relay-guide-cards{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:0 0 24px;padding:0}
.osp-interface[data-osp-mode] .relay-help .relay-guide-cards>div{display:grid;grid-template-columns:28px minmax(0,1fr);gap:5px 10px;min-width:0;padding:0;border:0}
.osp-interface[data-osp-mode] .relay-help .control-icon{grid-row:1/3;display:grid;place-items:center;width:28px;height:28px;margin:0;border:0;background:#ffffff08;color:var(--mode-glow)}
.osp-interface[data-osp-mode] .relay-help .control-icon .osp-glyph{width:19px;height:19px}
.osp-interface[data-osp-mode] .relay-help b{font:650 13px/1.4 var(--osp-body);color:var(--game-text);margin:0}
.osp-interface[data-osp-mode] .relay-help small,.osp-interface[data-osp-mode] .relay-guide-note{font:450 12px/1.6 var(--osp-body);color:var(--game-muted);margin:0}
.osp-interface[data-osp-mode] .relay-guide-note{grid-column:1/-1}
.osp-interface[data-osp-mode] .osp-help-steps{list-style:none;padding:0;margin:0 0 24px;display:grid;gap:19px}
.osp-interface[data-osp-mode] .osp-help-steps li{display:flex;gap:13px}
.osp-interface[data-osp-mode] .osp-help-steps li>[data-osp-icon]{color:var(--mode-glow);align-self:flex-start;padding-top:3px}
.osp-interface[data-osp-mode] .osp-help-steps b{font:650 14px/1.5 var(--osp-body)}
.osp-interface[data-osp-mode] .osp-help-steps p{margin:6px 0 0;font:450 12px/1.65 var(--osp-body);color:var(--game-muted)}
body.osp-interface[data-osp-mode] :is(.osp-board,.tetherline-board) button{min-height:44px;border-radius:10px;border-color:#ffffff24;background:#252d37;color:var(--game-text);font:650 12px/1.3 var(--osp-body)}
body.osp-interface[data-osp-mode] :is(.osp-board,.tetherline-board) .selected{background:var(--game-lime);border-color:var(--game-lime);color:#17200d}
body.osp-interface[data-osp-mode] :is(.osp-board,.tetherline-board) h2{font:800 28px/1.15 var(--osp-display);letter-spacing:-.8px}
body.osp-interface[data-osp-mode] :is(.osp-board,.tetherline-board) :is(.period-note,.fine-print){color:var(--game-muted)}
body.osp-interface[data-osp-mode] dialog.osp-music-panel{width:min(380px,calc(100vw - 28px))}
body.osp-interface[data-osp-mode] .osp-music-panel :is(.osp-music-kicker,.osp-music-volume-label output){color:var(--game-lime)}
body.osp-interface[data-osp-mode] .osp-music-panel :is(.osp-music-track,.osp-music-status){color:var(--game-muted)}
body.osp-interface[data-osp-mode] .osp-music-panel .osp-music-range{accent-color:var(--game-lime)}
body.osp-interface[data-osp-mode] .osp-music-panel .osp-music-mute{border-radius:11px;background:#252d37;border-color:#ffffff24;color:var(--game-text)}
/* Controls stay large without covering the route. */
body.osp-interface.flight-page .flight-controls{height:76px;min-height:76px;padding:10px max(22px,env(safe-area-inset-left));padding-bottom:max(10px,env(safe-area-inset-bottom));gap:14px;border-top:1px solid var(--game-line);background:var(--game-bg)}
body.osp-interface.flight-page .flight-hint{display:flex;gap:9px;align-items:center;color:var(--game-muted);font:500 11px/1.4 var(--osp-body)}
body.osp-interface.flight-page .key-label{padding:6px 8px;border:1px solid var(--game-line);border-radius:7px;background:#ffffff05;font:650 9px/1 var(--osp-body);color:var(--game-text)}
body.osp-interface.flight-page .lift-button{display:flex;align-items:center;justify-content:center;gap:10px;min-width:190px;height:54px;min-height:44px;margin-left:auto;padding:0 17px;border:1px solid #ffffff33;border-radius:12px;background:#232d38;color:var(--game-text);font:750 15px/1 var(--osp-body);letter-spacing:0;box-shadow:none;touch-action:none;user-select:none}
body.osp-interface.flight-page .lift-button>[data-osp-icon]{color:var(--mode-glow)}
body.osp-interface.flight-page .lift-button small{margin-left:auto;padding:5px 6px;border:0;border-radius:6px;background:#ffffff0b;font:650 8px/1 var(--osp-body);letter-spacing:.2px;color:var(--game-muted)}
body.osp-interface.flight-page .lift-button.pressed{border-color:var(--mode-glow);background:#374652;box-shadow:none}
.osp-interface[data-osp-mode] .rift-life-hud{display:flex;gap:9px;align-items:center;padding:7px 10px;background:transparent;border:1px solid #ffffff1c;border-radius:10px;color:var(--mode-glow);box-shadow:none}
.osp-interface[data-osp-mode] .rift-life-hud>span:last-child{font:600 8px/1.3 var(--osp-body);letter-spacing:.5px;color:var(--game-muted)}
.osp-interface[data-osp-mode] .rift-life-hud b{display:block;margin-top:3px;font:650 9px/1.3 var(--osp-body);color:var(--mode-glow)}
.osp-interface[data-osp-mode] .countdown,.osp-interface[data-osp-mode] #countdown-value{font-family:var(--osp-display);font-weight:800;color:var(--game-lime);text-shadow:0 3px 20px #0008}
.osp-interface[data-osp-mode] :is(.loading-state,#load-panel){background:var(--game-bg);color:var(--game-text);backdrop-filter:none}
.osp-interface[data-osp-mode] :is(.loading-state,#load-panel) p{color:var(--game-muted);letter-spacing:.4px;font:500 12px/1.5 var(--osp-body)}
.osp-interface[data-osp-mode] :is(.loader-ring,.loader-orbit){border-top-color:var(--game-lime)}
/* Tetherline shares the shell while preserving its course explorer. */
.osp-interface[data-osp-mode=tetherline] .masthead,.osp-interface[data-osp-mode=tetherline].in-run .masthead{position:absolute;inset:0 0 auto;height:72px;padding:12px max(22px,env(safe-area-inset-right)) 12px max(22px,env(safe-area-inset-left));display:flex;align-items:center;gap:16px;background:var(--game-bg);border-bottom:1px solid var(--game-line);z-index:4}
.osp-interface[data-osp-mode=tetherline] .brand-group{display:flex;align-items:center;gap:14px}
.osp-interface[data-osp-mode=tetherline] .identity{display:flex;align-items:center;gap:9px}
.osp-interface[data-osp-mode=tetherline] .identity .mark{display:none}
.osp-interface[data-osp-mode=tetherline] .identity strong{font:750 16px/1.2 var(--osp-display);letter-spacing:-.3px;color:var(--game-text)}
.osp-interface[data-osp-mode=tetherline] .identity #world-tag{display:block;font:500 9px/1.4 var(--osp-body);letter-spacing:0;color:var(--game-muted);margin-top:4px}
.osp-interface[data-osp-mode=tetherline] .tether-lounge-nav{margin-left:auto;display:flex;align-items:center}
.osp-interface[data-osp-mode=tetherline] .preview-label,.osp-interface[data-osp-mode=tetherline] .side-caption,.osp-interface[data-osp-mode=tetherline]:not(.gallery) .scene-copy{display:none}
.osp-interface[data-osp-mode=tetherline] .run-panel{position:absolute;left:50%;top:50%;transform:translate(-50%,-45%);width:min(710px,calc(100% - 40px));max-height:calc(100dvh - 116px);z-index:6}
.osp-interface[data-osp-mode=tetherline] .input-hint{display:grid;gap:5px;margin:17px 0 0;color:var(--game-muted);font:500 11px/1.6 var(--osp-body)}
.osp-interface[data-osp-mode=tetherline] .input-hint>span{display:block;width:auto;height:auto;min-width:0;min-height:0;max-width:none;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;place-items:normal;color:inherit;font:inherit;line-height:inherit;letter-spacing:normal;text-align:left;white-space:normal}
.osp-interface[data-osp-mode=tetherline] .input-hint .desktop-input{display:block}
.osp-interface[data-osp-mode=tetherline] .input-hint .screen-input{display:none}
.osp-interface[data-osp-mode=tetherline].screen-steering .input-hint .desktop-input{display:none}
.osp-interface[data-osp-mode=tetherline].screen-steering .input-hint .screen-input{display:block}
.osp-interface[data-osp-mode=tetherline][data-menu=finished] #panel-title{font-size:clamp(39px,7vw,55px);line-height:1.1;color:var(--game-lime);letter-spacing:-1.5px;font-variant-numeric:tabular-nums}
.osp-interface[data-osp-mode=tetherline] .run-hud,.osp-interface[data-osp-mode=tetherline].in-run .run-hud{position:absolute;inset:12px 22px auto auto;display:flex;align-items:center;gap:16px;padding:0;border:0;background:none;box-shadow:none;z-index:5;pointer-events:none}
.osp-interface[data-osp-mode=tetherline] .hud-actions{display:flex;gap:6px;pointer-events:auto}
.osp-interface[data-osp-mode=tetherline] .clock-score{display:grid;grid-template-columns:auto auto;gap:2px 9px;align-items:center;padding:0;background:none;border:0}
.osp-interface[data-osp-mode=tetherline] .clock-label{font:650 8px/1.2 var(--osp-body);letter-spacing:.6px;color:var(--game-muted)}
.osp-interface[data-osp-mode=tetherline] #run-time{grid-column:1/3;grid-row:1;font:750 23px/1.1 var(--osp-display);letter-spacing:-.5px;color:var(--game-text);font-variant-numeric:tabular-nums}
.osp-interface[data-osp-mode=tetherline] #run-world{font:600 8px/1.2 var(--osp-body);letter-spacing:.3px;color:var(--mode-glow)}
.osp-interface[data-osp-mode=tetherline] .hud-life{padding-left:9px;border-left:1px solid var(--game-line);color:var(--mode-glow)}
.osp-interface[data-osp-mode=tetherline] #run-life{display:flex;align-items:center;gap:4px;font-size:13px}
.osp-interface[data-osp-mode=tetherline] #run-life .osp-glyph{width:16px;height:16px}
.osp-interface[data-osp-mode=tetherline].in-run .masthead .brand-group{margin-right:0}
.osp-interface[data-osp-mode=tetherline].in-run .identity,.osp-interface[data-osp-mode=tetherline].in-run .tether-lounge-nav{display:none}
.osp-interface[data-osp-mode=tetherline].gallery .run-panel,.osp-interface[data-osp-mode=tetherline]:not(.gallery) .toolbar{display:none}
.osp-interface[data-osp-mode=tetherline] .toolbar{background:var(--game-panel);border:1px solid #ffffff24;border-radius:16px 10px 16px 10px;box-shadow:0 15px 60px #0005;max-height:48dvh;overflow:auto;backdrop-filter:none}
.osp-interface[data-osp-mode=tetherline] .toolbar button{min-height:44px;border-radius:9px}
.osp-interface[data-osp-mode=tetherline] #gallery-play{display:inline-flex;align-items:center;gap:9px;min-height:44px;padding:10px 14px;border:0;border-radius:10px;background:var(--game-lime);color:#17200d;font:700 12px/1.2 var(--osp-body)}
.osp-interface[data-osp-mode=tetherline] .scene-copy{top:100px}
.osp-interface[data-osp-mode=tetherline] .drive-controls{border:1px solid #ffffff24;border-radius:14px;background:#171c23df;backdrop-filter:none}
.osp-interface[data-osp-mode=tetherline] .screen-controls{pointer-events:none}
/* data-menu persists during driving; the panel's hidden state is authoritative. */
body.osp-interface[data-osp-mode=tetherline]:not(.gallery):is(:has(#run-panel:not([hidden])),:has(dialog[open])) :is(.drive-controls,.screen-controls,#run-countdown){visibility:hidden!important;pointer-events:none!important}
body.osp-interface[data-osp-mode=tetherline]:not(.gallery):is(:has(#run-panel:not([hidden])),:has(dialog[open])) .run-hud :is(.clock-score,.hud-life,#run-pause){display:none!important}
body.osp-interface[data-osp-mode=tetherline].gallery :is(.run-hud,.drive-controls,.screen-controls,#run-countdown){display:none!important}
@media(max-width:760px){
 body.osp-interface.flight-page .flight-header,.osp-interface[data-osp-mode=tetherline] .masthead,.osp-interface[data-osp-mode=tetherline].in-run .masthead{height:64px;min-height:64px;padding:10px 12px;gap:10px}
 body.osp-interface.flight-page .flight-title{font-size:13px}body.osp-interface.flight-page .flight-title>span{font-size:9px}
 .osp-interface[data-osp-mode] :is(.back-base,.home-link){padding:10px;gap:6px}
 body.osp-interface.flight-page .flight-hud{top:12px;left:14px;right:14px;gap:10px}
 body.osp-interface[data-osp-mode=rift] .rift-statusbar{top:76px;left:14px;right:14px;height:auto}
 body.osp-interface.flight-page .mission-progress{width:140px}
 body.osp-interface.flight-page .sector-label strong{font-size:10px;max-width:170px}
 body.osp-interface.flight-page .flight-controls{height:70px;min-height:70px;padding:8px 12px;gap:10px}
 body.osp-interface.flight-page .flight-hint{display:none}
 body.osp-interface.flight-page .lift-button{min-width:160px;min-height:50px;height:50px}
 body.osp-interface.flight-page .mission-overlay{padding:16px}
 body.osp-interface.flight-page .mission-dialog,.osp-interface[data-osp-mode=tetherline] .run-panel{grid-template-columns:minmax(0,1fr) 130px;gap:0 12px;padding:24px!important}
 .osp-interface[data-osp-mode] .osp-mode-portrait{width:130px;height:160px}
 .osp-interface[data-osp-mode] .osp-mode-portrait img{height:135px}
 .osp-interface[data-osp-mode] .osp-lounge-copy :is(h1,h2){font-size:33px}
 .osp-interface[data-osp-mode=tetherline] .run-panel{width:calc(100% - 32px);max-height:calc(100dvh - 100px)}
 .osp-interface[data-osp-mode=tetherline] .run-hud,.osp-interface[data-osp-mode=tetherline].in-run .run-hud{inset:10px 12px auto auto;gap:10px}
 .osp-interface[data-osp-mode=tetherline] #run-time{font-size:21px}
 .osp-interface[data-osp-mode=tetherline] .hud-life{padding-left:7px}
}
@media(max-width:560px){
 body.osp-interface.flight-page .flight-title>span{display:none}
 body.osp-interface.flight-page .flight-header .osp-nav-label{display:none}
 body.osp-interface.flight-page .flight-header .back-base{min-width:44px}
 body.osp-interface.flight-page .flight-actions{gap:4px}
 body.osp-interface.flight-page .mission-dialog,.osp-interface[data-osp-mode=tetherline] .run-panel{grid-template-columns:minmax(0,1fr);gap:0;padding:24px!important}
 .osp-interface[data-osp-mode] .osp-mode-portrait{display:none}
 .osp-interface[data-osp-mode] .osp-lounge-copy :is(h1,h2){font-size:34px}
 .osp-interface[data-osp-mode] .osp-lounge-copy .dialog-description,.osp-interface[data-osp-mode=tetherline] #panel-copy{font-size:13px}
 .osp-interface[data-osp-mode] .osp-lounge-cues{gap:9px;margin:15px 0}
 .osp-interface[data-osp-mode] .osp-lounge-cues>span{font-size:10px}
 .osp-interface[data-osp-mode] .relay-help .relay-guide-cards{grid-template-columns:1fr}
 .osp-interface[data-osp-mode] :is(.relay-help,.tetherline-help,.osp-board,.tetherline-board){padding:21px}
 .osp-interface[data-osp-mode=tetherline].in-run .home-link .osp-nav-label{display:none}
 .osp-interface[data-osp-mode=tetherline].in-run .home-link{width:44px;min-width:44px;padding:10px}
 .osp-interface[data-osp-mode=tetherline] .hud-life{display:none}
 .osp-interface[data-osp-mode=tetherline] .clock-label{display:none}
 .osp-interface[data-osp-mode=tetherline] #run-world{grid-column:1/3}
 .osp-interface[data-osp-mode=tetherline] .run-hud,.osp-interface[data-osp-mode=tetherline].in-run .run-hud{gap:8px}
 .osp-interface[data-osp-mode=tetherline] .hud-actions{gap:4px}
 .osp-interface[data-osp-mode=tetherline] .clock-score{gap:3px 0}
 .osp-interface[data-osp-mode=tetherline] #run-time{font-size:19px}
}
@media(max-height:570px) and (orientation:landscape){
 body.osp-interface.flight-page .flight-header,.osp-interface[data-osp-mode=tetherline] .masthead,.osp-interface[data-osp-mode=tetherline].in-run .masthead{height:56px;min-height:56px;padding-block:6px}
 body.osp-interface.flight-page .flight-title>span{display:none}
 body.osp-interface.flight-page .flight-controls{height:56px;min-height:56px;padding-block:5px}
 body.osp-interface.flight-page .lift-button{height:44px;min-height:44px;min-width:200px}
 body.osp-interface[data-osp-mode=rift] .rift-statusbar{top:68px}
 body.osp-interface.flight-page .mission-overlay{padding:12px 20px}
 body.osp-interface.flight-page .mission-dialog,.osp-interface[data-osp-mode=tetherline] .run-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 24px;width:min(720px,100%);padding:20px!important;max-height:100%;overflow:auto}
 .osp-interface[data-osp-mode] .osp-mode-portrait{display:none}
 .osp-interface[data-osp-mode] .osp-lounge-copy{grid-column:1;grid-row:1}
 .osp-interface[data-osp-mode] .osp-lounge-actions{grid-column:2;grid-row:1}
 .osp-interface[data-osp-mode] .osp-lounge-copy :is(h1,h2){font-size:31px}
 .osp-interface[data-osp-mode] .osp-lounge-cues{display:none}
 .osp-interface[data-osp-mode] .run-context{margin-top:0}
 .osp-interface[data-osp-mode] .osp-menu-secondary{margin-top:8px}
 .osp-interface[data-osp-mode] .osp-lounge-links{margin-top:8px;padding-top:0;gap:10px}
 .osp-interface[data-osp-mode] .osp-lounge-links :is(button,a){font-size:10px}
 body.osp-interface.flight-page:is([data-phase=paused],[data-phase=result]) .mission-dialog,.osp-interface[data-osp-mode=tetherline]:is([data-menu=paused],[data-menu=finished],[data-menu=crashed],[data-menu=practice]) .run-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:min(720px,100%);max-width:720px;padding:20px!important}
 body.osp-interface.flight-page[data-phase=paused] .osp-lounge-actions{margin-top:0}
 .osp-interface[data-osp-mode=tetherline] .run-panel{top:calc(56px + (100dvh - 56px)/2);max-height:calc(100dvh - 80px);transform:translate(-50%,-50%)}
 .osp-interface[data-osp-mode=tetherline] .input-hint{grid-column:1;font-size:11px;margin-top:0}
 .osp-interface[data-osp-mode=tetherline] .run-context{font-size:10px}
}
/* Touch driving keeps the route visible; full options remain in the game menu. */
body.osp-interface[data-osp-mode=tetherline].screen-steering.in-run:not(:has(#run-panel:not([hidden]))):not(:has(dialog[open])) .masthead{height:0;min-height:0;padding:0;border:0;background:none;box-shadow:none;backdrop-filter:none;pointer-events:none;overflow:visible}
body.osp-interface[data-osp-mode=tetherline].screen-steering.in-run:not(:has(#run-panel:not([hidden]))):not(:has(dialog[open])) .home-link{position:fixed;top:max(10px,env(safe-area-inset-top));left:max(12px,env(safe-area-inset-left));display:flex;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:10px;border:1px solid #ffffff26;border-radius:12px;background:#0b0e1266;box-shadow:none;backdrop-filter:none;pointer-events:auto}
body.osp-interface[data-osp-mode=tetherline].screen-steering.in-run:not(:has(#run-panel:not([hidden]))):not(:has(dialog[open])) .home-link .osp-nav-label{display:none}
body.osp-interface[data-osp-mode=tetherline].screen-steering.in-run:not(:has(#run-panel:not([hidden]))):not(:has(dialog[open])) .run-hud{inset:max(10px,env(safe-area-inset-top)) max(14px,env(safe-area-inset-right)) auto auto;min-height:44px;padding:0;border:0;background:none;box-shadow:none;backdrop-filter:none;pointer-events:none}
body.osp-interface[data-osp-mode=tetherline].screen-steering.in-run:not(:has(#run-panel:not([hidden]))):not(:has(dialog[open])) .run-hud :is(.hud-actions,.hud-life,.clock-label,#run-world){display:none!important}
body.osp-interface[data-osp-mode=tetherline].screen-steering.in-run:not(:has(#run-panel:not([hidden]))):not(:has(dialog[open])) .clock-score{display:block}
body.osp-interface[data-osp-mode=tetherline].screen-steering.in-run:not(:has(#run-panel:not([hidden]))):not(:has(dialog[open])) #run-time{font-size:21px;line-height:44px;text-shadow:0 2px 5px #000,0 0 14px #000}
/* Retire the original art-preview's fixed 394px panel height. */
.osp-interface[data-osp-mode=tetherline] #run-panel.osp-lounge{height:auto!important;bottom:auto!important}
@media(prefers-reduced-motion:reduce){.osp-interface[data-osp-mode] *{scroll-behavior:auto}.osp-interface[data-osp-mode] :is(.osp-mode-portrait img,.osp-action-orb){animation:none;transition:none}}
