:root {
  color-scheme: dark;
  --bg-color: #212529;
  --bg-secondary: #242732;
  --bg-elevated: #2b2f3d;
  --bg-deep: #1a1d21;
  --border-color: #3a3f52;
  --text-first: #f8f9fa;
  --text-second: #ced4da;
  --first-color: #242732;
  --second-color: #4c6ef5;
  --third-color: #ffffff;
  --fourth-color: #2b2f3d;
  --fifth-color: #242732;
  --sixth-color: #1a1d21;
  --g1: #242732;
  --g2: #4c6ef5;
  --g3: #91a7ff;
}

body { background: #212529; color: #f8f9fa; }

/* Dark theme palette. */
.rtp-card { background: linear-gradient(0deg, #242732, #2b2f3d); }
.icon-prov { background: linear-gradient(0deg, #242732, #1a1d21); }
.item-nav-bottom { background: linear-gradient(0deg, #1a1d21, #242732); color: #fff; text-decoration: none; }
.item-nav-bottom:hover { background: linear-gradient(0deg, #242732, #4c6ef5); color: #fff; }
.nav-bottom { border-color: #4c6ef5; }
.btn-login { background: linear-gradient(0deg, #242732, #212529); color: #fff; }
.btn-login:hover, .btn-daftar:hover, .btn-provider { background: #4c6ef5; color: #fff; }
.bg-black-button { background: #242732; color: #fff; }
.red { background: #242732; }
.blue { background: #4c6ef5; color: #fff; }
.discount { background-color: #4c6ef5; }

/* Make Recent / Hot / New controls and their labels easier to scan. */
.btn-nav-recent, .btn-nav-hot, .btn-nav-new {
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  text-align: center;
  transition: background-color .18s ease;
}
.btn-nav-recent:hover, .btn-nav-hot:hover, .btn-nav-new:hover { background-color: #2b2f3d; }
.btn-nav-new strong, .btn-nav-hot strong, .btn-nav-recent strong { color: #fff !important; }
.input-search { color: #fff; background-color: #212529; border-color: #4c6ef5; }
.input-search::placeholder { color: #adb5bd; opacity: 1; }
.search-button { background-color: #242732; border-color: #4c6ef5; }

/* Clear text badges replace the missing downloaded TOP/HOT artwork. */
.top-game, .hot-game {
  width: auto;
  min-width: 42px;
  height: auto;
  padding: 4px 7px;
  left: 8px;
  top: 8px;
  border-radius: 4px;
  background-image: none;
  font: 800 10px/1.2 Arial, sans-serif;
  letter-spacing: .05em;
  text-align: center;
  box-shadow: 0 2px 6px #0009;
}
.top-game::before { content: "TOP"; color: #fff; }
.hot-game { background: #91a7ff; }
.hot-game::before { content: "HOT"; color: #212529; }

.modal-content { background: #242732; color: #f8f9fa; }
.modal-content .text-dark { color: #f8f9fa !important; }
.btn-close { filter: none; }
.logo img { max-width: 100%; height: auto; object-fit: contain; }
.slider-img { width: 100%; height: auto; object-fit: contain; }
#popup-container-ads #popup-body {
  width: min(92vw, 700px);
  height: auto;
  aspect-ratio: 1920 / 430;
  margin: 8vh auto;
  background-size: contain !important;
  background-position: center;
  background-color: #212529;
}

/* Primary surfaces, controls, and accessible light text. */
:root {
  --bg-color: #212529;
  --bg-secondary: #242732;
  --bg-elevated: #2b2f3d;
  --bg-deep: #1a1d21;
  --border-color: #3a3f52;
  --text-first: #f8f9fa;
  --text-second: #ced4da;
  --first-color: #242732;
  --second-color: #4c6ef5;
  --third-color: #ffffff;
  --fourth-color: #2b2f3d;
  --fifth-color: #242732;
  --sixth-color: #1a1d21;
  --g1: #242732;
  --g2: #4c6ef5;
  --g3: #91a7ff;
}
body { background: #212529; color: #f8f9fa; }
.rtp-card { background: linear-gradient(145deg, #242732, #212529); border: 1px solid #3a3f52; }
.icon-prov { background: linear-gradient(180deg, #242732, #1a1d21); }
.icon-card-bg { border-radius: 8px; }
.icon-card-bg:hover { background: #2b2f3d; }
.running-text, .navbar-search { background: #242732; color: #fff; }
.slider-wrapper { background: #212529; border-color: #4c6ef5; }
.btn-login { background: #242732; color: #fff; }
.btn-daftar { background: #4c6ef5; color: #fff; }
.btn-login:hover, .btn-daftar:hover { background: #5c7cfa; color: #fff; }
.btn-play { background: linear-gradient(135deg, #242732, #4c6ef5); border-color: #5c7cfa; color: #fff; }
.btn-play:hover { background: #4c6ef5; }
.pola-wrapper, .jam-wrapper { background: #212529; }
.pola-wrapper h4 i, .pola-wrapper h5 i { color: #91a7ff; }
.place-img-rtp { box-shadow: inset 0 0 0 1px #4c6ef5; }
.nav-bottom { border-color: #4c6ef5; }
.item-nav-bottom { background: #242732; }
.item-nav-bottom:hover { background: #4c6ef5; }
.btn-up, .btn-up:hover { background: #4c6ef5; border-color: #5c7cfa; color: #fff; }
.input-search, .input-search:focus { background: #212529; color: #fff; border: 1px solid #4c6ef5; }
.input-search::placeholder { color: #adb5bd; }
.input-search:focus { box-shadow: 0 0 0 3px #91a7ff40; }
.search-button { background: #4c6ef5; }
.top-game { background: #4c6ef5; }
.hot-game { background: #91a7ff; }
.hot-game::before { color: #212529; }
.text-warning { color: #91a7ff !important; }
.content-home { background: #212529; color: #f8f9fa; }
.content-home:empty { padding: 0; }
.popup-body, .container-demo, .header-demo { background: #212529; color: #fff; }
.popup-header, .popup-label { background: #242732; }
.bg-blue-button, .bg-black-button { background: #4c6ef5; color: #fff; }
.popip-button:hover { background: #242732; color: #fff; }
.popup-content a { color: #91a7ff; }
.modal-content { background: #242732; color: #f8f9fa; }
.modal-content .text-dark { color: #f8f9fa !important; }
.modal-content a { color: #91a7ff; }
a:focus-visible, button:focus-visible, .icon-card-bg:focus-visible { outline: 3px solid #91a7ff; outline-offset: 3px; }
.logo img { width: 22rem; max-width: 90%; }