:root {
    --smaller-font: 0.5rem;
    --small-font: 0.5rem;
    --normal-font: 1rem;
    --medium-font: 1.1rem;
    --large-font: 1.7rem;
    --x-large-font: 2rem;
    --bg-color: #000000;
    --text-first: #ffffff;
    --text-second: #ffffff;
    --first-color: #000000;
    --second-color: #000000;
    --third-color: #000000;
    --fourth-color: #000000;
    --fifth-color: #000000;
    --g1: #212529;
    --g2: #212529;
}
  /* Global Styles */
  body {
    background-image: url('https://res.cloudinary.com/dzi3zgj64/image/upload/v1744533545/Untitled-3_wwsqfp.jpg'); /* Ganti 'path/ke/gambar/anda.jpg' dengan jalur gambar Anda */
    color: var(--text-first);
    background-size: cover !important;
    background-attachment: fixed !important;
    background-position: center center !important;
  }
  
  a {
    text-decoration: none;
  }
  
  .navbar {
    background-color: #0c1b38;
  }
  
  .running-text {
    background: linear-gradient(0deg, var(--g2) 0%, var(--g1) 100%);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 1rem;
    color: var(--text-second);
  }
  
  .swiper-container.banner-swiper,
  .swiper-container.provider-swiper {
    overflow: hidden;
  }
  .swiper-container.banner-swiper .swiper-slide {
    width: 100%;
  }
  .swiper-container.provider-swiper .swiper-slide {
    width: 100px;
    flex-shrink: 0;
  }
  
  /* Card Game */
  .rtp-card {
    background: linear-gradient(0deg, var(--g2) 0%, var(--g1) 100%);
    padding: 0.7rem;
    border-radius: 5px;
    margin-bottom: 0.7rem;
    position: relative;
    text-align: center;
    z-index: 1;
    animation-duration: 1s;
  }
  .rtp-card img,
  .rtp-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
  }
  
  /* Override untuk icon provider agar tidak terpengaruh aspect-ratio */
  .icon-providers img {
    object-fit: contain;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
  }
  
  /* Badge Kategori */
  .badge-category {
    position: absolute;
    top: -10px;
    left: -10px;
    z-index: 10;
    font-size: 0.75rem;
    border-radius: 5px;
  }
  
  /* Place Image & Play Button */
  .place-img-rtp {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
  }
  .btn-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    border: none;
    border-radius: 5px;
    padding: 0.3rem;
    width: 7rem;
    font-size: 0.6rem;
    font-weight: bold;
    background: linear-gradient(0deg, var(--g1) 0%, var(--g2) 100%);
    color: #ffffff;
    display: none;
  }
  
  /* Pola Wrapper */
  .game-name{
    font-size: 0.1rem;
    z-index: -999999;
  }
  
  .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  
  .pola-wrapper {
    background: linear-gradient(0deg, #380000 0%, #380000 100%);
    padding: 0.9rem;
    border-radius: 5px;
    position: relative;
    margin-top: 0.5rem;
  }
  .icon-providers {
    position: absolute;
    top: 12px;
    right: 25px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .pola-slot{
    position: static;
    padding-right: 25px;
  }
  
  /* Tabel Pola */
  .table-pola {
    font-size: 0.75rem;
    table-layout: fixed;
    border-collapse: collapse;
  }
  .table-pola td {
    padding: 4px;
    vertical-align: middle;
  }
  
  /* Kolom pertama (label) rata kiri dan diberi lebar tertentu */
  .table-pola tr td:first-child {
    text-align: left;
    width: 40%;
    font-weight: bold;
  }
  
  /* Kolom-kolom berikutnya (ikon) rata tengah atau kanan sesuai kebutuhan */
  .table-pola tr td:not(:first-child) {
    text-align: center; /* atau "right" jika ingin rata kanan */
    width: calc(60% / 3); /* jika ada 3 kolom ikon, masing-masing mendapat lebar sama */
  }
  
  /* Percentage Bar */
  .percent {
    position: relative;
    background-color: #ffffff;
    border-radius: 5px;
    height: 20px;
    margin-top: 0.5rem;
  }
  .percent-bar {
    height: 100%;
    border-radius: 5px;
    transition: width 0.6s;
    background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-pack: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
    white-space: nowrap;
    /* background-color: #007bff; */
    transition: width .6s ease;
    -webkit-animation: progress-bar-stripes 2s linear infinite;
    animation: progress-bar-stripes 1s linear infinite;
    z-index: 10
  }
  .percent-bar.great { background-color: #00a827; }
  .percent-bar.good  { background-color: #ffae00; }
  .percent-bar.bad   { background-color: #c7081b; }
  .percent-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    line-height: 20px;
    font-size: 0.8rem;
    font-weight: bolder;
    color: #ffffff;
  }
  
  /* Hide Card untuk Filtering */
  .hide-card {
    display: none !important;
  }
  
  /* Responsive Container */
  @media (min-width: 1200px) {
    .container {
      max-width: 1200px !important;
    }
  }
  
  /* Navbar Overrides */
  .col-auto.d-flex {
    display: flex;
    align-items: center;
  }
  .btn-group.w-100 {
    width: 100%;
  }
  .btn.btn-regis.border-0.text-uppercase.d-flex.align-items-center.py-2 {
    border: 0 !important;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
  }
  .btn.btn-regis.border-0.text-uppercase.d-flex.align-items-center.py-2 i.bi.bi-person-plus-fill {
    margin-right: 0.5rem;
  }
  
  .btn-up {
    display: none;
    position: fixed;
    bottom: 3.8rem;
    right: 0;
    z-index: 99;
    font-size: 0.9rem;
  }
  
  .shadow__btn {
    padding: 10px 20px;
    border: none;
    font-size: 10px;
    color: #ffffff;
    border-radius: 7px;
    letter-spacing: 1px;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.5s;
    transition-property: box-shadow;
    background: linear-gradient(0deg, var(--g2) 0%, var(--g1) 100%);
  }
  .shadow__btn:hover {
    box-shadow:
      0 0 5px var(--g2),
      0 0 25px var(--g2);
  }
  
  .place-img-rtp {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 1px 0px 4px 2px #131313 inset;
  }
  
  /* Thumbnail */
  .place-img-rtp img {
    width: 100%;
    border-radius: 5px;
    /* Transisi untuk "sink" effect */
    transition: transform 0.3s ease;
    transform: scale(0.9);
  }
  
  /* Tombol "Mari Bermain" */
  .btn-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8); /* Mulai dari scale 0.8 */
    opacity: 0; /* Tersembunyi awal */
    transition: transform 0.3s ease, opacity 0.3s ease;
    /* Pastikan display tidak none agar transisi bisa berfungsi (gunakan block atau inline-block) */
    display: inline-block;
    /* Style tambahan: background, padding, dsb. */
    background: linear-gradient(0deg, var(--g2) 0%, var(--g1) 100%);
    color: #ffffff;
  
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  /* Hover: saat card di-hover, thumbnail sink, tombol grow & fade in */
  .place-img-rtp:hover img {
    transform: scale(1); /* "Sink" effect */
    filter:grayscale(70%);
  }
  
  .place-img-rtp:hover .btn-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1); /* Grow ke scale 1 */
  }
  
  /* CSS Loader Animation (From Uiverse.io by ZacharyCrespin) */
  @keyframes square-animation {
    0% {
      left: 0;
      top: 0;
    }
    10.5% {
      left: 0;
      top: 0;
    }
    12.5% {
      left: 32px;
      top: 0;
    }
    23% {
      left: 32px;
      top: 0;
    }
    25% {
      left: 64px;
      top: 0;
    }
    35.5% {
      left: 64px;
      top: 0;
    }
    37.5% {
      left: 64px;
      top: 32px;
    }
    48% {
      left: 64px;
      top: 32px;
    }
    50% {
      left: 32px;
      top: 32px;
    }
    60.5% {
      left: 32px;
      top: 32px;
    }
    62.5% {
      left: 32px;
      top: 64px;
    }
    73% {
      left: 32px;
      top: 64px;
    }
    75% {
      left: 0;
      top: 64px;
    }
    85.5% {
      left: 0;
      top: 64px;
    }
    87.5% {
      left: 0;
      top: 32px;
    }
    98% {
      left: 0;
      top: 32px;
    }
    100% {
      left: 0;
      top: 0;
    }
  }
  
  .loader-wrapper {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
  }
  
  .loader {
    position: relative;
    width: 96px;
    height: 96px;
    transform: rotate(45deg);
    margin: auto;
  }
  
  .loader-square {
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    margin: 2px;
    border-radius: 0;
    background: #010016;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    animation: square-animation 10s ease-in-out infinite both;
  }
  
  /* Gunakan nth-of-type(1) sampai (8) karena indexing dimulai dari 1 */
  .loader-square:nth-of-type(1) {
    animation-delay: 0s;
  }
  .loader-square:nth-of-type(2) {
    animation-delay: -1.4285714286s;
  }
  .loader-square:nth-of-type(3) {
    animation-delay: -2.8571428571s;
  }
  .loader-square:nth-of-type(4) {
    animation-delay: -4.2857142857s;
  }
  .loader-square:nth-of-type(5) {
    animation-delay: -5.7142857143s;
  }
  .loader-square:nth-of-type(6) {
    animation-delay: -7.1428571429s;
  }
  .loader-square:nth-of-type(7) {
    animation-delay: -8.5714285714s;
  }
  .loader-square:nth-of-type(8) {
    animation-delay: -10s;
  }
  
  /* CSS untuk gambar dengan loader */
  .image-container {
    position: relative;
    overflow: hidden;
  }
  
  .image-container .loader-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
  }
  
  .image-container img {
    width: 100%;
    display: block;
    transition: opacity 0.5s ease;
    opacity: 0;
  }
  
  .image-container img.lazy-loaded {
    opacity: 1;
    /* Hapus loader background jika diinginkan */
  }
  
  