*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
    font-family:Arial,Helvetica,sans-serif;
    /* FIX FINAL BACKGROUND: pakai file lokal domain sendiri + cache bust */
    background-image:url("/img/background2.jpg?v=20260620-bg-final-999999") !important;
    background-size:cover !important;
    background-position:center center !important;
    background-repeat:no-repeat !important;
    background-attachment:fixed !important;
    min-height:100vh;
    color:#fff;
}

::-webkit-scrollbar{
  width:8px;
  height:8px;
}

::-webkit-scrollbar-track{
  background:#111;
}

::-webkit-scrollbar-thumb{
  background:#ffd500;
  border-radius:10px;
}

.hero{
  width:min(1180px,calc(100% - 20px));
  margin:18px auto 10px;
  border-radius:18px;
  overflow:hidden;
  background:#000;
  border:3px solid #111;
  box-shadow:
    0 0 25px rgba(255,220,0,.35),
    0 10px 25px rgba(0,0,0,.4);
}

.top-banner{
  width:100%;
  height:auto;
  display:block;
  border:0;
  border-radius:0;
  object-fit:contain;
  object-position:center;
  box-shadow:none;
}

.live-ticker{
  width:min(1180px,calc(100% - 20px));
  margin:0 auto 12px;
  background:#050505;
  border:2px solid #ffe600;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 0 18px rgba(255,230,0,.35);
}

.ticker-track{
  white-space:nowrap;
  padding:12px 0;
  font-size:15px;
  font-weight:900;
  color:#ffe600;
  animation:tickerMove 28s linear infinite;
}

@keyframes tickerMove{
  from{ transform:translateX(100%); }
  to{ transform:translateX(-100%); }
}

.search-wrap{
  width:min(1180px,calc(100% - 20px));
  margin:0 auto 14px;
}

#gameSearch{
  width:100%;
  height:52px;
  border:none;
  outline:none;
  border-radius:14px;
  padding:0 18px;
  background:#050505;
  color:#ffe600;
  font-size:16px;
  font-weight:800;
  border:2px solid #ffe600;
  box-shadow:0 0 18px rgba(255,230,0,.25);
}

#gameSearch::placeholder{
  color:rgba(255,230,0,.65);
}

.provider-wrap{
  width:min(1180px,calc(100% - 20px));
  margin:0 auto 15px;
  display:grid;
  grid-template-columns:42px 1fr 42px;
  gap:10px;
  align-items:center;
  position:sticky;
  top:8px;
  z-index:10;
}

.provider-scroller{
  display:flex;
  gap:10px;
  overflow-x:auto;
  scroll-behavior:smooth;
  padding:10px;
  background:linear-gradient(180deg,#262000,#171100);
  border-radius:16px;
  border:2px solid rgba(0,0,0,.5);
  scrollbar-width:none;
  backdrop-filter:blur(8px);
}

.provider-scroller::-webkit-scrollbar{
  display:none;
}

.provider-item{
  min-width:140px;
  height:68px;
  border-radius:14px;
  border:2px solid #111;
  background:linear-gradient(180deg,#1c1c1c,#050505);
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px;
  cursor:pointer;
  transition:.25s ease;
  position:relative;
  overflow:hidden;
}

.provider-item::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.08),transparent);
  transform:translateX(-100%);
  transition:.4s;
}

.provider-item:hover::before{
  transform:translateX(100%);
}

.provider-item:hover,
.provider-item.active{
  transform:translateY(-3px);
  border-color:#ffe600;
  box-shadow:0 0 18px rgba(255,220,0,.4);
}

.provider-item img{
  width:40px;
  height:40px;
  object-fit:contain;
}

.provider-item span{
  font-size:14px;
  font-weight:800;
  color:#fff;
  line-height:1.1;
}

.slide-btn{
  width:42px;
  height:68px;
  border:none;
  border-radius:12px;
  background:#050505;
  color:#ffe600;
  font-size:36px;
  font-weight:900;
  cursor:pointer;
  transition:.2s ease;
}

.slide-btn:hover{
  transform:scale(1.05);
  background:#111;
}

.provider-title{
  width:min(1180px,calc(100% - 20px));
  margin:0 auto 12px;
  text-align:center;
  color:#111;
}

.provider-title h1{
  font-size:48px;
  font-weight:900;
  margin-bottom:5px;
  text-shadow:0 2px 4px rgba(255,255,255,.2);
}

.provider-title p{
  font-size:17px;
  font-weight:700;
}

.game-grid{
  width:min(1180px,calc(100% - 20px));
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(360px,1fr));
  gap:14px;
  padding-bottom:30px;
}

.game-card{
  position:relative;
  display:grid;
  grid-template-columns:170px 1fr;
  gap:14px;
  background:linear-gradient(135deg,#ffe600 0%,#ffc400 55%,#ffb300 100%);
  border-radius:14px;
  padding:18px;
  border:2px solid rgba(0,0,0,.18);
  overflow:hidden;
  transition:.25s ease;
  box-shadow:0 6px 14px rgba(0,0,0,.18);
}

.game-card:hover{
  transform:translateY(-4px);
  box-shadow:
    0 0 24px rgba(255,220,0,.5),
    0 12px 24px rgba(0,0,0,.25);
}

.game-image-box{
  width:170px;
  height:170px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:none !important;
  outline:none !important;
  background:transparent;
}

.game-image{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  border-radius:10px;
  border:3px solid #222222;
  background:#111;
  display:block;
  transition:none;
  box-shadow:
    0 0 0 2px rgba(255,215,0,.35),
    0 4px 14px rgba(0,0,0,.55);
}

.game-card:hover .game-image{
  transform:none;
}

.pattern-panel{
  background:#050505;
  border-radius:10px;
  padding:12px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.panel-title{
  text-align:center;
  font-size:14px;
  font-weight:900;
  padding-bottom:8px;
  border-bottom:1px solid #333;
}

.panel-title span{
  color:#ffe600;
}

.game-name{
  margin-top:10px;
  font-size:15px;
  text-align:center;
  font-weight:900;
  color:#ffe600;
  line-height:1.2;
}

.pattern-list{
  margin-top:10px;
}

.pattern-row{
  display:grid;
  grid-template-columns:1fr auto auto auto;
  gap:8px;
  align-items:center;
  margin-bottom:6px;
  font-size:12px;
  font-weight:700;
}

.dot{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
}

.dot.green{
  border:2px solid #00ff88;
  box-shadow:0 0 8px rgba(0,255,136,.7);
}

.dot.red{
  border:2px solid #ff2b55;
  box-shadow:0 0 8px rgba(255,43,85,.7);
}

.time{
  margin-top:12px;
  text-align:center;
  font-size:12px;
  font-weight:800;
}

.progress{
  margin-top:8px;
  height:18px;
  background:#e9edf2;
  border-radius:30px;
  overflow:hidden;
  position:relative;
  text-align:center;
  line-height:18px;
  font-size:12px;
  font-weight:900;
  color:#000;
}

.progress-fill{
  position:absolute;
  inset:0 auto 0 0;
  height:100%;
  animation:loadBar 1s ease;
  background-size:16px 16px;
  background-image:
    linear-gradient(45deg,rgba(255,255,255,.25) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.25) 50%,rgba(255,255,255,.25) 75%,transparent 75%,transparent);
}

.progress-fill.low{
  background-color:#ff335c;
}

.progress-fill.mid{
  background-color:#ffc928;
}

.progress-fill.high{
  background-color:#00d26a;
}

@keyframes loadBar{
  from{ width:0; }
}

.badge{
  position:absolute;
  top:0;
  left:12px;
  padding:8px 12px 12px;
  font-size:13px;
  font-weight:900;
  color:#fff;
  clip-path:polygon(0 0,100% 0,100% 78%,50% 100%,0 78%);
}

.badge.top{
  background:#00d26a;
}

.badge.hot{
  background:#ff2b55;
}

.empty-state{
  grid-column:1/-1;
  background:#050505;
  border:2px solid #ffe600;
  border-radius:14px;
  padding:35px;
  text-align:center;
  color:#fff;
  font-size:18px;
  font-weight:800;
}

.skeleton-card{
  height:205px;
  border-radius:14px;
  background:linear-gradient(90deg,rgba(0,0,0,.25),rgba(255,255,255,.25),rgba(0,0,0,.25));
  background-size:200% 100%;
  animation:skeletonMove 1.2s infinite;
}

@keyframes skeletonMove{
  from{ background-position:200% 0; }
  to{ background-position:-200% 0; }
}

@media(max-width:900px){
  .game-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .provider-title h1{
    font-size:38px;
  }
}

@media(max-width:700px){
  .provider-wrap{
    grid-template-columns:34px 1fr 34px;
    top:5px;
  }

  .slide-btn{
    width:34px;
  }

  .game-grid{
    grid-template-columns:1fr;
  }

  .game-card{
    grid-template-columns:1fr;
  }

  .game-image{
    height:180px;
  }

  .top-banner{
    height:auto;
    object-fit:contain;
    border-radius:14px;
  }

  .provider-item{
    min-width:120px;
  }

  .provider-title h1{
    font-size:30px;
  }
}


/* ===== UI POLISH ADDON ===== */
body{ padding-bottom:92px; }

.brand-top{
  width:min(1180px,calc(100% - 20px));
  margin:14px auto 8px;
  display:flex;
  justify-content:center;
}

.brand-logo{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  padding:10px 20px;
  border-radius:999px;
  background:linear-gradient(180deg,#111,#050505);
  border:2px solid #ffe600;
  box-shadow:0 0 20px rgba(255,230,0,.35), inset 0 0 16px rgba(255,230,0,.08);
}

.site-logo{
  max-width:128px;
  max-height:34px;
  width:auto;
  height:auto;
  display:block;
  object-fit:contain;
}

.logo-mark{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#ffe600;
  color:#050505;
  font-size:20px;
  font-weight:900;
}

.logo-text{
  color:#ffe600;
  font-size:24px;
  font-weight:900;
  letter-spacing:.8px;
  text-shadow:0 0 10px rgba(255,230,0,.55);
}

.quick-actions{
  width:min(1180px,calc(100% - 20px));
  margin:0 auto 12px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.quick-btn{
  height:56px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  text-decoration:none;
  font-size:18px;
  font-weight:900;
  color:#111;
  border:2px solid #111;
  box-shadow:0 6px 18px rgba(0,0,0,.3), inset 0 0 10px rgba(255,255,255,.25);
  transition:.22s ease;
}

.quick-btn:hover{ transform:translateY(-2px); filter:brightness(1.08); }
.login-btn{ background:linear-gradient(180deg,#ffe600,#ffb800); }
.register-btn{ background:linear-gradient(180deg,#00ff88,#00c767); }

/* Fix percentage text covered by progress color */
.progress{ position:relative; }

.progress span{
  position:absolute;
  inset:0;
  z-index:5;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#050505;
  text-shadow:0 1px 0 rgba(255,255,255,.45), 0 0 2px rgba(255,255,255,.85);
  pointer-events:none;
}

.progress-fill{ z-index:1; }

.bottom-action-bar{
  position:fixed;
  left:50%;
  bottom:10px;
  transform:translateX(-50%);
  width:min(760px,calc(100% - 22px));
  min-height:68px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:8px;
  padding:8px;
  background:linear-gradient(180deg,rgba(10,10,10,.96),rgba(0,0,0,.94));
  border:2px solid #ffe600;
  border-radius:18px;
  z-index:999;
  box-shadow:0 0 24px rgba(255,230,0,.38), 0 12px 30px rgba(0,0,0,.45);
  backdrop-filter:blur(10px);
}

.bottom-action{
  color:#fff;
  text-decoration:none;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  border-radius:13px;
  font-size:12px;
  font-weight:900;
  transition:.2s ease;
}

.bottom-action:hover{
  background:rgba(255,230,0,.12);
  color:#ffe600;
  transform:translateY(-2px);
}

.action-icon{
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  color:#ffe600;
}

.action-icon svg{
  width:22px;
  height:22px;
  fill:currentColor;
  filter:drop-shadow(0 0 5px rgba(255,230,0,.65));
}

@media(max-width:700px){
  body{ padding-bottom:82px; }
  .brand-logo{ padding:8px 14px; }
  .site-logo{ max-width:112px; max-height:30px; }
  .logo-text{ font-size:20px; }
  .quick-actions{ gap:8px; }
  .quick-btn{ height:48px; font-size:15px; }
  .bottom-action-bar{ bottom:6px; min-height:62px; border-radius:15px; }
  .bottom-action{ font-size:11px; }
  .action-icon{ width:23px; height:23px; }
  .action-icon svg{ width:20px; height:20px; }
}


/* ===== REVISION 2 ===== */

/* Desktop footer full width */
@media(min-width:701px){
  .bottom-action-bar{
    width:100%;
    left:0;
    bottom:0;
    transform:none;
    border-left:0;
    border-right:0;
    border-bottom:0;
    border-radius:18px 18px 0 0;
    max-width:none;
    padding-left:18vw;
    padding-right:18vw;
  }
}

/* Provider title white */
.provider-title{
  color:#fff !important;
  text-shadow:0 2px 8px rgba(0,0,0,.75);
}

.provider-title h1{
  color:#fff !important;
}

.provider-title p{
  color:#fff !important;
}

/* Lower spin number / pattern sizing */
.pattern-row{
  font-size:11px;
  margin-bottom:5px;
}

.turbo-pattern{
  grid-template-columns:1fr auto auto;
}

.turbo-on{
  color:#00ff88;
  font-size:10px;
  text-transform:uppercase;
}

.turbo-off{
  color:#ff2b55;
  font-size:10px;
  text-transform:uppercase;
}

/* Mobile two-card layout */
@media(max-width:700px){
  .game-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px;
    width:calc(100% - 12px);
  }

  .game-card{
    grid-template-columns:1fr !important;
    gap:8px;
    padding:10px;
    border-radius:12px;
    min-height:auto;
  }

  .game-image{
    height:96px !important;
    border-width:3px;
    border-radius:9px;
  }

  .pattern-panel{
    padding:9px;
    border-radius:9px;
  }

  .panel-title{
    font-size:11px;
    padding-bottom:6px;
  }

  .game-name{
    font-size:11px;
    margin-top:7px;
  }

  .pattern-row{
    font-size:9px;
    gap:4px;
    margin-bottom:4px;
  }

  .dot{
    width:8px;
    height:8px;
  }

  .turbo-on,
  .turbo-off{
    font-size:8px;
  }

  .time{
    font-size:9px;
    margin-top:7px;
  }

  .progress{
    height:15px;
    line-height:15px;
    font-size:10px;
  }

  .badge{
    left:8px;
    font-size:10px;
    padding:6px 9px 10px;
  }

  .bottom-action-bar{
    width:100%;
    left:0;
    bottom:0;
    transform:none;
    border-left:0;
    border-right:0;
    border-bottom:0;
    border-radius:16px 16px 0 0;
  }
}


/* ===== REVISION 3 ===== */
.turbo-pattern{
  grid-template-columns:1fr auto auto;
}

.turbo-pattern span:first-child{
  white-space:nowrap;
}

.provider-title h1,
.provider-title p{
  color:#fff !important;
}

@media(max-width:700px){
  .turbo-pattern{
    grid-template-columns:1fr auto auto;
  }

  .turbo-pattern span:first-child{
    font-size:8.5px;
  }
}



/* ===== FIX GAMBAR GAME FINAL =====
   Gambar dibuat proporsional, tidak stretch, tidak crop,
   dan garis tepian hanya menempel di gambar, bukan kotak besar. */
.game-card{
  grid-template-columns:170px 1fr;
  align-items:center;
}

.game-image-box{
  width:170px !important;
  height:170px !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
  background:transparent !important;
  overflow:hidden !important;
}

.game-image-box::before,
.game-image-box::after{
  content:none !important;
  display:none !important;
}

.game-image{
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center center !important;
  border:3px solid #222222 !important;
  border-radius:12px !important;
  background:#111 !important;
  display:block !important;
  transform:none !important;
  box-shadow:0 0 0 2px rgba(255,215,0,.35), 0 5px 14px rgba(0,0,0,.55) !important;
}

.game-card:hover .game-image{
  transform:none !important;
}

@media(max-width:700px){
  .game-card{
    grid-template-columns:1fr !important;
  }

  .game-image-box{
    width:100% !important;
    height:130px !important;
  }

  .game-image{
    width:100% !important;
    height:130px !important;
    object-fit:contain !important;
  }
}


/* ===== BLACK PREMIUM BORDER FIX - FINAL OVERRIDE ===== */
.game-image,
.game-card .game-image,
.game-image-box > img,
.game-card img{
  border:3px solid #222222 !important;
  box-shadow:
    0 0 0 2px rgba(255,215,0,.35),
    0 5px 14px rgba(0,0,0,.55) !important;
}

/* === BLACK PREMIUM FINAL FORCE ===
   Memaksa semua border gambar game jadi black premium.
   Selector dibuat spesifik karena gambar dibuat dari script.js sebagai <img class="game-image">.
*/
main#gameGrid img.game-image,
#gameGrid img.game-image,
.game-grid img.game-image,
article.game-card img.game-image,
.game-card .game-image-box img.game-image,
img.game-image {
  border: 3px solid #222222 !important;
  outline: 0 !important;
  border-radius: 10px !important;
  box-shadow:
    0 0 0 2px rgba(255, 215, 0, .30),
    0 4px 12px rgba(0, 0, 0, .55) !important;
}

/* pastikan box pembungkus tidak punya border merah */
main#gameGrid .game-image-box,
#gameGrid .game-image-box,
.game-grid .game-image-box,
article.game-card .game-image-box {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}



/* =========================================================
   FINAL IMAGE CARD FIX - PG SOFT / PRAGMATIC SERAGAM
   - gambar tidak melebar aneh
   - tidak ada ruang kosong hitam kiri-kanan
   - border black premium, bukan merah
   - selector dipaksa paling akhir agar menang dari CSS lama
   ========================================================= */
#gameGrid .game-card,
main#gameGrid article.game-card,
.game-grid article.game-card{
  grid-template-columns:170px 1fr !important;
  align-items:center !important;
}

#gameGrid .game-image-box,
main#gameGrid .game-image-box,
.game-grid .game-image-box,
article.game-card .game-image-box{
  width:170px !important;
  height:170px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:visible !important;
  background:transparent !important;
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
}

#gameGrid img.game-image,
main#gameGrid img.game-image,
.game-grid img.game-image,
article.game-card img.game-image,
.game-card .game-image-box > img.game-image,
img.game-image{
  width:138px !important;
  height:138px !important;
  min-width:138px !important;
  min-height:138px !important;
  max-width:138px !important;
  max-height:138px !important;
  object-fit:cover !important;
  object-position:center center !important;
  display:block !important;
  box-sizing:border-box !important;
  padding:0 !important;
  margin:0 auto !important;
  background:#111 !important;
  border:3px solid #222222 !important;
  outline:0 !important;
  border-radius:10px !important;
  transform:none !important;
  box-shadow:
    0 0 0 2px rgba(255,215,0,.22),
    0 4px 12px rgba(0,0,0,.55) !important;
}

#gameGrid .game-card:hover img.game-image,
main#gameGrid .game-card:hover img.game-image,
article.game-card:hover img.game-image{
  transform:none !important;
}

@media(max-width:700px){
  #gameGrid .game-card,
  main#gameGrid article.game-card,
  .game-grid article.game-card{
    grid-template-columns:1fr !important;
  }

  #gameGrid .game-image-box,
  main#gameGrid .game-image-box,
  .game-grid .game-image-box,
  article.game-card .game-image-box{
    width:100% !important;
    height:150px !important;
  }

  #gameGrid img.game-image,
  main#gameGrid img.game-image,
  .game-grid img.game-image,
  article.game-card img.game-image,
  img.game-image{
    width:138px !important;
    height:138px !important;
    min-width:138px !important;
    min-height:138px !important;
    max-width:138px !important;
    max-height:138px !important;
  }
}
