File size: 31,199 Bytes
3a421e9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Shadow Guild - Level Up Your Life</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <link href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Press+Start+2P&display=swap" rel="stylesheet">
    <style>
        :root {
            --neon-blue: #00f2ff;
            --neon-purple: #9d00ff;
            --neon-red: #ff0055;
            --dark-bg: #0a0a0a;
        }
        
        body {
            font-family: 'Orbitron', sans-serif;
            background-color: var(--dark-bg);
            color: white;
            min-height: 100vh;
            overflow-x: hidden;
        }
        
        .press-start {
            font-family: 'Press Start 2P', cursive;
        }
        
        .neon-text-blue {
            text-shadow: 0 0 5px var(--neon-blue), 0 0 10px var(--neon-blue), 0 0 15px var(--neon-blue);
            color: var(--neon-blue);
        }
        
        .neon-text-purple {
            text-shadow: 0 0 5px var(--neon-purple), 0 0 10px var(--neon-purple), 0 0 15px var(--neon-purple);
            color: var(--neon-purple);
        }
        
        .neon-text-red {
            text-shadow: 0 0 5px var(--neon-red), 0 0 10px var(--neon-red), 0 0 15px var(--neon-red);
            color: var(--neon-red);
        }
        
        .glow-box {
            border: 1px solid rgba(157, 0, 255, 0.3);
            box-shadow: 0 0 10px rgba(157, 0, 255, 0.5), inset 0 0 10px rgba(157, 0, 255, 0.3);
            background: linear-gradient(145deg, rgba(10,10,10,0.8) 0%, rgba(30,10,40,0.5) 100%);
        }
        
        .xp-bar {
            height: 12px;
            background: linear-gradient(90deg, #0a0a0a 0%, #1a0033 50%, #0a0a0a 100%);
            border: 1px solid var(--neon-purple);
            box-shadow: 0 0 5px var(--neon-purple);
        }
        
        .xp-progress {
            height: 100%;
            background: linear-gradient(90deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
            transition: width 0.5s ease;
        }
        
        .quest-item {
            border-left: 3px solid var(--neon-blue);
            transition: all 0.3s ease;
        }
        
        .quest-item:hover {
            transform: translateX(5px);
            box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
        }
        
        .skill-node {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: radial-gradient(circle, #1a0033 0%, #0a0a0a 70%);
            border: 2px solid var(--neon-purple);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            transition: all 0.3s ease;
        }
        
        .skill-node.active {
            border-color: var(--neon-blue);
            box-shadow: 0 0 15px var(--neon-blue);
        }
        
        .skill-node.locked {
            filter: grayscale(80%);
            opacity: 0.6;
        }
        
        .skill-connector {
            height: 2px;
            background: linear-gradient(90deg, var(--neon-purple) 0%, transparent 100%);
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
        }
        
        .stat-bar {
            height: 10px;
            background: linear-gradient(90deg, #0a0a0a 0%, #1a0033 50%, #0a0a0a 100%);
            border: 1px solid var(--neon-purple);
        }
        
        .stat-progress {
            height: 100%;
            background: linear-gradient(90deg, var(--neon-red) 0%, var(--neon-purple) 100%);
        }
        
        .system-message {
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0% { box-shadow: 0 0 5px var(--neon-blue); }
            50% { box-shadow: 0 0 20px var(--neon-blue); }
            100% { box-shadow: 0 0 5px var(--neon-blue); }
        }
        
        .rune-border {
            position: relative;
        }
        
        .rune-border::before {
            content: "";
            position: absolute;
            top: -5px;
            left: -5px;
            right: -5px;
            bottom: -5px;
            border: 2px solid var(--neon-blue);
            border-radius: 5px;
            z-index: -1;
            opacity: 0.5;
        }
        
        .level-up {
            animation: levelUp 1.5s ease-out;
        }
        
        @keyframes levelUp {
            0% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.5); opacity: 0.8; }
            100% { transform: scale(1); opacity: 1; }
        }
        
        .cinematic-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(rgba(0,0,0,0.9), rgba(0,0,0,0.95));
            z-index: 1000;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        
        .dungeon-select {
            border: 3px solid var(--neon-purple);
            box-shadow: 0 0 30px var(--neon-purple);
            transform: perspective(800px) rotateX(20deg);
            transition: all 0.5s ease;
        }
        
        .dungeon-select:hover {
            transform: perspective(800px) rotateX(10deg) scale(1.05);
            box-shadow: 0 0 50px var(--neon-purple);
        }
        
        .scroll-unlock {
            background: linear-gradient(135deg, rgba(10,10,10,0.9) 0%, rgba(30,10,40,0.7) 100%);
            border: 1px solid var(--neon-purple);
            transform: rotateY(20deg);
            transition: all 0.3s ease;
            perspective: 1000px;
        }
        
        .scroll-unlock:hover {
            transform: rotateY(0deg) scale(1.05);
            box-shadow: 0 0 20px var(--neon-purple);
        }
        
        .scroll-seal {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 60px;
            height: 60px;
            background: radial-gradient(circle, var(--neon-red) 0%, transparent 70%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: white;
        }
    </style>
</head>
<body class="bg-black text-white">
    <!-- Cinematic Onboarding -->
    <div id="onboarding" class="cinematic-overlay">
        <div class="text-center mb-12">
            <h1 class="text-5xl md:text-7xl font-bold neon-text-purple press-start mb-4">SHADOW GUILD</h1>
            <p class="text-xl neon-text-blue">Awaken your potential. Level up your life.</p>
        </div>
        
        <div class="grid grid-cols-1 md:grid-cols-3 gap-8 w-full max-w-4xl px-4">
            <div class="dungeon-select p-6 rounded-lg cursor-pointer" onclick="selectDungeon('warrior')">
                <div class="text-center">
                    <i class="fas fa-swords neon-text-blue text-4xl mb-4"></i>
                    <h3 class="text-2xl neon-text-blue mb-2">Warrior's Path</h3>
                    <p class="text-gray-400">Build discipline and strength through daily challenges</p>
                </div>
            </div>
            
            <div class="dungeon-select p-6 rounded-lg cursor-pointer" onclick="selectDungeon('mage')">
                <div class="text-center">
                    <i class="fas fa-hat-wizard neon-text-purple text-4xl mb-4"></i>
                    <h3 class="text-2xl neon-text-purple mb-2">Mage's Tower</h3>
                    <p class="text-gray-400">Develop focus and wisdom through mindful practices</p>
                </div>
            </div>
            
            <div class="dungeon-select p-6 rounded-lg cursor-pointer" onclick="selectDungeon('rogue')">
                <div class="text-center">
                    <i class="fas fa-user-ninja neon-text-red text-4xl mb-4"></i>
                    <h3 class="text-2xl neon-text-red mb-2">Rogue's Den</h3>
                    <p class="text-gray-400">Master adaptability with flexible habit systems</p>
                </div>
            </div>
        </div>
        
        <div class="mt-12 text-center">
            <button id="beginQuest" class="px-8 py-3 bg-gradient-to-r from-purple-900 to-blue-900 rounded-full text-white font-bold text-lg hover:from-purple-800 hover:to-blue-800 transition-all duration-300 opacity-0 transform translate-y-10">
                BEGIN YOUR QUEST
            </button>
        </div>
    </div>

    <!-- Main App -->
    <div id="app" class="container mx-auto px-4 py-8 hidden">
        <!-- Header -->
        <header class="flex justify-between items-center mb-8">
            <div>
                <h1 class="text-3xl md:text-4xl font-bold neon-text-purple press-start">SHADOW GUILD</h1>
                <p class="text-sm text-gray-400">Daily Quest Board</p>
            </div>
            
            <div class="text-right">
                <div class="flex items-center justify-end mb-2">
                    <span class="text-sm mr-2">Lv. <span id="currentLevel">3</span></span>
                    <div class="xp-bar w-32 md:w-48">
                        <div id="xpProgress" class="xp-progress" style="width: 65%"></div>
                    </div>
                </div>
                <p class="text-xs text-gray-400"><span id="currentXP">650</span>/1000 XP</p>
            </div>
        </header>
        
        <!-- System Message -->
        <div id="systemMessage" class="system-message glow-box rounded-lg p-4 mb-8 neon-text-blue border border-blue-500 hidden">
            <div class="flex items-center">
                <i class="fas fa-scroll mr-3 text-xl"></i>
                <div>
                    <p class="font-bold">SYSTEM MESSAGE:</p>
                    <p id="messageText">You've awakened new power: Focus!</p>
                </div>
            </div>
        </div>
        
        <!-- Main Content -->
        <div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
            <!-- Quest Board -->
            <div class="lg:col-span-2">
                <div class="glow-box rounded-lg p-6 mb-8">
                    <div class="flex justify-between items-center mb-6">
                        <h2 class="text-2xl neon-text-blue font-bold flex items-center">
                            <i class="fas fa-quest mr-3"></i> TODAY'S QUESTS
                        </h2>
                        <span class="text-sm text-gray-400">Completion: <span id="questCompletion">40</span>%</span>
                    </div>
                    
                    <div class="space-y-4">
                        <div class="quest-item glow-box rounded p-4 flex items-center justify-between" data-xp="50">
                            <div class="flex items-center">
                                <button class="complete-btn w-6 h-6 rounded-full border-2 border-purple-500 mr-4 hover:bg-purple-900 transition-colors"></button>
                                <div>
                                    <h3 class="font-bold">Morning Meditation</h3>
                                    <p class="text-sm text-gray-400">+50 XP | +5 Willpower</p>
                                </div>
                            </div>
                            <i class="fas fa-scroll text-purple-500"></i>
                        </div>
                        
                        <div class="quest-item glow-box rounded p-4 flex items-center justify-between" data-xp="75">
                            <div class="flex items-center">
                                <button class="complete-btn w-6 h-6 rounded-full border-2 border-blue-500 mr-4 hover:bg-blue-900 transition-colors"></button>
                                <div>
                                    <h3 class="font-bold">Workout Session</h3>
                                    <p class="text-sm text-gray-400">+75 XP | +10 Strength</p>
                                </div>
                            </div>
                            <i class="fas fa-dumbbell text-blue-500"></i>
                        </div>
                        
                        <div class="quest-item glow-box rounded p-4 flex items-center justify-between" data-xp="100">
                            <div class="flex items-center">
                                <button class="complete-btn w-6 h-6 rounded-full border-2 border-red-500 mr-4 hover:bg-red-900 transition-colors"></button>
                                <div>
                                    <h3 class="font-bold">Deep Work (2h)</h3>
                                    <p class="text-sm text-gray-400">+100 XP | +15 Focus</p>
                                </div>
                            </div>
                            <i class="fas fa-brain text-red-500"></i>
                        </div>
                        
                        <div class="quest-item glow-box rounded p-4 flex items-center justify-between" data-xp="50">
                            <div class="flex items-center">
                                <button class="complete-btn w-6 h-6 rounded-full border-2 border-purple-500 mr-4 hover:bg-purple-900 transition-colors"></button>
                                <div>
                                    <h3 class="font-bold">Evening Reflection</h3>
                                    <p class="text-sm text-gray-400">+50 XP | +5 Wisdom</p>
                                </div>
                            </div>
                            <i class="fas fa-moon text-purple-500"></i>
                        </div>
                    </div>
                </div>
                
                <!-- Skill Tree -->
                <div class="glow-box rounded-lg p-6">
                    <h2 class="text-2xl neon-text-purple font-bold mb-6 flex items-center">
                        <i class="fas fa-project-diagram mr-3"></i> ABILITY TREE
                    </h2>
                    
                    <div class="grid grid-cols-5 gap-4 text-center">
                        <!-- Row 1 -->
                        <div class="col-start-3">
                            <div class="skill-node active">
                                <i class="fas fa-medal text-yellow-400"></i>
                            </div>
                        </div>
                        
                        <!-- Row 2 -->
                        <div class="col-start-2">
                            <div class="skill-node active">
                                <i class="fas fa-fire text-orange-500"></i>
                            </div>
                            <div class="skill-connector w-full" style="width: 100%; left: 50%;"></div>
                        </div>
                        
                        <div class="col-start-4">
                            <div class="skill-node">
                                <i class="fas fa-lock text-gray-400"></i>
                            </div>
                            <div class="skill-connector w-full" style="width: 100%; right: 50%;"></div>
                        </div>
                        
                        <!-- Row 3 -->
                        <div class="col-start-1">
                            <div class="skill-node active">
                                <i class="fas fa-running text-blue-400"></i>
                            </div>
                            <div class="skill-connector" style="width: 50%; left: 100%;"></div>
                        </div>
                        
                        <div class="col-start-3">
                            <div class="skill-node active">
                                <i class="fas fa-brain text-purple-400"></i>
                            </div>
                            <div class="skill-connector" style="width: 50%; left: 100%;"></div>
                            <div class="skill-connector" style="width: 50%; right: 100%;"></div>
                        </div>
                        
                        <div class="col-start-5">
                            <div class="skill-node locked">
                                <i class="fas fa-lock text-gray-400"></i>
                            </div>
                        </div>
                        
                        <!-- Row 4 -->
                        <div class="col-start-2">
                            <div class="skill-node">
                                <i class="fas fa-lock text-gray-400"></i>
                            </div>
                        </div>
                        
                        <div class="col-start-4">
                            <div class="skill-node locked">
                                <i class="fas fa-lock text-gray-400"></i>
                            </div>
                        </div>
                    </div>
                    
                    <div class="mt-8">
                        <h3 class="text-lg font-bold mb-3 neon-text-blue">Unlocked Abilities</h3>
                        <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                            <div class="glow-box rounded p-3 flex items-center">
                                <i class="fas fa-fire text-orange-500 mr-3 text-xl"></i>
                                <div>
                                    <h4 class="font-bold">Discipline Flame</h4>
                                    <p class="text-sm text-gray-400">+10% XP from completed quests</p>
                                </div>
                            </div>
                            <div class="glow-box rounded p-3 flex items-center">
                                <i class="fas fa-brain text-purple-400 mr-3 text-xl"></i>
                                <div>
                                    <h4 class="font-bold">Mental Fortitude</h4>
                                    <p class="text-sm text-gray-400">Reduces distraction chance by 15%</p>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- Stats & Unlockables -->
            <div>
                <!-- Character Stats -->
                <div class="glow-box rounded-lg p-6 mb-8">
                    <h2 class="text-2xl neon-text-red font-bold mb-6 flex items-center">
                        <i class="fas fa-chart-line mr-3"></i> PLAYER STATS
                    </h2>
                    
                    <div class="space-y-4">
                        <div>
                            <div class="flex justify-between mb-1">
                                <span>Strength</span>
                                <span>65/100</span>
                            </div>
                            <div class="stat-bar">
                                <div class="stat-progress" style="width: 65%"></div>
                            </div>
                        </div>
                        
                        <div>
                            <div class="flex justify-between mb-1">
                                <span>Willpower</span>
                                <span>45/100</span>
                            </div>
                            <div class="stat-bar">
                                <div class="stat-progress" style="width: 45%"></div>
                            </div>
                        </div>
                        
                        <div>
                            <div class="flex justify-between mb-1">
                                <span>Focus</span>
                                <span>70/100</span>
                            </div>
                            <div class="stat-bar">
                                <div class="stat-progress" style="width: 70%"></div>
                            </div>
                        </div>
                        
                        <div>
                            <div class="flex justify-between mb-1">
                                <span>Wisdom</span>
                                <span>55/100</span>
                            </div>
                            <div class="stat-bar">
                                <div class="stat-progress" style="width: 55%"></div>
                            </div>
                        </div>
                    </div>
                    
                    <div class="mt-6 pt-4 border-t border-gray-800">
                        <h3 class="text-lg font-bold mb-3 neon-text-purple">Daily Buffs</h3>
                        <div class="space-y-3">
                            <div class="flex items-center">
                                <i class="fas fa-bolt text-yellow-400 mr-3"></i>
                                <span>Morning Energy (+10% Focus until noon)</span>
                            </div>
                            <div class="flex items-center">
                                <i class="fas fa-moon text-purple-400 mr-3"></i>
                                <span>Lunar Inspiration (+5 Willpower at night)</span>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- Unlockable Scrolls -->
                <div class="glow-box rounded-lg p-6">
                    <h2 class="text-2xl neon-text-blue font-bold mb-6 flex items-center">
                        <i class="fas fa-scroll mr-3"></i> RUNE SCROLLS
                    </h2>
                    
                    <div class="grid grid-cols-1 gap-4">
                        <div class="scroll-unlock rounded-lg p-4 relative overflow-hidden">
                            <div class="flex">
                                <div class="w-16 h-16 bg-purple-900 rounded-lg flex items-center justify-center mr-4">
                                    <i class="fas fa-spa text-xl text-purple-300"></i>
                                </div>
                                <div>
                                    <h3 class="font-bold">Breath of Calm</h3>
                                    <p class="text-sm text-gray-400">5-minute guided meditation</p>
                                    <div class="mt-2">
                                        <span class="text-xs bg-purple-900 text-purple-300 px-2 py-1 rounded">Unlocked</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="scroll-unlock rounded-lg p-4 relative overflow-hidden">
                            <div class="flex">
                                <div class="w-16 h-16 bg-blue-900 rounded-lg flex items-center justify-center mr-4">
                                    <i class="fas fa-bolt text-xl text-blue-300"></i>
                                </div>
                                <div>
                                    <h3 class="font-bold">Energy Surge</h3>
                                    <p class="text-sm text-gray-400">Quick energy boost routine</p>
                                    <div class="mt-2">
                                        <span class="text-xs bg-blue-900 text-blue-300 px-2 py-1 rounded">Unlocked</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="scroll-unlock rounded-lg p-4 relative overflow-hidden">
                            <div class="flex">
                                <div class="w-16 h-16 bg-gray-800 rounded-lg flex items-center justify-center mr-4">
                                    <i class="fas fa-lock text-xl text-gray-500"></i>
                                </div>
                                <div>
                                    <h3 class="font-bold">Deep Focus Ritual</h3>
                                    <p class="text-sm text-gray-400">45-minute concentration session</p>
                                    <div class="mt-2">
                                        <span class="text-xs bg-gray-800 text-gray-500 px-2 py-1 rounded">Locked (Lv. 5)</span>
                                    </div>
                                </div>
                            </div>
                            <div class="scroll-seal">
                                <i class="fas fa-lock"></i>
                            </div>
                        </div>
                    </div>
                    
                    <div class="mt-6 pt-4 border-t border-gray-800">
                        <button class="w-full py-2 bg-gradient-to-r from-purple-900 to-blue-900 rounded-lg font-bold hover:from-purple-800 hover:to-blue-800 transition-all duration-300">
                            CAST A SPELL
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script>
        // Onboarding Animation
        setTimeout(() => {
            document.getElementById('beginQuest').classList.remove('opacity-0', 'translate-y-10');
            document.getElementById('beginQuest').classList.add('opacity-100', 'translate-y-0');
        }, 1500);
        
        function selectDungeon(type) {
            const dungeons = document.querySelectorAll('.dungeon-select');
            dungeons.forEach(d => d.classList.remove('neon-text-blue', 'neon-text-purple', 'neon-text-red'));
            
            if (type === 'warrior') {
                dungeons[0].classList.add('neon-text-blue');
            } else if (type === 'mage') {
                dungeons[1].classList.add('neon-text-purple');
            } else {
                dungeons[2].classList.add('neon-text-red');
            }
        }
        
        document.getElementById('beginQuest').addEventListener('click', () => {
            document.getElementById('onboarding').style.opacity = '0';
            setTimeout(() => {
                document.getElementById('onboarding').style.display = 'none';
                document.getElementById('app').classList.remove('hidden');
                
                // Show welcome message
                showSystemMessage("Welcome, Hunter. Your quest begins now.");
            }, 500);
        });
        
        // Quest Completion
        const completeButtons = document.querySelectorAll('.complete-btn');
        completeButtons.forEach(button => {
            button.addEventListener('click', function() {
                const questItem = this.closest('.quest-item');
                const xpValue = parseInt(questItem.getAttribute('data-xp'));
                
                // Mark as completed
                this.innerHTML = '<i class="fas fa-check text-green-400"></i>';
                this.classList.remove('border-purple-500', 'border-blue-500', 'border-red-500', 'hover:bg-purple-900', 'hover:bg-blue-900', 'hover:bg-red-900');
                this.classList.add('bg-green-900', 'border-green-400');
                
                // Update XP
                const currentXP = parseInt(document.getElementById('currentXP').textContent);
                const newXP = currentXP + xpValue;
                document.getElementById('currentXP').textContent = newXP;
                
                // Update progress bar
                const xpPercentage = Math.min((newXP / 1000) * 100, 100);
                document.getElementById('xpProgress').style.width = `${xpPercentage}%`;
                
                // Update quest completion percentage
                updateCompletionPercentage();
                
                // Check for level up
                if (newXP >= 1000) {
                    levelUp();
                }
                
                // Show random encouragement
                const messages = [
                    "Quest completed! Your power grows.",
                    "The shadows acknowledge your progress.",
                    "Another step toward your awakening.",
                    "The system records your achievement.",
                    "Your stats have improved."
                ];
                const randomMessage = messages[Math.floor(Math.random() * messages.length)];
                showSystemMessage(randomMessage);
            });
        });
        
        function updateCompletionPercentage() {
            const totalQuests = document.querySelectorAll('.quest-item').length;
            const completedQuests = document.querySelectorAll('.complete-btn i.fa-check').length;
            const percentage = Math.round((completedQuests / totalQuests) * 100);
            document.getElementById('questCompletion').textContent = percentage;
        }
        
        function levelUp() {
            const currentLevel = parseInt(document.getElementById('currentLevel').textContent);
            document.getElementById('currentLevel').textContent = currentLevel + 1;
            document.getElementById('currentXP').textContent = "0";
            document.getElementById('xpProgress').style.width = "0%";
            
            // Show level up animation
            const levelElement = document.getElementById('currentLevel');
            levelElement.classList.add('level-up');
            setTimeout(() => {
                levelElement.classList.remove('level-up');
            }, 1500);
            
            showSystemMessage("LEVEL UP! You've reached level " + (currentLevel + 1) + "!");
        }
        
        function showSystemMessage(message) {
            const systemMessage = document.getElementById('systemMessage');
            document.getElementById('messageText').textContent = message;
            systemMessage.classList.remove('hidden');
            
            setTimeout(() => {
                systemMessage.classList.add('hidden');
            }, 5000);
        }
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=AnotherBar/create-space-1" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>