-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
519 lines (485 loc) · 33.7 KB
/
index.html
File metadata and controls
519 lines (485 loc) · 33.7 KB
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
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mindustry Clicker</title>
<link rel="icon" type="image/png" href="assets/sprites/items/item-copper.png">
<link rel="stylesheet" href="styles/styles.css">
<link rel="stylesheet" href="styles/items.css">
<link rel="stylesheet" href="styles/energy.css">
<link rel="stylesheet" href="styles/background.css">
<style>
/* Limpiar borde nativo de los sliders del menú de usuario */
#config-modal input[type=range] {
-webkit-appearance: none;
appearance: none;
height: 6px;
border-radius: 3px;
background: #4f545c;
outline: none;
border: none;
}
#config-modal input[type=range]::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 16px;
height: 16px;
border-radius: 50%;
background: #5865F2;
cursor: pointer;
border: none;
box-shadow: none;
}
#config-modal input[type=range]::-moz-range-thumb {
width: 16px;
height: 16px;
border-radius: 50%;
background: #5865F2;
cursor: pointer;
border: none;
box-shadow: none;
}
#config-modal input[type=range]::-moz-range-track {
height: 6px;
border-radius: 3px;
background: #4f545c;
border: none;
}
/* Prestige Particles */
.prestige-particle {
position: absolute;
background: #fed17b;
width: 1px;
height: 12px;
pointer-events: none;
z-index: 100;
opacity: 0;
animation: particle-fly 1.2s ease-out forwards;
}
@keyframes particle-fly {
0% { transform: scaleY(0); opacity: 0; }
30% { transform: scaleY(1.5); opacity: 0.8; }
100% { transform: translateY(-30px) scaleY(0); opacity: 0; }
}
@keyframes badgePulse {
0%, 100% { opacity: 0.9; box-shadow: 0 0 5px rgba(254,209,123,0.2); }
50% { opacity: 1; box-shadow: 0 0 15px rgba(254,209,123,0.4); }
}
</style>
</head>
<body>
<!-- Recursos -->
<div id="items-panel-wrapper"
style="position: fixed; top: 10px; left: 10px; display: flex; gap: 10px; z-index: 100;">
<div id="items-column-minerals" class="items-column">
<div class="mineral-item" id="item-copper"><img src="assets/sprites/items/item-copper.png"
class="mineral-icon"><span id="item-copper-label">0</span></div>
<div class="mineral-item" id="item-lead" style="display:none;"><img src="assets/sprites/items/item-lead.png"
class="mineral-icon"><span id="item-lead-label">0</span></div>
<div class="mineral-item" id="item-coal" style="display:none;"><img src="assets/sprites/items/item-coal.png"
class="mineral-icon"><span id="item-coal-label">0</span></div>
<div class="mineral-item" id="item-sand" style="display:none;"><img src="assets/sprites/items/item-sand.png"
class="mineral-icon"><span id="item-sand-label">0</span></div>
<div class="mineral-item" id="item-scrap" style="display:none;"><img src="assets/sprites/items/item-scrap.png"
class="mineral-icon"><span id="item-scrap-label">0</span></div>
<div class="mineral-item" id="item-titanium" style="display:none;"><img src="assets/sprites/items/item-titanium.png"
class="mineral-icon"><span id="item-titanium-label">0</span></div>
<div class="mineral-item" id="item-thorium" style="display:none;"><img src="assets/sprites/items/item-thorium.png"
class="mineral-icon"><span id="item-thorium-label">0</span></div>
</div>
<div id="items-column-synthetics" class="items-column">
<div class="mineral-item" id="item-graphite"><img
src="assets/sprites/items/item-graphite.png" class="mineral-icon"><span id="item-graphite-label">0</span>
</div>
<div class="mineral-item" id="item-silicon" style="display:none;"><img src="assets/sprites/items/item-silicon.png"
class="mineral-icon"><span id="item-silicon-label">0</span></div>
<div class="mineral-item" id="item-metaglass" style="display:none;"><img
src="assets/sprites/items/item-metaglass.png" class="mineral-icon"><span
id="item-metaglass-label">0</span></div>
<div class="mineral-item" id="item-plastanium" style="display:none;"><img
src="assets/sprites/items/item-plastanium.png" class="mineral-icon"><span
id="item-plastanium-label">0</span></div>
<div class="mineral-item" id="item-phase-fabric" style="display:none;"><img
src="assets/sprites/items/item-phase-fabric.png" class="mineral-icon"><span
id="item-phase-fabric-label">0</span></div>
<div class="mineral-item" id="item-surge-alloy" style="display:none;"><img
src="assets/sprites/items/item-surge-alloy.png" class="mineral-icon"><span
id="item-surge-alloy-label">0</span></div>
<div class="mineral-item" id="item-spore-pod" style="display:none;"><img
src="assets/sprites/items/item-spore-pod.png" class="mineral-icon"><span
id="item-spore-pod-label">0</span></div>
<div class="mineral-item" id="item-pyratite" style="display:none;"><img
src="assets/sprites/items/item-pyratite.png" class="mineral-icon"><span id="item-pyratite-label">0</span>
</div>
<div class="mineral-item" id="item-blast-compound" style="display:none;"><img
src="assets/sprites/items/item-blast-compound.png" class="mineral-icon"><span
id="item-blast-compound-label">0</span></div>
</div>
</div>
<!-- Energía y Líquidos -->
<div id="status-panel-wrapper"
style="position: fixed; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 5px; z-index: 100;">
<div id="energy-panel">
<span id="energy-label">Energy: 0/0 (0/s)</span>
<div id="energy-bar-container">
<div id="energy-bar-fill"></div>
</div>
</div>
<div class="fluid-panel" id="water-panel">
<div class="fluid-bar-container">
<div id="water-bar-fill" class="fluid-bar-fill" style="background: #5e92cd;"></div>
</div>
<span id="water-label" class="fluid-label">Water: 0/1000 (+0/s)</span>
<img src="assets/sprites/liquids/liquid-water.png" class="fluid-icon">
</div>
<div class="fluid-panel" id="oil-panel" style="display:none;">
<div class="fluid-bar-container">
<div id="oil-bar-fill" class="fluid-bar-fill" style="background: #313131;"></div>
</div>
<span id="oil-label" class="fluid-label">Oil: 0/1000 (+0/s)</span>
<img src="assets/sprites/liquids/liquid-oil.png" class="fluid-icon">
</div>
<div class="fluid-panel" id="cryo-panel" style="display:none;">
<div class="fluid-bar-container">
<div id="cryo-bar-fill" class="fluid-bar-fill" style="background: #6ecdec;"></div>
</div>
<span id="cryo-label" class="fluid-label">Cryofluid: 0/1000 (+0/s)</span>
<img src="assets/sprites/liquids/liquid-cryofluid.png" class="fluid-icon">
</div>
<div class="fluid-panel" id="slag-panel" style="display:none;">
<div class="fluid-bar-container">
<div id="slag-bar-fill" class="fluid-bar-fill" style="background: #ff8c00;"></div>
</div>
<span id="slag-label" class="fluid-label">Slag: 0/1000 (+0/s)</span>
<img src="assets/sprites/liquids/liquid-slag.png" class="fluid-icon">
</div>
</div>
<!-- Contenedor Principal -->
<div id="game-container">
<header>
<img src="assets/sprites/icons/mindc.logo.png" alt="Mindustry Clicker"
style="width: 650px; margin-bottom: 10px; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));">
<div id="prestige-badge" style="display:none; margin-bottom:8px; animation: badgePulse 2s infinite ease-in-out;">
<span id="prestige-badge-container" style="background:rgba(254,209,123,0.15); color:#fed17b; padding:6px 18px; border-radius:4px; font-size:13px; font-weight:800; border:1px solid #fed17b; letter-spacing:1px; display:inline-flex; align-items:center; gap:8px;">
<img src="assets/sprites/icons/status-fast.png" style="width:16px;height:16px;filter:drop-shadow(0 0 5px rgba(254,209,123,0.5));">
PRESTIGE <span id="prestige-badge-text">I</span>
</span>
</div>
<div>
<h4>V1.0.10</h4>
</div>
</header>
<main>
<section id="clicker-panel">
<div id="resource-panels">
<div id="copper-panel" class="resource-button-container">
<button class="resource-mine-btn" data-resource="copper">
<img src="assets/sprites/items/item-copper.png" class="resource-img">
<span class="resource-text" id="copper-text">Extraction (+1) /s: 0</span>
</button>
</div>
<div id="lead-panel" class="resource-button-container locked">
<button class="resource-mine-btn" data-resource="lead" disabled>
<img src="assets/sprites/items/item-lead.png" class="resource-img">
<span class="resource-text" id="lead-text">Extraction (+0) /s: 0</span>
</button>
<div class="unlock-overlay">LOCKED</div>
</div>
<div id="coal-panel" class="resource-button-container locked">
<button class="resource-mine-btn" data-resource="coal" disabled>
<img src="assets/sprites/items/item-coal.png" class="resource-img">
<span class="resource-text" id="coal-text">Extraction (+0) /s: 0</span>
</button>
<div class="unlock-overlay">LOCKED</div>
</div>
<div id="sand-panel" class="resource-button-container locked">
<button class="resource-mine-btn" data-resource="sand" disabled>
<img src="assets/sprites/items/item-sand.png" class="resource-img">
<span class="resource-text" id="sand-text">Extraction (+0) /s: 0</span>
</button>
<div class="unlock-overlay">LOCKED</div>
</div>
<div id="scrap-panel" class="resource-button-container locked">
<button class="resource-mine-btn" data-resource="scrap" disabled>
<img src="assets/sprites/items/item-scrap.png" class="resource-img">
<span class="resource-text" id="scrap-text">Extraction (+0) /s: 0</span>
</button>
<div class="unlock-overlay">LOCKED</div>
</div>
<div id="titanium-panel" class="resource-button-container locked">
<button class="resource-mine-btn" data-resource="titanium" disabled>
<img src="assets/sprites/items/item-titanium.png" class="resource-img">
<span class="resource-text" id="titanium-text">Extraction (+0) /s: 0</span>
</button>
<div class="unlock-overlay">LOCKED</div>
</div>
<div id="thorium-panel" class="resource-button-container locked">
<button class="resource-mine-btn" data-resource="thorium" disabled>
<img src="assets/sprites/items/item-thorium.png" class="resource-img">
<span class="resource-text" id="thorium-text">Extraction (+0) /s: 0</span>
</button>
<div class="unlock-overlay">LOCKED</div>
</div>
</div>
</section>
<section id="upgrades-panel">
<div id="nav-buttons-container"></div>
<div id="upgrades-section" class="upgrades-subsection">
<h2>Sector Upgrades</h2>
<div id="upgrade-buttons-container"></div>
</div>
<div id="production-section" class="upgrades-subsection hidden">
<h2>Production Blocks</h2>
<div id="production-buttons-container"></div>
</div>
<div id="energy-section" class="upgrades-subsection hidden">
<h2>Energy Blocks</h2>
<div id="energy-buttons-container"></div>
</div>
<div id="liquids-section" class="upgrades-subsection hidden">
<h2>Chemical Processing</h2>
<div id="liquids-buttons-container"></div>
</div>
<div id="logic-section" class="upgrades-subsection hidden">
<h2>Logic & Automation</h2>
<p style="color:#aaa; font-size:0.85em; margin:0 0 12px;">Unlock the Logic Processor to enable quick
+/- controls on all blocks and upgrades.</p>
<div id="logic-buttons-container"></div>
<div id="quick-controls-container" style="display:none; margin-top:16px;"></div>
</div>
</section>
</main>
</div>
<div id="footer-buttons"
style="position: fixed; bottom: 20px; right: 20px; z-index: 10000; display: flex; flex-direction: column; gap: 10px;">
<!-- Botón de Configuración Dinámico (Avatar) -->
<button id="config-btn" onclick="document.getElementById('config-modal').style.display='flex'"
title="Settings & User"
style="width: 50px; height: 50px; border-radius: 50%; background: #2f3136; border: 2px solid #5865F2; cursor: pointer; display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 0; transition: all 0.2s; box-shadow: 0 4px 12px rgba(0,0,0,0.5);"
onmouseover="this.style.transform='scale(1.1)'" onmouseout="this.style.transform='scale(1)'">
<img id="config-btn-img" src="assets/sprites/blocks/conveyors/router.png"
style="width: 100%; height: 100%; object-fit: cover;">
</button>
<button id="credits-btn" title="Mindustry Credits & Info"
onclick="document.getElementById('credits-modal').style.display='flex'"
style="width: 50px; height: 50px; border-radius: 8px; background: #333; border: 2px solid #5a5a5a; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s;"
onmouseover="this.style.background='#555'; this.style.transform='scale(1.1)'"
onmouseout="this.style.background='#333'; this.style.transform='scale(1)'">
<!-- IMAGEN DE CREDITOS -->
<img src="assets/sprites/icons/link.png" alt="Credits" style="max-width: 38px; max-height: 38px;">
</button>
<a href="https://github.com/Arktcode" target="_blank" id="github-btn" title="My GitHub Repository"
style="width: 50px; height: 50px; border-radius: 8px; background: #333; border: 2px solid #5a5a5a; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; overflow: hidden;"
onmouseover="this.style.background='#555'; this.style.transform='scale(1.1)'"
onmouseout="this.style.background='#333'; this.style.transform='scale(1)'">
<img src="https://cdn.jsdelivr.net/npm/simple-icons@v6/icons/github.svg" alt="GitHub"
style="width: 28px; height: 28px; filter: invert(1); object-fit: contain;">
</a>
</div>
<!-- Modal de Información MIndustry -->
<div id="credits-modal"
style="display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 2000; align-items: center; justify-content: center; font-family: 'gg sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;">
<div
style="background: #36393f; border-radius: 8px; width: 450px; color: #dcddde; box-shadow: 0 8px 24px rgba(0,0,0,0.2); overflow: hidden; border: 1px solid #202225;">
<div
style="padding: 16px; background: #2f3136; border-bottom: 1px solid #202225; display: flex; justify-content: space-between; align-items: center;">
<h2 style="margin: 0; color: #fff; font-size: 20px; font-weight: 600;">About Mindustry Clicker
</h2>
</div>
<div style="padding: 20px;">
<p style="margin-top: 0; margin-bottom: 8px;"><strong style="color: #fff;">Official Content &
Resources:</strong> <span style="color: #007ef4;">Anuken</span> (Creator of Mindustry)</p>
<p style="margin-top: 0; margin-bottom: 20px;"><strong style="color: #fff;">Special Thanks:</strong>
To all the players and the Hispanic community and the Keso <img src="assets/sprites/keso.png"
style="width: 20px; height: 20px; border-radius: 4px;"></p>
<p style="margin-top: 0; margin-bottom: 20px;"><strong style="color: #fff;">Credits:</strong>
jojofr. <img src="assets/sprites/happy.png" style="width: 20px; height: 20px; border-radius: 4px;">
</p>
<div
style="background: #2f3136; padding: 12px; border-radius: 4px; margin-bottom: 20px; border: 1px solid #202225;">
<ul style="list-style: none; padding-left: 0; margin: 0; font-size: 0.95em;">
<li style="margin-bottom: 12px; display: flex; align-items: center; gap: 8px;">
<img src="assets/sprites/iconLogo.png" alt="Official Icon"
style="width: 20px; height: 20px; border-radius: 4px;">
<a href="https://mindustrygame.github.io/" target="_blank"
style="color: #00aff4; text-decoration: none; font-weight: 500;">Official Mindustry
Website</a>
</li>
<li style="margin-bottom: 12px; display: flex; align-items: center; gap: 8px;">
<img src="assets/sprites/blocks/core-shardLogo.png" alt="Global Discord"
style="width: 20px; height: 20px; border-radius: 4px;">
<a href="https://discord.gg/mindustry" target="_blank"
style="color: #00aff4; text-decoration: none; font-weight: 500;">Mindustry Official
Discord Community</a>
</li>
<li style="margin-bottom: 0; display: flex; align-items: center; gap: 8px;">
<img src="assets/sprites/mesLogo.png" alt="Spanish Discord"
style="width: 20px; height: 20px; border-radius: 4px;">
<a href="https://discord.com/invite/C83m4Yg9Kt" target="_blank"
style="color: #00aff4; text-decoration: none; font-weight: 500;">Mindustry Unofficial
Spanish Discord Community</a>
</li>
</ul>
</div>
</div>
<div
style="padding: 16px; background: #2f3136; display: flex; justify-content: space-between; align-items: center;">
<div style="display: flex; justify-content: flex-end; width: 100%;">
<button onclick="document.getElementById('credits-modal').style.display='none'"
style="padding: 10px 24px; background: #5865F2; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 14px; transition: background 0.2s;"
onmouseover="this.style.background='#4752C4'" onmouseout="this.style.background='#5865F2'">Got
It!</button>
</div>
</div>
</div>
</div>
<!-- Modal del Leaderboard Global Firebase -->
<div id="leaderboard-modal"
style="display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 2500; align-items: center; justify-content: center; font-family: 'gg sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;">
<div
style="background: #36393f; border-radius: 0; width: 400px; color: #dcddde; box-shadow: 0 8px 24px rgba(0,0,0,0.2); overflow: hidden; border: 1px solid #202225;">
<div
style="padding: 16px; background: #2f3136; border-bottom: 1px solid #202225; display: flex; justify-content: center;">
<img src="assets/sprites/icons/mcg-banner.png" alt="Global Leaderboard"
style="width: 378px; height: 27px; border-radius: 4px;">
</div>
<!-- Tab navigation -->
<div style="display:flex; align-items:center; justify-content:space-between; padding:6px 12px; background:#2b2d31; border-bottom:1px solid #202225;">
<button onclick="window.lbPrevView()" style="background:none; border:none; color:#aaa; font-size:16px; font-weight:700; cursor:pointer; padding:4px 8px; border-radius:4px; transition:color 0.2s; line-height:1;" onmouseover="this.style.color='#fff'" onmouseout="this.style.color='#aaa'"><</button>
<span id="lb-tab-label" style="color:#fff; font-weight:700; font-size:13px; letter-spacing:0.5px; display:flex; align-items:center; gap:6px;">
<img src="assets/sprites/icons/status-boss.png" style="width:16px;height:16px;"> Score Ranking <img src="assets/sprites/icons/status-boss.png" style="width:16px;height:16px;">
</span>
<button onclick="window.lbNextView()" style="background:none; border:none; color:#aaa; font-size:16px; font-weight:700; cursor:pointer; padding:4px 8px; border-radius:4px; transition:color 0.2s; line-height:1;" onmouseover="this.style.color='#fff'" onmouseout="this.style.color='#aaa'">></button>
</div>
<div id="leaderboard-list" style="padding: 10px; max-height: 350px; overflow-y: auto;">
<div style="text-align: center; color: #888; margin-top: 20px; font-style: italic;">Connecting with the
global Mindustry clicker network...</div>
</div>
<div id="leaderboard-my-stats"
style="padding: 10px; border-top: 2px solid #202225; background: #2f3136; display: none;">
<!-- Aquí vivirá el Top % estadístico personal -->
</div>
<div
style="padding: 16px; background: #2f3136; display: flex; justify-content: center; align-items: center; gap: 10px;">
<button id="leaderboard-prestige-btn" onclick="if(window.getPrestigeLevel && window.getPrestigeLevel() > 0) window.showExistingPrestigeOverlay();"
style="position:relative; width:38px; height:38px; background:#000; border:1px solid #fed17b; border-radius:4px; cursor:pointer; display:flex; align-items:center; justify-content:center; transition: transform 0.2s; overflow:hidden;"
onmouseover="this.style.transform='scale(1.1)'" onmouseout="this.style.transform='scale(1)'">
<img src="assets/sprites/icons/status-fast.png" style="width:20px; height:20px;">
</button>
<button id="leaderboard-auth-btn"
style="padding: 10px 15px; background: #5865F2; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 14px; transition: background 0.2s;"
onmouseover="this.style.background='#4752C4'" onmouseout="this.style.background='#5865F2'">Login
with Discord</button>
<button onclick="document.getElementById('leaderboard-modal').style.display='none'"
style="padding: 10px 24px; background: #4f545c; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 14px; transition: background 0.2s;"
onmouseover="this.style.background='#686d73'"
onmouseout="this.style.background='#4f545c'">Close</button>
</div>
</div>
</div>
<!-- Modal de Configuración (Audio & Cuentas) -->
<div id="config-modal"
style="display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 2100; align-items: center; justify-content: center; font-family: 'gg sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;">
<div
style="background: #36393f; border-radius: 4px; width: 440px; color: #dcddde; box-shadow: 0 8px 24px rgba(0,0,0,0.2); overflow: hidden; border: 1px solid #202225;">
<div
style="padding: 16px; background: #2f3136; border-bottom: 1px solid #202225; display: flex; justify-content: center; align-items: center;">
<h2 style="margin: 0; color: #fff; font-size: 16px; font-weight: 700; text-transform: uppercase;">User
Settings</h2>
</div>
<div style="padding: 24px;">
<div style="margin-bottom: 24px;">
<label
style="display:block; font-size: 12px; font-weight:700; color:#b9bbbe; text-transform:uppercase; margin-bottom:8px;">Music
Volume</label>
<input type="range" id="vol-music" min="0" max="1" step="0.01"
style="width: 100%; accent-color: #5865F2; cursor: pointer;">
</div>
<div style="margin-bottom: 8px;">
<label
style="display:block; font-size: 12px; font-weight:700; color:#b9bbbe; text-transform:uppercase; margin-bottom:8px;">SFX
Volume</label>
<input type="range" id="vol-sfx" min="0" max="1" step="0.01"
style="width: 100%; accent-color: #5865F2; cursor: pointer;">
</div>
<div style="margin-bottom: 24px;">
<label
style="display:block; font-size: 12px; font-weight:700; color:#b9bbbe; text-transform:uppercase; margin-bottom:8px;">Show
Item Name</label>
<input type="checkbox" id="toggle-item-names"
style="display:inline-block; width: auto; accent-color: #5865F2; cursor: pointer; scale: 1.55;">
</div>
<div>
<label
style="display:block; font-size: 12px; font-weight:700; color:#b9bbbe; text-transform:uppercase; margin-bottom:8px;">Simplify
Numbers (1k, 1M)</label>
<input type="checkbox" id="toggle-simplify-numbers"
style="display:inline-block; width: auto; accent-color: #5865F2; cursor: pointer; scale: 1.55;">
</div>
</div>
<div style="padding: 12px 16px; background: #2f3136; display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid #202225; flex-wrap: wrap;">
<div style="display: flex; gap: 8px; flex-wrap: nowrap;">
<button
onclick="window.saveGame().then(ok => { if(ok) { this.innerText='Saved!'; setTimeout(()=>this.innerText='Save Progress', 2000); } else { this.innerText='Error!'; setTimeout(()=>this.innerText='Save Progress', 2000); } })"
style="padding: 8px 14px; background: #5865F2; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; transition: background 0.2s;"
onmouseover="this.style.background='#4752C4'" onmouseout="this.style.background='#5865F2'">Save Progress</button>
<button
onclick="window.loadGame().then(ok => { if(ok) { this.innerText='Loaded!'; setTimeout(()=>this.innerText='Load Progress', 2000); } else { this.innerText='Error!'; setTimeout(()=>this.innerText='Load Progress', 2000); } })"
style="padding: 8px 14px; background: #5865F2; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; transition: background 0.2s;"
onmouseover="this.style.background='#4752C4'" onmouseout="this.style.background='#5865F2'">Load Progress</button>
<button onclick="window.hardReset()"
style="padding: 8px 14px; background: #da3633; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; transition: background 0.2s;"
onmouseover="this.style.background='#b62324'" onmouseout="this.style.background='#da3633'"
title="Wipe all local progress">Hard Reset</button>
</div>
<button onclick="document.getElementById('config-modal').style.display='none'"
style="padding: 8px 14px; background: #4f545c; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; transition: background 0.2s;"
onmouseover="this.style.background='#686d73'"
onmouseout="this.style.background='#4f545c'">Close</button>
</div>
</div>
</div>
<audio id="background-music" loop>
<source src="assets/editor.ogg" type="audio/ogg">
</audio>
<audio id="explosion-sound">
<source src="assets/explosionReactor.ogg" type="audio/ogg">
</audio>
<script src="scripts/prestige.js"></script>
<script src="scripts/items.js"></script>
<script src="scripts/blocks.js"></script>
<script src="scripts/upgrades.js"></script>
<script src="scripts/functions.js"></script>
<script src="scripts/logic.js"></script>
<script src="scripts/script.js"></script>
<script src="scripts/audio.js"></script>
<script src="scripts/aprilfools.js"></script>
<script src="scripts/leaderboard.js"></script>
<script src="scripts/settings.js"></script>
<script type="module" src="scripts/firebase.js"></script>
</body>
<!-- Prestige Overlay -->
<div id="prestige-overlay" style="display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.96); z-index:99999; align-items:center; justify-content:center; flex-direction:column; font-family:'gg sans','Helvetica Neue',Helvetica,Arial,sans-serif; border: 4px solid #fed17b; box-sizing: border-box;">
<div style="text-align:center; animation: fadeIn 0.5s ease;">
<div style="display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px;">
<img src="assets/sprites/icons/status-fast.png" style="width:24px; height:24px;">
<div style="font-size:14px; color:#fed17b; text-transform:uppercase; letter-spacing:5px; font-weight:900;">PRESTIGE ACHIEVED</div>
<img src="assets/sprites/icons/status-fast.png" style="width:24px; height:24px;">
</div>
<div id="prestige-level-display" style="font-size:72px; font-weight:900; color:#fed17b; text-shadow:0 0 40px rgba(254,209,123,0.4); margin-bottom:16px; letter-spacing:4px;"></div>
<div style="display:flex; gap:24px; justify-content:center; margin-bottom:24px;">
<div style="background:rgba(254,209,123,0.05); border:1px solid #fed17b; border-radius:4px; padding:12px 24px;">
<div style="font-size:11px; color:#fed17b; text-transform:uppercase; letter-spacing:1px; opacity:0.7; margin-bottom:4px;">Production</div>
<div id="prestige-prod-mult" style="font-size:24px; font-weight:800; color:#fed17b;"></div>
</div>
<div style="background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.1); border-radius:4px; padding:12px 24px;">
<div style="font-size:11px; color:#888; text-transform:uppercase; letter-spacing:1px; margin-bottom:4px;">Build Costs</div>
<div id="prestige-cost-mult" style="font-size:24px; font-weight:800; color:#ed4245;"></div>
</div>
</div>
<div style="font-size:14px; color:#aaa; margin-bottom:40px; font-style: italic;">Resources and buildings have been reset.<br>Your legacy endures in the stars.</div>
<button onclick="window.closePrestigeScreen()" style="padding:16px 64px; background:#000; color:#fed17b; border:2px solid #fed17b; border-radius:4px; cursor:pointer; font-weight:900; font-size:16px; letter-spacing:3px; transition:all 0.2s; text-transform:uppercase;" onmouseover="this.style.background='#fed17b'; this.style.color='#000'" onmouseout="this.style.background='#000'; this.style.color='#fed17b'">Continue</button>
</div>
</div>
</html>