/* Feedback lives on the existing Drift button, keeping the road clear. */
body[data-drift="1"] .touch-controls button[data-key="ShiftLeft"]{border:3px solid #54deff!important;color:#d9faff!important;box-shadow:0 0 14px #54deff99}
body[data-drift="2"] .touch-controls button[data-key="ShiftLeft"]{border:3px solid #ffd25d!important;color:#fff1b5!important;box-shadow:0 0 18px #ffbe4699}
#sticker-book{width:min(940px,94vw);max-height:92dvh;overflow:auto;background:#123849;color:white;border:2px solid #7acdc6;border-radius:24px;padding:20px;box-sizing:border-box}
#sticker-book::backdrop{background:#061b2acc}.sticker-heading{display:flex;position:sticky;top:-20px;z-index:1;align-items:center;justify-content:space-between;gap:12px;background:#123849;padding:12px 0}.sticker-heading h2{font-size:24px;margin:0}.sticker-heading button{min-height:48px;padding:10px 20px;font-size:16px;background:#c8fa8f;color:#15382d}
#sticker-count{font-size:15px}#sticker-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px}.sticker{display:flex;flex-direction:column;align-items:center;text-align:center;border:2px dashed #63838b;border-radius:20px;padding:14px;gap:8px;background:#17303f;min-height:155px}.sticker img{width:74px;height:80px;object-fit:contain}.sticker>b{font-size:48px;line-height:80px;color:#88c3d8}.sticker strong{font-size:16px}.sticker small{font-size:14px;line-height:1.3;color:#c1d2dc}.sticker.locked img{filter:grayscale(1);opacity:.5}.sticker.earned{border:2px solid #e4cc78;background:#254b4a;box-shadow:inset 0 0 20px #fcd87b12}.sticker.earned>b{color:#ffd665}
#results{background:linear-gradient(90deg,#06152155,#06152110)!important;backdrop-filter:none!important;display:block;padding:0!important;overflow:hidden}
#results.hidden{display:none!important}.winner-heading{position:absolute;left:3%;bottom:4%;width:min(40%,500px);text-align:center;pointer-events:auto;background:linear-gradient(180deg,#12384bea,#092434e8);padding:12px;border-radius:16px;box-sizing:border-box;border:1px solid #9ff0df66;box-shadow:0 16px 50px #0008}.winner-heading h2{margin:0;font-size:clamp(22px,2.8vw,34px);color:#ffdf87}.winner-heading p{font-size:14px;line-height:1.3;margin:6px 0}.winner-heading button{min-height:40px;padding:7px 12px}
#results .result-details{position:absolute;right:max(12px,env(safe-area-inset-right));top:max(12px,env(safe-area-inset-top));bottom:max(12px,env(safe-area-inset-bottom));width:min(46%,540px);max-width:none;max-height:none;background:linear-gradient(180deg,#12384bf7,#0a2a3af7);border:1px solid #8ce5d4a8;border-radius:16px;padding:14px;box-sizing:border-box;overflow:hidden;text-align:left;box-shadow:0 18px 60px #0009;display:flex;flex-direction:column;gap:7px}
#results .result-details h2{font-size:clamp(23px,2.8vw,34px);line-height:1.02;margin:4px 0;color:#fff6bd}.result-details p{font-size:15px;line-height:1.28;margin:3px 0}.result-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#12384bf7;padding:3px 0;z-index:1}.result-actions button{min-height:50px!important;width:100%;margin:0!important;padding:8px!important;font-size:17px!important}.result-links{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto}.result-links button,.result-links a,#results .result-details>button.secondary{font-size:13px;min-height:38px;padding:7px 10px;display:flex;align-items:center;box-sizing:border-box;margin:0;color:#dfffc5}#race-achievement{color:#ffe69a;font-weight:800;background:#ffffff10;border-radius:10px;padding:6px 8px;min-height:0}#race-achievement:empty{display:none}#race-standings{min-height:0}#race-standings summary{min-height:38px;padding:8px 0;box-sizing:border-box;cursor:pointer;color:#c8fff2;font-weight:800}#leaderboard,#cup-table{max-height:min(24vh,190px);overflow:auto;padding-right:3px}#results .result-row{display:grid;grid-template-columns:23px 28px 1fr auto;align-items:center;font-size:13px;padding:6px 0;gap:6px;border-bottom:1px solid #ffffff16}#results .result-row.you{background:#c7ff8d17;border-radius:8px;padding:6px}#results .result-row img{width:28px;height:31px;object-fit:contain}#trial-result-status{font-size:13px!important;line-height:1.25!important}#results textarea{min-height:46px!important}
body:has(#results:not(.hidden)) #hud,body:has(#results:not(.hidden)) header{display:none!important}
@media(orientation:portrait){#results .result-details{top:46%;width:calc(100% - 20px);left:10px;right:10px}.winner-heading{bottom:auto;top:2%;left:10%;width:80%}.winner-heading p{display:none}.winner-heading h2{font-size:24px}}
@media(max-height:600px){#results .result-details{padding:10px;gap:4px}#results .result-details h2{font-size:24px;margin:2px 0}.result-details p{font-size:13px;line-height:1.2}.result-actions button{min-height:44px!important;font-size:15px!important}.result-links button,.result-links a,#results .result-details>button.secondary{min-height:34px;font-size:12px;padding:5px 8px}#race-standings summary{min-height:32px;padding:5px 0}.winner-heading{padding:8px}.winner-heading p{font-size:12px;margin:3px 0}.winner-heading button{min-height:34px;font-size:12px}.winner-heading h2{font-size:22px}#leaderboard,#cup-table{max-height:22vh}}
@media(max-height:460px){#results .result-details{width:min(50%,520px);top:8px;bottom:8px;right:8px}.result-details p{font-size:12px;margin:2px 0}#results .result-details h2{font-size:21px}.result-actions button{min-height:40px!important;font-size:14px!important}.winner-heading{left:2%;bottom:2%;width:42%;padding:7px}.winner-heading p,#victory-line{display:none}.winner-heading h2{font-size:20px}#replay-victory{display:none}#leaderboard,#cup-table{max-height:18vh}#results .result-row{font-size:12px;padding:4px 0}}
