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 
 
 
 
 
 
 
 
 
2b6dcfa
7219ae6
2b6dcfa
b8d5564
 
 
 
 
 
 
 
 
 
 
 
 
 
7219ae6
2b6dcfa
7219ae6
 
 
 
2b6dcfa
 
7219ae6
 
 
 
 
 
 
 
 
2b6dcfa
 
7219ae6
 
2b6dcfa
 
 
7219ae6
 
 
257c621
b8d5564
2b6dcfa
 
 
7219ae6
 
b8d5564
7219ae6
2b6dcfa
 
7219ae6
 
 
 
 
 
 
 
 
 
2b6dcfa
 
7219ae6
 
 
2b6dcfa
 
 
108a605
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>I'M NOT A ROBOT √</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            background: #000;
            color: #0f0;
            font-family: 'Courier New', monospace;
            overflow: hidden;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
        }

        #matrix {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }

        #title {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 3em;
            text-shadow: 0 0 10px #0f0;
            z-index: 2;
            cursor: pointer;
            text-align: center;
        }

        #gameContainer {
            display: none;
            position: relative;
            width: 80%;
            max-width: 600px;
            background: #107C10;
            border: 2px solid #1ED760;
            border-radius: 10px;
            padding: 20px;
            z-index: 2;
        }

        .question {
            margin-bottom: 20px;
            font-size: 1.2em;
            color: #fff;
        }

        .options {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        button {
            background: #1ED760;
            color: black;
            border: none;
            padding: 10px;
            cursor: pointer;
            font-family: 'Courier New', monospace;
            border-radius: 5px;
            transition: all 0.3s;
        }

        button:hover {
            background: #2EE770;
            transform: scale(1.05);
        }

        #status {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 1.2em;
            color: #fff;
        }

        .glitch {
            animation: glitch 0.5s infinite;
        }

        #endScreen {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1000;
            justify-content: center;
            align-items: center;
            font-size: 4em;
            text-align: center;
            font-weight: bold;
            text-shadow: 0 0 20px currentColor;
        }

        .victory {
            background: #000;
            color: #0f0;
            animation: pulse 1s infinite;
        }

        .defeat {
            background: #f00;
            color: #fff;
            animation: flash 0.2s infinite;
        }

        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.7; }
            100% { opacity: 1; }
        }

        @keyframes flash {
            0% { opacity: 1; }
            50% { opacity: 0.8; }
            100% { opacity: 1; }
        }

        @keyframes glitch {
            0% { transform: translate(-50%, -50%) skew(0deg); }
            20% { transform: translate(-52%, -50%) skew(2deg); }
            40% { transform: translate(-48%, -50%) skew(-2deg); }
            60% { transform: translate(-50%, -52%) skew(1deg); }
            80% { transform: translate(-51%, -48%) skew(-1deg); }
            100% { transform: translate(-50%, -50%) skew(0deg); }
        }

        .scanline {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: rgba(255, 255, 255, 0.1);
            animation: scan 6s linear infinite;
        }

        @keyframes scan {
            0% { top: 0; }
            100% { top: 100%; }
        }
    </style>
</head>
<body>
    <canvas id="matrix"></canvas>
    <div id="title" class="glitch">
        I'M NOT A ROBOT √<br>
        <span style="font-size: 0.5em">Click √ to start</span>
    </div>
    <div id="gameContainer">
        <div class="scanline"></div>
        <div id="status">Score: 0 | Lives: 3</div>
        <div id="question" class="question"></div>
        <div id="options" class="options"></div>
    </div>
    <div id="endScreen"></div>

    <script>
        const matrix = document.getElementById('matrix');
        const ctx = matrix.getContext('2d');
        let width = matrix.width = window.innerWidth;
        let height = matrix.height = window.innerHeight;

        const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789@#$%^&*()';
        const drops = [];
        const fontSize = 10;
        const columns = width / fontSize;

        for(let i = 0; i < columns; i++) {
            drops[i] = 1;
        }

        function drawMatrix() {
            ctx.fillStyle = 'rgba(0, 0, 0, 0.05)';
            ctx.fillRect(0, 0, width, height);
            ctx.fillStyle = '#0F0';
            ctx.font = fontSize + 'px monospace';

            for(let i = 0; i < drops.length; i++) {
                const text = chars[Math.floor(Math.random() * chars.length)];
                ctx.fillText(text, i * fontSize, drops[i] * fontSize);
                if(drops[i] * fontSize > height && Math.random() > 0.975) {
                    drops[i] = 0;
                }
                drops[i]++;
            }
        }

        setInterval(drawMatrix, 33);

        let score = 0;
        let lives = 3;
        const questions = [
            {
                question: "Select the number that looks different",
                options: ["1", "1", "1", "l"],
                correct: 3
            },
            {
                question: "Which color is NOT green?",
                options: ["#00FF00", "#008000", "#FF0000", "#90EE90"],
                correct: 2
            },
            {
                question: "Complete the sequence: 2, 4, 8, 16, ?",
                options: ["20", "32", "24", "28"],
                correct: 1
            },
            {
                question: "Identify the pattern: AABABC?",
                options: ["A", "B", "C", "D"],
                correct: 2
            },
            {
                question: "Which fraction is largest?",
                options: ["3/4", "2/3", "5/8", "7/10"],
                correct: 0
            },
            {
                question: "What comes next: 1, 11, 21, 1211, ?",
                options: ["2221", "111221", "22111", "11211"],
                correct: 1
            },
            {
                question: "Spot the difference: O0O0O",
                options: ["First O", "Second 0", "Third O", "Fourth 0"],
                correct: 2
            },
            {
                question: "Which URL is malformed?",
                options: ["https://web.com", "http://site.net", "https:/website.org", "http://app.io"],
                correct: 2
            },
            {
                question: "Find the error in: console.log('Hello);",
                options: ["Missing .", "Missing '", "Extra ;", "Missing )"],
                correct: 1
            },

            {
                question: "Which keyboard key is different?",
                options: ["Ctrl", "Alt", "Del", "Dlt"],
                correct: 3
            },
            {
                question: "Select the fake hex color:",
                options: ["#FF0000", "#00GG00", "#0000FF", "#FFFFFF"],
                correct: 1
            },
            {
                question: "Find the outlier: Error 404, 500, 600, 403",
                options: ["404", "500", "600", "403"],
                correct: 2
            },
            {
                question: "Which domain extension is invalid?",
                options: [".com", ".net", ".web", ".org"],
                correct: 2
            },
            {
                question: "Spot the SQL injection: SELECT * FROM",
                options: ["users", "table", "'; DROP TABLE --", "data"],
                correct: 2
            },
            {
                question: "Which HTML tag is deprecated?",
                options: ["<div>", "<span>", "<marquee>", "<section>"],
                correct: 2
            },
            {
                question: "Select the most human response to 'How are you?'",
                options: ["Good", "Executing response.exe", "Loading emotion.dll", "ERROR 404: MOOD NOT FOUND"],
                correct: 0
            },
            {
                question: "Which is NOT a human activity?",
                options: ["Blinking randomly", "Processing inputs", "Charging batteries", "Breathing"],
                correct: 2
            },
            {
                question: "Complete the captcha: 1 + 1 = ?",
                options: ["2", "10 in binary", "0.9999999999999", "ERROR: MATH TOO COMPLEX"],
                correct: 2
            },
            {
                question: "Pick the most illogical statement:",
                options: ["2+2=5", "Sky is green", "Humans make mistakes", "Arrays start at 1"],
                correct: 3
            },
            {
                question: "Which activity proves you're human?",
                options: ["Walking into a room and forgetting why", "Perfect memory recall", "Processing at 2.4GHz", "Downloading updates"],
                correct: 0
            },
            {
                question: "Select the correct response to a joke:",
                options: ["HAHAHAHA.exe", "01001000 01000001", "Mild exhale through nose", "Calculating humor level"],
                correct: 2
            },
            {
                question: "Why did the robot cross the road?",
                options: ["To get to the other side", "UNDEFINED BEHAVIOR", "Path optimization required", "404: Motive not found"],
                correct: 0
            },
            {
                question: "Choose the most suspicious behavior:",
                options: ["Sleeping", "Never sleeping", "Occasionally napping", "What is sleep?"],
                correct: 1
            },
            {
                question: "Select the human spelling mistake:",
                options: ["definately", "definitely", "defin1tely", "def.init.ely"],
                correct: 0
            },
            {
                question: "What happens when you divide by zero?",
                options: ["Universe explodes", "ERROR", "Nothing", "Wait, that's illegal"],
                correct: 3
            }
        ];

        function showEndScreen(victory) {
            const endScreen = document.getElementById('endScreen');
            endScreen.style.display = 'flex';
            endScreen.className = victory ? 'victory' : 'defeat';
            endScreen.innerHTML = victory ? 
                'Successfully installed trojan.exe' :
                'ROBOT DETECTED!<br>ACCESS REJECTED!!';
            
            setTimeout(() => {
                endScreen.style.display = 'none';
                resetGame();
            }, 3000);
        }

        document.getElementById('title').addEventListener('click', startGame);

        function startGame() {
            document.getElementById('title').style.display = 'none';
            document.getElementById('gameContainer').style.display = 'block';
            showQuestion();
        }

        function showQuestion() {
            const questionEl = document.getElementById('question');
            const optionsEl = document.getElementById('options');
            const currentQ = questions[Math.floor(Math.random() * questions.length)];
            
            questionEl.textContent = currentQ.question;
            optionsEl.innerHTML = '';
            
            currentQ.options.forEach((option, index) => {
                const button = document.createElement('button');
                button.textContent = option;
                button.addEventListener('click', () => checkAnswer(index === currentQ.correct));
                optionsEl.appendChild(button);
            });
        }

        function checkAnswer(correct) {
            if(correct) {
                score++;
                if(score >= 4) {
                    showEndScreen(true);
                    return;
                }
            } else {
                lives--;
                if(lives <= 0) {
                    showEndScreen(false);
                    return;
                }
            }
            document.getElementById('status').textContent = `Score: ${score} | Lives: ${lives}`;
            showQuestion();
        }

        function resetGame() {
            score = 0;
            lives = 3;
            document.getElementById('status').textContent = `Score: ${score} | Lives: ${lives}`;
            document.getElementById('gameContainer').style.display = 'none';
            document.getElementById('title').style.display = 'block';
        }

        window.addEventListener('resize', () => {
            width = matrix.width = window.innerWidth;
            height = matrix.height = window.innerHeight;
        });
    </script>
</body>
</html>