body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: #fff;

  background-color: #111; 
  background-color: #2a0d0d;
  background-size: cover;         
  background-repeat: no-repeat; 
  background-attachment: fixed; 
  background-position: center top;
  body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

}

.marquee-container {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, #4a0000, #660505, #4a0000);
  border-top: 2px solid #ff4747;
  border-bottom: 2px solid #ff4747;
  padding: 10px 0;
  position: relative;
}

.marquee-content {
  display: inline-block;
  white-space: nowrap;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  padding-left: 100%;
  animation: marqueeScroll 15s linear infinite;
}


@keyframes marqueeScroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}



.banner {
  width: 100%;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin: 10px auto;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: auto;           
  display: block;
  object-fit: contain;     
  object-position: center;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


.banner picture,
.banner img {
  width: 100%;
  height: auto; 
  display: block;
}

.button-group {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  box-sizing: border-box;
  flex-wrap: nowrap;
}


.btn {
  flex: 1 1 33.333%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  border-radius: 12px;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  border: none;
  color: #fff;
  white-space: nowrap;
  transition: 0.3s;
  gap: 6px;
}


.btn-icon {
  font-size: 16px;
}


.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}


.btn-green {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}

.btn-blue {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.btn-yellow {
  background: linear-gradient(135deg, #facc15, #eab308);
  color: #222;
}


@media (max-width: 600px) {
  .btn {
    font-size: 13px;
    padding: 8px 0;
  }

  .btn-icon {
    font-size: 14px;
  }
}


.judul-rtp {
  text-align: center;
  color: #FFD700;
  font-size: 15px;
  font-weight: bold;
  margin: 10px 0 10px;
  padding: 12px 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-top: 2px solid #ff4747;
  border-bottom: 2px solid #ff4747;
  background: linear-gradient(to right, #330000, #550000);
  box-shadow: inset 0 0 5px rgba(255, 0, 0, 0.2);
  width: 100%;
}

.datetime {
  text-align: center;
  color: #ffffff;
  margin: 0 auto 20px;
  font-size: 15px;
  padding: 10px;
  background-color: #1a0000;
  border-top: 1px solid #000000;
  border-bottom: 1px solid #000000;
  width: 100%;
  box-shadow: inset 0 0 3px rgba(255, 0, 0, 0.2);
}

.provider-section {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
}

.provider-slider {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  flex-wrap: nowrap;
}

.provider-slider::-webkit-scrollbar {
  display: none;
}

.provider-card {
  background: #1a0000;
  padding: 10px;
  margin: 5px;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  flex: 0 0 auto;
  width: 100px;
  border: 2px solid transparent;
  transition: transform 0.3s ease, background 0.3s ease, border 0.3s ease;
}

.provider-card img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 5px;
  transition: opacity 0.3s ease, filter 0.3s ease;
  opacity: 0;
  filter: blur(4px);
}

.provider-card img:not(.lazy-provider) {
  opacity: 1;
  filter: blur(0);
}

.provider-card:hover {
  transform: translateY(-3px);
  background: #330000;
}

.provider-card.active {
  border-color: #ffcc00;
  background: #640000;
}


.scroll-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 24px;
  padding: 5px 10px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  height: 100%;
  top: 0;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.scroll-btn[style*="display: flex"] {
  opacity: 1;
}

.scroll-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.scroll-btn.left {
  left: -5px;
}

.scroll-btn.right {
  right: -5px;
}


.load-more-btn {
  display: none;
  margin: 12px auto 0;
  padding: 8px 16px;
  background-color: #ffcc00;
  color: #000;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.3s ease, transform 0.2s ease;
}

.load-more-btn:hover {
  background-color: #ffd633;
  transform: translateY(-2px);
}


.loading-text {
  text-align: center;
  padding: 20px;
  color: #ffcc00;
  font-weight: 600;
  font-size: 1.2rem;
}

.loading-spinner {
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid #ffcc00;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 10px auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.game-card {
  background: #1a0000;
  padding: 12px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.4);
}

.game-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  border: 2px solid #ffcc00;
  border-radius: 10px;
  padding: 4px;
  box-sizing: border-box;
}

.game-card img:hover {
  box-shadow: 0 0 15px rgba(255, 204, 0, 0.8);
  transform: scale(1.03);
  transition: all 0.3s ease-in-out;
}

.game-title {
  font-size: 14px;
  margin-bottom: 5px;
}

/* Game Mobile */
@media (max-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .game-card img {
    width: 100%;
    height: auto;
  }
  .game-title {
    font-size: 12px;
  }
}

.load-more-btn {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background: linear-gradient(90deg, #ffcc00, #ffaa00);
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.load-more-btn:hover {
  background: linear-gradient(90deg, #ffaa00, #ffcc00);
  transform: scale(1.05);
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.game-img-wrapper {
  position: relative;
  display: inline-block;
  cursor: pointer;
  overflow: hidden;
  border-radius: 6px;
}


.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  display: none;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #b30000, #ff1a1a);
  color: #fff;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  opacity: 0;
  transition: all 0.4s ease-in-out;
}


.game-img-wrapper.show-btn .play-btn {
  display: block;
  animation: fadeInSmooth 0.6s ease-out forwards;
}


.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
  background: linear-gradient(135deg, #cc0000, #ff3333);
}


@keyframes fadeInSmooth {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    filter: brightness(0.8);
  }
  70% {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1.02);
    filter: brightness(1.1);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    filter: brightness(1);
  }
}

.game-rtp-bar {
  background: #dfdfdf;
  height: 20px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 5px;
  position: relative;
}

.bar {
  height: 100%;
  position: relative;
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9); 
  display: flex;
  align-items: center;  
  justify-content: center; 
  animation: moveStripes 1s linear infinite;
  background-size: 30px 30px;
}

.bar.green {
  background-color: #4caf50;
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
}

.bar.yellow {
  background-color: #dbbb03;
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.25) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0.25) 75%,
    transparent 75%,
    transparent
  );
}

.bar.red {
  background-color: #f32b1d;
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
}

@keyframes moveStripes {
  0% { background-position: 0 0; }
  100% { background-position: 30px 0; }
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
}
.modal.show {
  display: flex;
}

.modal-content {
  background: linear-gradient(145deg, #3b0e0e, #1c1c1c);
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 450px;
  min-width: 220px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: rgb(255, 255, 255);
  border: 1px solid #ffcc00;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.3);
  animation: modalFadeIn 0.3s ease-out;
  position: relative;
  box-sizing: border-box;
}

.pola-btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #2a0909, #3d0e0e);
  color: #ffcc66;
  border: 1px solid #ffcc33;
  border-radius: 10px;
  padding: 8px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.1);
  width: 100%;
  margin-top: 8px;
  z-index: 1;
}

.pola-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 200, 0.5) 40%,
    rgba(255, 230, 100, 0.8) 50%,
    rgba(255, 255, 200, 0.5) 60%,
    transparent 100%
  );
  opacity: 0;
  transform: skewX(-20deg);
  animation: flashStrike 3s infinite ease-in-out;
  z-index: 0;
}


.pola-btn span {
  position: relative;
  z-index: 2;
}


@keyframes flashStrike {
  0%, 85%, 100% {
    opacity: 0;
    left: -60%;
  }
  90% {
    opacity: 1;
    left: 80%;
  }
  92% {
    opacity: 0.5;
  }
  95% {
    opacity: 0;
    left: 120%;
  }
}

.pola-btn:hover {
  background: linear-gradient(145deg, #4a0f0f, #2a0909);
  color: #ffd700;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.4);
  transform: scale(1.03);
}

#polaText {
  white-space: pre-line;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.7;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
  text-align: left;
  width: 100%;
}

#polaText strong {
  display: block;
  font-size: 18px;
  background: linear-gradient(90deg, #ffb347, #ffcc33, #ffd700);
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  font-weight: 900;
}


#polaText .pattern-line {
  color: #ffffff; 
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}


#polaText .note {
  display: block;
  margin-top: 8px;
  font-weight: 600;
  font-size: 14px;
  background: linear-gradient(90deg, #ffb347, #ffcc33, #ffd700);
  background-clip: text;
  color: transparent;
}



.close {
  position: absolute;
  right: 12px;
  top: 6px;
  cursor: pointer;
  font-size: 28px;
  color: #ffcc00;
  transition: transform 0.2s ease, color 0.2s ease;
}
.close:hover {
  transform: scale(1.2);
  color: #ffaa00;
}


@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 95%;
    padding: 15px;
    max-width: 360px;
  }
  #polaText {
    font-size: 13px;
    line-height: 1.4;
  }
  .close {
    font-size: 24px;
    right: 8px;
    top: 4px;
  }
}


@media (min-width: 1024px) {
  .modal-content {
    max-width: 500px;
    padding: 25px;
  }
  #polaText {
    font-size: 15px;
  }
}

.floating-menu {
  position: fixed;
  bottom: 100px;
  left: 20px;
  z-index: 999;
}

.main-btn {
  background: none; 
  border: 3px solid #ffd700;
  border-radius: 50%;
  width: 65px;
  height: 65px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.main-btn:hover {
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
}

.main-btn:active {
  transform: scale(0.92);
}

.main-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}


.menu-options {
  display: none;
  position: absolute;
  bottom: 80px;
  left: 0;
  background: rgba(255, 230, 200, 0.95);
  border-radius: 14px;
  padding: 10px;
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 25px rgba(255, 153, 0, 0.4);
  animation: fadeIn 0.3s ease;
}


.option-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 6px 0;
  font-weight: 700;
  transition: all 0.3s ease;
}

.option-btn img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  border-radius: 8px;
}

.option-btn span {
  font-size: 14px;
  font-weight: 700;
  color: #000;
}

.option-btn:hover {
  background: linear-gradient(90deg, rgba(255, 180, 80, 0.9), rgba(255, 120, 0, 0.9));
  transform: translateX(6px);
  box-shadow: 0 0 12px rgba(255, 153, 0, 0.3);
  color: #000;
}


@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}


.footer {
  background: #2b0a0a;
  color: #fff;
  text-align: center;
  padding: 15px 10px;
  font-family: Arial, sans-serif;
  border-top: 3px solid #ffcc00;
}

.footer-title {
  font-size: 20px;
  font-weight: bold;
  color: #ffcc00;
  margin: 0;
}

.footer-tagline {
  font-size: 13px;
  color: #ddd;
  margin: 5px 0;
}

.footer-copy {
  font-size: 12px;
  color: #aaa;
  margin: 0;
}