*{box-sizing:border-box}html,body,#scene{margin:0;width:100%;height:100%;overflow:hidden;background:#20282c;font-family:-apple-system,BlinkMacSystemFont,Arial,sans-serif;color:#fff}canvas{display:block;width:100%;height:100%;touch-action:none}.hud{position:absolute;top:max(16px,env(safe-area-inset-top));left:20px;right:20px;display:flex;gap:14px;align-items:center;text-shadow:0 2px 5px #0009;pointer-events:none}.hud>div:first-child{margin-right:auto}.hud strong,.hud small,.meter span{display:block}.hud strong{font-size:15px;letter-spacing:1px;margin-top:4px}.hud small{font-size:10px;color:#dce2e3;letter-spacing:1px}.meter{background:#10181acc;border:1px solid #ffffff26;border-radius:10px;padding:9px 13px;min-width:68px;text-align:center}.meter span{font-size:21px;font-weight:700}.road-progress{position:absolute;top:max(76px,calc(env(safe-area-inset-top) + 76px));left:20px;right:20px;height:3px;background:#ffffff50;border-radius:9px}.road-progress span{display:block;width:0;height:100%;background:#ff8a26}.hint{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);background:#10181acb;border-radius:8px;padding:9px 13px;font-size:12px;white-space:nowrap;color:#e7eeee;pointer-events:none}.overlay{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(90deg,#081014db,#10192099);padding:20px}.overlay[hidden]{display:none}.panel{width:min(100%,460px);background:#111a1ee8;border:1px solid #ffffff2c;border-radius:18px;padding:30px;box-shadow:0 15px 50px #0006}.panel small{color:#ffa754;font-size:11px;letter-spacing:2px;font-weight:700}.panel h1{font-size:clamp(28px,5vw,42px);margin:13px 0}.panel p{color:#d1dbdc;line-height:1.6}.details{border-top:1px solid #ffffff22;border-bottom:1px solid #ffffff22;padding:15px 0;margin:20px 0;color:#ecf0f0;font-size:14px;line-height:1.7}.panel button{border:0;border-radius:9px;background:#ec7923;color:white;padding:15px 23px;font-size:16px;font-weight:700;cursor:pointer}.panel a{color:#dce5e6;font-size:14px;margin-left:18px}.controls{display:none;position:absolute;bottom:max(18px,env(safe-area-inset-bottom));left:16px;right:16px;justify-content:space-between;pointer-events:none}.controls>div{display:flex;gap:9px}.controls button{pointer-events:auto;touch-action:none;border:1px solid #fff5;background:#172126ba;color:white;border-radius:12px;height:62px;min-width:62px;padding:0 16px;font-weight:bold;font-size:16px;user-select:none;-webkit-user-select:none}.controls button.pressed{background:#ec7923}@media(pointer:coarse){.controls{display:flex}.hint{bottom:95px;font-size:11px}}@media(max-width:480px){.hud{left:12px;right:12px;gap:7px}.hud strong{font-size:11px}.meter{padding:7px;min-width:58px}.meter span{font-size:18px}.panel{padding:22px}.hint{max-width:90%;overflow:hidden;text-overflow:ellipsis}}

.camera-button{position:absolute;top:max(94px,calc(env(safe-area-inset-top) + 94px));right:20px;background:#10181add;border:1px solid #ffffff66;color:white;border-radius:9px;padding:10px 14px;font-weight:bold;cursor:pointer}.helmet-frame{position:absolute;inset:0;pointer-events:none;border:24px solid #101518;border-top-width:46px;border-bottom-width:70px;border-radius:28% 28% 25% 25% / 14% 14% 18% 18%;box-shadow:inset 0 0 25px #0009}.helmet-frame[hidden]{display:none}@media(max-width:480px){.helmet-frame{border-width:12px;border-top-width:25px;border-bottom-width:40px}}

.phone-button{position:absolute;top:max(94px,calc(env(safe-area-inset-top) + 94px));right:170px;background:#10181add;border:1px solid #ffffff66;color:white;border-radius:9px;padding:10px 14px;font-weight:bold;cursor:pointer}.phone-panel{position:absolute;z-index:5;top:50%;left:50%;transform:translate(-50%,-50%);width:min(350px,90vw);max-height:85vh;overflow:auto;padding:18px;background:#f4f5f2;color:#202927;border:7px solid #1e2527;border-radius:26px;box-shadow:0 20px 80px #0009}.phone-panel[hidden]{display:none}.phone-header{display:flex;justify-content:space-between;align-items:center;font-size:20px}.phone-header button{border:0;background:#dde4df;border-radius:50%;width:34px;height:34px}.phone-panel small{color:#6b7771}.phone-panel h2{font-size:15px;margin:14px 0 8px}.conversation{background:#e8eee9;border-radius:12px;height:150px;overflow:auto;padding:8px}.bubble{padding:8px;border-radius:10px;font-size:13px;max-width:85%;margin:5px 0;overflow-wrap:anywhere}.received{background:white}.sent{background:#d5ead3;margin-left:auto}.phone-panel form{display:flex;gap:6px;margin:8px 0}.phone-panel input{min-width:0;flex:1;padding:9px;border:1px solid #cbd6cc;border-radius:9px}.phone-panel button{cursor:pointer}.phone-panel form button,.phone-market button{border:0;background:#e87522;color:white;padding:9px;border-radius:9px;font-weight:bold}.phone-market{border-top:1px solid #cbd6cc;padding-top:12px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}.phone-market p{flex-basis:100%;font-size:13px;line-height:1.4}

.cockpit{position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:min(100vw,1200px);height:34vh;pointer-events:none;z-index:1}.cockpit[hidden],.cockpit svg[hidden]{display:none}.cockpit svg{width:100%;height:100%;display:block}.steering-wheel{transform-origin:500px 265px;transition:transform .14s}.hint,.controls,.hud,.camera-button,.phone-button,.road-progress{z-index:2}@media(pointer:coarse){.cockpit{height:26vh}}

.touch-speed{position:absolute;z-index:2;top:max(96px,calc(env(safe-area-inset-top) + 96px));left:20px;width:164px;padding:12px 13px 10px;color:#f4fcf9;background:linear-gradient(150deg,#263c40,#0d171b 68%);border:1px solid #a2bcb855;border-radius:16px;box-shadow:inset 0 1px 2px #ffffff28,0 6px 18px #0006;font-variant-numeric:tabular-nums}.touch-speed-top{display:flex;justify-content:space-between;color:#aac1be;font-size:10px;font-weight:700;letter-spacing:1px}.touch-speed-status{color:#80d4ae;font-size:9px}.touch-speed-readout{display:flex;align-items:baseline;gap:7px;padding:3px 0}.touch-speed-readout strong{font-size:48px;line-height:1;font-weight:700}.touch-speed-readout span{color:#b8cac6;font-size:13px}.touch-speed-bottom{display:flex;align-items:center;justify-content:space-between;gap:5px;color:#c1d1cc;font-size:11px}.touch-speed-bottom button{border:1px solid #84aba879;background:#233f40;color:white;border-radius:9px;width:38px;height:36px;font-size:23px;line-height:1;cursor:pointer;touch-action:manipulation}.touch-speed-bottom button:active{background:#ed7923}.overlay{z-index:4}@media(max-width:480px){.touch-speed{left:10px;top:max(90px,calc(env(safe-area-inset-top) + 90px));width:130px;padding:8px}.touch-speed-readout strong{font-size:37px}.touch-speed-bottom button{width:34px;height:34px}}

.horn-button{position:absolute;z-index:2;top:max(146px,calc(env(safe-area-inset-top) + 146px));right:20px;min-width:100px;min-height:44px;padding:10px 16px;background:#263b3cdd;border:1px solid #a3bdad77;color:#fff;border-radius:10px;font-weight:800;letter-spacing:.4px;cursor:pointer;touch-action:manipulation}.horn-button:active{background:#ec7923}

.police-panel{position:absolute;z-index:5;left:50%;top:50%;transform:translate(-50%,-50%);width:min(380px,90vw);padding:25px;color:#17252d;background:#f7faf8;border-top:6px solid #315987;border-radius:16px;box-shadow:0 20px 70px #0009}.police-panel[hidden]{display:none}.police-panel small{font-weight:800;letter-spacing:1px;color:#315987}.police-panel h2{margin:12px 0}.police-panel p{line-height:1.5}.police-panel button{border:0;border-radius:9px;background:#295682;color:white;padding:12px 18px;font-weight:bold;cursor:pointer}

.airport-notice{position:absolute;z-index:3;left:50%;top:max(110px,calc(env(safe-area-inset-top) + 110px));transform:translateX(-50%);background:#174d82e8;border:1px solid #ffffff66;color:white;padding:12px 20px;border-radius:10px;font-weight:800;letter-spacing:.5px;box-shadow:0 6px 20px #0005}.airport-notice[hidden]{display:none}.panel .credits-link{display:block;margin:14px 0 0;font-size:12px;color:#a6bbbb}

#motorCockpitOld{display:none!important}.photo-motor-cockpit{position:absolute;inset:0;transform-origin:50% 85%;transition:transform .14s}.photo-motor-cockpit img{width:100%;height:100%;object-fit:fill}.photo-motor-speed{position:absolute;left:52.1%;top:72.6%;transform:translate(-50%,-50%);min-width:48px;text-align:center;background:#0a1118;color:#dce9ff;font:700 clamp(19px,3vw,37px) ui-monospace,monospace;line-height:1.1;text-shadow:0 0 8px #708cff;letter-spacing:-2px}

#carCockpitOld{display:none!important}.photo-car-cockpit{position:absolute;inset:0;transform-origin:50% 85%;transition:transform .14s}.photo-car-cockpit img{width:100%;height:100%;object-fit:fill}.photo-car-speed{position:absolute;left:46.8%;top:65%;transform:translate(-50%,-50%);color:#eef4ff;font:700 clamp(16px,2.5vw,30px) ui-monospace,monospace;text-shadow:0 0 5px #8fa6d8}

.cockpit.car-interior{width:100vw;height:42vh;height:42dvh}.cockpit-horn{position:absolute;pointer-events:auto;cursor:pointer;background:transparent;border:0;border-radius:50%;touch-action:manipulation}.cockpit-horn:focus-visible{outline:3px solid white}.car-horn{left:36%;top:72%;width:21%;height:22%}.motor-horn{left:24%;top:87%;width:7%;height:12%}.photo-car-cockpit img.horn-hand,.photo-motor-cockpit img.horn-hand{position:absolute;width:28%;height:auto;object-fit:contain;opacity:0;pointer-events:none;transform:translate(15%,18%);transition:opacity .12s,transform .18s}.photo-car-cockpit img.car-hand{left:41%;top:78%}.photo-motor-cockpit img.motor-hand{left:23%;top:84%;width:25%;transform:translate(15%,18%)}.horn-pressed .photo-car-cockpit img.car-hand{opacity:1;transform:translate(0,0)}.horn-pressed .photo-motor-cockpit img.motor-hand{opacity:1;transform:translate(0,0)}

.photo-car-cockpit img.driving-hands,.photo-motor-cockpit img.driving-hands{position:absolute;pointer-events:none;object-fit:fill}.photo-car-cockpit img.car-driving-hands{left:24%;top:45%;width:47%;height:64%}.photo-motor-cockpit img.motor-driving-hands{left:0;top:61%;width:100%;height:50%}.horn-pressed img.driving-hands{opacity:.7}

/* Modern telefon görünümü */
.phone-panel{background:#f7f8fb;border:9px solid #21252b;border-radius:38px;padding:23px 18px 18px;box-shadow:0 22px 70px #0009,inset 0 0 0 1px #888;max-height:85vh}.phone-panel:before{content:"";display:block;background:#111;border-radius:18px;width:100px;height:19px;margin:-16px auto 14px}.phone-header{font-weight:700}.conversation{background:#f4f4f6;border-radius:18px}.bubble.sent{background:#bfe8cd}.bubble.received{background:#e2e5e9}

.jump-button{position:absolute;z-index:2;top:max(200px,calc(env(safe-area-inset-top) + 200px));right:20px;min-width:100px;min-height:44px;padding:10px;border:1px solid #a3bdad77;border-radius:10px;background:#263b3cdd;color:#fff;font-weight:800;touch-action:manipulation}


.turbo-button{position:absolute;z-index:2;top:max(254px,calc(env(safe-area-inset-top) + 254px));right:20px;min-width:100px;min-height:44px;padding:10px;border:1px solid #ffbb6b;border-radius:10px;background:#8a3b10dd;color:#fff;font-weight:800;touch-action:none}.turbo-button.pressed{background:#f3791a}
