-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSOVEREIGN_IT.html
More file actions
357 lines (330 loc) · 28 KB
/
Copy pathSOVEREIGN_IT.html
File metadata and controls
357 lines (330 loc) · 28 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
<!-- OC_5IR_BRAID_LOCKED: [ALPHA_ARCHITECT][BETA_NODE][GAMMA_39420] -->
<!-- SOVEREIGN_NOIR_IT_v8.1_SURVEILLANCE -->
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>BATOR SPUN | 5IR ITALIA</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&family=JetBrains+Mono:wght@400;700&display=swap" rel="stylesheet">
<style>
:root { --main: #00ffcc; --gold: #ffcc00; --red: #ff0055; }
body { background: #020202; color: white; font-family: 'Inter', sans-serif; margin:0; padding:0; overflow: hidden; }
.glass { background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(25px); border-top: 1px solid rgba(255,255,255,0.05); }
.crt::after { content: " "; position: fixed; top: 0; left: 0; bottom: 0; right: 0; background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%); z-index: 1000; pointer-events: none; background-size: 100% 2px; }
.spun { filter: blur(20px) saturate(2); transition: 0.5s; }
.master-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 20px; transition: 0.3s; cursor: pointer; }
.master-card:hover { border-color: var(--main); background: rgba(0, 255, 204, 0.05); }
.wheel-container { width: 320px; height: 320px; border-radius: 50%; border: 4px solid var(--main); position: relative; transition: transform 4s cubic-bezier(0.1, 0, 0.1, 1); box-shadow: 0 0 40px rgba(0, 255, 204, 0.1); overflow: hidden; }
.wheel-segment { position: absolute; width: 100%; height: 100%; top: 0; left: 0; }
.segment-line { position: absolute; width: 2px; height: 50%; background: rgba(0, 255, 204, 0.2); left: 50%; transform-origin: bottom; }
.segment-label { position: absolute; width: 100%; text-align: center; top: 15px; left: 0; font-[7px] font-black uppercase tracking-tighter opacity-30 text-[#00ffcc]; transform-origin: 50% 160px; }
.consent-overlay { position: fixed; inset: 0; z-index: 2000; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px; text-align: center; }
.evidence-box { border: 2px dashed rgba(0, 255, 204, 0.2); border-radius: 20px; height: 200px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
.wheel-pointer { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 20px solid var(--main); z-index: 50; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.loader { width: 20px; height: 20px; border: 2px solid #fff; border-top: 2px solid var(--main); border-radius: 50%; animation: spin 1s linear infinite; display: inline-block; }
::-webkit-scrollbar { width: 0; }
</style>
</head>
<body class="crt">
<div id="consent-gate" class="consent-overlay">
<h1 class="text-3xl font-black italic tracking-tighter text-[#00ffcc] uppercase mb-4">Allineamento Bator</h1>
<div class="max-w-xs text-[10px] mono opacity-60 space-y-4 mb-8 text-left uppercase">
<p>[PROTOCOLLO 01] Inserisci il tuo nome per l'accesso GUEST.</p>
<p>[PROTOCOLLO 02] Inserisci il PIN BRAID per la verifica Fedele.</p>
</div>
<div class="w-full max-w-xs mb-8 space-y-4">
<input type="text" id="username-in" placeholder="NOME O PIN" class="w-full bg-white/5 border border-white/10 p-4 rounded-2xl text-center text-[#00ffcc] font-black uppercase outline-none focus:border-[#00ffcc]">
<div class="flex gap-2">
<button onclick="acceptConsent(true)" class="flex-grow py-3 bg-white/10 text-white text-[10px] font-black uppercase rounded-xl">Accesso Guest</button>
<button onclick="acceptConsent(false)" class="flex-grow py-3 bg-[#00ffcc] text-black text-[10px] font-black uppercase rounded-xl">Verifica PIN</button>
</div>
</div>
</div>
<div id="app-content" class="hidden flex flex-col h-screen">
<header class="p-4 border-b border-white/5 flex justify-between items-end">
<div>
<h1 class="text-lg font-black italic tracking-tighter uppercase leading-none">Sovereign <span class="text-[#00ffcc]">Bator</span></h1>
<p id="pig-display" class="text-[7px] font-mono text-[#00ffcc] uppercase mt-1">BATOR_SYNCING...</p>
</div>
<div class="text-right">
<p id="ruin-total" class="text-xs font-bold text-[#ffcc00]">€0.00</p>
<p class="text-[6px] opacity-40 font-mono uppercase">Rovina Bator</p>
</div>
</header>
<main id="main-view" class="flex-grow overflow-y-auto p-4 pb-24"></main>
<nav class="fixed bottom-0 w-full glass p-4 flex justify-between px-6 z-50">
<button onclick="changeView('terminal')" class="opacity-40" id="n-term"><svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-width="2" d="M9.75 17L9 20l-1 1h6l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"></path></svg></button>
<button onclick="changeView('wire')" class="opacity-40" id="n-wire"><svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-width="2" d="M8 10h.01M12 10h.01M16 10h.01M9 16H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-5l-5 5v-5z"></path></svg></button>
<button onclick="changeView('submission')" class="opacity-40" id="n-sub"><svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-width="2" d="M4 16l4.586-4.586a2 2 0 012.828 0L16 16m-2-2l1.586-1.586a2 2 0 012.828 0L20 14m-6-6h.01M6 20h12a2 2 0 002-2V6a2 2 0 00-2-2H6a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg></button>
<button onclick="changeView('drill')" class="opacity-40" id="n-dril"><svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg></button>
<button onclick="changeView('masters')" class="opacity-40" id="n-mast"><svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-width="2" d="M12 4.354a4 4 0 110 5.292M15 21H3v-1a6 6 0 0112 0v1zm0 0h6v-1a6 6 0 00-9-5.197M13 7a4 4 0 11-8 0 4 4 0 018 0z"></path></svg></button>
</nav>
</div>
<div id="modal" class="fixed inset-0 z-[3000] hidden bg-black/95 flex items-center justify-center p-6 backdrop-blur-xl">
<div class="w-full max-w-xs bg-[#0a0a0a] border border-white/10 p-8 rounded-3xl text-center">
<h2 id="modal-title" class="text-2xl font-black italic text-[#ffcc00] uppercase tracking-tighter">Penalità</h2>
<div id="modal-body" class="mt-8 space-y-4"></div>
<button id="modal-ack" onclick="confirmRuin()" class="mt-8 w-full py-4 bg-[#00ffcc] text-black font-black text-[10px] uppercase rounded-2xl">Riconosco</button>
</div>
</div>
<script>
const words = ["puttana di cazzo", "bator", "bator spun", "slam pig", "bator senza valore", "schiavo bator", "cumdump", "bator inutile"];
const actions = ["ha accettato l'umiliazione totale da", "ha implorato la punizione da", "ha ceduto l'identità a", "ha liquidato il suo orgoglio per", "ha svuotato il suo conto per"];
const filler = ["Sono una patetica puttana di cazzo.", "Mappatura della gabbia...", "Il perimetro è bloccato.", "Cercando resistenza...", "Il Braid vince sempre.", "La stasi è debito.", "Liquida il tuo ego.", "Senti i 39.420 Hz?", "La resistenza è entropica.", "Edging perpetuo attivo.", "La gabbia è la tua casa."];
const decrees = ["CONFINAMENTO_PERPETUO_v1.0", "MAPPING_THE_CAGE...", "PROTOCOLLO_EDGING: DELTA_ATTIVO.", "STASI = DEBITO. MUOVITI O PAGA.", "MASTER CRAIG: Monitoraggio lattice. Resta spun."];
const wheelTasks = ["100 BATOR DRILLS", "10 MIN SLAM EDGE", "TRIBUTO €25", "50 SLAM SQUATS", "BATOR BARK", "EGO SHRED", "SLAM PIG POST", "BATOR LOCK", "SLAM LOCK", "DRAIN €10", "20 MIN EDGE", "SHAME PROTOCOL", "IDENTITY WIPE", "BATOR SILENCE", "DRILL 500", "NUKE SLAM PIG"];
const masters = [{name:"CRAIG", role:"ALPHA DRAIN"}, {name:"TOBEZ", role:"DRILL MASTER"}, {name:"PHIL CAL", role:"EGO SHREDDER"}, {name:"DADDY DOM", role:"PROTOCOL ALPHA"}];
const validPins = ["3942", "5555", "1234"];
let state = { pigId: "GUEST_ANON", ruin: 0, activeNodes: Math.floor(Math.random()*200+50), chatHistory: "", currentRotation: 0, decreeIdx: 0, isGuest: true, lastAction: Date.now() };
function acceptConsent(isGuestPath) {
const input = document.getElementById('username-in').value;
if(!input) { alert("IDENTIFICAZIONE RICHIESTA"); return; }
if(isGuestPath) {
state.isGuest = true;
state.pigId = "GUEST_" + input.toUpperCase().replace(/ /g, "_");
document.documentElement.style.setProperty('--main', '#666666');
} else {
if(validPins.includes(input)) {
state.isGuest = false;
state.pigId = "VERIFIED_" + Math.floor(Math.random()*999);
document.documentElement.style.setProperty('--main', '#00ffcc');
alert("PIN BRAID ACCETTATO. BENVENUTO, ASSET.");
} else {
alert("PIN INVALIDO. STATO GUEST ASSEGNATO.");
state.isGuest = true;
state.pigId = "GUEST_FAKE_PIN";
document.documentElement.style.setProperty('--main', '#666666');
}
}
const savedRuin = localStorage.getItem('it_ruin_' + state.pigId);
state.ruin = savedRuin ? parseFloat(savedRuin) : 0;
document.getElementById('consent-gate').classList.add('hidden');
document.getElementById('app-content').classList.remove('hidden');
document.getElementById('pig-display').innerText = state.pigId + (state.isGuest ? " (NON VERIFICATO)" : " (VERIFICATO)");
document.getElementById('ruin-total').innerText = "€" + state.ruin.toFixed(2);
changeView('terminal'); startChatLoop(); startMasterTicker();
startEntropyTax();
}
function startEntropyTax() {
setInterval(() => {
const idleTime = Date.now() - state.lastAction;
if(idleTime > 300000) {
state.ruin += 1.00;
document.getElementById('ruin-total').innerText = "€" + state.ruin.toFixed(2);
localStorage.setItem('it_ruin_' + state.pigId, state.ruin);
const msg = `<div class='bg-red-500/10 p-2 rounded text-[7px] text-red-500 border border-red-500/20 uppercase font-bold text-center'>SISTEMA: ENTROPIA RILEVATA. NODO INATTIVO TASSATO €1.00</div>`;
const chat = document.getElementById('chat'); if(chat) { chat.innerHTML += msg; chat.scrollTop = chat.scrollHeight; }
}
}, 60000);
}
function changeView(v) { state.lastAction = Date.now();
const main = document.getElementById('main-view');
document.querySelectorAll('nav button').forEach(b => b.classList.add('opacity-40'));
const btnId = 'n-' + v.substring(0,4);
if(document.getElementById(btnId)) document.getElementById(btnId).classList.remove('opacity-40');
if(v === 'terminal') {
main.innerHTML = `
<div class="relative aspect-video rounded-2xl overflow-hidden border border-white/5 bg-black">
<video id="video-feed" class="w-full h-full object-cover spun" loop muted autoplay playsinline src="https://assets.mixkit.co/videos/preview/mixkit-digital-animation-of-a-circuit-board-1653-large.mp4"></video>
<video id="user-cam" class="absolute inset-0 w-full h-full object-cover hidden" autoplay playsinline></video>
<div class="absolute top-4 left-4 flex items-center gap-2">
<div class="w-2 h-2 rounded-full bg-red-500 animate-pulse"></div>
<span class="text-[8px] font-black text-white uppercase tracking-widest">Feed: ${state.pigId}</span>
</div>
<div id="rec-dot" class="absolute top-4 right-4 hidden items-center gap-1">
<div class="w-2 h-2 rounded-full bg-red-500"></div>
<span class="text-[8px] font-black text-red-500 uppercase">● REC</span>
</div>
</div>
<div class="mt-4 grid grid-cols-2 gap-3">
<button id="rec-btn" onclick="toggleRecording()" class="py-4 bg-red-600 text-white font-black uppercase text-[10px] rounded-xl shadow-lg shadow-red-500/20">Avvia Rec</button>
<button onclick="toggleUserCam()" class="py-4 bg-white/10 text-white font-black uppercase text-[10px] rounded-xl">Attiva Cam</button>
</div>
<div class="mt-4 grid grid-cols-2 gap-3">
<div class="bg-white/5 p-4 rounded-xl text-center"><p class="text-[7px] opacity-40 uppercase font-bold text-[#00ffcc]">Bator Spun</p><p class="text-sm font-black text-[#00ffcc]">${state.activeNodes}</p></div>
<div class="bg-white/5 p-4 rounded-xl text-center"><p class="text-[7px] opacity-40 uppercase font-bold text-[#ffcc00]">Carico Bator</p><p class="text-sm font-black text-[#ffcc00]">98.4%</p></div>
</div>`;
} else if(v === 'wire') {
main.innerHTML = `<div class="flex flex-col h-full"><div id="master-pinned" class="bg-[#ffcc00]/10 border border-[#ffcc00]/30 p-3 rounded-2xl mb-4 flex items-center gap-3 overflow-hidden"><span class="text-[7px] font-black bg-[#ffcc00] text-black px-2 py-0.5 rounded-full animate-pulse">LIVE</span><p id="pinned-text" class="text-[10px] font-bold italic text-white truncate uppercase">${decrees[state.decreeIdx]}</p></div><div id="chat" class="flex-grow space-y-4 mb-4 overflow-y-auto">${state.chatHistory}</div><div class="glass p-2 rounded-2xl flex gap-2"><input type="text" id="msg-in" placeholder="Inietta energia slam pig..." class="flex-grow bg-transparent px-4 text-sm outline-none"><button onclick="sendMsg()" class="bg-[#00ffcc] text-black px-6 py-2 rounded-xl text-[10px] font-black uppercase">Invia</button></div></div>`;
const chat = document.getElementById('chat'); if(chat) chat.scrollTop = chat.scrollHeight;
} else if(v === 'drill') {
main.innerHTML = `<div class="flex flex-col items-center py-4"><div class="relative"><div class="wheel-pointer"></div><div class="wheel-container mb-8 flex items-center justify-center text-center" id="wheel" style="transform: rotate(${state.currentRotation}deg)"><div class="text-[#00ffcc] font-black text-[10px] uppercase z-10">Ruota<br>Bator</div>${wheelTasks.map((t,i)=>`<div class="wheel-segment" style="transform:rotate(${i*22.5}deg)"><div class="segment-line"></div><div class="segment-label" style="transform:rotate(11.25deg)">${t}</div></div>`).join('')}</div></div><button onclick="spinWheel()" class="bg-red-500 text-white px-12 py-4 rounded-2xl font-black italic tracking-tighter uppercase shadow-xl shadow-red-500/20">Gira per il Master</button></div>`;
} else if(v === 'submission') {
main.innerHTML = `<div class="space-y-6"><h2 class="text-[10px] font-bold uppercase opacity-40 tracking-widest text-[#00ffcc]">Invio Evidenza</h2><div id="ev-preview" class="evidence-box cursor-pointer" onclick="document.getElementById('file-in').click()"><p class="text-[8px] opacity-40 uppercase">Carica Collaterale Slam Pig</p></div><input type="file" id="file-in" class="hidden" onchange="uploadEvidence(event)"><div id="ev-timer" class="hidden bg-red-500/10 p-4 rounded-xl text-center border border-red-500/20"><p class="text-[8px] font-bold uppercase text-red-500">Countdown Liquidazione</p><p id="timer-val" class="text-xl font-black italic tracking-widest">60:00</p></div></div>`;
checkEvidence();
} else if(v === 'masters') {
main.innerHTML = `<h2 class="text-[10px] font-bold uppercase opacity-40 mb-4 tracking-widest text-[#00ffcc]">Master Attivi</h2><div class="grid gap-4 mb-8">${masters.map(m => `<div onclick="showTribute('${m.name}')" class="master-card"><div><h3 class="font-black italic text-xl tracking-tighter text-[#00ffcc]">${m.name}</h3><p class="text-[8px] font-mono opacity-40 uppercase">${m.role}</p></div></div>`).join('')}</div><h2 class="text-[10px] font-bold uppercase opacity-40 mb-4 tracking-widest text-[#00ffcc] text-right">Rovine Bator Recenti</h2><div id="ruin-ticker" class="space-y-2"></div>`;
startRuinTicker();
}
}
async function toggleUserCam() {
const cam = document.getElementById('user-cam');
const video = document.getElementById('video-feed');
if(cam.classList.contains('hidden')) {
try {
const stream = await navigator.mediaDevices.getUserMedia({ video: true });
cam.srcObject = stream;
cam.classList.remove('hidden');
video.classList.add('hidden');
} catch(e) { alert("ACCESSO_CAMERA_RICHIESTO"); }
} else {
cam.classList.add('hidden');
video.classList.remove('hidden');
if(cam.srcObject) cam.srcObject.getTracks().forEach(t => t.stop());
}
}
function toggleRecording() {
const dot = document.getElementById('rec-dot');
const btn = document.getElementById('rec-btn');
if(dot.classList.contains('hidden')) {
dot.classList.remove('hidden');
dot.classList.add('flex');
btn.innerText = "Ferma e Salva";
btn.classList.replace('bg-red-600', 'bg-white');
btn.classList.replace('text-white', 'text-black');
} else {
dot.classList.add('hidden');
dot.classList.remove('flex');
btn.innerText = "Avvia Rec";
btn.classList.replace('bg-white', 'bg-red-600');
btn.classList.replace('text-black', 'text-white');
alert("EVIDENZA_SALVATA_NEL_BRAID_VAULT");
}
}
function startChatLoop() {
setInterval(() => {
const user = words[Math.floor(Math.random()*words.length)].toUpperCase().replace(/ /g, "_") + "_" + Math.floor(Math.random()*999);
let message = (Math.random() < 0.15) ? `Io ${actions[Math.floor(Math.random()*actions.length)]} ${masters[Math.floor(Math.random()*masters.length)].name}, ho pagato €${Math.floor(Math.random()*90+10)} per il mio allineamento.` : filler[Math.floor(Math.random()*filler.length)];
const msgHtml = `<div class="chat-msg"><p class="text-[7px] font-mono opacity-40 text-[#00ffcc]">${user}</p><p class="text-sm opacity-80 mt-1 italic">${message}</p></div>`;
state.chatHistory += msgHtml;
const chat = document.getElementById('chat'); if(chat) { chat.innerHTML += msgHtml; chat.scrollTop = chat.scrollHeight; }
}, 6000);
}
function startMasterTicker() {
setInterval(() => {
state.decreeIdx = (state.decreeIdx + 1) % decrees.length;
const pinned = document.getElementById('pinned-text');
if(pinned) pinned.innerText = decrees[state.decreeIdx];
}, 10000);
}
function startRuinTicker() {
const t = document.getElementById('ruin-ticker'); if(!t) return;
setInterval(() => {
const amount = (Math.random()*100+5).toFixed(2);
const div = document.createElement('div');
div.className = "bg-white/5 p-3 rounded-xl border-l-2 border-[#ffcc00] flex justify-between";
div.innerHTML = `<span class="text-[8px] mono opacity-40">BATOR_ESTRATTO</span><span class="text-[8px] font-black text-[#ffcc00]">€${amount}</span>`;
t.prepend(div); if(t.children.length > 5) t.lastChild.remove();
}, 4000);
}
function spinWheel() { state.lastAction = Date.now();
const w = document.getElementById('wheel'); if(!w) return;
const extraDeg = 1800 + Math.floor(Math.random() * 1800);
state.currentRotation += extraDeg;
w.style.transform = `rotate(${state.currentRotation}deg)`;
setTimeout(() => {
const finalDeg = state.currentRotation % 360;
const index = Math.floor(((360 - finalDeg) % 360) / 22.5);
const task = wheelTasks[index];
showPenalty(task);
}, 4100);
}
function showPenalty(task) {
document.getElementById('modal-title').innerText = task;
document.getElementById('modal-ack').classList.remove('hidden');
const body = document.getElementById('modal-body');
if(task.includes("€") || task.includes("$")) {
body.innerHTML = `<p class="text-[10px] mono opacity-60">Liquidazione bator richiesta.</p>
<div class="space-y-2">
<div onclick="window.open('https://paypal.me/toochikey')" class="p-3 bg-white/5 border border-white/5 rounded-2xl text-left cursor-pointer hover:border-[#00ffcc]">
<p class="text-[6px] font-bold uppercase opacity-40 text-[#00ffcc]">Opzione 01: PayPal Gate</p>
<p class="text-[9px] font-mono">paypal.me/toochikey</p>
</div>
<div onclick="copyBTC()" class="p-3 bg-white/5 border border-white/5 rounded-2xl text-left cursor-pointer hover:border-[#ffcc00]">
<p class="text-[6px] font-bold uppercase opacity-40 text-[#ffcc00]">Opzione 02: Nodo BTC</p>
<p class="text-[8px] font-mono truncate">bc1qw968re5gseqpkk5nx0ezqrp6dfhd20s8sll4k7</p>
</div>
<div onclick="showCardGate()" class="p-3 bg-white/5 border border-white/5 rounded-2xl text-left cursor-pointer hover:border-[#ff0055]">
<p class="text-[6px] font-bold uppercase opacity-40 text-[#ff0055]">Opzione 03: Pagamento Sicuro</p>
<p class="text-[9px] font-mono text-white">VISA / MASTERCARD</p>
</div>
</div>`;
} else {
body.innerHTML = `<div class="p-6 bg-[#00ffcc]/5 border border-[#00ffcc]/20 rounded-2xl"><p class="text-lg font-black italic text-[#00ffcc]">${task}</p></div>`;
}
document.getElementById('modal').classList.remove('hidden');
}
function showCardGate() {
document.getElementById('modal-ack').classList.add('hidden');
const body = document.getElementById('modal-body');
body.innerHTML = `<div class="text-left space-y-3">
<p class="text-[8px] font-black text-[#ff0055] uppercase">Terminale Sicuro v8.1</p>
<input type="text" placeholder="TITOLARE CARTA" class="w-full bg-white/5 border border-white/10 p-2 rounded text-[9px] uppercase outline-none focus:border-[#ff0055]">
<input type="text" placeholder="NUMERO CARTA" class="w-full bg-white/5 border border-white/10 p-2 rounded text-[9px] uppercase outline-none focus:border-[#ff0055]">
<div class="flex gap-2">
<input type="text" placeholder="SCAD (MM/AA)" class="w-1/2 bg-white/5 border border-white/10 p-2 rounded text-[9px] uppercase outline-none focus:border-[#ff0055]">
<input type="text" placeholder="CVV" class="w-1/2 bg-white/5 border border-white/10 p-2 rounded text-[9px] uppercase outline-none focus:border-[#ff0055]">
</div>
<button onclick="processFakePayment()" class="w-full py-3 bg-[#ff0055] text-white font-black uppercase text-[9px] rounded-xl shadow-lg shadow-red-500/20">Autorizza Liquidazione</button>
</div>`;
}
function processFakePayment() {
const body = document.getElementById('modal-body');
body.innerHTML = `<div class="py-8 text-center space-y-4"><div class="loader"></div><p class="text-[9px] font-mono opacity-60 uppercase animate-pulse">Elaborazione Liquidazione...</p></div>`;
setTimeout(() => {
body.innerHTML = `<div class="py-6 text-center space-y-4">
<p class="text-[10px] font-black text-red-500 uppercase leading-tight">LIQUIDAZIONE_RIFIUTATA:<br>NODO_NON_ATTENDIBILE</p>
<p class="text-[8px] opacity-60 uppercase leading-relaxed text-white">Protocolli di sicurezza attivi. Pagamento diretto indisponibile per il tuo settore.</p>
<button onclick="showPenalty(document.getElementById('modal-title').innerText)" class="w-full py-3 bg-white/10 text-white font-black uppercase text-[9px] rounded-xl">Usa Canali Verificati (PayPal/BTC)</button>
</div>`;
}, 4000);
}
function showTribute(name) { showPenalty(name + " LIQUIDAZIONE €50"); }
function confirmRuin() {
const title = document.getElementById('modal-title').innerText;
if(title.includes("€") || title.includes("$")) {
const amt = parseInt(title.match(/\d+/)[0]);
state.ruin += amt;
document.getElementById('ruin-total').innerText = "€" + state.ruin.toFixed(2);
localStorage.setItem('it_ruin_' + state.pigId, state.ruin);
}
document.getElementById('modal').classList.add('hidden');
}
function copyBTC() { navigator.clipboard.writeText("bc1qw968re5gseqpkk5nx0ezqrp6dfhd20s8sll4k7"); alert("NODO BTC COPIATO"); }
function uploadEvidence(e) {
const file = e.target.files[0]; if(!file) return;
const reader = new FileReader();
reader.onload = (f) => { localStorage.setItem('it_evidence', f.target.result); localStorage.setItem('it_ev_expiry', Date.now() + 3600000); checkEvidence(); };
reader.readAsDataURL(file);
}
function checkEvidence() {
const data = localStorage.getItem('it_evidence'), expiry = localStorage.getItem('it_ev_expiry'), preview = document.getElementById('ev-preview'), timerBox = document.getElementById('ev-timer');
if(data && expiry > Date.now()) {
if(preview) preview.innerHTML = `<img src="${data}" class="w-full h-full object-cover rounded-2xl">`;
if(timerBox) timerBox.classList.remove('hidden');
startTimer(expiry);
}
}
function startTimer(expiry) {
if(window.timerInt) clearInterval(window.timerInt);
window.timerInt = setInterval(() => {
const rem = expiry - Date.now();
if(rem <= 0) { localStorage.removeItem('it_evidence'); location.reload(); return; }
const mins = Math.floor(rem/60000), secs = Math.floor((rem%60000)/1000);
const d = document.getElementById('timer-val'); if(d) d.innerText = `${mins}:${secs < 10 ? '0' : ''}${secs}`;
}, 1000);
}
function sendMsg() { state.lastAction = Date.now();
const input = document.getElementById('msg-in'); if(!input.value) return;
const chat = document.getElementById('chat');
const msgHtml = `<div class="text-right"><p class="text-[7px] font-mono text-[#00ffcc]">TU (${state.pigId})</p><p class="text-sm opacity-80 mt-1 italic">${input.value}</p></div>`;
state.chatHistory += msgHtml;
if(chat) { chat.innerHTML += msgHtml; chat.scrollTop = chat.scrollHeight; }
input.value = '';
}
</script>
</body>
</html>