<!-- SOLID CITY · part 3397 -->
value=Yt(s.uP.value,t,8,i),s.uB.value=Yt(s.uB.value,n,6,i);let r=s.uP.value;$t.flames.forEach(a=>{a.scale.set(.9+r*.3,.9+r*.3,(1.2+r*5.5)*(.9+Math.random()*.2))}),$t.glows.forEach(a=>{a.scale.setScalar(2.4+r*4+Math.random()*.6),a.material.color.setRGB(2.5+n,1.2+n*1.4,.5+n*2.5)}),$t.heat.visible=y.heat>.02,$t.heat.material.uniforms.uA.value=y.heat*.55,$t.shield.material.opacity=Math.max(0,$t.shield.material.opacity-i*1.8)+(y.invuln>0&&gn.visible?.08+.06*Math.sin(y.t*20):0)}var bi=new $e,Ei=new $e,hy=new $e,Yi=new $e;function hp(i){let e=y.phase,t=y.pos,n=_n(hy),s=5;if(e==="pad"||e==="loading"||e==="result"||e==="parked"){let l=y.t*.12+.6,c=e==="pad"||e==="loading"?22:26;bi.set(t.x+Math.sin(l)*c,t.y+6+Math.sin(y.t*.2)*1.5,t.z+Math.cos(l)*c),Ei.copy(t).y+=1.4,s=2}else if(e==="count"||e==="climb"&&y.phaseT<2.2)_n(Yi,y.yaw,0),bi.set(-Yi.x*26+Yi.z*10,4,-Yi.z*26-Yi.x*10),Ei.copy(t).y+=3,s=3;else if(e==="landing")_n(Yi,y.yaw,0),bi.copy(t).addScaledVector(Yi,-24),bi.y+=11,Ei.copy(t).addScaledVector(Yi,14),Ei.y-=3,s=4;else if(e==="respawn")bi.copy(On.pos),Ei.copy(On.look),s=1;else{let l=ht(y.speed/hc,0,1.6),c=15+l*3.5+(y.boosting?3:0);bi.copy(t).addScaledVector(n,-c),bi.y+=4.6+Math.max(0,-n.y)*4,Ei.copy(t).addScaledVector(n,30),Ei.y+=1.5,s=7}On.init||(On.pos.copy(bi),On.look.copy(Ei),On.init=!0),On.pos.lerp(bi,1-Math.exp(-s*i)),On.look.lerp(Ei,1-Math.exp(-(s+3)*i)),Mt.position.copy(On.pos);let r=e==="battle"||e==="return"||e==="climb"&&y.phaseT>=2.2;if(r){let l=30+ht(y.speed/100,0,6),c=Mt.position.distanceTo(t);c>l&&Mt.position.lerp(t,1-l/c)}y.shake=Math.max(0,y.shake-i*1.6);let a=y.shake*y.shake*.9;a>.001&&Mt.position.add(Je.set((Math.random()-.5)*a,(Math.random()-.5)*a,(Math.random()-.5)*a)),Mt.up.set(0,1,0),Mt.lookAt(On.look),r&&Mt.rotateZ(y.roll*.25);let o=(y.boosting?16:0)+ht((y.speed-$i)/(Wf-$i),0,1)*10;y.fov=Yt(y.fov,Kf+o,4,i),Mt.fov=Math.min(110,y.fov),Mt.near=ht(vs(Mt.position.y)*.0015,.4,3),Mt.updateProjectionMatrix()}var up=new ge().setRGB(.56,.17,.2).convertSRGBToLinear(),uy=new ge().setRGB(.28,.42,.85).convertSRGBToLinear();et.fog=new kr(up.clone(),1500,16e3);var dp=new ha(9067162,1707016,1.3),cc=new da(16764832,3.2);cc.position.copy(Yf).multiplyScalar(100);et.add(dp,cc);function fp(i){let e=vs(Mt.position.y),t=cn((e-800)/6e3);Dt.alt01.value=t,Dt.dip.value=Math.acos(ht(gs/(gs+Math.max(e,0)),-1,1)),Dt.haze.value.copy(up).lerp(uy,cn((e-3e3)/5e3)).multiplyScalar(on(1,.5,t)),Dt.hazeDist.value=on(7e3,9e4,cn((e-500)/9e3)),et.fog.color.copy(Dt.haze.value),et.fog.near=on(1800,6e4,t),et.fog.far=on(17e3,4e5,t),fc.position.copy(Mt.position),Qh.position.copy(Mt.position),Qh.material.uniforms.uA.value=cn((e-2500)/4500)*1.1+.05,Qh.material.uniforms.uPx.value=Rn,dp.intensity=on(1.3,.45,t),cc.intensity=on(3.2,4.2,t),cc.color.setRGB(1,on(.81,.95,t),on(.63,.9,t));let s=cn((e-su+100)/300)*(1-cn((e-qf+100)/300))*(.45+.35*Math.sin(Mt.position.x*.011+Mt.position.z*.013)+.2*Math.sin(y.t*3));y.cloudFx=Yt(y.cloudFx,ht(s,0,.85),6,i),Ne["h-cloud"].style.opacity=y.cloudFx.toFixed(3);let r=y.phase==="return"||y.phase==="landing";ln.beam.material.opacity=Yt(ln.beam.material.opacity,r?.55:.12,2,i);let a=r?1+.08*Math.sin(y.t*4):1;ln.beam.scale.set(a,1,a),ln.glow.material.opacity=(r?.35:.14)+.12*Math.sin(y.t*(r?5:2)),ln.rings[0].material.opacity=.7+.3*Math.sin(y.t*3),ic.material.uniforms.uCam.value.copy(Mt.position),ic.material.uniforms.uA.value=.35+cn((e-3e3)/3e3)*.6,ic.material.uniforms.uPx.value=Rn;let l=!(y.phase==="pad"||y.phase==="parked"||y.phase==="result"||y.phase==="landing"||y.phase==="count")?ht((y.speed-$i*1.05)/(hc-$i),0,1.5):0,c=Bv.material.uniforms;c.uA.value=Yt(c.uA.value,ht(l*.8+(y.boosting?.5:0)+y.heat,0,1.6),6,i),c.uT.value+=i*(40+y.speed*.5),c.uLen.value=3+y.speed*.025,c.uCol.value.setRGB(1,on(.9,.55,y.heat),on(.8,.25,y.heat));let h=zn.getDrawingBufferSize(Je).y*.5/Math.tan(Mt.fov*Math.PI/360);Ti.p.material.uniforms.uScale.value=h,gc.material.uniforms.uScale.value=h}function dy(i){np(Ti);for(let e of gu){if(e.t>=e.life){e.s.visible=!1;continue}e.t+=i;let t=Math.min(1,e.t/e.life);e.s.scale.setScalar(e.size*(e.ring?.3+t*1.6:1-t*.5)),e.s.material.opacity=1-t}(y.phase==="return"||y.phase==="landing")&&y.homeShown?(Zi.visible=!0,Zi.position.copy(y.pos).addScaledVector(_n(Ot),16),Zi.position.y+=4.2,Zi.lookAt(lp),Zi.scale.setScalar((y.phase==="landing"?.55:.8)*(1+.08*Math.sin(y.t*6)))):Zi.visible=!1}var ec=new $e,Cn={};function cu(i,e){ec.copy(i).project(Mt);let[t,n]=dc();return e.x=(ec.x*.5+.5)*t,e.y=(-ec.y*.5+.5)*n,e.behind=ec.z>1,e}function Vf(i,e,t){let[n,s]=dc();cu(e,Cn);let r=Cn.x,a=Cn.y,o=Cn.behind||r<0||r>n||a<0||a>s;if(Cn.behind&&(r=n-r,a=s-a),o){let l=n/2,c=s/2,h=r-l,f=a-c,u=Math.min((n/2-30)/Math.max(.001,Math.abs(h)),(s/2-100)/Math.max(.001,Math.abs(f)));r=l+h*u,a=c+f*u,i.className="mk off "+t,i.style.transform=`translate(${r.toFixed(0)}px,${a.toFixed(0)}px) rotate(${Math.atan2(f,h).toFixed(2)}rad)`}else i.className="mk "+t,i.style.transform=`translate(${r.toFixed(0)}px,${a.toFi