-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
3705 lines (3463 loc) · 178 KB
/
Copy pathindex.html
File metadata and controls
3705 lines (3463 loc) · 178 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="id">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>🎮 GameHub — Portal Game Online Gratis Indonesia | 15+ Game Browser</title>
<!-- ============ SEO ============ -->
<meta name="description" content="Portal game online gratis dengan 15+ game: Cash King clicker, Snake, 2048, Slot CaiShen, Memory Match, Tic Tac Toe, dan lainnya. Mainkan langsung di browser tanpa download — desktop & mobile." />
<meta name="keywords" content="game online gratis, game indonesia, game browser, slot demo gratis, cash king, snake online, 2048, tebak angka, memory match, game tanpa download, game pekanbaru" />
<meta name="author" content="GameHub" />
<meta name="robots" content="index, follow, max-image-preview:large" />
<meta name="googlebot" content="index, follow" />
<link rel="canonical" href="https://gamevirtual.netlify.app/" />
<meta http-equiv="content-language" content="id" />
<!-- ============ Open Graph (Facebook, WhatsApp, LinkedIn) ============ -->
<meta property="og:type" content="website" />
<meta property="og:site_name" content="GameHub" />
<meta property="og:title" content="🎮 GameHub — Portal Game Online Gratis Indonesia" />
<meta property="og:description" content="Mainkan 15+ game gratis di browser: Cash King, Snake, 2048, Slot, Memory Match, dan lainnya. Tanpa download, langsung main." />
<meta property="og:url" content="https://gamevirtual.netlify.app/" />
<meta property="og:image" content="https://gamevirtual.netlify.app/og-image.png" />
<meta property="og:image:secure_url" content="https://gamevirtual.netlify.app/og-image.png" />
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta property="og:image:alt" content="GameHub - Portal Game Online Gratis" />
<meta property="og:locale" content="id_ID" />
<meta property="og:locale:alternate" content="en_US" />
<!-- ============ Twitter Card ============ -->
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="🎮 GameHub — Portal Game Online Gratis" />
<meta name="twitter:description" content="15+ game gratis di browser: clicker, slot, puzzle, arcade. Tanpa download, langsung main." />
<meta name="twitter:image" content="https://gamevirtual.netlify.app/og-image.png" />
<meta name="twitter:image:alt" content="GameHub Portal" />
<!-- ============ Icons & Manifest ============ -->
<link rel="icon" type="image/png" sizes="192x192" href="icons/icon-192.png" />
<link rel="icon" type="image/png" sizes="512x512" href="icons/icon-512.png" />
<link rel="icon" type="image/svg+xml" href="icon.svg" />
<link rel="apple-touch-icon" href="icons/icon-192.png" />
<link rel="manifest" href="manifest.json" />
<meta name="theme-color" content="#6b46ff" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<meta name="apple-mobile-web-app-title" content="GameHub" />
<!-- ============ JSON-LD Structured Data ============ -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "GameHub",
"alternateName": "Game Hub Indonesia",
"url": "https://gamevirtual.netlify.app/",
"description": "Portal game online gratis dengan 15+ game playable di browser",
"inLanguage": "id-ID",
"potentialAction": {
"@type": "SearchAction",
"target": {
"@type": "EntryPoint",
"urlTemplate": "https://gamevirtual.netlify.app/?search={search_term_string}"
},
"query-input": "required name=search_term_string"
}
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "GameHub",
"url": "https://gamevirtual.netlify.app/",
"logo": "https://gamevirtual.netlify.app/icon.svg",
"sameAs": []
}
</script>
<style>
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
background:
linear-gradient(135deg, rgba(5, 10, 24, 0.55), rgba(8, 50, 90, 0.45)),
url('bg-circuit.jpg') center/cover fixed !important;
background-attachment: fixed !important;
min-height: 100vh;
}
body {
color: #eaeaea;
font-family: 'Segoe UI', Roboto, Arial, sans-serif;
min-height: 100vh;
overflow-x: hidden;
background: transparent !important;
}
a { color: inherit; text-decoration: none; }
@keyframes bgFlow {
0%, 100% { background-position: 0% 50%; }
33% { background-position: 100% 50%; }
66% { background-position: 50% 100%; }
}
/* ===== LIGHTNING FLASH OVERLAY ===== */
#lightningOverlay {
position: fixed; inset: 0;
pointer-events: none;
z-index: 9999;
background: transparent;
transition: background 0.04s;
}
.flash-1 { background: radial-gradient(ellipse at 30% 20%, rgba(200, 230, 255, 0.5) 0%, transparent 65%) !important; }
.flash-2 { background: radial-gradient(ellipse at 70% 30%, rgba(220, 240, 255, 0.6) 0%, transparent 65%) !important; }
/* ===== BUBBLE PARTICLES ===== */
.bubble {
position: fixed; bottom: -50px;
background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), rgba(180,220,255,0.1));
border: 1px solid rgba(255,255,255,0.2);
border-radius: 50%;
z-index: 1; pointer-events: none;
animation: bubbleRise linear infinite;
box-shadow: 0 0 8px rgba(180,220,255,0.4);
}
@keyframes bubbleRise {
0% { transform: translateY(0) translateX(0); opacity: 0; }
10% { opacity: 0.7; }
90% { opacity: 0.5; }
100% { transform: translateY(-110vh) translateX(40px); opacity: 0; }
}
.layout { display: grid; grid-template-columns: 220px 1fr 280px; min-height: 100vh; }
@media (max-width: 1400px) { .layout { grid-template-columns: 220px 1fr; } .right-sidebar { display: none; } }
/* === SIDEBAR (Aqua Glass) === */
.sidebar {
background: linear-gradient(135deg, rgba(8, 145, 178, 0.25), rgba(30, 64, 175, 0.3)) !important;
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border-right: 1px solid rgba(255, 255, 255, 0.15);
padding: 16px 0;
position: sticky; top: 0;
height: 100vh; overflow-y: auto;
box-shadow:
inset 0 0 60px rgba(180, 220, 255, 0.08),
4px 0 32px rgba(6, 182, 212, 0.3);
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: #6b46ff; border-radius: 3px; }
.brand {
display: flex !important; align-items: center; gap: 10px;
padding: 14px 16px 18px;
margin: 0;
font-size: 22px; font-weight: 900;
text-decoration: none;
}
.brand-text {
background: linear-gradient(135deg, #ff66b3, #6b46ff);
-webkit-background-clip: text; background-clip: text;
-webkit-text-fill-color: transparent; color: transparent;
}
.brand-icon {
background: linear-gradient(135deg, #ff66b3, #6b46ff);
width: 38px; height: 38px; border-radius: 10px;
display: flex; align-items: center; justify-content: center;
color: #fff !important;
-webkit-text-fill-color: #fff !important;
font-size: 20px;
box-shadow: 0 4px 12px rgba(255, 102, 179, 0.4);
flex-shrink: 0;
}
/* Sidebar nav-item = aqua glass pill */
.nav-item {
display: flex; align-items: center; gap: 10px;
padding: 10px 14px;
margin: 4px 10px;
cursor: pointer; font-size: 13px; color: #fff;
background: linear-gradient(135deg, rgba(8, 145, 178, 0.35), rgba(30, 64, 175, 0.4));
backdrop-filter: blur(8px);
border-radius: 16px;
font-weight: 600;
transition: all 0.2s ease;
box-shadow:
inset 0 1px 0 rgba(255,255,255,0.15),
0 2px 8px rgba(6, 182, 212, 0.2);
border: 1px solid rgba(255, 255, 255, 0.12);
position: relative;
overflow: hidden;
}
.nav-item:hover {
transform: translateX(4px);
background: linear-gradient(135deg, rgba(8, 145, 178, 0.5), rgba(30, 64, 175, 0.55));
box-shadow:
inset 0 1px 0 rgba(255,255,255,0.25),
0 4px 14px rgba(6, 182, 212, 0.4),
0 0 20px rgba(180, 220, 255, 0.3);
border-color: rgba(180, 220, 255, 0.5);
}
.nav-item.active {
background: linear-gradient(135deg, rgba(180, 220, 255, 0.3), rgba(6, 182, 212, 0.4));
border-color: rgba(255, 255, 255, 0.6);
box-shadow:
inset 0 1px 0 rgba(255,255,255,0.3),
0 0 0 1px rgba(255,255,255,0.3),
0 4px 20px rgba(180, 220, 255, 0.5);
}
.nav-item .icon {
width: 28px; height: 28px; flex-shrink: 0;
background: rgba(255,255,255,0.2);
border-radius: 8px;
display: flex; align-items: center; justify-content: center;
font-size: 15px;
text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.nav-item .nav-count {
margin-left: auto;
background: rgba(0,0,0,0.4); color: #fff;
border-radius: 10px; padding: 2px 8px; font-size: 11px;
font-weight: 700;
}
.nav-divider { height: 1px; background: #2a2a4a; margin: 8px 16px; }
/* Per-menu gradients */
.nav-item[data-cat="all"] { --nav-c1: #6b46ff; --nav-c2: #ff66b3; }
.nav-item[data-cat="trending"] { --nav-c1: #f59e0b; --nav-c2: #ef4444; }
.nav-item[data-cat="new"] { --nav-c1: #10b981; --nav-c2: #14b8a6; }
.nav-item[data-cat="originals"] { --nav-c1: #8b5cf6; --nav-c2: #ec4899; }
.nav-item[data-cat="favorites"] { --nav-c1: #ec4899; --nav-c2: #f43f5e; }
.nav-item[data-cat="recent"] { --nav-c1: #06b6d4; --nav-c2: #0ea5e9; }
.nav-item[data-cat="action"] { --nav-c1: #ef4444; --nav-c2: #f97316; }
.nav-item[data-cat="arcade"] { --nav-c1: #6366f1; --nav-c2: #8b5cf6; }
.nav-item[data-cat="card"] { --nav-c1: #b91c1c; --nav-c2: #dc2626; }
.nav-item[data-cat="word"] { --nav-c1: #2a5a2a; --nav-c2: #00cc66; }
.nav-item[data-cat="clicker"] { --nav-c1: #ffd700; --nav-c2: #f59e0b; }
.nav-item[data-cat="board"] { --nav-c1: #2a2a4a; --nav-c2: #6b46ff; }
.nav-item[data-cat="puzzle"] { --nav-c1: #d97706; --nav-c2: #ffaa00; }
.nav-item[data-cat="strategy"] { --nav-c1: #7c3aed; --nav-c2: #a855f7; }
.nav-item[data-cat="trivia"] { --nav-c1: #0891b2; --nav-c2: #06b6d4; }
.nav-item[data-cat="reflex"] { --nav-c1: #fbbf24; --nav-c2: #f59e0b; }
/* === TOPBAR === */
main { padding: 0; }
.topbar {
position: sticky; top: 0;
background: linear-gradient(135deg, rgba(8, 145, 178, 0.25), rgba(30, 64, 175, 0.3)) !important;
backdrop-filter: blur(20px) saturate(180%);
-webkit-backdrop-filter: blur(20px) saturate(180%);
border-bottom: 1px solid rgba(255, 255, 255, 0.15);
padding: 12px 24px;
display: flex; align-items: center; gap: 16px;
z-index: 50;
box-shadow:
inset 0 0 40px rgba(180, 220, 255, 0.08),
0 4px 32px rgba(6, 182, 212, 0.25);
}
.topbar .menu-btn { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; display: none; }
.search-wrap { flex: 1; max-width: 600px; margin: 0 auto; position: relative; }
.search-wrap input {
width: 100%; background: #0f1729;
border: 1px solid #2a2a4a; color: #fff;
padding: 10px 16px 10px 40px; border-radius: 24px;
font-size: 14px; outline: none;
}
.search-wrap input:focus { border-color: #6b46ff; }
.search-wrap::before { content: '🔍'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; opacity: 0.6; }
.top-actions { display: flex; gap: 8px; align-items: center; position: relative; }
.icon-btn {
background: #2a2a4a; border: none; color: #fff;
width: 36px; height: 36px; border-radius: 50%;
font-size: 16px; cursor: pointer;
display: flex; align-items: center; justify-content: center;
position: relative;
}
.icon-btn:hover { background: #3a3a5a; }
.icon-btn .dot {
position: absolute; top: 4px; right: 4px;
width: 10px; height: 10px; background: #ff3030;
border-radius: 50%; border: 2px solid #16213e;
font-size: 0;
}
.login-btn {
background: #6b46ff; color: #fff; border: none;
padding: 8px 20px; border-radius: 20px;
font-weight: 600; font-size: 13px; cursor: pointer;
display: flex; align-items: center; gap: 6px;
}
.login-btn:hover { background: #5535dd; }
.user-pill {
background: #2a2a4a; color: #fff; border: 2px solid #6b46ff;
padding: 4px 14px 4px 4px; border-radius: 24px;
font-size: 13px; cursor: pointer; display: none;
align-items: center; gap: 8px;
}
.user-pill.show { display: flex; }
.user-avatar {
width: 28px; height: 28px; border-radius: 50%;
background: linear-gradient(135deg, #ff66b3, #6b46ff);
display: flex; align-items: center; justify-content: center;
font-weight: 700; font-size: 13px;
}
/* === DROPDOWN === */
.dropdown {
position: absolute; top: 50px; right: 0;
background: #16213e; border: 1px solid #2a2a4a;
border-radius: 8px; min-width: 280px; max-width: 360px;
box-shadow: 0 10px 40px rgba(0,0,0,0.6);
display: none; z-index: 100;
}
.dropdown.show { display: block; }
.dropdown-head {
padding: 12px 16px;
border-bottom: 1px solid #2a2a4a;
font-weight: 700; font-size: 14px;
display: flex; justify-content: space-between; align-items: center;
}
.dropdown-body { max-height: 360px; overflow-y: auto; }
.dropdown-item {
padding: 10px 16px; font-size: 13px;
border-bottom: 1px solid #1c2748;
display: flex; align-items: center; gap: 10px;
color: #b8b8d4;
}
.dropdown-item:hover { background: #1c2748; color: #fff; cursor: pointer; }
.dropdown-item .time { font-size: 11px; opacity: 0.6; margin-left: auto; }
.dropdown-item .ico { font-size: 20px; }
.dropdown-empty { padding: 20px; text-align: center; opacity: 0.6; font-size: 13px; }
.dropdown-clear {
background: none; border: none; color: #ff66b3;
font-size: 11px; cursor: pointer;
}
/* === SECTIONS === */
section { padding: 24px; max-width: 1400px; }
.section-head { margin-bottom: 16px; }
.section-head h1 { font-size: 22px; margin-bottom: 4px; color: #fff; }
.section-head p { color: #8a8aaa; font-size: 13px; }
/* === GAME GRID === */
.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 14px;
}
.card {
aspect-ratio: 1 / 1;
border-radius: 22px; overflow: hidden;
cursor: pointer; position: relative;
background: linear-gradient(145deg, rgba(8, 145, 178, 0.2), rgba(30, 64, 175, 0.3));
backdrop-filter: blur(14px) saturate(180%);
-webkit-backdrop-filter: blur(14px) saturate(180%);
transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s, border-color 0.2s;
border: 1px solid rgba(255, 255, 255, 0.18);
display: block;
box-shadow:
inset 0 0 30px rgba(180, 220, 255, 0.08),
0 6px 20px rgba(0, 0, 0, 0.3);
}
.card:hover {
transform: translateY(-8px) scale(1.03);
box-shadow:
inset 0 0 40px rgba(180, 220, 255, 0.15),
0 16px 40px rgba(6, 182, 212, 0.5),
0 0 30px rgba(180, 220, 255, 0.4);
border-color: rgba(180, 220, 255, 0.8);
}
.card.disabled { opacity: 0.5; cursor: not-allowed; }
.card.disabled:hover { transform: none; box-shadow: none; border-color: transparent; }
.card-thumb {
width: 100%; height: 100%;
display: flex; align-items: center; justify-content: center;
font-size: 64px; background-size: cover;
text-shadow: 0 4px 10px rgba(0,0,0,0.6);
position: relative; pointer-events: none;
}
.card-thumb::after {
content: ''; position: absolute; inset: 0;
background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.85) 100%);
pointer-events: none;
}
.card-overlay {
position: absolute; bottom: 0; left: 0; right: 0;
padding: 8px 10px; color: #fff; z-index: 2;
pointer-events: none;
}
.card-title { font-size: 13px; font-weight: 700; text-shadow: 0 1px 4px #000; line-height: 1.2; }
.card-cat { font-size: 10px; opacity: 0.85; text-transform: uppercase; }
.badge {
position: absolute; top: 6px; left: 6px;
background: #6b46ff; color: #fff;
padding: 2px 8px; border-radius: 10px;
font-size: 10px; font-weight: 700;
z-index: 2; text-transform: uppercase;
pointer-events: none;
}
.badge.top { background: #ffaa00; color: #000; }
.badge.new { background: #ff3030; }
.badge.originals { background: #6b46ff; }
.badge.soon { background: #555; }
.fav-btn {
position: absolute; top: 6px; right: 6px;
background: rgba(0,0,0,0.6); border: none;
width: 30px; height: 30px; border-radius: 50%;
cursor: pointer; font-size: 16px;
display: flex; align-items: center; justify-content: center;
z-index: 3;
transition: transform 0.1s, background 0.15s;
}
.fav-btn:hover { background: rgba(0,0,0,0.85); transform: scale(1.15); }
.fav-btn.faved { background: rgba(255, 51, 153, 0.9); }
.empty { text-align: center; padding: 60px 20px; color: #8a8aaa; }
.empty .icon { font-size: 64px; margin-bottom: 12px; }
/* === MODAL === */
.modal-bg {
position: fixed; inset: 0;
background: rgba(0,0,0,0.85);
display: none; z-index: 1000;
align-items: center; justify-content: center;
padding: 20px;
}
.modal-bg.show { display: flex; }
.modal {
background: rgba(15, 23, 41, 0.9);
backdrop-filter: blur(30px) saturate(180%);
-webkit-backdrop-filter: blur(30px) saturate(180%);
color: #fff;
border: 1px solid rgba(107, 70, 255, 0.4);
border-radius: 16px;
max-width: 440px; width: 100%;
padding: 24px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 80px rgba(107, 70, 255, 0.3);
}
.modal h2 {
font-size: 22px;
margin-bottom: 8px;
background: linear-gradient(135deg, #ff66b3, #6b46ff);
-webkit-background-clip: text; background-clip: text;
color: transparent;
text-align: center;
}
.modal .modal-sub {
text-align: center; color: #8a8aaa;
font-size: 13px; margin-bottom: 20px;
}
.form-row { margin-bottom: 14px; }
.form-row label {
display: block; font-size: 12px; color: #b8b8d4;
margin-bottom: 4px; text-transform: uppercase;
}
.form-row input {
width: 100%; background: #0f1729;
border: 1px solid #2a2a4a; color: #fff;
padding: 10px 12px; border-radius: 6px;
font-size: 14px; outline: none;
}
.form-row input:focus { border-color: #6b46ff; }
.form-row .err { color: #ff3030; font-size: 11px; margin-top: 4px; min-height: 14px; }
.modal-actions { display: flex; gap: 10px; margin-top: 8px; }
.btn-primary {
flex: 1; background: linear-gradient(135deg, #ff66b3, #6b46ff);
color: #fff; border: none; padding: 12px;
border-radius: 6px; cursor: pointer;
font-weight: 600; font-size: 14px;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary {
background: #2a2a4a; color: #fff; border: 1px solid #6b46ff;
padding: 12px 20px; border-radius: 6px;
cursor: pointer; font-size: 14px;
}
.btn-danger {
background: #ff3030; color: #fff; border: none;
padding: 10px 18px; border-radius: 6px;
cursor: pointer; font-size: 13px; font-weight: 600;
}
.oauth-row { display: flex; gap: 8px; margin-bottom: 14px; }
.oauth-btn {
flex: 1; background: #fff; color: #333; border: none;
padding: 10px; border-radius: 6px; cursor: pointer;
font-size: 13px; font-weight: 600;
display: flex; align-items: center; justify-content: center; gap: 6px;
}
.oauth-btn:hover { background: #f0f0f0; }
.divider {
text-align: center; position: relative;
margin: 16px 0; color: #8a8aaa; font-size: 12px;
}
.divider::before, .divider::after {
content: ''; position: absolute; top: 50%;
width: 40%; height: 1px; background: #2a2a4a;
}
.divider::before { left: 0; }
.divider::after { right: 0; }
/* === PROFILE MODAL === */
.profile-head {
text-align: center; padding-bottom: 16px;
border-bottom: 1px solid #2a2a4a;
margin-bottom: 16px;
}
.profile-avatar {
width: 80px; height: 80px; border-radius: 50%;
background: linear-gradient(135deg, #ff66b3, #6b46ff);
display: flex; align-items: center; justify-content: center;
margin: 0 auto 12px;
font-size: 32px; font-weight: 700;
}
.profile-name { font-size: 20px; font-weight: 700; }
.profile-email { color: #8a8aaa; font-size: 13px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.stat-card {
background: #0f1729; border: 1px solid #2a2a4a;
padding: 12px; border-radius: 6px; text-align: center;
}
.stat-card b { display: block; font-size: 22px; color: #ff66b3; }
.stat-card span { font-size: 11px; color: #8a8aaa; text-transform: uppercase; }
/* === TOAST === */
.toast-wrap { position: fixed; bottom: 20px; right: 20px; z-index: 2000; pointer-events: none; }
.toast {
background: linear-gradient(135deg, #6b46ff, #16213e);
color: #fff; border: 2px solid #ff66b3;
border-radius: 8px; padding: 12px 18px;
box-shadow: 0 4px 20px rgba(0,0,0,0.5);
margin-top: 8px;
animation: tin 0.3s, tout 0.3s 2.7s forwards;
font-size: 13px; min-width: 240px;
}
@keyframes tin { from { transform: translateX(120%); } to { transform: translateX(0); } }
@keyframes tout { to { transform: translateX(120%); opacity: 0; } }
@media (max-width: 768px) {
.layout { grid-template-columns: 1fr; }
.sidebar { position: fixed; top: 0; left: -240px; width: 240px; transition: left 0.3s; z-index: 100; }
.sidebar.open { left: 0; }
.topbar .menu-btn { display: block; }
.grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.login-btn { padding: 8px 12px; }
.login-btn .login-text { display: none; }
}
</style>
</head>
<body>
<!-- Plexus network animated bg canvas -->
<canvas id="plexusBg" style="position:fixed;inset:0;z-index:-5;pointer-events:none;width:100%;height:100%;"></canvas>
<div class="layout">
<aside class="sidebar" id="sidebar">
<!-- Sidebar brand box - customizable (default = GH icon, full size) -->
<div id="sidebarBrand" style="margin:8px;border-radius:22px;overflow:hidden;cursor:pointer;position:relative;aspect-ratio:1/1;width:calc(100% - 16px);background:linear-gradient(145deg, rgba(8,145,178,0.3), rgba(30,64,175,0.4));backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border:1px solid rgba(255,255,255,0.25);display:flex;align-items:center;justify-content:center;box-shadow:inset 0 1px 0 rgba(255,255,255,0.2), 0 6px 24px rgba(6, 182, 212, 0.4);">
<div id="sidebarBrandImg" style="position:absolute;inset:0;background-size:cover;background-position:center;background-image:url('icons/icon-512.png');"></div>
<div id="sidebarBrandDefault" style="position:relative;z-index:2;padding:6px;display:none;align-items:center;gap:10px;">
<span class="brand-icon" style="background:linear-gradient(135deg,#ff66b3,#6b46ff);width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px;flex-shrink:0;">🎮</span>
<span class="brand-text" style="background:linear-gradient(135deg,#ff66b3,#6b46ff);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent;font-size:22px;font-weight:900;">GameHub</span>
</div>
<button id="editBrandBtn" style="display:none;position:absolute;top:6px;right:6px;background:rgba(255,102,179,0.95);color:#fff;border:none;padding:4px 10px;border-radius:6px;cursor:pointer;font-size:11px;font-weight:700;z-index:3;backdrop-filter:blur(4px);">✏️ Edit</button>
</div>
<div class="nav-item active" data-cat="all"><span class="icon">🏠</span> Beranda</div>
<div class="nav-item" data-cat="trending"><span class="icon">⭐</span> Sedang Tren</div>
<div class="nav-item" data-cat="new"><span class="icon">🆕</span> Baru</div>
<div class="nav-item" data-cat="originals"><span class="icon">🎯</span> Originals</div>
<div class="nav-item" data-cat="favorites"><span class="icon">❤️</span> Favorit <span class="nav-count" id="favCount">0</span></div>
<div class="nav-item" data-cat="recent"><span class="icon">🕒</span> Baru Dimainkan</div>
<div class="nav-divider"></div>
<div class="nav-item" data-cat="action"><span class="icon">⚔️</span> Aksi</div>
<div class="nav-item" data-cat="arcade"><span class="icon">🕹️</span> Arcade</div>
<div class="nav-item" data-cat="card"><span class="icon">🃏</span> Kartu</div>
<div class="nav-item" data-cat="word"><span class="icon">📝</span> Kata</div>
<div class="nav-item" data-cat="clicker"><span class="icon">👆</span> Mengeklik</div>
<div class="nav-item" data-cat="board"><span class="icon">♟️</span> Papan</div>
<div class="nav-item" data-cat="puzzle"><span class="icon">🧩</span> Puzzle</div>
<div class="nav-item" data-cat="strategy"><span class="icon">🛡️</span> Strategi</div>
<div class="nav-item" data-cat="trivia"><span class="icon">🎲</span> Trivia</div>
<div class="nav-item" data-cat="reflex"><span class="icon">⚡</span> Refleks</div>
<div class="nav-divider"></div>
<div style="padding:10px 16px 8px;font-size:11px;color:#8a8aaa;text-transform:uppercase;font-weight:700;">📥 Download App</div>
<div style="padding:0 16px 16px;display:flex;flex-direction:column;gap:6px;">
<button id="installPwaBtn" style="display:none;background:linear-gradient(135deg,#ff66b3,#6b46ff);color:#fff;border:none;padding:8px 12px;border-radius:6px;font-size:12px;cursor:pointer;font-weight:600;">📲 Install as App</button>
<a id="playStoreBadge" href="#" style="background:#000;color:#fff;border:1px solid #444;padding:8px 10px;border-radius:6px;font-size:11px;text-decoration:none;display:flex;align-items:center;gap:8px;">
<span style="font-size:20px;">▶️</span>
<span><span style="font-size:9px;opacity:0.7;display:block;">DAPATKAN DI</span><b>Google Play</b></span>
</a>
<a id="appStoreBadge" href="#" style="background:#000;color:#fff;border:1px solid #444;padding:8px 10px;border-radius:6px;font-size:11px;text-decoration:none;display:flex;align-items:center;gap:8px;">
<span style="font-size:20px;">🍎</span>
<span><span style="font-size:9px;opacity:0.7;display:block;">DOWNLOAD DI</span><b>App Store</b></span>
</a>
</div>
</aside>
<main>
<div class="topbar">
<button class="menu-btn" id="menuBtn">☰</button>
<div class="search-wrap">
<input type="text" id="search" placeholder="Cari game dan kategori" />
</div>
<div id="liveClock" style="background:#0f1729;border:1px solid #6b46ff;border-radius:8px;padding:6px 12px;font-family:'Courier New',monospace;text-align:right;line-height:1.2;min-width:140px;">
<div id="clockTime" style="color:#ff66b3;font-size:14px;font-weight:bold;letter-spacing:1px;">--:--:--</div>
<div id="clockDate" style="color:#8a8aaa;font-size:10px;">--, -- --- ---- - WIB</div>
</div>
<div class="top-actions">
<button class="icon-btn" id="notifBtn" title="Notifikasi">🔔<span class="dot" id="notifDot"></span></button>
<button class="icon-btn" id="favBtn" title="Favorit">❤️</button>
<button class="icon-btn" id="profileBtn" title="Profile" style="display:none;">👤</button>
<button class="icon-btn" id="adminBtn" title="Admin Panel" style="display:none;background:#ff66b3;">🛠️</button>
<button class="login-btn" id="loginBtn"><span>👤</span><span class="login-text">Masuk</span></button>
<div class="user-pill" id="userPill">
<div class="user-avatar" id="userAvatar">A</div>
<span id="userName">User</span>
</div>
<!-- Notification dropdown -->
<div class="dropdown" id="notifDrop">
<div class="dropdown-head">
🔔 Notifikasi
<button class="dropdown-clear" id="clearNotif">Hapus semua</button>
</div>
<div class="dropdown-body" id="notifList"></div>
</div>
<!-- Profile dropdown -->
<div class="dropdown" id="profileDrop">
<div class="dropdown-head">👤 Akun Saya</div>
<div class="dropdown-body">
<div class="dropdown-item" id="viewProfile">🪪 Lihat Profil Lengkap</div>
<div class="dropdown-item" id="logoutBtn">🚪 Keluar</div>
</div>
</div>
</div>
</div>
<!-- BANNER KOSONG (admin tempel banner di sini) -->
<div id="topBanner" style="margin:20px 24px 0;border-radius:24px;overflow:hidden;min-height:120px;background:linear-gradient(145deg, rgba(8,145,178,0.2), rgba(30,64,175,0.25));backdrop-filter:blur(14px) saturate(180%);-webkit-backdrop-filter:blur(14px) saturate(180%);border:1px dashed rgba(180,220,255,0.3);display:flex;align-items:center;justify-content:center;cursor:pointer;transition:border-color 0.15s;position:relative;box-shadow:inset 0 0 30px rgba(180,220,255,0.08), 0 6px 20px rgba(0,0,0,0.2);">
<div id="topBannerImg" style="position:absolute;inset:0;background-size:cover;background-position:center;display:none;z-index:1;"></div>
<div id="topBannerEmpty" style="position:relative;z-index:2;text-align:center;color:#666;font-size:13px;padding:20px;width:100%;">
<div style="font-size:32px;margin-bottom:6px;opacity:0.4;">🖼️</div>
<div>Banner kosong — <span id="topBannerHint">login admin untuk tempel banner</span></div>
<!-- Admin controls dipindah ke dalam konten, bukan absolute -->
<div id="bannerAdminControls" style="display:none;justify-content:center;gap:6px;margin-top:10px;">
<button id="editTopBannerBtn" style="background:#ff66b3;color:#fff;border:none;padding:6px 14px;border-radius:6px;cursor:pointer;font-size:12px;font-weight:700;">✏️ Edit Banner</button>
<button id="removeTopBannerBtn" style="background:#ff3030;color:#fff;border:none;padding:6px 14px;border-radius:6px;cursor:pointer;font-size:12px;font-weight:700;display:none;">🗑️ Hapus</button>
</div>
</div>
</div>
<section id="gridSection">
<!-- SECTION HEADER welcome text (no icon) -->
<div class="section-head">
<h1 id="sectionTitle" style="font-size:32px;font-weight:900;background:linear-gradient(135deg,#ff66b3,#6b46ff);-webkit-background-clip:text;background-clip:text;color:transparent;margin-bottom:4px;line-height:1.1;">🎮 Selamat Datang di GameHub</h1>
<p id="sectionSub" style="color:#b8b8d4;font-size:14px;">22+ Game Online Gratis · No Download · Langsung Main</p>
</div>
<div class="grid" id="grid"></div>
</section>
<!-- ========== GAME DETAIL PAGE (hidden, shown via hash routing) ========== -->
<section id="detailSection" style="display:none;padding:24px;">
<button id="backToGrid" style="background:#2a2a4a;color:#fff;border:none;padding:8px 18px;border-radius:8px;cursor:pointer;font-weight:600;margin-bottom:16px;display:flex;align-items:center;gap:8px;">
← Kembali ke Semua Game
</button>
<div style="display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:24px;">
<!-- LEFT: Big preview / iframe -->
<div id="detailPreview" style="aspect-ratio:1/1;border-radius:14px;overflow:hidden;position:relative;background:#0f1729;border:2px solid #6b46ff;">
<div id="detailThumb" style="width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:120px;text-shadow:0 8px 20px rgba(0,0,0,0.6);"></div>
<div id="detailIframeWrap" style="display:none;width:100%;height:100%;">
<iframe id="detailIframe" style="width:100%;height:100%;border:0;" allow="autoplay;fullscreen"></iframe>
</div>
</div>
<!-- RIGHT: Info -->
<div>
<div id="detailBadges" style="display:flex;gap:6px;margin-bottom:8px;flex-wrap:wrap;"></div>
<h1 id="detailTitle" style="font-size:36px;font-weight:900;background:linear-gradient(135deg,#ff66b3,#6b46ff);-webkit-background-clip:text;background-clip:text;color:transparent;margin-bottom:4px;line-height:1.1;"></h1>
<div id="detailMeta" style="color:#8a8aaa;font-size:13px;margin-bottom:14px;"></div>
<p id="detailDesc" style="color:#b8b8d4;font-size:14px;line-height:1.7;margin-bottom:16px;"></p>
<!-- Stats -->
<div id="detailStats" style="display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:16px;"></div>
<!-- Rating -->
<div style="background:#0f1729;border:1px solid #2a2a4a;padding:12px;border-radius:8px;margin-bottom:14px;">
<div style="display:flex;justify-content:space-between;align-items:center;margin-bottom:6px;">
<span style="font-size:12px;color:#8a8aaa;">RATING</span>
<span id="ratingValue" style="font-weight:700;color:#ffaa00;">★ 0.0</span>
</div>
<div id="ratingStars" style="font-size:28px;display:flex;gap:4px;cursor:pointer;"></div>
<div id="ratingCount" style="font-size:11px;color:#666;margin-top:4px;"></div>
</div>
<!-- Big Play Button -->
<button id="bigPlayBtn" style="width:100%;background:linear-gradient(135deg,#ff66b3,#6b46ff);color:#fff;border:none;padding:18px;border-radius:12px;font-size:18px;font-weight:800;cursor:pointer;box-shadow:0 4px 20px rgba(255,102,179,0.4);transition:transform 0.1s;">
▶️ Mainkan Game
</button>
</div>
</div>
<!-- Related Games -->
<div style="margin-top:30px;">
<h2 style="font-size:22px;color:#fff;margin-bottom:12px;">🎮 Game Sejenis</h2>
<div class="grid" id="relatedGrid"></div>
</div>
</section>
</main>
<!-- RIGHT SIDEBAR: Social + Chat -->
<aside class="right-sidebar" style="background:rgba(15,23,41,0.55);backdrop-filter:blur(20px) saturate(180%);-webkit-backdrop-filter:blur(20px) saturate(180%);border-left:1px solid rgba(107,70,255,0.2);padding:12px;display:flex;flex-direction:column;gap:10px;height:100vh;position:sticky;top:0;overflow-y:auto;box-shadow:-4px 0 24px rgba(0,0,0,0.3);">
<!-- Social Media Buttons -->
<a href="https://facebook.com" target="_blank" class="rs-btn" style="background:#fff;color:#1877f2;border-radius:8px;padding:14px;display:flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;font-weight:700;font-size:18px;border:2px solid #1877f2;">
<span style="font-size:28px;">📘</span> <span>Facebook</span>
</a>
<a href="https://wa.me/" target="_blank" class="rs-btn" style="background:#fff;color:#25d366;border-radius:8px;padding:14px;display:flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;font-weight:700;font-size:18px;border:2px solid #25d366;">
<span style="font-size:28px;">💬</span> <span>WhatsApp</span>
</a>
<a href="https://t.me/" target="_blank" class="rs-btn" style="background:#fff;color:#0088cc;border-radius:8px;padding:14px;display:flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;font-weight:700;font-size:18px;border:2px solid #0088cc;">
<span style="font-size:28px;">✈️</span> <span>Telegram</span>
</a>
<div style="background:#0f1729;border:1px solid #ff66b3;border-radius:8px;padding:10px;margin-top:6px;">
<div style="text-align:center;color:#ff66b3;font-size:11px;font-weight:700;margin-bottom:4px;">MODE LOGIN AKUN PENGUNJUNG</div>
<div style="text-align:center;color:#8a8aaa;font-size:10px;">mode lengkap dengan verifikasi akun baru</div>
</div>
<!-- Chat Room (gated by login) -->
<div style="background:#0f1729;border:1px solid #2a2a4a;border-radius:8px;padding:8px;flex:1;display:flex;flex-direction:column;min-height:300px;position:relative;">
<div style="display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;border-bottom:1px solid #2a2a4a;padding-bottom:6px;">
<b style="color:#ff66b3;font-size:13px;">💬 Chat Room GameHub</b>
<span id="chatOnlineCount" style="font-size:10px;color:#00ff88;">● 0 online</span>
</div>
<div id="chatMessages" style="flex:1;overflow-y:auto;font-size:11px;line-height:1.5;max-height:280px;"></div>
<!-- Login overlay (for non-logged users) -->
<div id="chatLoginGate" style="position:absolute;inset:0;background:rgba(15,23,41,0.95);display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;text-align:center;border-radius:8px;">
<div style="font-size:32px;margin-bottom:8px;">🔒</div>
<div style="color:#fff;font-weight:700;font-size:13px;margin-bottom:4px;">Login dulu untuk chat</div>
<div style="color:#8a8aaa;font-size:11px;margin-bottom:14px;">Daftar gratis untuk join chat room</div>
<button id="chatLoginBtn" style="background:linear-gradient(135deg,#ff66b3,#6b46ff);color:#fff;border:none;padding:8px 18px;border-radius:6px;cursor:pointer;font-weight:600;font-size:12px;">Masuk / Daftar</button>
</div>
<div id="chatInputWrap" style="display:none;gap:4px;margin-top:6px;">
<input type="text" id="chatInput" maxlength="200" placeholder="Ketik pesan... (Enter kirim)" style="flex:1;background:#000;border:1px solid #2a2a4a;color:#fff;padding:6px;border-radius:4px;font-size:11px;" />
<button id="chatSendBtn" style="background:#ff66b3;color:#fff;border:none;padding:6px 10px;border-radius:4px;cursor:pointer;font-size:11px;">▶</button>
</div>
<div style="margin-top:6px;font-size:9px;color:#666;text-align:center;">💡 Chat lokal browser. Multi-user real perlu Firebase backend.</div>
</div>
</aside>
</div>
<!-- ============ FLOATING WIDGETS LAYER (admin-managed GIF/images) ============ -->
<div id="floatingWidgetsLayer" style="position:fixed;inset:0;pointer-events:none;z-index:9000;"></div>
<!-- ============ LIGHTNING OVERLAY ============ -->
<div id="lightningOverlay"></div>
<!-- LOGIN MODAL -->
<div class="modal-bg" id="loginModal">
<div class="modal">
<h2>🎮 Masuk ke GameHub</h2>
<!-- Tab switcher -->
<div style="display:flex;gap:0;margin-bottom:14px;border-bottom:2px solid #2a2a4a;">
<button class="auth-tab active" data-tab="login" style="flex:1;background:none;border:none;color:#ff66b3;padding:10px;cursor:pointer;font-weight:700;border-bottom:3px solid #ff66b3;font-size:14px;">🔓 Login</button>
<button class="auth-tab" data-tab="register" style="flex:1;background:none;border:none;color:#8a8aaa;padding:10px;cursor:pointer;font-weight:700;border-bottom:3px solid transparent;font-size:14px;">✨ Daftar Baru</button>
</div>
<!-- LOGIN TAB -->
<div id="loginTab">
<p class="modal-sub">Login untuk simpan favorit, chat, dan progress</p>
<div class="oauth-row">
<button class="oauth-btn" id="oauthGoogle">🟢 Google</button>
<button class="oauth-btn" id="oauthGuest">👤 Guest</button>
<button class="oauth-btn" id="oauthAdmin" style="background:#ff66b3;color:#fff;">🛠️ Admin</button>
</div>
<div class="divider">atau email + password</div>
<div class="form-row">
<label>Email</label>
<input type="email" id="inpEmail" placeholder="email@example.com" autocomplete="email" />
</div>
<div class="form-row">
<label>Password</label>
<input type="password" id="inpPass" placeholder="••••••••" autocomplete="current-password" />
<div class="err" id="errLogin"></div>
</div>
<div class="modal-actions">
<button class="btn-primary" id="doLogin">🔓 Masuk</button>
<button class="btn-secondary" onclick="closeModal('loginModal')">Batal</button>
</div>
<p style="text-align:center;font-size:11px;color:#8a8aaa;margin-top:10px;">
Belum punya akun? <a href="#" id="switchToRegister" style="color:#ff66b3;">Daftar di sini</a>
</p>
</div>
<!-- REGISTER TAB -->
<div id="registerTab" style="display:none;">
<p class="modal-sub">Buat akun baru — gratis, simpan progress di browser ini</p>
<div class="form-row">
<label>Nama Lengkap *</label>
<input type="text" id="regName" placeholder="Nama Anda" maxlength="30" autocomplete="name" />
</div>
<div class="form-row">
<label>Email *</label>
<input type="email" id="regEmail" placeholder="email@example.com" autocomplete="email" />
</div>
<div class="form-row">
<label>Password * (min 6 karakter)</label>
<input type="password" id="regPass" placeholder="••••••••" autocomplete="new-password" />
</div>
<div class="form-row">
<label>Konfirmasi Password *</label>
<input type="password" id="regPass2" placeholder="••••••••" autocomplete="new-password" />
<div class="err" id="errReg"></div>
</div>
<div class="form-row">
<label style="display:flex;align-items:center;gap:6px;font-size:12px;">
<input type="checkbox" id="regAgree" style="width:auto;" />
Saya setuju dengan <a href="#" style="color:#ff66b3;">Syarat & Ketentuan</a>
</label>
</div>
<div class="modal-actions">
<button class="btn-primary" id="doRegister" style="background:linear-gradient(135deg,#00cc66,#6b46ff);">✨ Daftar</button>
<button class="btn-secondary" onclick="closeModal('loginModal')">Batal</button>
</div>
<p style="text-align:center;font-size:11px;color:#8a8aaa;margin-top:10px;">
Sudah punya akun? <a href="#" id="switchToLogin" style="color:#ff66b3;">Login di sini</a>
</p>
</div>
</div>
</div>
<!-- SIDEBAR BRAND EDIT MODAL (admin-only) -->
<div class="modal-bg" id="brandEditModal">
<div class="modal" style="max-width:480px;">
<h2>✏️ Edit Logo Sidebar</h2>
<p class="modal-sub">Ganti logo top-left sidebar dengan gambar/banner Anda. Kosongkan = pakai default GameHub.</p>
<div class="form-row">
<label>URL Logo / Banner (gambar atau GIF)</label>
<input type="text" id="bd_url" placeholder="https://example.com/logo.png" />
<div style="font-size:11px;color:#8a8aaa;margin-top:4px;">💡 Saran: gambar persegi atau landscape, ukuran kecil (max 200x200px)</div>
</div>
<div class="form-row">
<label>Link saat di-klik (opsional)</label>
<input type="text" id="bd_link" placeholder="https://instagram.com/youraccount" />
</div>
<div class="modal-actions">
<button class="btn-primary" id="saveBrandBtn">💾 Simpan</button>
<button class="btn-secondary" id="resetBrandBtn">↩️ Reset Default</button>
<button class="btn-secondary" onclick="closeModal('brandEditModal')">Batal</button>
</div>
</div>
</div>
<!-- TOP BANNER EDIT MODAL (admin-only) -->
<div class="modal-bg" id="bannerEditModal">
<div class="modal" style="max-width:520px;">
<h2>🖼️ Edit Banner</h2>
<p class="modal-sub">Tempel URL gambar/GIF banner. Akan tampil di kotak banner atas.</p>
<div class="form-row">
<label>URL Gambar / GIF *</label>
<input type="text" id="bn_url" placeholder="https://example.com/banner.jpg atau .gif" />
<div style="font-size:11px;color:#8a8aaa;margin-top:4px;">💡 Saran: gambar landscape 1920x300px (atau apapun yang Anda mau)</div>
</div>
<div class="form-row">
<label>Link saat banner di-klik (opsional)</label>
<input type="text" id="bn_link" placeholder="games/cash-king.html atau https://..." />
</div>
<div class="form-row">
<label>Tinggi Banner (opsional)</label>
<input type="number" id="bn_height" min="0" max="800" placeholder="auto" />
<div style="font-size:11px;color:#8a8aaa;margin-top:4px;">💡 Kosongkan / 0 = auto-fit ke aspect ratio gambar (rekomendasi)</div>
</div>
<div class="modal-actions">
<button class="btn-primary" id="saveBannerBtn">💾 Simpan</button>
<button class="btn-secondary" onclick="closeModal('bannerEditModal')">Batal</button>
</div>
</div>
</div>
<!-- EMAIL VERIFICATION MODAL (simulated) -->
<div class="modal-bg" id="verifyModal">
<div class="modal">
<h2>📧 Verifikasi Email</h2>
<p class="modal-sub">Email konfirmasi terkirim (simulated). Masukkan kode 6 digit di bawah.</p>
<div style="background:#0f1729;border:1px solid #00cc66;padding:12px;border-radius:6px;margin-bottom:14px;text-align:center;">
<div style="font-size:11px;color:#8a8aaa;margin-bottom:4px;">📬 Kode verifikasi (untuk demo):</div>
<div id="verifyCode" style="font-size:32px;font-weight:bold;letter-spacing:8px;color:#00ff88;font-family:'Courier New',monospace;">------</div>
<div style="font-size:10px;color:#666;margin-top:4px;">⚠️ Mode demo: kode tampil langsung. Real version: kode dikirim via email.</div>
</div>
<div class="form-row">
<label>Masukkan kode 6 digit:</label>
<input type="text" id="verifyInput" maxlength="6" placeholder="123456" style="text-align:center;font-size:24px;letter-spacing:8px;font-family:monospace;" />
<div class="err" id="errVerify"></div>
</div>
<div class="modal-actions">
<button class="btn-primary" id="doVerify">✅ Verifikasi</button>
<button class="btn-secondary" id="resendCode">🔄 Kirim Ulang</button>
</div>
</div>
</div>
<!-- PROFILE MODAL -->
<div class="modal-bg" id="profileModal">
<div class="modal">
<div class="profile-head">
<div class="profile-avatar" id="pAvatar">A</div>
<div class="profile-name" id="pName">User</div>
<div class="profile-email" id="pEmail"></div>
</div>
<div class="profile-stats">
<div class="stat-card"><b id="sGames">0</b><span>Total Main</span></div>
<div class="stat-card"><b id="sFavs">0</b><span>Favorit</span></div>
<div class="stat-card"><b id="sDays">0</b><span>Hari Ikut</span></div>
</div>
<div class="modal-actions">
<button class="btn-secondary" style="flex:1;" onclick="closeModal('profileModal')">Tutup</button>
<button class="btn-danger" id="doLogout">🚪 Keluar</button>
</div>
</div>
</div>
<!-- ADMIN LOGIN MODAL -->
<div class="modal-bg" id="adminLoginModal">
<div class="modal">
<h2>🛠️ Admin Login</h2>
<p class="modal-sub">Khusus untuk owner site — kelola daftar game & layout</p>
<div class="form-row">
<label>Username</label>
<input type="text" id="adminUser" placeholder="admin" autocomplete="off" value="admin" />
</div>
<div class="form-row">
<label>Password</label>
<input type="password" id="adminPass" placeholder="••••••••" autocomplete="off" />
<div class="err" id="adminErr"></div>
</div>
<div class="form-row">
<label>Nama Tampilan (opsional)</label>
<input type="text" id="adminName" placeholder="Admin / Owner / Nama Anda" autocomplete="off" />
</div>
<div class="modal-actions">
<button class="btn-primary" id="doAdminLogin" style="background:linear-gradient(135deg, #ff66b3, #cc3380);">🔐 Masuk Admin</button>
<button class="btn-secondary" onclick="closeModal('adminLoginModal')">Batal</button>
</div>
<p style="text-align:center;font-size:11px;color:#666;margin-top:12px;" id="adminHint">
💡 Default: username <b style="color:#ff66b3;">admin</b> / password <b style="color:#ff66b3;">GameHub2026!</b>
</p>
</div>
</div>
<!-- ADMIN PANEL MODAL -->
<div class="modal-bg" id="adminPanel">
<div class="modal" style="max-width:920px;">
<h2>🛠️ Admin Panel — Kelola Game</h2>
<p class="modal-sub">Edit lokal disimpan di browser. Klik <b>Export</b> untuk dapat kode → paste ke source code untuk perubahan permanen.</p>
<div style="display:flex;gap:8px;margin-bottom:14px;flex-wrap:wrap;">
<button class="btn-primary" id="addGameBtn" style="flex:0;">➕ Tambah Game</button>
<button class="btn-primary" id="bulkImportBtn" style="flex:0;background:linear-gradient(135deg,#00cc66,#00d4ff);">📥 Bulk Import</button>
<button class="btn-primary" id="layoutBtn" style="flex:0;background:linear-gradient(135deg,#00d4ff,#6b46ff);">🎨 Layout Manual</button>
<button class="btn-primary" id="changePassBtn" style="flex:0;background:linear-gradient(135deg,#ffaa00,#ff3030);">🔑 Ganti Password</button>
<button class="btn-primary" id="addWidgetBtn" style="flex:0;background:linear-gradient(135deg,#a855f7,#ec4899);" title="Tempel GIF/gambar floating yang bisa di-drag & resize">🖼️ Tempel GIF</button>
<button class="btn-secondary" id="exportBtn">📋 Export JSON</button>
<button class="btn-secondary" id="clearCookiesBtn" style="border-color:#00d4ff;color:#00d4ff;" title="Hapus data login, favorit, riwayat main, skor">🍪 Hapus Cookies Player</button>
<button class="btn-secondary" id="ghSyncBtn" style="border-color:#00cc66;color:#00ff88;" title="Setup auto-sync ke GitHub">🔄 GitHub Sync</button>
<button class="btn-secondary" id="adminLogoutBtn" style="margin-left:auto;border-color:#ff3030;color:#ff6666;">🚪 Keluar Admin</button>
</div>
<!-- Multi-select toolbar -->
<div style="background:#0f1729;border:1px solid #2a2a4a;border-radius:6px;padding:10px;margin-bottom:10px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;">
<label style="display:flex;align-items:center;gap:6px;cursor:pointer;font-size:13px;">
<input type="checkbox" id="selectAllGames" style="width:auto;cursor:pointer;" />
<span>Pilih Semua</span>
</label>
<span id="selectedCount" style="font-size:12px;color:#8a8aaa;">0 dipilih</span>
<button class="btn-danger" id="deleteSelectedBtn" style="margin-left:auto;padding:6px 14px;font-size:12px;display:none;">🗑️ Hapus Terpilih</button>
<button class="btn-secondary" id="resetGamesBtn" style="border-color:#ff3030;color:#ff6666;padding:6px 14px;font-size:12px;" title="Reset SEMUA ke daftar default source code">⚠️ Reset Semua ke Default</button>
<span id="autoSyncStatus" style="font-size:11px;color:#8a8aaa;"></span>
</div>
<div id="adminGameList" style="max-height:46vh;overflow-y:auto;background:#0f1729;border-radius:6px;padding:8px;"></div>
<div class="modal-actions" style="margin-top:14px;">
<button class="btn-secondary" style="flex:1;" onclick="closeModal('adminPanel')">Tutup</button>
</div>
</div>
</div>
<!-- GANTI PASSWORD MODAL -->
<div class="modal-bg" id="changePassModal">
<div class="modal">
<h2>🔑 Ganti Password Admin</h2>
<p class="modal-sub">Password baru tersimpan di browser ini. Klik <b>Export</b> untuk dapat kode permanen.</p>
<div class="form-row">
<label>Password Lama</label>
<input type="password" id="oldPass" autocomplete="off" />
</div>
<div class="form-row">
<label>Password Baru (min 4 karakter)</label>
<input type="password" id="newPass" autocomplete="off" />