-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1383 lines (1264 loc) ยท 48.2 KB
/
index.html
File metadata and controls
1383 lines (1264 loc) ยท 48.2 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">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<title>Mystic Hold'em โ Grand Edition</title>
<link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Cinzel:wght@400;600;700&family=Cinzel+Decorative:wght@400;700&display=swap" rel="stylesheet">
<style>
:root {
--gold: #e8c97a;
--gold-bright: #f5e0a0;
--gold-dim: #8a6e35;
--felt-light: #1f5c42;
--felt-dark: #0b2a1c;
--felt-edge: #091f15;
--bg: #04080a;
--glass: rgba(0,0,0,0.55);
--glass-light: rgba(255,255,255,0.04);
--text: #f0e6cc;
--muted: rgba(240,230,204,0.55);
--red-card: #a81c1c;
--black-card: #1a1a2e;
--chip-teal: #2a7a6a;
--shadow-deep: 0 30px 80px rgba(0,0,0,0.95);
--glow-gold: 0 0 30px rgba(232,201,122,0.35), 0 0 60px rgba(232,201,122,0.15);
--glow-win: 0 0 40px rgba(100,255,180,0.5), 0 0 80px rgba(100,255,180,0.2);
--table-w: 1160px;
--table-h: 720px;
--table-scale: 1;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
width: 100%;
min-height: 100%;
height: 100%;
}
body {
width: 100%;
min-height: 100%;
min-height: 100dvh;
background: var(--bg);
overflow: hidden;
display: flex;
flex-direction: column;
align-items: stretch;
font-family: 'Cormorant Garamond', serif;
color: var(--text);
cursor: default;
}
#game-main {
flex: 1;
min-height: 0;
width: 100%;
display: flex;
flex-direction: column;
position: relative;
z-index: 1;
}
/* โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
AMBIENT BACKGROUND
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
#ambient {
position: fixed; inset: 0; z-index: 0; pointer-events: none;
background:
radial-gradient(ellipse 60% 40% at 50% 0%, rgba(20,60,40,0.4) 0%, transparent 70%),
radial-gradient(ellipse 40% 40% at 0% 100%, rgba(10,30,20,0.3) 0%, transparent 60%),
radial-gradient(ellipse 40% 40% at 100% 100%, rgba(10,30,20,0.3) 0%, transparent 60%);
}
#stars {
position: fixed; inset: 0; z-index: 0; pointer-events: none;
background-image:
radial-gradient(1px 1px at 10% 15%, rgba(232,201,122,0.3) 0%, transparent 100%),
radial-gradient(1px 1px at 30% 70%, rgba(232,201,122,0.2) 0%, transparent 100%),
radial-gradient(1px 1px at 60% 25%, rgba(232,201,122,0.25) 0%, transparent 100%),
radial-gradient(1px 1px at 80% 80%, rgba(232,201,122,0.2) 0%, transparent 100%),
radial-gradient(1px 1px at 90% 45%, rgba(232,201,122,0.15) 0%, transparent 100%),
radial-gradient(1.5px 1.5px at 50% 90%, rgba(232,201,122,0.2) 0%, transparent 100%),
radial-gradient(1px 1px at 20% 40%, rgba(255,255,255,0.1) 0%, transparent 100%),
radial-gradient(1px 1px at 75% 10%, rgba(255,255,255,0.12) 0%, transparent 100%);
}
/* โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
TABLE
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
#scene {
position: relative;
z-index: 1;
flex: 1;
min-height: 0;
display: flex;
align-items: center;
justify-content: center;
padding:
calc(8px + env(safe-area-inset-top, 0px))
calc(8px + env(safe-area-inset-right, 0px))
calc(8px + env(safe-area-inset-bottom, 0px))
calc(8px + env(safe-area-inset-left, 0px));
}
#table-scale-outer {
position: relative;
flex-shrink: 0;
width: calc(var(--table-w) * var(--table-scale));
height: calc(var(--table-h) * var(--table-scale));
}
#table-wrap {
position: absolute;
left: 50%;
top: 50%;
width: var(--table-w);
height: var(--table-h);
transform: translate(-50%, -50%) scale(var(--table-scale));
transform-origin: center center;
}
/* Outer rim โ dark wood */
#table-rim {
position: absolute; inset: 0;
border-radius: 50%;
background: radial-gradient(ellipse at 40% 30%, #3a2608, #1a0e02 60%, #0d0700);
box-shadow:
0 60px 120px rgba(0,0,0,0.97),
inset 0 2px 4px rgba(255,200,80,0.1),
inset 0 -2px 6px rgba(0,0,0,0.8);
border: 2px solid rgba(232,201,122,0.12);
}
/* Rail โ padded bumper */
#table-rail {
position: absolute;
inset: 28px;
border-radius: 50%;
background: radial-gradient(ellipse at 40% 25%, #2e1c08, #180e03 70%);
border: 1px solid rgba(232,201,122,0.08);
}
/* Inner gold inlay ring */
#table-inlay {
position: absolute;
inset: 46px;
border-radius: 50%;
border: 2px solid rgba(232,201,122,0.22);
background: transparent;
box-shadow: inset 0 0 0 1px rgba(232,201,122,0.06);
}
/* Felt surface */
#table-felt {
position: absolute;
inset: 50px;
border-radius: 50%;
background:
radial-gradient(ellipse 70% 50% at 50% 30%, #234d37 0%, #1a3e2a 40%, #102a1c 80%, #0c2016 100%);
overflow: hidden;
}
/* Subtle felt texture via repeating pattern */
#table-felt::before {
content: '';
position: absolute; inset: 0;
background-image:
repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0,0,0,0.04) 3px, rgba(0,0,0,0.04) 4px),
repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(0,0,0,0.03) 3px, rgba(0,0,0,0.03) 4px);
border-radius: 50%;
}
/* Center oval logo / rune ring */
#table-logo {
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
width: 280px; height: 180px;
border: 1px solid rgba(232,201,122,0.1);
border-radius: 50%;
display: flex; align-items: center; justify-content: center;
font-family: 'Cinzel Decorative', serif;
font-size: 11px;
color: rgba(232,201,122,0.12);
letter-spacing: 4px;
text-transform: uppercase;
pointer-events: none;
}
#table-logo::before {
content: '';
position: absolute; inset: 6px;
border: 1px solid rgba(232,201,122,0.06);
border-radius: 50%;
}
/* โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
GAME AREA (inside felt)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
#game-area {
position: absolute;
inset: 50px;
border-radius: 50%;
overflow: visible;
}
/* โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CENTER PLAY ZONE
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
#center {
position: absolute;
top: 50%; left: 50%;
transform: translate(-50%, -54%);
display: flex; flex-direction: column; align-items: center; gap: 18px;
z-index: 10;
}
#pot-wrap {
background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(15,35,25,0.8) 100%);
border: 1px solid rgba(232,201,122,0.3);
border-radius: 40px;
padding: 9px 32px;
display: flex; align-items: center; gap: 10px;
font-family: 'Cinzel', serif;
font-size: 15px;
color: var(--gold);
letter-spacing: 1px;
box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(232,201,122,0.15);
transition: all 0.4s;
min-width: 180px;
justify-content: center;
}
#pot-wrap .pot-icon { font-size: 18px; }
#pot-amount { font-weight: 600; font-size: 18px; }
#community-cards {
display: flex; gap: 10px;
min-height: 104px; align-items: center;
}
/* โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CARDS
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
.card {
width: 66px; height: 98px;
border-radius: 9px;
display: flex; flex-direction: column; align-items: center; justify-content: center;
font-weight: 700;
position: relative;
transition: transform 0.25s cubic-bezier(.23,1,.32,1);
flex-shrink: 0;
transform-origin: bottom center;
}
.card:hover { transform: translateY(-4px) scale(1.04); }
.card-face {
background: #faf8f2;
border: 1px solid #ddd;
box-shadow: 0 3px 12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.9);
}
.card-face .rank {
font-size: 22px; line-height: 1;
font-family: 'Cormorant Garamond', serif;
font-weight: 700;
}
.card-face .suit { font-size: 26px; line-height: 1; margin-top: 2px; }
.card-face.red .rank, .card-face.red .suit { color: var(--red-card); }
.card-face.black .rank, .card-face.black .suit { color: var(--black-card); }
/* Corner pips */
.card-face .pip-tl, .card-face .pip-br {
position: absolute; font-size: 10px; font-weight: 700; line-height: 1;
font-family: 'Cinzel', serif;
}
.card-face .pip-tl { top: 5px; left: 7px; text-align: left; }
.card-face .pip-br { bottom: 5px; right: 7px; text-align: right; transform: rotate(180deg); }
.card-face.red .pip-tl, .card-face.red .pip-br { color: var(--red-card); }
.card-face.black .pip-tl, .card-face.black .pip-br { color: var(--black-card); }
.card-back {
background: linear-gradient(135deg, #1a0b2e 0%, #2d1560 50%, #1a0b2e 100%);
border: 2px solid rgba(232,201,122,0.4);
box-shadow: 0 3px 12px rgba(0,0,0,0.6), inset 0 0 20px rgba(0,0,0,0.4);
}
.card-back::before {
content: '';
position: absolute; inset: 5px;
border: 1px solid rgba(232,201,122,0.2);
border-radius: 5px;
}
.card-back::after {
content: 'โฆ';
font-size: 28px;
color: rgba(232,201,122,0.35);
}
.card.comm { width: 72px; height: 106px; }
.card.comm .rank { font-size: 24px; }
.card.comm .suit { font-size: 30px; }
/* Card deal animation */
@keyframes dealIn {
from { transform: scale(0.4) translateY(-60px); opacity: 0; }
to { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes commDeal {
from { transform: scale(0.5) rotate(-8deg); opacity: 0; }
to { transform: scale(1) rotate(0deg); opacity: 1; }
}
.card.anim-deal { animation: dealIn 0.38s cubic-bezier(.23,1,.32,1) forwards; }
.card.anim-comm { animation: commDeal 0.42s cubic-bezier(.23,1,.32,1) forwards; }
/* โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
PLAYERS
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
.player-seat {
position: absolute;
display: flex; flex-direction: column; align-items: center; gap: 8px;
z-index: 20;
transition: all 0.3s;
}
/* Seat positions โ elliptical layout */
#seat-0 { /* Hero โ bottom center */
bottom: -95px; left: 50%; transform: translateX(-50%);
}
#seat-1 { /* Alaric โ top left */
top: 10px; left: 80px;
flex-direction: column-reverse;
}
#seat-2 { /* Sylas โ top right */
top: 10px; right: 80px;
flex-direction: column-reverse;
}
/* Avatar */
.avatar-ring {
width: 72px; height: 72px; border-radius: 50%;
border: 2px solid rgba(232,201,122,0.25);
display: flex; align-items: center; justify-content: center;
background: radial-gradient(circle at 35% 35%, #1e1e2e, #0c0c18);
font-size: 36px;
transition: all 0.4s cubic-bezier(.23,1,.32,1);
box-shadow: 0 4px 20px rgba(0,0,0,0.6);
position: relative;
flex-shrink: 0;
}
.player-seat.active .avatar-ring {
border-color: var(--gold);
box-shadow: var(--glow-gold);
transform: scale(1.08);
}
.player-seat.folded .avatar-ring { opacity: 0.45; filter: grayscale(0.6); }
.player-seat.winner .avatar-ring {
border-color: #64ffb4;
box-shadow: var(--glow-win);
}
/* Dealer button */
.dealer-btn {
position: absolute;
bottom: -3px; right: -3px;
width: 22px; height: 22px;
border-radius: 50%;
background: var(--gold);
color: #000;
font-family: 'Cinzel', serif;
font-size: 9px;
font-weight: 700;
display: none;
align-items: center; justify-content: center;
box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.player-seat.is-dealer .dealer-btn { display: flex; }
/* Blind labels */
.blind-badge {
position: absolute;
top: -3px; left: -3px;
width: 22px; height: 22px;
border-radius: 50%;
font-family: 'Cinzel', serif;
font-size: 8px; font-weight: 600;
display: none; align-items: center; justify-content: center;
box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}
.blind-badge.sb { background: #3a6a8a; color: #c0e0f0; display: flex; }
.blind-badge.bb { background: #8a3a3a; color: #f0c0c0; display: flex; }
/* Nameplate */
.nameplate {
background: linear-gradient(135deg, rgba(0,0,0,0.75), rgba(10,25,18,0.85));
border: 1px solid rgba(232,201,122,0.18);
border-radius: 20px;
padding: 7px 14px;
text-align: center;
min-width: 120px;
box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.nameplate .pname {
font-family: 'Cinzel', serif;
font-size: 12px; font-weight: 600;
color: var(--gold);
letter-spacing: 0.5px;
}
.nameplate .pchips {
font-size: 13px; color: var(--muted);
margin-top: 2px;
}
.nameplate .pchips span { color: var(--text); font-weight: 600; }
.nameplate .paction {
font-size: 11px; height: 16px;
color: var(--gold-bright);
font-style: italic;
margin-top: 2px;
letter-spacing: 0.5px;
transition: all 0.3s;
}
/* Hole cards โ inline in seat */
.hole-cards {
display: flex; gap: 5px;
min-height: 98px; align-items: center;
justify-content: center;
}
/* โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
BET CHIPS displayed near players
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
.bet-chip {
background: radial-gradient(circle at 35% 35%, #3a9a7a, #0f4535);
border: 2px solid rgba(232,201,122,0.4);
border-radius: 50%;
width: 44px; height: 44px;
display: flex; align-items: center; justify-content: center;
font-family: 'Cinzel', serif;
font-size: 10px; font-weight: 600;
color: var(--gold);
box-shadow: 0 2px 8px rgba(0,0,0,0.5);
position: absolute;
pointer-events: none;
transition: all 0.4s;
z-index: 15;
}
/* bet chip positions relative to seat */
#seat-0 .bet-chip { top: -55px; left: 50%; transform: translateX(-50%); }
#seat-1 .bet-chip { bottom: -55px; right: -10px; }
#seat-2 .bet-chip { bottom: -55px; left: -10px; }
/* โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
STAGE LABEL
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
#stage-label {
position: absolute;
top: -58px; left: 50%;
transform: translateX(-50%);
font-family: 'Cinzel Decorative', serif;
font-size: 24px;
color: var(--gold);
text-shadow: 0 0 30px rgba(232,201,122,0.6), 0 2px 4px rgba(0,0,0,0.9);
letter-spacing: 2px;
white-space: nowrap;
text-align: center;
z-index: 30;
transition: opacity 0.5s;
pointer-events: none;
}
/* โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
HAND RESULT BANNER
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
#hand-result {
position: fixed;
top: 50%; left: 50%;
transform: translate(-50%, -50%) scale(0.8);
background: linear-gradient(135deg, rgba(5,15,10,0.97), rgba(10,25,18,0.97));
border: 1px solid rgba(232,201,122,0.4);
border-radius: 20px;
padding: 32px 56px;
text-align: center;
z-index: 100;
opacity: 0;
pointer-events: none;
transition: all 0.5s cubic-bezier(.23,1,.32,1);
box-shadow: 0 20px 60px rgba(0,0,0,0.9), inset 0 1px 0 rgba(232,201,122,0.2);
width: 100%;
max-width: min(420px, calc(100vw - 24px));
box-sizing: border-box;
}
#hand-result.show {
opacity: 1; pointer-events: all;
transform: translate(-50%, -50%) scale(1);
}
@media (max-width: 480px) {
#hand-result {
padding: 22px 20px;
border-radius: 16px;
}
#hand-result .result-title { font-size: 22px; }
#hand-result .result-sub { font-size: 15px; margin-bottom: 16px; }
#hand-result .result-hands { font-size: 13px; margin-bottom: 18px; }
}
#hand-result .result-title {
font-family: 'Cinzel Decorative', serif;
font-size: 28px;
color: var(--gold-bright);
margin-bottom: 10px;
text-shadow: 0 0 20px rgba(232,201,122,0.5);
}
#hand-result .result-sub {
font-size: 17px; color: var(--muted); font-style: italic;
margin-bottom: 22px;
font-family: 'Cormorant Garamond', serif;
}
#hand-result .result-hands {
font-size: 14px; color: rgba(232,201,122,0.6);
letter-spacing: 0.5px;
margin-bottom: 26px;
font-family: 'Cinzel', serif;
line-height: 1.8;
}
/* โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
ACTION BAR
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
#action-bar {
position: fixed;
bottom: calc(12px + env(safe-area-inset-bottom, 0px));
left: 50%;
max-width: calc(100vw - 16px);
transform: translateX(-50%) translateY(140px);
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: center;
gap: 10px;
row-gap: 10px;
background: linear-gradient(135deg, rgba(4,8,6,0.96), rgba(8,20,14,0.96));
border: 1px solid rgba(232,201,122,0.25);
border-radius: 60px;
padding: 14px 24px;
box-shadow: 0 8px 40px rgba(0,0,0,0.8), inset 0 1px 0 rgba(232,201,122,0.1);
transition: transform 0.55s cubic-bezier(.175,.885,.32,1.275);
z-index: 200;
-webkit-tap-highlight-color: transparent;
}
#action-bar.up { transform: translateX(-50%) translateY(0); }
@media (max-width: 480px) {
#action-bar {
border-radius: 28px;
padding: 10px 14px;
gap: 8px;
row-gap: 8px;
}
}
.action-btn {
font-family: 'Cinzel', serif;
font-size: 13px; font-weight: 600;
letter-spacing: 0.5px;
padding: 11px 24px;
min-height: 44px;
border-radius: 40px;
border: 1px solid rgba(232,201,122,0.3);
background: transparent;
color: var(--gold);
cursor: pointer;
transition: all 0.25s;
white-space: nowrap;
touch-action: manipulation;
}
.action-btn:hover:not(:disabled) {
background: rgba(232,201,122,0.12);
border-color: var(--gold);
transform: translateY(-2px);
box-shadow: 0 4px 16px rgba(232,201,122,0.2);
}
.action-btn:active:not(:disabled) { transform: translateY(0); }
.action-btn:disabled { opacity: 0.3; cursor: default; }
.action-btn.primary {
background: linear-gradient(135deg, rgba(232,201,122,0.2), rgba(180,150,80,0.15));
border-color: var(--gold);
}
#btn-fold { border-color: rgba(160,60,60,0.5); color: #e07070; }
#btn-fold:hover:not(:disabled) {
background: rgba(160,60,60,0.15);
border-color: #e07070;
box-shadow: 0 4px 16px rgba(160,60,60,0.2);
}
.divider { width: 1px; height: 28px; background: rgba(232,201,122,0.15); flex-shrink: 0; }
.raise-group { display: flex; align-items: center; gap: 6px; }
.raise-label { font-family: 'Cinzel', serif; font-size: 11px; color: var(--muted); letter-spacing: 0.5px; }
#raise-input {
width: 72px;
min-height: 44px;
padding: 10px 10px;
border-radius: 30px;
border: 1px solid rgba(232,201,122,0.25);
background: rgba(0,0,0,0.3);
color: var(--gold);
font-size: 14px;
font-family: 'Cormorant Garamond', serif;
font-weight: 600;
text-align: center;
outline: none;
transition: border-color 0.25s;
touch-action: manipulation;
}
#raise-input:focus { border-color: var(--gold); }
@media (max-width: 480px) {
#raise-input { font-size: 16px; }
}
#btn-next {
background: linear-gradient(135deg, rgba(232,201,122,0.25), rgba(180,150,80,0.2));
border-color: var(--gold);
display: none;
}
/* โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
TOAST NOTIFICATIONS
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
#toast {
position: fixed;
top: calc(30px + env(safe-area-inset-top, 0px));
left: 50%;
max-width: calc(100vw - 24px);
transform: translateX(-50%) translateY(-80px);
background: rgba(10,20,15,0.92);
border: 1px solid rgba(232,201,122,0.3);
border-radius: 30px;
padding: 10px 28px;
font-family: 'Cinzel', serif;
font-size: 13px;
color: var(--gold);
letter-spacing: 0.5px;
transition: transform 0.4s cubic-bezier(.23,1,.32,1);
z-index: 300;
pointer-events: none;
}
#toast.show { transform: translateX(-50%) translateY(0); }
/* โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
COIN ANIMATION (flies into pot)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
@keyframes coinFly {
0% { transform: scale(1) translate(0, 0); opacity: 1; }
100% { transform: scale(0.4) translate(var(--cx), var(--cy)); opacity: 0; }
}
.coin-fly {
position: fixed; z-index: 50; pointer-events: none;
font-size: 22px;
animation: coinFly 0.6s cubic-bezier(.4,0,.6,1) forwards;
}
/* โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
CARD SHIMMER on win
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
@keyframes cardShimmer {
0%,100% { box-shadow: 0 3px 12px rgba(0,0,0,0.5); }
50% { box-shadow: 0 0 20px rgba(100,255,180,0.6), 0 0 40px rgba(100,255,180,0.3); }
}
.card.winning { animation: cardShimmer 0.8s ease-in-out 4; }
/* โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
ELIMINATED badge
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
.elim-badge {
position: absolute; inset: 0;
border-radius: 50%;
background: rgba(0,0,0,0.65);
display: none;
align-items: center; justify-content: center;
font-size: 11px; font-family: 'Cinzel', serif;
color: rgba(200,50,50,0.8);
letter-spacing: 0.5px;
}
.player-seat.eliminated .elim-badge { display: flex; }
.player-seat.eliminated .avatar-ring { border-color: rgba(150,0,0,0.3); }
/* โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
MISC DECK ORNAMENT
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
#deck-ornament {
position: absolute;
top: 18px; left: 50%;
transform: translateX(-50%);
display: flex; flex-direction: column; align-items: center; gap: 3px;
pointer-events: none; z-index: 5;
}
.deck-card-layer {
width: 52px; height: 76px;
border-radius: 6px;
border: 1px solid rgba(232,201,122,0.25);
background: linear-gradient(135deg, #1a0b2e, #2a1550);
box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.deck-card-layer:nth-child(1) { transform: translateY(8px) rotate(-2deg); opacity: 0.4; }
.deck-card-layer:nth-child(2) { transform: translateY(4px) rotate(-1deg); opacity: 0.6; }
.deck-card-layer:nth-child(3) { transform: translateY(0); opacity: 0.85; display: flex; align-items: center; justify-content: center; }
.deck-glyph { font-size: 22px; color: rgba(232,201,122,0.4); }
/* โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
SCROLLBAR hide
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ */
::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) {
.card.anim-deal,
.card.anim-comm { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
.card.winning { animation: none !important; }
.coin-fly { animation-duration: 0.01ms !important; }
}
</style>
</head>
<body>
<div id="ambient"></div>
<div id="stars"></div>
<div id="game-main">
<div id="scene">
<div id="table-scale-outer">
<div id="table-wrap">
<div id="table-rim"></div>
<div id="table-rail"></div>
<div id="table-inlay"></div>
<div id="table-felt">
<div id="table-logo">Mystic Hold'em ยท Grand Edition</div>
</div>
<!-- Deck ornament -->
<div id="deck-ornament">
<div class="deck-card-layer"></div>
<div class="deck-card-layer"></div>
<div class="deck-card-layer"><span class="deck-glyph">โฆ</span></div>
</div>
<!-- Stage message -->
<div id="stage-label">Entering the Arenaโฆ</div>
<!-- Game area -->
<div id="game-area">
<!-- Center -->
<div id="center">
<div id="pot-wrap">
<span class="pot-icon">๐บ</span>
<span>Pot</span>
<span id="pot-amount">0</span>
<span style="font-size:12px;color:var(--muted)">๐ช</span>
</div>
<div id="community-cards"></div>
</div>
<!-- Seat 0 โ Hero (bottom) -->
<div class="player-seat" id="seat-0">
<div class="avatar-ring">
๐ฎ
<div class="dealer-btn">D</div>
<div class="blind-badge" id="blind-0"></div>
<div class="elim-badge">OUT</div>
</div>
<div class="nameplate">
<div class="pname">Hero</div>
<div class="pchips">๐ช <span id="chips-0">1000</span></div>
<div class="paction" id="action-0"></div>
</div>
<div class="hole-cards" id="cards-0"></div>
<div class="bet-chip" id="bet-chip-0" style="display:none"></div>
</div>
<!-- Seat 1 โ Alaric (top left) -->
<div class="player-seat" id="seat-1">
<div class="avatar-ring">
๐งโโ๏ธ
<div class="dealer-btn">D</div>
<div class="blind-badge" id="blind-1"></div>
<div class="elim-badge">OUT</div>
</div>
<div class="nameplate">
<div class="pname">Alaric</div>
<div class="pchips">๐ช <span id="chips-1">1000</span></div>
<div class="paction" id="action-1"></div>
</div>
<div class="hole-cards" id="cards-1"></div>
<div class="bet-chip" id="bet-chip-1" style="display:none"></div>
</div>
<!-- Seat 2 โ Sylas (top right) -->
<div class="player-seat" id="seat-2">
<div class="avatar-ring">
๐งโโ๏ธ
<div class="dealer-btn">D</div>
<div class="blind-badge" id="blind-2"></div>
<div class="elim-badge">OUT</div>
</div>
<div class="nameplate">
<div class="pname">Sylas</div>
<div class="pchips">๐ช <span id="chips-2">1000</span></div>
<div class="paction" id="action-2"></div>
</div>
<div class="hole-cards" id="cards-2"></div>
<div class="bet-chip" id="bet-chip-2" style="display:none"></div>
</div>
</div><!-- /game-area -->
</div><!-- /table-wrap -->
</div><!-- /table-scale-outer -->
</div><!-- /scene -->
</div><!-- /game-main -->
<!-- Hand result overlay -->
<div id="hand-result">
<div class="result-title" id="result-title"></div>
<div class="result-sub" id="result-sub"></div>
<div class="result-hands" id="result-hands"></div>
<button class="action-btn primary" onclick="startNewHand()" style="margin: 0 auto; display:block; min-width:160px;">
Next Hand โบ
</button>
</div>
<!-- Action bar -->
<div id="action-bar">
<button class="action-btn" id="btn-fold" onclick="playerAction('fold')">Fold</button>
<div class="divider"></div>
<button class="action-btn" id="btn-call" onclick="playerAction('call')">Check</button>
<div class="divider"></div>
<div class="raise-group">
<span class="raise-label">Raise</span>
<input type="number" id="raise-input" value="40" min="20">
<button class="action-btn" id="btn-raise" onclick="playerAction('raise')">โบ</button>
</div>
</div>
<!-- Toast -->
<div id="toast"></div>
<script>
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// CONSTANTS & STATE
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
const SUITS = ['โ ','โฅ','โฆ','โฃ'];
const RANKS = ['2','3','4','5','6','7','8','9','T','J','Q','K','A'];
const RANK_VAL = Object.fromEntries(RANKS.map((r,i) => [r,i+2]));
const SB = 10, BB = 20;
const NAMES = ['Hero','Alaric','Sylas'];
const EMOJIS = ['๐ฎ','๐งโโ๏ธ','๐งโโ๏ธ'];
const HUMAN = [true, false, false];
let deck=[], community=[], pot=0, currentBet=0, stage='pre';
let dealerIdx=0, activeIdx=0, actionStartIdx=0;
let players;
let toastTimer=null;
function initPlayers(){
players = NAMES.map((n,i)=>({
id:i, name:n, chips:1000, cards:[],
bet:0, folded:false, allIn:false,
isHuman: HUMAN[i]
}));
}
initPlayers();
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// DECK
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function buildDeck(){
deck=[];
for(let s of SUITS) for(let r of RANKS)
deck.push({suit:s, rank:r, val:RANK_VAL[r], color:(s==='โฅ'||s==='โฆ')?'red':'black'});
for(let i=deck.length-1;i>0;i--){
const j=(Math.random()*(i+1))|0; [deck[i],deck[j]]=[deck[j],deck[i]];
}
}
const pop=()=>deck.pop();
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// HAND EVALUATOR
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function evalBest(hole, comm){
const all=[...hole,...comm];
let best=null;
// All C(7,5) combos
for(let i=0;i<all.length;i++) for(let j=i+1;j<all.length;j++){
const five=all.filter((_,k)=>k!==i&&k!==j);
const s=score5(five);
if(!best || cmp(s,best)>0) best=s;
}
return best || score5(all.slice(0,5));
}
function score5(c){
const v=c.map(x=>x.val).sort((a,b)=>b-a);
const su=c.map(x=>x.suit);
const fl=su.every(s=>s===su[0]);
let str=false, strHi=0;
if(v[0]-v[4]===4 && new Set(v).size===5){ str=true; strHi=v[0]; }
if(!str && v[0]===14 && v[1]===5 && v[2]===4 && v[3]===3 && v[4]===2){ str=true; strHi=5; }
const cnt={}; v.forEach(x=>cnt[x]=(cnt[x]||0)+1);
const g=Object.entries(cnt).map(([x,n])=>({v:+x,n})).sort((a,b)=>b.n-a.n||b.v-a.v);
if(fl&&str) return {r:8,tb:[strHi],name:'Straight Flush'};
if(g[0].n===4) return {r:7,tb:[g[0].v,g[1].v],name:'Four of a Kind'};
if(g[0].n===3&&g[1]?.n===2) return {r:6,tb:[g[0].v,g[1].v],name:'Full House'};
if(fl) return {r:5,tb:v,name:'Flush'};
if(str) return {r:4,tb:[strHi],name:'Straight'};
if(g[0].n===3) return {r:3,tb:[g[0].v,...g.slice(1).map(x=>x.v)],name:'Three of a Kind'};
if(g[0].n===2&&g[1]?.n===2) return {r:2,tb:[g[0].v,g[1].v,...g.slice(2).map(x=>x.v)],name:'Two Pair'};
if(g[0].n===2) return {r:1,tb:[g[0].v,...g.slice(1).map(x=>x.v)],name:'One Pair'};
return {r:0,tb:v,name:'High Card'};
}
function cmp(a,b){
if(a.r!==b.r) return a.r-b.r;
for(let i=0;i<Math.max(a.tb.length,b.tb.length);i++){
const d=(a.tb[i]||0)-(b.tb[i]||0);
if(d) return d;
}
return 0;
}
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// BOT AI โ personality-driven
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function botDecide(p){
const diff = currentBet - p.bet;
const r = Math.random();
const potOdds = diff / (pot + diff + 1);
// Alaric: cautious sage โ calls often, rarely bluffs
// Sylas: aggressive rogue โ raises more, bluffs more
const aggression = p.id===2 ? 0.55 : 0.3;
const bluffRate = p.id===2 ? 0.18 : 0.07;
if(diff===0){
if(r < aggression){ const amt=BB*(1+Math.floor(r*3)); return {a:'raise',v:currentBet+amt}; }
return {a:'call'};
}
if(diff > p.chips*0.5 && r < 0.6) return {a:'fold'};
if(potOdds > 0.45 && r > bluffRate) return {a:'fold'};
if(r < bluffRate && p.chips > diff + BB*2){
return {a:'raise', v:currentBet + BB*2};
}
return {a:'call'};
}
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
// UI HELPERS
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
function sleep(ms){ return new Promise(r=>setTimeout(r,ms)); }
function setStage(txt){
const el=document.getElementById('stage-label');
el.style.opacity='0';
setTimeout(()=>{ el.textContent=txt; el.style.opacity='1'; },300);
}
function toast(msg, dur=2200){
const el=document.getElementById('toast');
el.textContent=msg;
el.classList.add('show');
if(toastTimer) clearTimeout(toastTimer);
toastTimer=setTimeout(()=>el.classList.remove('show'), dur);
}
function setAction(id, txt){
document.getElementById(`action-${id}`).textContent = txt;
}
function clearAllActions(){
players.forEach(p=>setAction(p.id,''));
}
function renderChips(){
players.forEach(p=>{
document.getElementById(`chips-${p.id}`).textContent = p.chips;
});
document.getElementById('pot-amount').textContent = pot;
}
function renderBetChips(){
players.forEach(p=>{
const el=document.getElementById(`bet-chip-${p.id}`);
if(p.bet>0){ el.style.display='flex'; el.textContent=p.bet; }
else { el.style.display='none'; }
});
}
function updateSeats(){
players.forEach(p=>{
const seat=document.getElementById(`seat-${p.id}`);
seat.classList.toggle('active', activeIdx===p.id && stage!=='done');
seat.classList.toggle('folded', p.folded);
seat.classList.toggle('eliminated', p.chips<=0 && p.cards.length===0);
});
}