Upload folder using huggingface_hub
Browse files- index.html +1012 -1042
index.html
CHANGED
|
@@ -1,896 +1,976 @@
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="en">
|
|
|
|
| 3 |
<head>
|
| 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 |
-
font-size: 3rem;
|
| 501 |
-
display: flex;
|
| 502 |
-
align-items: center;
|
| 503 |
-
justify-content: center;
|
| 504 |
-
border-radius: 4px;
|
| 505 |
-
}
|
| 506 |
-
|
| 507 |
-
/* Roulette Styles */
|
| 508 |
-
.roulette-wheel {
|
| 509 |
-
width: 150px;
|
| 510 |
-
height: 150px;
|
| 511 |
-
border-radius: 50%;
|
| 512 |
-
border: 5px solid var(--primary-gold);
|
| 513 |
-
background: conic-gradient(
|
| 514 |
-
#e74c3c 0deg 18deg,
|
| 515 |
-
#000 18deg 36deg,
|
| 516 |
-
#e74c3c 36deg 54deg,
|
| 517 |
-
#000 54deg 72deg,
|
| 518 |
-
#e74c3c 72deg 90deg,
|
| 519 |
-
#000 90deg 108deg,
|
| 520 |
-
#e74c3c 108deg 126deg,
|
| 521 |
-
#000 126deg 144deg,
|
| 522 |
-
#e74c3c 144deg 162deg,
|
| 523 |
-
#000 162deg 180deg,
|
| 524 |
-
#2ecc71 180deg 360deg
|
| 525 |
-
);
|
| 526 |
-
transition: transform 3s cubic-bezier(0.1, 0.7, 0.1, 1);
|
| 527 |
-
margin: 0 auto;
|
| 528 |
-
position: relative;
|
| 529 |
-
}
|
| 530 |
-
.roulette-pointer {
|
| 531 |
-
position: absolute;
|
| 532 |
-
top: -10px;
|
| 533 |
-
left: 50%;
|
| 534 |
-
transform: translateX(-50%);
|
| 535 |
-
width: 0;
|
| 536 |
-
height: 0;
|
| 537 |
-
border-left: 10px solid transparent;
|
| 538 |
-
border-right: 10px solid transparent;
|
| 539 |
-
border-top: 20px solid var(--primary-gold);
|
| 540 |
-
z-index: 2;
|
| 541 |
-
}
|
| 542 |
-
|
| 543 |
-
</style>
|
| 544 |
</head>
|
|
|
|
| 545 |
<body>
|
| 546 |
|
| 547 |
-
|
| 548 |
-
|
| 549 |
-
|
| 550 |
-
|
| 551 |
-
|
| 552 |
-
|
| 553 |
-
|
| 554 |
-
</div>
|
| 555 |
-
<div class="nav-controls">
|
| 556 |
-
<select id="languageSelect" class="lang-select">
|
| 557 |
-
<option value="en">EN</option>
|
| 558 |
-
<option value="es">ES</option>
|
| 559 |
-
<option value="fr">FR</option>
|
| 560 |
-
<option value="de">DE</option>
|
| 561 |
-
</select>
|
| 562 |
-
<div class="balance-display">
|
| 563 |
-
<i class="fas fa-coins"></i>
|
| 564 |
-
<span id="balanceAmount">1000</span>
|
| 565 |
-
</div>
|
| 566 |
-
<button class="btn btn-gold" id="topUpBtn">
|
| 567 |
-
<i class="fas fa-plus-circle"></i> <span data-i18n="topUp">Top Up</span>
|
| 568 |
-
</button>
|
| 569 |
-
</div>
|
| 570 |
-
</nav>
|
| 571 |
</div>
|
| 572 |
-
|
| 573 |
-
|
| 574 |
-
|
| 575 |
-
|
| 576 |
-
|
| 577 |
-
|
| 578 |
-
|
| 579 |
-
|
| 580 |
-
|
| 581 |
-
|
| 582 |
-
|
| 583 |
-
|
| 584 |
-
</
|
| 585 |
-
|
| 586 |
-
<div class="game-highlight" id="highlightSection">
|
| 587 |
-
<div class="highlight-badge" data-i18n="gameOfDay">Game of the Day</div>
|
| 588 |
-
<div class="highlight-content">
|
| 589 |
-
<div class="highlight-image" id="highlightImage"></div>
|
| 590 |
-
<div class="highlight-text">
|
| 591 |
-
<h2 id="highlightTitle">Loading...</h2>
|
| 592 |
-
<p id="highlightDesc" style="color: var(--text-muted); margin: 15px 0;">Loading description...</p>
|
| 593 |
-
<button class="btn btn-gold" id="highlightPlayBtn">
|
| 594 |
-
<i class="fas fa-play"></i> <span data-i18n="playNow">Play Now</span>
|
| 595 |
-
</button>
|
| 596 |
-
</div>
|
| 597 |
-
</div>
|
| 598 |
-
</div>
|
| 599 |
-
</section>
|
| 600 |
-
|
| 601 |
-
<!-- Games Grid -->
|
| 602 |
-
<h2 class="section-title" data-i18n="ourGames">Our Games</h2>
|
| 603 |
-
<section class="games-grid" id="gamesGrid">
|
| 604 |
-
<!-- Games injected via JS -->
|
| 605 |
-
</section>
|
| 606 |
-
|
| 607 |
-
</main>
|
| 608 |
-
|
| 609 |
-
<footer style="text-align: center; padding: 40px; color: var(--text-muted); font-size: 0.8rem; border-top: 1px solid rgba(255,255,255,0.05)">
|
| 610 |
-
<p>© 2023 Royal Fortune Casino. All rights reserved.</p>
|
| 611 |
-
<p style="margin-top: 10px;">Please gamble responsibly. This is a demo application.</p>
|
| 612 |
-
<div style="margin-top: 20px;">
|
| 613 |
-
<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" style="color: var(--primary-gold); font-weight: bold;">
|
| 614 |
-
Built with anycoder
|
| 615 |
-
</a>
|
| 616 |
-
</div>
|
| 617 |
-
</footer>
|
| 618 |
-
|
| 619 |
-
<!-- TOP UP MODAL -->
|
| 620 |
-
<div class="modal-overlay" id="topUpModal">
|
| 621 |
-
<div class="modal">
|
| 622 |
-
<div class="modal-header">
|
| 623 |
-
<h3 data-i18n="addFunds">Add Funds</h3>
|
| 624 |
-
<button class="close-modal">×</button>
|
| 625 |
-
</div>
|
| 626 |
-
<div class="form-group">
|
| 627 |
-
<label class="form-label" data-i18n="amount">Amount</label>
|
| 628 |
-
<input type="number" id="topUpAmount" class="form-input" placeholder="Enter amount..." min="10">
|
| 629 |
-
</div>
|
| 630 |
-
<button class="btn btn-gold" id="confirmTopUp" style="width: 100%" data-i18n="confirm">Confirm</button>
|
| 631 |
</div>
|
|
|
|
| 632 |
</div>
|
|
|
|
|
|
|
|
|
|
| 633 |
|
| 634 |
-
<!--
|
| 635 |
-
<
|
| 636 |
-
|
| 637 |
-
|
| 638 |
-
|
| 639 |
-
|
| 640 |
-
</div>
|
| 641 |
-
<div class="game-area" id="gameArena">
|
| 642 |
-
<!-- Dynamic Game Content Here -->
|
| 643 |
-
</div>
|
| 644 |
-
<div class="game-controls" id="gameControls">
|
| 645 |
-
<!-- Dynamic Controls Here -->
|
| 646 |
-
</div>
|
| 647 |
-
<div style="text-align: center; margin-top: 15px; color: var(--text-muted); font-size: 0.9rem;">
|
| 648 |
-
<span data-i18n="yourBet">Your Bet</span>: <span id="currentBetDisplay" style="color: #fff; font-weight: bold;">10</span>
|
| 649 |
-
<button class="btn btn-outline" style="padding: 2px 10px; font-size: 0.8rem; margin-left: 10px;" onclick="adjustBet(10)">+10</button>
|
| 650 |
-
<button class="btn btn-outline" style="padding: 2px 10px; font-size: 0.8rem;" onclick="adjustBet(-10)">-10</button>
|
| 651 |
-
</div>
|
| 652 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 653 |
</div>
|
| 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 |
<div class="card-img" style="background: linear-gradient(135deg, ${game.color}, #111);">
|
| 895 |
<div class="card-overlay">
|
| 896 |
<button class="btn btn-gold play-trigger" data-id="${game.id}">${t('playNow')}</button>
|
|
@@ -902,165 +982,55 @@
|
|
| 902 |
<p>${info.desc}</p>
|
| 903 |
</div>
|
| 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 |
-
state.activeGame = gameId;
|
| 959 |
-
document.getElementById('activeGameTitle').textContent = t('games')[gameId].name;
|
| 960 |
-
document.getElementById('gameModal').classList.add('active');
|
| 961 |
-
|
| 962 |
-
const arena = document.getElementById('gameArena');
|
| 963 |
-
const controls = document.getElementById('gameControls');
|
| 964 |
-
arena.innerHTML = '';
|
| 965 |
-
controls.innerHTML = '';
|
| 966 |
-
|
| 967 |
-
// Initialize specific game
|
| 968 |
-
switch(gameId) {
|
| 969 |
-
case 'slots': initSlots(arena, controls); break;
|
| 970 |
-
case 'blackjack': initBlackjack(arena, controls); break;
|
| 971 |
-
case 'roulette': initRoulette(arena, controls); break;
|
| 972 |
-
case 'highlow': initHighLow(arena, controls); break;
|
| 973 |
-
}
|
| 974 |
-
}
|
| 975 |
-
|
| 976 |
-
function endGame(won, amount) {
|
| 977 |
-
if (won) {
|
| 978 |
-
state.balance += amount;
|
| 979 |
-
showToast(`${t('msgWin')} +${amount}`, 'success');
|
| 980 |
-
} else {
|
| 981 |
-
state.balance -= state.currentBet;
|
| 982 |
-
showToast(t('msgLose'), 'error');
|
| 983 |
-
}
|
| 984 |
-
updateBalanceUI();
|
| 985 |
-
}
|
| 986 |
-
|
| 987 |
-
// 1. SLOTS
|
| 988 |
-
function initSlots(arena, controls) {
|
| 989 |
-
const symbols = ['🍒', '��', '🍉', '⭐', '💎', '7️⃣'];
|
| 990 |
-
arena.innerHTML = `
|
| 991 |
-
<div class="slots-container">
|
| 992 |
-
<div class="slot-reel" id="reel1">7️⃣</div>
|
| 993 |
-
<div class="slot-reel" id="reel2">7️⃣</div>
|
| 994 |
-
<div class="slot-reel" id="reel3">7️⃣</div>
|
| 995 |
-
</div>
|
| 996 |
-
<div class="game-result" id="slotResult"></div>
|
| 997 |
-
`;
|
| 998 |
-
|
| 999 |
-
const spinBtn = document.createElement('button');
|
| 1000 |
-
spinBtn.className = 'btn btn-gold';
|
| 1001 |
-
spinBtn.innerHTML = `<i class="fas fa-sync"></i> ${t('spin')}`;
|
| 1002 |
-
spinBtn.onclick = () => {
|
| 1003 |
-
if (state.balance < state.currentBet) return showToast(t('msgInsufficient'), 'error');
|
| 1004 |
-
|
| 1005 |
-
spinBtn.disabled = true;
|
| 1006 |
-
document.getElementById('slotResult').textContent = '...';
|
| 1007 |
-
|
| 1008 |
-
// Animation simulation
|
| 1009 |
-
let spins = 0;
|
| 1010 |
-
const interval = setInterval(() => {
|
| 1011 |
-
document.getElementById('reel1').textContent = symbols[Math.floor(Math.random()*symbols.length)];
|
| 1012 |
-
document.getElementById('reel2').textContent = symbols[Math.floor(Math.random()*symbols.length)];
|
| 1013 |
-
document.getElementById('reel3').textContent = symbols[Math.floor(Math.random()*symbols.length)];
|
| 1014 |
-
spins++;
|
| 1015 |
-
if (spins > 10) {
|
| 1016 |
-
clearInterval(interval);
|
| 1017 |
-
finalizeSlots(symbols);
|
| 1018 |
-
spinBtn.disabled = false;
|
| 1019 |
-
}
|
| 1020 |
-
}, 100);
|
| 1021 |
-
};
|
| 1022 |
-
controls.appendChild(spinBtn);
|
| 1023 |
-
}
|
| 1024 |
-
|
| 1025 |
-
function finalizeSlots(symbols) {
|
| 1026 |
-
const r1 = symbols[Math.floor(Math.random()*symbols.length)];
|
| 1027 |
-
const r2 = symbols[Math.floor(Math.random()*symbols.length)];
|
| 1028 |
-
const r3 = symbols[Math.floor(Math.random()*symbols.length)];
|
| 1029 |
-
|
| 1030 |
-
document.getElementById('reel1').textContent = r1;
|
| 1031 |
-
document.getElementById('reel2').textContent = r2;
|
| 1032 |
-
document.getElementById('reel3').textContent = r3;
|
| 1033 |
-
|
| 1034 |
-
const resDiv = document.getElementById('slotResult');
|
| 1035 |
-
if (r1 === r2 && r2 === r3) {
|
| 1036 |
-
resDiv.textContent = t('msgWin');
|
| 1037 |
-
resDiv.className = 'game-result win-anim';
|
| 1038 |
-
endGame(true, state.currentBet * 10);
|
| 1039 |
-
} else if (r1 === r2 || r2 === r3 || r1 === r3) {
|
| 1040 |
-
resDiv.textContent = "Small Win!";
|
| 1041 |
-
resDiv.className = 'game-result win-anim';
|
| 1042 |
-
endGame(true, state.currentBet * 2);
|
| 1043 |
-
} else {
|
| 1044 |
-
resDiv.textContent = t('msgLose');
|
| 1045 |
-
resDiv.className = 'game-result lose-anim';
|
| 1046 |
-
endGame(false, 0);
|
| 1047 |
-
}
|
| 1048 |
-
}
|
| 1049 |
-
|
| 1050 |
-
// 2. BLACKJACK (Simplified)
|
| 1051 |
-
let bjDeck = [];
|
| 1052 |
-
function initBlackjack(arena, controls) {
|
| 1053 |
-
bjDeck = Array.from({length: 52}, (_, i) => {
|
| 1054 |
-
const val = (i % 13) + 1;
|
| 1055 |
-
return { val: val > 10 ? 10 : val, suit: ['♠','♥','♦','♣'][Math.floor(i/13)] };
|
| 1056 |
-
});
|
| 1057 |
-
// Shuffle
|
| 1058 |
-
bjDeck.sort(() => Math.random() - 0.5);
|
| 1059 |
-
|
| 1060 |
-
window.bjPlayer = [bjDeck.pop(), bjDeck.pop()];
|
| 1061 |
-
window.bjDealer = [bjDeck.pop(), bjDeck.pop()];
|
| 1062 |
-
|
| 1063 |
-
renderBJ(arena);
|
| 1064 |
-
|
| 1065 |
-
const hitBtn = document.createElement('button');
|
| 1066 |
-
hitBtn.className = 'btn
|
|
|
|
| 1 |
<!DOCTYPE html>
|
| 2 |
<html lang="en">
|
| 3 |
+
|
| 4 |
<head>
|
| 5 |
+
<meta charset="UTF-8">
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 7 |
+
<title>Royal Fortune Casino - Blackjack Edition</title>
|
| 8 |
+
|
| 9 |
+
<!-- Google Fonts -->
|
| 10 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 11 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
| 12 |
+
<link
|
| 13 |
+
href="https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Roboto:wght@300;400;500;700&display=swap"
|
| 14 |
+
rel="stylesheet">
|
| 15 |
+
|
| 16 |
+
<!-- FontAwesome for Icons -->
|
| 17 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 18 |
+
|
| 19 |
+
<style>
|
| 20 |
+
:root {
|
| 21 |
+
--primary-gold: #d4af37;
|
| 22 |
+
--primary-gold-hover: #f3cf55;
|
| 23 |
+
--bg-dark: #0f0f13;
|
| 24 |
+
--bg-panel: #1a1a24;
|
| 25 |
+
--bg-card: #23232f;
|
| 26 |
+
--text-main: #ffffff;
|
| 27 |
+
--text-muted: #a0a0b0;
|
| 28 |
+
--accent-red: #e74c3c;
|
| 29 |
+
--accent-green: #2ecc71;
|
| 30 |
+
--radius: 12px;
|
| 31 |
+
--shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
|
| 32 |
+
--glass: rgba(26, 26, 36, 0.85);
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
* {
|
| 36 |
+
box-sizing: border-box;
|
| 37 |
+
margin: 0;
|
| 38 |
+
padding: 0;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
body {
|
| 42 |
+
font-family: 'Roboto', sans-serif;
|
| 43 |
+
background-color: var(--bg-dark);
|
| 44 |
+
color: var(--text-main);
|
| 45 |
+
line-height: 1.6;
|
| 46 |
+
overflow-x: hidden;
|
| 47 |
+
background-image: radial-gradient(circle at 10% 20%, #1a1a24 0%, #0f0f13 90%);
|
| 48 |
+
min-height: 100vh;
|
| 49 |
+
display: flex;
|
| 50 |
+
flex-direction: column;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
/* Typography */
|
| 54 |
+
h1, h2, h3, h4 {
|
| 55 |
+
font-family: 'Cinzel', serif;
|
| 56 |
+
color: var(--primary-gold);
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
a {
|
| 60 |
+
text-decoration: none;
|
| 61 |
+
color: inherit;
|
| 62 |
+
transition: color 0.3s;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
/* Utility */
|
| 66 |
+
.container {
|
| 67 |
+
max-width: 1200px;
|
| 68 |
+
margin: 0 auto;
|
| 69 |
+
padding: 0 20px;
|
| 70 |
+
flex: 1;
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
.btn {
|
| 74 |
+
display: inline-flex;
|
| 75 |
+
align-items: center;
|
| 76 |
+
gap: 8px;
|
| 77 |
+
padding: 10px 24px;
|
| 78 |
+
border-radius: 30px;
|
| 79 |
+
border: none;
|
| 80 |
+
font-weight: 600;
|
| 81 |
+
cursor: pointer;
|
| 82 |
+
transition: all 0.3s ease;
|
| 83 |
+
font-size: 0.95rem;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
.btn-gold {
|
| 87 |
+
background: linear-gradient(135deg, var(--primary-gold), #b8860b);
|
| 88 |
+
color: #000;
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
.btn-gold:hover {
|
| 92 |
+
transform: translateY(-2px);
|
| 93 |
+
box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
|
| 94 |
+
background: linear-gradient(135deg, var(--primary-gold-hover), var(--primary-gold));
|
| 95 |
+
}
|
| 96 |
+
|
| 97 |
+
.btn-outline {
|
| 98 |
+
background: transparent;
|
| 99 |
+
border: 2px solid var(--primary-gold);
|
| 100 |
+
color: var(--primary-gold);
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
.btn-outline:hover {
|
| 104 |
+
background: var(--primary-gold);
|
| 105 |
+
color: #000;
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
.btn-danger {
|
| 109 |
+
background: var(--accent-red);
|
| 110 |
+
color: white;
|
| 111 |
+
}
|
| 112 |
|
| 113 |
+
.btn-danger:hover {
|
| 114 |
+
background: #c0392b;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
.btn-success {
|
| 118 |
+
background: var(--accent-green);
|
| 119 |
+
color: white;
|
| 120 |
+
}
|
| 121 |
+
|
| 122 |
+
.btn-success:hover {
|
| 123 |
+
background: #27ae60;
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
/* Header */
|
| 127 |
+
header {
|
| 128 |
+
background: rgba(15, 15, 19, 0.95);
|
| 129 |
+
backdrop-filter: blur(10px);
|
| 130 |
+
position: sticky;
|
| 131 |
+
top: 0;
|
| 132 |
+
z-index: 100;
|
| 133 |
+
padding: 15px 0;
|
| 134 |
+
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
nav {
|
| 138 |
+
display: flex;
|
| 139 |
+
justify-content: space-between;
|
| 140 |
+
align-items: center;
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
.logo {
|
| 144 |
+
font-size: 1.5rem;
|
| 145 |
+
font-weight: 700;
|
| 146 |
+
display: flex;
|
| 147 |
+
align-items: center;
|
| 148 |
+
gap: 10px;
|
| 149 |
+
}
|
| 150 |
+
|
| 151 |
+
.logo i {
|
| 152 |
+
color: var(--primary-gold);
|
| 153 |
+
font-size: 1.8rem;
|
| 154 |
+
}
|
| 155 |
+
|
| 156 |
+
.nav-controls {
|
| 157 |
+
display: flex;
|
| 158 |
+
align-items: center;
|
| 159 |
+
gap: 20px;
|
| 160 |
+
}
|
| 161 |
+
|
| 162 |
+
.balance-display {
|
| 163 |
+
background: var(--bg-panel);
|
| 164 |
+
padding: 8px 16px;
|
| 165 |
+
border-radius: 20px;
|
| 166 |
+
border: 1px solid rgba(212, 175, 55, 0.3);
|
| 167 |
+
display: flex;
|
| 168 |
+
align-items: center;
|
| 169 |
+
gap: 8px;
|
| 170 |
+
font-weight: 700;
|
| 171 |
+
color: var(--primary-gold);
|
| 172 |
+
}
|
| 173 |
+
|
| 174 |
+
.lang-select {
|
| 175 |
+
background: var(--bg-panel);
|
| 176 |
+
color: var(--text-main);
|
| 177 |
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
| 178 |
+
padding: 5px 10px;
|
| 179 |
+
border-radius: 6px;
|
| 180 |
+
cursor: pointer;
|
| 181 |
+
}
|
| 182 |
+
|
| 183 |
+
/* Hero / Highlight Section */
|
| 184 |
+
.hero {
|
| 185 |
+
padding: 40px 0;
|
| 186 |
+
text-align: center;
|
| 187 |
+
}
|
| 188 |
+
|
| 189 |
+
.daily-bonus-banner {
|
| 190 |
+
background: linear-gradient(90deg, #2c3e50, #000000);
|
| 191 |
+
border: 1px solid var(--primary-gold);
|
| 192 |
+
padding: 15px;
|
| 193 |
+
border-radius: var(--radius);
|
| 194 |
+
margin-bottom: 30px;
|
| 195 |
+
display: flex;
|
| 196 |
+
justify-content: space-between;
|
| 197 |
+
align-items: center;
|
| 198 |
+
flex-wrap: wrap;
|
| 199 |
+
gap: 15px;
|
| 200 |
+
}
|
| 201 |
+
|
| 202 |
+
.bonus-content h3 {
|
| 203 |
+
font-size: 1.2rem;
|
| 204 |
+
margin-bottom: 5px;
|
| 205 |
+
}
|
| 206 |
+
|
| 207 |
+
.bonus-content p {
|
| 208 |
+
color: var(--primary-gold);
|
| 209 |
+
font-weight: 700;
|
| 210 |
+
}
|
| 211 |
+
|
| 212 |
+
.game-highlight {
|
| 213 |
+
background: var(--bg-panel);
|
| 214 |
+
border-radius: var(--radius);
|
| 215 |
+
overflow: hidden;
|
| 216 |
+
box-shadow: var(--shadow);
|
| 217 |
+
position: relative;
|
| 218 |
+
border: 1px solid rgba(212, 175, 55, 0.2);
|
| 219 |
+
}
|
| 220 |
+
|
| 221 |
+
.highlight-badge {
|
| 222 |
+
position: absolute;
|
| 223 |
+
top: 20px;
|
| 224 |
+
left: -35px;
|
| 225 |
+
background: var(--accent-red);
|
| 226 |
+
color: white;
|
| 227 |
+
padding: 8px 40px;
|
| 228 |
+
transform: rotate(-45deg);
|
| 229 |
+
font-weight: bold;
|
| 230 |
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
|
| 231 |
+
z-index: 10;
|
| 232 |
+
}
|
| 233 |
+
|
| 234 |
+
.highlight-content {
|
| 235 |
+
display: grid;
|
| 236 |
+
grid-template-columns: 1fr 1fr;
|
| 237 |
+
align-items: center;
|
| 238 |
+
}
|
| 239 |
+
|
| 240 |
+
.highlight-image {
|
| 241 |
+
height: 400px;
|
| 242 |
+
background-size: cover;
|
| 243 |
+
background-position: center;
|
| 244 |
+
position: relative;
|
| 245 |
+
}
|
| 246 |
+
|
| 247 |
+
.highlight-image::after {
|
| 248 |
+
content: '';
|
| 249 |
+
position: absolute;
|
| 250 |
+
inset: 0;
|
| 251 |
+
background: linear-gradient(90deg, transparent 0%, var(--bg-panel) 100%);
|
| 252 |
+
}
|
| 253 |
+
|
| 254 |
+
.highlight-text {
|
| 255 |
+
padding: 40px;
|
| 256 |
+
text-align: left;
|
| 257 |
+
}
|
| 258 |
+
|
| 259 |
+
/* Games Grid */
|
| 260 |
+
.section-title {
|
| 261 |
+
text-align: center;
|
| 262 |
+
margin: 50px 0 30px;
|
| 263 |
+
font-size: 2rem;
|
| 264 |
+
position: relative;
|
| 265 |
+
display: inline-block;
|
| 266 |
+
left: 50%;
|
| 267 |
+
transform: translateX(-50%);
|
| 268 |
+
}
|
| 269 |
+
|
| 270 |
+
.section-title::after {
|
| 271 |
+
content: '';
|
| 272 |
+
display: block;
|
| 273 |
+
width: 60px;
|
| 274 |
+
height: 3px;
|
| 275 |
+
background: var(--primary-gold);
|
| 276 |
+
margin: 10px auto 0;
|
| 277 |
+
}
|
| 278 |
+
|
| 279 |
+
.games-grid {
|
| 280 |
+
display: grid;
|
| 281 |
+
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
| 282 |
+
gap: 25px;
|
| 283 |
+
padding-bottom: 60px;
|
| 284 |
+
}
|
| 285 |
+
|
| 286 |
+
.game-card {
|
| 287 |
+
background: var(--bg-card);
|
| 288 |
+
border-radius: var(--radius);
|
| 289 |
+
overflow: hidden;
|
| 290 |
+
transition: transform 0.3s, box-shadow 0.3s;
|
| 291 |
+
cursor: pointer;
|
| 292 |
+
border: 1px solid transparent;
|
| 293 |
+
position: relative;
|
| 294 |
+
}
|
| 295 |
+
|
| 296 |
+
.game-card:hover {
|
| 297 |
+
transform: translateY(-5px);
|
| 298 |
+
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
|
| 299 |
+
border-color: var(--primary-gold);
|
| 300 |
+
}
|
| 301 |
+
|
| 302 |
+
.card-img {
|
| 303 |
+
height: 180px;
|
| 304 |
+
background-color: #333;
|
| 305 |
+
background-size: cover;
|
| 306 |
+
background-position: center;
|
| 307 |
+
position: relative;
|
| 308 |
+
}
|
| 309 |
+
|
| 310 |
+
.card-overlay {
|
| 311 |
+
position: absolute;
|
| 312 |
+
inset: 0;
|
| 313 |
+
background: rgba(0, 0, 0, 0.6);
|
| 314 |
+
display: flex;
|
| 315 |
+
align-items: center;
|
| 316 |
+
justify-content: center;
|
| 317 |
+
opacity: 0;
|
| 318 |
+
transition: opacity 0.3s;
|
| 319 |
+
}
|
| 320 |
+
|
| 321 |
+
.game-card:hover .card-overlay {
|
| 322 |
+
opacity: 1;
|
| 323 |
+
}
|
| 324 |
+
|
| 325 |
+
.card-body {
|
| 326 |
+
padding: 20px;
|
| 327 |
+
}
|
| 328 |
+
|
| 329 |
+
.card-body h4 {
|
| 330 |
+
font-size: 1.2rem;
|
| 331 |
+
margin-bottom: 5px;
|
| 332 |
+
color: #fff;
|
| 333 |
+
}
|
| 334 |
+
|
| 335 |
+
.card-body p {
|
| 336 |
+
font-size: 0.9rem;
|
| 337 |
+
color: var(--text-muted);
|
| 338 |
+
}
|
| 339 |
+
|
| 340 |
+
/* Modals */
|
| 341 |
+
.modal-overlay {
|
| 342 |
+
position: fixed;
|
| 343 |
+
inset: 0;
|
| 344 |
+
background: rgba(0, 0, 0, 0.8);
|
| 345 |
+
backdrop-filter: blur(5px);
|
| 346 |
+
z-index: 1000;
|
| 347 |
+
display: flex;
|
| 348 |
+
align-items: center;
|
| 349 |
+
justify-content: center;
|
| 350 |
+
opacity: 0;
|
| 351 |
+
visibility: hidden;
|
| 352 |
+
transition: all 0.3s;
|
| 353 |
+
}
|
| 354 |
+
|
| 355 |
+
.modal-overlay.active {
|
| 356 |
+
opacity: 1;
|
| 357 |
+
visibility: visible;
|
| 358 |
+
}
|
| 359 |
+
|
| 360 |
+
.modal {
|
| 361 |
+
background: var(--bg-panel);
|
| 362 |
+
width: 90%;
|
| 363 |
+
max-width: 600px; /* Wider for Blackjack */
|
| 364 |
+
border-radius: var(--radius);
|
| 365 |
+
padding: 30px;
|
| 366 |
+
position: relative;
|
| 367 |
+
transform: scale(0.9);
|
| 368 |
+
transition: transform 0.3s;
|
| 369 |
+
border: 1px solid var(--primary-gold);
|
| 370 |
+
box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
|
| 371 |
+
}
|
| 372 |
+
|
| 373 |
+
.modal-overlay.active .modal {
|
| 374 |
+
transform: scale(1);
|
| 375 |
+
}
|
| 376 |
+
|
| 377 |
+
.modal-header {
|
| 378 |
+
display: flex;
|
| 379 |
+
justify-content: space-between;
|
| 380 |
+
align-items: center;
|
| 381 |
+
margin-bottom: 20px;
|
| 382 |
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
| 383 |
+
padding-bottom: 15px;
|
| 384 |
+
}
|
| 385 |
+
|
| 386 |
+
.close-modal {
|
| 387 |
+
background: none;
|
| 388 |
+
border: none;
|
| 389 |
+
color: var(--text-muted);
|
| 390 |
+
font-size: 1.5rem;
|
| 391 |
+
cursor: pointer;
|
| 392 |
+
}
|
| 393 |
+
|
| 394 |
+
.close-modal:hover {
|
| 395 |
+
color: #fff;
|
| 396 |
+
}
|
| 397 |
+
|
| 398 |
+
/* Forms */
|
| 399 |
+
.form-group {
|
| 400 |
+
margin-bottom: 20px;
|
| 401 |
+
}
|
| 402 |
+
|
| 403 |
+
.form-label {
|
| 404 |
+
display: block;
|
| 405 |
+
margin-bottom: 8px;
|
| 406 |
+
color: var(--text-muted);
|
| 407 |
+
}
|
| 408 |
+
|
| 409 |
+
.form-input {
|
| 410 |
+
width: 100%;
|
| 411 |
+
padding: 12px;
|
| 412 |
+
background: var(--bg-dark);
|
| 413 |
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
| 414 |
+
border-radius: 8px;
|
| 415 |
+
color: #fff;
|
| 416 |
+
font-size: 1rem;
|
| 417 |
+
}
|
| 418 |
+
|
| 419 |
+
.form-input:focus {
|
| 420 |
+
outline: none;
|
| 421 |
+
border-color: var(--primary-gold);
|
| 422 |
+
}
|
| 423 |
+
|
| 424 |
+
/* Game UI Specifics */
|
| 425 |
+
.game-area {
|
| 426 |
+
background: #050507; /* Darker felt color */
|
| 427 |
+
padding: 20px;
|
| 428 |
+
border-radius: 12px;
|
| 429 |
+
text-align: center;
|
| 430 |
+
min-height: 300px;
|
| 431 |
+
display: flex;
|
| 432 |
+
flex-direction: column;
|
| 433 |
+
justify-content: space-between;
|
| 434 |
+
border: 2px solid #333;
|
| 435 |
+
box-shadow: inset 0 0 50px rgba(0,0,0,0.8);
|
| 436 |
+
}
|
| 437 |
+
|
| 438 |
+
.game-controls {
|
| 439 |
+
display: flex;
|
| 440 |
+
gap: 10px;
|
| 441 |
+
justify-content: center;
|
| 442 |
+
margin-top: 20px;
|
| 443 |
+
flex-wrap: wrap;
|
| 444 |
+
}
|
| 445 |
+
|
| 446 |
+
.game-result {
|
| 447 |
+
font-size: 1.5rem;
|
| 448 |
+
font-weight: bold;
|
| 449 |
+
min-height: 2em;
|
| 450 |
+
margin: 10px 0;
|
| 451 |
+
text-shadow: 0 2px 4px rgba(0,0,0,0.5);
|
| 452 |
+
}
|
| 453 |
+
|
| 454 |
+
.win-anim {
|
| 455 |
+
color: var(--accent-green);
|
| 456 |
+
animation: pulse 0.5s;
|
| 457 |
+
}
|
| 458 |
+
|
| 459 |
+
.lose-anim {
|
| 460 |
+
color: var(--accent-red);
|
| 461 |
+
}
|
| 462 |
+
|
| 463 |
+
@keyframes pulse {
|
| 464 |
+
0% { transform: scale(1); }
|
| 465 |
+
50% { transform: scale(1.1); }
|
| 466 |
+
100% { transform: scale(1); }
|
| 467 |
+
}
|
| 468 |
+
|
| 469 |
+
/* Toast Notification */
|
| 470 |
+
.toast-container {
|
| 471 |
+
position: fixed;
|
| 472 |
+
bottom: 20px;
|
| 473 |
+
right: 20px;
|
| 474 |
+
z-index: 2000;
|
| 475 |
+
display: flex;
|
| 476 |
+
flex-direction: column;
|
| 477 |
+
gap: 10px;
|
| 478 |
+
}
|
| 479 |
+
|
| 480 |
+
.toast {
|
| 481 |
+
background: var(--bg-panel);
|
| 482 |
+
border-left: 4px solid var(--primary-gold);
|
| 483 |
+
color: #fff;
|
| 484 |
+
padding: 15px 25px;
|
| 485 |
+
border-radius: 4px;
|
| 486 |
+
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
|
| 487 |
+
display: flex;
|
| 488 |
+
align-items: center;
|
| 489 |
+
gap: 10px;
|
| 490 |
+
animation: slideIn 0.3s ease-out forwards;
|
| 491 |
+
min-width: 250px;
|
| 492 |
+
}
|
| 493 |
+
|
| 494 |
+
@keyframes slideIn {
|
| 495 |
+
from { transform: translateX(100%); opacity: 0; }
|
| 496 |
+
to { transform: translateX(0); opacity: 1; }
|
| 497 |
+
}
|
| 498 |
+
|
| 499 |
+
/* --- BLACKJACK SPECIFIC STYLES --- */
|
| 500 |
+
.bj-table {
|
| 501 |
+
width: 100%;
|
| 502 |
+
display: flex;
|
| 503 |
+
flex-direction: column;
|
| 504 |
+
gap: 20px;
|
| 505 |
+
height: 100%;
|
| 506 |
+
}
|
| 507 |
+
|
| 508 |
+
.hand-area {
|
| 509 |
+
display: flex;
|
| 510 |
+
flex-direction: column;
|
| 511 |
+
align-items: center;
|
| 512 |
+
gap: 10px;
|
| 513 |
+
}
|
| 514 |
+
|
| 515 |
+
.hand-label {
|
| 516 |
+
font-size: 0.9rem;
|
| 517 |
+
color: var(--text-muted);
|
| 518 |
+
text-transform: uppercase;
|
| 519 |
+
letter-spacing: 1px;
|
| 520 |
+
}
|
| 521 |
+
|
| 522 |
+
.cards-container {
|
| 523 |
+
display: flex;
|
| 524 |
+
justify-content: center;
|
| 525 |
+
gap: 10px;
|
| 526 |
+
min-height: 100px;
|
| 527 |
+
flex-wrap: wrap;
|
| 528 |
+
}
|
| 529 |
+
|
| 530 |
+
.playing-card {
|
| 531 |
+
width: 60px;
|
| 532 |
+
height: 90px;
|
| 533 |
+
background: white;
|
| 534 |
+
border-radius: 6px;
|
| 535 |
+
color: black;
|
| 536 |
+
font-weight: bold;
|
| 537 |
+
font-size: 1.2rem;
|
| 538 |
+
display: flex;
|
| 539 |
+
flex-direction: column;
|
| 540 |
+
justify-content: space-between;
|
| 541 |
+
padding: 5px;
|
| 542 |
+
box-shadow: 0 2px 5px rgba(0,0,0,0.3);
|
| 543 |
+
position: relative;
|
| 544 |
+
user-select: none;
|
| 545 |
+
animation: dealCard 0.3s ease-out;
|
| 546 |
+
}
|
| 547 |
+
|
| 548 |
+
@keyframes dealCard {
|
| 549 |
+
from { transform: translateY(-50px) scale(0.5); opacity: 0; }
|
| 550 |
+
to { transform: translateY(0) scale(1); opacity: 1; }
|
| 551 |
+
}
|
| 552 |
+
|
| 553 |
+
.playing-card.red { color: #d00; }
|
| 554 |
+
.playing-card.black { color: #000; }
|
| 555 |
+
|
| 556 |
+
.card-center {
|
| 557 |
+
position: absolute;
|
| 558 |
+
top: 50%;
|
| 559 |
+
left: 50%;
|
| 560 |
+
transform: translate(-50%, -50%);
|
| 561 |
+
font-size: 1.8rem;
|
| 562 |
+
}
|
| 563 |
+
|
| 564 |
+
.card-corner-bottom {
|
| 565 |
+
transform: rotate(180deg);
|
| 566 |
+
}
|
| 567 |
+
|
| 568 |
+
.score-bubble {
|
| 569 |
+
background: rgba(0,0,0,0.6);
|
| 570 |
+
padding: 2px 8px;
|
| 571 |
+
border-radius: 10px;
|
| 572 |
+
font-size: 0.8rem;
|
| 573 |
+
color: white;
|
| 574 |
+
margin-top: 5px;
|
| 575 |
+
}
|
| 576 |
+
|
| 577 |
+
.hidden-card {
|
| 578 |
+
background: repeating-linear-gradient(
|
| 579 |
+
45deg,
|
| 580 |
+
#606dbc,
|
| 581 |
+
#606dbc 10px,
|
| 582 |
+
#465298 10px,
|
| 583 |
+
#465298 20px
|
| 584 |
+
);
|
| 585 |
+
border: 2px solid white;
|
| 586 |
+
}
|
| 587 |
+
|
| 588 |
+
/* Responsive */
|
| 589 |
+
@media (max-width: 768px) {
|
| 590 |
+
.highlight-content { grid-template-columns: 1fr; }
|
| 591 |
+
.highlight-image { height: 250px; }
|
| 592 |
+
.highlight-image::after { background: linear-gradient(180deg, transparent 0%, var(--bg-panel) 100%); }
|
| 593 |
+
.nav-controls span { display: none; }
|
| 594 |
+
.daily-bonus-banner { flex-direction: column; text-align: center; }
|
| 595 |
+
.modal { width: 95%; padding: 20px; }
|
| 596 |
+
.playing-card { width: 50px; height: 75px; font-size: 1rem; }
|
| 597 |
+
.card-center { font-size: 1.5rem; }
|
| 598 |
+
}
|
| 599 |
+
</style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 600 |
</head>
|
| 601 |
+
|
| 602 |
<body>
|
| 603 |
|
| 604 |
+
<!-- Header -->
|
| 605 |
+
<header>
|
| 606 |
+
<div class="container">
|
| 607 |
+
<nav>
|
| 608 |
+
<div class="logo">
|
| 609 |
+
<i class="fas fa-crown"></i>
|
| 610 |
+
ROYAL FORTUNE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 611 |
</div>
|
| 612 |
+
<div class="nav-controls">
|
| 613 |
+
<select id="languageSelect" class="lang-select">
|
| 614 |
+
<option value="en">EN</option>
|
| 615 |
+
<option value="es">ES</option>
|
| 616 |
+
<option value="fr">FR</option>
|
| 617 |
+
<option value="de">DE</option>
|
| 618 |
+
</select>
|
| 619 |
+
<div class="balance-display">
|
| 620 |
+
<i class="fas fa-coins"></i>
|
| 621 |
+
<span id="balanceAmount">1000</span>
|
| 622 |
+
</div>
|
| 623 |
+
<button class="btn btn-gold" id="topUpBtn">
|
| 624 |
+
<i class="fas fa-plus-circle"></i> <span data-i18n="topUp">Top Up</span>
|
| 625 |
+
</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 626 |
</div>
|
| 627 |
+
</nav>
|
| 628 |
</div>
|
| 629 |
+
</header>
|
| 630 |
+
|
| 631 |
+
<main class="container">
|
| 632 |
|
| 633 |
+
<!-- Hero & Daily Bonus -->
|
| 634 |
+
<section class="hero">
|
| 635 |
+
<div class="daily-bonus-banner">
|
| 636 |
+
<div class="bonus-content">
|
| 637 |
+
<h3 data-i18n="dailyBonusTitle">🔥 Daily Deposit Bonus</h3>
|
| 638 |
+
<p id="dailyBonusText">Loading...</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 639 |
</div>
|
| 640 |
+
<button class="btn btn-outline" onclick="openTopUpModal()" data-i18n="claimNow">Claim Now</button>
|
| 641 |
+
</div>
|
| 642 |
+
|
| 643 |
+
<div class="game-highlight" id="highlightSection">
|
| 644 |
+
<div class="highlight-badge" data-i18n="gameOfDay">Game of the Day</div>
|
| 645 |
+
<div class="highlight-content">
|
| 646 |
+
<div class="highlight-image" id="highlightImage"></div>
|
| 647 |
+
<div class="highlight-text">
|
| 648 |
+
<h2 id="highlightTitle">Loading...</h2>
|
| 649 |
+
<p id="highlightDesc" style="color: var(--text-muted); margin: 15px 0;">Loading description...</p>
|
| 650 |
+
<button class="btn btn-gold" id="highlightPlayBtn">
|
| 651 |
+
<i class="fas fa-play"></i> <span data-i18n="playNow">Play Now</span>
|
| 652 |
+
</button>
|
| 653 |
+
</div>
|
| 654 |
+
</div>
|
| 655 |
+
</div>
|
| 656 |
+
</section>
|
| 657 |
+
|
| 658 |
+
<!-- Games Grid -->
|
| 659 |
+
<h2 class="section-title" data-i18n="ourGames">Our Games</h2>
|
| 660 |
+
<section class="games-grid" id="gamesGrid">
|
| 661 |
+
<!-- Games injected via JS -->
|
| 662 |
+
</section>
|
| 663 |
+
|
| 664 |
+
</main>
|
| 665 |
+
|
| 666 |
+
<footer style="text-align: center; padding: 40px; color: var(--text-muted); font-size: 0.8rem; border-top: 1px solid rgba(255,255,255,0.05); background: var(--bg-panel);">
|
| 667 |
+
<p>© 2023 Royal Fortune Casino. All rights reserved.</p>
|
| 668 |
+
<p style="margin-top: 10px;">Please gamble responsibly. This is a demo application.</p>
|
| 669 |
+
<div style="margin-top: 20px;">
|
| 670 |
+
<a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" style="color: var(--primary-gold); font-weight: bold;">
|
| 671 |
+
Built with anycoder
|
| 672 |
+
</a>
|
| 673 |
</div>
|
| 674 |
+
</footer>
|
| 675 |
+
|
| 676 |
+
<!-- TOP UP MODAL -->
|
| 677 |
+
<div class="modal-overlay" id="topUpModal">
|
| 678 |
+
<div class="modal">
|
| 679 |
+
<div class="modal-header">
|
| 680 |
+
<h3 data-i18n="addFunds">Add Funds</h3>
|
| 681 |
+
<button class="close-modal">×</button>
|
| 682 |
+
</div>
|
| 683 |
+
<div class="form-group">
|
| 684 |
+
<label class="form-label" data-i18n="amount">Amount</label>
|
| 685 |
+
<input type="number" id="topUpAmount" class="form-input" placeholder="Enter amount..." min="10">
|
| 686 |
+
</div>
|
| 687 |
+
<button class="btn btn-gold" id="confirmTopUp" style="width: 100%" data-i18n="confirm">Confirm</button>
|
| 688 |
+
</div>
|
| 689 |
+
</div>
|
| 690 |
+
|
| 691 |
+
<!-- GAME MODAL -->
|
| 692 |
+
<div class="modal-overlay" id="gameModal">
|
| 693 |
+
<div class="modal">
|
| 694 |
+
<div class="modal-header">
|
| 695 |
+
<h3 id="activeGameTitle">Game Title</h3>
|
| 696 |
+
<button class="close-modal">×</button>
|
| 697 |
+
</div>
|
| 698 |
+
|
| 699 |
+
<div class="game-area" id="gameArena">
|
| 700 |
+
<!-- Dynamic Game Content Here -->
|
| 701 |
+
</div>
|
| 702 |
+
|
| 703 |
+
<div class="game-controls" id="gameControls">
|
| 704 |
+
<!-- Dynamic Controls Here -->
|
| 705 |
+
</div>
|
| 706 |
+
|
| 707 |
+
<div style="text-align: center; margin-top: 15px; color: var(--text-muted); font-size: 0.9rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px;">
|
| 708 |
+
<span data-i18n="yourBet">Your Bet</span>:
|
| 709 |
+
<span id="currentBetDisplay" style="color: #fff; font-weight: bold; margin-left: 5px;">10</span>
|
| 710 |
+
<div style="margin-top: 10px;">
|
| 711 |
+
<button class="btn btn-outline" style="padding: 2px 10px; font-size: 0.8rem;" onclick="adjustBet(10)">+10</button>
|
| 712 |
+
<button class="btn btn-outline" style="padding: 2px 10px; font-size: 0.8rem;" onclick="adjustBet(-10)">-10</button>
|
| 713 |
+
</div>
|
| 714 |
+
</div>
|
| 715 |
+
</div>
|
| 716 |
+
</div>
|
| 717 |
+
|
| 718 |
+
<!-- Toast Container -->
|
| 719 |
+
<div class="toast-container" id="toastContainer"></div>
|
| 720 |
+
|
| 721 |
+
<script>
|
| 722 |
+
// --- DATA & STATE ---
|
| 723 |
+
const state = {
|
| 724 |
+
balance: 1000,
|
| 725 |
+
currentBet: 10,
|
| 726 |
+
lang: 'en',
|
| 727 |
+
activeGame: null
|
| 728 |
+
};
|
| 729 |
+
|
| 730 |
+
const translations = {
|
| 731 |
+
en: {
|
| 732 |
+
topUp: "Top Up",
|
| 733 |
+
dailyBonusTitle: "🔥 Daily Deposit Bonus",
|
| 734 |
+
claimNow: "Claim Now",
|
| 735 |
+
gameOfDay: "Game of the Day",
|
| 736 |
+
playNow: "Play Now",
|
| 737 |
+
ourGames: "Our Games",
|
| 738 |
+
addFunds: "Add Funds",
|
| 739 |
+
amount: "Amount",
|
| 740 |
+
confirm: "Confirm",
|
| 741 |
+
yourBet: "Your Bet",
|
| 742 |
+
spin: "Spin",
|
| 743 |
+
hit: "Hit",
|
| 744 |
+
stand: "Stand",
|
| 745 |
+
double: "Double",
|
| 746 |
+
pickColor: "Pick Color",
|
| 747 |
+
pickHigher: "Higher",
|
| 748 |
+
pickLower: "Lower",
|
| 749 |
+
flip: "Flip Coin",
|
| 750 |
+
red: "Red",
|
| 751 |
+
black: "Black",
|
| 752 |
+
green: "Green",
|
| 753 |
+
msgWin: "You Won!",
|
| 754 |
+
msgLose: "Dealer Wins",
|
| 755 |
+
msgPush: "Push (Tie)",
|
| 756 |
+
msgBust: "Bust! You Lose",
|
| 757 |
+
msgBlackjack: "BLACKJACK!",
|
| 758 |
+
msgInsufficient: "Insufficient funds!",
|
| 759 |
+
msgTopUpSuccess: "Funds added successfully!",
|
| 760 |
+
bonusText: "Get {value}% extra on every deposit today!",
|
| 761 |
+
dealer: "Dealer",
|
| 762 |
+
you: "You",
|
| 763 |
+
games: {
|
| 764 |
+
slots: { name: "Neon Slots", desc: "Match symbols to win big!" },
|
| 765 |
+
blackjack: { name: "Blackjack", desc: "Beat the dealer to 21." },
|
| 766 |
+
roulette: { name: "Mini Roulette", desc: "Pick your lucky color." },
|
| 767 |
+
highlow: { name: "High Low", desc: "Guess the next card." }
|
| 768 |
+
}
|
| 769 |
+
},
|
| 770 |
+
es: {
|
| 771 |
+
topUp: "Recargar",
|
| 772 |
+
dailyBonusTitle: "🔥 Bono Diario",
|
| 773 |
+
claimNow: "Reclamar",
|
| 774 |
+
gameOfDay: "Juego del Día",
|
| 775 |
+
playNow: "Jugar Ahora",
|
| 776 |
+
ourGames: "Nuestros Juegos",
|
| 777 |
+
addFunds: "Añadir Fondos",
|
| 778 |
+
amount: "Cantidad",
|
| 779 |
+
confirm: "Confirmar",
|
| 780 |
+
yourBet: "Tu Apuesta",
|
| 781 |
+
spin: "Girar",
|
| 782 |
+
hit: "Pedir",
|
| 783 |
+
stand: "Plantarse",
|
| 784 |
+
double: "Doblar",
|
| 785 |
+
pickColor: "Elige Color",
|
| 786 |
+
pickHigher: "Más Alto",
|
| 787 |
+
pickLower: "Más Bajo",
|
| 788 |
+
flip: "Lanzar",
|
| 789 |
+
red: "Rojo",
|
| 790 |
+
black: "Negro",
|
| 791 |
+
green: "Verde",
|
| 792 |
+
msgWin: "¡Ganaste!",
|
| 793 |
+
msgLose: "Gana la Casa",
|
| 794 |
+
msgPush: "Empate",
|
| 795 |
+
msgBust: "¡Te pasaste!",
|
| 796 |
+
msgBlackjack: "¡BLACKJACK!",
|
| 797 |
+
msgInsufficient: "¡Fondos insuficientes!",
|
| 798 |
+
msgTopUpSuccess: "¡Fondos añadidos con éxito!",
|
| 799 |
+
bonusText: "¡Obtén un {value}% extra en cada depósito hoy!",
|
| 800 |
+
dealer: "Croupier",
|
| 801 |
+
you: "Tú",
|
| 802 |
+
games: {
|
| 803 |
+
slots: { name: "Tragamonedas", desc: "¡Combina símbolos para ganar!" },
|
| 804 |
+
blackjack: { name: "Blackjack", desc: "Supera al croupier con 21." },
|
| 805 |
+
roulette: { name: "Ruleta Mini", desc: "Elige tu color de la suerte." },
|
| 806 |
+
highlow: { name: "Alto Bajo", desc: "Adivina la siguiente carta." }
|
| 807 |
+
}
|
| 808 |
+
},
|
| 809 |
+
fr: {
|
| 810 |
+
topUp: "Recharger",
|
| 811 |
+
dailyBonusTitle: "🔥 Bonus Quotidien",
|
| 812 |
+
claimNow: "Réclamer",
|
| 813 |
+
gameOfDay: "Jeu du Jour",
|
| 814 |
+
playNow: "Jouer",
|
| 815 |
+
ourGames: "Nos Jeux",
|
| 816 |
+
addFunds: "Ajouter des Fonds",
|
| 817 |
+
amount: "Montant",
|
| 818 |
+
confirm: "Confirmer",
|
| 819 |
+
yourBet: "Votre Mise",
|
| 820 |
+
spin: "Tourner",
|
| 821 |
+
hit: "Carte",
|
| 822 |
+
stand: "Servi",
|
| 823 |
+
double: "Doubler",
|
| 824 |
+
pickColor: "Choisir Couleur",
|
| 825 |
+
pickHigher: "Plus Haut",
|
| 826 |
+
pickLower: "Plus Bas",
|
| 827 |
+
flip: "Lancer",
|
| 828 |
+
red: "Rouge",
|
| 829 |
+
black: "Noir",
|
| 830 |
+
green: "Vert",
|
| 831 |
+
msgWin: "Vous avez gagné!",
|
| 832 |
+
msgLose: "La Maison Gagne",
|
| 833 |
+
msgPush: "Égalité",
|
| 834 |
+
msgBust: "Perdu!",
|
| 835 |
+
msgBlackjack: "BLACKJACK!",
|
| 836 |
+
msgInsufficient: "Fonds insuffisants!",
|
| 837 |
+
msgTopUpSuccess: "Fonds ajoutés avec succès!",
|
| 838 |
+
bonusText: "Obtenez {value}% de plus sur chaque dépôt aujourd'hui!",
|
| 839 |
+
dealer: "Croupier",
|
| 840 |
+
you: "Vous",
|
| 841 |
+
games: {
|
| 842 |
+
slots: { name: "Machine à Sous", desc: "Alignez les symboles!" },
|
| 843 |
+
blackjack: { name: "Blackjack", desc: "Battre le croupier." },
|
| 844 |
+
roulette: { name: "Mini Roulette", desc: "Choisissez votre couleur." },
|
| 845 |
+
highlow: { name: "Plus ou Moins", desc: "Devinez la carte suivante." }
|
| 846 |
+
}
|
| 847 |
+
},
|
| 848 |
+
de: {
|
| 849 |
+
topUp: "Aufladen",
|
| 850 |
+
dailyBonusTitle: "🔥 Tägliches Bonus",
|
| 851 |
+
claimNow: "Fordern",
|
| 852 |
+
gameOfDay: "Spiel des Tages",
|
| 853 |
+
playNow: "Jetzt Spielen",
|
| 854 |
+
ourGames: "Unsere Spiele",
|
| 855 |
+
addFunds: "Guthaben Aufladen",
|
| 856 |
+
amount: "Betrag",
|
| 857 |
+
confirm: "Bestätigen",
|
| 858 |
+
yourBet: "Dein Einsatz",
|
| 859 |
+
spin: "Drehen",
|
| 860 |
+
hit: "Karte",
|
| 861 |
+
stand: "Halten",
|
| 862 |
+
double: "Verdoppeln",
|
| 863 |
+
pickColor: "Farbe Wählen",
|
| 864 |
+
pickHigher: "Höher",
|
| 865 |
+
pickLower: "Niedriger",
|
| 866 |
+
flip: "Werfen",
|
| 867 |
+
red: "Rot",
|
| 868 |
+
black: "Schwarz",
|
| 869 |
+
green: "Grün",
|
| 870 |
+
msgWin: "Gewonnen!",
|
| 871 |
+
msgLose: "Bank Gewinnt",
|
| 872 |
+
msgPush: "Unentschieden",
|
| 873 |
+
msgBust: "Verloren!",
|
| 874 |
+
msgBlackjack: "BLACKJACK!",
|
| 875 |
+
msgInsufficient: "Nicht genug Guthaben!",
|
| 876 |
+
msgTopUpSuccess: "Guthaben erfolgreich aufgeladen!",
|
| 877 |
+
bonusText: "Erhalten Sie heute {value}% mehr auf jede Einzahlung!",
|
| 878 |
+
dealer: "Dealer",
|
| 879 |
+
you: "Sie",
|
| 880 |
+
games: {
|
| 881 |
+
slots: { name: "Automatenspiele", desc: "Symbole kombinieren!" },
|
| 882 |
+
blackjack: { name: "Blackjack", desc: "Schlagen Sie den Dealer." },
|
| 883 |
+
roulette: { name: "Mini Roulette", desc: "Wähle deine Glücksfarbe." },
|
| 884 |
+
highlow: { name: "Hoch Runter", desc: "Rate die nächste Karte." }
|
| 885 |
+
}
|
| 886 |
+
}
|
| 887 |
+
};
|
| 888 |
+
|
| 889 |
+
const gamesList = [
|
| 890 |
+
{ id: 'blackjack', icon: 'fa-diamond', color: '#e74c3c' }, // Prioritized
|
| 891 |
+
{ id: 'slots', icon: 'fa-dice', color: '#e74c3c' },
|
| 892 |
+
{ id: 'roulette', icon: 'fa-circle-notch', color: '#2ecc71' },
|
| 893 |
+
{ id: 'highlow', icon: 'fa-layer-group', color: '#9b59b6' }
|
| 894 |
+
];
|
| 895 |
+
|
| 896 |
+
// --- CORE FUNCTIONS ---
|
| 897 |
+
|
| 898 |
+
function init() {
|
| 899 |
+
updateBalanceUI();
|
| 900 |
+
setupDailyFeatures();
|
| 901 |
+
renderGames();
|
| 902 |
+
setupEventListeners();
|
| 903 |
+
applyLanguage();
|
| 904 |
+
}
|
| 905 |
+
|
| 906 |
+
function t(key, sub = {}) {
|
| 907 |
+
let str = translations[state.lang][key] || key;
|
| 908 |
+
for (const [k, v] of Object.entries(sub)) {
|
| 909 |
+
str = str.replace(`{${k}}`, v);
|
| 910 |
+
}
|
| 911 |
+
return str;
|
| 912 |
+
}
|
| 913 |
+
|
| 914 |
+
function applyLanguage() {
|
| 915 |
+
document.querySelectorAll('[data-i18n]').forEach(el => {
|
| 916 |
+
const key = el.getAttribute('data-i18n');
|
| 917 |
+
el.textContent = t(key);
|
| 918 |
+
});
|
| 919 |
+
setupDailyFeatures();
|
| 920 |
+
renderGames();
|
| 921 |
+
}
|
| 922 |
+
|
| 923 |
+
function updateBalanceUI() {
|
| 924 |
+
document.getElementById('balanceAmount').textContent = state.balance;
|
| 925 |
+
}
|
| 926 |
+
|
| 927 |
+
function adjustBet(amount) {
|
| 928 |
+
state.currentBet += amount;
|
| 929 |
+
if (state.currentBet < 10) state.currentBet = 10;
|
| 930 |
+
document.getElementById('currentBetDisplay').textContent = state.currentBet;
|
| 931 |
+
}
|
| 932 |
+
|
| 933 |
+
function showToast(msg, type = 'info') {
|
| 934 |
+
const container = document.getElementById('toastContainer');
|
| 935 |
+
const toast = document.createElement('div');
|
| 936 |
+
toast.className = 'toast';
|
| 937 |
+
toast.style.borderLeftColor = type === 'error' ? 'var(--accent-red)' : (type === 'success' ? 'var(--accent-green)' : 'var(--primary-gold)');
|
| 938 |
+
toast.innerHTML = `<i class="fas ${type === 'success' ? 'fa-check-circle' : 'fa-info-circle'}"></i> <span>${msg}</span>`;
|
| 939 |
+
container.appendChild(toast);
|
| 940 |
+
setTimeout(() => toast.remove(), 3000);
|
| 941 |
+
}
|
| 942 |
+
|
| 943 |
+
// --- DAILY FEATURES ---
|
| 944 |
+
|
| 945 |
+
function setupDailyFeatures() {
|
| 946 |
+
const dayIndex = new Date().getDay();
|
| 947 |
+
const bonusPercent = (dayIndex + 1) * 10;
|
| 948 |
+
document.getElementById('dailyBonusText').textContent = t('bonusText', { value: bonusPercent });
|
| 949 |
+
|
| 950 |
+
const gameIndex = dayIndex % gamesList.length;
|
| 951 |
+
const highlightGame = gamesList[gameIndex];
|
| 952 |
+
const gameInfo = t('games')[highlightGame.id];
|
| 953 |
+
|
| 954 |
+
document.getElementById('highlightTitle').textContent = gameInfo.name;
|
| 955 |
+
document.getElementById('highlightDesc').textContent = gameInfo.desc;
|
| 956 |
+
|
| 957 |
+
const imgDiv = document.getElementById('highlightImage');
|
| 958 |
+
imgDiv.style.background = `linear-gradient(45deg, ${highlightGame.color}, #000)`;
|
| 959 |
+
|
| 960 |
+
const btn = document.getElementById('highlightPlayBtn');
|
| 961 |
+
btn.onclick = () => openGame(highlightGame.id);
|
| 962 |
+
}
|
| 963 |
+
|
| 964 |
+
// --- RENDER & EVENTS ---
|
| 965 |
+
|
| 966 |
+
function renderGames() {
|
| 967 |
+
const grid = document.getElementById('gamesGrid');
|
| 968 |
+
grid.innerHTML = '';
|
| 969 |
+
gamesList.forEach(game => {
|
| 970 |
+
const info = t('games')[game.id];
|
| 971 |
+
const card = document.createElement('div');
|
| 972 |
+
card.className = 'game-card';
|
| 973 |
+
card.innerHTML = `
|
| 974 |
<div class="card-img" style="background: linear-gradient(135deg, ${game.color}, #111);">
|
| 975 |
<div class="card-overlay">
|
| 976 |
<button class="btn btn-gold play-trigger" data-id="${game.id}">${t('playNow')}</button>
|
|
|
|
| 982 |
<p>${info.desc}</p>
|
| 983 |
</div>
|
| 984 |
`;
|
| 985 |
+
card.onclick = () => openGame(game.id);
|
| 986 |
+
grid.appendChild(card);
|
| 987 |
+
});
|
| 988 |
+
}
|
| 989 |
+
|
| 990 |
+
function setupEventListeners() {
|
| 991 |
+
document.getElementById('languageSelect').addEventListener('change', (e) => {
|
| 992 |
+
state.lang = e.target.value;
|
| 993 |
+
applyLanguage();
|
| 994 |
+
});
|
| 995 |
+
|
| 996 |
+
document.querySelectorAll('.close-modal').forEach(btn => {
|
| 997 |
+
btn.onclick = () => {
|
| 998 |
+
document.querySelectorAll('.modal-overlay').forEach(m => m.classList.remove('active'));
|
| 999 |
+
};
|
| 1000 |
+
});
|
| 1001 |
+
|
| 1002 |
+
document.getElementById('topUpBtn').onclick = openTopUpModal;
|
| 1003 |
+
document.getElementById('confirmTopUp').onclick = processTopUp;
|
| 1004 |
+
}
|
| 1005 |
+
|
| 1006 |
+
function openTopUpModal() {
|
| 1007 |
+
document.getElementById('topUpModal').classList.add('active');
|
| 1008 |
+
}
|
| 1009 |
+
|
| 1010 |
+
function processTopUp() {
|
| 1011 |
+
const amount = parseInt(document.getElementById('topUpAmount').value);
|
| 1012 |
+
if (!amount || amount <= 0) {
|
| 1013 |
+
showToast(t('msgInsufficient'), 'error');
|
| 1014 |
+
return;
|
| 1015 |
+
}
|
| 1016 |
+
const dayIndex = new Date().getDay();
|
| 1017 |
+
const bonusPercent = (dayIndex + 1) * 10;
|
| 1018 |
+
const bonus = Math.floor(amount * (bonusPercent / 100));
|
| 1019 |
+
const total = amount + bonus;
|
| 1020 |
+
|
| 1021 |
+
state.balance += total;
|
| 1022 |
+
updateBalanceUI();
|
| 1023 |
+
showToast(t('msgTopUpSuccess') + ` (+${bonus} bonus)`, 'success');
|
| 1024 |
+
document.getElementById('topUpModal').classList.remove('active');
|
| 1025 |
+
document.getElementById('topUpAmount').value = '';
|
| 1026 |
+
}
|
| 1027 |
+
|
| 1028 |
+
// --- GAME LOGIC ---
|
| 1029 |
+
|
| 1030 |
+
function openGame(gameId) {
|
| 1031 |
+
if (state.balance < state.currentBet) {
|
| 1032 |
+
showToast(t('msgInsufficient'), 'error');
|
| 1033 |
+
return;
|
| 1034 |
+
}
|
| 1035 |
+
state.activeGame = gameId;
|
| 1036 |
+
document.getElementById('activeGameTitle').textContent = t('games')[gameId].name;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|