-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
1399 lines (1236 loc) · 69.1 KB
/
index.html
File metadata and controls
1399 lines (1236 loc) · 69.1 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
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover">
<style>
@keyframes db-shake {
10%,
90% {
transform: translate3d(-1px, 0, 0);
}
20%,
80% {
transform: translate3d(2px, 0, 0);
}
30%,
50%,
70% {
transform: translate3d(-4px, 0, 0);
}
40%,
60% {
transform: translate3d(4px, 0, 0);
}
}
</style>
<title>Goku: Saiyan Ascension - RPG</title>
<!-- PWA MANIFEST & SETTINGS -->
<link rel="manifest" href="manifest.json">
<meta name="theme-color" content="#050505">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<link rel="apple-touch-icon" href="IMG_0061.png">
<!-- FONTS -->
<link
href="https://fonts.googleapis.com/css2?family=Bangers&family=Orbitron:wght@400;700&family=Roboto:wght@400;700&display=swap"
rel="stylesheet">
<!-- STYLES -->
<link rel="stylesheet" href="style.css">
<!-- ASSET PRELOADING -->
<link rel="preload" as="image" href="IMG_0061.png">
<link rel="preload" as="image" href="IMG_0081.png">
<link rel="preload" as="image" href="hb_b.png">
<link rel="preload" as="image" href="IMG_0206.png">
<link rel="preload" as="image" href="majin_buu.png">
<link rel="preload" as="image" href="freeza.png">
<link rel="preload" as="image" href="cell.png">
<!-- GAME SCRIPTS -->
<script src="strategy.js" defer></script>
<script src="skills.js" defer></script>
<script src="gear.js" defer></script>
<script src="soul.js" defer></script>
<script src="battle.js" defer></script>
<script src="battleworld.js" defer></script>
<script src="hub.js" defer></script>
<script src="game.js" defer></script>
<script src="Ranks.js" defer></script>
<script src="advance.js" defer></script>
<script src="tapEvent.js" defer></script>
<script src="dungeons.js" defer></script> <!-- NEW -->
</head>
<body onload="initGame()">
<!-- Fallback if JS is disabled -->
<noscript>
<div style="color: red; text-align: center; padding: 20px;">
FATAL ERROR: Scouter indicates JavaScript is disabled. Please enable it to play!
</div>
</noscript>
<!-- NEW LOADING SCREEN (Replaces old #loader) -->
<div id="loader" style="position:fixed; top:0; left:0; width:100%; height:100%; background:#000; z-index:9999;">
<canvas id="beamCanvas"
style="display:block; position:absolute; top:0; left:0; width:100%; height:100%; z-index:1;"></canvas>
<div
style="position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); z-index:2; text-align:center; pointer-events:none;">
<div
style="color:white; font-family:'Courier New', monospace; font-size:24px; font-weight:bold; letter-spacing:2px; text-shadow: -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 2px 2px 0 #000, 0 0 15px cyan, 0 0 30px blue;">
LOADING <span id="percentText" style="color:#afffff">0%</span>
</div>
</div>
</div>
<!-- LEVEL UP MODAL -->
<div id="levelup-modal"
style="display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.9); z-index:3000; flex-direction:column; align-items:center; justify-content:center;">
<div
style="font-family:'Bangers'; color:#FFD700; font-size:3.5rem; text-shadow:2px 2px black; margin-bottom:20px; animation: popUp 0.5s;">
LEVEL UP!</div>
<div style="position:relative; width:150px; height:150px; margin-bottom:20px;">
<div
style="position:absolute; width:100%; height:100%; border-radius:50%; background:radial-gradient(circle, rgba(255,215,0,0.6), transparent); animation:pulseGreen 1.5s infinite;">
</div>
<img id="lvl-up-img" src="IMG_0061.png" alt="Level Up Form"
style="width:100%; height:100%; object-fit:contain; position:relative; z-index:2;">
</div>
<div style="font-family:'Orbitron'; color:white; font-size:1.5rem; margin-bottom:15px;">LV <span
id="lvl-up-old">1</span> ➔ <span id="lvl-up-new" style="color:#00ff00;">2</span></div>
<div
style="background:rgba(255,255,255,0.1); padding:15px; border-radius:10px; width:80%; max-width:300px; text-align:center; border:1px solid #555;">
<div style="color:#ff3e3e; margin:5px 0;">HP: <span id="lvl-stats-hp"></span> <span
style="color:#00ff00;">(+250)</span></div>
<div style="color:#3498db; margin:5px 0;">ATK: <span id="lvl-stats-atk"></span> <span
style="color:#00ff00;">(+5)</span></div>
<div style="color:#2ecc71; margin:5px 0;">DEF: <span id="lvl-stats-def"></span> <span
style="color:#00ff00;">(+2)</span></div>
</div>
<button onclick="closeLevelUp()"
style="margin-top:25px; padding:10px 40px; background:linear-gradient(to bottom, #f1c40f, #f39c12); border:none; border-radius:8px; color:white; font-family:'Bangers'; font-size:1.5rem; cursor:pointer;">CONTINUE</button>
</div>
<!-- DAILY LOGIN MODAL -->
<div id="daily-login-modal"
style="display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.95); z-index:10000; flex-direction:column; align-items:center; justify-content:center; pointer-events:auto;">
<h2
style="font-family:'Bangers'; font-size:3rem; color:var(--dbz-yellow); margin-bottom:30px; text-shadow:0 0 15px var(--dbz-orange);">
DAILY REWARDS</h2>
<div id="daily-grid"
style="display:grid; grid-template-columns: repeat(4, 1fr); gap:10px; width:90%; max-width:500px;">
<!-- Days injected by JS -->
</div>
<button id="btn-claim-daily" onclick="claimDailyLogin()" ontouchstart="claimDailyLogin()"
style="margin-top:20px; padding:15px 40px; font-family:'Bangers'; font-size:1.5rem; background:linear-gradient(to bottom, #2ecc71, #27ae60); color:white; border:none; border-radius:10px; box-shadow:0 0 15px #2ecc71; cursor:pointer; pointer-events:auto; position:relative; z-index:10001;">CLAIM</button>
</div>
<div id="ready-msg" class="ready-banner">READY?</div>
<nav>
<button id="tab-char" class="active" onclick="showTab('char')">HUB</button>
<button id="tab-battle" onclick="showTab('battle')">BATTLE</button>
<button id="tab-dungeon" onclick="showTab('dungeon')">DUNGEON</button> <!-- NEW -->
<button id="tab-explore" onclick="showTab('explore')">EXPLORE</button>
</nav>
<!-- GACHA STYLE HUB SCREEN -->
<div id="view-char" class="screen active-screen">
<div class="hub-overlay">
<div style="display:flex; flex-direction:column; align-items:center; gap:5px;">
<div class="rank-badge" id="ui-rank-badge" onclick="openDetails()">B</div>
<!-- TAP EVENT BUTTON -->
<div id="btn-tap-event" class="event-btn" style="display:none; position:static;"
onclick="openTapEventInfo()">
<div class="event-timer" id="tap-event-timer">00:00:00</div>
<div class="event-label">TAP CHALLENGE</div>
</div>
</div>
<div class="info-stack">
<div class="char-name" id="ui-name">Goku</div>
<div class="power-pill">⚡ <span id="ui-power">0</span></div>
</div>
</div>
<div class="side-menu">
<div class="side-btn" id="btn-supply" onclick="claimSupply()">
<i>🎁</i> Supply
</div>
<div class="side-btn" onclick="openStrategy()">
<i>💊</i> Strategy
</div>
<!-- SOUL GAUGE BUTTON -->
<div class="side-btn soul-btn-container" id="btn-soul" onclick="SoulSystem.openModal()">
<div class="soul-progress-ring" id="soul-ring"></div>
<div class="soul-content">
<div style="font-size:0.6rem; color:#00ffff;">SOUL</div>
<div id="soul-btn-pct" style="font-weight:bold; font-size:0.8rem;">0%</div>
<div id="soul-btn-lvl" style="font-size:0.6rem; color:#aaa;">Lv.1</div>
</div>
</div>
<!-- REBIRTH BUTTON HIDDEN (Old Training System Removed) -->
<!-- BOOST BUTTON (Gold Sink) -->
<div class="side-btn" id="btn-boost">
<i>🔥</i> Boost
</div>
<!-- RANK BUTTON -->
<div class="side-btn" onclick="Ranks.openModal()">
<i>🏆</i> Ranks
</div>
</div>
<!-- REPLACED STATIC IMAGE WITH HUB ARENA -->
<div class="gacha-view" id="hub-view-container" onclick="tapTrain()">
<div id="hub-arena">
<!-- Mini Goku and Enemies will be injected here by hub.js -->
</div>
</div>
<div class="bottom-panel" style="margin-bottom:15px; padding-bottom:calc(env(safe-area-inset-bottom) + 20px);">
<div class="panel-header">
<div class="lvl-badge">LV <span id="ui-lvl">1</span></div>
<div style="flex:1; margin: 0 15px;">
<!-- UPDATED XP PROGRESS HEADER with RIGHT ALIGN TEXT -->
<div
style="display:flex; justify-content:space-between; align-items:center; font-size:0.7rem; color:#777; margin-bottom:2px;">
<span>EXP PROGRESS</span>
<!-- New Span for formatted numbers -->
<span id="hub-xp-text" style="font-family:'Orbitron'; color:#00d2ff; font-weight:bold;">0 /
100</span>
</div>
<div class="bar-wrap" style="height:8px; background:#bdc3c7;">
<div id="bar-xp" class="bar-fill xp-f"></div>
</div>
</div>
<div class="coin-display">💰 <span id="ui-coins">0</span></div>
</div>
<div class="stats-container">
<div class="stats-col">
<div class="stat-row"><span class="stat-icon">❤️</span> <span id="ui-hp-txt">500</span></div>
<div class="stat-row"><span class="stat-icon">⚔️</span> <span id="ui-atk">40</span> <small
style="color:#27ae60; cursor:pointer;" onclick="openTraining()">[+]</small></div>
<div class="stat-row"><span class="stat-icon">🛡️</span> <span id="ui-def">25</span> <small
style="color:#27ae60; cursor:pointer;" onclick="openTraining()">[+]</small></div>
</div>
<div class="equip-slots">
<div class="slot-box" id="slot-w">
<span>⚔️</span>
<div class="slot-label">WEAPON</div>
</div>
<div class="slot-box" id="slot-a">
<span>🛡️</span>
<div class="slot-label">ARMOR</div>
</div>
<!-- GEAR STONE SLOTS (New) -->
<div class="gs-slot-container"
style="display:flex; flex-direction:column; align-items:center; display:none;"
id="gs-w-container">
<div class="slot-box" style="border-color:#2ecc71; background:rgba(46, 204, 113, 0.1);">
<span style="font-size:1.2rem;">⚔️✨</span>
<div class="slot-label" style="color:#2ecc71;">GEAR STONE</div>
<div
style="font-family:'Bangers'; color:#fff; font-size:1.5rem; text-shadow:1px 1px #000; margin-top:2px;">
X<span id="gs-w-count">0</span></div>
</div>
<button class="g-btn-green"
style="width:100%; padding:2px; font-size:1rem; margin-top:2px; border-radius:5px;"
onclick="useGearStone('w')">USE</button>
</div>
<div class="gs-slot-container"
style="display:flex; flex-direction:column; align-items:center; display:none;"
id="gs-a-container">
<div class="slot-box" style="border-color:#2ecc71; background:rgba(46, 204, 113, 0.1);">
<span style="font-size:1.2rem;">🛡️✨</span>
<div class="slot-label" style="color:#2ecc71;">GEAR STONE</div>
<div
style="font-family:'Bangers'; color:#fff; font-size:1.5rem; text-shadow:1px 1px #000; margin-top:2px;">
X<span id="gs-a-count">0</span></div>
</div>
<button class="g-btn-green"
style="width:100%; padding:2px; font-size:1rem; margin-top:2px; border-radius:5px;"
onclick="useGearStone('a')">USE</button>
</div>
</div>
</div>
<!-- INTERACT BUTTON (Text set by JS) -->
<div id="btn-interact"></div>
<!-- AUTO MERGE BUTTON -->
<button id="btn-auto-merge" onclick="toggleAutoMerge()" style="display:none;">
<span>⚡ AUTO MERGE</span>
</button>
<button class="action-btn" id="btn-action" onclick="doEquip()">
<span>EQUIP SELECTED</span>
</button>
<button class="action-btn" id="btn-merge"
style="display:none; background: linear-gradient(to bottom, #8e44ad, #9b59b6);" onclick="mergeItems()">
<span>MERGE (3)</span>
</button>
<div style="font-size:0.75rem; color:#777; margin-bottom:5px; display:flex; justify-content:space-between;">
<span>GEAR INVENTORY</span>
<span style="font-size:0.7rem;">Tap to Select</span>
</div>
<div id="inv-grid" class="inv-scroll"></div>
<div class="bot-nav">
<div class="nav-icon" onclick="openTraining()">
<div class="nav-circle" style="color:#e74c3c;">💪</div>
Training
</div>
<div class="nav-icon" onclick="Skills.openSkillScreen()">
<div class="nav-circle" style="color:#f1c40f;">🌟</div>
Skills
</div>
<div class="nav-icon" onclick="GearSystem.open()">
<div class="nav-circle" style="color:#3498db;">🎒</div>
Gear
</div>
<div class="nav-icon" onclick="AdvanceSystem.open()">
<div class="nav-circle" style="color:#9b59b6;">⬆️</div>
Advance
</div>
</div>
</div>
</div>
<!-- BATTLE SCREEN -->
<div id="view-battle" class="screen">
<div class="battle-overlay"></div>
<div id="cutin-overlay">
<img id="cutin-img"
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="
alt="Special Attack">
</div>
<div id="battle-menu">
<div id="menu-title"
style="color:var(--dbz-yellow); font-family:'Bangers'; font-size:3rem; margin-bottom:10px;">VICTORY!
</div>
<div style="width:80%; margin-bottom:15px;">
<div
style="display:flex; justify-content:space-between; color:white; font-family:'Orbitron'; font-size:0.8rem;">
<span>LV <span id="r-lvl">1</span></span>
<span id="r-xp-text">0 / 100</span>
</div>
<div class="bar-wrap" style="height:10px; background:#444; margin-top:5px;">
<div id="r-bar-xp" class="bar-fill xp-f"></div>
</div>
</div>
<div class="rewards-box">
<div class="reward-row">XP GAINED: <span id="r-xp" class="reward-val">0</span></div>
<div class="reward-row">COINS: <span id="r-coins" class="reward-val">0</span></div>
<div class="reward-row">DROPS: <span id="r-drops" style="color:cyan; font-size:0.8rem;">NONE</span>
</div>
</div>
<button class="menu-btn" onclick="autoStartNext()">NEXT STAGE (<span id="auto-timer">3</span>)</button>
<button class="menu-btn exit" onclick="exitBattle()">EXIT</button>
</div>
<div class="stage-selector" id="ui-stage-selector"></div>
<div id="start-prompt">SELECT A STAGE<br>TO BEGIN FIGHT!</div>
<div class="arena">
<div id="fx-beam-spacer" class="beam"></div>
<!-- Updated Beam Image Source -->
<img id="fx-beam" class="beam" src="hb_b.png" alt="Energy Beam">
<div class="unit" id="p-box">
<div class="bar-wrap" style="height:10px; margin-bottom: 2px;">
<div id="btl-p-hp" class="bar-fill hp-f" style="width:100%"></div>
</div>
<div class="bar-wrap" style="height:6px; border-color: gold; margin-top:0;">
<div id="btl-p-charge" class="bar-fill charge-f" style="width:0%"></div>
</div>
<img id="btl-p-sprite" src="IMG_0061.png" alt="Player Goku">
<div style="font-family:'Bangers'; font-size:1rem; margin-top:5px;">GOKU</div>
</div>
<div class="unit" id="e-box">
<div class="bar-wrap" style="height:10px;">
<div id="btl-e-hp" class="bar-fill hp-f" style="width:100%"></div>
</div>
<img id="e-img"
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="
style="display:none;" alt="Enemy">
<div id="e-name"
style="font-family:'Bangers'; font-size:1rem; margin-top:5px; color:red; text-shadow: 1px 1px black;">
</div>
</div>
</div>
<div id="log">Battle Log initialized...</div>
</div>
<!-- NEW DUNGEON HUB SCREEN -->
<div id="view-dungeon" class="screen" style="background:#0a0a0a; padding-bottom:80px;">
<div class="dungeon-header"
style="padding:20px; background:linear-gradient(to bottom, #2c3e50, transparent); display:flex; justify-content:space-between; align-items:center;">
<div style="font-family:'Bangers'; font-size:2.5rem; color:#e74c3c; text-shadow:0 0 10px red;">BOSS RUSH
</div>
<div class="key-display"
style="background:rgba(0,0,0,0.6); padding:8px 15px; border-radius:20px; border:1px solid gold; color:white; font-family:'Orbitron';">
🗝️ KEYS: <span id="dungeon-keys-display" style="color:gold; font-weight:bold;">0</span>
</div>
</div>
<div id="dungeon-list"
style="padding:10px; display:flex; flex-direction:column; gap:15px; overflow-y:auto; height:calc(100% - 100px);">
<!-- Boss Cards Injected JS -->
</div>
</div>
<!-- NEW DUNGEON BATTLE SCREEN -->
<div id="view-dungeon-battle" class="screen" style="background:#000;">
<!-- TOP HUD -->
<div
style="position:absolute; top:0; left:0; width:100%; height:120px; background:linear-gradient(to bottom, rgba(0,0,0,0.9), transparent); z-index:10; padding:10px; box-sizing:border-box;">
<div id="db-boss-name"
style="text-align:center; color:red; font-family:'Bangers'; font-size:1.5rem; letter-spacing:2px; text-shadow:2px 2px black;">
BOSS MAJIN BUU</div>
<div id="db-dungeon-lvl"
style="text-align:center; color:#aaa; font-family:'Orbitron'; font-size:0.8rem; margin-bottom:5px;">
LEVEL I</div>
<!-- Boss HP Bar -->
<div
style="width:90%; height:20px; background:#333; border:2px solid white; margin:0 auto; position:relative;">
<div id="db-boss-hp-fill" style="width:100%; height:100%; background:#e74c3c; transition:width 0.2s;">
</div>
<div id="db-boss-hp-text"
style="position:absolute; top:0; left:0; width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-family:'Orbitron'; font-size:0.7rem; color:white; text-shadow:1px 1px black;">
100B / 100B</div>
</div>
<!-- Timer Bar -->
<div style="width:90%; height:6px; background:rgba(255,255,255,0.2); margin:5px auto 0; position:relative;">
<div id="db-timer-fill" style="width:100%; height:100%; background:white;"></div>
</div>
<div id="db-timer-text"
style="text-align:center; color:white; font-family:'Orbitron'; font-size:0.8rem; margin-top:2px;">90s
</div>
</div>
<!-- ARENA -->
<div id="dungeon-arena" class="db-battle-arena"
style="position:absolute; top:0; left:0; width:100%; height:100%; display:flex; align-items:center; justify-content:center; background:#000; overflow:hidden;">
<div class="db-player-box"
style="position:absolute; width:100px; height:100px; display:flex; align-items:center; justify-content:center; transform: translate(-50%, -50%);">
<img id="db-player-img" src="IMG_0061.png" style="width:100%; height:auto; transition: filter 0.1s;">
</div>
<div class="db-boss-box"
style="position:absolute; width:150px; height:150px; display:flex; align-items:center; justify-content:center; transform: translate(-50%, -50%);">
<img id="db-boss-img" src="" style="width:100%; height:auto; transition: filter 0.1s;">
</div>
<!-- Visual Effects Container -->
<div id="db-fx-container" style="position:absolute; inset:0; pointer-events:none; z-index:20;"></div>
</div>
<!-- BOTTOM HUD -->
<div
style="position:absolute; bottom:40px; left:0; width:100%; height:100px; background:linear-gradient(to top, rgba(0,0,0,0.95), transparent); z-index:10; display:flex; align-items:center; padding:0 20px;">
<div
style="width:60px; height:60px; border-radius:50%; border:2px solid white; overflow:hidden; background:black; margin-right:15px;">
<img src="IMG_0061.png" style="width:100%; height:100%; object-fit:cover;">
</div>
<div style="flex:1;">
<!-- Player HP -->
<div
style="display:flex; justify-content:space-between; color:white; font-family:'Bangers'; font-size:1rem; margin-bottom:2px;">
<span>GOKU</span>
<span id="db-player-hp-text">500/500</span>
</div>
<div
style="width:100%; height:15px; background:#333; border:1px solid white; border-radius:4px; overflow:hidden;">
<div id="db-player-hp-fill"
style="width:100%; height:100%; background:linear-gradient(to right, #c0392b, #e74c3c);"></div>
</div>
<!-- Player XP -->
<div
style="width:100%; height:6px; background:#222; margin-top:5px; border-radius:3px; overflow:hidden;">
<div id="db-player-xp-fill" style="width:0%; height:100%; background:#3498db;"></div>
</div>
</div>
</div>
<!-- RESULT MODAL -->
<div id="dungeon-result-modal"
style="display:none; position:fixed; inset:0; background:rgba(0,0,0,0.9); z-index:100; flex-direction:column; align-items:center; justify-content:center;">
<div id="db-result-title"
style="font-family:'Bangers'; font-size:4rem; color:gold; text-shadow:0 0 20px black;">VICTORY</div>
<div id="db-rewards-list" style="margin:20px; text-align:center; font-family:'Orbitron'; color:white;">
<!-- Injected Rewards -->
</div>
<button id="db-btn-continue"
style="padding:15px 40px; font-family:'Bangers'; font-size:1.5rem; border:none; background:white; color:black; cursor:pointer;">CONTINUE
(5)</button>
</div>
</div>
<!-- GEAR SYSTEM OVERLAY -->
<div id="gear-overlay" style="display:none;">
<div class="g-header">
<h2>GEAR BACKPACK</h2>
<div class="g-close" id="g-close-btn">✕</div>
</div>
<div class="g-content">
<p style="font-size: 0.7rem; color: #888; margin-bottom: 10px;">Tap an item to manage...</p>
<div class="g-grid" id="gear-list"></div>
</div>
<div class="g-footer">
<div class="g-preview-box">
<div id="g-display-name" class="g-item-name">EMPTY SLOT</div>
<div id="g-display-stats" class="g-item-stats">Select item to view potential power...</div>
</div>
<div class="g-btn-row">
<button id="g-details-btn" class="g-btn g-btn-blue" disabled>DETAILS</button>
<button id="g-auto-merge-btn" class="g-btn"
style="background: linear-gradient(to bottom, #8e44ad, #9b59b6); border-color:#8e44ad;"
onclick="window.autoMergeGear()">⚡ AUTO MERGE</button>
<button id="g-sell-btn" class="g-btn g-btn-green" disabled>SELL ITEM</button>
</div>
<div class="g-btn-row" style="margin-top:5px;">
<button id="g-sell-all-btn" class="g-btn g-btn-green" style="background:#e67e22; flex:1;" disabled>SELL
STACK</button>
<button id="g-smelt-btn" class="g-btn"
style="background: linear-gradient(to bottom, #c0392b, #e74c3c); border-color:#c0392b; flex:1; display:none;"
onclick="document.getElementById('smelt-modal').style.display='flex'">🔥 SMELT ALL</button>
</div>
</div>
</div>
<!-- GEAR DETAILS MODAL -->
<div id="g-modal"
style="display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.85); z-index:100000; align-items:center; justify-content:center;">
<div
style="background:#ecf0f1; border-radius:10px; width:90%; max-width:400px; padding:20px; text-align:center; box-shadow:0 0 20px rgba(0,0,0,0.5);">
<h3 id="gm-name" style="font-family:'Bangers'; color:#2c3e50; font-size:1.8rem;"></h3>
<div id="gm-body" style="font-size:0.9rem; margin-bottom:20px;"></div>
<div id="gm-price" style="color:#27ae60; font-weight:bold; margin-bottom:20px;"></div>
<button id="g-modal-close" class="g-btn g-btn-blue" style="width:100%"
onclick="document.getElementById('g-modal').style.display='none'">GOT IT</button>
</div>
</div>
<!-- SMELT WARNING MODAL -->
<div id="smelt-modal"
style="display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.9); z-index:110000; flex-direction:column; align-items:center; justify-content:center;">
<div
style="background:#1a1a2e; border:3px solid #e74c3c; border-radius:15px; padding:30px; width:85%; max-width:400px; text-align:center; box-shadow:0 0 30px #c0392b;">
<div
style="font-family:'Bangers'; color:#e74c3c; font-size:2.5rem; margin-bottom:15px; text-shadow:0 0 10px red;">
🔥 SMELT ALL 🔥</div>
<div style="font-family:'Orbitron'; color:white; font-size:0.9rem; margin-bottom:20px; line-height:1.5;">
Are you sure you want to smelt <span style="color:#e74c3c; font-weight:bold;">ALL</span> non-equipped
Normal Gear in your backpack into Gear Stones?<br><br>
For every 10 weapons, you get 1 Weapon Gear Stone.<br>
For every 10 armors, you get 1 Armor Gear Stone.<br><br>
<span style="color:#f1c40f;">⚠️ Any gear that is not divisible by 10 will be burned and lost
forever!</span>
</div>
<div style="display:flex; justify-content:center; gap:15px;">
<button onclick="document.getElementById('smelt-modal').style.display='none'"
style="flex:1; padding:12px; background:#555; border:none; border-radius:10px; color:white; font-family:'Bangers'; font-size:1.4rem; cursor:pointer;">CANCEL</button>
<button onclick="window.smeltInventory()"
style="flex:1; padding:12px; background:linear-gradient(to bottom, #c0392b, #e74c3c); border:none; border-radius:10px; color:white; font-family:'Bangers'; font-size:1.4rem; cursor:pointer; box-shadow:0 4px 0 #922b21;">SMELT
IT</button>
</div>
</div>
</div>
<!-- SKILLS OVERLAY -->
<div id="skills-overlay"
style="display:none; position:fixed; inset:0; background:rgba(0,0,0,0.95); z-index:9999; color:#fff; flex-direction:column; overflow-y:auto;">
<div class="g-header" style="background:transparent; border:none; box-shadow:none;">
<h1 style="color:var(--dbz-orange);">🔥 SKILLS 🔥</h1>
<div class="g-close" onclick="Skills.closeSkillScreen()" style="color:#fff;">✕</div>
</div>
<div id="skills-list-container" style="padding:20px; max-width:800px; margin:0 auto; width:100%;">
<!-- Skill Cards Injected Here -->
</div>
<button class="g-btn g-btn-blue" style="margin:20px auto; width:80%; max-width:300px;"
onclick="Skills.closeSkillScreen()">CLOSE</button>
</div>
<!-- STRATEGY OFFLINE MODAL -->
<div id="strategy-modal">
<div class="strategy-box">
<!-- LEFT SIDE: Bulma & Bubble -->
<div class="strategy-visuals">
<div class="comic-bubble">
Welcome back! Here is what you got while you were away!
</div>
<!-- IMPORTANT: Local relative path -->
<img src="./IMG_0222.png" alt="Bulma Strategy" class="bulma-sprite" loading="eager" decoding="async"
draggable="false">
</div>
<!-- RIGHT SIDE: Details -->
<div class="strategy-details">
<h2 class="strat-title">OFFLINE REPORT</h2>
<div class="strat-info-row">
<span class="label">Time Away:</span>
<span class="value"><span id="strat-time">0</span> Min</span>
</div>
<div class="strat-info-row">
<span class="label">Rank Multiplier:</span>
<span class="value" id="strat-mult">x1</span>
</div>
<hr class="strat-divider">
<div class="strat-rewards">
<div id="strat-xp-display" class="reward-text xp-text">+0 XP</div>
<div id="strat-gold-display" class="reward-text gold-text">+0 COINS</div>
<div id="strat-item-display" class="reward-text item-text">No Items Found</div>
</div>
<button class="strat-claim-btn" onclick="claimStrategy()">CLAIM REWARDS</button>
<button class="strat-close-btn" onclick="closeStrategy()">CLOSE</button>
<div style="margin-top:15px; display:flex; gap:10px; justify-content:center;">
<button onclick="window.exportSave()"
style="background:#333; border:1px solid #555; color:#aaa; font-size:0.7rem; padding:5px 10px; border-radius:5px;">EXPORT
SAVE</button>
<button onclick="window.importSave()"
style="background:#333; border:1px solid #555; color:#aaa; font-size:0.7rem; padding:5px 10px; border-radius:5px;">IMPORT
SAVE</button>
</div>
</div>
</div>
</div>
<!-- SOUL LIBERATION MODAL -->
<div id="soul-modal"
style="display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.9); z-index:2000; flex-direction:column; align-items:center; justify-content:center;">
<div
style="width:90%; max-width:400px; background:#1a1a1a; border:2px solid #e74c3c; border-radius:15px; padding:20px; box-shadow:0 0 25px rgba(231,76,60,0.5); color:white; font-family:'Orbitron'; position:relative;">
<div class="g-close" onclick="SoulSystem.closeModal()"
style="position:absolute; top:10px; right:15px; color:#aaa;">✕</div>
<div style="text-align:center; border-bottom:1px solid #444; padding-bottom:10px; margin-bottom:15px;">
<div style="color:#e74c3c; font-size:0.8rem;">SOUL STONE LEVEL</div>
<div id="sm-level" style="font-family:'Bangers'; font-size:2.5rem; color:white;">Lv.1</div>
</div>
<div style="display:flex; justify-content:space-around; margin-bottom:20px;">
<div style="text-align:center;">
<div class="grav-spinner"
style="width:80px; height:80px; border-color:#00ffff; box-shadow:0 0 10px #00ffff;">
<span id="sm-pct" style="font-size:1.2rem; font-weight:bold;">0%</span>
</div>
</div>
<div style="flex:1; margin-left:15px;">
<div style="font-size:0.8rem; color:#aaa;">SOUL ABILITIES</div>
<div id="sm-stats" style="font-size:0.75rem; line-height:1.6; margin-top:5px; color:#00d2ff;">
<!-- Stats injected by JS -->
</div>
</div>
</div>
<button id="btn-liberate" onclick="SoulSystem.liberate()"
style="width:100%; padding:15px; background:#444; border:none; border-radius:8px; color:#777; font-family:'Bangers'; font-size:1.5rem; cursor:default;">
SOUL LIBERATION
</button>
<div id="sm-req" style="text-align:center; font-size:0.7rem; color:#555; margin-top:5px;">Requires 100% Soul
Gauge</div>
</div>
</div>
<!-- NEW: DETAILS MODAL -->
<div id="details-modal"
style="display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.9); z-index:3000; flex-direction:column; align-items:center; justify-content:center;">
<div
style="width:90%; max-width:400px; background:#111; border:2px solid #aaa; border-radius:15px; padding:0; overflow:hidden; box-shadow:0 0 30px black;">
<div
style="background:#222; padding:15px; border-bottom:1px solid #444; display:flex; justify-content:space-between; align-items:center;">
<span style="font-family:'Bangers'; font-size:1.5rem; color:white;">BATTLE STATS</span>
<span onclick="closeDetails()" style="color:#aaa; font-size:1.5rem; cursor:pointer;">✕</span>
</div>
<div style="padding:20px; font-family:'Orbitron'; font-size:0.9rem; color:#ddd;">
<div class="stat-row">
<span>🔥 Total Power</span>
<span id="det-power" style="color:var(--dbz-yellow); font-weight:bold;">0</span>
</div>
<div class="stat-row">
<span>❤️ Max HP</span>
<span id="det-hp" style="color:#ff3e3e">0</span>
</div>
<hr style="border-color:#333; margin:10px 0;">
<div class="stat-row">
<span>⚔️ Attack</span>
<span id="det-atk">0</span>
</div>
<div class="stat-row">
<span>🛡️ Defense</span>
<span id="det-def">0</span>
</div>
<div class="stat-row">
<span>⚡ Crit Chance</span>
<span id="det-crit">0%</span>
</div>
<hr style="border-color:#333; margin:10px 0;">
<div class="stat-row">
<span>💎 Soul Boost</span>
<span id="det-soul" style="color:#00ffff">x1.0</span>
</div>
<div class="stat-row">
<span>💰 Coins</span>
<span id="det-coins" style="color:#f1c40f">0</span>
</div>
</div>
</div>
</div>
<!-- STAGE DETAILS MODAL -->
<div id="stage-details-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;">
<div class="stage-card">
<div class="stage-header">STAGE <span id="sd-num">1</span></div>
<div class="enemy-preview-container">
<div class="enemy-aura"></div>
<img id="sd-enemy-img"
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="
alt="Enemy">
</div>
<div id="sd-enemy-name" style="font-family:'Bangers'; color:#ff5e57; font-size:1.2rem; margin-bottom:5px;">
</div>
<div class="stage-stats">
<div style="color:#f1c40f; font-size:0.9rem;">⚠️ REC. POWER</div>
<div id="sd-power" style="font-family:'Bangers'; font-size:1.8rem; color:white;">1,000</div>
</div>
<div class="stage-rewards">
<div class="reward-item">
<span>🌟 XP:</span> <span id="sd-xp" style="color:cyan">100</span>
</div>
<div class="reward-item">
<span>💰 Gold:</span> <span id="sd-coins" style="color:gold">250</span>
</div>
<div class="reward-item">
<span>🎁 Drops:</span> <span id="sd-drops" style="color:#e74c3c">Normal</span>
</div>
</div>
<div style="display:flex; gap:10px; width:100%; margin-top:15px;">
<button class="menu-btn exit" onclick="closeStageDetails()"
style="flex:1; font-size:1.2rem; padding:10px;">BACK</button>
<button class="menu-btn" onclick="confirmStart()"
style="flex:1; font-size:1.2rem; padding:10px; background:linear-gradient(to bottom, #2ecc71, #27ae60); border-color:#2ecc71;">FIGHT!</button>
</div>
</div>
</div>
<!-- CUSTOM CONFIRM MODAL -->
<div id="custom-confirm-modal"
style="display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.9); z-index:10002; align-items:center; justify-content:center;">
<div
style="background:#222; border:2px solid #e74c3c; border-radius:15px; padding:25px; width:90%; max-width:350px; text-align:center; box-shadow:0 0 20px #e74c3c;">
<div style="font-family:'Bangers'; color:#e74c3c; font-size:2rem; margin-bottom:15px;">⚠️ WARNING</div>
<div id="confirm-msg"
style="font-family:'Orbitron'; color:#ddd; font-size:0.9rem; margin-bottom:25px; line-height:1.5;">
Are you sure you want to reset all trained stats?
</div>
<div style="display:flex; gap:10px; justify-content:center;">
<button onclick="closeConfirmModal()"
style="padding:10px 20px; background:#555; border:none; border-radius:8px; color:white; font-family:'Bangers'; font-size:1.2rem; cursor:pointer;">CANCEL</button>
<button id="confirm-yes-btn" onclick="confirmResetSP()"
style="padding:10px 20px; background:#e74c3c; border:none; border-radius:8px; color:white; font-family:'Bangers'; font-size:1.2rem; cursor:pointer;">YES,
RESET</button>
</div>
</div>
</div>
<!-- CUSTOM ALERT MODAL -->
<div id="custom-alert-modal"
style="display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.85); z-index:120000; align-items:center; justify-content:center;">
<div
style="background:#1a1a2e; border:3px solid var(--dbz-yellow); border-radius:15px; padding:30px; width:85%; max-width:400px; text-align:center; box-shadow:0 0 30px var(--dbz-orange);">
<div id="alert-msg"
style="font-family:'Bangers'; color:white; font-size:1.5rem; margin-bottom:25px; letter-spacing:1px; line-height:1.4;">
Message</div>
<button onclick="closeAlert()"
style="padding:12px 35px; background:linear-gradient(to bottom, #f1c40f, #f39c12); border:none; border-radius:10px; color:white; font-family:'Bangers'; font-size:1.5rem; cursor:pointer; box-shadow:0 4px 0 #d35400;">GOT
IT</button>
</div>
</div>
<div id="advance-modal"
style="display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.95); z-index:5000; flex-direction:column; align-items:center; justify-content:center;">
<div class="g-close" onclick="AdvanceSystem.close()"
style="position:absolute; top:20px; right:20px; font-size:2rem; color:white;">✕</div>
<div
style="font-family:'Bangers'; color:#00d2ff; font-size:2.5rem; margin-bottom:10px; text-shadow:0 0 10px cyan;">
GEAR ADVANCEMENT</div>
<div style="display:flex; width:90%; max-width:400px; align-items:center; margin-bottom:20px;">
<img src="IMG_0222.png" onerror="this.style.display='none'"
style="width:80px; height:80px; border-radius:50%; border:2px solid #fff; margin-right:10px; object-fit:cover;">
<div id="bulma-speech"
style="background:white; color:black; padding:10px; border-radius:10px; font-family:'Orbitron'; font-size:0.8rem; position:relative;">
Use Dragon Shards to break your limits!
<div
style="position:absolute; left:-6px; top:50%; width:10px; height:10px; background:white; transform:rotate(45deg);">
</div>
</div>
</div>
<div id="adv-visual-container"
style="background:#222; border:2px solid #555; border-radius:15px; padding:20px; width:90%; max-width:400px; text-align:center;">
<div style="color:white; font-family:'Bangers'; font-size:1.5rem; margin-bottom:15px;">ADVANCE LEVEL: <span
id="adv-current-lvl" style="color:#00ff00;">0</span></div>
<div style="display:flex; justify-content:center; gap:20px; margin-bottom:20px;">
<div class="slot-box" id="adv-slot-w"></div>
<div class="slot-box" id="adv-slot-a"></div>
</div>
<div id="adv-stats-list"
style="background:rgba(0,0,0,0.5); padding:10px; border-radius:5px; text-align:left; font-family:'Orbitron'; font-size:0.8rem; color:#aaa; margin-bottom:15px;">
</div>
<div
style="display:flex; justify-content:space-between; color:white; font-family:'Orbitron'; font-size:0.9rem; margin-bottom:15px; border-top:1px solid #444; padding-top:10px;">
<div>💎 Shards: <span id="adv-shard-count" style="color:#00d2ff;">0</span></div>
<div>💰 Gold: <span id="adv-gold-count" style="color:#f1c40f;">0</span></div>
</div>
<button id="btn-do-advance" onclick="AdvanceSystem.upgrade()" class="action-btn"
style="background:linear-gradient(to right, #00d2ff, #0055ff); border:1px solid cyan; box-shadow:0 0 15px cyan;">ADVANCE</button>
</div>
</div>
<!-- TRAINING MODAL -->
<div id="training-modal"
style="display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.95); z-index:4000; flex-direction:column; align-items:center; justify-content:center;">
<style>
@keyframes pulseAura {
0% {
opacity: 0.5;
transform: scale(1);
}
100% {
opacity: 0.8;
transform: scale(1.1);
}
}
</style>
<div class="tr-container"
style="position:relative; width:90%; max-width:400px; background:#121212; border:2px solid #e74c3c; border-radius:15px; overflow:hidden; box-shadow:0 0 40px rgba(231,76,60,0.4);">
<div class="tr-header"
style="background:#e74c3c; padding:15px; text-align:center; font-family:'Bangers'; font-size:2rem; color:white; text-shadow:2px 2px black;">
TRAINING CHAMBER
</div>
<div class="tr-visual"
style="position:relative; height:180px; background:radial-gradient(circle at center, #330000, black); display:flex; justify-content:center; align-items:flex-end; overflow:hidden;">
<!-- Aura -->
<div class="tr-aura"
style="position:absolute; width:140px; height:140px; background:radial-gradient(circle, rgba(255,50,50,0.6), transparent 70%); border-radius:50%; animation: pulseAura 0.8s infinite alternate; bottom:20px;">
</div>
<img id="tr-goku-img" src="IMG_0061.png"
style="height:150px; position:relative; z-index:2; filter:drop-shadow(0 0 10px red);">
</div>
<div class="tr-content" style="padding:20px; color:white; font-family:'Orbitron';">
<div style="text-align:center; margin-bottom:20px; font-size:1.2rem;">
AVAILABLE SP: <span id="tr-sp-count"
style="color:#00ff00; font-size:1.5rem; font-weight:bold;">0</span>
</div>
<!-- HP ROW -->
<div class="tr-stat-row"
style="display:flex; justify-content:space-between; align-items:center; margin-bottom:15px; background:#222; padding:10px; border-radius:8px; border:1px solid #333;">
<div>
<div style="color:#ff3e3e; font-size:0.8rem;">MAX HP <span id="tr-hp-spent"
style="color:#aaa; margin-left:5px;">(+0)</span></div>
<div id="tr-hp-val" style="font-size:1rem;">500</div>
</div>
<button onclick="spendSP('hp')"
style="padding:8px 15px; background:#ff3e3e; border:none; border-radius:5px; color:white; font-weight:bold; cursor:pointer;">+20%
(1 SP)</button>
</div>
<!-- ATK ROW -->
<div class="tr-stat-row"
style="display:flex; justify-content:space-between; align-items:center; margin-bottom:15px; background:#222; padding:10px; border-radius:8px; border:1px solid #333;">
<div>
<div style="color:#3498db; font-size:0.8rem;">ATTACK <span id="tr-atk-spent"
style="color:#aaa; margin-left:5px;">(+0)</span></div>
<div id="tr-atk-val" style="font-size:1rem;">40</div>
</div>
<button onclick="spendSP('atk')"
style="padding:8px 15px; background:#3498db; border:none; border-radius:5px; color:white; font-weight:bold; cursor:pointer;">+20%
(1 SP)</button>
</div>
<!-- DEF ROW -->
<div class="tr-stat-row"
style="display:flex; justify-content:space-between; align-items:center; margin-bottom:15px; background:#222; padding:10px; border-radius:8px; border:1px solid #333;">
<div>
<div style="color:#2ecc71; font-size:0.8rem;">DEFENSE <span id="tr-def-spent"
style="color:#aaa; margin-left:5px;">(+0)</span></div>
<div id="tr-def-val" style="font-size:1rem;">25</div>
</div>
<button onclick="spendSP('def')"
style="padding:8px 15px; background:#2ecc71; border:none; border-radius:5px; color:white; font-weight:bold; cursor:pointer;">+20%
(1 SP)</button>
</div>
</div>
<div class="tr-footer"
style="padding:15px; background:#111; border-top:1px solid #333; display:flex; flex-direction:column; gap:10px;">
<button onclick="resetSP()"
style="width:100%; padding:10px; background:#e74c3c; border:none; border-radius:8px; color:white; font-family:'Bangers'; font-size:1.2rem; cursor:pointer; opacity:0.8;">RESET
SP</button>
<button onclick="closeTraining()"
style="width:100%; padding:15px; background:#555; border:none; border-radius:8px; color:white; font-family:'Bangers'; font-size:1.5rem; cursor:pointer;">LEAVE
CHAMBER</button>
</div>
</div>
</div>
<!-- TAP EVENT MINIGAME OVERLAY -->
<div id="tap-event-overlay"
style="display:none; position:fixed; inset:0; background:rgba(0,0,0,0.95); z-index:12000; flex-direction:column; align-items:center; justify-content:center;">
<div id="tap-game-container">
<div class="tap-speed-lines"></div>
<div class="tap-ui-header">
<div class="tap-stat-box">
<span class="tap-label">LV GAINED</span>
<span id="tap-level-display">0</span>
</div>
<div class="tap-stat-box tap-xp-bar-container">
<div id="tap-xp-fill" style="width: 0%;"></div>
<span class="tap-xp-text">BOOST PROGRESS</span>
</div>
<div class="tap-stat-box">
<span class="tap-label">GOLD</span>
<span id="tap-gold-display" style="color: gold;">0</span>
</div>
</div>
<div id="tap-timer-display"
style="position:absolute; top:calc(120px + env(safe-area-inset-top)); left:20px; font-family:'Bangers'; font-size:4rem; color:red; text-shadow:0 0 10px black; z-index:100;">
25s</div>
<div id="tap-combo-container" class="hidden">
<div id="tap-combo-count">0</div>
<div id="tap-combo-label">COMBO!</div>
</div>
<div class="tap-sprite-wrapper">
<div id="tap-action-sprite"></div>
</div>
<p class="tap-hint-text">TAP AS FAST AS YOU CAN!</p>
<canvas id="tap-fx-canvas" style="position:absolute; inset:0; pointer-events:none; z-index:1100;"></canvas>
</div>
</div>
<!-- TAP EVENT INFO MODAL -->
<div id="tap-info-modal"
style="display:none; position:fixed; inset:0; background:rgba(0,0,0,0.9); z-index:13000; flex-direction:column; align-items:center; justify-content:center;">
<div
style="background:#222; border:2px solid var(--dbz-orange); border-radius:15px; padding:30px; width:85%; max-width:400px; text-align:center; box-shadow:0 0 30px var(--dbz-orange); color:white;">
<h2 style="font-family:'Bangers'; font-size:2.5rem; color:var(--dbz-yellow); margin-bottom:15px;">TAP
CHALLENGE</h2>
<p style="font-family:'Orbitron'; font-size:0.9rem; line-height:1.6; margin-bottom:20px;">
You can enter this challenge for 25 seconds every 15 minutes for the next 3 days to try and boost your
player stats and gold.
</p>
<div
style="background:rgba(0,0,0,0.5); padding:15px; border-radius:10px; margin-bottom:25px; font-size:0.8rem; text-align:left;">
<div style="color:#00e5ff; margin-bottom:5px;">• Tap the sprite to earn Gold and XP.</div>
<div style="color:#f1c40f; margin-bottom:5px;">• Higher combos give MORE rewards.</div>
<div style="color:#ff3e3e;">• Levels gained will be added to your main character!</div>
</div>
<div style="display:flex; gap:10px;">
<button onclick="closeTapEventInfo()"
style="flex:1; padding:12px; background:#444; border:none; border-radius:8px; color:white; font-family:'Bangers'; font-size:1.2rem; cursor:pointer;">CANCEL</button>
<button id="btn-start-tap" onclick="startTapEvent()"
style="flex:1; padding:12px; background:linear-gradient(to bottom, #f1c40f, #f39c12); border:none; border-radius:8px; color:white; font-family:'Bangers'; font-size:1.2rem; cursor:pointer;">START!</button>
</div>
</div>
</div>
<!-- TAP EVENT RESULT MODAL -->
<div id="tap-result-modal"
style="display:none; position:fixed; inset:0; background:rgba(0,0,0,0.95); z-index:14000; flex-direction:column; align-items:center; justify-content:center;">