.touch-controls button.pressed{background:#eefcbe!important;color:#233c23!important;transform:translateY(2px);box-shadow:inset 0 2px 6px #172d3b45}.touch-controls button small{display:block;font-size:9px;font-weight:600;margin-top:3px;letter-spacing:.3px}.touch-controls>div>button{display:flex;flex-direction:column;align-items:center;justify-content:center}.race-countdown{position:absolute;z-index:5;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:#14342c85;color:#fff;padding:24px;pointer-events:none}.race-countdown strong{font-size:100px;font-weight:900;color:var(--lime);line-height:1;margin-bottom:20px}.race-countdown b{font-size:20px}.race-countdown p{font-size:14px;line-height:1.6;max-width:290px}.touch-tip{display:none}
@media(max-width:760px), (pointer:coarse) and (max-width:1100px){
 body.mobile-race{position:fixed;top:var(--race-scroll-top,0px);left:0;width:100%;overflow:hidden;overscroll-behavior:none}
 body.mobile-race .game-layout .world.racing{--dock-height:112px;position:fixed!important;inset:0;z-index:10;width:100vw;height:100vh!important;height:100dvh!important;min-height:0!important;border-radius:0;touch-action:none;overscroll-behavior:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;background:#183535}
 body.mobile-race .world.racing>canvas{position:absolute;top:0;left:0;width:100%;height:calc(100% - var(--dock-height) - env(safe-area-inset-bottom,0px))!important;min-height:0!important;touch-action:none}
 body.mobile-race .world.racing .world-top{top:calc(14px + env(safe-area-inset-top,0px));left:calc(16px + env(safe-area-inset-left,0px));right:calc(16px + env(safe-area-inset-right,0px))}
 body.mobile-race .world.racing .race-hud{top:calc(40px + env(safe-area-inset-top,0px));left:calc(12px + env(safe-area-inset-left,0px));right:calc(12px + env(safe-area-inset-right,0px));padding:8px 12px;gap:15px}
 body.mobile-race .race-hud .icon-btn{min-width:48px;min-height:48px}
 body.mobile-race .world.racing .touch-controls{position:absolute;bottom:0;left:0;right:0;height:calc(var(--dock-height) + env(safe-area-inset-bottom,0px));display:flex;gap:12px;align-items:stretch;padding:10px calc(12px + env(safe-area-inset-right,0px)) calc(10px + env(safe-area-inset-bottom,0px)) calc(12px + env(safe-area-inset-left,0px));background:#17342f;border-top:1px solid #ffffff25;z-index:6;touch-action:none}
 body.mobile-race .touch-controls>div{flex:2;display:flex;gap:10px}
 body.mobile-race .touch-controls button{height:100%;min-height:68px;min-width:0;border-radius:18px;border:1px solid #ffffff38;touch-action:none;flex:1;font-size:34px;background:#2c5146;box-shadow:0 3px 0 #102a23}
 body.mobile-race .touch-controls #jump{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;font-size:11px;padding:10px 5px;background:var(--lime);color:#24351a}
 body.mobile-race .touch-controls #jump span{font-size:30px;line-height:1;order:-1}
 body.mobile-race .touch-tip{display:block;position:absolute;bottom:calc(var(--dock-height) + env(safe-area-inset-bottom,0px) + 8px);left:10px;right:10px;text-align:center;pointer-events:none;color:#fff;font-size:10px;text-shadow:0 1px 4px #102c26;letter-spacing:.1px}
 body.mobile-race .world.racing #toast{bottom:calc(var(--dock-height) + env(safe-area-inset-bottom,0px) + 35px);max-width:90%;width:max-content;font-size:11px}
 body.mobile-race .race-countdown{bottom:calc(var(--dock-height) + env(safe-area-inset-bottom,0px))}
 body.mobile-race .modal-layer{z-index:30}body.mobile-race .modal{max-height:calc(100dvh - 24px);overflow:auto}
}
@media(max-height:500px) and (orientation:landscape){body.mobile-race .game-layout .world.racing{--dock-height:82px}body.mobile-race .world-top{display:none}body.mobile-race .world.racing .race-hud{top:calc(7px + env(safe-area-inset-top,0px));padding:4px 10px}body.mobile-race .race-hud strong{font-size:20px}body.mobile-race .race-hud .icon-btn{min-height:42px}body.mobile-race .touch-controls button{min-height:58px}body.mobile-race .touch-tip{font-size:9px;bottom:calc(var(--dock-height) + env(safe-area-inset-bottom,0px) + 4px)}body.mobile-race .race-countdown strong{font-size:64px;margin-bottom:8px}body.mobile-race .race-countdown p{margin:8px 0;font-size:12px}}
