body {
  max-width: 1140px;
  font-family: 'Roboto', sans-serif;
  color: #E6CFA0;
  margin: auto;
  padding: 10px;
  min-height: 100vh;
  
  /* Warna dasar sangat gelap */
  background-color: #0a0503; 
  
  /* Gradien radial berlapis untuk efek cahaya emas */
  background-image: 
    radial-gradient(at 0% 0%, rgba(212, 175, 55, 0.15) 0%, transparent 50%), 
    radial-gradient(at 100% 0%, rgba(139, 101, 8, 0.15) 0%, transparent 50%), 
    radial-gradient(at 100% 100%, rgba(212, 175, 55, 0.12) 0%, transparent 50%), 
    radial-gradient(at 0% 100%, rgba(139, 101, 8, 0.12) 0%, transparent 50%);
  background-size: 300% 300%;
  
  /* Pemicu animasi bergerak */
  animation: goldAurora 25s ease-in-out infinite alternate;
  position: relative;
}

/* --- ANIMASI PERGERAKAN CAHAYA --- */
@keyframes goldAurora {
  0% { background-position: 0% 0%; }
  25% { background-position: 100% 0%; }
  50% { background-position: 100% 100%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 0%; }
}

/* --- TEKSTUR POLA LUXURY (Opsional tapi sangat artistik) --- */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  /* Pola SVG emas transparan (sangat ringan) */
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4af37' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
  pointer-events: none;
}

.game-card, .popup-content {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-menu, .popup-content button {
  transition: all 0.3s ease;
}

.bar, .nav-menu {
  white-space: nowrap;
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 20px;
}

.header img.logo {
  max-width: 150px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.6));
}

.header img.banner {
  max-width: 100%;
  margin-bottom: 20px;
  border-radius: 12px;
  box-shadow: 0 0 0 2px #3e2723, 0 0 0 4px #B8860B;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.rtp-update, .running-text, .pola-value {
  color: #FFD700;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.rtp-update {
  text-align: right;
  font-size: .85em;
}

.header .buttons a, .nav-menu {
  color: #1a0f0a;
  text-decoration: none;
  text-align: center;
}

.header .buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 20px;
}

.header .buttons a, .header .search button, .popup-content button, .simulasi-button {
  background: linear-gradient(180deg, #FFD700 0%, #B8860B 100%);
  padding: 12px 6px;
  border-radius: 6px;
  font-weight: 700;
  color: #1a0f0a;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  border: 1px solid #8B6508;
  box-shadow: inset 0 1px 0 rgba(255, 255, 220, 0.5), 0 4px 8px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.header .buttons a::after, .header .search button::after, .popup-content button::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(to bottom right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: rotate(45deg) translate(-100%, -100%);
  transition: transform 0.6s ease;
}

.header .buttons a:hover::after, .header .search button:hover::after, .popup-content button:hover::after {
  transform: rotate(45deg) translate(0, 0);
}

.header .buttons a:hover, .header .search button:hover, .popup-content button:hover, .simulasi-button:hover {
  background: linear-gradient(180deg, #FFFACD 0%, #D4AF37 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 215, 0, 0.6);
  color: #000;
  transform: translateY(-2px);
}

.header .search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: 100%;
  max-width: 600px;
  margin: 0 auto 20px;
}

.header .search input, .popup-content input[type=number], .filter-container select {
  padding: 12px;
  border-radius: 6px;
  border: 2px solid #5C3A21;
  width: 100%;
  background-color: #1a0f0a;
  color: #FFD700;
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.6);
  transition: all 0.3s;
}

.header .search input:focus, .popup-content input[type=number]:focus, .filter-container select:focus {
  outline: none;
  border-color: #FFD700;
  box-shadow: inset 0 3px 6px rgba(0,0,0,0.8), 0 0 10px rgba(212, 175, 55, 0.3);
}

.header .search button {
  width: 100%;
  cursor: pointer;
}

.game-card img {
  cursor: pointer;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border-bottom: 3px solid #B8860B;
  filter: brightness(0.9);
  transition: filter 0.3s;
}

.nav-wrapper {
  border: 3px solid transparent;
  background-image: linear-gradient(#1a0f0a, #1a0f0a), linear-gradient(to right, #8B6508, #FFD700, #8B6508);
  background-origin: border-box;
  background-clip: content-box, border-box;
  border-radius: 10px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
  padding: 5px;
  overflow-x: auto;
  max-width: 100%;
  margin: 0 auto;
  scrollbar-width: thin;
  scrollbar-color: #D4AF37 #1a0f0a;
}

.nav-container {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  gap: 10px;
  background-color: transparent;
  width: max-content;
}

.nav-menu {
  margin: 5px 2px;
  border-radius: 20px;
  background: linear-gradient(180deg, #3e2723 0%, #26160d 100%);
  color: #C1A783;
  border: 1px solid #5C3A21;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  padding: 10px 20px;
  font-weight: 600;
}

.nav-menu:hover {
  background: linear-gradient(180deg, #B8860B 0%, #8B6508 100%);
  color: #fff;
  border-color: #FFD700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.nav-wrapper::-webkit-scrollbar {
  height: 8px;
}

.nav-wrapper::-webkit-scrollbar-track {
  background: #1a0f0a;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

.nav-wrapper::-webkit-scrollbar-thumb {
  background: linear-gradient(#8B6508, #FFD700, #8B6508);
  border-radius: 5px;
  border: 2px solid #1a0f0a;
}

.nav-wrapper::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(#B8860B, #FFFACD, #B8860B);
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  padding-top: 20px;
}

.game-card {
  background: linear-gradient(160deg, #2a1a11 0%, #0f0805 100%);
  padding: 12px;
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: inset 0 0 20px rgba(0,0,0,0.4), 0 5px 15px rgba(0,0,0,0.5);
  position: relative;
}

.game-card:hover {
  border-color: #FFD700;
  box-shadow: inset 0 0 30px rgba(212, 175, 55, 0.2), 0 15px 30px rgba(212, 175, 55, 0.4);
}

.game-card:hover img {
  filter: brightness(1.1);
}

.gacor-time, .winning-amount-text, .popup-content h2 {
  background: linear-gradient(to bottom, #FFD700, #B8860B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.game-title {
  background-color: rgba(20, 10, 5, 0.8);
  border: 1px solid #5C3A21;
  padding: 8px 5px;
  border-radius: 6px;
  margin-top: -15px;
  position: relative;
  z-index: 2;
  font-size: 0.75em;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-align: center;
  align-content: center;
  min-height: 24px;
}

.progress-bar-container {
  background: #1a0f0a;
  border-radius: 10px;
  padding: 3px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.8);
  border: 1px solid #3e2723;
  margin: 10px 0;
  position: relative;
  overflow: hidden;
}

.progress-bar {
  height: 16px;
  text-align: right;
  padding-right: 10px;
  color: transparent;
  line-height: 16px;
  border-radius: 8px 0 0 8px;
  font-size: .9em;
  width: 0;
  transition: width 1s ease-in-out;
  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: 20px 20px;
  box-shadow: inset 0 -2px 5px rgba(0,0,0,0.4);
  animation: 1s linear infinite moveBackground;
}

@keyframes moveBackground {
  0% { background-position: 0 0; }
  100% { background-position: 20px 20px; }
}

.bar-chart .bar, .pola-slot-table .pola-result .success, .progress-bar.green {
  background-color: #43a047;
}

.progress-bar.orange {
  background-color: #e65100;
}

.pola-slot-table .pola-result .fail, .progress-bar.red {
  background-color: #c62828;
}

.progress-bar-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-weight: 700;
  font-size: .85em;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.game-info {
  min-height: 114px;
  background: rgba(30, 20, 15, 0.6);
  padding: 10px;
  border-radius: 8px;
  margin-top: 10px;
  border: 1px solid rgba(92, 58, 33, 0.5);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}

.game-info p, .pola-slot {
  margin: 5px 0;
  font-size: .8em;
  color: #FDF5E6;
}

.pola-slot {
  min-height: 84px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
}

.pola-slot-table {
  width: 100%;
  border-collapse: collapse;
}

.pola-slot-table td {
  padding: 5px;
  text-align: left;
  font-size: .8em;
}

.pola-slot-table .pola-value {
  text-align: right;
  font-weight: 700;
}

.pola-slot-table .pola-result, .popup-content {
  text-align: center;
}

.pola-slot-table .pola-result span {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.3), 0 2px 4px rgba(0,0,0,0.5);
}

.pola-unavailable {
  color: #8B0000;
  font-weight: 700;
}

.popup {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, .85);
  backdrop-filter: blur(5px);
}

.popup-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.popup-content {
  background: linear-gradient(135deg, #3e2723 0%, #1a0f0a 100%);
  border: 4px solid #B8860B;
  outline: 2px solid #5C3A21;
  border-radius: 12px;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  box-shadow: inset 0 0 50px rgba(0,0,0,0.8), 0 20px 50px rgba(212, 175, 55, 0.3);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #D4AF37 #150d08;
}

.popup-content h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.popup-content input[type=number] {
  margin-bottom: 15px;
  box-sizing: border-box;
  font-size: 16px;
}

.popup-content button {
  width: 100%;
  font-size: 16px;
  cursor: pointer;
}

.simulation-result-container {
  margin-top: 20px;
  border-top: 1px solid #5C3A21;
  text-align: center;
  padding: 20px;
}

.simulation-result-container p {
  font-size: 16px;
  color: #FDF5E6;
  margin: 10px 0;
}

.close {
  color: #B8860B;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  opacity: 0.8;
  transition: all 0.3s;
  float: right;
  font-size: 28px;
  font-weight: 700;
}

.close:focus, .close:hover {
  color: #FFD700;
  opacity: 1;
  transform: rotate(90deg);
  text-decoration: none;
  cursor: pointer;
}

.simulasi-button {
  margin-top: 10px;
  display: inline-block;
}

.probability-text {
  font-weight: 700;
  color: #43a047;
}

.explanation {
  line-height: 1.5;
  margin-top: 20px;
  text-align: left;
  color: #C1A783;
  font-size: .9em;
}

.bar-chart {
  margin-top: 20px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  height: 30px;
  background: linear-gradient(to right, #2a1a11, #1a0f0a);
  border: 1px solid #5C3A21;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.5);
}

.bar {
  height: 100%;
  color: #fff;
  text-align: right;
  padding-right: 10px;
  line-height: 30px;
  border-radius: 8px 0 0 8px;
  transition: width .4s ease-in-out;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #26160d, #150d08);
  border: 1px solid #D4AF37;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.running-text {
  flex: 1;
  padding-right: 20px;
  font-weight: 700;
}

.filter-container {
  position: relative;
  display: inline-block;
  text-align: right;
}

.filter-container select {
  padding: 8px 30px 8px 12px;
  font-size: 16px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-weight: bold;
}

.filter-container::after {
  content: '\25BC';
  font-size: 12px;
  color: #D4AF37;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1a0f0a;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(#8B6508, #FFD700, #8B6508);
  border-radius: 5px;
  border: 2px solid #1a0f0a;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(#B8860B, #FFFACD, #B8860B);
}

@media screen and (max-width : 1024px) {
  .container {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
  }
  .game-card {
    padding: 10px;
  }
  .game-title {
    font-size: .9em;
  }
  .progress-bar, .progress-bar-text {
    font-size: .8em;
  }
  .game-info p, .pola-slot {
    font-size: .75em;
  }
}

@media screen and (max-width : 768px) {
  .container {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
  .game-card {
    padding: 8px;
    border-radius: 10px;
  }
  .game-card:hover {
    transform: translateY(-4px) scale(1.01);
  }
  .game-title {
    font-size: 0.7em;
    margin-top: -10px;
  }
  .progress-bar, .progress-bar-text {
    font-size: .75em;
  }
  .progress-bar {
    height: 14px;
  }
  .game-info p, .pola-slot {
    font-size: .7em;
  }
}

.artikel {
  background: linear-gradient(160deg, #1e120c 0%, #150d08 100%);
  border: 1px solid #5C3A21;
  border-radius: 15px;
  padding: 30px;
  margin: 30px auto;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5), 0 8px 20px rgba(0,0,0,0.4);
  color: #E6CFA0;
  line-height: 1.7;
  font-size: 16px;
  position: relative;
  overflow: hidden;
}

.artikel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #8B6508, #FFD700, #8B6508);
}

.artikel h1, .artikel h2, .artikel h3, .artikel h4 {
  background: linear-gradient(to bottom, #FFD700, #B8860B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  margin-top: 25px;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.artikel h1 {
  font-size: 2em;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 25px;
}

.artikel h2 { font-size: 1.6em; }
.artikel h3 { font-size: 1.3em; }

.artikel p {
  margin-bottom: 20px;
  text-align: justify;
}

.artikel a {
  color: #FFD700;
  text-decoration: none;
  border-bottom: 1px dashed #B8860B;
  transition: all 0.3s ease;
  font-weight: 600;
}

.artikel a:hover {
  color: #FFFACD;
  border-bottom-style: solid;
  border-color: #FFD700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.artikel img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid #8B6508;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
  margin: 20px auto;
  display: block;
}

.artikel ul, .artikel ol {
  margin-left: 20px;
  margin-bottom: 20px;
  padding-left: 20px;
}

.artikel li {
  margin-bottom: 10px;
}

.artikel li::marker {
  color: #D4AF37;
  font-weight: bold;
}

.artikel blockquote {
  background: linear-gradient(90deg, rgba(139, 101, 8, 0.15) 0%, transparent 100%);
  border-left: 4px solid #D4AF37;
  padding: 15px 20px;
  margin: 20px 0;
  font-style: italic;
  border-radius: 0 8px 8px 0;
  color: #FFF8DC;
}

.artikel table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background-color: #1a0f0a;
  border: 1px solid #5C3A21;
  border-radius: 8px;
  overflow: hidden;
}

.artikel th, .artikel td {
  padding: 12px 15px;
  border: 1px solid #3e2723;
  text-align: left;
}

.artikel th {
  background: linear-gradient(180deg, #3e2723 0%, #26160d 100%);
  color: #FFD700;
  font-weight: 700;
  text-transform: uppercase;
}

.artikel tr:nth-child(even) {
  background-color: #1e120c;
}

.artikel tr:hover {
  background-color: #2a1a11;
}

@media screen and (max-width: 768px) {
  .artikel {
    padding: 20px;
    margin: 20px 10px;
    font-size: 15px;
  }
  
  .artikel h1 { font-size: 1.7em; }
  .artikel h2 { font-size: 1.4em; }
  
  .artikel th, .artikel td {
    padding: 10px;
    font-size: 14px;
  }
}