* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
/* Disable Select Text */

html,
body,
div,
span,
p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
img,
button {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Disable Drag Image */

img {
  -webkit-user-drag: none;
  user-drag: none;
}
body {
  font-family: "Poppins", sans-serif;
  background: #060606;
  color: #fff;
}
a {
  text-decoration: none;
  color: inherit;
}
.container {
  width: min(1180px, 92%);
  margin: auto;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 99;
  background: rgba(8, 8, 8, 0.92);
  border-bottom: 1px solid #d4a12a;
  backdrop-filter: blur(8px);
}
.nav {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.btn-login {
  display: inline-block;
  padding: 11px 48px;
  border-radius: 10px;
  background: #ff0000;
  color: #ffffff;
  border: 1px solid #d4a12a;
  font-weight: 800;
  font-size: 24px;
}
.btn-login:hover {
  display: inline-block;
  padding: 11px 48px;
  border-radius: 10px;
  background: #62ff00;
  color: #000000;
  border: 1px solid #292929;
  font-weight: 800;
  font-size: 24px;
}
.btn-daftar {
  display: inline-block;
  padding: 11px 48px;
  border-radius: 10px;
  background: #ff0000;
  color: #ffffff;
  border: 1px solid #d4a12a;
  font-weight: 800;
  font-size: 24px;
}
.btn-daftar:hover {
  display: inline-block;
  padding: 11px 48px;
  border-radius: 10px;
  background: #62ff00;
  color: #000000;
  border: 1px solid #292929;
  font-weight: 800;
  font-size: 24px;
}
.btn-game-play {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffe17a, #c99015);
  color: #111;
  font-weight: 800;
  text-align: center;
}
.btn-game-play:hover {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff0000, #8f0000);
  color: #111;
  font-weight: 800;
  text-align: center;
}
.btn-profile {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffe17a, #c99015);
  color: #111;
  font-weight: 800;
}
.logo img {
  height: 48px;
}
.menu {
  display: flex;
  gap: 24px;
  font-weight: 600;
}
.menu a:hover {
  color: #ffd76a;
}
.nav-btn {
  display: flex;
  gap: 10px;
}
.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 800;
  background: linear-gradient(180deg, #ffe17a, #c99015);
  color: #111;
  box-shadow:
    0 4px 0 #7b5200,
    0 0 18px rgba(255, 215, 106, 0.45);
}
.btn.dark {
  background: #151515;
  color: #ffd76a;
  border: 1px solid #d4a12a;
  box-shadow: none;
}

/* HERO */
.hero {
  padding: 80px 0 60px;
  background:
    radial-gradient(
      circle at top right,
      rgba(255, 190, 42, 0.24),
      transparent 35%
    ),
    linear-gradient(135deg, #111, #080808 60%, #1d1300);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 35px;
  align-items: center;
}
.badge {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid #d4a12a;
  color: #ffd76a;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 36px;
  line-height: 1.08;
  margin-bottom: 18px;
}
.hero h1 span {
  color: #ffd76a;
}
.hero p {
  color: #ddd;
  line-height: 1.8;
  margin-bottom: 26px;
}
.hero-card {
  background: #111;
  border: 2px solid #d4a12a;
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 0 35px rgba(255, 215, 106, 0.25);
}
.hero-card img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

.jackpot-number {
  font-size: 34px;
  font-weight: 900;
  color: #fff;
}

/* SECTION */
.section {
  padding: 65px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 34px;
}
.section-title h2 {
  font-size: 34px;
  color: #ffd76a;
}
.section-title p {
  color: #bbb;
  margin-top: 8px;
}

/* INFO CARD */
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.info-card {
  position: relative;
  display: block;
  text-decoration: none;
  text-align: center;

  background: linear-gradient(180deg, #171717, #090909);

  border: 1px solid #333;
  border-radius: 20px;

  padding: 24px 18px;

  overflow: hidden;

  transition: all 0.35s ease;

  cursor: pointer;
}

/* Efek cahaya bergerak */
.info-card::before {
  content: "";
  position: absolute;
  top: -100%;
  left: -100%;

  width: 220%;
  height: 220%;

  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 215, 0, 0.15),
    transparent
  );

  transform: rotate(25deg);

  transition: 0.8s;
}

.info-card:hover::before {
  top: -30%;
  left: -30%;
}

/* Efek naik + glow */
.info-card:hover {
  transform: translateY(-10px);

  border-color: #ffd700;

  box-shadow:
    0 0 15px rgba(255, 215, 0, 0.25),
    0 0 35px rgba(255, 215, 0, 0.18),
    0 10px 30px rgba(0, 0, 0, 0.45);
}

/* Efek saat disentuh HP */
.info-card:active {
  transform: scale(0.97);
}

.icon {
  font-size: 42px;
  margin-bottom: 15px;
  transition: 0.3s;
}

.info-card:hover .icon {
  transform: scale(1.15);
}

.info-card h3 {
  color: #ffd76a;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 800;
}

.info-card p {
  color: #d5d5d5;
  line-height: 1.7;
  font-size: 14px;
}

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

@media (max-width: 520px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* GAME GRID */
.game-grid {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.game-card {
  width: 100%;
  min-width: 0;
}

.game-img {
  width: 100%;
  height: 290px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.show-game-wrap {
  text-align: center;
  margin: 0 0 28px;
}

.btn-show-games {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 14px 38px;

  border-radius: 999px;

  background: linear-gradient(180deg, #ffe17a, #c99015);

  color: #111;
  text-decoration: none;

  font-weight: 900;

  box-shadow:
    0 0 20px rgba(255, 215, 106, 0.4),
    0 6px 0 #8f6500;

  transition: 0.3s;
}

.btn-show-games:hover {
  transform: translateY(-2px);
}

.btn-show-games:active {
  transform: translateY(2px);
  box-shadow:
    0 0 12px rgba(255, 215, 106, 0.4),
    0 2px 0 #8f6500;
}

.game-grid.games-show {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

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

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

.filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.filter-btn {
  border: 1px solid #333;
  background: #151515;
  color: #fff;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.3s ease;
}

.filter-btn:hover {
  color: #ffd76a;
  border-color: #d4a12a;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(180deg, #ffe17a, #c99015);
  color: #111;
  border-color: #ffd76a;
  box-shadow: 0 0 18px rgba(255, 215, 106, 0.35);
}

.game-card {
  transition: 0.35s ease;
}

.game-card.hide {
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  display: none;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.game-card {
  background: #111;
  border: 1px solid #2c2c2c;
  border-radius: 18px;
  overflow: hidden;
  transition: 0.25s;
}
.game-card:hover {
  transform: translateY(-5px);
  border-color: #d4a12a;
}
.game-img {
  position: relative;
  height: 290px;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: 0.35s ease;
}

.game-img:hover .game-overlay {
  opacity: 1;
  visibility: visible;
}

.btn-game-play {
  padding: 14px 34px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffe77a, #d9a520);
  color: #111;
  font-weight: 900;
  text-decoration: none;
  box-shadow:
    0 6px 0 #8f6500,
    0 0 18px rgba(255, 215, 0, 0.45);
  transform: translateY(18px);
  transition: 0.35s ease;
}

.game-img:hover .btn-game-play {
  transform: translateY(0);
}
.game-body {
  padding: 18px;
}
.game-body h3 {
  color: #ffd76a;
  text-align: center;
}
.game-body p {
  color: #aaa;
  font-size: 14px;
  margin: 8px 0 15px;
  text-align: center;
}

/* PROFILE */
.profile {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
  align-items: center;
}
.profile-img {
  min-height: 310px;
  height: 350px;
  width: 100%;
  max-width: 100%;

  border-radius: 24px;
  border: 1px solid #d4a12a;

  background-image: var(--profile-bg);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;

  overflow: hidden;
}
.profile-text p {
  color: #ccc;
  line-height: 1.9;
  margin-bottom: 15px;
}

/* LEADERBOARD */
.leaderboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.rank-box,
.jp-box {
  background: #111;
  border: 1px solid #333;
  border-radius: 20px;
  padding: 24px;
}
.rank-item,
.jp-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #252525;
}
.rank-item:last-child,
.jp-item:last-child {
  border-bottom: 0;
}
.rank-item strong {
  color: #ffd76a;
}
.jp-item span {
  color: #ffd76a;
  font-weight: 800;
}
/* PAYMENT */
.payment {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.pay {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  border: 1px solid #d4af37;
  border-radius: 14px;
  padding: 10px;
  min-height: 70px;
  transition: 0.3s;
}

.pay:hover {
  border-color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  transform: translateY(-3px);
}

.pay img {
  width: 100%;
  max-width: 90px;
  height: auto;
}

/* FOOTER */
.footer {
  background: #030303;
  border-top: 1px solid #222;
  padding: 35px 0;
  text-align: center;
  color: #aaa;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}
.footer-links a:hover {
  color: #ffd76a;
}

/* MOBILE */
@media (max-width: 900px) {
  .menu {
    display: none;
  }
  .hero-grid,
  .profile,
  .leaderboard {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 38px;
  }
  .info-grid,
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .nav {
    height: auto;
    padding: 14px 0;
    gap: 12px;
    flex-direction: column;
  }
  .info-grid,
  .game-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 45px 0;
  }
}

#preloader {
  position: fixed;
  inset: 0;
  background: #050505;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.dj-loader {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
}
.dj-loader span {
  width: 12px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff4a3 0%, #ffd700 20%, #ff3232 100%);
  box-shadow:
    0 0 10px #ffd700,
    0 0 20px #ff3232;
  animation: djVolume 1s ease-in-out infinite;
}
.dj-loader span:nth-child(1) {
  animation-delay: 0.1s;
}
.dj-loader span:nth-child(2) {
  animation-delay: 0.2s;
}
.dj-loader span:nth-child(3) {
  animation-delay: 0.3s;
}
.dj-loader span:nth-child(4) {
  animation-delay: 0.4s;
}
.dj-loader span:nth-child(5) {
  animation-delay: 0.5s;
}
.dj-loader span:nth-child(6) {
  animation-delay: 0.6s;
}
.dj-loader span:nth-child(7) {
  animation-delay: 0.7s;
}
@keyframes djVolume {
  0%,
  100% {
    height: 15px;
  }
  50% {
    height: 90px;
  }
}
.loading-text {
  margin-top: 25px;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #ffd700;
  text-shadow:
    0 0 10px #ffd700,
    0 0 20px #ff3232;
}

#preloader {
  transition: 1s ease;
}

/* ===================================
   FIX HP GETAR TOTAL
=================================== */

html,
body{
  overflow-x:hidden !important;
  width:100%;
  max-width:100%;
}

body{
  position:relative;
}

.hero,
.section,
.footer,
.header{
  overflow:hidden;
}

.container{
  width:min(1180px,92%);
  max-width:100%;
}

/* Jackpot Number Stabil */
.jackpot-number{
  display:block;
  width:100%;
  min-height:42px;
  white-space:nowrap;
  overflow:hidden;
  text-align:center;
  font-variant-numeric:tabular-nums;
}

/* Semua grid aman */
.game-grid,
.info-grid,
.payment,
.profile,
.leaderboard,
.tournament-grid{
  width:100%;
  max-width:100%;
}

/* MOBILE */
@media(max-width:768px){

  .hero-grid,
  .profile,
  .leaderboard{
    grid-template-columns:1fr !important;
  }

  .profile-img{
    width:100% !important;
    height:240px !important;
    min-height:240px !important;
  }

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

  .game-img{
    height:220px !important;
  }

  /* MATIKAN SEMUA TRANSFORM */
  .info-card:hover,
  .game-card:hover,
  .pay:hover,
  .btn-show-games:hover,
  .filter-btn:hover,
  .btn-login:hover,
  .btn-daftar:hover,
  .btn-game-play:hover{
    transform:none !important;
  }

  .info-card:active,
  .game-card:active,
  .pay:active{
    transform:none !important;
  }

  /* Overlay langsung tampil */
  .game-overlay{
    opacity:1;
    visibility:visible;
    background:rgba(0,0,0,.35);
  }

  .btn-game-play{
    transform:none !important;
  }

  /* Hilangkan animasi glow card */
  .info-card::before{
    display:none;
  }
}
