File size: 37,982 Bytes
4d5941c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="pl">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Stulejarski Quest o Simp Points</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">
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Comic+Neue:wght@400;700&display=swap');
        
        body {
            font-family: 'Comic Neue', cursive;
            background-color: #1a1a2e;
            color: #e6e6e6;
            background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAA+UlEQVQ4y+3UMUoDQRTG8Z8psJBUKTyAR7ATvIBgY2FhY2FhY2FhY2FhY2FhY2FhY2FhYWGxJhBQk4QkGxJ2d2Z2QdAHLwzz5v3fN8PMvPmXKjZxixs8YI0lHnGJc4xQxQh3eMYH3vGGC5xhhBpGmOANL5hijhZ6aKONHnqYoY8FhphigQZaaKGFNtqoY4U+5hjgFVNM0EcddXTRxQh9LDDEFH3U0UUXQ/QxxxBT9FFHF10M0cccQ0zRRx1ddDHEAH3MMcQUfdTRRRdD9DHHEFP0UUcXXQzRxxxDTNFHHV10MUQfcwwxRR91dNHFEP0f5QO0zQ0Q2zQ3JAAAAABJRU5ErkJgggg==');
            background-repeat: repeat;
        }
        
        .pixel-art {
            image-rendering: pixelated;
            image-rendering: -moz-crisp-edges;
            image-rendering: crisp-edges;
        }
        
        .forum-style {
            border: 2px solid #4a4a4a;
            background-color: #2d2d44;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
        }
        
        .neon-text {
            text-shadow: 0 0 5px #ff00ff, 0 0 10px #ff00ff, 0 0 15px #ff00ff;
        }
        
        .progress-bar {
            height: 20px;
            background-color: #333;
            border-radius: 10px;
            overflow: hidden;
        }
        
        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #ff00ff, #00ffff);
            transition: width 0.3s ease;
        }
        
        .message {
            animation: fadeIn 0.3s;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .character {
            transition: all 0.3s ease;
        }
        
        .character:hover {
            transform: scale(1.05);
        }
        
        .achievement {
            animation: achievementPop 0.5s;
        }
        
        @keyframes achievementPop {
            0% { transform: scale(0); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }
    </style>
</head>
<body class="min-h-screen flex flex-col">
    <div class="container mx-auto px-4 py-8 flex-grow">
        <!-- Header -->
        <header class="text-center mb-8">
            <h1 class="text-4xl md:text-5xl font-bold mb-2 text-pink-500 neon-text font-['Press_Start_2P']">STULEJARSKI QUEST</h1>
            <h2 class="text-xl md:text-2xl text-cyan-400 font-['Press_Start_2P']">O Simp Points</h2>
            <div class="mt-4 flex justify-center items-center gap-4">
                <div class="forum-style px-4 py-2 rounded-lg">
                    <span class="text-yellow-300">Simp Points:</span>
                    <span id="simpPoints" class="text-white font-bold ml-2">0</span>
                </div>
                <div class="forum-style px-4 py-2 rounded-lg">
                    <span class="text-yellow-300">Poziom:</span>
                    <span id="level" class="text-white font-bold ml-2">1</span>
                </div>
            </div>
        </header>

        <!-- Main Game Area -->
        <div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
            <!-- Left Column - Character and Messages -->
            <div class="lg:col-span-2 forum-style rounded-lg p-4">
                <div class="flex flex-col md:flex-row gap-6">
                    <!-- Character Display -->
                    <div class="flex flex-col items-center">
                        <div id="characterContainer" class="w-48 h-48 bg-gray-800 rounded-lg overflow-hidden mb-4 relative">
                            <img id="characterImage" src="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDAgMjAwIj48cmVjdCB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgZmlsbD0iIzQyNDI0MiIvPjxjaXJjbGUgY3g9IjEwMCIgY3k9IjgwIiByPSI0MCIgZmlsbD0iI2Q3OWIyZCIvPjxjaXJjbGUgY3g9IjcwIiBjeT0iNzAiIHI9IjgiIGZpbGw9IiMwMDAiLz48Y2lyY2xlIGN4PSIxMzAiIGN5PSI3MCIgcj0iOCIgZmlsbD0iIzAwMCIvPjxwYXRoIGQ9Ik03MCAxMjBjMTAgMjAgNjAgMjAgNzAgMCIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjMiIGZpbGw9Im5vbmUiLz48cmVjdCB4PSI3MCIgeT0iMTMwIiB3aWR0aD0iNjAiIGhlaWdodD0iNDAiIGZpbGw9IiNkNzliMmQiLz48cmVjdCB4PSI4MCIgeT0iMTMwIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIGZpbGw9IiNlYjVjMjMiLz48dGV4dCB4PSIxMDAiIHk9IjE5MCIgZm9udC1mYW1pbHk9IkFyaWFsIiBmb250LXNpemU9IjE2IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmaWxsPSIjZmZmIj5HcmHFgnluYTwvdGV4dD48L3N2Zz4=" class="w-full h-full pixel-art character">
                        </div>
                        <div id="characterName" class="text-xl font-bold text-pink-400 mb-2">Grażyna z bazaru</div>
                        <div id="characterLevel" class="text-sm text-gray-400">Poziom 1</div>
                    </div>

                    <!-- Messages -->
                    <div class="flex-grow">
                        <div id="messagesContainer" class="h-64 overflow-y-auto mb-4 bg-gray-900 rounded-lg p-3 space-y-2">
                            <div class="message bg-gray-800 p-2 rounded-lg">
                                <span class="text-pink-400 font-bold">System:</span> Witaj w Stulejarskim Queście! Zacznij wysyłać wiadomości do Grażyny, aby zdobyć Simp Points!
                            </div>
                        </div>
                        
                        <!-- Clicker Button -->
                        <button id="sendMessageBtn" class="w-full bg-gradient-to-r from-pink-500 to-purple-600 hover:from-pink-600 hover:to-purple-700 text-white font-bold py-3 px-4 rounded-lg transition-all duration-300 transform hover:scale-105 flex items-center justify-center gap-2">
                            <i class="fas fa-paper-plane"></i>
                            <span>Napisz wiadomość</span>
                        </button>
                        
                        <!-- Auto Simp Progress -->
                        <div class="mt-4">
                            <div class="flex justify-between mb-1">
                                <span class="text-sm text-gray-300">Auto Simp:</span>
                                <span id="autoSimpRate" class="text-sm text-cyan-300">0 Simp Points/s</span>
                            </div>
                            <div class="progress-bar">
                                <div id="autoSimpProgress" class="progress-fill" style="width: 0%"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

            <!-- Right Column - Upgrades and Stats -->
            <div class="space-y-6">
                <!-- Upgrades -->
                <div class="forum-style rounded-lg p-4">
                    <h3 class="text-xl font-bold text-cyan-400 mb-4 border-b border-gray-700 pb-2 flex items-center gap-2">
                        <i class="fas fa-arrow-up"></i>
                        <span>Ulepszenia</span>
                    </h3>
                    <div class="space-y-3">
                        <div class="upgrade-item bg-gray-800 p-3 rounded-lg cursor-pointer hover:bg-gray-700 transition" onclick="buyUpgrade('profilePic')">
                            <div class="flex justify-between items-center">
                                <div>
                                    <h4 class="font-bold text-pink-400">Nowa fota profilowa</h4>
                                    <p class="text-sm text-gray-400">+1 Simp Point per click</p>
                                </div>
                                <div class="text-right">
                                    <div class="text-yellow-300 font-bold">50 SP</div>
                                    <div class="text-xs text-gray-500">Kupione: <span id="profilePicCount">0</span></div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="upgrade-item bg-gray-800 p-3 rounded-lg cursor-pointer hover:bg-gray-700 transition" onclick="buyUpgrade('redditCourse')">
                            <div class="flex justify-between items-center">
                                <div>
                                    <h4 class="font-bold text-pink-400">Kurs podrywu z Reddita</h4>
                                    <p class="text-sm text-gray-400">Podwaja efektywność Botów</p>
                                </div>
                                <div class="text-right">
                                    <div class="text-yellow-300 font-bold">200 SP</div>
                                    <div class="text-xs text-gray-500">Kupione: <span id="redditCourseCount">0</span></div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="upgrade-item bg-gray-800 p-3 rounded-lg cursor-pointer hover:bg-gray-700 transition" onclick="buyUpgrade('tinderPremium')">
                            <div class="flex justify-between items-center">
                                <div>
                                    <h4 class="font-bold text-pink-400">Subskrypcja Premium na Tinderze</h4>
                                    <p class="text-sm text-gray-400">Odblokowuje rzadkie odpowiedzi</p>
                                </div>
                                <div class="text-right">
                                    <div class="text-yellow-300 font-bold">500 SP</div>
                                    <div class="text-xs text-gray-500">Kupione: <span id="tinderPremiumCount">0</span></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- Bots -->
                <div class="forum-style rounded-lg p-4">
                    <h3 class="text-xl font-bold text-cyan-400 mb-4 border-b border-gray-700 pb-2 flex items-center gap-2">
                        <i class="fas fa-robot"></i>
                        <span>Boty Simpujące</span>
                    </h3>
                    <div class="space-y-3">
                        <div class="bot-item bg-gray-800 p-3 rounded-lg cursor-pointer hover:bg-gray-700 transition" onclick="buyBot('mirek')">
                            <div class="flex justify-between items-center">
                                <div>
                                    <h4 class="font-bold text-pink-400">Bot Mirek z Insta</h4>
                                    <p class="text-sm text-gray-400">0.2 Simp Points/s</p>
                                </div>
                                <div class="text-right">
                                    <div class="text-yellow-300 font-bold">100 SP</div>
                                    <div class="text-xs text-gray-500">Posiadane: <span id="mirekCount">0</span></div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="bot-item bg-gray-800 p-3 rounded-lg cursor-pointer hover:bg-gray-700 transition" onclick="buyBot('krypto')">
                            <div class="flex justify-between items-center">
                                <div>
                                    <h4 class="font-bold text-pink-400">Bot Krypto-Chad</h4>
                                    <p class="text-sm text-gray-400">1 Simp Point/s</p>
                                </div>
                                <div class="text-right">
                                    <div class="text-yellow-300 font-bold">500 SP</div>
                                    <div class="text-xs text-gray-500">Posiadane: <span id="kryptoCount">0</span></div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="bot-item bg-gray-800 p-3 rounded-lg cursor-pointer hover:bg-gray-700 transition" onclick="buyBot('sigma')">
                            <div class="flex justify-between items-center">
                                <div>
                                    <h4 class="font-bold text-pink-400">Bot Sigma Male</h4>
                                    <p class="text-sm text-gray-400">5 Simp Points/s</p>
                                </div>
                                <div class="text-right">
                                    <div class="text-yellow-300 font-bold">2500 SP</div>
                                    <div class="text-xs text-gray-500">Posiadane: <span id="sigmaCount">0</span></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- Achievements -->
        <div class="mt-8 forum-style rounded-lg p-4">
            <h3 class="text-xl font-bold text-cyan-400 mb-4 border-b border-gray-700 pb-2 flex items-center gap-2">
                <i class="fas fa-trophy"></i>
                <span>Achievementy</span>
            </h3>
            <div id="achievementsContainer" class="grid grid-cols-2 md:grid-cols-4 gap-3">
                <!-- Achievements will be added here dynamically -->
            </div>
        </div>
    </div>
    
    <!-- Footer -->
    <footer class="bg-gray-900 text-center py-4 mt-8">
        <p class="text-gray-400 text-sm">Stulejarski Quest o Simp Points &copy; 2023 - Gra dla prawdziwych stulejarzy</p>
    </footer>

    <!-- Game Script -->
    <script>
        // Game State
        const gameState = {
            simpPoints: 0,
            level: 1,
            pointsPerClick: 1,
            autoSimpRate: 0,
            upgrades: {
                profilePic: { owned: 0, cost: 50, effect: 1 },
                redditCourse: { owned: 0, cost: 200, effect: 2 },
                tinderPremium: { owned: 0, cost: 500, effect: 0 } // Special effect handled separately
            },
            bots: {
                mirek: { owned: 0, cost: 100, rate: 0.2 },
                krypto: { owned: 0, cost: 500, rate: 1 },
                sigma: { owned: 0, cost: 2500, rate: 5 }
            },
            achievements: [
                { id: 'firstMessage', name: 'Pierwszy krok', description: 'Wyślij pierwszą wiadomość', earned: false, reward: 10 },
                { id: '50Messages', name: 'Simp Początkujący', description: 'Wyślij 50 wiadomości', earned: false, reward: 50 },
                { id: '100Messages', name: 'Simp Średniozaawansowany', description: 'Wyślij 100 wiadomości', earned: false, reward: 100 },
                { id: 'firstBot', name: 'Automatyzacja', description: 'Kup pierwszego bota', earned: false, reward: 20 },
                { id: 'level2', name: 'Awans społeczny', description: 'Osiągnij poziom 2', earned: false, reward: 100 },
                { id: 'level3', name: 'Tinderowy bywalec', description: 'Osiągnij poziom 3', earned: false, reward: 300 },
                { id: 'level4', name: 'E-boy', description: 'Osiągnij poziom 4', earned: false, reward: 500 },
                { id: 'level5', name: 'Król Simpów', description: 'Osiągnij poziom 5', earned: false, reward: 1000 }
            ],
            messagesSent: 0,
            currentCharacter: 1,
            characters: [
                {
                    id: 1,
                    name: "Grażyna z bazaru",
                    level: 1,
                    image: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDAgMjAwIj48cmVjdCB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgZmlsbD0iIzQyNDI0MiIvPjxjaXJjbGUgY3g9IjEwMCIgY3k9IjgwIiByPSI0MCIgZmlsbD0iI2Q3OWIyZCIvPjxjaXJjbGUgY3g9IjcwIiBjeT0iNzAiIHI9IjgiIGZpbGw9IiMwMDAiLz48Y2lyY2xlIGN4PSIxMzAiIGN5PSI3MCIgcj0iOCIgZmlsbD0iIzAwMCIvPjxwYXRoIGQ9Ik03MCAxMjBjMTAgMjAgNjAgMjAgNzAgMCIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjMiIGZpbGw9Im5vbmUiLz48cmVjdCB4PSI3MCIgeT0iMTMwIiB3aWR0aD0iNjAiIGhlaWdodD0iNDAiIGZpbGw9IiNkNzliMmQiLz48cmVjdCB4PSI4MCIgeT0iMTMwIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIGZpbGw9IiNlYjVjMjMiLz48dGV4dCB4PSIxMDAiIHk9IjE5MCIgZm9udC1mYW1pbHk9IkFyaWFsIiBmb250LXNpemU9IjE2IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmaWxsPSIjZmZmIj5HcmHFgnluYTwvdGV4dD48L3N2Zz4=",
                    pickupLines: [
                        "Hej, masz może mapę? Bo zgubiłem się w twoich oczach.",
                        "Jesteś jak kebab – każdy cię chce.",
                        "Czy jesteś z Biedronki? Bo jesteś tania i ładna.",
                        "Masz może gumę do żucia? Bo od pierwszego wejrzenia mi opadła.",
                        "Jesteś jak wóda – tania, ale uzależniająca."
                    ],
                    responses: [
                        "Spadaj, Janusz!",
                        "Mam chłopaka i to lepszego niż ty!",
                        "Oj, chyba cię poniosło...",
                        "Idź już lepiej, bo zawołam ochronę!",
                        "Nie masz czasem wała do ciasta? Bo taki z ciebie pajac."
                    ]
                },
                {
                    id: 2,
                    name: "Andżela w dresie",
                    level: 1,
                    image: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDAgMjAwIj48cmVjdCB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgZmlsbD0iIzQyNDI0MiIvPjxjaXJjbGUgY3g9IjEwMCIgY3k9IjgwIiByPSI0MCIgZmlsbD0iI2Q3OWIyZCIvPjxjaXJjbGUgY3g9IjcwIiBjeT0iNzAiIHI9IjgiIGZpbGw9IiMwMDAiLz48Y2lyY2xlIGN4PSIxMzAiIGN5PSI3MCIgcj0iOCIgZmlsbD0iIzAwMCIvPjxwYXRoIGQ9Ik03MCAxMjBjMTAgMjAgNjAgMjAgNzAgMCIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjMiIGZpbGw9Im5vbmUiLz48cmVjdCB4PSI3MCIgeT0iMTMwIiB3aWR0aD0iNjAiIGhlaWdodD0iNDAiIGZpbGw9IiNkNzliMmQiLz48cmVjdCB4PSI4MCIgeT0iMTMwIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIGZpbGw9IiM4ODgiLz48dGV4dCB4PSIxMDAiIHk9IjE5MCIgZm9udC1mYW1pbHk9IkFyaWFsIiBmb250LXNpemU9IjE2IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmaWxsPSIjZmZmIj5BbmTFuiZsdDthPC90ZXh0Pjwvc3ZnPg==",
                    pickupLines: [
                        "Czy jesteś z Orlenu? Bo chciałbym cię zatankować.",
                        "Masz może zapalniczkę? Bo rozpalasz moje serce.",
                        "Jesteś jak piwo – zimna i odurzająca.",
                        "Czy możesz mnie kopnąć? Żebym wiedział, że anioły istnieją.",
                        "Masz może gumę do żucia? Bo jesteś mintowa."
                    ],
                    responses: [
                        "Oj, chłopie, nie masz lepszych tekstów?",
                        "Idź się leczyć!",
                        "Mówiłam już, że mam chłopaka!",
                        "Spadaj, bo wezwę kolegów z osiedla!",
                        "Ty chyba żartów nie ogarniasz..."
                    ]
                },
                {
                    id: 3,
                    name: "Monika z Tindera",
                    level: 2,
                    image: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDAgMjAwIj48cmVjdCB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgZmlsbD0iIzQyNDI0MiIvPjxjaXJjbGUgY3g9IjEwMCIgY3k9IjgwIiByPSI0MCIgZmlsbD0iI2Q3OWIyZCIvPjxjaXJjbGUgY3g9IjcwIiBjeT0iNzAiIHI9IjgiIGZpbGw9IiMwMDAiLz48Y2lyY2xlIGN4PSIxMzAiIGN5PSI3MCIgcj0iOCIgZmlsbD0iIzAwMCIvPjxwYXRoIGQ9Ik03MCAxMjBjMTAgMjAgNjAgMjAgNzAgMCIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjMiIGZpbGw9Im5vbmUiLz48cmVjdCB4PSI3MCIgeT0iMTMwIiB3aWR0aD0iNjAiIGhlaWdodD0iNDAiIGZpbGw9IiNkNzliMmQiLz48cmVjdCB4PSI4MCIgeT0iMTMwIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIGZpbGw9IiNmZmYiLz48dGV4dCB4PSIxMDAiIHk9IjE5MCIgZm9udC1mYW1pbHk9IkFyaWFsIiBmb250LXNpemU9IjE2IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmaWxsPSIjZmZmIj5Nb25pa2E8L3RleHQ+PC9zdmc+",
                    pickupLines: [
                        "Czy jesteś filtrem z Instagrama? Bo wyglądasz nierealnie dobrze.",
                        "Masz może Snapchata? Bo chciałbym cię dodać do moich najlepszych.",
                        "Jesteś jak lajk na Facebooku – zawsze mile widziana.",
                        "Czy mogę być twoim followersem? Bo chcę cię obserwować cały czas.",
                        "Masz może TikTok? Bo chciałbym z tobą zrobić duet."
                    ],
                    responses: [
                        "Haha, niezły tekst!",
                        "Mogłoby być lepiej...",
                        "Dostałeś lajka!",
                        "Jesteś drugi w kolejce do mojego serca.",
                        "Mam już 99+ matchy, ale możesz spróbować."
                    ]
                },
                {
                    id: 4,
                    name: "E-girl Ania",
                    level: 3,
                    image: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDAgMjAwIj48cmVjdCB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgZmlsbD0iIzQyNDI0MiIvPjxjaXJjbGUgY3g9IjEwMCIgY3k9IjgwIiByPSI0MCIgZmlsbD0iI2Q3OWIyZCIvPjxjaXJjbGUgY3g9IjcwIiBjeT0iNzAiIHI9IjgiIGZpbGw9IiMwMDAiLz48Y2lyY2xlIGN4PSIxMzAiIGN5PSI3MCIgcj0iOCIgZmlsbD0iIzAwMCIvPjxwYXRoIGQ9Ik03MCAxMjBjMTAgMjAgNjAgMjAgNzAgMCIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjMiIGZpbGw9Im5vbmUiLz48cmVjdCB4PSI3MCIgeT0iMTMwIiB3aWR0aD0iNjAiIGhlaWdodD0iNDAiIGZpbGw9IiNkNzliMmQiLz48cmVjdCB4PSI4MCIgeT0iMTMwIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIGZpbGw9IiNmZjAwZmYiLz48dGV4dCB4PSIxMDAiIHk9IjE5MCIgZm9udC1mYW1pbHk9IkFyaWFsIiBmb250LXNpemU9IjE2IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmaWxsPSIjZmZmIj5FLWdpcmwgQW5pYTwvdGV4dD48L3N2Zz4=",
                    pickupLines: [
                        "Czy jesteś streamem na Twitchu? Bo mogę na ciebie patrzeć godzinami.",
                        "Masz może OnlyFansa? Bo chciałbym subskrybować twoje treści.",
                        "Jesteś jak donacja – sprawiasz, że moje serce bije szybciej.",
                        "Czy mogę być twoim modemtorem? Bo chcę cię chronić.",
                        "Masz może Discord? Bo chciałbym z tobą pogadać na kanale głosowym."
                    ],
                    responses: [
                        "UwU, co za słodkie słówka!",
                        "Dostałeś suba na miesiąc!",
                        "Zostaw donację w wysokości serduszka!",
                        "Jesteś moim ulubionym viewerem!",
                        "Dodaj mnie na Snapie: egirl_ania69"
                    ]
                },
                {
                    id: 5,
                    name: "Fitness Kaśka",
                    level: 4,
                    image: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMDAgMjAwIj48cmVjdCB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgZmlsbD0iIzQyNDI0MiIvPjxjaXJjbGUgY3g9IjEwMCIgY3k9IjgwIiByPSI0MCIgZmlsbD0iI2Q3OWIyZCIvPjxjaXJjbGUgY3g9IjcwIiBjeT0iNzAiIHI9IjgiIGZpbGw9IiMwMDAiLz48Y2lyY2xlIGN4PSIxMzAiIGN5PSI3MCIgcj0iOCIgZmlsbD0iIzAwMCIvPjxwYXRoIGQ9Ik03MCAxMjBjMTAgMjAgNjAgMjAgNzAgMCIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjMiIGZpbGw9Im5vbmUiLz48cmVjdCB4PSI3MCIgeT0iMTMwIiB3aWR0aD0iNjAiIGhlaWdodD0iNDAiIGZpbGw9IiNkNzkiLz48cmVjdCB4PSI4MCIgeT0iMTMwIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIGZpbGw9IiMwMGMiLz48dGV4dCB4PSIxMDAiIHk9IjE5MCIgZm9udC1mYW1pbHk9IkFyaWFsIiBmb250LXNpemU9IjE2IiB0ZXh0LWFuY2hvcj0ibWlkZGxlIiBmaWxsPSIjZmZmIj5GaXRuZXNzIEthxYJraTwvdGV4dD48L3N2Zz4=",
                    pickupLines: [
                        "Czy jesteś treningiem na siłowni? Bo sprawiasz, że moje serce bije szybciej.",
                        "Masz może karnet? Bo chciałbym z tobą ćwiczyć.",
                        "Jesteś jak białko – niezbędna do mojego rozwoju.",
                        "Czy mogę być twoim trenerem personalnym? Bo chcę cię dotykać.",
                        "Masz może shake'a? Bo jesteś słodka i białkowa."
                    ],
                    responses: [
                        "Haha, niezłe! Masz może sześciopak?",
                        "Dostałeś zaproszenie na wspólny trening!",
                        "Może najpierw pokaż, co potrafisz?",
                        "Jesteś moim ulubionym ćwiczeniem!",
                        "Dodaj mnie na Fitatu: fitness_kaska"
                    ]
                }
            ],
            rareResponses: [
                "O mój Boże! To był najlepszy tekst ever! 💖",
                "Zostawiłam już chłopaka dla ciebie! 😘",
                "Jesteś moim księciem z bajki! 🏰",
                "Dostałeś serduszko! ❤️",
                "Zapraszam na randkę! 🍷"
            ]
        };

        // Load game state from localStorage
        function loadGame() {
            const savedGame = localStorage.getItem('stulejarskiQuest');
            if (savedGame) {
                const parsed = JSON.parse(savedGame);
                Object.assign(gameState, parsed);
                updateUI();
                
                // Show welcome back message
                addMessage(`System: Witaj z powrotem, Simpie! Masz już ${gameState.simpPoints} Simp Points!`);
            }
        }

        // Save game state to localStorage
        function saveGame() {
            localStorage.setItem('stulejarskiQuest', JSON.stringify(gameState));
        }

        // Update all UI elements
        function updateUI() {
            // Update points and level
            document.getElementById('simpPoints').textContent = Math.floor(gameState.simpPoints);
            document.getElementById('level').textContent = gameState.level;
            
            // Update auto simp rate
            calculateAutoSimpRate();
            document.getElementById('autoSimpRate').textContent = gameState.autoSimpRate.toFixed(1) + ' Simp Points/s';
            
            // Update upgrades
            document.getElementById('profilePicCount').textContent = gameState.upgrades.profilePic.owned;
            document.getElementById('redditCourseCount').textContent = gameState.upgrades.redditCourse.owned;
            document.getElementById('tinderPremiumCount').textContent = gameState.upgrades.tinderPremium.owned;
            
            // Update bots
            document.getElementById('mirekCount').textContent = gameState.bots.mirek.owned;
            document.getElementById('kryptoCount').textContent = gameState.bots.krypto.owned;
            document.getElementById('sigmaCount').textContent = gameState.bots.sigma.owned;
            
            // Update character
            updateCharacter();
            
            // Update achievements
            updateAchievements();
            
            // Check for level up
            checkLevelUp();
        }

        // Calculate auto simp rate
        function calculateAutoSimpRate() {
            let rate = 0;
            
            // Add bots
            rate += gameState.bots.mirek.owned * gameState.bots.mirek.rate;
            rate += gameState.bots.krypto.owned * gameState.bots.krypto.rate;
            rate += gameState.bots.sigma.owned * gameState.bots.sigma.rate;
            
            // Apply reddit course multiplier
            if (gameState.upgrades.redditCourse.owned > 0) {
                rate *= gameState.upgrades.redditCourse.effect;
            }
            
            gameState.autoSimpRate = rate;
        }

        // Update character display
        function updateCharacter() {
            const character = gameState.characters[gameState.currentCharacter - 1];
            document.getElementById('characterImage').src = character.image;
            document.getElementById('characterName').textContent = character.name;
            document.getElementById('characterLevel').textContent = `Poziom ${character.level}`;
        }

        // Update achievements display
        function updateAchievements() {
            const container = document.getElementById('achievementsContainer');
            container.innerHTML = '';
            
            gameState.achievements.forEach(achievement => {
                const achievementElement = document.createElement('div');
                achievementElement.className = `bg-gray-800 p-3 rounded-lg ${achievement.earned ? 'border border-yellow-400' : 'opacity-50'}`;
                
                achievementElement.innerHTML = `
                    <div class="flex items-center gap-3">
                        <div class="text-2xl ${achievement.earned ? 'text-yellow-400' : 'text-gray-600'}">
                            <i class="fas fa-trophy"></i>
                        </div>
                        <div>
                            <h4 class="font-bold ${achievement.earned ? 'text-white' : 'text-gray-400'}">${achievement.name}</h4>
                            <p class="text-sm ${achievement.earned ? 'text-gray-300' : 'text-gray-500'}">${achievement.description}</p>
                            ${achievement.earned ? `<p class="text-xs text-yellow-300 mt-1">Nagroda: ${achievement.reward} SP</p>` : ''}
                        </div>
                    </div>
                `;
                
                container.appendChild(achievementElement);
            });
        }

        // Check for level up
        function checkLevelUp() {
            const newLevel = Math.min(Math.floor(gameState.simpPoints / 500) + 1, 5);
            
            if (newLevel > gameState.level) {
                gameState.level = newLevel;
                
                // Unlock new character if available
                if (gameState.currentCharacter < gameState.level && gameState.currentCharacter < gameState.characters.length) {
                    gameState.currentCharacter++;
                    addMessage(`System: Gratulacje! Odblokowałeś nową postać: ${gameState.characters[gameState.currentCharacter - 1].name}!`);
                }
                
                addMessage(`System: Awansowałeś na poziom ${gameState.level}!`);
                checkAchievement(`level${gameState.level}`);
            }
        }

        // Add message to chat
        function addMessage(text) {
            const container = document.getElementById('messagesContainer');
            const messageElement = document.createElement('div');
            messageElement.className = 'message bg-gray-800 p-2 rounded-lg';
            messageElement.innerHTML = text;
            container.appendChild(messageElement);
            container.scrollTop = container.scrollHeight;
        }

        // Send message button click
        document.getElementById('sendMessageBtn').addEventListener('click', () => {
            sendMessage();
        });

        // Send message function
        function sendMessage() {
            const character = gameState.characters[gameState.currentCharacter - 1];
            
            // Random pickup line
            const pickupLine = character.pickupLines[Math.floor(Math.random() * character.pickupLines.length)];
            addMessage(`<span class="text-cyan-400 font-bold">Ty:</span> ${pickupLine}`);
            
            // Random response (with chance for rare response if premium)
            let response;
            if (gameState.upgrades.tinderPremium.owned > 0 && Math.random() < 0.1) {
                response = gameState.rareResponses[Math.floor(Math.random() * gameState.rareResponses.length)];
            } else {
                response = character.responses[Math.floor(Math.random() * character.responses.length)];
            }
            
            setTimeout(() => {
                addMessage(`<span class="text-pink-400 font-bold">${character.name}:</span> ${response}`);
            }, 500);
            
            // Add points
            gameState.simpPoints += gameState.pointsPerClick;
            gameState.messagesSent++;
            
            // Check achievements
            checkAchievement('firstMessage');
            if (gameState.messagesSent === 50) checkAchievement('50Messages');
            if (gameState.messagesSent === 100) checkAchievement('100Messages');
            
            // Update UI
            updateUI();
            saveGame();
        }

        // Buy upgrade
        function buyUpgrade(type) {
            const upgrade = gameState.upgrades[type];
            
            if (gameState.simpPoints >= upgrade.cost) {
                gameState.simpPoints -= upgrade.cost;
                upgrade.owned++;
                
                // Special effects
                if (type === 'profilePic') {
                    gameState.pointsPerClick += upgrade.effect;
                }
                
                addMessage(`System: Kupiłeś ulepszenie: ${document.querySelector(`.upgrade-item h4`).textContent}!`);
                updateUI();
                saveGame();
            } else {
                addMessage(`System: Nie masz wystarczająco Simp Points na to ulepszenie!`);
            }
        }

        // Buy bot
        function buyBot(type) {
            const bot = gameState.bots[type];
            
            if (gameState.simpPoints >= bot.cost) {
                gameState.simpPoints -= bot.cost;
                bot.owned++;
                
                addMessage(`System: Kupiłeś bota: ${document.querySelector(`.bot-item h4`).textContent}!`);
                
                // Check achievement
                if (gameState.bots.mirek.owned + gameState.bots.krypto.owned + gameState.bots.sigma.owned === 1) {
                    checkAchievement('firstBot');
                }
                
                updateUI();
                saveGame();
            } else {
                addMessage(`System: Nie masz wystarczająco Simp Points na tego bota!`);
            }
        }

        // Check achievement
        function checkAchievement(id) {
            const achievement = gameState.achievements.find(a => a.id === id);
            
            if (achievement && !achievement.earned) {
                achievement.earned = true;
                gameState.simpPoints += achievement.reward;
                
                // Show achievement popup
                const achievementElement = document.createElement('div');
                achievementElement.className = 'fixed bottom-4 right-4 bg-yellow-500 text-black p-4 rounded-lg shadow-lg z-50 achievement';
                achievementElement.innerHTML = `
                    <div class="flex items-center gap-3">
                        <div class="text-2xl">
                            <i class="fas fa-trophy"></i>
                        </div>
                        <div>
                            <h4 class="font-bold">Odblokowano achievement!</h4>
                            <p>${achievement.name}: ${achievement.description}</p>
                            <p class="text-sm mt-1">Nagroda: ${achievement.reward} SP</p>
                        </div>
                    </div>
                `;
                
                document.body.appendChild(achievementElement);
                
                // Remove after delay
                setTimeout(() => {
                    achievementElement.remove();
                }, 5000);
                
                addMessage(`System: Odblokowałeś achievement "${achievement.name}" i otrzymałeś ${achievement.reward} Simp Points!`);
                updateUI();
                saveGame();
            }
        }

        // Auto simp loop
        function autoSimpLoop() {
            if (gameState.autoSimpRate > 0) {
                const increment = gameState.autoSimpRate / 10;
                gameState.simpPoints += increment;
                
                // Update progress bar
                const progress = document.getElementById('autoSimpProgress');
                const currentWidth = parseFloat(progress.style.width) || 0;
                const newWidth = (currentWidth + 10) % 100;
                progress.style.width = `${newWidth}%`;
                
                updateUI();
                saveGame();
            }
            
            setTimeout(autoSimpLoop, 100);
        }

        // Keyboard shortcut
        document.addEventListener('keypress', (e) => {
            if (e.code === 'Space') {
                e.preventDefault();
                sendMessage();
            }
        });

        // Initialize game
        loadGame();
        autoSimpLoop();
        
        // Add welcome message if new game
        if (gameState.messagesSent === 0) {
            addMessage("System: Witaj w Stulejarskim Queście! Zacznij wysyłać wiadomości do Grażyny, aby zdobyć Simp Points!");
        }
    </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=RolePlayingTech/stulejarze" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>