File size: 46,050 Bytes
4530d29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
eada153
4530d29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bcd08ac
 
4530d29
 
 
 
 
 
 
 
 
 
 
eada153
ecb7e47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1dbfbfb
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
585bfe0
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
/* VOID: matte black, white type, one clear thing per screen */
:root {
  --bg: #10131b; --ink: #f6f7fa; --mute: #a3a8b6; --dim: #5a6070; --line: rgba(255,255,255,.18);
  --panel: rgba(40,46,62,.55); --ok: #3dff8a; --bad: #ff4455;
  --wide: "Unbounded", "Inter", system-ui, sans-serif; --body: "Inter", system-ui, sans-serif;
  --pad: clamp(16px, 4vw, 40px); --top: env(safe-area-inset-top); --bot: env(safe-area-inset-bottom);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
kbd { font: 600 12px var(--body); border: 1px solid rgba(255,255,255,.3); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; }
[hidden] { display: none !important; }

#gl { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; display: block; z-index: 0; touch-action: pan-y; }
body:not([data-mode="home"]) #gl { touch-action: none; }
#grain { position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0,0) } 33% { transform: translate(-3%,2%) } 66% { transform: translate(2%,-3%) } 100% { transform: translate(0,0) } }
#fade { position: fixed; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 6; transition: opacity .35s; }
#fade.on { opacity: 1; }

/* loader */
#loader { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: grid; place-content: center; justify-items: center; gap: 22px; transition: opacity .8s ease, visibility .8s; }
#loader.done { opacity: 0; visibility: hidden; }
.ld-word { font: 900 clamp(64px, 16vw, 180px)/1 var(--wide); letter-spacing: .04em; display: flex; }
.ld-word span { display: inline-block; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.55); animation: ldIn .9s cubic-bezier(.2,.8,.2,1) both; }
.ld-word span:nth-child(2) { animation-delay: .08s } .ld-word span:nth-child(3) { animation-delay: .16s } .ld-word span:nth-child(4) { animation-delay: .24s }
@keyframes ldIn { from { opacity: 0; transform: translateY(40%); } }
.ld-bar { width: min(260px, 60vw); height: 2px; background: var(--line); overflow: hidden; }
.ld-bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .25s ease; }
.ld-pct { font: 500 12px var(--wide); color: var(--mute); letter-spacing: .2em; }

/* nav: the same three things everywhere */
#nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: calc(14px + var(--top)) var(--pad) 14px; }
.logo { font: 900 20px var(--wide); letter-spacing: .12em; background: none; border: 0; padding: 0; }
.credit { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: #d6d6dc; }
.right { margin-left: auto; display: flex; gap: 10px; }
#exit { display: none; padding: 8px 14px; }
body:not([data-mode="home"]) #exit { display: inline-block; }
.pill { border: 1px solid rgba(255,255,255,.28); background: rgba(0,0,0,.35); border-radius: 999px; padding: 9px 16px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pill:hover { border-color: #fff; }
.pill.solid, .pill[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }

/* home */
#page { position: relative; z-index: 2; }
body:not([data-mode="home"]) #page { display: none; }
body:not([data-mode="home"]) { overflow: hidden; }
#home { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding: calc(84px + var(--top)) var(--pad) calc(28px + var(--bot)); }
.home-copy { text-align: center; }
.kicker { font: 500 11px var(--wide); letter-spacing: .36em; color: var(--mute); text-transform: uppercase; }
.mega { font: 900 clamp(84px, 20vw, 280px)/.86 var(--wide); letter-spacing: -.02em; margin: 12px 0 8px;
  background: linear-gradient(180deg, #fff 0%, #c9c9cf 55%, rgba(255,255,255,.08) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: #b9b9c1; font-size: clamp(15px, 1.6vw, 19px); margin: 0; }
.choices { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; width: min(860px, 100%); margin: 0 auto; }
.choice { text-align: left; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: border-color .2s, transform .15s; }
.choice:hover { border-color: rgba(255,255,255,.5); transform: translateY(-2px); }
.choice b { display: block; font: 800 clamp(18px, 2.2vw, 24px) var(--wide); }
.choice span { display: block; font-size: 13px; color: var(--mute); margin-top: 4px; }
.choice.main { background: #fff; color: #000; border-color: #fff; }
.choice.main span { color: #444; }
.more { align-self: center; margin-top: 16px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--mute); }
.more::after { content: " \2193"; }

#specs { background: linear-gradient(180deg, transparent, rgba(5,5,6,.8) 18%, var(--bg) 45%); }
.specs-wrap { padding: 18vh var(--pad) 8vh; max-width: 1200px; margin: 0 auto; }
.sec-label { font: 500 11px var(--wide); letter-spacing: .28em; text-transform: uppercase; color: var(--mute); margin-bottom: 16px; }
h2 { font: 800 clamp(28px, 4.6vw, 60px)/1.04 var(--wide); letter-spacing: -.01em; margin: 0 0 14px; }
.specs-title { margin-bottom: 40px; }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.specs div { padding: 26px 16px 26px 0; border-bottom: 1px solid var(--line); }
.specs b { display: block; font: 800 clamp(32px, 4.2vw, 56px)/1 var(--wide); letter-spacing: -.02em; }
.specs small { font-size: .42em; color: var(--mute); margin-left: 4px; }
.specs span { display: block; margin-top: 10px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
footer { padding: 36px var(--pad) calc(36px + var(--bot)); max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--line); display: flex; gap: 32px; align-items: flex-start; }
.foot-logo { font: 900 44px/1 var(--wide); letter-spacing: .06em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.5); }
footer p { margin: 0; color: var(--mute); font-size: 13px; max-width: 70ch; }
footer b, footer a { color: var(--ink); }

/* modes */
.mode { position: fixed; inset: 0; z-index: 10; pointer-events: none; display: none; }
body[data-mode="watch"] #watchUI, body[data-mode="play"] #playUI, body[data-mode="build"] #buildUI { display: block; }
.mode button, .mode input, .mode aside, .mode .g-card { pointer-events: auto; }

/* watch */
.cap { position: absolute; left: var(--pad); bottom: calc(96px + var(--bot)); width: min(440px, calc(100% - 2 * var(--pad))); transition: opacity .4s ease, transform .4s ease; }
.cap.hide { opacity: 0; transform: translateY(12px); }
.cap .num { font: 500 11px var(--wide); letter-spacing: .3em; color: var(--mute); margin-bottom: 6px; }
.cap h2 { font-size: clamp(28px, 4vw, 52px); margin: 0 0 6px; }
.cap p { margin: 0; color: #b6b6bf; text-shadow: 0 1px 12px #000; }
.telem { position: absolute; right: var(--pad); bottom: calc(96px + var(--bot)); display: flex; gap: 22px; transition: opacity .4s; }
.telem div { display: grid; justify-items: end; }
.telem span, .g-stats span { font: 500 10px var(--wide); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.telem b { font: 800 clamp(24px, 3.4vw, 42px)/1.05 var(--wide); font-variant-numeric: tabular-nums; }
.telem i, .g-stats i { font-style: normal; font-size: 11px; color: var(--mute); }
.dream { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 0 20px; opacity: 0; background: radial-gradient(closest-side, rgba(0,0,0,.55), rgba(0,0,0,.85)); }
.dream .d0 { font: 600 12px var(--wide); letter-spacing: .4em; color: var(--mute); margin-bottom: 18px; }
.dream .d1 { font: 800 clamp(26px, 4.4vw, 62px)/1.08 var(--wide); }
.dream .d2 { font: 500 clamp(18px, 2.4vw, 28px) var(--wide); color: #b9b9c2; margin-top: 14px; letter-spacing: .06em; }
.dream .d3 { margin-top: 24px; font: 600 12px var(--wide); letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }
.end { position: absolute; inset: 0; display: none; place-content: center; justify-items: center; text-align: center; gap: 22px; background: rgba(0,0,0,.75); padding: 0 20px; }
.end.on { display: grid; }
.end-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.player { position: absolute; left: var(--pad); right: var(--pad); bottom: calc(22px + var(--bot)); display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); pointer-events: auto; }
.pbtn { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; background: #fff; color: #000; font-size: 13px; letter-spacing: -2px; }
.scrub { position: relative; flex: 1; height: 28px; display: flex; align-items: center; }
.scrub input { width: 100%; margin: 0; -webkit-appearance: none; appearance: none; background: transparent; height: 28px; position: relative; z-index: 1; }
.scrub input::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(90deg, #fff var(--p, 0%), rgba(255,255,255,.18) var(--p, 0%)); border-radius: 2px; }
.scrub input::-moz-range-track { height: 3px; background: rgba(255,255,255,.18); border-radius: 2px; }
.scrub input::-moz-range-progress { height: 3px; background: #fff; }
.scrub input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; margin-top: -6.5px; }
.scrub input::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 0; }
.ticks { position: absolute; left: 0; right: 0; top: 0; bottom: 0; pointer-events: none; }
.ticks button { position: absolute; top: -20px; transform: translateX(-50%); background: none; border: 0; padding: 0 2px; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); pointer-events: auto; white-space: nowrap; }
.ticks button::after { content: ""; position: absolute; left: 50%; top: 17px; width: 1px; height: 8px; background: rgba(255,255,255,.35); }
.wtime { font: 600 12px var(--body); color: var(--mute); font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }

/* play */
.g-hint { position: absolute; top: calc(70px + var(--top)); left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); text-align: center; font: 600 14px var(--body); letter-spacing: .02em; padding: 8px 16px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.g-hint:empty { display: none; }
.g-target { position: absolute; top: calc(118px + var(--top)); left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 4px; }
.g-target i { font-style: normal; font-size: 30px; color: var(--ok); transition: opacity .3s; display: inline-block; text-shadow: 0 0 14px rgba(61,255,138,.6); }
.g-target span { font: 700 12px var(--wide); letter-spacing: .1em; color: var(--ok); }
.g-stats { position: absolute; left: var(--pad); bottom: calc(22px + var(--bot)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: min(480px, calc(100% - 2 * var(--pad))); }
.g-stats em { font-style: normal; }
.g-stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(340px, calc(100% - 2 * var(--pad))); }
.g-stats > div { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.g-stats b { display: block; font: 800 clamp(18px, 2.4vw, 26px)/1.2 var(--wide); font-variant-numeric: tabular-nums; }
.fbar { height: 3px; background: rgba(255,255,255,.12); border-radius: 2px; margin-top: 4px; overflow: hidden; }
.fbar i { display: block; height: 100%; width: 100%; background: var(--ok); }
.g-btns { position: absolute; right: var(--pad); top: calc(64px + var(--top)); display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.g-score { position: absolute; left: var(--pad); top: calc(64px + var(--top)); display: grid; }
.g-score span { font: 500 10px var(--wide); letter-spacing: .22em; text-transform: uppercase; color: var(--mute); }
.g-score b { font: 800 26px var(--wide); }
.g-map { position: absolute; right: var(--pad); bottom: calc(22px + var(--bot)); width: 180px; height: 180px; border-radius: 50%; box-shadow: 0 6px 30px rgba(0,0,0,.5); }
#gGarageClose { display: none; }
body.garage[data-mode="play"] #buildUI { display: block; z-index: 15; }
body.garage[data-mode="play"] #gGarageClose { display: inline-block; }
body.garage[data-mode="play"] #playUI > *:not(.g-card) { opacity: .25; pointer-events: none; }
.pads { display: none; }
.g-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100% - 32px)); max-height: calc(100% - 140px); overflow: auto; padding: 26px; border-radius: 22px; background: rgba(10,10,13,.88); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.g-card h2 { font-size: clamp(24px, 3.6vw, 34px); }
.g-card h2.win { color: var(--ok); } .g-card h2.crash, .g-card h2.lose { color: var(--bad); }
.g-card ol { margin: 0 0 12px; padding-left: 20px; color: #c4c4cc; font-size: 14px; display: grid; gap: 8px; }
.g-card .small { font-size: 12px; color: var(--mute); margin: 10px 0; }
.g-card .ok { color: var(--ok); font-weight: 700; }
.g-card p { color: #c4c4cc; }
.g-res { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin: 14px 0; }
.g-res div { border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.g-res b { display: block; font: 800 22px var(--wide); }
.g-res span { font-size: 11px; color: var(--mute); letter-spacing: .1em; text-transform: uppercase; }

/* build */
.drag-hint { position: absolute; left: var(--pad); bottom: calc(26px + var(--bot)); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--mute); }
.cfg { position: absolute; right: clamp(16px, 3vw, 32px); top: calc(72px + var(--top)); bottom: 24px; width: min(360px, calc(100% - 32px)); display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px; backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px); overflow: hidden; }
.cfg-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 6px; }
.cfg-head h2 { font-size: 20px; margin: 0; }
#cfgBody { flex: 1; overflow-y: auto; padding: 4px 20px 10px; scrollbar-width: thin; }
.grp { padding: 13px 0; border-bottom: 1px solid var(--line); }
.grp:last-child { border-bottom: 0; }
.grp-h { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); margin-bottom: 10px; }
.grp-h b { color: var(--ink); font-weight: 600; letter-spacing: .08em; text-transform: none; font-size: 13px; }
.sw { display: flex; flex-wrap: wrap; gap: 10px; }
.sw button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); position: relative; padding: 0; transition: transform .15s; }
.sw button:hover { transform: scale(1.08); }
.sw button[aria-pressed="true"]::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid #fff; }
.seg { display: flex; gap: 6px; }
.seg button { flex: 1; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: transparent; font-size: 12px; letter-spacing: .06em; }
.seg button[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }
.cfg-foot { border-top: 1px solid var(--line); padding: 14px 20px 18px; display: grid; gap: 12px; }
.sum { font-size: 12px; color: var(--mute); }
.sum b { color: var(--ink); font: 800 13px var(--wide); letter-spacing: .08em; display: block; margin-bottom: 2px; }
.cfg-btns { display: flex; gap: 8px; }
.cfg-btns .pill { flex: 1; }

#toast { position: fixed; left: 50%; bottom: 100px; transform: translate(-50%, 20px); z-index: 30; background: #fff; color: #000; padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* touch controls (phones, tablets, anything without a mouse) */
@media (pointer: coarse) {
  .pads { display: flex; justify-content: space-between; align-items: flex-end; position: absolute; left: 12px; right: 12px; bottom: calc(92px + var(--bot)); pointer-events: none; }
  .pads button { pointer-events: auto; touch-action: none; user-select: none; -webkit-user-select: none; width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.45); font: 700 11px var(--body); letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(8px); }
  .pads button.on { background: #fff; color: #000; }
  .pads .big { width: 78px; height: 78px; }
  .pad-l, .pad-r { display: flex; gap: 10px; align-items: flex-end; }
  .pad-l button { font-size: 20px; }
  body:not(.g-air) .pads .air { display: none; }
}
@media (max-width: 820px) {
  .credit { font-size: 9px; letter-spacing: .1em; }
  .choices { grid-template-columns: 1fr 1fr; }
  .choice.main { grid-column: 1 / -1; }
  .choice { padding: 14px 16px; }
  .specs { grid-template-columns: repeat(2, 1fr); }
  footer { flex-direction: column; gap: 16px; }
  .cap { bottom: auto; top: calc(70px + var(--top)); }
  .telem { bottom: calc(92px + var(--bot)); gap: 14px; }
  .g-stats > div { padding: 6px 9px; }
  .g-btns { top: calc(112px + var(--top)); right: 12px; }
  .g-map { width: 120px; height: 120px; bottom: auto; top: calc(160px + var(--top)); right: 12px; }
  .pads { bottom: calc(150px + var(--bot)); }
  .cfg { top: auto; bottom: calc(12px + var(--bot)); left: 12px; right: 12px; width: auto; height: 50vh; }
  .drag-hint { bottom: auto; top: calc(70px + var(--top)); }
  .ticks button { font-size: 0; } .ticks button::after { top: 17px; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .cap p { display: none; }
  .mega { font-size: 64px; }
  #home { padding-top: calc(64px + var(--top)); }
  .pads { bottom: calc(84px + var(--bot)); }
}
@media (prefers-reduced-motion: reduce) { #grain, .ld-word span { animation: none; } }

/* New Legion HUD: health and nitro, combo, hurt flash, photo mode */
.g-score em { font: 800 15px var(--wide); color: #ffd23d; font-style: normal; min-height: 18px; }
.g-bars { position: absolute; left: var(--pad); top: calc(128px + var(--top)); display: grid; gap: 6px; width: 160px; }
.g-btns { max-width: min(560px, 58vw); }
.g-bars .bar { position: relative; height: 16px; border-radius: 8px; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.18); overflow: hidden; backdrop-filter: blur(6px); }
.g-bars .bar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--v, 1)); transition: transform .2s; }
.g-bars .hp i { background: linear-gradient(90deg, #ff2a3a, #3dff8a); } .g-bars .hp.low i { background: #ff2a3a; animation: hpPulse .6s infinite alternate; }
.g-bars .nos i { background: linear-gradient(90deg, #3d7bff, #3df5ff); }
.g-bars .bar span { position: relative; font: 700 9px var(--wide); letter-spacing: .18em; text-transform: uppercase; padding-left: 8px; line-height: 16px; text-shadow: 0 1px 3px #000; }
@keyframes hpPulse { to { opacity: .45; } }
body.g-hurt #gl { filter: saturate(1.6) brightness(1.15) sepia(.35) hue-rotate(-25deg); }
body.g-photo #playUI > *:not(.g-hint) { opacity: 0; pointer-events: none; }
.pads .nos { background: rgba(40,90,255,.45) !important; } .pads .nos.on { background: #3df5ff !important; }
body.g-air .pads .ground { display: none; }
@media (max-width: 560px) { .g-bars { top: calc(112px + var(--top)); width: 130px; } .g-btns .pill { padding: 7px 11px; font-size: 11px; } }

/* police, races, GPS, online */
.g-stars { position: absolute; left: 50%; top: calc(14px + var(--top)); transform: translateX(-50%); font-size: 26px; letter-spacing: 4px; color: #ffd23d; text-shadow: 0 0 12px rgba(255,60,60,.8), 0 2px 4px #000; pointer-events: none; }
.g-stars.bust { color: #ff3040; animation: hpPulse .3s infinite alternate; }
.g-race { position: absolute; left: 50%; top: calc(52px + var(--top)); transform: translateX(-50%); display: flex; gap: 14px; align-items: center; padding: 8px 10px 8px 18px; border-radius: 999px; background: rgba(0,0,0,.6); border: 1px solid rgba(255,210,61,.5); font: 700 13px var(--body); white-space: nowrap; backdrop-filter: blur(8px); }
.g-race b { font: 800 13px var(--wide); color: #ffd23d; } .g-race .pill { padding: 5px 12px; font-size: 11px; }
.g-count { position: absolute; left: 50%; top: 32%; transform: translate(-50%, -50%); font: 900 120px var(--wide); color: #fff; text-shadow: 0 0 40px rgba(255,210,61,.9); pointer-events: none; }
.g-raceres { max-width: 380px; } .g-raceres ol { padding-left: 20px; margin: 10px 0 14px; } .g-raceres li { display: flex; justify-content: space-between; padding: 4px 0; } .g-raceres li.me { color: #ffd23d; font-weight: 800; }
.g-racego { position: absolute; left: 50%; bottom: calc(110px + var(--bot)); transform: translateX(-50%); }
.g-gps { position: absolute; left: 50%; top: calc(96px + var(--top)); transform: translateX(-50%); padding: 7px 16px; border-radius: 12px; background: rgba(8,40,52,.75); border: 1px solid rgba(61,252,255,.45); color: #bff9ff; font: 700 14px var(--body); white-space: nowrap; pointer-events: none; }
.g-gps:empty { display: none; }
.g-panel { max-width: 460px; width: calc(100% - 32px); max-height: 80vh; overflow: auto; z-index: 30; }
.g-panel h3 { margin: 0 0 8px; font: 800 18px var(--wide); } .g-panel .row { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.g-panel input { flex: 1; min-width: 120px; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); background: rgba(0,0,0,.35); color: #fff; font: inherit; }
.g-panel label { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.g-panel .places { display: flex; flex-wrap: wrap; gap: 8px; } .g-panel .emotes { display: flex; flex-wrap: wrap; gap: 6px; }
.g-panel .emotes .pill { padding: 6px 10px; font-size: 12px; }
.pill.on { background: #3dfcff !important; color: #001 !important; }
.g-feed { position: absolute; left: var(--pad); bottom: calc(130px + var(--bot)); display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.g-feed div { padding: 5px 10px; border-radius: 8px; background: rgba(0,0,0,.55); font-size: 13px; animation: rise .3s ease; }
.g-players { position: absolute; right: var(--pad); top: calc(300px + var(--top)); display: grid; gap: 3px; text-align: right; font-size: 12px; pointer-events: none; text-shadow: 0 1px 3px #000; }
.g-lookhint { position: absolute; left: 50%; bottom: calc(14px + var(--bot)); transform: translateX(-50%); font-size: 11px; color: rgba(255,255,255,.55); pointer-events: none; }
body.g-locked .g-lookhint, .pads ~ .g-lookhint { display: none; }
@media (pointer: coarse) { .g-lookhint { display: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 560px) { .g-race { gap: 8px; font-size: 11px; padding-left: 12px; } .g-gps { font-size: 12px; top: calc(150px + var(--top)); } .g-players { top: calc(250px + var(--top)); } }

/* phones: one Fly button and a More menu instead of nine buttons, a 2x2 pedal block, and the banners stacked under the top bar */
#gMore { display: none; }
@media (max-width: 820px) {
  #gMore { display: inline-flex; }
  .g-btns { flex-direction: column; align-items: flex-end; max-width: none; }
  .g-btns .pill:not(#gFly):not(#gMore) { display: none; }
  body.g-more .g-btns { background: rgba(10,12,18,.92); padding: 10px; border-radius: 18px; border: 1px solid rgba(255,255,255,.15); z-index: 25; }
  body.g-more .g-btns .pill:not(#gFly):not(#gMore) { display: inline-flex; width: 150px; justify-content: center; }
  body.g-more .g-map { visibility: hidden; }
  .g-stars { top: calc(58px + var(--top)); font-size: 18px; letter-spacing: 2px; }
  .g-race { top: calc(84px + var(--top)); left: 12px; right: 12px; transform: none; justify-content: space-between; gap: 6px; padding: 6px 6px 6px 12px; font-size: 11px; }
  .g-race b { font-size: 10px; max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
  .g-gps { top: auto; bottom: calc(300px + var(--bot)); max-width: calc(100% - 24px); white-space: normal; text-align: center; font-size: 12px; }
  .g-players { top: calc(290px + var(--top)); }
  .g-count { font-size: 84px; }
}
@media (pointer: coarse) and (max-width: 560px) {
  .pad-r { display: grid; grid-template-columns: repeat(2, auto); gap: 8px; justify-items: center; align-items: end; }
  .pads button { width: 58px; height: 58px; }
  .pads .big { width: 70px; height: 70px; }
  body.g-air .pad-r .ground { display: none; }
}
@media (max-width: 820px) {
  .g-race { top: calc(58px + var(--top)); }
  .g-score { top: calc(104px + var(--top)); }
  .g-bars { top: calc(160px + var(--top)); }
  .g-stars { left: var(--pad); transform: none; top: calc(206px + var(--top)); }
  .g-gps { top: calc(300px + var(--top)); bottom: auto; left: 50%; transform: translateX(-50%); }
}
@media (max-width: 820px) { .g-bars { top: calc(172px + var(--top)); } .g-stars { top: calc(218px + var(--top)); } .g-map { top: calc(196px + var(--top)); } .g-players { top: calc(326px + var(--top)); } .g-gps { top: calc(330px + var(--top)); } }

/* ===== HUD v3: four tidy corners and one menu ===== */
#playUI .hud-tl { position: absolute; left: var(--pad); top: calc(66px + var(--top)); display: grid; gap: 8px; width: 190px; padding: 12px 14px; border-radius: 16px; background: rgba(8,10,16,.55); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: none; }
#playUI .hud-tl .g-score, #playUI .hud-tl .g-bars, #playUI .hud-tl .g-stars { position: static; transform: none; left: auto; top: auto; width: auto; }
#playUI .hud-tl .g-score { display: flex; align-items: baseline; gap: 10px; } #playUI .hud-tl .g-score b { font-size: 24px; }
#playUI .hud-tl .g-stars { font-size: 17px; letter-spacing: 2px; text-align: left; min-height: 0; } #playUI .hud-tl .g-stars:empty { display: none; }
.g-bars .fuel i { background: linear-gradient(90deg, #ff8a3d, #ffd23d); } .g-bars .fuel.low i { background: #ff8a3d; animation: hpPulse .6s infinite alternate; }
#playUI .hud-tr { position: absolute; right: var(--pad); top: calc(66px + var(--top)); display: grid; justify-items: end; gap: 10px; }
#playUI .hud-tr .g-map { position: static; width: 170px; height: 170px; cursor: pointer; }
#playUI .hud-tr .g-btns { position: static; display: flex; gap: 8px; max-width: none; flex-direction: row; background: none; padding: 0; border: 0; }
#playUI .hud-tr .g-players { position: static; text-align: right; }
#playUI .hud-top { position: absolute; left: 50%; top: calc(64px + var(--top)); transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; width: min(560px, calc(100% - 460px)); pointer-events: none; }
#playUI .hud-top > * { position: static; transform: none; left: auto; top: auto; }
#playUI .hud-top .g-race { pointer-events: auto; }
#playUI .hud-gauge { position: absolute; left: 50%; bottom: calc(10px + var(--bot)); transform: translateX(-50%); width: 230px; height: 230px; pointer-events: none; }
#playUI .hud-gauge canvas { width: 100%; height: 100%; }
#playUI .g-feed { bottom: calc(24px + var(--bot)); }
/* the menu */
.g-menu { position: absolute; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(4,6,10,.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: calc(20px + var(--top)) 16px calc(20px + var(--bot)); overflow: auto; }
.g-menu[hidden] { display: none; }
.g-menu > * { width: min(860px, 100%); }
.menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; } .menu-head h2 { margin: 0; font: 900 28px var(--wide); letter-spacing: .04em; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.menu-grid section { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 14px; } .menu-grid section.wide { grid-column: 1 / -1; }
.menu-grid h4 { margin: 0 0 10px; font: 800 11px var(--wide); letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.tile { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(0,0,0,.3); color: #fff; font: 600 12px var(--body); cursor: pointer; transition: background .15s, transform .1s, border-color .15s; }
.tile b { font-size: 24px; line-height: 1; } .tile:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); } .tile:active { transform: scale(.96); }
.tile.on, .tile[aria-pressed="true"] { background: #fff; color: #000; }
.set { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 8px 0; font: 600 13px var(--body); }
.set .seg { display: inline-flex; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; overflow: hidden; }
.set .seg button { padding: 6px 11px; background: none; border: 0; color: #fff; font: 600 12px var(--body); cursor: pointer; } .set .seg button.on { background: #fff; color: #000; }
.set input[type=range] { width: 150px; accent-color: #fff; }
.menu-foot { display: flex; justify-content: flex-end; margin-top: 14px; }
/* touch: a joystick on the left (or the old arrow buttons), pedals on the right */
.stick { display: none; }
@media (pointer: coarse) {
  .stick { display: block; position: relative; width: 132px; height: 132px; border-radius: 50%; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.3); pointer-events: auto; touch-action: none; backdrop-filter: blur(8px); }
  .stick i { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 4px 14px rgba(0,0,0,.4); transition: transform .05s; }
  body:not(.steer-buttons) .pads .pad-l { display: none; }
  body.steer-buttons .pads .stick { display: none; }
  .pads button { width: 70px !important; height: 70px !important; font-size: 12px !important; }
  .pads .big { width: 84px !important; height: 84px !important; }
  #playUI .g-lookhint { display: none; }
}
@media (max-width: 820px) {
  #playUI .hud-tl { left: 10px; top: calc(56px + var(--top)); width: 140px; padding: 8px 10px; gap: 5px; }
  #playUI .hud-tl .g-score b { font-size: 18px; }
  #playUI .hud-tr { right: 10px; top: calc(56px + var(--top)); gap: 6px; }
  #playUI .hud-tr .g-map { width: 108px; height: 108px; }
  #playUI .hud-tr .g-btns .pill { padding: 7px 10px; font-size: 11px; }
  #playUI .hud-top { top: calc(176px + var(--top)); width: calc(100% - 24px); }
  #playUI .hud-top .g-race { width: 100%; justify-content: space-between; }
  #playUI .hud-gauge { width: 112px; height: 112px; bottom: auto; top: calc(56px + var(--top)); }
  .menu-grid { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pads { bottom: calc(18px + var(--bot)) !important; }
}
#gMore { display: none !important; }
/* the account button from hub.js: tucked under the top bar so it doesn't sit on the game controls */
.hub-chip { left: auto !important; right: 14px !important; bottom: auto !important; top: calc(64px + var(--top)) !important; }
body[data-mode="play"] .hub-chip { display: none !important; }
.hub-box { left: auto !important; right: 12px !important; bottom: auto !important; top: calc(104px + var(--top)) !important; }
#playUI .g-bars .bar { height: 18px; } #playUI .g-bars .bar span { line-height: 18px; font-size: 9px; }
@media (min-width: 821px) { #playUI .hud-gauge { left: auto; right: var(--pad); transform: none; bottom: calc(14px + var(--bot)); width: 210px; height: 210px; } }
.g-menu { padding-top: calc(70px + var(--top)) !important; place-items: start center !important; }
#playUI .hud-tr .g-btns #gMenuBtn { display: inline-flex !important; }
@media (max-width: 820px) {
  #playUI .hud-tr .g-btns { flex-direction: column; align-items: flex-end; }
  #playUI .hud-gauge { left: auto; right: 10px; transform: none; top: calc(258px + var(--top)); width: 100px; height: 100px; }
  #playUI .hud-tl { width: 132px; }
}
@media (max-width: 820px) { #playUI .hud-top { left: 10px; transform: none; width: calc(100% - 124px); top: calc(176px + var(--top)); justify-items: start; } }
#playUI .g-bars .bar span { position: absolute; inset: 0; display: flex; align-items: center; line-height: 1; }

/* status chips, trophies, stats, challenges */
#playUI .hud-tr .chips { display: flex; gap: 6px; } #playUI .hud-tr .chips span { padding: 4px 9px; border-radius: 999px; background: rgba(8,10,16,.55); border: 1px solid rgba(255,255,255,.12); font: 600 11px var(--body); text-transform: capitalize; backdrop-filter: blur(8px); }
.g-trophy { position: absolute; left: 50%; top: calc(14px + var(--top)); z-index: 45; display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px; border-radius: 18px; background: linear-gradient(135deg, rgba(40,32,8,.92), rgba(12,12,16,.92)); border: 1px solid rgba(255,210,61,.6); box-shadow: 0 10px 40px rgba(255,190,40,.25); transform: translate(-50%, -140%); opacity: 0; pointer-events: none; }
.g-trophy.on { animation: trophy 4.2s cubic-bezier(.2,.8,.2,1) forwards; }
.g-trophy b { font-size: 30px; } .g-trophy span { display: block; font: 800 10px var(--wide); letter-spacing: .18em; text-transform: uppercase; color: #ffd23d; } .g-trophy div { font: 700 15px var(--body); } .g-trophy em { font-style: normal; color: #ffd23d; margin-left: 8px; }
@keyframes trophy { 0% { transform: translate(-50%, -140%); opacity: 0; } 10%, 85% { transform: translate(-50%, 0); opacity: 1; } 100% { transform: translate(-50%, -140%); opacity: 0; } }
.stats-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.stats-row div { padding: 12px; border-radius: 16px; background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1); }
.stats-row b { display: block; font: 900 22px var(--wide); } .stats-row span { font: 600 11px var(--body); color: var(--mute); text-transform: uppercase; letter-spacing: .1em; }
.goals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.goal { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08); }
.goal b { font-size: 22px; } .goal span { display: block; font: 700 13px var(--body); } .goal small { color: var(--mute); font-size: 11.5px; }
.goal i { display: block; height: 5px; border-radius: 3px; margin-top: 5px; background: linear-gradient(90deg, #ffd23d calc(var(--v) * 100%), rgba(255,255,255,.12) 0); }
.goal em { font: 700 12px var(--body); font-style: normal; color: var(--mute); } .goal.ok { border-color: rgba(255,210,61,.45); background: rgba(255,210,61,.08); }
.g-menu .menu-grid section { transition: border-color .2s; } .g-menu .menu-grid section:hover { border-color: rgba(255,255,255,.2); }
.g-menu[hidden] + * {} .g-menu:not([hidden]) > * { animation: menuIn .28s cubic-bezier(.2,.8,.2,1) both; }
@keyframes menuIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (max-width: 820px) { .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .goals { grid-template-columns: minmax(0, 1fr); } #playUI .hud-tr .chips { display: none; } }
.g-welcome { max-width: 460px !important; text-align: left; }
.g-welcome h2 { font: 900 30px var(--wide); margin: 0 0 4px; } .g-welcome .sub { color: var(--mute); margin: 0 0 14px; }
.g-welcome .tips { display: grid; gap: 8px; margin-bottom: 14px; }
.g-welcome .tips div { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); font-size: 13.5px; }
.g-welcome .tips b { font-size: 24px; } .g-welcome kbd { padding: 1px 6px; font-size: 11px; }
.g-welcome .big-go { width: 100%; padding: 14px; font-size: 14px; }
.touch-only { display: none; } @media (pointer: coarse) { .touch-only { display: block; } }
.g-job { padding: 7px 16px; border-radius: 12px; background: rgba(60,46,0,.8); border: 1px solid rgba(255,210,61,.6); color: #ffe48a; font: 700 14px var(--body); white-space: nowrap; }
.g-job[hidden] { display: none; }
@media (max-width: 820px) { .g-job { font-size: 12px; white-space: normal; } }
/* the menu takes its own scrolling (it sits inside the click-through play layer) */
.g-menu { pointer-events: auto !important; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.g-panel { overscroll-behavior: contain; }

.gpu { margin: 4px 0 8px; } .gpu .warn { color: #ffb347; }

/* garage performance upgrades */
#upgBody .grp { border-bottom: 1px solid var(--line); }
.upg { display: grid; gap: 8px; }
.up-row { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.up-row > b { font-size: 20px; } .up-row span { display: block; font: 700 13px var(--body); } .up-row small { color: var(--mute); font-size: 11px; }
.up-row i { display: flex; gap: 4px; margin-top: 5px; } .up-row u { width: 22px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.14); } .up-row u.on { background: #ffd23d; }
.up-row button { padding: 7px 11px; border-radius: 999px; border: 0; background: #ffd23d; color: #111; font: 800 12px var(--body); cursor: pointer; }
.up-row button:disabled { background: rgba(255,255,255,.1); color: var(--mute); cursor: not-allowed; }
.up-row em { font: 800 11px var(--body); font-style: normal; color: #ffd23d; }
#gCash { color: #9dffb0; }
.up-note { margin: 10px 0 0; color: var(--mute); font-size: 11.5px; line-height: 1.4; }

/* contracts, routes, the route builder, backups */
.con-tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tile.con { justify-items: start; text-align: left; padding: 12px; gap: 3px; }
.tile.con small { color: var(--mute); font-size: 11px; line-height: 1.3; font-weight: 500; }
.tile.con i { font-style: normal; font-size: 11px; color: #ffd23d; margin-top: 3px; }
.g-con { background: rgba(0,40,52,.82); border-color: rgba(61,252,255,.6); color: #aaf6ff; }
.routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.route { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08); }
.route span { display: block; font: 700 13px var(--body); } .route small { color: var(--mute); font-size: 11px; }
.route .pill { padding: 5px 10px; font-size: 11px; } .route.mine { border-color: rgba(192,125,255,.45); }
.wide-tile { grid-column: 1 / -1; grid-auto-flow: column; justify-content: center; gap: 8px; }
.g-build { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; border-radius: 14px; background: rgba(40,14,60,.85); border: 1px solid rgba(192,125,255,.6); color: #e6d2ff; font: 600 13px var(--body); pointer-events: auto; flex-wrap: wrap; }
.g-build[hidden] { display: none; } .g-build .pill { padding: 6px 12px; font-size: 12px; }
.save-row { display: flex; justify-content: space-between; align-items: center; } .save-row span { display: flex; gap: 6px; }
@media (max-width: 820px) { .routes { grid-template-columns: minmax(0, 1fr); } }

/* on foot, the dealership, the tutorial, bigger text */
.g-footbtn { position: absolute; right: 16px; bottom: calc(230px + var(--bot, 0px)); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.55); color: #fff; font-size: 24px; display: none; pointer-events: auto; }
@media (pointer: coarse) { .g-footbtn { display: block; } }
.g-tut { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px; border-radius: 14px; background: rgba(10,40,20,.85); border: 1px solid rgba(110,255,160,.55); color: #c9ffd9; font: 600 14px var(--body); pointer-events: auto; }
.g-tut[hidden] { display: none; } .g-tut b { color: #6dff9e; } .g-tut .pill { padding: 5px 10px; font-size: 11px; }
.g-dealgo { bottom: calc(150px + var(--bot, 0px)); }
.g-deal { position: absolute; inset: calc(56px + var(--top, 0px)) 16px 16px; z-index: 30; display: flex; flex-direction: column; border-radius: 22px; background: rgba(12,12,15,.94); border: 1px solid rgba(255,210,61,.35); color: #fff; pointer-events: auto; overflow: hidden; backdrop-filter: blur(10px); }
.g-deal[hidden] { display: none; }
.deal-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px 8px; } .deal-head h2 { margin: 0; font-size: 22px; flex: 1; } .deal-cash { color: #9dffb0; font: 800 16px var(--body); }
.deal-filters { display: flex; gap: 6px; padding: 4px 20px 10px; overflow-x: auto; scrollbar-width: thin; }
.deal-filters button { flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); background: transparent; color: var(--mute, #aaa); font: 600 12px var(--body); cursor: pointer; }
.deal-filters button.on { background: #ffd23d; color: #111; border-color: #ffd23d; }
.deal-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 14px; padding: 0 20px 18px; min-height: 0; }
.deal-list { overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; align-content: start; scrollbar-width: thin; }
.deal-car { display: grid; grid-template-columns: 18px 1fr; gap: 2px 10px; text-align: left; padding: 10px 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04); color: #fff; cursor: pointer; }
.deal-car span { grid-row: span 3; width: 18px; height: 18px; border-radius: 50%; align-self: center; border: 1px solid rgba(255,255,255,.3); }
.deal-car b { font: 700 13px var(--body); } .deal-car small { color: var(--mute, #aaa); font-size: 11px; } .deal-car em { font: 800 12px var(--body); font-style: normal; color: #ffd23d; }
.deal-car.on { border-color: #ffd23d; background: rgba(255,210,61,.1); } .deal-car.own em { color: #9dffb0; }
.deal-info { overflow-y: auto; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); display: grid; gap: 12px; align-content: start; }
.deal-info h3 { margin: 0; font-size: 20px; } .deal-info .small { margin: 0; }
.deal-stats { display: grid; gap: 8px; } .deal-stats label { display: grid; grid-template-columns: 1fr auto; gap: 4px; font: 600 12px var(--body); color: var(--mute, #aaa); }
.deal-stats span { color: #fff; } .deal-stats i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #ffd23d calc(var(--v) * 100%), rgba(255,255,255,.12) 0); }
.deal-cols { display: flex; gap: 8px; flex-wrap: wrap; } .deal-cols button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); cursor: pointer; } .deal-cols button.on { border-color: #fff; box-shadow: 0 0 0 2px #ffd23d; }
.deal-go { justify-self: start; } .deal-go:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 820px) { .deal-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; } .deal-info { max-height: 42vh; } .g-deal { inset: 8px; } }
body.big-ui .g-hint, body.big-ui .g-job, body.big-ui .g-tut, body.big-ui .g-gps { font-size: 17px; } body.big-ui .g-menu { font-size: 16px; } body.big-ui .tile { font-size: 14px; } body.big-ui .goal small, body.big-ui .small { font-size: 14px; }

/* fps counter (Settings → Show FPS) */
.fps-hud { display: none; position: absolute; left: 50%; bottom: calc(10px + var(--bot, 0px)); transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.6); font: 700 12px var(--body); color: #9dffb0; pointer-events: none; z-index: 5; }
body.show-fps .fps-hud { display: block; } .fps-hud.mid { color: #ffd23d; } .fps-hud.low { color: #ff6b6b; }