1<!DOCTYPE html+>
2<html lang=__PH_0__>
3<head>
4 <title>Jetston Boulevard — Triple-A Pure HoneyScript (HTML+) 3D Driving Game</title>
5</head>
6<body>
7 <!-- Strict immutable constants & continuous analog driving state -->
8 <const road-edge=__PH_0__ cruise-mph=__PH_0__ max-gas-mph=__PH_0__ min-brake-mph=__PH_0__ turbo-mph=__PH_0__ />
9 <var phase=__PH_0__ key=__PH_0__ score=__PH_0__ best=__PH_0__ mph=__PH_0__ top-mph=__PH_0__
10 boost=__PH_0__ turbo=__PH_0__ gas=__PH_0__ brake=__PH_0__
11 key-left=__PH_0__ key-right=__PH_0__ steer-x=__PH_0__ steer-y=__PH_0__ steer-in=__PH_0__
12 car-x=__PH_0__ tilt=__PH_0__ hearts=__PH_0__ invuln=__PH_0__ misses=__PH_0__ rings=__PH_0__ road-z=__PH_0__
13 t1-x=__PH_0__ t1-z=__PH_0__ t2-x=__PH_0__ t2-z=__PH_0__ t3-x=__PH_0__ t3-z=__PH_0__
14 orb-x=__PH_0__ orb-z=__PH_0__ rank=__PH_0__
15 atmo-idx=__PH_0__ atmo=__PH_0__ atmo-label=__PH_0__ />
16
17 <!-- Triple-A HoneyScript 3D Scene (2048px PCF Shadows · AgX Cinema · Goddess Veronica Assets) -->
18 <scene id=__PH_0__ atmosphere=__PH_0__ shadows=__PH_0__ tonemap=__PH_0__ bloom=__PH_0__ grain=__PH_0__>
19 <camera id=__PH_0__ mode=__PH_0__ distance=__PH_0__ height=__PH_0__ fov=__PH_0__ speed=__PH_0__ />
20
21 <!-- Real 2K 4-Channel PBR Sun-Baked Asphalt & Concrete Sidewalk from Goddess Veronica -->
22 <road id=__PH_0__ width=__PH_0__ scroll=__PH_0__
23 albedo=__PH_0__
24 normal=__PH_0__
25 roughness=__PH_0__
26 ao=__PH_0__
27 sidewalk-albedo=__PH_0__
28 sidewalk-normal=__PH_0__
29 sidewalk-roughness=__PH_0__
30 sidewalk-ao=__PH_0__ />
31
32 <!-- Repeating Jetston Boulevard Scenery (.glb from Goddess Veronica) -->
33 <scenery id=__PH_0__ model=__PH_0__ side=__PH_0__ spacing=__PH_0__ offset=__PH_0__ scale=__PH_0__ />
34 <scenery id=__PH_0__ model=__PH_0__ side=__PH_0__ spacing=__PH_0__ offset=__PH_0__ scale=__PH_0__ />
35 <scenery id=__PH_0__ model=__PH_0__ side=__PH_0__ spacing=__PH_0__ offset=__PH_0__ scale=__PH_0__ />
36 <scenery id=__PH_0__ model=__PH_0__ side=__PH_0__ spacing=__PH_0__ offset=__PH_0__ scale=__PH_0__ />
37 <scenery id=__PH_0__ model=__PH_0__ side=__PH_0__ spacing=__PH_0__ offset=__PH_0__ scale=__PH_0__ />
38
39 <!-- Hero Gold Muscle Car (Live Steering, Roll, Brake Lights & Nitro) + Traffic -->
40 <model id=__PH_0__ src=__PH_0__ x=__PH_0__ y=__PH_0__ z=__PH_0__ yaw=__PH_0__ roll=__PH_0__ boost=__PH_0__ brake=__PH_0__ />
41 <model id=__PH_0__ src=__PH_0__ x=__PH_0__ y=__PH_0__ z=__PH_0__ yaw=__PH_0__ />
42 <model id=__PH_0__ src=__PH_0__ x=__PH_0__ y=__PH_0__ z=__PH_0__ yaw=__PH_0__ siren=__PH_0__ />
43 <model id=__PH_0__ src=__PH_0__ x=__PH_0__ y=__PH_0__ z=__PH_0__ yaw=__PH_0__ />
44
45 <!-- Brushed-Gold Street Boost Checkpoint -->
46 <checkpoint id=__PH_0__ x=__PH_0__ y=__PH_0__ z=__PH_0__ />
47 </scene>
48
49 <!-- Helper functions -->
50 <fn name=__PH_0__ args=__PH_0__>
51 return: calc($idx * 4.3);
52 </fn>
53
54 <fn name=__PH_0__ args=__PH_0__>
55 @if ($pts >= 2500) { return: __PH_0__; }
56 @else if ($pts >= 1400) { return: __PH_0__; }
57 @else if ($pts >= 650) { return: __PH_0__; }
58 @else { return: __PH_0__; }
59 </fn>
60
61 <!-- Core 3D Analog Driving Physics in Native CSS+ -->
62 <function name=__PH_0__>
63 #nitro-fill { width: concat(round($boost), __PH_0__); }
64 @if ($turbo == true) {
65 #nitro-fill { background: linear-gradient(90deg, #f5c542, #fde68a); }
66 #mph-val { color: #f5c542; }
67 } @else if ($brake == true) {
68 #nitro-fill { background: linear-gradient(90deg, #b48224, #e5b84b); }
69 #mph-val { color: #f87171; }
70 } @else {
71 #nitro-fill { background: linear-gradient(90deg, #b48224, #e5b84b); }
72 #mph-val { color: #fafafa; }
73 }
74 </function>
75
76 <function name=__PH_0__>
77 @if ($phase == __PH_0__ && $boost >= 20 && $turbo == false) {
78 $turbo: true;
79 $brake: false;
80 call: sync-hud();
81 #feed { color: #f5c542; content: __PH_0__; }
82 }
83 </function>
84
85 <function name=__PH_0__>
86 $phase: __PH_0__;
87 $score: 0;
88 $mph: $cruise-mph;
89 $top-mph: $cruise-mph;
90 $boost: 100;
91 $turbo: false;
92 $gas: false;
93 $brake: false;
94 $key-left: false;
95 $key-right: false;
96 $steer-x: 0;
97 $steer-y: 0;
98 $car-x: 0;
99 $tilt: 0;
100 $hearts: 3;
101 $invuln: 0;
102 $misses: 0;
103 $rings: 0;
104 $t1-x: -4.3; $t1-z: -78;
105 $t2-x: 4.3; $t2-z: -144;
106 $t3-x: 0; $t3-z: -210;
107 $orb-x: 4.3; $orb-z: -108;
108 call: sync-hud();
109 #feed { color: #e5b84b; content: __PH_0__; }
110 </function>
111
112 <function name=__PH_0__>
113 $phase: __PH_0__;
114 $turbo: false;
115 $gas: false;
116 $brake: false;
117 $rank: call(rank-for, $score);
118 @if ($score > $best) { $best: $score; }
119 save: __PH_0__;
120 </function>
121
122 <function name=__PH_0__>
123 @if ($invuln <= 0) {
124 $hearts: calc($hearts - 1);
125 $invuln: 38;
126 $turbo: false;
127 $mph: 92;
128 call: sync-hud();
129 #feed { color: #f87171; content: __PH_0__; }
130 @if ($hearts <= 0) {
131 call: finish-run();
132 }
133 }
134 </function>
135
136 <function name=__PH_0__>
137 @if ($phase == __PH_0__) {
138 @if ($invuln > 0) { $invuln: calc($invuln - 1); }
139
140 /* Combine Analog Thumbstick ($steer-x) + Continuous Held Keyboard ($key-left/$key-right) */
141 $steer-in: $steer-x;
142 @if ($key-left == true) { $steer-in: calc($steer-in - 1); }
143 @if ($key-right == true) { $steer-in: calc($steer-in + 1); }
144 $steer-in: max(-1, min(1, $steer-in));
145
146 /* Smooth continuous carving across the 13.8m boulevard */
147 $car-x: max(calc(0 - $road-edge), min($road-edge, calc($car-x + calc($steer-in * 0.36))));
148 $tilt: calc($steer-in * -5.5);
149
150 /* Fluid Throttle, Brake & Nitro Acceleration Physics */
151 @if ($turbo == true) {
152 $boost: max(0, calc($boost - 1.75));
153 $mph: min($turbo-mph, calc($mph + 6.5));
154 $score: calc($score + 5);
155 @if ($boost <= 0) {
156 $turbo: false;
157 #feed { color: #d4d4d8; content: __PH_0__; }
158 }
159 } @else if ($brake == true || $steer-y < -0.55) {
160 $boost: min(100, calc($boost + 0.35));
161 $mph: max($min-brake-mph, calc($mph - 4.8));
162 $score: calc($score + 1);
163 } @else if ($gas == true || $steer-y > 0.55) {
164 $boost: min(100, calc($boost + 0.35));
165 $mph: min($max-gas-mph, calc($mph + 3.2));
166 $score: calc($score + 3);
167 } @else {
168 $boost: min(100, calc($boost + 0.30));
169 @if ($mph > $cruise-mph) { $mph: max($cruise-mph, calc($mph - 1.4)); }
170 @else { $mph: min($cruise-mph, calc($mph + 1.8)); }
171 $score: calc($score + 2);
172 }
173
174 $mph: round($mph);
175 @if ($mph > $top-mph) { $top-mph: $mph; }
176 @if ($score > $best) { $best: $score; }
177 call: sync-hud();
178
179 $road-z: calc($road-z + calc($mph * 0.015));
180
181 /* Advance Traffic #1 (Jetston Taxi) */
182 $t1-z: calc($t1-z + calc($mph * 0.0115));
183 @if ($t1-z > -4.5 && $t1-z < 4.5 && abs(calc($t1-x - $car-x)) < 2.0) {
184 $t1-z: -195;
185 $t1-x: call(lane-to-x, random(-1, 1));
186 call: take-hit();
187 } @else if ($t1-z > 12) {
188 @if (abs(calc($t1-x - $car-x)) < 4.4) {
189 $misses: calc($misses + 1);
190 $score: calc($score + 75);
191 #feed { color: #e5b84b; content: __PH_0__; }
192 }
193 $t1-z: calc(-165 - random(0, 45));
194 $t1-x: call(lane-to-x, random(-1, 1));
195 }
196
197 /* Advance Traffic #2 (JPD Police Cruiser) */
198 $t2-z: calc($t2-z + calc($mph * 0.013));
199 @if ($t2-z > -4.7 && $t2-z < 4.7 && abs(calc($t2-x - $car-x)) < 2.0) {
200 $t2-z: -210;
201 $t2-x: call(lane-to-x, random(-1, 1));
202 call: take-hit();
203 } @else if ($t2-z > 12) {
204 @if (abs(calc($t2-x - $car-x)) < 4.4) {
205 $misses: calc($misses + 1);
206 $score: calc($score + 100);
207 #feed { color: #93c5fd; content: __PH_0__; }
208 }
209 $t2-z: calc(-175 - random(0, 50));
210 $t2-x: call(lane-to-x, random(-1, 1));
211 }
212
213 /* Advance Traffic #3 (Midnight Blue Sedan) */
214 $t3-z: calc($t3-z + calc($mph * 0.011));
215 @if ($t3-z > -4.5 && $t3-z < 4.5 && abs(calc($t3-x - $car-x)) < 2.0) {
216 $t3-z: -225;
217 $t3-x: call(lane-to-x, random(-1, 1));
218 call: take-hit();
219 } @else if ($t3-z > 12) {
220 $t3-z: calc(-185 - random(0, 55));
221 $t3-x: call(lane-to-x, random(-1, 1));
222 }
223
224 /* Advance Gold Boost Checkpoint */
225 $orb-z: calc($orb-z + calc($mph * 0.0145));
226 @if ($orb-z > -3.4 && $orb-z < 3.4 && abs(calc($orb-x - $car-x)) < 2.35) {
227 $rings: calc($rings + 1);
228 $score: calc($score + 150);
229 $boost: min(100, calc($boost + 35));
230 $orb-z: calc(-150 - random(0, 55));
231 $orb-x: call(lane-to-x, random(-1, 1));
232 call: sync-hud();
233 #feed { color: #4ade80; content: __PH_0__; }
234 } @else if ($orb-z > 12) {
235 $orb-z: calc(-145 - random(0, 60));
236 $orb-x: call(lane-to-x, random(-1, 1));
237 }
238 }
239 </function>
240
241 <function name=__PH_0__>
242 $atmo-idx: calc(calc($atmo-idx + 1) % 4);
243 @if ($atmo-idx == 0) { $atmo: __PH_0__; $atmo-label: __PH_0__; }
244 @else if ($atmo-idx == 1) { $atmo: __PH_0__; $atmo-label: __PH_0__; }
245 @else if ($atmo-idx == 2) { $atmo: __PH_0__; $atmo-label: __PH_0__; }
246 @else { $atmo: __PH_0__; $atmo-label: __PH_0__; }
247 #feed { color: #e5b84b; content: __PH_0__; }
248 </function>
249
250 <function name=__PH_0__>
251 @if ($key == __PH_0__ || $key == __PH_0__) {
252 call: cycle-atmosphere();
253 } @else if ($phase == __PH_0__) {
254 @if ($key == __PH_0__ || $key == __PH_0__ || $key == __PH_0__) { $key-left: true; }
255 @else if ($key == __PH_0__ || $key == __PH_0__ || $key == __PH_0__) { $key-right: true; }
256 @else if ($key == __PH_0__ || $key == __PH_0__ || $key == __PH_0__) { $gas: true; }
257 @else if ($key == __PH_0__ || $key == __PH_0__ || $key == __PH_0__) { $brake: true; $turbo: false; }
258 @else if ($key == __PH_0__ || $key == __PH_0__) { call: fire-nitro(); }
259 } @else if ($key == __PH_0__ || $key == __PH_0__) {
260 call: start-run();
261 }
262 </function>
263
264 <function name=__PH_0__>
265 @if ($key == __PH_0__ || $key == __PH_0__ || $key == __PH_0__) { $key-left: false; }
266 @else if ($key == __PH_0__ || $key == __PH_0__ || $key == __PH_0__) { $key-right: false; }
267 @else if ($key == __PH_0__ || $key == __PH_0__ || $key == __PH_0__) { $gas: false; }
268 @else if ($key == __PH_0__ || $key == __PH_0__ || $key == __PH_0__) { $brake: false; }
269 </function>
270
271 <!-- Minimal Cinema HUD -->
272 <header id=__PH_0__>
273 <div class=__PH_0__>
274 <span class=__PH_0__>SCORE</span>
275 <strong id=__PH_0__ class=__PH_0__>$score</strong>
276 </div>
277 <div class=__PH_0__>
278 <span class=__PH_0__>SPEED</span>
279 <strong id=__PH_0__ class=__PH_0__>$mph MPH</strong>
280 </div>
281 <div class=__PH_0__>
282 <span class=__PH_0__>NITRO</span>
283 <div id=__PH_0__><div id=__PH_0__></div></div>
284 </div>
285 <div class=__PH_0__>
286 <span class=__PH_0__>CHASSIS</span>
287 <strong class=__PH_0__>$hearts</strong>
288 </div>
289 <div class=__PH_0__>
290 <span class=__PH_0__>BEST</span>
291 <strong class=__PH_0__>$best</strong>
292 </div>
293 </header>
294
295 <!-- Live Status Pill + Time-of-Day Switcher -->
296 <div id=__PH_0__>
297 <p id=__PH_0__>Cruising Jetston Boulevard — press DRIVE NOW or T to switch time of day.</p>
298 <button id=__PH_0__ class=__PH_0__>$atmo-label (T)</button>
299 </div>
300
301 <!-- Title Screen Overlay -->
302 <section id=__PH_0__ class=__PH_0__ if=__PH_0__>
303 <div class=__PH_0__>
304 <span class=__PH_0__>PURE HONEYSCRIPT · AGX CINEMA · GODDESS VERONICA ASSETS</span>
305 <h1>JETSTON BOULEVARD</h1>
306 <p class=__PH_0__>
307 2K matte asphalt PBR, 2048px soft PCF shadows, Rayleigh volumetric clouds, Troy Sobotka AgX grading, and fluid Goddess Veronica-style multi-touch steering and pedals.
308 </p>
309 <p class=__PH_0__>Touch: Analog Thumbstick + Gas / Brake / Nitro · Keys: WASD / Arrows + Space</p>
310 <button id=__PH_0__ class=__PH_0__>DRIVE NOW</button>
311 </div>
312 </section>
313
314 <!-- Game Over Overlay -->
315 <section id=__PH_0__ class=__PH_0__ if=__PH_0__>
316 <div class=__PH_0__>
317 <span class=__PH_0__>$rank</span>
318 <h1>RUN COMPLETE</h1>
319 <div class=__PH_0__>
320 <div><span class=__PH_0__>SCORE</span><strong class=__PH_0__>$score</strong></div>
321 <div><span class=__PH_0__>CLEAN PASSES</span><strong class=__PH_0__>$misses</strong></div>
322 <div><span class=__PH_0__>TOP SPEED</span><strong class=__PH_0__>$top-mph</strong></div>
323 </div>
324 <button id=__PH_0__ class=__PH_0__>DRIVE AGAIN</button>
325 </div>
326 </section>
327
328 <!-- Goddess Veronica-Style Touch-Location Analog Steering (Entire Left Half) + Translucent Right Pedals -->
329 <thumbstick id=__PH_0__ mode=__PH_0__ bind-x=__PH_0__ bind-y=__PH_0__ if=__PH_0__ />
330
331 <div id=__PH_0__ if=__PH_0__>
332 <button id=__PH_0__ class=__PH_0__>NITRO</button>
333 <div class=__PH_0__>
334 <button id=__PH_0__ class=__PH_0__>
335 <span class=__PH_0__></span>
336 <span class=__PH_0__>BRAKE</span>
337 </button>
338 <button id=__PH_0__ class=__PH_0__>
339 <span class=__PH_0__></span>
340 <span class=__PH_0__>GAS</span>
341 </button>
342 </div>
343 </div>
344
345 <!-- Pure CSS3 HUD, Analog Thumbstick & Sculpted Driving Pedal Styling + Reactive Wiring -->
346 <style>
347 * { box-sizing: border-box; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
348 body {
349 margin: 0; width: 100vw; height: 100vh; overflow: hidden; touch-action: none;
350 background: #0a0908; color: #fafafa;
351 font-family: -apple-system, BlinkMacSystemFont, __PH_0__, __PH_0__, sans-serif;
352 }
353 #viewport { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; }
354
355 #hud {
356 position: fixed; top: 12px; left: 12px; right: 12px; z-index: 10;
357 display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
358 pointer-events: none;
359 }
360 .pill-stat {
361 background: rgba(10, 10, 12, 0.44); backdrop-filter: blur(10px);
362 border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 10px;
363 padding: 7px 8px; text-align: center;
364 }
365 .lbl {
366 display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.09em;
367 color: #a1a1aa; margin-bottom: 2px;
368 }
369 .val { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
370 .gold { color: #e5b84b; }
371 .ruby { color: #f87171; }
372 .muted { color: #d4d4d8; }
373
374 #nitro-track {
375 width: 100%; height: 7px; margin-top: 6px; border-radius: 999px; overflow: hidden;
376 background: rgba(255, 255, 255, 0.12);
377 }
378 #nitro-fill {
379 width: 100%; height: 100%; border-radius: 999px;
380 background: linear-gradient(90deg, #b48224, #e5b84b);
381 transition: width 0.1s linear;
382 }
383
384 #top-bar {
385 position: fixed; top: 68px; left: 12px; right: 12px; z-index: 22;
386 display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
387 pointer-events: none;
388 }
389 #feed {
390 margin: 0; padding: 5px 12px; border-radius: 999px;
391 background: rgba(10, 10, 12, 0.42); backdrop-filter: blur(8px);
392 border: 1px solid rgba(255, 255, 255, 0.09);
393 font-size: 11.5px; color: rgba(244, 244, 245, 0.88);
394 }
395 .atmo-pill {
396 pointer-events: auto; padding: 6px 13px; border-radius: 999px; cursor: pointer;
397 background: rgba(10, 10, 12, 0.46); backdrop-filter: blur(8px);
398 border: 1px solid rgba(229, 184, 75, 0.36); color: #e5b84b;
399 font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
400 opacity: 0.72; transition: transform 0.12s ease, opacity 0.15s ease, background 0.15s ease;
401 }
402 .atmo-pill:hover { opacity: 1; transform: scale(1.04); background: rgba(229, 184, 75, 0.16); }
403
404 .overlay {
405 position: fixed; inset: 0; z-index: 15; padding: 24px;
406 display: flex; align-items: center; justify-content: center;
407 background: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.62));
408 }
409 .card {
410 width: 100%; max-width: 440px; text-align: center; padding: 28px 26px;
411 border-radius: 16px; background: rgba(10, 10, 12, 0.82); backdrop-filter: blur(16px);
412 border: 1px solid rgba(255, 255, 255, 0.14);
413 box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
414 display: flex; flex-direction: column; align-items: center; gap: 12px;
415 }
416 .badge {
417 padding: 4px 12px; border-radius: 999px; font-size: 10px; font-weight: 700;
418 letter-spacing: 0.08em; color: #e5b84b;
419 background: rgba(229, 184, 75, 0.12); border: 1px solid rgba(229, 184, 75, 0.34);
420 }
421 h1 { margin: 0; font-size: 34px; letter-spacing: -0.035em; line-height: 1.04; }
422 .sub { margin: 0; font-size: 13.5px; color: #d4d4d8; line-height: 1.55; }
423 .keys { margin: 0; font-size: 11.5px; color: #e5b84b; font-weight: 600; }
424
425 .summary {
426 display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; margin: 6px 0;
427 }
428 .summary div {
429 background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.10);
430 border-radius: 10px; padding: 10px 6px;
431 }
432 .big { font-size: 20px; font-weight: 700; }
433
434 .cta {
435 margin-top: 4px; padding: 12px 32px; border-radius: 999px; border: none;
436 background: #fafafa; color: #050505;
437 font-size: 13.5px; font-weight: 800; letter-spacing: 0.05em; cursor: pointer;
438 transition: transform 0.15s ease, background 0.15s ease;
439 }
440 .cta:hover { transform: scale(1.04); background: #e5b84b; }
441
442 /* Full Left-Half Touch-Location-Driven Floating Steering Zone */
443 #steer-stick {
444 position: fixed; left: 0; top: 112px; bottom: 0; width: 52vw; z-index: 18;
445 }
446
447 /* Translucent Right-Side Multi-Touch Pedal Rig (Subtle at rest, crisp on touch!) */
448 #right-rig {
449 position: fixed; right: 16px; bottom: 16px; z-index: 20;
450 display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
451 pointer-events: none;
452 }
453 .nitro-trigger {
454 pointer-events: auto; padding: 9px 22px; border-radius: 999px; cursor: pointer; touch-action: none;
455 background: linear-gradient(135deg, rgba(245, 207, 107, 0.62), rgba(201, 146, 32, 0.58));
456 backdrop-filter: blur(6px); color: #fafafa;
457 border: 1px solid rgba(255, 240, 190, 0.45);
458 font-size: 11px; font-weight: 800; letter-spacing: 0.12em;
459 opacity: 0.44; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
460 transition: transform 0.08s ease, opacity 0.14s ease;
461 }
462 .nitro-trigger.hny-pressed { transform: scale(0.93); opacity: 0.92; background: #e5b84b; color: #050505; }
463
464 .pedal-row { display: flex; align-items: flex-end; gap: 14px; }
465 .pedal {
466 pointer-events: auto; border-radius: 16px; cursor: pointer; touch-action: none;
467 backdrop-filter: blur(6px); color: rgba(250, 250, 250, 0.9);
468 display: flex; flex-direction: column; align-items: center; justify-content: space-between;
469 padding: 14px 12px 12px;
470 opacity: 0.36;
471 box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28), inset 0 1px 1px rgba(255, 255, 255, 0.22);
472 transition: transform 0.07s ease, opacity 0.14s ease, border-color 0.1s ease, background 0.1s ease;
473 }
474 .pedal-brake {
475 width: 78px; height: 84px;
476 background: linear-gradient(180deg, rgba(44, 18, 22, 0.42), rgba(16, 8, 10, 0.56));
477 border: 1.5px solid rgba(248, 113, 113, 0.42);
478 }
479 .pedal-gas {
480 width: 74px; height: 118px;
481 background: linear-gradient(180deg, rgba(36, 32, 22, 0.42), rgba(12, 11, 10, 0.56));
482 border: 1.5px solid rgba(229, 184, 75, 0.48);
483 }
484 .pedal.hny-pressed { transform: scale(0.94) translateY(3px); opacity: 0.88; }
485 .pedal-brake.hny-pressed { background: rgba(239, 68, 68, 0.48); border-color: #f87171; }
486 .pedal-gas.hny-pressed { background: rgba(229, 184, 75, 0.42); border-color: #f5c542; }
487 .pedal-grip {
488 width: 70%; height: 22px; border-radius: 4px;
489 background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.26) 0px, rgba(255, 255, 255, 0.26) 3px, transparent 3px, transparent 7px);
490 pointer-events: none;
491 }
492 .pedal-txt {
493 font-size: 10px; font-weight: 800; letter-spacing: 0.11em; pointer-events: none;
494 text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
495 }
496
497 /* Reactive Event Wiring & 30 Hz Analog Driving Physics Loop */
498 body:load {
499 @try {
500 load: __PH_0__;
501 $phase: __PH_0__;
502 $score: 0;
503 $mph: $cruise-mph;
504 $boost: 100;
505 $turbo: false;
506 $gas: false;
507 $brake: false;
508 $hearts: 3;
509 $car-x: 0;
510 } @catch ($err) {
511 $best: 0;
512 }
513 }
514 body:keydown { call: handle-keydown(); }
515 body:keyup { call: handle-keyup(); }
516 #start-btn:click { call: start-run(); }
517 #retry-btn:click { call: start-run(); }
518 #atmo-btn:click { call: cycle-atmosphere(); }
519 #gas-pedal:press { $gas: true; }
520 #gas-pedal:release { $gas: false; }
521 #brake-pedal:press { $brake: true; $turbo: false; }
522 #brake-pedal:release { $brake: false; }
523 #nitro-btn:press { call: fire-nitro(); }
524 @every(33ms) { call: game-tick(); }
525 </style>
526</body>
527</html>
528
1<!DOCTYPE html+>
2<html lang=__PH_0__>
3<head>
4 <title>Nectar Rush — Pure HoneyScript (HTML+) Mini-Game</title>
5</head>
6<body>
7 <!-- Strict immutable constants & live game state -->
8 <const round-time=__PH_0__ base-pts=__PH_0__ />
9 <var phase=__PH_0__ score=__PH_0__ best=__PH_0__ combo=__PH_0__ max-combo=__PH_0__
10 time=__PH_0__ hearts=__PH_0__ hits=__PH_0__ last-pts=__PH_0__ bonus=__PH_0__
11 rank=__PH_0__ ox=__PH_0__ oy=__PH_0__ hx=__PH_0__ hy=__PH_0__ rx=__PH_0__ ry=__PH_0__ />
12
13 <!-- Pure HoneyScript helper functions -->
14 <fn name=__PH_0__ args=__PH_0__>
15 return: calc($base-pts + calc(min($streak, 10) * 5));
16 </fn>
17
18 <fn name=__PH_0__ args=__PH_0__>
19 @if ($pts >= 750) { return: __PH_0__; }
20 @else if ($pts >= 450) { return: __PH_0__; }
21 @else if ($pts >= 220) { return: __PH_0__; }
22 @else { return: __PH_0__; }
23 </fn>
24
25 <!-- Core game logic written in native CSS+ syntax -->
26 <function name=__PH_0__>
27 $ox: random(14, 86);
28 $oy: random(18, 82);
29 $hx: random(14, 86);
30 $hy: random(18, 82);
31 @if (abs(calc($hx - $ox)) < 18) {
32 @if ($ox > 50) { $hx: calc($ox - 24); }
33 @else { $hx: calc($ox + 24); }
34 }
35 #orb { left: concat($ox, __PH_0__); top: concat($oy, __PH_0__); }
36 #hornet { left: concat($hx, __PH_0__); top: concat($hy, __PH_0__); }
37 </function>
38
39 <function name=__PH_0__>
40 #time-fill { width: concat(round(calc($time * 100 / $round-time)), __PH_0__); }
41 @if ($time <= 8) {
42 #time-fill { background: linear-gradient(90deg, #ef4444, #f97316); }
43 #time-val { color: #f87171; }
44 } @else {
45 #time-fill { background: linear-gradient(90deg, #e5b84b, #f59e0b); }
46 #time-val { color: #fafafa; }
47 }
48 </function>
49
50 <function name=__PH_0__>
51 $phase: __PH_0__;
52 $score: 0;
53 $combo: 0;
54 $max-combo: 0;
55 $hits: 0;
56 $hearts: 3;
57 $time: $round-time;
58 $bonus: false;
59 call: place-entities();
60 call: sync-bar();
61 #feed { color: #e5b84b; content: __PH_0__; }
62 </function>
63
64 <function name=__PH_0__>
65 $phase: __PH_0__;
66 $bonus: false;
67 $rank: call(rank-for, $score);
68 @if ($score > $best) { $best: $score; }
69 save: __PH_0__;
70 </function>
71
72 <function name=__PH_0__>
73 @if ($phase == __PH_0__) {
74 $combo: calc($combo + 1);
75 $hits: calc($hits + 1);
76 $last-pts: call(calc-points, $combo);
77 $score: calc($score + $last-pts);
78 @if ($combo > $max-combo) { $max-combo: $combo; }
79 @if ($score > $best) { $best: $score; }
80
81 @if (calc($combo % 5) == 0) {
82 $bonus: true;
83 $rx: random(16, 84);
84 $ry: random(20, 80);
85 #royal { left: concat($rx, __PH_0__); top: concat($ry, __PH_0__); }
86 #feed { color: #4ade80; content: __PH_0__; }
87 } @else {
88 #feed { color: #e5b84b; content: __PH_0__; }
89 }
90
91 #arena { border-color: rgba(229, 184, 75, 0.65); }
92 @after(180ms) { #arena { border-color: rgba(255, 255, 255, 0.12); } }
93 call: place-entities();
94 }
95 </function>
96
97 <function name=__PH_0__>
98 @if ($phase == __PH_0__ && $bonus == true) {
99 $bonus: false;
100 $score: calc($score + 100);
101 $combo: calc($combo + 2);
102 $time: min($round-time, calc($time + 3));
103 @if ($combo > $max-combo) { $max-combo: $combo; }
104 @if ($score > $best) { $best: $score; }
105 call: sync-bar();
106 #feed { color: #4ade80; content: __PH_0__; }
107 #arena { border-color: rgba(74, 222, 128, 0.75); }
108 @after(260ms) { #arena { border-color: rgba(255, 255, 255, 0.12); } }
109 }
110 </function>
111
112 <function name=__PH_0__>
113 @if ($phase == __PH_0__) {
114 $hearts: calc($hearts - 1);
115 $combo: 0;
116 #feed { color: #f87171; content: __PH_0__; }
117 #arena { border-color: rgba(248, 113, 113, 0.85); }
118 @after(260ms) { #arena { border-color: rgba(255, 255, 255, 0.12); } }
119 @if ($hearts <= 0) {
120 call: end-game();
121 } @else {
122 call: place-entities();
123 }
124 }
125 </function>
126
127 <function name=__PH_0__>
128 @if ($phase == __PH_0__) {
129 $time: calc($time - 1);
130 call: sync-bar();
131 @if ($time <= 0) {
132 call: end-game();
133 } @else if (calc($time % 2) == 0) {
134 $hx: random(14, 86);
135 $hy: random(18, 82);
136 #hornet { left: concat($hx, __PH_0__); top: concat($hy, __PH_0__); }
137 }
138 }
139 </function>
140
141 <!-- Pure HTML5 Game Interface -->
142 <main id=__PH_0__>
143 <header id=__PH_0__>
144 <div class=__PH_0__>
145 <span class=__PH_0__>SCORE</span>
146 <strong id=__PH_0__ class=__PH_0__>$score</strong>
147 </div>
148 <div class=__PH_0__>
149 <span class=__PH_0__>COMBO</span>
150 <strong class=__PH_0__>x$combo</strong>
151 </div>
152 <div class=__PH_0__>
153 <span class=__PH_0__>TIME</span>
154 <strong id=__PH_0__ class=__PH_0__>{$time}s</strong>
155 </div>
156 <div class=__PH_0__>
157 <span class=__PH_0__>HEARTS</span>
158 <strong class=__PH_0__>$hearts</strong>
159 </div>
160 <div class=__PH_0__>
161 <span class=__PH_0__>BEST</span>
162 <strong class=__PH_0__>$best</strong>
163 </div>
164 </header>
165
166 <div id=__PH_0__><div id=__PH_0__></div></div>
167
168 <section id=__PH_0__>
169 <!-- Title Screen -->
170 <div id=__PH_0__ class=__PH_0__ if=__PH_0__>
171 <span class=__PH_0__>PURE HONEYSCRIPT · HTML+</span>
172 <h1>NECTAR RUSH</h1>
173 <p class=__PH_0__>
174 Tap glowing golden nectar orbs to stack combo multipliers.
175 Every 5x streak spawns emerald Royal Jelly (+100 pts and +3s).
176 Avoid the roaming crimson hornet!
177 </p>
178 <button id=__PH_0__ class=__PH_0__>PLAY NOW</button>
179 </div>
180
181 <!-- Active Game Entities -->
182 <button id=__PH_0__ if=__PH_0__ aria-label=__PH_0__>✦</button>
183 <button id=__PH_0__ if=__PH_0__ aria-label=__PH_0__>★</button>
184 <button id=__PH_0__ if=__PH_0__ aria-label=__PH_0__>✕</button>
185
186 <!-- Game Over Summary -->
187 <div id=__PH_0__ class=__PH_0__ if=__PH_0__>
188 <span class=__PH_0__>$rank</span>
189 <h1>RUN COMPLETE</h1>
190 <div class=__PH_0__>
191 <div><span class=__PH_0__>FINAL SCORE</span><strong class=__PH_0__>$score</strong></div>
192 <div><span class=__PH_0__>BEST STREAK</span><strong class=__PH_0__>x$max-combo</strong></div>
193 <div><span class=__PH_0__>ORBS HIT</span><strong class=__PH_0__>$hits</strong></div>
194 </div>
195 <button id=__PH_0__ class=__PH_0__>PLAY AGAIN</button>
196 </div>
197 </section>
198
199 <p id=__PH_0__>Ready in the hive — press PLAY NOW.</p>
200 </main>
201
202 <!-- Native CSS3 Styling, Animations & Reactive Event Wiring -->
203 <style>
204 * { box-sizing: border-box; user-select: none; }
205 body {
206 margin: 0; min-height: 100vh; background: #000000; color: #fafafa;
207 font-family: -apple-system, BlinkMacSystemFont, __PH_0__, __PH_0__, sans-serif;
208 display: flex; align-items: center; justify-content: center; padding: 18px;
209 }
210 #shell { width: 100%; max-width: 560px; display: flex; flex-direction: column; gap: 12px; }
211
212 #hud {
213 display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
214 }
215 .stat {
216 background: #0a0a0c; border: 1px solid rgba(255, 255, 255, 0.09);
217 border-radius: 12px; padding: 10px 8px; text-align: center;
218 }
219 .lbl {
220 display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
221 color: #71717a; margin-bottom: 2px;
222 }
223 .val { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
224 .gold { color: #e5b84b; }
225 .ruby { color: #f87171; }
226 .muted { color: #a1a1aa; }
227
228 #time-track {
229 width: 100%; height: 6px; border-radius: 999px; overflow: hidden;
230 background: #141418; border: 1px solid rgba(255, 255, 255, 0.06);
231 }
232 #time-fill {
233 width: 100%; height: 100%; border-radius: 999px;
234 background: linear-gradient(90deg, #e5b84b, #f59e0b);
235 transition: width 0.35s ease, background 0.25s ease;
236 }
237
238 #arena {
239 position: relative; width: 100%; height: 400px; overflow: hidden;
240 border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.12);
241 background: radial-gradient(circle at 50% 45%, rgba(229, 184, 75, 0.11), #060608 70%);
242 box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.85);
243 transition: border-color 0.2s ease;
244 }
245
246 .overlay {
247 position: absolute; inset: 0; padding: 28px; text-align: center;
248 display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
249 background: rgba(4, 4, 6, 0.86); backdrop-filter: blur(8px); z-index: 10;
250 }
251 .badge {
252 padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700;
253 letter-spacing: 0.08em; color: #e5b84b;
254 background: rgba(229, 184, 75, 0.12); border: 1px solid rgba(229, 184, 75, 0.32);
255 }
256 h1 { margin: 0; font-size: 36px; letter-spacing: -0.04em; line-height: 1.05; }
257 .sub { margin: 0; font-size: 13.5px; color: #a1a1aa; line-height: 1.6; max-width: 380px; }
258
259 .summary {
260 display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
261 width: 100%; max-width: 380px; margin: 6px 0;
262 }
263 .summary div {
264 background: #0d0d10; border: 1px solid rgba(255, 255, 255, 0.08);
265 border-radius: 12px; padding: 12px 8px;
266 }
267 .big { font-size: 22px; font-weight: 700; }
268
269 .cta {
270 margin-top: 4px; padding: 12px 28px; border-radius: 999px; border: none;
271 background: linear-gradient(135deg, #f5cf6b, #d99b26); color: #000000;
272 font-size: 14px; font-weight: 700; letter-spacing: 0.04em; cursor: pointer;
273 box-shadow: 0 0 28px rgba(229, 184, 75, 0.35);
274 transition: transform 0.15s ease, box-shadow 0.15s ease;
275 }
276 .cta:hover { transform: scale(1.05); box-shadow: 0 0 38px rgba(229, 184, 75, 0.55); }
277
278 #orb, #royal, #hornet {
279 position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
280 border-radius: 50%; border: none; cursor: pointer; font-weight: 800;
281 display: flex; align-items: center; justify-content: center;
282 transition: left 0.24s cubic-bezier(0.22, 1, 0.36, 1),
283 top 0.24s cubic-bezier(0.22, 1, 0.36, 1), transform 0.12s ease;
284 }
285 #orb {
286 width: 66px; height: 66px; font-size: 24px; color: #181000; z-index: 4;
287 background: radial-gradient(circle at 32% 30%, #fff4c2, #f5c542 48%, #b4690e 100%);
288 box-shadow: 0 0 0 6px rgba(245, 197, 66, 0.16), 0 0 32px rgba(245, 197, 66, 0.72);
289 animation: orb-glow 1.5s ease-in-out infinite;
290 }
291 #orb:hover { transform: translate(-50%, -50%) scale(1.1); }
292
293 #royal {
294 width: 56px; height: 56px; font-size: 22px; color: #022c16; z-index: 5;
295 background: radial-gradient(circle at 32% 30%, #dcfce7, #4ade80 50%, #15803d 100%);
296 box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.2), 0 0 30px rgba(74, 222, 128, 0.8);
297 animation: royal-spin 1.1s ease-in-out infinite;
298 }
299 #royal:hover { transform: translate(-50%, -50%) scale(1.12); }
300
301 #hornet {
302 width: 48px; height: 48px; font-size: 18px; color: #fff1f2; z-index: 3;
303 background: radial-gradient(circle at 32% 30%, #fca5a5, #ef4444 52%, #7f1d1d 100%);
304 box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.18), 0 0 24px rgba(239, 68, 68, 0.65);
305 }
306 #hornet:hover { transform: translate(-50%, -50%) scale(1.08); }
307
308 #feed {
309 margin: 0; text-align: center; font-size: 13px; color: #a1a1aa;
310 min-height: 20px; letter-spacing: 0.01em;
311 }
312
313 @keyframes orb-glow {
314 0%, 100% { box-shadow: 0 0 0 6px rgba(245, 197, 66, 0.16), 0 0 28px rgba(245, 197, 66, 0.65); }
315 50% { box-shadow: 0 0 0 11px rgba(245, 197, 66, 0.24), 0 0 42px rgba(245, 197, 66, 0.92); }
316 }
317 @keyframes royal-spin {
318 0%, 100% { transform: translate(-50%, -50%) scale(1); }
319 50% { transform: translate(-50%, -50%) scale(1.12); }
320 }
321
322 /* Reactive Event Bindings & 1-Second Game Loop */
323 body:load {
324 @try {
325 load: __PH_0__;
326 $phase: __PH_0__;
327 $score: 0;
328 $combo: 0;
329 $hits: 0;
330 $hearts: 3;
331 $time: $round-time;
332 $bonus: false;
333 } @catch ($err) {
334 $best: 0;
335 }
336 }
337 #start-btn:click { call: start-game(); }
338 #retry-btn:click { call: start-game(); }
339 #orb:click { call: hit-orb(); }
340 #royal:click { call: hit-royal(); }
341 #hornet:click { call: hit-hornet(); }
342 @every(1s) { call: game-tick(); }
343 </style>
344</body>
345</html>
346