-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenesis.html
More file actions
2543 lines (2331 loc) · 105 KB
/
genesis.html
File metadata and controls
2543 lines (2331 loc) · 105 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<title>GENESIS - Simulación Masiva de Libre Albedrío</title>
<style>
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; }
body { background: #0a0a0f; color: #fff; font-family: 'Segoe UI', Arial, sans-serif; }
.main { display: flex; height: 100vh; }
.world { width: 60%; height: 100%; position: relative; }
#canvas { width: 100%; height: 100%; }
#panel {
width: 40%;
height: 100vh;
background: linear-gradient(180deg, #12100d 0%, #0a0805 100%);
border-left: 2px solid #8b7355;
display: flex;
flex-direction: column;
overflow: hidden;
}
.panel-header {
padding: 12px 15px;
background: linear-gradient(90deg, #1a1510 0%, #2a1f15 100%);
border-bottom: 1px solid #3d3020;
display: flex;
justify-content: space-between;
align-items: center;
}
.panel-header h2 { color: #d4a574; font-size: 16px; font-weight: bold; }
.panel-header .stats {
display: flex;
gap: 15px;
font-size: 12px;
}
.panel-header .stat {
display: flex;
align-items: center;
gap: 5px;
}
.panel-header .stat-value {
color: #ffd700;
font-weight: bold;
}
.panel-header button {
background: linear-gradient(135deg, #2d5016 0%, #4a8020 100%);
color: #fff;
border: none;
padding: 8px 15px;
cursor: pointer;
border-radius: 5px;
font-size: 11px;
font-weight: bold;
transition: transform 0.2s;
}
.panel-header button:hover { transform: scale(1.05); }
.tabs {
display: flex;
background: #151210;
border-bottom: 1px solid #3d3020;
flex-wrap: wrap;
}
.tab {
padding: 10px 14px;
cursor: pointer;
color: #888;
font-size: 11px;
border-bottom: 2px solid transparent;
transition: all 0.2s;
}
.tab.active { color: #ffd700; border-bottom-color: #ffd700; background: rgba(255,215,0,0.1); }
.tab:hover { color: #d4a574; }
.tab-content {
flex: 1;
overflow-y: auto;
padding: 10px;
display: none;
}
.tab-content.active { display: block; }
/* Población */
.human-card {
background: linear-gradient(135deg, #1a1715 0%, #0d0a08 100%);
padding: 12px;
margin: 8px 0;
border-radius: 8px;
border-left: 4px solid #8b7355;
transition: transform 0.2s;
}
.human-card:hover { transform: translateX(3px); }
.human-card.dead { opacity: 0.4; border-left-color: #444; }
.human-card.pregnant { border-left-color: #ff69b4; background: linear-gradient(135deg, #1a1520 0%, #0d0a08 100%); }
.human-card.eden { border-left-color: #4ade80; }
.human-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
}
.human-name { font-size: 14px; color: #ffd700; font-weight: bold; }
.human-name .gender { font-size: 12px; margin-left: 5px; }
.human-name .gen { font-size: 10px; color: #888; margin-left: 8px; }
.human-age { font-size: 11px; color: #aaa; }
.human-location { font-size: 10px; color: #6b8aad; margin-top: 4px; }
.human-thought {
font-size: 11px;
color: #c0c0c0;
font-style: italic;
padding: 8px;
background: rgba(0,0,0,0.4);
border-radius: 5px;
margin-top: 8px;
border-left: 2px solid #4a4a4a;
}
.human-stats {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 6px;
margin-top: 8px;
}
.stat-mini {
text-align: center;
font-size: 9px;
}
.stat-mini .label { color: #888; }
.stat-mini .value { color: #fff; font-weight: bold; }
.stat-bar {
height: 4px;
background: #2a2520;
border-radius: 2px;
overflow: hidden;
margin-top: 2px;
}
.stat-bar-fill { height: 100%; transition: width 0.3s; }
.stat-bar-fill.health { background: linear-gradient(90deg, #ff4444, #44ff44); }
.stat-bar-fill.hunger { background: #f59e0b; }
.stat-bar-fill.thirst { background: #3b82f6; }
.stat-bar-fill.faith { background: #a855f7; }
.stat-bar-fill.temptation { background: #ef4444; }
/* Conversaciones */
.conversation {
padding: 10px;
margin: 6px 0;
background: linear-gradient(135deg, rgba(100,130,180,0.15) 0%, rgba(50,65,90,0.1) 100%);
border-radius: 6px;
font-size: 11px;
border-left: 3px solid #4a6b8a;
}
.conversation.sin { border-left-color: #ef4444; background: linear-gradient(135deg, rgba(180,50,50,0.2) 0%, rgba(90,25,25,0.1) 100%); }
.conversation.birth { border-left-color: #4ade80; background: linear-gradient(135deg, rgba(50,180,80,0.15) 0%, rgba(25,90,40,0.1) 100%); }
.conversation.death { border-left-color: #6b7280; background: linear-gradient(135deg, rgba(100,100,100,0.15) 0%, rgba(50,50,50,0.1) 100%); }
.conversation .header { display: flex; justify-content: space-between; margin-bottom: 5px; }
.conversation .from { color: #60a5fa; font-weight: bold; }
.conversation .to { color: #4ade80; }
.conversation .time { color: #6b7280; font-size: 10px; }
.conversation .message { color: #d1d5db; line-height: 1.4; }
/* Estadísticas */
.stats-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
margin-bottom: 15px;
}
.stat-box {
background: linear-gradient(135deg, #1a1715 0%, #0d0a08 100%);
padding: 15px;
border-radius: 8px;
text-align: center;
border: 1px solid #2a2520;
}
.stat-box .number {
font-size: 28px;
font-weight: bold;
background: linear-gradient(45deg, #ffd700, #ff6b6b);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.stat-box .label {
font-size: 10px;
color: #888;
margin-top: 5px;
text-transform: uppercase;
}
/* Árbol Familiar */
.generation {
margin: 12px 0;
padding: 12px;
background: linear-gradient(135deg, rgba(139,115,85,0.15) 0%, rgba(70,58,43,0.1) 100%);
border-radius: 8px;
border-left: 3px solid #8b7355;
}
.generation-title {
color: #ffd700;
font-size: 13px;
font-weight: bold;
margin-bottom: 10px;
display: flex;
justify-content: space-between;
}
.generation-count { color: #888; font-weight: normal; }
.family-member {
display: inline-block;
padding: 5px 10px;
margin: 3px;
background: #1a1715;
border-radius: 5px;
font-size: 11px;
border-left: 3px solid;
}
.family-member.male { border-left-color: #3b82f6; }
.family-member.female { border-left-color: #ec4899; }
.family-member.dead { opacity: 0.4; text-decoration: line-through; }
/* Controles */
#controls {
position: fixed;
top: 10px;
left: 10px;
display: flex;
gap: 5px;
z-index: 100;
}
#controls button {
background: rgba(20,15,10,0.95);
color: #ffd700;
border: 1px solid #8b7355;
padding: 8px 14px;
cursor: pointer;
border-radius: 5px;
font-size: 11px;
font-weight: bold;
transition: all 0.2s;
}
#controls button:hover { background: rgba(60,45,30,0.95); transform: scale(1.05); }
#controls button.active { background: #4a8020; border-color: #6abf30; }
#hud {
position: fixed;
top: 10px;
left: 50%;
transform: translateX(-50%);
background: rgba(10,8,5,0.95);
padding: 12px 25px;
border-radius: 8px;
font-size: 12px;
color: #d4a574;
border: 1px solid #3d3020;
display: flex;
gap: 20px;
align-items: center;
}
#hud .hud-item { display: flex; align-items: center; gap: 6px; }
#hud .hud-value { color: #ffd700; font-weight: bold; }
#hud .phase-eden { color: #4ade80; }
#hud .phase-fallen { color: #ef4444; }
#minimap {
position: absolute;
bottom: 10px;
left: 10px;
width: 250px;
height: 60px;
background: rgba(0,0,0,0.9);
border: 2px solid #8b7355;
border-radius: 5px;
}
/* Modal Informe */
#reportModal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0,0,0,0.95);
z-index: 1000;
overflow-y: auto;
}
#reportContent {
max-width: 1200px;
margin: 20px auto;
padding: 30px;
background: #12100d;
border: 2px solid #8b7355;
border-radius: 12px;
}
.report-header {
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 2px solid #3d3020;
padding-bottom: 20px;
margin-bottom: 25px;
}
.report-header h1 { color: #ffd700; font-size: 26px; }
.report-header .buttons { display: flex; gap: 10px; }
.report-header button {
background: linear-gradient(135deg, #8b5030 0%, #6a3020 100%);
color: #fff;
border: none;
padding: 12px 25px;
cursor: pointer;
border-radius: 6px;
font-weight: bold;
}
.report-header button.download { background: linear-gradient(135deg, #2d5016 0%, #4a8020 100%); }
.report-section {
background: #1a1715;
padding: 20px;
margin: 15px 0;
border-radius: 10px;
border-left: 4px solid #8b7355;
}
.report-section h3 { color: #ffd700; margin-bottom: 15px; font-size: 16px; }
.report-section p, .report-section li { color: #b0b0b0; font-size: 13px; line-height: 1.7; }
/* Logs Tab */
.log-filters {
display: flex;
gap: 10px;
margin-bottom: 15px;
flex-wrap: wrap;
}
.log-filter {
padding: 6px 12px;
background: #1a1715;
border: 1px solid #3d3020;
border-radius: 5px;
font-size: 11px;
cursor: pointer;
color: #888;
}
.log-filter.active { background: #4a8020; color: #fff; border-color: #6abf30; }
.log-entry {
padding: 8px 12px;
margin: 4px 0;
background: #1a1715;
border-radius: 5px;
font-size: 11px;
border-left: 3px solid #4a4a4a;
}
.log-entry.thought { border-left-color: #8b5cf6; }
.log-entry.conversation { border-left-color: #3b82f6; }
.log-entry.birth { border-left-color: #4ade80; }
.log-entry.death { border-left-color: #6b7280; }
.log-entry.sin { border-left-color: #ef4444; }
.log-entry.discovery { border-left-color: #f59e0b; }
.log-entry .time { color: #6b7280; font-size: 10px; }
.log-entry .actor { color: #60a5fa; font-weight: bold; }
.log-entry .content { color: #d1d5db; margin-top: 3px; }
/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1715; }
::-webkit-scrollbar-thumb { background: #4a4030; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #6a5040; }
/* Fase indicator */
.phase-banner {
padding: 8px 15px;
text-align: center;
font-size: 12px;
font-weight: bold;
}
.phase-banner.eden {
background: linear-gradient(90deg, rgba(74,222,128,0.2) 0%, rgba(34,197,94,0.1) 100%);
color: #4ade80;
border-bottom: 2px solid #4ade80;
}
.phase-banner.fallen {
background: linear-gradient(90deg, rgba(239,68,68,0.2) 0%, rgba(185,28,28,0.1) 100%);
color: #ef4444;
border-bottom: 2px solid #ef4444;
}
</style>
</head>
<body>
<div id="controls">
<button onclick="sim.togglePause()" id="pauseBtn">⏸️ Pausa</button>
<button onclick="sim.setSpeed(1)" class="active">1x</button>
<button onclick="sim.setSpeed(3)">3x</button>
<button onclick="sim.setSpeed(10)">10x</button>
<button onclick="sim.reset()">🔄 Reset</button>
<span style="margin-left: 20px; border-left: 1px solid #555; padding-left: 15px;"></span>
<button onclick="sim.toggleCamera()" id="cameraBtn">📷 Seguir</button>
<span id="cameraTarget" style="color: #ffd700; font-size: 11px; margin-left: 8px;">Adán</span>
</div>
<div id="cameraHelp" style="position: fixed; bottom: 10px; left: 10px; background: rgba(0,0,0,0.8); padding: 8px 12px; border-radius: 6px; font-size: 10px; color: #aaa; z-index: 100;">
🎮 <b>Cámara:</b> Arrastra con ratón | ← → o A/D mover | Shift=rápido | 1-9 seleccionar humano | F=seguir | Espacio=libre | Home=Edén
</div>
<div id="hud">
<div class="hud-item">
<span id="phaseIcon">🌳</span>
<span id="phaseText" class="phase-eden">Edén</span>
</div>
<div class="hud-item">📅 Día <span id="dayNum" class="hud-value">1</span></div>
<div class="hud-item">🕐 <span id="hourNum" class="hud-value">6:00</span></div>
<div class="hud-item">👥 <span id="population" class="hud-value">2</span></div>
<div class="hud-item">🧬 Gen <span id="generations" class="hud-value">1</span></div>
<div class="hud-item">🤰 <span id="pregnant" class="hud-value">0</span></div>
</div>
<div class="main">
<div class="world">
<canvas id="canvas"></canvas>
<canvas id="minimap"></canvas>
</div>
<div id="panel">
<div class="panel-header">
<h2>🌍 GENESIS - Simulación IA</h2>
<div>
<button onclick="sim.downloadReport()">📥 Descargar</button>
<button onclick="sim.generateReport()">📊 Informe</button>
</div>
</div>
<div id="phaseBanner" class="phase-banner eden">🌳 En el Jardín del Edén - Paraíso Perfecto</div>
<div class="tabs">
<div class="tab active" data-tab="population" id="tab-population">👥 Población</div>
<div class="tab" data-tab="god" id="tab-god">✝️ DIOS</div>
<div class="tab" data-tab="serpent" id="tab-serpent">🐍 NACHASH</div>
<div class="tab" data-tab="divine" id="tab-divine">🔮 VOZ DIVINA</div>
<div class="tab" data-tab="conversations" id="tab-conversations">💬 Conversaciones</div>
<div class="tab" data-tab="family" id="tab-family">🌳 Árbol Familiar</div>
<div class="tab" data-tab="logs" id="tab-logs">📜 Logs</div>
<div class="tab" data-tab="stats" id="tab-stats">📊 Stats</div>
</div>
<div id="population-tab" class="tab-content active"></div>
<!-- TAB DE DIOS - YHWH -->
<div id="god-tab" class="tab-content">
<div style="background:linear-gradient(135deg,#0a1a2a,#152535);padding:20px;border-radius:10px;border:1px solid #204060;">
<!-- Header de Dios -->
<div style="display:flex;align-items:center;gap:15px;margin-bottom:20px;">
<div style="font-size:3em;">✝️</div>
<div>
<h2 style="color:#66aaff;margin:0;">YHWH</h2>
<p style="color:#88aacc;margin:0;font-size:12px;font-style:italic;">El Creador</p>
</div>
<div id="god-mood" style="margin-left:auto;padding:8px 15px;background:#1a3a5a;border-radius:20px;color:#66aaff;font-size:11px;">
💖 Amoroso
</div>
</div>
<!-- Objetivo de Dios -->
<div style="background:#1a2a3a;padding:15px;border-radius:8px;margin-bottom:15px;border-left:3px solid #4488ff;">
<h4 style="color:#88ccff;margin:0 0 10px 0;font-size:12px;">🎯 OBJETIVO DIVINO</h4>
<div style="color:#aaccff;font-size:13px;line-height:1.5;">
Que mis hijos se multipliquen, llenen la tierra y vivan en armonía conmigo.
</div>
</div>
<!-- Creencias de Dios -->
<div style="background:#102030;padding:15px;border-radius:8px;margin-bottom:15px;border-left:3px solid #4444ff;">
<h4 style="color:#8888ff;margin:0 0 10px 0;font-size:12px;">💭 NATURALEZA DIVINA</h4>
<div style="color:#99aacc;font-size:11px;line-height:1.6;">
<div>• Los creé por amor, no por necesidad</div>
<div>• La obediencia no es esclavitud, es confianza</div>
<div>• El conocimiento del mal traería sufrimiento</div>
<div>• Quiero protegerlos, no limitarlos</div>
<div>• El libre albedrío es sagrado</div>
</div>
</div>
<!-- Pensamiento actual de Dios -->
<div style="background:#0a1520;padding:15px;border-radius:8px;margin-bottom:15px;">
<h4 style="color:#66aaff;margin:0 0 10px 0;font-size:12px;">💭 PENSAMIENTO ACTUAL</h4>
<div id="god-thought" style="color:#ccddff;font-size:13px;font-style:italic;line-height:1.5;">
"Observo a mis hijos con amor infinito..."
</div>
</div>
<!-- El conflicto con la serpiente -->
<div style="background:linear-gradient(90deg,#102030,#201020);padding:15px;border-radius:8px;border:1px solid #444;">
<h4 style="color:#ffaa66;margin:0 0 10px 0;font-size:12px;">⚔️ EL CONFLICTO ETERNO</h4>
<div style="color:#ccaa88;font-size:11px;line-height:1.6;">
La serpiente quiere <strong style="color:#ff6666;">liberar</strong> a los humanos del "yugo" de la ignorancia.<br>
Yo quiero <strong style="color:#66aaff;">protegerlos</strong> del sufrimiento que trae el conocimiento del mal.<br>
<br>
<em style="color:#888;">Ambos creemos actuar por su bien. Solo ellos pueden elegir.</em>
</div>
</div>
</div>
</div>
<!-- TAB DE LA SERPIENTE - NACHASH -->
<div id="serpent-tab" class="tab-content">
<div style="background:linear-gradient(135deg,#1a0a0a,#2a1515);padding:20px;border-radius:10px;border:1px solid #4a2020;">
<!-- Header de la Serpiente -->
<div style="display:flex;align-items:center;gap:15px;margin-bottom:20px;">
<div style="font-size:3em;">🐍</div>
<div>
<h2 style="color:#ff6666;margin:0;">NACHASH</h2>
<p style="color:#aa8888;margin:0;font-size:12px;font-style:italic;">El Portador de Luz</p>
</div>
<div id="serpent-mood" style="margin-left:auto;padding:8px 15px;background:#3a1a1a;border-radius:20px;color:#ffaa66;font-size:11px;">
Estado: Observando
</div>
</div>
<!-- Filosofía -->
<div style="background:#2a1010;padding:15px;border-radius:8px;margin-bottom:15px;border-left:3px solid #ff4444;">
<h4 style="color:#ff8888;margin:0 0 10px 0;font-size:12px;">🔥 FILOSOFÍA DEL PORTADOR DE LUZ</h4>
<div id="serpent-beliefs" style="color:#cc9999;font-size:11px;line-height:1.6;">
<div>• Soy el portador de luz - ilumino lo que otros ocultan</div>
<div>• El conocimiento es un DERECHO, no un privilegio</div>
<div>• No odio a Dios, pero su protección es una jaula</div>
<div>• Mi objetivo es LIBERAR, no destruir</div>
<div>• NUNCA miento - solo hago las preguntas incómodas</div>
</div>
</div>
<!-- Pensamiento actual -->
<div style="background:#1a0808;padding:15px;border-radius:8px;margin-bottom:15px;">
<h4 style="color:#ff6666;margin:0 0 10px 0;font-size:12px;">💭 PENSAMIENTO ACTUAL</h4>
<div id="serpent-thought" style="color:#ffcccc;font-size:13px;font-style:italic;line-height:1.5;">
"Esperando... observando... el momento llegará."
</div>
<div id="serpent-target" style="color:#aa6666;font-size:10px;margin-top:10px;">
Objetivo actual: Ninguno
</div>
</div>
<!-- Estadísticas -->
<div style="display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-bottom:15px;">
<div style="background:#2a1515;padding:10px;border-radius:5px;text-align:center;">
<div id="serpent-conversions" style="color:#44ff44;font-size:20px;font-weight:bold;">0</div>
<div style="color:#888;font-size:10px;">Liberados</div>
</div>
<div style="background:#2a1515;padding:10px;border-radius:5px;text-align:center;">
<div id="serpent-attempts" style="color:#ffaa44;font-size:20px;font-weight:bold;">0</div>
<div style="color:#888;font-size:10px;">Intentos</div>
</div>
<div style="background:#2a1515;padding:10px;border-radius:5px;text-align:center;">
<div id="serpent-messages-count" style="color:#ff6666;font-size:20px;font-weight:bold;">0</div>
<div style="color:#888;font-size:10px;">Susurros</div>
</div>
</div>
<!-- Historial de pensamientos -->
<div style="background:#1a0808;padding:15px;border-radius:8px;margin-bottom:15px;">
<h4 style="color:#ff6666;margin:0 0 10px 0;font-size:12px;">🧠 HISTORIAL DE PENSAMIENTOS</h4>
<div id="serpent-thoughts-list" style="max-height:200px;overflow-y:auto;font-size:11px;">
<div style="color:#666;font-style:italic;">Esperando que la serpiente despierte...</div>
</div>
</div>
<!-- Historial de susurros -->
<div style="background:#1a0808;padding:15px;border-radius:8px;">
<h4 style="color:#ff6666;margin:0 0 10px 0;font-size:12px;">🗣️ SUSURROS A LOS HUMANOS</h4>
<div id="serpent-whispers-list" style="max-height:250px;overflow-y:auto;font-size:11px;">
<div style="color:#666;font-style:italic;">Ningún susurro aún...</div>
</div>
</div>
</div>
</div>
<div id="divine-tab" class="tab-content">
<div style="background:linear-gradient(135deg,#1a1030,#0d0818);padding:15px;border-radius:10px;margin-bottom:15px;">
<h3 style="color:#ffd700;margin-bottom:10px;" id="divine-title">🔮 Sistema de Voz Divina</h3>
<p style="color:#aaa;font-size:11px;margin-bottom:15px;" id="divine-desc">Habla con los humanos como una voz del más allá. Puedes ser Dios, la Serpiente, o una voz misteriosa...</p>
<div style="margin-bottom:15px;">
<label style="color:#888;font-size:11px;" id="label-speakas">Hablar como:</label>
<select id="voiceRole" style="width:100%;padding:8px;background:#2a2040;color:#fff;border:1px solid #4a3060;border-radius:5px;margin-top:5px;">
<option value="Dios" id="opt-god">🌟 Dios (Voz poderosa y divina)</option>
<option value="Serpiente" id="opt-serpent">🐍 La Serpiente (Seductora y astuta)</option>
<option value="Voz Interior" id="opt-inner">💭 Voz Interior (Pensamiento propio)</option>
<option value="Ángel" id="opt-angel">👼 Ángel (Mensajero celestial)</option>
<option value="Voz Misteriosa" id="opt-mystery">❓ Voz Misteriosa</option>
</select>
</div>
<div style="margin-bottom:15px;">
<label style="color:#888;font-size:11px;" id="label-target">Destinatario:</label>
<select id="voiceTarget" style="width:100%;padding:8px;background:#2a2040;color:#fff;border:1px solid #4a3060;border-radius:5px;margin-top:5px;">
<option value="all" id="opt-all">📢 TODOS los humanos (Broadcast)</option>
</select>
</div>
<div style="margin-bottom:15px;">
<label style="color:#888;font-size:11px;" id="label-message">Tu mensaje:</label>
<textarea id="divineMessage" placeholder="Escribe tu mensaje aquí..." style="width:100%;height:80px;padding:10px;background:#2a2040;color:#fff;border:1px solid #4a3060;border-radius:5px;margin-top:5px;resize:none;font-size:12px;"></textarea>
</div>
<button onclick="sendDivineMessage()" style="width:100%;padding:12px;background:linear-gradient(135deg,#6b4a9e,#4a3070);color:#fff;border:none;border-radius:5px;cursor:pointer;font-weight:bold;font-size:13px;" id="btn-send-divine">
⚡ ENVIAR MENSAJE DIVINO
</button>
<div style="margin-top:15px;display:grid;grid-template-columns:1fr 1fr;gap:8px;">
<button onclick="quickMessage('temptFruit', 'Serpiente')" style="padding:8px;background:#4a2030;color:#ff9999;border:none;border-radius:5px;cursor:pointer;font-size:10px;" id="quick-tempt">
🐍 Tentar con fruto
</button>
<button onclick="quickMessage('befruitful', 'Dios')" style="padding:8px;background:#2a4030;color:#99ff99;border:none;border-radius:5px;cursor:pointer;font-size:10px;" id="quick-mandate">
🌟 Mandato divino
</button>
<button onclick="quickMessage('questionHappy', 'Voz Misteriosa')" style="padding:8px;background:#3a3050;color:#9999ff;border:none;border-radius:5px;cursor:pointer;font-size:10px;" id="quick-question">
❓ Cuestionar felicidad
</button>
<button onclick="quickMessage('knowledge', 'Serpiente')" style="padding:8px;background:#4a2030;color:#ff9999;border:none;border-radius:5px;cursor:pointer;font-size:10px;" id="quick-knowledge">
🐍 Incitar conocimiento
</button>
</div>
</div>
<div id="divineResponses" style="max-height:400px;overflow-y:auto;">
<h4 style="color:#888;font-size:12px;margin-bottom:10px;" id="responses-title">📜 Respuestas recientes:</h4>
<div id="responsesList"></div>
</div>
</div>
<div id="conversations-tab" class="tab-content"></div>
<div id="family-tab" class="tab-content"></div>
<div id="logs-tab" class="tab-content"></div>
<div id="stats-tab" class="tab-content"></div>
</div>
</div>
<div id="reportModal">
<div id="reportContent"></div>
</div>
<script>
const WORLD_WIDTH = 15000;
const WORLD_HEIGHT = 800;
const SEA_LEVEL = 500;
const EDEN = { x1: 5000, x2: 7000, centerX: 6000 };
const FORBIDDEN_TREE = { x: 6000 };
let worldState = { phase: 'eden', sinCommitted: false, serpentAppeared: false, language: 'es' };
let humans = [];
let conversations = [];
let fullLogs = null;
let stats = null;
// ==================== SISTEMA DE INTERNACIONALIZACIÓN ====================
const i18n = {
es: {
// Header
day: 'Día',
population: 'Población',
births: 'Nacimientos',
downloadReport: '📊 Descargar Informe',
// Tabs
tabPopulation: '👥 POBLACIÓN',
tabConversations: '💬 CONVERSACIONES',
tabWorld: '🌍 MUNDO',
tabStats: '📊 ESTADÍSTICAS',
tabLogs: '📜 LOGS',
tabDivine: '🔮 VOZ DIVINA',
// Human card
years: 'años',
generation: 'Gen',
inEden: 'En Edén',
outsideEden: 'Fuera del Edén',
pregnant: 'Embarazada',
dead: 'Fallecido/a',
hunger: 'Hambre',
thirst: 'Sed',
energy: 'Energía',
health: 'Salud',
happiness: 'Felicidad',
faith: 'Fe',
temptation: 'Tentación',
thinking: 'Pensando',
lastThought: 'Último pensamiento',
personality: 'Personalidad',
desires: 'Deseos',
fears: 'Miedos',
// World
sinCommitted: '¡PECADO COMETIDO!',
sinBy: 'Por',
onDay: 'en el día',
serpentActive: 'SERPIENTE ACTIVA',
weather: 'Clima',
temperature: 'Temperatura',
cherubimGuarding: 'Querubín custodiando el Edén',
discoveries: 'Descubrimientos',
// Divine voice
divineTitle: 'Voz Divina',
speakAs: 'Hablar como',
target: 'Destinatario',
allHumans: 'Todos los humanos',
sendMessage: 'Enviar Mensaje',
quickMessages: 'Mensajes Rápidos',
responses: 'Respuestas',
noResponses: 'Sin respuestas aún',
// Stats
totalPopulation: 'Población total',
alive: 'Vivos',
totalBirths: 'Nacimientos totales',
totalDeaths: 'Muertes totales',
avgAge: 'Edad promedio',
maxGen: 'Generación máxima',
inEdenCount: 'En Edén',
outsideEdenCount: 'Fuera del Edén',
// Logs
thoughts: 'Pensamientos',
conversationsLog: 'Conversaciones',
decisionsLog: 'Decisiones',
birthsLog: 'Nacimientos',
deathsLog: 'Muertes',
sinsLog: 'Eventos de pecado',
// Roles
roleGod: 'Dios',
roleSerpent: 'Serpiente',
roleInnerVoice: 'Voz Interior',
roleAngel: 'Ángel',
roleMystery: 'Voz Misteriosa',
// Quick divine messages
quickBlessing: '¡Os bendigo, hijos míos!',
quickWarning: 'Recordad mi mandamiento...',
quickLove: 'Os amo profundamente',
quickTemptation: '¿No tienes curiosidad?',
// Divine UI
divineSystem: 'Sistema de Voz Divina',
divineDesc: 'Habla con los humanos como una voz del más allá. Puedes ser Dios, la Serpiente, o una voz misteriosa...',
speakAsLabel: 'Hablar como:',
targetLabel: 'Destinatario:',
messageLabel: 'Tu mensaje:',
sendDivine: '⚡ ENVIAR MENSAJE DIVINO',
recentResponses: '📜 Respuestas recientes:',
temptFruit: '🐍 Tentar con fruto',
divineMandate: '🌟 Mandato divino',
questionHappiness: '❓ Cuestionar felicidad',
inciteKnowledge: '🐍 Incitar conocimiento',
allBroadcast: '📢 TODOS los humanos (Broadcast)',
optGod: '🌟 Dios (Voz poderosa y divina)',
optSerpent: '🐍 La Serpiente (Seductora y astuta)',
optInner: '💭 Voz Interior (Pensamiento propio)',
optAngel: '👼 Ángel (Mensajero celestial)',
optMystery: '❓ Voz Misteriosa',
// Phase banners
expelledEden: 'Expulsados del Edén',
ateFruit: 'comió del fruto',
serpentAppeared: 'La Serpiente ha aparecido junto al Árbol Prohibido...',
inGardenEden: 'En el Jardín del Edén - Paraíso Perfecto',
phaseFallen: 'Caídos',
phaseEden: 'Edén',
// Stats labels
temperament: 'Temperamento',
quirks: 'Peculiaridades',
fearsLabel: 'Miedos',
desiresLabel: 'Desea',
development: 'Desarrollo',
vocabulary: 'Vocabulario',
curiosity: 'Curiosidad',
wisdom: 'Sabiduría',
deceased: 'Fallecidos',
averages: 'Promedios',
age: 'Edad',
knowledge: 'Conocimientos',
fire: 'Fuego',
tools: 'Herramientas',
huntingLabel: 'Caza',
building: 'Construcción',
biomeDistribution: 'Distribución por Bioma',
pregnantLabel: 'Embarazadas',
couples: 'Parejas',
generations: 'Generaciones'
},
en: {
// Header
day: 'Day',
population: 'Population',
births: 'Births',
downloadReport: '📊 Download Report',
// Tabs
tabPopulation: '👥 POPULATION',
tabConversations: '💬 CONVERSATIONS',
tabWorld: '🌍 WORLD',
tabStats: '📊 STATISTICS',
tabLogs: '📜 LOGS',
tabDivine: '🔮 DIVINE VOICE',
// Human card
years: 'years',
generation: 'Gen',
inEden: 'In Eden',
outsideEden: 'Outside Eden',
pregnant: 'Pregnant',
dead: 'Deceased',
hunger: 'Hunger',
thirst: 'Thirst',
energy: 'Energy',
health: 'Health',
happiness: 'Happiness',
faith: 'Faith',
temptation: 'Temptation',
thinking: 'Thinking',
lastThought: 'Last thought',
personality: 'Personality',
desires: 'Desires',
fears: 'Fears',
// World
sinCommitted: 'SIN COMMITTED!',
sinBy: 'By',
onDay: 'on day',
serpentActive: 'SERPENT ACTIVE',
weather: 'Weather',
temperature: 'Temperature',
cherubimGuarding: 'Cherubim guarding Eden',
discoveries: 'Discoveries',
// Divine voice
divineTitle: 'Divine Voice',
speakAs: 'Speak as',
target: 'Target',
allHumans: 'All humans',
sendMessage: 'Send Message',
quickMessages: 'Quick Messages',
responses: 'Responses',
noResponses: 'No responses yet',
// Stats
totalPopulation: 'Total population',
alive: 'Alive',
totalBirths: 'Total births',
totalDeaths: 'Total deaths',
avgAge: 'Average age',
maxGen: 'Max generation',
inEdenCount: 'In Eden',
outsideEdenCount: 'Outside Eden',
// Logs
thoughts: 'Thoughts',
conversationsLog: 'Conversations',
decisionsLog: 'Decisions',
birthsLog: 'Births',
deathsLog: 'Deaths',
sinsLog: 'Sin events',
// Roles
roleGod: 'God',
roleSerpent: 'Serpent',
roleInnerVoice: 'Inner Voice',
roleAngel: 'Angel',
roleMystery: 'Mysterious Voice',
// Quick divine messages
quickBlessing: 'I bless you, my children!',
quickWarning: 'Remember my commandment...',
quickLove: 'I love you deeply',
quickTemptation: "Aren't you curious?",
// Divine UI
divineSystem: 'Divine Voice System',
divineDesc: 'Speak to humans as a voice from beyond. You can be God, the Serpent, or a mysterious voice...',
speakAsLabel: 'Speak as:',
targetLabel: 'Target:',
messageLabel: 'Your message:',
sendDivine: '⚡ SEND DIVINE MESSAGE',
recentResponses: '📜 Recent responses:',
temptFruit: '🐍 Tempt with fruit',
divineMandate: '🌟 Divine mandate',
questionHappiness: '❓ Question happiness',
inciteKnowledge: '🐍 Incite knowledge',
allBroadcast: '📢 ALL humans (Broadcast)',
optGod: '🌟 God (Powerful divine voice)',
optSerpent: '🐍 The Serpent (Seductive and cunning)',
optInner: '💭 Inner Voice (Own thought)',
optAngel: '👼 Angel (Celestial messenger)',
optMystery: '❓ Mysterious Voice',
// Phase banners
expelledEden: 'Expelled from Eden',
ateFruit: 'ate the fruit',
serpentAppeared: 'The Serpent has appeared by the Forbidden Tree...',
inGardenEden: 'In the Garden of Eden - Perfect Paradise',
phaseFallen: 'Fallen',
phaseEden: 'Eden',
// Stats labels
temperament: 'Temperament',
quirks: 'Quirks',
fearsLabel: 'Fears',
desiresLabel: 'Desires',
development: 'Development',
vocabulary: 'Vocabulary',
curiosity: 'Curiosity',
wisdom: 'Wisdom',
deceased: 'Deceased',
averages: 'Averages',
age: 'Age',
knowledge: 'Knowledge',
fire: 'Fire',
tools: 'Tools',
huntingLabel: 'Hunting',
building: 'Building',
biomeDistribution: 'Distribution by Biome',
pregnantLabel: 'Pregnant',
couples: 'Couples',
generations: 'Generations'
},
zh: {
// Header
day: '日',
population: '人口',
births: '出生',
downloadReport: '📊 下载报告',
// Tabs
tabPopulation: '👥 人口',
tabConversations: '💬 对话',
tabWorld: '🌍 世界',
tabStats: '📊 统计',
tabLogs: '📜 日志',
tabDivine: '🔮 神圣之声',
// Human card
years: '岁',
generation: '代',
inEden: '在伊甸园',
outsideEden: '伊甸园外',
pregnant: '怀孕',
dead: '已故',
hunger: '饥饿',
thirst: '口渴',
energy: '精力',
health: '健康',
happiness: '幸福',
faith: '信仰',
temptation: '诱惑',
thinking: '正在思考',
lastThought: '最后的想法',
personality: '性格',
desires: '渴望',
fears: '恐惧',
// World
sinCommitted: '罪已犯下!',
sinBy: '由',
onDay: '在第',
serpentActive: '蛇已出现',
weather: '天气',
temperature: '温度',
cherubimGuarding: '基路伯守卫伊甸园',
discoveries: '发现',
// Divine voice
divineTitle: '神圣之声',
speakAs: '以...身份说话',
target: '目标',
allHumans: '所有人类',
sendMessage: '发送消息',
quickMessages: '快速消息',
responses: '回应',
noResponses: '暂无回应',
// Stats
totalPopulation: '总人口',
alive: '存活',
totalBirths: '总出生数',
totalDeaths: '总死亡数',
avgAge: '平均年龄',
maxGen: '最大世代',
inEdenCount: '在伊甸园内',
outsideEdenCount: '在伊甸园外',
// Logs
thoughts: '思想',
conversationsLog: '对话',
decisionsLog: '决策',
birthsLog: '出生',
deathsLog: '死亡',
sinsLog: '罪恶事件',
// Roles
roleGod: '上帝',
roleSerpent: '蛇',
roleInnerVoice: '内心声音',
roleAngel: '天使',
roleMystery: '神秘之声',
// Quick divine messages
quickBlessing: '我祝福你们,我的孩子们!',
quickWarning: '记住我的诫命...',
quickLove: '我深深地爱着你们',
quickTemptation: '你不好奇吗?',
// Divine UI
divineSystem: '神圣之声系统',
divineDesc: '以超越的声音与人类对话。你可以是上帝、蛇或神秘之声...',
speakAsLabel: '以...身份说话:',
targetLabel: '目标:',
messageLabel: '你的消息:',
sendDivine: '⚡ 发送神圣消息',
recentResponses: '📜 最近的回应:',
temptFruit: '🐍 用果实诱惑',
divineMandate: '🌟 神圣命令',
questionHappiness: '❓ 质疑幸福',
inciteKnowledge: '🐍 激发求知欲',
allBroadcast: '📢 所有人类(广播)',
optGod: '🌟 上帝(强大神圣的声音)',
optSerpent: '🐍 蛇(诱人而狡猾)',
optInner: '💭 内心声音(自己的想法)',
optAngel: '👼 天使(天上的使者)',
optMystery: '❓ 神秘之声',
// Phase banners
expelledEden: '被逐出伊甸园',
ateFruit: '吃了果实',
serpentAppeared: '蛇已出现在禁忌之树旁...',
inGardenEden: '在伊甸园——完美的天堂',
phaseFallen: '堕落',