-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
568 lines (511 loc) · 33.1 KB
/
index.html
File metadata and controls
568 lines (511 loc) · 33.1 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
<!DOCTYPE html>
<html lang="th">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sim-Thailand 2569: สร้างประเทศในฝัน</title>
<style>
/* Alien Floating Animation */
@keyframes alien-float {
0% {
transform: translate(-50vw, 20vh) rotate(0deg) scale(0.8);
opacity: 0;
}
10% {
opacity: 1;
}
25% {
transform: translate(-10vw, 40vh) rotate(45deg) scale(1.1);
}
50% {
transform: translate(35vw, 15vh) rotate(180deg) scale(1.3);
}
75% {
transform: translate(80vw, 50vh) rotate(270deg) scale(1);
}
90% {
opacity: 1;
}
100% {
transform: translate(120vw, 25vh) rotate(360deg) scale(0.9);
opacity: 0;
}
}
.alien-visitor {
position: fixed;
top: 0;
left: 0;
z-index: 5;
pointer-events: none;
color: #34d399;
/* emerald-400 */
font-size: 3rem;
filter: drop-shadow(0 0 20px rgba(52, 211, 153, 0.6));
animation: alien-float 30s linear infinite;
animation-delay: 0s;
}
</style>
<!-- External Libraries -->
<link
href="https://fonts.googleapis.com/css2?family=Anuphan:wght@300;400;500;600;700&family=Press+Start+2P&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<script src="https://cdn.jsdelivr.net/npm/canvas-confetti@1.6.0/dist/confetti.browser.min.js"></script>
</head>
<body class="bg-slate-950 min-h-screen flex flex-col font-sans text-slate-200">
<div class="future-grid"></div>
<!-- HEADER / HUD -->
<header id="hud"
class="fixed top-0 w-full z-40 bg-slate-900/95 backdrop-blur border-b border-slate-800 shadow-lg hidden transition-transform duration-300">
<div class="max-w-6xl mx-auto px-4 py-3 flex justify-between items-center">
<div class="flex items-center gap-3">
<div
class="w-10 h-10 bg-gradient-to-br from-blue-600 to-indigo-600 rounded-lg flex items-center justify-center shadow-lg">
<i class="fa-solid fa-city text-white text-sm"></i>
</div>
<div>
<h1 class="font-bold text-sm sm:text-base text-white leading-tight">Sim-Thailand 2569</h1>
<p class="text-xs text-slate-400">Phase <span id="phase-counter">1/6</span></p>
</div>
</div>
<!-- Status Bars -->
<div class="flex gap-1.5 sm:gap-3 md:gap-4 flex-1 justify-end">
<div class="w-14 sm:w-20 md:w-24 lg:w-28 flex-shrink-0">
<div class="flex justify-between items-center mb-1 text-slate-400">
<span class="text-xs sm:text-sm md:text-base lg:text-lg font-bold flex-shrink-0">ศก.</span>
<span id="val-eco" class="text-xs sm:text-sm md:text-base font-bold leading-none pr-2">10</span>
</div>
<div class="h-1.5 sm:h-2 bg-slate-800 rounded-full overflow-hidden">
<div id="bar-eco" class="meter-bar bg-emerald-500" style="width: 10%"></div>
</div>
</div>
<div class="w-14 sm:w-20 md:w-24 lg:w-28 flex-shrink-0">
<div class="flex justify-between items-center mb-1 text-slate-400">
<span class="text-xs sm:text-sm md:text-base lg:text-lg font-bold flex-shrink-0">สังคม</span>
<span id="val-soc" class="text-xs sm:text-sm md:text-base font-bold leading-none pr-2">10</span>
</div>
<div class="h-1.5 sm:h-2 bg-slate-800 rounded-full overflow-hidden">
<div id="bar-soc" class="meter-bar bg-blue-500" style="width: 10%"></div>
</div>
</div>
<div class="w-14 sm:w-20 md:w-24 lg:w-28 flex-shrink-0">
<div class="flex justify-between items-center mb-1 text-slate-400">
<span class="text-xs sm:text-sm md:text-base lg:text-lg font-bold flex-shrink-0">ปชต.</span>
<span id="val-lib" class="text-xs sm:text-sm md:text-base font-bold leading-none pr-2">10</span>
</div>
<div class="h-1.5 sm:h-2 bg-slate-800 rounded-full overflow-hidden">
<div id="bar-lib" class="meter-bar bg-orange-500" style="width: 10%"></div>
</div>
</div>
<div class="w-14 sm:w-20 md:w-24 lg:w-28 flex-shrink-0">
<div class="flex justify-between items-center mb-1 text-slate-400">
<span class="text-xs sm:text-sm md:text-base lg:text-lg font-bold flex-shrink-0">งบ</span>
<span id="val-budget"
class="text-xs sm:text-sm md:text-base font-bold leading-none pr-2">100</span>
</div>
<div class="h-1.5 sm:h-2 bg-slate-800 rounded-full overflow-hidden">
<div id="bar-budget" class="meter-bar bg-green-500" style="width: 100%"></div>
</div>
</div>
</div>
</div>
</header>
<!-- MAIN CONTENT -->
<main class="flex-grow flex flex-col items-center justify-center w-full max-w-5xl mx-auto px-4">
<!-- INTRO SCREEN -->
<div id="screen-intro"
class="flex flex-col items-center text-center w-full max-w-xl slide-up py-10 min-h-screen justify-center">
<div class="mb-8 floating inline-block relative animate-float">
<div class="absolute inset-0 bg-blue-500 blur-[60px] opacity-20 rounded-full animate-pulse"></div>
<i
class="fa-solid fa-map-location-dot text-8xl md:text-9xl text-slate-200 drop-shadow-2xl relative z-10"></i>
</div>
<div class="new-release-badge">New Release 3.3.0 – Post-Election Freedom</div>
<!-- Alien Visitor -->
<div class="alien-visitor">
<i class="fa-solid fa-user-astronaut"></i>
</div>
<h1 class="text-4xl md:text-6xl font-extrabold text-white mb-8 leading-tight tracking-tight">
Sim-Thailand <span
class="text-transparent bg-clip-text bg-gradient-to-r from-blue-400 via-emerald-400 to-blue-400 animate-text-shine">2569</span>
</h1>
<p class="text-slate-400 text-base md:text-lg mb-8 leading-relaxed font-light px-4">
จำลองการบริหารประเทศผ่าน 6 วาระเร่งด่วน<br>
จากนโยบายจริงของ 18 พรรคการเมือง
</p>
<div class="mb-10 p-4 bg-amber-500/10 border border-amber-500/20 rounded-2xl max-w-md mx-auto">
<p class="text-amber-200/80 text-xs leading-relaxed">
<i class="fa-solid fa-circle-exclamation mr-1"></i>
<strong>คำเตือน:</strong>
ผลลัพธ์จากการจำลองนี้อ้างอิงจากข้อมูลนโยบายและสถิติที่รวบรวมจากอินเทอร์เน็ต
เพื่อวัตถุประสงค์ทางการศึกษาและการเปรียบเทียบเท่านั้น
ไม่ใช่การชี้นำหรือการตัดสินใจทางการเมืองอย่างเป็นทางการ
</p>
</div>
<!-- Space Background Animation -->
<div id="space-background"></div>
<button onclick="game.start()"
class="group relative overflow-hidden px-12 py-5 bg-blue-600 hover:bg-blue-500 text-white font-bold rounded-full shadow-2xl shadow-blue-900/40 transition-all hover:scale-105 active:scale-95 text-xl w-full sm:w-auto z-10 animate-[pulse_3s_ease-in-out_infinite] animate-button-shine">
<span
class="absolute inset-0 rounded-full bg-white/20 animate-ping opacity-0 group-hover:opacity-30"></span>
<span class="flex items-center justify-center gap-2 relative">
<i class="fa-solid fa-play"></i> เริ่มสร้างประเทศ
</span>
</button>
<div class="flex flex-col sm:flex-row gap-3 justify-center mt-6">
<a href="https://thalay.eu/policy2569" target="_blank"
class="inline-block px-6 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded-full transition font-bold shadow-md no-underline">
<i class="fa-solid fa-book-open mr-2"></i> ดูนโยบายทุกพรรค
</a>
<a href="https://thalay.eu/poll2569" target="_blank"
class="inline-block px-6 py-2 bg-emerald-600 hover:bg-emerald-700 text-white rounded-full transition font-bold shadow-md no-underline">
<i class="fa-solid fa-chart-pie mr-2"></i> ดูผลโหวตพรรค และ นโยบายที่คนชอบ
</a>
</div>
<div class="w-full max-w-[200px] mx-auto mt-4 mb-2 border-t border-slate-800/40"></div>
<a href="https://findyourshade.autobahn.bot/" target="_blank"
class="inline-flex items-center justify-center gap-2 px-6 py-2 bg-slate-700 hover:bg-slate-600 text-slate-200 rounded-full transition font-bold shadow-md no-underline">
<i class="fa-solid fa-play mr-2"></i> เล่นภาคใหม่ ฉบับหลังเลือกตั้ง
</a>
<!-- Visual Separator -->
<div class="w-full max-w-[200px] mx-auto mt-12 mb-8 border-t border-slate-800/60"></div>
<!-- Footer Info Group -->
<div class="flex flex-col items-center gap-8">
<!-- Data Reference & Version -->
<div class="text-xs text-slate-600 font-mono text-center space-y-2">
<div
class="bg-slate-900/30 px-4 py-2 rounded-lg border border-slate-800/50 inline-block backdrop-blur-sm">
<i class="fa-solid fa-database mr-2 text-slate-500"></i>อ้างอิงข้อมูลล่าสุด: 17 มกราคม 2569
</div>
</div>
<div class="text-xs text-slate-600 font-mono text-center">
<a href="https://github.com/bejranonda/ThaiSim2026" target="_blank"
class="opacity-40 hover:opacity-100 transition-opacity cursor-pointer select-none hover:text-blue-400">Release:
Sim-Thailand 2569 v3.3.1 <i class="fa-solid fa-arrow-up-right-from-square text-xs ml-1"></i></a>
</div>
<!-- Developer Credit -->
<div
class="flex flex-col items-center gap-2 opacity-40 hover:opacity-100 transition-all duration-500 grayscale hover:grayscale-0">
<span class="text-[10px] text-slate-500 uppercase tracking-widest font-bold">Developed by</span>
<a href="https://thalay.eu/" target="_blank"
class="hover:scale-105 transition-transform duration-300">
<img src="https://thalay.eu/wp-content/uploads/2021/04/Thalay.eu3-Transparent150.png"
alt="สมาคม thalay.eu" class="h-8 w-auto">
</a>
<div class="flex gap-4 mt-2">
<a href="https://www.facebook.com/thalay.eu" target="_blank"
class="text-slate-400 hover:text-blue-500 transition-colors text-xl"><i
class="fa-brands fa-facebook"></i></a>
</div>
</div>
</div>
</div>
<!-- GAME SCREEN -->
<div id="screen-game" class="hidden w-full pt-24 pb-safe">
<div class="flex flex-col md:flex-row gap-8 items-start">
<!-- LEFT: City Visualization -->
<div class="w-full md:w-1/3 flex flex-col items-center md:sticky md:top-28 order-1">
<div
class="bg-slate-900/90 p-5 rounded-2xl border border-slate-800 shadow-xl w-full max-w-sm mx-auto">
<div class="flex justify-between items-center mb-4 px-1">
<h3 class="text-lg font-bold text-slate-300 uppercase tracking-widest">แผนผังประเทศจำลอง
(Simulation)</h3>
</div>
<div class="city-grid" id="city-container">
<!-- Slots generated by JS -->
</div>
</div>
</div>
<!-- RIGHT: Choices -->
<div class="w-full md:w-2/3 order-2 flex flex-col">
<div class="mb-6 fade-enter bg-slate-900/50 p-6 rounded-2xl border border-slate-800/50">
<div class="flex items-center gap-4 mb-3">
<div
class="w-12 h-12 rounded-full bg-slate-800 flex items-center justify-center text-blue-400 text-2xl shadow-lg border border-slate-700">
<i id="q-icon" class="fa-solid fa-question"></i>
</div>
<h2 class="text-2xl font-bold text-white leading-tight" id="q-title">...</h2>
</div>
<p class="text-slate-400 text-sm sm:text-base pl-16" id="q-desc">...</p>
</div>
<div id="choices-grid" class="grid grid-cols-1 gap-4 fade-enter pb-6">
<!-- Cards generated by JS -->
</div>
</div>
</div>
<!-- Bottom Action Bar (Fixed) -->
<div
class="fixed bottom-0 left-0 w-full bg-slate-900/95 backdrop-blur border-t border-slate-800 p-5 z-50 shadow-[0_-5px_20px_rgba(0,0,0,0.5)]">
<div class="max-w-5xl mx-auto flex justify-between items-center gap-4">
<button onclick="game.skip()"
class="text-slate-500 hover:text-slate-300 text-sm font-bold px-6 py-3 rounded-xl transition hover:bg-slate-800">
ข้ามข้อนี้
</button>
<div class="flex gap-4 flex-grow justify-end">
<button onclick="game.undo()" id="btn-back" disabled
class="bg-slate-800 text-slate-400 hover:bg-slate-700 hover:text-white disabled:opacity-30 disabled:cursor-not-allowed font-bold py-4 px-6 rounded-xl transition shadow-lg text-base flex items-center justify-center gap-2">
<i class="fa-solid fa-arrow-left"></i>
</button>
<button onclick="game.confirm()" id="btn-confirm" disabled
class="flex-grow md:flex-grow-0 bg-blue-600 hover:bg-blue-500 disabled:bg-slate-800 disabled:text-slate-600 disabled:cursor-not-allowed text-white font-bold py-4 px-8 rounded-xl shadow-lg transition transform active:scale-95 text-base flex items-center justify-center gap-2 w-full md:w-auto min-w-[120px]">
<span>ถัดไป</span>
<span id="confirm-count" class="bg-white/20 px-2 py-0.5 rounded text-xs hidden">0</span>
<i class="fa-solid fa-arrow-right"></i>
</button>
</div>
</div>
</div>
</div>
<!-- RESULT SCREEN -->
<div id="screen-result" class="hidden w-full max-w-4xl mx-auto text-center pt-28 pb-24">
<div id="share-content" class="grid grid-cols-1 md:grid-cols-3 gap-8 mb-8">
<!-- Winner Card -->
<div id="result-card"
class="md:col-span-2 relative bg-slate-900 border border-slate-800 rounded-3xl p-10 shadow-2xl overflow-hidden slide-up text-center md:text-left flex flex-col justify-center min-h-[350px]">
<div
class="absolute top-0 right-0 w-full h-1 bg-gradient-to-r from-blue-500 via-emerald-500 to-purple-500">
</div>
<div class="absolute -bottom-20 -right-20 w-80 h-80 bg-blue-600/10 rounded-full blur-3xl"></div>
<div class="absolute bottom-3 right-5 text-[10px] text-slate-600 font-mono z-20">thalay.eu/sim2569
</div>
<div class="flex flex-col md:flex-row items-center gap-8 relative z-10">
<div class="relative flex-shrink-0">
<div
class="w-36 h-36 bg-slate-800 rounded-full flex items-center justify-center border-4 border-slate-700 shadow-xl">
<i id="res-icon" class="fa-solid fa-flag text-7xl text-white"></i>
</div>
<div
class="absolute -bottom-4 -right-4 bg-emerald-500 text-slate-900 text-base font-bold px-4 py-1.5 rounded-full border-4 border-slate-900 shadow-lg">
Match <span id="res-percent">--%</span>
</div>
</div>
<div class="flex-grow">
<p class="text-slate-400 text-xs font-bold uppercase tracking-widest mb-3">ผลลัพธ์การจำลอง
(Simulation Result)</p>
<h2 class="text-xl text-slate-300 mb-2">พรรคที่นโยบายตรงใจคุณที่สุด</h2>
<h1 id="res-party"
class="text-4xl md:text-6xl font-extrabold text-white mb-5 drop-shadow-lg leading-tight">
...</h1>
<p id="res-desc"
class="text-slate-300 text-base leading-relaxed bg-slate-800/50 p-5 rounded-xl border border-slate-700/50 inline-block text-left w-full">
...</p>
</div>
</div>
</div>
<!-- Scroll Indicator - Mobile Only (before Runners Up) -->
<div id="scroll-indicator-mobile"
class="md:hidden flex flex-col items-center justify-center py-2 animate-pulse mb-1">
<p class="text-fuchsia-400 font-bold text-base mb-1 text-center px-4 neon-pink-glow">
👇 ยังไม่จบ! อย่าลืมลงมาโหวตพรรคที่คุณเชื่อมั่นด้านล่าง 👇
</p>
<div class="animate-bounce">
<i class="fa-solid fa-chevron-down text-fuchsia-400 text-2xl"></i>
</div>
</div>
<!-- Runners Up List -->
<div class="md:col-span-1 bg-slate-900/80 border border-slate-800 rounded-2xl p-5 slide-up overflow-hidden flex flex-col"
style="animation-delay: 0.1s;">
<h3
class="text-sm text-slate-500 font-bold uppercase mb-4 py-3 border-b border-slate-800 flex items-center gap-2">
<i class="fa-solid fa-chart-bar"></i> 5 อันดับรองลงมา
</h3>
<div id="res-runners" class="space-y-3 mb-4">
<!-- Injected JS -->
</div>
<a href="https://thalay.eu/policy2569" target="_blank"
class="mt-auto w-full flex items-center justify-center gap-2 px-4 py-3 bg-slate-800 hover:bg-slate-700 text-slate-400 hover:text-white rounded-xl border border-dashed border-slate-600 hover:border-slate-500 transition-all text-sm group">
<i class="fa-solid fa-book-open group-hover:scale-110 transition-transform"></i>
<span>ดูนโยบายทุกพรรคเพิ่มเติม</span>
</a>
</div>
</div>
<!-- National Status (3 Pillars) -->
<div id="res-status" class="hidden w-full bg-slate-900/80 border border-slate-800 rounded-2xl p-6 slide-up"
style="animation-delay: 0.15s;">
<h3 class="text-sm text-slate-500 font-bold uppercase mb-6 flex items-center gap-2">
<i class="fa-solid fa-chart-pie"></i> สถานะประเทศจากนโยบายของคุณ (Status from your policies)
</h3>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-8">
<div>
<div class="flex justify-between items-start text-slate-300 mb-2">
<div>
<div class="text-sm font-semibold">เศรษฐกิจ</div>
<div class="text-xs text-slate-500">(Economy)</div>
</div>
<span id="end-eco" class="text-sm">0%</span>
</div>
<div class="h-4 bg-slate-800 rounded-full overflow-hidden">
<div id="end-bar-eco" class="h-full bg-emerald-500 transition-all duration-1000"
style="width: 0%"></div>
</div>
</div>
<div>
<div class="flex justify-between items-start text-slate-300 mb-2">
<div>
<div class="text-sm font-semibold">สวัสดิการ</div>
<div class="text-xs text-slate-500">(Welfare)</div>
</div>
<span id="end-soc" class="text-sm">0%</span>
</div>
<div class="h-4 bg-slate-800 rounded-full overflow-hidden">
<div id="end-bar-soc" class="h-full bg-blue-500 transition-all duration-1000"
style="width: 0%"></div>
</div>
</div>
<div>
<div class="flex justify-between items-start text-slate-300 mb-2">
<div>
<div class="text-sm font-semibold">ประชาธิปไตย</div>
<div class="text-xs text-slate-500">(Democracy)</div>
</div>
<span id="end-lib" class="text-sm">0%</span>
</div>
<div class="h-4 bg-slate-800 rounded-full overflow-hidden">
<div id="end-bar-lib" class="h-full bg-orange-500 transition-all duration-1000"
style="width: 0%"></div>
</div>
</div>
<div>
<div class="flex justify-between items-start text-slate-300 mb-2">
<div>
<div class="text-sm font-semibold">งบประมาณ</div>
<div class="text-xs text-slate-500">(Budget)</div>
</div>
<span id="end-budget" class="text-sm">100</span>
</div>
<div class="h-4 bg-slate-800 rounded-full overflow-hidden">
<div id="end-bar-budget" class="h-full bg-green-500 transition-all duration-1000"
style="width: 100%"></div>
</div>
</div>
</div>
</div>
</div>
<!-- Scroll Indicator - Desktop Only (after National Status, before Vote Section) -->
<div id="scroll-indicator-desktop"
class="hidden flex-col items-center justify-center -mt-12 pb-6 animate-pulse">
<p class="text-fuchsia-400 font-bold text-lg mb-2 text-center px-4 neon-pink-glow">
👇 ยังไม่จบ! อย่าลืมลงมาโหวตพรรคที่คุณเชื่อมั่นด้านล่าง 👇
</p>
<div class="animate-bounce">
<i class="fa-solid fa-chevron-down text-fuchsia-400 text-3xl"></i>
</div>
</div>
<!-- Manual Poll -->
<div id="vote-section"
class="hidden relative bg-gradient-to-br from-blue-900/50 to-slate-900 border-2 border-blue-500 rounded-3xl p-8 mb-10 text-left slide-up backdrop-blur-sm shadow-2xl -mt-8 overflow-hidden"
style="animation-delay: 0.2s;">
<!-- Glow pulse background effect -->
<div class="absolute inset-0 bg-blue-500/5 pointer-events-none"
style="animation: glow-pulse 3s ease-in-out infinite;"></div>
<!-- Important Badge - Top Right -->
<div
class="absolute -top-2 -right-2 bg-red-500 text-white font-bold px-5 py-2 rounded-full shadow-lg animate-pulse z-10 text-sm">
⚠️ ขั้นตอนสุดท้าย
</div>
<!-- Header -->
<div class="text-center mb-6 relative z-10">
<h3 class="text-white font-bold text-3xl mb-2 flex items-center justify-center gap-3">
<i class="fa-solid fa-check-to-slot text-blue-400 text-2xl"></i>
เสียงจริงของคุณ
</h3>
<p class="text-yellow-400 font-bold text-lg mb-4">
ก่อนเปลี่ยนเป็น! ให้เสียงพรรคที่คุณเชื่อมั่น
</p>
<div class="bg-blue-600/20 border border-blue-500/50 rounded-xl p-4 mx-auto max-w-2xl">
<p class="text-blue-200 text-sm font-bold">
เกมจำลองเสร็จแล้ว! ให้เสียงพรรคที่คุณเชื่อมั่น ก่อนที่อำนาจจะเปลี่ยนแปลง
</p>
</div>
</div>
<div class="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 gap-3 mb-8 p-1" id="poll-container">
<!-- Poll options -->
</div>
<div id="poll-results" class="hidden space-y-4 pt-4 pb-6 relative z-10">
<!-- Progress Bars -->
</div>
<button onclick="game.submitVote()" id="btn-vote"
class="w-full relative z-10 bg-gradient-to-r from-blue-600 to-blue-500 hover:from-blue-500 hover:to-blue-400 text-white font-bold py-6 rounded-xl transition text-lg shadow-xl flex items-center justify-center gap-3 mt-6 hover:scale-105 transform">
<i class="fa-solid fa-paper-plane text-xl"></i>
<span class="text-xl">ให้เสียงพรรคที่ฉันเชื่อมั่น</span>
</button>
</div>
<div id="result-actions" class="hidden flex flex-col sm:flex-row justify-center gap-4 mb-12 px-4 slide-up"
style="animation-delay: 0.3s;">
<a href="https://thalay.eu/poll2569" target="_blank"
class="flex-grow sm:flex-grow-0 group relative overflow-hidden inline-flex items-center justify-center gap-3 px-8 py-5 bg-emerald-600 hover:bg-emerald-500 text-white font-bold rounded-2xl shadow-xl transition-all hover:scale-105 active:scale-95">
<i class="fa-solid fa-chart-pie text-xl"></i>
<span class="text-lg">ดูผลโหวตพรรค และ นโยบายที่คนชอบ</span>
</a>
<a href="https://thalay.eu/policy2569" target="_blank"
class="flex-grow sm:flex-grow-0 group relative overflow-hidden inline-flex items-center justify-center gap-3 px-8 py-5 bg-blue-600 hover:bg-blue-500 text-white font-bold rounded-2xl shadow-xl transition-all hover:scale-105 active:scale-95">
<i class="fa-solid fa-book-open text-xl"></i>
<span class="text-lg">ดูนโยบายทุกพรรค</span>
</a>
</div>
<!-- Sequel Button - Prominent CTA -->
<div class="flex justify-center py-6">
<a href="https://findyourshade.autobahn.bot/" target="_blank"
class="group relative inline-flex items-center justify-center gap-3 px-8 py-4 bg-gradient-to-r from-purple-600 via-pink-500 to-orange-500 hover:from-purple-500 hover:via-pink-400 hover:to-orange-400 text-white font-bold rounded-2xl shadow-xl shadow-purple-500/30 transition-all hover:scale-105 hover:shadow-pink-500/40 no-underline animate-pulse">
<i class="fa-solid fa-rocket text-xl group-hover:animate-bounce"></i>
<span class="text-lg">เล่นภาคใหม่ ฉบับหลังเลือกตั้ง</span>
<i class="fa-solid fa-arrow-right text-sm opacity-70 group-hover:translate-x-1 transition-transform"></i>
</a>
</div>
<div id="result-footer" class="hidden flex justify-center gap-6 text-base font-medium text-slate-400 pb-8">
<button onclick="location.reload()"
class="hover:text-white transition flex items-center gap-2 bg-slate-800 px-8 py-4 rounded-full"><i
class="fa-solid fa-rotate-right"></i> เช็คจุดยืนใหม่</button>
<button onclick="game.saveResultImage(this)"
class="hover:text-emerald-400 transition flex items-center gap-2 bg-slate-800 px-8 py-4 rounded-full"><i
class="fa-solid fa-image"></i> แชร์ผลลัพธ์</button>
<button onclick="game.share()"
class="hover:text-blue-400 transition flex items-center gap-2 bg-slate-800 px-8 py-4 rounded-full"><i
class="fa-solid fa-share-nodes"></i> แชร์</button>
</div>
<div id="result-credit"
class="hidden flex flex-col items-center gap-3 opacity-70 hover:opacity-100 transition-opacity pb-12">
<span class="text-xs text-slate-400 font-medium">พัฒนาโดย</span>
<div class="flex items-center gap-6">
<a href="https://thalay.eu/" target="_blank" class="hover:scale-105 transition-transform duration-300">
<img src="https://thalay.eu/wp-content/uploads/2021/04/Thalay.eu3-Transparent150.png"
alt="สมาคม thalay.eu" class="h-12 w-auto opacity-90 hover:opacity-100 transition-opacity">
</a>
<a href="https://www.facebook.com/thalay.eu" target="_blank"
class="text-slate-400 hover:text-blue-500 transition-colors text-2xl">
<i class="fa-brands fa-facebook"></i>
</a>
</div>
</div>
</div>
</main>
<!-- Main JavaScript -->
<script type="module" src="/src/js/main.js"></script>
<script>
// Generate Stars
document.addEventListener('DOMContentLoaded', () => {
const spaceContainer = document.getElementById('space-background');
const starCount = 100;
for (let i = 0; i < starCount; i++) {
const star = document.createElement('div');
star.classList.add('star');
// Random positioning
const x = Math.random() * 100;
const y = Math.random() * 100;
const size = Math.random() * 2 + 1; // 1px to 3px
const duration = Math.random() * 3 + 2; // 2s to 5s
const delay = Math.random() * 5;
const opacity = Math.random() * 0.7 + 0.3;
star.style.left = `${x}%`;
star.style.top = `${y}%`;
star.style.width = `${size}px`;
star.style.height = `${size}px`;
star.style.setProperty('--duration', `${duration}s`);
star.style.setProperty('--delay', `${delay}s`);
star.style.setProperty('--opacity', opacity);
spaceContainer.appendChild(star);
}
});
</script>
</body>
</html>