/* Ported from RTP-TEMPLATE-3/assets/css/biru.css — brand colors swapped for our theme vars,
   generic Bootstrap-primitive rules dropped since real bootstrap.min.css already provides them. */

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text-first, #e6f1ff);
  background-color: var(--bg-color, #0a192f);
}

a {
  color: var(--first-color, #64ffda);
  text-decoration: none;
}

a:hover {
  color: var(--second-color, #7dffe0);
}

.color-1 {
  background-color: var(--bg-color, #0a192f);
}

.color-2 {
  background-color: var(--third-color, #172a45);
  color: var(--on-third-color, #e6f1ff);
}

.color-3 {
  background-color: var(--third-color, #172a45);
  color: var(--on-third-color, #e6f1ff);
}

.web-logo {
  display: block;
  width: clamp(110px, 32vw, 200px);
  height: auto;
}

.btn-regis {
  font-size: .875rem;
  font-weight: 700;
  background: linear-gradient(to bottom, var(--second-color, #7dffe0), var(--first-color, #64ffda));
  color: var(--on-primary, #0a192f);
}

.btn-regis:hover {
  background: linear-gradient(to bottom, var(--first-color, #64ffda), var(--second-color, #7dffe0));
}

.mr-n1 {
  margin-right: -1rem;
}

/* Banner slider (Swiper needs a determinate height, unlike the template's single static <img>) */
.swiper.slider {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
}

.swiper.slider .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Provider sidebar (desktop list-group) */
.list-group-item .provider-thumbnail {
  display: block;
  margin: 0;
  width: 2rem;
  height: 2rem;
}

.list-group-item span {
  margin-left: .5rem;
  font-weight: 700;
}

.list-group-item a {
  color: var(--on-third-color, #e6f1ff);
}

.list-group-item a:hover {
  color: var(--first-color, #64ffda);
}

.list-group {
  border-radius: 6px;
  overflow: hidden;
  background: var(--third-color, transparent);
}

.list-group-item {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid rgba(128, 128, 128, .3);
}

.list-group-item-action:focus,
.list-group-item-action:hover {
  background-color: rgba(128, 128, 128, .18);
}

.list-group-item.active {
  background-color: var(--first-color, #64ffda);
}

.list-group-item.active a {
  background-color: transparent;
  border: none;
  color: var(--on-primary, #0a192f);
}

/* Provider carousel (mobile row) */
.card-provider {
  position: relative;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-color, #0a192f);
  border-radius: 50%;
  flex: 1 1 auto;
  margin: 0 auto;
}

.card-provider img {
  width: 100%;
}

.carousel-game {
  background-color: var(--third-color, #172a45);
  border-radius: 3px;
}

.provider-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 12px;
  padding: 5px 2px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.next-btn,
.prev-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: var(--bg-color, #0a192f);
  color: var(--first-color, #64ffda);
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.next-btn:active,
.prev-btn:active {
  transform: scale(0.95);
}

.provider-scroll .item {
  flex: 0 0 auto;
  width: 4.2rem;
  text-align: center;
}

.provider-scroll .item span {
  display: block;
  width: 100%;
  font-weight: 500;
  text-align: center;
  font-size: .7rem;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--on-third-color, #e6f1ff);
}

/* Game cards */
.card.card-game {
  display: block;
  position: relative;
  min-height: 100px;
  width: calc((100% - (5px * 3 * 2)) / 3);
  margin: 5px;
  padding: 5px;
  background-color: var(--third-color, #172a45);
  border: none;
  container-type: inline-size;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

@media (min-width: 576px) {
  .card.card-game {
    width: calc((100% - (5px * 5 * 2)) / 5);
  }
}

/* Very narrow screens (folded phones, small cover displays) get 2 columns
   instead of squeezing pola/jam text past legibility. */
@media (max-width: 340px) {
  .card.card-game {
    width: calc((100% - (5px * 2 * 2)) / 2);
  }
}

.card.card-game .game-link {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 120px;
}

.card.card-game .game-item-img {
  transition: all .5s ease 0s;
}

.card.card-game:hover .game-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9;
}

.card.card-game:hover .game-item-img {
  transform: scale(1.15) rotate(0);
  filter: brightness(50%);
}

.card-game span {
  color: var(--on-third-color, #e6f1ff);
  text-transform: capitalize;
  width: 90%;
  margin: 3px auto;
  font-weight: 700;
  text-align: center;
  font-size: clamp(.6rem, 9cqw, .8rem);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-top: 6px;
}

.game-item {
  background: var(--third-color, #172a45);
  height: 0;
  position: relative;
  padding-bottom: 100%;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.game-item-img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity .2s ease;
}

.game-img-placeholder {
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--fourth-color, #172a45) 0%, var(--third-color, #172a45) 100%);
  color: var(--on-third-color, #e6f1ff);
  font-size: .62rem;
  font-weight: bold;
  text-align: center;
  padding: .3rem;
}

.game-img-placeholder::after {
  content: "Gambar tidak tersedia";
}

.btn-game {
  padding: 3px 8px;
  color: var(--on-primary, #0a192f);
  background: var(--first-color, #64ffda);
  border-radius: 2px;
  font-weight: 700;
  font-size: 12px;
}

.btn-game:hover {
  background-color: var(--second-color-dark, #00b5d8);
  color: #fff;
}

.card-title {
  text-align: center;
}

.card-deck {
  display: flex;
  flex-flow: row wrap;
  align-items: stretch;
}

.percent {
  height: 16px;
  display: flex;
  overflow: hidden;
  line-height: 0;
  font-size: .5rem;
  background-color: var(--third-color, #172a45);
  border-radius: 0 0 10px 10px;
  position: relative;
  z-index: 1;
}

.percent p {
  z-index: 15;
  position: absolute;
  text-align: center;
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  transform: translateY(8px);
  color: #fff;
  margin: 0;
  text-shadow: 0 0 3px var(--bg-color, #0a192f), 0 0 3px var(--bg-color, #0a192f);
}

.percent-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: var(--bg-color, #0a192f);
  text-align: center;
  white-space: nowrap;
  transition: width .6s ease;
  z-index: 10;
}

.yellow {
  background-color: #debc01;
}

.green {
  background-color: #0eb700;
}

.red {
  background-color: #b12c55;
}

/* Jam gacor + pola main box */
.jam {
  color: #fff;
  background: var(--text-second, #05101e);
  border-radius: 10px;
  font-weight: 700;
  text-align: center;
  padding: 2.5px 5px 5px 5px;
}

.pola {
  color: #fff;
  border-radius: 5px;
}

.jam h5 {
  font-size: clamp(.56rem, 8.5cqw, .74rem);
  font-weight: 700;
  width: 85%;
  margin: 3px auto;
  padding: 2px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.jamgacor {
  border-radius: 5px;
}

.jam .jamgacor h5 {
  border-bottom: none;
}

.pola1 {
  border-top: 1px solid #fff;
  padding-top: 8px;
}

.pola p {
  margin-bottom: .1rem;
  font-size: clamp(.5rem, 9cqw, .7rem);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* RTP wrapper / header / body */
.rtp-wrapper {
  border-radius: 6px;
}

.rtp-header {
  border-radius: 6px 6px 0 0;
}

.animate-charcter {
  display: inline-block;
  text-transform: uppercase;
  color: var(--on-third-color, #e6f1ff);
  font-size: 17px;
  font-weight: 500;
  margin: 5px;
}

input#search {
  width: 100%;
  outline: 0;
  border: 0;
  border-radius: 4px;
  background-color: var(--first-color, #64ffda);
  color: var(--on-primary, #0a192f);
  font-size: .775rem;
  padding: .3rem .6rem;
}

input#search::placeholder {
  color: var(--on-primary, #0a192f);
  opacity: .65;
}

/* Back to top (no template equivalent, kept from our own system) */
.btn-up {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 99;
  font-size: .9rem;
  border: none;
  color: var(--on-primary, #0a192f);
  background-color: var(--first-color, #64ffda);
}

.btn-up:hover,
.btn-up:focus {
  color: var(--on-primary, #0a192f);
  background-color: var(--second-color, #7dffe0);
}
