/* Level 3: the return trip. Reuse the shared arcade HUD; isolate the driving scene. */
#returnGame[hidden],#returnDialog[hidden]{display:none!important}
#returnGame{position:fixed;inset:0;z-index:80;display:grid;grid-template-rows:minmax(0,1fr) 42px 60px;background:#131b28;color:#fff;font:14px Arial,sans-serif;overflow:hidden;user-select:none;-webkit-user-select:none}
#returnGame *{box-sizing:border-box}#returnGame button{cursor:pointer;touch-action:none}#returnGame button:focus-visible{outline:3px solid #fff;outline-offset:3px}
body.return-playing .wrap{visibility:hidden}body.return-playing #mobileExit{display:none!important}body.return-playing #rotateOverlay{z-index:120!important}
/* The top HUD inherits the same canonical overlay, type and beer icons as Level 1. */
.return-champion{display:flex;align-items:center;justify-content:center;gap:.5em;max-width:100%;min-width:0;white-space:nowrap}#returnChampionName{min-width:0;overflow:hidden;text-overflow:ellipsis}#returnBest{flex-shrink:0}
.return-strip{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 max(14px,env(safe-area-inset-right)) 0 max(14px,env(safe-area-inset-left));background:#101722;border-bottom:1px solid #786749}.return-level{font:11px LastCallArcade,monospace;color:#f3cf84}.return-personal{white-space:nowrap;font:9px LastCallArcade,monospace;color:#c9d4d2}.return-personal b{color:#84e4da;font-size:14px;margin-left:8px}.return-actions{display:flex;gap:8px}.return-actions button{min-height:32px;padding:5px 10px;font:bold 10px Arial;border:1px solid #b99952;border-radius:3px;background:#1e2838;color:#ffe3a5}
.return-scene{--return-hud-height:clamp(51px,7vw,72px);position:relative;min-height:0;overflow:hidden;background:#75b6d3}#returnCanvas{display:block;width:100%;height:100%;outline:none;touch-action:none}
.return-route{position:absolute;top:calc(var(--return-hud-height) + 10px);left:18px;padding:10px 14px;border-left:3px solid #ffdf8b;background:#172a32d9;box-shadow:0 3px 10px #0003;color:#fff5d5;pointer-events:none}.return-route small{display:block;font-size:9px;letter-spacing:2px;color:#d0c8b4;margin-bottom:5px}.return-route strong{font-size:15px}.return-progress{height:3px;background:#ffffff30;margin-top:9px;width:180px}.return-progress i{display:block;height:100%;background:#fbd376;width:0}.return-load{position:absolute;top:calc(var(--return-hud-height) + 10px);right:18px;width:190px;background:#172a32e8;padding:10px 14px;border-right:3px solid #b8d896;pointer-events:none}.return-load>div:first-child{display:flex;justify-content:space-between;font-size:10px;font-weight:bold;letter-spacing:1px}.return-load-track{height:8px;margin-top:8px;background:#0006;border-radius:2px;overflow:hidden}.return-load-track i{height:100%;display:block;width:0;background:linear-gradient(90deg,#a8d591,#f4bd5f)}.return-load small{display:block;font-size:10px;margin-top:7px;color:#e9dfc8}.return-load.danger{border-color:#ff846c}.return-load.danger i{background:#ff846c}.return-load.danger small{color:#ffbca0}
.return-fork{position:absolute;left:50%;top:calc(var(--return-hud-height) + 10px);transform:translateX(-50%);display:flex;gap:8px;pointer-events:none}.return-fork[hidden]{display:none}.return-fork div{background:#243b2ef0;border:2px solid #ecddab;padding:10px 16px;box-shadow:0 5px 12px #0005;text-align:center;font-weight:bold;color:#fff6d3}.return-fork small{display:block;margin-top:4px;font-size:10px;color:#ebd7ab}
.return-toast{position:absolute;left:50%;bottom:14px;transform:translateX(-50%);max-width:82%;padding:10px 18px;background:#172632ed;border:1px solid #e6bf6e;color:#fff0c8;text-align:center;font-size:14px;font-weight:bold;pointer-events:none;opacity:0;transition:opacity .15s}.return-toast.visible{opacity:1}
.return-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:5px max(18px,env(safe-area-inset-right)) 5px max(18px,env(safe-area-inset-left));background:#101722;border-top:2px solid #ac8e53}.return-keyboard{font-size:10px;color:#c8d2da;line-height:1.8}.return-keyboard b{color:#ffdd9c}.return-goal{text-align:center;font-weight:bold;font-size:12px;color:#f5d489}.return-goal small{display:block;font-size:10px;color:#cad5d6;margin-top:5px}.return-pad{display:none;gap:9px}.return-pad button{border:2px solid #d9b56e;background:linear-gradient(#394b5e,#233143);color:#fff2cf;border-radius:7px;width:54px;height:48px;font:bold 25px Arial;box-shadow:0 3px #0009}.return-pad button.held{background:#bd873d}.return-pad .return-brake{width:104px;font-size:14px;background:linear-gradient(#693e33,#44292c);border-color:#f4b393}.return-tools{font-size:11px;color:#c8d2da;white-space:nowrap}.return-tools b{color:#f5d489}
#returnDialog{position:absolute;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;background:#111c2ada;backdrop-filter:blur(3px);padding:18px;overflow:auto;touch-action:pan-y}.return-card{width:min(700px,100%);max-height:100%;overflow:auto;padding:30px;background:radial-gradient(ellipse at top,#3e4b54,#1b2835 75%);border:2px solid #d5ae65;box-shadow:0 15px 60px #0008,inset 0 0 0 5px #111e2977;text-align:center;border-radius:5px}.return-eyebrow{font:10px/1.6 LastCallArcade,monospace;color:#e9c88c;letter-spacing:1px;margin-bottom:17px}.return-card h2{font:clamp(22px,3vw,34px)/1.4 LastCallArcade,monospace;color:#ffe2a0;text-shadow:3px 3px #172332;margin:0 0 14px}.return-card p{font-size:15px;line-height:1.6;color:#e0e5e4;margin:12px 0}.return-objectives{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.return-objectives div{padding:13px 8px;border:1px solid #73818a;background:#111e2955;font-size:12px;line-height:1.6}.return-objectives b{display:block;color:#f3cf88;font-size:20px;margin-bottom:6px}.return-card button{min-height:46px;margin:5px;padding:12px 20px;background:linear-gradient(#f3d7a0,#c5a15c);border:2px solid #f8e0aa;color:#172632;font:bold 14px Arial;border-radius:3px}.return-card button.secondary{background:transparent;color:#efcd92;border:1px solid #8a969d}.return-card button:disabled{opacity:.5;cursor:wait!important}.return-result{font:28px/1.4 LastCallArcade,monospace!important;color:#ffe0a0!important}.return-save{min-height:24px}.return-save.error{color:#ffb6a3!important}.return-best-result{color:#b9e7cd!important;font-size:12px!important}.return-arrival{display:flex;align-items:center;justify-content:center;gap:22px}.return-arrival .return-mrs{display:block;height:140px;width:76px;object-fit:contain;background:transparent}.return-arrival blockquote{margin:0;font:bold italic 18px/1.6 Georgia,serif;color:#ffe6bb;max-width:270px}
@media(pointer:coarse),(max-height:500px){#returnGame{grid-template-rows:minmax(0,1fr) 44px 68px}.return-champion{gap:.35em}.return-strip{padding:0 8px;gap:8px}.return-level{font-size:9px}.return-personal{font-size:8px}.return-personal b{font-size:13px;margin-left:5px}.return-actions{gap:5px}.return-actions button{min-height:44px;font-size:9px;padding:4px 8px}.return-route,.return-load{top:auto;bottom:8px;padding:7px 9px}.return-route{left:8px}.return-route small{font-size:7px;margin-bottom:3px}.return-route strong{font-size:11px}.return-progress{width:118px;margin-top:6px}.return-load{right:8px;width:145px}.return-load>div:first-child{font-size:8px}.return-load small{font-size:8px;margin-top:4px}.return-load-track{height:5px;margin-top:5px}.return-fork{top:calc(var(--return-hud-height) + 6px);gap:5px}.return-fork div{font-size:10px;padding:6px 9px}.return-fork small{font-size:8px}.return-toast{bottom:6px;font-size:11px;padding:7px 12px}.return-footer{gap:12px;padding:5px 10px}.return-pad{display:flex}.return-keyboard,.return-tools{display:none}.return-goal{font-size:10px;max-width:250px}.return-goal small{font-size:9px}.return-card{padding:16px;max-width:680px}.return-card h2{font-size:22px;margin-bottom:8px}.return-card p{font-size:12px;line-height:1.45;margin:9px 0}.return-eyebrow{font-size:8px;margin-bottom:8px}.return-objectives{margin:11px 0}.return-objectives div{padding:6px;font-size:10px}.return-objectives b{font-size:15px;margin-bottom:2px}.return-card button{padding:9px 14px;min-height:42px;font-size:12px}.return-result{font-size:22px!important}.return-arrival .return-mrs{height:90px;width:52px}.return-arrival blockquote{font-size:14px}}
@media(max-width:650px){.return-level{font-size:8px}.return-personal{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:8px}.return-personal b{font-size:12px;margin-left:0}.return-actions button{font-size:8px;padding:4px 6px}.return-fork{top:calc(var(--return-hud-height) + 58px)}.return-goal{font-size:9px}.return-goal small{font-size:8px}.return-pad{gap:7px}.return-pad button{width:48px}.return-pad .return-brake{width:80px}}
@media(prefers-reduced-motion:reduce){.return-toast{transition:none}}

.return-pad .return-accelerate{width:84px;font-size:14px;background:linear-gradient(#3f6741,#26432f);border-color:#c8e59b}.return-pad .return-brake{width:84px}
.return-hitch{display:flex;justify-content:space-between;margin-top:10px;padding-top:8px;border-top:1px solid #ffffff30;font-size:10px;font-weight:bold;letter-spacing:.5px}.return-hitch-bar{display:flex;gap:4px;margin-top:6px}.return-hitch-bar i{height:7px;flex:1;background:#b5d78a;border-radius:1px}.return-hitch-bar i.broken{background:#ffffff20}.return-load.hitch-danger{border-right-color:#ff846c}.return-load.hitch-danger .return-hitch{color:#ffb69d}.return-load.hitch-danger .return-hitch-bar i:not(.broken){background:#ff846c}
.return-load-track i{background:linear-gradient(90deg,#8ec7cc,#f4bd5f)}.return-load.flat-out #returnLoadValue{color:#ffe398}.return-load.flat-out .return-load-track i{background:#f4bd5f}#returnLoadHint{min-height:12px}#returnBumpHint{line-height:1.35;min-height:14px}
.return-load.chicane{border-right-color:#ffb064}.return-load.chicane #returnLoadHint{color:#ffd59d;font-weight:bold}
@media(pointer:coarse),(max-height:500px){.return-hitch{font-size:8px;margin-top:6px;padding-top:5px}.return-hitch-bar{gap:3px;margin-top:4px}.return-hitch-bar i{height:5px}#returnBumpHint{font-size:7px}}
@media(max-width:650px){.return-pad .return-accelerate,.return-pad .return-brake{width:64px;font-size:12px}.return-footer{gap:8px}.return-goal{max-width:190px}}

@media(hover:none) and (pointer:coarse) and (orientation:landscape){.return-scene{--return-hud-height:clamp(45px,10vh,57px)}}
