Repository navigation
Expand file tree
/
Copy pathprogress.html
More file actions
1858 lines (1666 loc) · 104 KB
/
Copy pathprogress.html
File metadata and controls
1858 lines (1666 loc) · 104 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="en" data-theme="dark">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="SyntaxArena — Player Career Analytics, Topic Mastery, Language Performance, and Trophy Room.">
<title>SyntaxArena — Career Progression & Learning Analytics</title>
<link rel="stylesheet" href="css/tokens.css">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/layout.css">
<link rel="stylesheet" href="css/components.css">
<link rel="stylesheet" href="css/animations.css">
<link rel="stylesheet" href="css/battlestation.css">
<link rel="stylesheet" href="css/trophy-vault.css">
<link rel="stylesheet" href="css/responsive.css">
<link rel="stylesheet" href="css/auth.css">
</head>
<body data-page="progress">
<a href="#main-content" class="skip-link">Skip to main content</a>
<!-- Master Embedded SVG Icons Sprite -->
<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
<symbol id="icon-code" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="16 18 22 12 16 6"></polyline><polyline points="8 6 2 12 8 18"></polyline>
</symbol>
<symbol id="icon-gamepad" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<line x1="6" x2="10" y1="11" y2="11"></line><line x1="8" x2="8" y1="9" y2="13"></line>
<line x1="15" x2="15.01" y1="12" y2="12"></line><line x1="18" x2="18.01" y1="10" y2="10"></line>
<path d="M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z"></path>
</symbol>
<symbol id="icon-trophy" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M6 9H4.5a2.5 2.5 0 0 1 0-5H6"></path><path d="M18 9h1.5a2.5 2.5 0 0 0 0-5H18"></path>
<path d="M4 22h16"></path><path d="M10 14.66V17c0 .55-.47.98-.97 1.21C7.85 18.75 7 20.24 7 22"></path>
<path d="M14 14.66V17c0 .55.47.98.97 1.21C16.15 18.75 17 20.24 17 22"></path>
<path d="M18 2H6v7a6 6 0 0 0 12 0V2Z"></path>
</symbol>
<symbol id="icon-chart" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M3 3v18h18"></path><path d="m19 9-5 5-4-4-3 3"></path>
</symbol>
<symbol id="icon-settings" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="3"></circle>
<path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-2 2 2 2 0 0 1-2-2v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83 0 2 2 0 0 1 0-2.83l.06-.06a1.65 1.65 0 0 0 .33-1.82 1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1-2-2 2 2 0 0 1 2-2h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 0-2.83 2 2 0 0 1 2.83 0l.06.06a1.65 1.65 0 0 0 1.82.33H9a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z"></path>
</symbol>
<symbol id="icon-sun" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="5"></circle><line x1="12" y1="1" x2="12" y2="3"></line><line x1="12" y1="21" x2="12" y2="23"></line>
<line x1="4.22" y1="4.22" x2="5.64" y2="5.64"></line><line x1="18.36" y1="18.36" x2="19.78" y2="19.78"></line>
<line x1="1" y1="12" x2="3" y2="12"></line><line x1="21" y1="12" x2="23" y2="12"></line>
<line x1="4.22" y1="19.78" x2="5.64" y2="18.36"></line><line x1="18.36" y1="5.64" x2="19.78" y2="4.22"></line>
</symbol>
<symbol id="icon-moon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"></path>
</symbol>
<symbol id="icon-volume" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>
<path d="M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"></path>
</symbol>
<symbol id="icon-volume-x" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polygon points="11 5 6 9 2 9 2 15 6 15 11 19 11 5"></polygon>
<line x1="23" y1="9" x2="17" y2="15"></line><line x1="17" y1="9" x2="23" y2="15"></line>
</symbol>
<symbol id="icon-zap" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polygon points="13 2 3 14 12 14 11 22 21 10 12 10 13 2"></polygon>
</symbol>
<symbol id="icon-bulb" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5"></path>
<path d="M9 18h6"></path><path d="M10 22h4"></path>
</symbol>
<symbol id="icon-cpu" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<rect x="4" y="4" width="16" height="16" rx="2" ry="2"></rect>
<rect x="9" y="9" width="6" height="6"></rect>
<line x1="9" y1="1" x2="9" y2="4"></line><line x1="15" y1="1" x2="15" y2="4"></line>
<line x1="9" y1="20" x2="9" y2="23"></line><line x1="15" y1="20" x2="15" y2="23"></line>
<line x1="20" y1="9" x2="23" y2="9"></line><line x1="20" y1="14" x2="23" y2="14"></line>
<line x1="1" y1="9" x2="4" y2="9"></line><line x1="1" y1="14" x2="4" y2="14"></line>
</symbol>
<symbol id="icon-menu" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line>
</symbol>
<symbol id="icon-shield" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"></path>
</symbol>
<symbol id="icon-heart" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z"></path>
</symbol>
<symbol id="icon-flame" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M8.5 14.5A2.5 2.5 0 0 0 11 12c0-1.38-.5-2-1-3-1.072-2.143-.224-4.054 2-6 .5 2.5 2 4.9 4 6.5 2 1.6 3 3.5 3 5.5a7 7 0 1 1-14 0c0-1.153.433-2.294 1-3a2.5 2.5 0 0 0 2.5 2.5z"></path>
</symbol>
<symbol id="icon-clock" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"></circle><polyline points="12 6 12 12 16 14"></polyline>
</symbol>
<symbol id="icon-check" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="20 6 9 17 4 12"></polyline>
</symbol>
<symbol id="icon-x" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line>
</symbol>
<symbol id="icon-play" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polygon points="5 3 19 12 5 21 5 3"></polygon>
</symbol>
<symbol id="icon-terminal" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<polyline points="4 17 10 11 4 5"></polyline><line x1="12" y1="19" x2="20" y2="19"></line>
</symbol>
<symbol id="icon-book" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="M4 19.5A2.5 2.5 0 0 1 6.5 17H20"></path><path d="M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z"></path>
</symbol>
<symbol id="icon-info" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="12" cy="12" r="10"></circle><line x1="12" y1="16" x2="12" y2="12"></line><line x1="12" y1="8" x2="12.01" y2="8"></line>
</symbol>
</svg>
<!-- Master App Shell (Item 16) -->
<div class="app-shell" id="app-shell">
<!-- Collapsible Side Navigation Bar (Item 16) -->
<aside class="app-sidebar is-collapsed" id="app-sidebar" aria-label="Main Navigation">
<!-- Sidebar Header: Brand & Collapse Toggle -->
<div class="sidebar-header">
<a href="index.html" class="sidebar-brand" aria-label="SyntaxArena Home">
<span class="brand-badge" style="width: 34px; height: 34px;">
<img src="assets/images/logo.svg" width="20" height="20" alt="SyntaxArena Logo">
</span>
<span class="sidebar-brand-text">SyntaxArena</span>
</a>
<button type="button" class="btn-sidebar-toggle" id="btn-sidebar-toggle" title="Toggle Sidebar (Ctrl+B)" aria-label="Toggle Navigation Sidebar">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg>
</button>
</div>
<!-- Primary Navigation Links (App Nav) -->
<nav class="app-nav sidebar-nav" aria-label="Sidebar Navigation">
<a href="index.html" class="nav-link sidebar-link" data-tooltip="Hub">
<span class="sidebar-icon"><svg class="nav-icon"><use href="#icon-code"></use></svg></span>
<span class="sidebar-label">Hub</span>
</a>
<a href="game.html" class="nav-link sidebar-link" data-tooltip="Arena">
<span class="sidebar-icon"><svg class="nav-icon"><use href="#icon-gamepad"></use></svg></span>
<span class="sidebar-label">Arena</span>
</a>
<a href="memory-games.html" class="nav-link sidebar-link" data-tooltip="Memory Lab">
<span class="sidebar-icon"><svg class="nav-icon"><use href="#icon-zap"></use></svg></span>
<span class="sidebar-label">Memory Lab</span>
</a>
<a href="learn.html" class="nav-link sidebar-link" data-tooltip="Academy">
<span class="sidebar-icon"><svg class="nav-icon"><use href="#icon-bulb"></use></svg></span>
<span class="sidebar-label">Academy</span>
</a>
<a href="sandbox.html" class="nav-link sidebar-link" data-tooltip="Sandbox">
<span class="sidebar-icon"><svg class="nav-icon"><use href="#icon-code"></use></svg></span>
<span class="sidebar-label">Sandbox</span>
</a>
<a href="progress.html" class="nav-link sidebar-link" data-tooltip="Career" aria-current="page">
<span class="sidebar-icon"><svg class="nav-icon"><use href="#icon-trophy"></use></svg></span>
<span class="sidebar-label">Career</span>
</a>
<a href="results.html" class="nav-link sidebar-link" data-tooltip="Results">
<span class="sidebar-icon"><svg class="nav-icon"><use href="#icon-chart"></use></svg></span>
<span class="sidebar-label">Results</span>
</a>
</nav>
<!-- Sidebar Footer: Settings, Legal, Auth Profile -->
<div class="sidebar-footer">
<a href="settings.html" class="sidebar-link" data-tooltip="Settings">
<span class="sidebar-icon"><svg class="nav-icon"><use href="#icon-settings"></use></svg></span>
<span class="sidebar-label">Settings</span>
</a>
<a href="settings.html#privacy" class="sidebar-link" data-tooltip="Privacy Policy">
<span class="sidebar-icon"><svg class="nav-icon"><use href="#icon-shield"></use></svg></span>
<span class="sidebar-label">Privacy</span>
</a>
<a href="settings.html#terms" class="sidebar-link" data-tooltip="Terms of Service">
<span class="sidebar-icon"><svg class="nav-icon"><use href="#icon-book"></use></svg></span>
<span class="sidebar-label">Terms</span>
</a>
<div class="sidebar-auth-card" id="sidebar-auth-card" title="Click to open Cloud Sync & Auth">
<img src="assets/images/cyber_fox.svg" width="28" height="28" alt="avatar" id="sidebar-profile-avatar" style="border-radius: 50%; flex-shrink: 0;">
<div class="sidebar-auth-meta">
<span class="sidebar-auth-name" id="sidebar-profile-name">ScriptAdept</span>
<span class="sidebar-auth-status" id="sidebar-profile-rank">
<span class="cloud-sync-dot status-guest"></span>
<span>Local Guest</span>
</span>
</div>
</div>
</div>
</aside>
<!-- Master Viewport Beside Sidebar -->
<div class="app-viewport">
<!-- Sleek Compact Topbar -->
<header class="app-topbar">
<div class="topbar-left">
<button type="button" class="btn-sidebar-toggle" id="btn-sidebar-mobile-toggle" aria-label="Open Navigation Menu">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="3" y1="12" x2="21" y2="12"></line><line x1="3" y1="6" x2="21" y2="6"></line><line x1="3" y1="18" x2="21" y2="18"></line></svg>
</button>
<a href="progress.html" id="header-user-level-badge" class="header-level-pill" title="Player Level & Progression" style="display: none;">
<span class="header-level-tag">Lv.1</span>
<span class="header-xp-rem">250 XP to Lv.2</span>
</a>
</div>
<div class="topbar-right">
<!-- Cloud Sync Status Pill (Item 14) -->
<button type="button" class="cloud-sync-pill" id="btn-open-auth" title="Click to Sign In or Link Cloud Account">
<span class="cloud-sync-dot status-guest"></span>
<span>Guest Mode</span>
</button>
<!-- Quick Action Button -->
<a href="game.html" id="btn-nav-play" class="btn-arcade btn-primary btn-sm" aria-label="Quick launch Battle Arena" style="padding: 0.35rem 0.75rem; font-size: 11px; text-decoration: none;">
⚔️ Play Arena
</a>
<!-- Theme & Sound Toggles -->
<button id="btn-theme-toggle" class="btn-icon-toggle" aria-label="Toggle color theme" title="Toggle color theme">
<svg width="18" height="18" aria-hidden="true"><use href="#icon-sun"></use></svg>
</button>
<button id="btn-sound-toggle" class="btn-icon-toggle" aria-label="Toggle sound effects" title="Toggle sound effects">
<svg width="18" height="18" aria-hidden="true"><use href="#icon-volume"></use></svg>
</button>
<!-- Profile Pill -->
<a href="settings.html" class="profile-pill" aria-label="User profile and settings">
<span class="profile-avatar-mini" aria-hidden="true">
<img src="assets/images/cyber_fox.svg" width="22" height="22" alt="avatar" style="border-radius: 50%;">
</span>
<span class="profile-name">ScriptAdept</span>
</a>
</div>
</header>
<main id="main-content" class="app-main">
<div class="page-container" style="max-width: 1100px;">
<!-- Profile Career Header & XP Progression -->
<section class="card card-raised" style="margin-bottom: 2rem; padding: var(--space-5);" aria-label="Career Rank & XP Progression">
<div style="display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem;">
<div style="display: flex; align-items: center; gap: 1.25rem;">
<div id="prog-avatar-container" style="width: 76px; height: 76px; border-radius: var(--radius-full); overflow: hidden; border: 3px solid var(--color-primary-edge); background-color: var(--color-neutral); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-elevation-card);">
<img id="prog-avatar-img" src="assets/images/cyber_fox.svg" alt="Player Avatar" width="76" height="76">
</div>
<div>
<div style="display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.25rem;">
<h1 id="prog-callsign-heading" style="font-size: var(--text-2xl); margin-bottom: 0;">ScriptAdept</h1>
<span id="prog-level-tag" class="badge badge-cyan">Level 1</span>
</div>
<p id="prog-rank-text" style="margin-bottom: 0.25rem; font-size: var(--text-base); color: var(--text-secondary);">
Rank: <strong id="prog-rank-title" style="color: var(--color-primary);">Script Novice</strong>
</p>
<div id="prog-xp-detail-text" style="font-size: var(--text-xs); color: var(--text-muted); font-family: var(--font-mono);">
0 / 250 XP (250 XP to Level 2)
</div>
</div>
</div>
<div style="display: flex; gap: 0.75rem; align-items: center;">
<a href="settings.html" class="btn-arcade btn-neutral btn-sm">Customize Profile →</a>
<a href="game.html" class="btn-arcade btn-primary btn-sm">Enter Arena →</a>
</div>
</div>
<!-- Accessible XP Progress Bar -->
<div style="margin-top: 1.5rem;">
<div style="display: flex; justify-content: space-between; font-size: var(--text-xs); margin-bottom: 0.35rem;">
<span style="font-weight: 700; color: var(--text-secondary);">PROGRESSION TO NEXT RANK</span>
<span id="prog-xp-percent-label" style="font-family: var(--font-mono); font-weight: 700; color: var(--color-primary);">0%</span>
</div>
<div id="prog-xp-bar-container" class="progress-bar-container" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" aria-label="XP level progression" style="height: 12px;">
<div id="prog-xp-fill" class="progress-bar-fill" style="width: 0%; background: linear-gradient(90deg, var(--color-primary-edge), var(--color-primary));"></div>
</div>
</div>
</section>
<!-- Career Metrics Strip (Compact Single Row, No 2-Row Wrap) -->
<section style="margin-bottom: 2rem;" aria-label="Career Statistics">
<div class="career-metrics-row" style="display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem;">
<div class="card" style="padding: 0.65rem 0.5rem; text-align: center;">
<div style="font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">Total XP</div>
<div id="stat-total-xp" style="font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; color: var(--color-violet); margin-top: 0.2rem;">0 XP</div>
</div>
<div class="card" style="padding: 0.65rem 0.5rem; text-align: center;">
<div style="font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">Best Streak</div>
<div id="stat-best-streak" style="font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; color: var(--color-warning); margin-top: 0.2rem;">0🔥</div>
</div>
<div class="card" style="padding: 0.65rem 0.5rem; text-align: center;">
<div style="font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">Solved</div>
<div id="stat-questions-solved" style="font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; color: var(--color-primary); margin-top: 0.2rem;">0</div>
</div>
<div class="card" style="padding: 0.65rem 0.5rem; text-align: center;">
<div style="font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">Accuracy</div>
<div id="stat-accuracy-rate" style="font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; color: var(--color-success); margin-top: 0.2rem;">100%</div>
</div>
<div class="card" style="padding: 0.65rem 0.5rem; text-align: center;">
<div style="font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">Badges</div>
<div id="stat-badges-earned" style="font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; color: var(--color-emerald); margin-top: 0.2rem;">0 / 33</div>
</div>
<div class="card" style="padding: 0.65rem 0.5rem; text-align: center;">
<div style="font-size: 11px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">Mastered</div>
<div id="stat-lessons-mastered" style="font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; color: var(--color-cyan); margin-top: 0.2rem;">0 / 60</div>
</div>
</div>
</section>
<!-- Section: Language Performance Breakdown (Python, C, C++, Java) -->
<section style="margin-bottom: 2.5rem;" aria-label="Language Mastery Breakdown">
<div class="page-title-row">
<div>
<h2>Language Performance</h2>
</div>
<span class="badge badge-cyan">12 Languages Tracked</span>
</div>
<div id="language-performance-grid" style="display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 1rem;">
<!-- Dynamically populated 4 language cards -->
</div>
</section>
<!-- Section: Difficulty Tier Performance (Beginner, Intermediate, Expert) -->
<section style="margin-bottom: 2.5rem;" aria-label="Difficulty Performance">
<div class="page-title-row">
<div>
<h2>Difficulty Tier Performance</h2>
</div>
<span class="badge badge-emerald">3 Challenge Tiers</span>
</div>
<div id="difficulty-performance-grid" style="display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 1rem;">
<!-- Dynamically populated 3 difficulty cards -->
</div>
</section>
<!-- Section: Historical Progress & Accuracy Trend Visualization -->
<section style="margin-bottom: 2.5rem;" aria-label="Historical Progress and Trend Analytics">
<div class="card">
<div class="card-header" style="flex-wrap: wrap; gap: 1rem;">
<div>
<h3 class="card-title">Historical Progress & Accuracy Trajectory</h3>
</div>
<!-- Real-Time Interactive Filters -->
<div style="display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center;">
<select id="filter-history-lang" class="form-select" style="padding: 0.35rem 0.6rem; font-size: 12px; min-width: 120px;">
<option value="all">All Languages</option>
<option value="python">Python 3</option>
<option value="c">C (C99)</option>
<option value="cpp">C++ (C++20)</option>
<option value="java">Java (SE 17)</option>
<option value="cyber">Cyber & Linux</option>
<option value="javascript">JavaScript</option>
<option value="rust">Rust</option>
<option value="sql">SQL</option>
<option value="typescript">TypeScript</option>
<option value="go">Go</option>
<option value="html">HTML5 & CSS</option>
<option value="asm">Assembly & Reverse Eng</option>
</select>
<select id="filter-history-diff" class="form-select" style="padding: 0.35rem 0.6rem; font-size: 12px; min-width: 110px;">
<option value="all">All Tiers</option>
<option value="beginner">Beginner</option>
<option value="intermediate">Intermediate</option>
<option value="expert">Expert</option>
</select>
<select id="filter-history-range" class="form-select" style="padding: 0.35rem 0.6rem; font-size: 12px; min-width: 100px;">
<option value="10">Last 10 Runs</option>
<option value="5">Last 5 Runs</option>
<option value="all">All Sessions</option>
</select>
</div>
</div>
<div class="card-body">
<!-- Native Responsive SVG Line Trend Chart -->
<div id="trend-chart-wrapper" style="margin-bottom: 1.5rem; padding: 1rem; background: var(--bg-surface-raised); border-radius: var(--radius-md); border: 1px solid var(--border-subtle);">
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; font-size: var(--text-xs);">
<strong style="color: var(--text-primary); text-transform: uppercase;">Accuracy Trajectory Over Time</strong>
<span id="trend-status-badge" class="badge badge-cyan">Calculating Trend...</span>
</div>
<div id="trend-svg-container" style="width: 100%; height: 160px; display: flex; align-items: center; justify-content: center;">
<!-- Dynamically rendered SVG chart -->
</div>
</div>
<!-- Historical Session Table -->
<div style="overflow-x: auto;">
<table id="history-table" style="width: 100%; border-collapse: collapse; font-size: var(--text-xs); text-align: left;">
<thead>
<tr style="border-bottom: 2px solid var(--border-subtle); color: var(--text-muted); text-transform: uppercase;">
<th style="padding: 0.6rem 0.5rem;">Date / Time</th>
<th style="padding: 0.6rem 0.5rem;">Language</th>
<th style="padding: 0.6rem 0.5rem;">Tier</th>
<th style="padding: 0.6rem 0.5rem;">Score</th>
<th style="padding: 0.6rem 0.5rem;">Accuracy</th>
<th style="padding: 0.6rem 0.5rem;">Status</th>
<th style="padding: 0.6rem 0.5rem; text-align: right;">Action</th>
</tr>
</thead>
<tbody id="history-table-body">
<!-- Dynamically populated session rows -->
</tbody>
</table>
</div>
</div>
</div>
</section>
<!-- Section: Cyber Academy Curriculum Mastery -->
<section style="margin-bottom: 2.5rem;" aria-label="Cyber Academy Curriculum Mastery">
<div class="page-title-row">
<div>
<h2>Cyber Academy Curriculum</h2>
</div>
<div style="display: flex; gap: 0.5rem; align-items: center;">
<span id="academy-progress-badge" class="badge badge-cyan">0 / 60 Mastered</span>
<a href="learn.html" class="btn-arcade btn-primary btn-sm">Enter Academy →</a>
</div>
</div>
<div id="academy-curriculum-grid" style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-top: 1rem;">
<!-- Dynamically populated 12 track academy status cards -->
</div>
</section>
<!-- Trophy Room & 3D Cartridge Vault (Feature 9) -->
<section style="margin-bottom: 2.5rem;" aria-label="3D Arcade Trophy Vault and Achievements">
<div class="page-title-row">
<div style="display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;">
<h2 style="margin: 0;">🕹️ 3D Arcade Trophy Vault</h2>
<button id="btn-trophy-obtain-info" class="btn-arcade btn-neutral btn-sm" style="display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.6rem; font-size: 11px;" aria-label="How to obtain 3D arcade trophy vault badges">
<span>ⓘ</span>
<span>How to Obtain</span>
</button>
</div>
<span id="badge-counter-pill" class="badge badge-violet">0 / 23 Unlocked</span>
</div>
<!-- Badges Real-Time Dropdown Filters -->
<div style="display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-top: 0.75rem;">
<select id="filter-badges-subject" class="form-select" style="padding: 0.35rem 0.6rem; font-size: 12px; min-width: 140px;" aria-label="Filter Badges by Subject">
<option value="all">All Subjects</option>
<option value="milestones">Milestones & Career</option>
<option value="streaks">Streak & Multipliers</option>
<option value="accuracy">Accuracy & Mastery</option>
<option value="speed">Speed & Deduction</option>
<option value="polyglot">Language Mastery</option>
<option value="academy">Cyber Academy</option>
</select>
<select id="filter-badges-status" class="form-select" style="padding: 0.35rem 0.6rem; font-size: 12px; min-width: 140px;" aria-label="Filter Badges by Unlock Status">
<option value="all">All Statuses</option>
<option value="gained">✓ Gained Badges</option>
<option value="unclaimed">🔒 Unclaimed Badges</option>
</select>
</div>
<div id="trophy-grid" class="trophy-vault-grid">
<!-- Dynamically populated 3D Cartridges -->
</div>
</section>
<!-- Dynamic GitHub Profile Badges Studio (Feature 9) -->
<section id="github-badge-studio" style="margin-bottom: 2.5rem;" aria-label="Dynamic GitHub Profile Badges Studio">
</section>
<!-- Rewards Wardrobe: Themes & Avatars -->
<section style="margin-bottom: 2.5rem;" aria-label="Unlockable Cosmetics">
<div class="page-title-row">
<div>
<h2>Cosmetic Rewards & Themes</h2>
</div>
</div>
<!-- Themes Showcase Header & Filters -->
<div style="display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.25rem; margin-bottom: 0.75rem;">
<h3 style="font-size: var(--text-base); margin: 0; color: var(--text-secondary); text-transform: uppercase;">
Palette Themes
</h3>
<div style="display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center;">
<select id="filter-themes-subject" class="form-select" style="padding: 0.3rem 0.5rem; font-size: 11px; min-width: 120px;" aria-label="Filter Themes by Subject">
<option value="all">All Theme Styles</option>
<option value="cyber">Cyber & Dark</option>
<option value="paper">Light & Paper</option>
<option value="crt">Retro CRT Amber</option>
<option value="prestige">Grandmaster Gold</option>
</select>
<select id="filter-themes-status" class="form-select" style="padding: 0.3rem 0.5rem; font-size: 11px; min-width: 120px;" aria-label="Filter Themes by Unlock Status">
<option value="all">All Statuses</option>
<option value="gained">✓ Gained Themes</option>
<option value="unclaimed">🔒 Unclaimed Themes</option>
</select>
</div>
</div>
<div id="themes-grid" style="display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 2rem;">
<!-- Populated dynamically -->
</div>
<!-- Avatars Showcase Header & Filters -->
<div style="display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; margin-bottom: 0.75rem;">
<h3 style="font-size: var(--text-base); margin: 0; color: var(--text-secondary); text-transform: uppercase;">
Avatar Icon Collection
</h3>
<div style="display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center;">
<select id="filter-avatars-subject" class="form-select" style="padding: 0.3rem 0.5rem; font-size: 11px; min-width: 120px;" aria-label="Filter Avatars by Subject">
<option value="all">All Classes</option>
<option value="beasts">Cyber Beasts</option>
<option value="mechs">Guardians & Mechs</option>
</select>
<select id="filter-avatars-status" class="form-select" style="padding: 0.3rem 0.5rem; font-size: 11px; min-width: 120px;" aria-label="Filter Avatars by Unlock Status">
<option value="all">All Statuses</option>
<option value="gained">✓ Gained Avatars</option>
<option value="unclaimed">🔒 Unclaimed Avatars</option>
</select>
</div>
</div>
<div id="avatars-grid" style="display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem;">
<!-- Populated dynamically -->
</div>
</section>
<!-- Challenge Modes Roadmap -->
<section style="margin-bottom: 2.5rem;" aria-label="Challenge Modes Roadmap">
<div class="page-title-row">
<div>
<h2>Challenge Modes Roadmap</h2>
</div>
<span class="badge badge-cyan">4 Arcade Modes</span>
</div>
<!-- Modes Real-Time Dropdown Filters -->
<div style="display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; margin-top: 0.75rem;">
<select id="filter-modes-subject" class="form-select" style="padding: 0.35rem 0.6rem; font-size: 12px; min-width: 130px;" aria-label="Filter Challenge Modes by Subject">
<option value="all">All Modes</option>
<option value="campaign">Campaign Track</option>
<option value="practice">Free Practice</option>
<option value="speedrun">Speedrun (Timed)</option>
<option value="hardcore">Hardcore Crucible</option>
</select>
<select id="filter-modes-status" class="form-select" style="padding: 0.35rem 0.6rem; font-size: 12px; min-width: 130px;" aria-label="Filter Challenge Modes by Status">
<option value="all">All Statuses</option>
<option value="gained">✓ Unlocked Modes</option>
<option value="unclaimed">🔒 Level Gated</option>
</select>
</div>
<div id="modes-grid" style="display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 1rem;">
<!-- Populated dynamically -->
</div>
</section>
<!-- Track Graduation Diploma Modal -->
<div id="modal-track-diploma" class="modal-backdrop" style="display: none;" role="dialog" aria-modal="true" aria-labelledby="diploma-title">
<div class="modal-dialog diploma-modal-dialog">
<div class="diploma-certificate card card-raised" id="diploma-certificate-frame">
<div class="diploma-border-inner">
<div class="diploma-header">
<div class="diploma-badge-logo">🏛️</div>
<div class="diploma-inst-title">SYNTAX ARENA CYBER ACADEMY</div>
<h2 id="diploma-title" class="diploma-heading">CERTIFICATE OF TRACK MASTERY</h2>
<div class="diploma-sub-heading">OFFICIAL CURRICULUM ACCREDITATION</div>
</div>
<div class="diploma-body">
<p class="diploma-awarded-text">THIS IS PROUDLY CONFERRED UPON</p>
<div id="diploma-callsign" class="diploma-callsign">ScriptAdept</div>
<p class="diploma-completion-text">
FOR DEMONSTRATING PROFICIENCY & CONQUERING ALL 5 MODULES IN
</p>
<div id="diploma-track-name" class="diploma-track-name">PYTHON 3 CORE & ARCHITECTURE</div>
<p id="diploma-curriculum-summary" class="diploma-curriculum-summary">
Verified Mastery: Variables & Heap Memory, Scope & Closures, Generators & Streaming, Metaprogramming & Dunder Protocols, Asyncio Event Loops.
</p>
</div>
<div class="diploma-footer">
<div class="diploma-meta-block">
<span class="diploma-meta-label">ISSUE DATE</span>
<span id="diploma-issue-date" class="diploma-meta-val">2026-10-22</span>
</div>
<div class="diploma-seal-container">
<div class="diploma-seal">
<span class="diploma-seal-stars">★ ★ ★</span>
<span class="diploma-seal-text">VERIFIED<br>SCHOLAR</span>
</div>
</div>
<div class="diploma-meta-block">
<span class="diploma-meta-label">VERIFICATION ID</span>
<span id="diploma-serial-id" class="diploma-meta-val">SA-CERT-PY-88A92</span>
</div>
</div>
</div>
</div>
<div class="diploma-actions no-print">
<button id="btn-print-diploma" class="btn-arcade btn-primary btn-md" type="button">
<span>🖨️ Print / Save PDF</span>
</button>
<button id="btn-copy-diploma-id" class="btn-arcade btn-outline btn-md" type="button">
<span>📋 Copy Certificate ID</span>
</button>
<button id="btn-close-diploma" class="btn-arcade btn-neutral btn-md" type="button">
<span>✕ Close</span>
</button>
</div>
</div>
</div>
<!-- 3D Arcade Trophy Vault How-to-Obtain Modal (Item 15) -->
<div id="modal-trophy-obtain-info" class="modal-backdrop" style="display: none;" role="dialog" aria-modal="true" aria-labelledby="trophy-info-title">
<div class="modal-dialog card card-raised" style="max-width: 640px; width: 92vw; max-height: 85vh; overflow-y: auto; padding: 1.5rem;">
<div style="display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-subtle); padding-bottom: 0.75rem; margin-bottom: 1rem;">
<h3 id="trophy-info-title" style="margin: 0; font-family: var(--font-display); font-size: var(--text-lg); display: flex; align-items: center; gap: 0.5rem;">
<span>🕹️</span>
<span>How to Obtain 3D Arcade Trophies</span>
</h3>
<button id="btn-close-trophy-info" class="btn-arcade btn-neutral btn-sm" aria-label="Close modal">✕</button>
</div>
<p style="font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; margin-bottom: 1rem;">
All 3D Cartridge Trophies are permanent cryptographic achievements minted to your player identity. There are two primary pathways to acquire them:
</p>
<div style="display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 1.5rem;">
<div class="card" style="padding: 0.85rem; border-left: 3px solid var(--color-primary);">
<strong style="color: var(--text-primary); font-size: var(--text-sm); display: block; margin-bottom: 0.25rem;">⚔️ 1. In-Game Feats & Accomplishments</strong>
<p style="font-size: var(--text-xs); color: var(--text-secondary); margin: 0; line-height: 1.5;">
Solve arena questions, maintain winning streaks (3🔥, 5🔥, 8🔥), graduate language tracks in the Cyber Academy, conquer 1v1 duels, and achieve 100% precision on Expert tiers to automatically forge cartridges into your vault.
</p>
</div>
<div class="card" style="padding: 0.85rem; border-left: 3px solid var(--color-warning);">
<strong style="color: var(--text-primary); font-size: var(--text-sm); display: block; margin-bottom: 0.25rem;">🪙 2. Arcade Points Redemption</strong>
<p style="font-size: var(--text-xs); color: var(--text-secondary); margin: 0; line-height: 1.5;">
Earn Points by finishing arena sessions and memory lab puzzles. Unlocked badges can be acquired directly in the Battlestation / Settings shop using your spendable career points.
</p>
</div>
<div class="card" style="padding: 0.85rem; border-left: 3px solid var(--color-emerald);">
<strong style="color: var(--text-primary); font-size: var(--text-sm); display: block; margin-bottom: 0.25rem;">🏷️ Category Requirements Breakdown</strong>
<ul style="font-size: var(--text-xs); color: var(--text-secondary); margin: 0.35rem 0 0 1.2rem; line-height: 1.6; padding: 0;">
<li><strong>Milestones:</strong> First Blood (1 challenge), Syntax Veteran (5 sessions), Century Club (100 challenges).</li>
<li><strong>Streaks:</strong> Blue Flare (3 streak), Amber Blaze (5 streak), Plasma Supernova (8 streak).</li>
<li><strong>Accuracy:</strong> Proficient Deductor (75% accuracy), Flawless Daemon (100% on Expert).</li>
<li><strong>Speed:</strong> Speed Daemon (finish full session in under 45 seconds).</li>
<li><strong>Polyglot:</strong> Conquer questions across all 12 supported programming languages.</li>
<li><strong>Academy:</strong> Complete all 5 modules in any language track to graduate with honors.</li>
</ul>
</div>
</div>
<div style="text-align: right;">
<button id="btn-trophy-info-ok" class="btn-arcade btn-primary btn-sm">Got it, Enter Arena →</button>
</div>
</div>
</div>
<!-- Real Identity Showcase Modal for Barcode/QR Verification (Item 16) -->
<div id="modal-trophy-verify" class="modal-backdrop" style="display: none;" role="dialog" aria-modal="true" aria-labelledby="verify-showcase-title">
<div class="modal-dialog card card-raised" style="max-width: 580px; width: 92vw; padding: 1.5rem; text-align: center;">
<div style="display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(16, 185, 129, 0.15); border: 2px solid var(--color-success); margin-bottom: 0.75rem;">
<span style="font-size: 1.8rem;">✓</span>
</div>
<div style="font-size: 0.75rem; letter-spacing: 0.1em; color: var(--color-success); font-weight: 800; text-transform: uppercase;">
AUTHENTICATED CREDENTIAL SHOWCASE
</div>
<h2 id="verify-showcase-title" style="margin: 0.25rem 0 0.5rem; font-family: var(--font-display); font-size: var(--text-xl);">
SYNTAXARENA VERIFIED TROPHY
</h2>
<p style="font-size: var(--text-xs); color: var(--text-secondary); margin-bottom: 1.25rem;">
Official tamper-evident achievement registered in the SyntaxArena Arcade Ledger.
</p>
<div class="card" style="padding: 1rem; margin-bottom: 1.25rem; text-align: left; background: var(--bg-surface-raised);">
<div style="display: flex; align-items: center; gap: 1rem; margin-bottom: 0.75rem;">
<div id="verify-badge-icon" style="font-size: 2.2rem; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: rgba(56, 189, 248, 0.15); border-radius: 8px;">🏆</div>
<div>
<h4 id="verify-badge-name" style="margin: 0; font-family: var(--font-display); font-size: var(--text-base);">First Blood</h4>
<span id="verify-badge-tier" class="badge badge-cyan" style="font-size: 10px;">COMMON CARTRIDGE</span>
</div>
</div>
<div style="display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; font-size: var(--text-xs); border-top: 1px solid var(--border-subtle); padding-top: 0.75rem;">
<div>
<span style="color: var(--text-muted); display: block; font-size: 10px;">AWARDED TO</span>
<strong id="verify-player-callsign" style="color: var(--text-primary);">ScriptAdept</strong>
</div>
<div>
<span style="color: var(--text-muted); display: block; font-size: 10px;">PLAYER UID</span>
<code id="verify-player-uid" style="color: var(--color-primary); font-size: 10px;">SA-AGENT-001</code>
</div>
<div>
<span style="color: var(--text-muted); display: block; font-size: 10px;">CREDENTIAL HASH</span>
<code id="verify-signature-hash" style="color: var(--text-muted); font-size: 9px; word-break: break-all;">SHA256:7f8a3c...</code>
</div>
<div>
<span style="color: var(--text-muted); display: block; font-size: 10px;">STATUS</span>
<span style="color: var(--color-success); font-weight: 700;">● 100% GENUINE</span>
</div>
</div>
</div>
<div style="display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap;">
<button id="btn-download-verify-card" class="btn-arcade btn-primary btn-sm">
📸 Download Certificate Card (PNG)
</button>
<button id="btn-close-verify-showcase" class="btn-arcade btn-neutral btn-sm">
✕ Close Showcase
</button>
</div>
</div>
</div>
</main>
<footer class="app-footer">
<div class="footer-container">
<div>SyntaxArena • Career Progression & Learning Analytics</div>
<nav class="footer-nav" aria-label="Footer Links">
<a href="index.html">Hub</a>
<a href="game.html">Arena</a>
<a href="results.html">Results</a>
<a href="progress.html">Progression</a>
<a href="settings.html">Settings</a>
<a href="settings.html#section-legal">Privacy & Terms</a>
</nav>
</div>
</footer>
</div> <!-- /.app-viewport -->
</div> <!-- /#app-shell -->
<!-- Multi-Provider Authentication Modal (Item 14) -->
<div id="modal-auth" class="modal-backdrop" aria-hidden="true" role="dialog" aria-modal="true" aria-labelledby="auth-modal-title" style="display: none;">
<div class="modal-dialog card card-raised">
<div class="auth-modal-header">
<h3 id="auth-modal-title" class="auth-modal-title">
<span>🛡️</span>
<span>SyntaxArena Cloud Sync</span>
</h3>
<button type="button" class="btn-icon" id="btn-close-auth" aria-label="Close Authentication Dialog" style="background: transparent; border: none; font-size: 1.5rem; color: #94a3b8; cursor: pointer;">✕</button>
</div>
<div class="auth-modal-body">
<!-- Guest Status Notice -->
<div class="auth-guest-notice" id="auth-guest-banner">
<strong>⚡ Cloud Backup & Sync:</strong> Sign in with Google, GitHub, Apple ID, or Email to preserve your XP, levels, 14 avatars, and 33 badges across all devices.
</div>
<!-- Alert Notification Box -->
<div id="auth-alert" class="auth-alert-banner"></div>
<!-- Tabs: Sign In / Create Account -->
<div class="auth-tabs-row" role="tablist">
<button type="button" class="auth-tab-btn is-active" id="tab-auth-signin" role="tab" aria-selected="true">Sign In</button>
<button type="button" class="auth-tab-btn" id="tab-auth-signup" role="tab" aria-selected="false">Create Account</button>
</div>
<!-- Social OAuth 2.0 Providers -->
<div class="auth-oauth-buttons">
<button type="button" class="btn-oauth btn-oauth-google" id="btn-oauth-google">
<svg width="18" height="18" viewBox="0 0 24 24"><path fill="#4285F4" d="M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"/><path fill="#34A853" d="M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z"/><path fill="#FBBC05" d="M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.06H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.94l2.85-2.22.81-.63z"/><path fill="#EA4335" d="M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.06l3.66 2.84c.87-2.6 3.3-4.52 6.16-4.52z"/></svg>
<span>Continue with Google</span>
</button>
<button type="button" class="btn-oauth btn-oauth-github" id="btn-oauth-github">
<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.53 1.032 1.53 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"/></svg>
<span>Continue with GitHub</span>
</button>
<button type="button" class="btn-oauth btn-oauth-apple" id="btn-oauth-apple">
<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor"><path d="M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M15.97 6.37c.61-.75 1.04-1.8 1.01-2.87-.96.04-2.12.64-2.79 1.43-.57.67-.99 1.74-.94 2.79 1.08.08 2.14-.57 2.72-1.35z"/></svg>
<span>Sign in with Apple</span>
</button>
</div>
<div class="auth-divider">
<span>Or with Email</span>
</div>
<!-- Form for Email & Password -->
<form id="auth-form" autocomplete="on">
<div class="auth-field" id="auth-field-name" style="display: none;">
<label for="auth-name">Player Callsign / Display Name</label>
<input type="text" id="auth-name" class="auth-input" placeholder="e.g. CyberSamurai" maxlength="24">
</div>
<div class="auth-field">
<label for="auth-email">Email Address</label>
<input type="email" id="auth-email" class="auth-input" placeholder="hacker@syntaxarena.cloud" required>
</div>
<div class="auth-field">
<label for="auth-password">Password</label>
<div class="auth-input-wrapper">
<input type="password" id="auth-password" class="auth-input" placeholder="••••••••" required minlength="6">
<button type="button" class="auth-eye-btn" id="btn-auth-toggle-pwd" aria-label="Toggle password visibility">👁️</button>
</div>
</div>
<button type="submit" class="btn-arcade btn-primary btn-block" id="btn-auth-submit" style="width: 100%; margin-top: 0.5rem; padding: 12px;">
Sign In to SyntaxArena
</button>
</form>
<!-- Sign Out Option (Visible if currently logged in) -->
<div style="margin-top: 1rem; text-align: center;">
<button type="button" id="btn-auth-signout" class="btn-arcade btn-neutral btn-sm" style="font-size: 11px; padding: 4px 12px; border-color: rgba(244, 63, 94, 0.4); color: #fda4af;">
🚪 Sign Out (Return to Guest)
</button>
</div>
</div>
</div>
</div>
<script src="js/bundle.js" defer></script>
<!-- Live Progression & Analytics Dashboard Script -->
<script>
(function() {
const { Utils, State, Profile, AVATAR_CATALOG, Gamification, ACHIEVEMENTS, UNLOCKABLE_THEMES, CHALLENGE_MODES, Analytics, UI, AudioEngine, AcademyLessons, TrophyVault, BadgeGenerator } = window;
document.addEventListener('DOMContentLoaded', () => {
const activeProf = State.get('activeProfile') || Profile.getActiveProfile();
if (!activeProf) return;
const playerLifetimeXP = typeof activeProf.lifetimeXP === 'number' ? activeProf.lifetimeXP : (activeProf.xp || 0);
const levelData = Gamification.getLevelData(playerLifetimeXP);
const playerLevel = levelData.level;
const playerXP = typeof activeProf.totalScore === 'number' ? activeProf.totalScore : (activeProf.xp || 0);
const earnedBadges = new Set([
...(activeProf.badges || []),
...(activeProf.unlockedAchievements || []),
...(activeProf.purchasedBadges || [])
]);
const sessionHistory = Array.isArray(activeProf.sessionHistory) ? activeProf.sessionHistory : [];
// Derive continuous best streak strictly from contiguous correct answers (Item 7)
let bestStreak = activeProf.bestStreak || (activeProf.stats && activeProf.stats.highestStreak) || 0;
if (sessionHistory.length > 0) {
sessionHistory.forEach(s => {
let sStreak = 0;
if (Array.isArray(s.results) && s.results.length > 0) {
let curr = 0;
s.results.forEach(r => {
if (r && (r.isCorrect || r.correct) && !r.retried && (r.attempts === undefined || r.attempts <= 1)) {
curr++;
if (curr > sStreak) sStreak = curr;
} else {
curr = 0;
}
});
} else if (typeof s.bestStreak === 'number') {
sStreak = s.bestStreak;
} else if (typeof s.highestStreak === 'number') {
sStreak = s.highestStreak;
}
if (sStreak > bestStreak) bestStreak = sStreak;
});
}
const stats = activeProf.stats || {};
const gamesPlayed = stats.gamesPlayed || 0;
const totalAttempted = stats.questionsAttempted || 0;
const totalCorrect = stats.questionsCorrect || 0;
const accuracyRate = Analytics.calculateAccuracy(totalCorrect, totalAttempted);
// 1. Header Profile & XP Progress
const heading = Utils.qs('#prog-callsign-heading');
if (heading) heading.textContent = activeProf.username;
const levelTag = Utils.qs('#prog-level-tag');
if (levelTag) levelTag.textContent = `Level ${playerLevel}`;
const rankTitle = Utils.qs('#prog-rank-title');
if (rankTitle) rankTitle.textContent = levelData.title;
const avatarImg = Utils.qs('#prog-avatar-img');
if (avatarImg && activeProf.avatarId) {
avatarImg.src = `assets/images/${activeProf.avatarId}.svg`;
}
// Calculate level progress based on career lifetimeXP (level never drops!)
const levelProg = Gamification.calculateLevelProgress(playerLifetimeXP);
const xpDetail = Utils.qs('#prog-xp-detail-text');
const xpBarFill = Utils.qs('#prog-xp-fill');
const xpBarContainer = Utils.qs('#prog-xp-bar-container');
const xpPercentLabel = Utils.qs('#prog-xp-percent-label');
if (levelProg.isMaxRank) {
if (xpDetail) xpDetail.textContent = `${playerLifetimeXP.toLocaleString()} Lifetime XP (MAX RANK ACHIEVED) • ${playerXP.toLocaleString()} Spendable Points`;
if (xpPercentLabel) xpPercentLabel.textContent = '100% (MAX)';
if (xpBarFill) xpBarFill.style.width = '100%';
if (xpBarContainer) xpBarContainer.setAttribute('aria-valuenow', '100');
} else {
const pct = Math.round(levelProg.progressPercent * 100);
if (xpDetail) {
xpDetail.textContent = `${playerLifetimeXP.toLocaleString()} / ${levelProg.nextLevelThreshold.toLocaleString()} Career XP (${levelProg.xpToNextLevel.toLocaleString()} XP to Level ${levelProg.nextLevel}) • ${playerXP.toLocaleString()} Spendable Points`;
}
if (xpPercentLabel) xpPercentLabel.textContent = `${pct}%`;
if (xpBarFill) xpBarFill.style.width = `${pct}%`;
if (xpBarContainer) xpBarContainer.setAttribute('aria-valuenow', String(pct));
}
// 2. Metrics Strip
const statTotalXP = Utils.qs('#stat-total-xp');
if (statTotalXP) statTotalXP.textContent = `${playerXP.toLocaleString()} Pts`;
const statBestStreak = Utils.qs('#stat-best-streak');
if (statBestStreak) statBestStreak.textContent = `${bestStreak}🔥`;
const statQuestions = Utils.qs('#stat-questions-solved');
if (statQuestions) statQuestions.textContent = totalCorrect.toLocaleString();
const statAccuracy = Utils.qs('#stat-accuracy-rate');
if (statAccuracy) statAccuracy.textContent = `${totalAttempted > 0 ? accuracyRate : 100}%`;
const statBadges = Utils.qs('#stat-badges-earned');
if (statBadges) statBadges.textContent = `${earnedBadges.size} / ${ACHIEVEMENTS.length}`;
const counterPill = Utils.qs('#badge-counter-pill');
if (counterPill) counterPill.textContent = `${earnedBadges.size} / ${ACHIEVEMENTS.length} Unlocked`;
const completedLessons = Array.isArray(activeProf?.completedLessons) ? activeProf.completedLessons : [];
const statLessons = Utils.qs('#stat-lessons-mastered');
if (statLessons) statLessons.textContent = `${completedLessons.length} / 60`;
const academyBadge = Utils.qs('#academy-progress-badge');
if (academyBadge) academyBadge.textContent = `${completedLessons.length} / 60 Mastered`;
// 3. Language Performance Grid (Python, C, C++, Java)
const langGrid = Utils.qs('#language-performance-grid');
if (langGrid) {
langGrid.innerHTML = '';
const langs = [
{ id: 'python', name: 'Python 3', tag: 'tag-python' },
{ id: 'c', name: 'C (C99)', tag: 'tag-c' },
{ id: 'cpp', name: 'C++', tag: 'tag-cpp' },
{ id: 'java', name: 'Java 17', tag: 'tag-java' },
{ id: 'cyber', name: 'Cyber & Linux', tag: 'tag-cyber' },
{ id: 'javascript', name: 'JavaScript', tag: 'tag-javascript' },
{ id: 'rust', name: 'Rust', tag: 'tag-rust' },
{ id: 'sql', name: 'SQL', tag: 'tag-sql' },
{ id: 'typescript', name: 'TypeScript', tag: 'tag-typescript' },
{ id: 'go', name: 'Golang', tag: 'tag-go' },
{ id: 'html', name: 'HTML5 & CSS', tag: 'tag-html' },
{ id: 'asm', name: 'Assembly', tag: 'tag-asm' }
];
langs.forEach(l => {
const lStats = Analytics.aggregateLanguageStats(sessionHistory, l.id);
const card = document.createElement('div');
card.className = 'card';
card.style.padding = '1.25rem';
card.style.display = 'flex';
card.style.flexDirection = 'column';
card.style.justifyContent = 'space-between';
if (!lStats.hasData) {
// Genuine Empty State
card.innerHTML = `
<div>
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem;">
<span class="tag-lang ${l.tag}">${l.name}</span>
<span class="badge badge-neutral">Unplayed</span>
</div>
<p style="font-size: var(--text-xs); color: var(--text-muted); line-height: 1.5; margin-bottom: 1.25rem;">
No recorded challenge sessions in ${l.name} yet. Complete your first run to unlock topic mastery analytics.
</p>
</div>
<a href="game.html?lang=${l.id}&diff=beginner&mode=campaign" class="btn-arcade btn-neutral btn-sm" style="align-self: flex-start;">
Begin Track →
</a>
`;
} else {
const strongStr = lStats.strongTopics.length > 0
? lStats.strongTopics.map(t => t.topicName).slice(0, 2).join(', ')
: 'None identified yet';
const weakStr = lStats.weakTopics.length > 0
? lStats.weakTopics.map(t => t.topicName).slice(0, 2).join(', ')
: 'None (High mastery)';
card.innerHTML = `
<div>
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem;">
<span class="tag-lang ${l.tag}">${l.name}</span>
<span class="badge badge-emerald">${lStats.completedSessions} Run${lStats.completedSessions === 1 ? '' : 's'}</span>
</div>
<div style="display: flex; justify-content: space-between; font-size: var(--text-xs); margin-bottom: 0.35rem;">
<span style="color: var(--text-muted); font-weight: 700;">ACCURACY</span>
<strong style="color: ${lStats.accuracy >= 80 ? 'var(--color-success)' : 'var(--color-primary)'};">${lStats.accuracy}% (${lStats.questionsCorrect}/${lStats.questionsAttempted})</strong>
</div>
<div style="height: 8px; background: var(--bg-surface-raised); border-radius: var(--radius-full); overflow: hidden; margin-bottom: 1rem;">
<div style="width: ${lStats.accuracy}%; height: 100%; background: ${lStats.accuracy >= 80 ? 'var(--color-success)' : 'var(--color-primary)'};"></div>
</div>
<div style="font-size: 11px; line-height: 1.6; margin-bottom: 1rem;">
<div><strong style="color: var(--color-success);">Strengths:</strong> <span style="color: var(--text-secondary);">${strongStr}</span></div>
<div><strong style="color: var(--color-danger);">Focus Areas:</strong> <span style="color: var(--text-secondary);">${weakStr}</span></div>
</div>
</div>
<div style="display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-subtle); padding-top: 0.75rem;">