/* Skeleton + home v2 visuals — overlay tema tanpa merusak app.css lama */

.rtp-shimmer {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}
.rtp-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.08) 55%,
    transparent
  );
  animation: rtp-shimmer 1.4s ease-in-out infinite;
}
@keyframes rtp-shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Running text — gaya rtppikir: label Info, fade tepi, loop seamless */
.rtp-marquee {
  margin: 0 0 8px;
}
.rtp-marquee__inner {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0 0.7rem 0 0.85rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--warna_latar, #161616) 72%, black);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.rtp-marquee__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warna_tombol, #ffc300);
  line-height: 1;
}
.rtp-marquee__label .mdi {
  font-size: 15px;
  line-height: 1;
}
.rtp-marquee__mask {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.rtp-marquee__track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  animation: rtp-marquee 32s linear infinite;
}
.rtp-marquee__mask:hover .rtp-marquee__track {
  animation-play-state: paused;
}
.rtp-marquee__copy {
  display: flex;
  flex-shrink: 0;
}
.rtp-marquee__item {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.2;
}
.rtp-marquee__item > span:first-child {
  padding: 0 1rem;
}
.rtp-marquee__dot {
  color: var(--warna_tombol, #ffc300);
  font-size: 0.85em;
}
@keyframes rtp-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 575.98px) {
  .rtp-marquee__label span {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rtp-marquee__track,
  .rtp-shimmer::after {
    animation: none;
  }
}

.page-home .wrapper {
  padding-bottom: 0.35rem;
}

.page-home .game-tile {
  content-visibility: auto;
  contain-intrinsic-size: auto 210px;
  contain: content;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

#togel-container {
  display: none;
}

.page-home.is-togel .home-providers,
.page-home.is-togel #game-container {
  display: none;
}

.page-home.is-togel #togel-container {
  display: block;
}

.togel-view .prediksi-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.togel-view .prediksi-card .card-body {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.55));
}

.home-panel {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 0.85rem 0.85rem 1rem;
}

.home-panel.home-games {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

.home-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 0.45rem 0.15rem;
}

.home-toolbar {
  position: sticky;
  top: calc(var(--rtp-header-h, 71px) - 1px);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0 0 0.9rem;
  padding: 0.65rem 0.7rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--warna_latar, #161616) 88%, black);
  border: 1px solid rgba(255, 255, 255, 0.08);
  scroll-margin-top: 5rem;
}

.home-toolbar.is-stuck {
  border-radius: 0 0 14px 14px;
  border-top: 0;
}

.home-toolbar__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.home-toolbar__title > .mdi {
  font-size: 1.35rem;
  color: var(--warna_tombol, #ffc300);
}

.home-toolbar__title h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.15;
}

.home-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  min-width: min(100%, 280px);
  flex: 1 1 220px;
  max-width: 420px;
  position: relative;
}

.home-search__icon {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  font-size: 1.05rem;
}

.home-search input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0 0.85rem 0 2.1rem;
  outline: none;
  font-size: 0.9rem;
}

.home-search input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.home-search input[type="search"]:focus {
  border-color: color-mix(in srgb, var(--warna_tombol, #ffc300) 70%, white);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--warna_tombol, #ffc300) 25%, transparent);
}

.page-home .game-tile {
  background: rgba(12, 12, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: none;
  transition: border-color 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .page-home .game-tile:hover,
  .page-home .game-tile:focus {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--warna_tombol, #ffc300) 55%, transparent);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
    outline: none;
  }

  .page-home .game-tile:hover .imgbox img.is-ready {
    transform: scale(1.06);
  }
}

.page-home .game-tile .imgbox {
  background: #111;
}

.page-home .game-tile .imgbox img {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
}

.page-home .game-tile .imgbox img.is-ready {
  opacity: 1;
  visibility: visible;
}

.game-flame {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 3;
  width: 34px;
  height: 38px;
  pointer-events: none;
}
.game-flame > .mdi {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  line-height: 1;
  color: #ff1a1a;
}
.game-flame > span {
  position: absolute;
  left: 50%;
  top: 58%;
  transform: translate(-50%, -50%);
  z-index: 1;
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 2px rgba(90, 0, 0, 0.95);
}
@media (min-width: 576px) {
  .game-flame {
    width: 40px;
    height: 44px;
  }
  .game-flame > .mdi {
    font-size: 40px;
  }
  .game-flame > span {
    font-size: 8.5px;
  }
}

.game-meta {
  padding: 0.4rem 0.45rem 0.35rem;
  flex: 1 1 auto;
}

.game-name {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.page-home .game-tile .meter-wrap {
  margin: 0;
  padding: 0;
  width: 100%;
}

.page-home .game-tile .progress {
  height: 18px;
  margin: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.page-home .game-tile .progress-bar {
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.22) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.22) 75%,
    transparent 75%,
    transparent
  );
  background-size: 16px 16px;
}

body.is-scrolling .rtp-shimmer::after,
body.is-scrolling .rtp-marquee__track {
  animation-play-state: paused;
}

.page-home .game-tile .progress .progress-text {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
  font-size: 11px;
}

.home-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 2.4rem 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
}

.home-empty .mdi {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.35);
}

.home-empty p {
  margin: 0;
  font-weight: 700;
  color: #fff;
}

.home-empty span {
  font-size: 0.85rem;
}

.bannerSwiper .swiper-slide.is-fallback,
.banner-fallback {
  background:
    linear-gradient(135deg, var(--warna_utama, #025d4b), #111 70%);
}

.bannerSwiper .swiper-slide.is-fallback img {
  opacity: 0;
}

.banner-fallback {
  aspect-ratio: 3 / 1;
  border-radius: 0.5rem;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.banner-fallback a,
.bannerSwiper .swiper-slide.is-fallback::after {
  color: var(--warna_tombol, #ffc300);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: clamp(1.1rem, 4vw, 2rem);
  text-decoration: none;
}

.bannerSwiper .swiper-slide.is-fallback::after {
  content: "RTP LIVE";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.page-home .provider-strip .nav-item {
  flex: 0 0 auto;
  width: 187px;
  height: 72px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-home .provider-strip .h-provider {
  object-fit: cover;
  object-position: center;
}

@media (min-width: 992px) {
  .page-home .provider-strip .nav-item {
    height: 76px;
  }
}

.page-home .provider-strip .nav-item.active {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--warna_tombol, #ffc300);
  box-shadow: none;
}

.home-providers {
  min-width: 0;
}

.provider-strip {
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.provider-strip__scroller {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.4rem 0.15rem 0.55rem;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
  user-select: none;
}

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

.provider-strip__scroller.is-dragging {
  cursor: grabbing;
}

.provider-strip__scroller .nav-item {
  flex: 0 0 auto;
}

@media (max-width: 575.98px) {
  .page-home .container {
    width: 100% !important;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 12px;
    padding-right: 12px;
  }

  .home-toolbar {
    gap: 0.35rem;
    flex-wrap: nowrap;
    margin: 0 0 0.65rem;
    padding: 0.35rem 0.5rem;
  }

  .home-toolbar.is-stuck {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 0 0 14px 14px;
    border-top: 0;
  }

  .home-toolbar__title {
    flex: 1 1 auto;
    min-width: 0;
  }

  .home-toolbar__title > .mdi {
    font-size: 1.05rem;
  }

  .home-toolbar__title h2 {
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-search {
    min-width: 0;
    flex: 0 1 9.25rem;
    max-width: 9.25rem;
    margin-left: 0;
  }

  .home-search__icon {
    left: 0.42rem;
    font-size: 0.82rem;
  }

  .home-search input[type="search"] {
    height: 28px;
    font-size: 0.7rem;
    padding: 0 0.5rem 0 1.55rem;
  }

  .page-home .provider-strip .nav-item {
    width: 148px;
    height: 56px;
  }

  .provider-strip__scroller {
    gap: 8px;
    padding: 0.3rem 0.08rem 0.4rem;
  }

  .page-home #game-grid,
  .page-home #game-sentinel {
    margin-left: -0.35rem;
    margin-right: -0.35rem;
  }

  .page-home #game-grid > [class*="col-"],
  .page-home #game-sentinel > [class*="col-"] {
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    margin-bottom: 0.7rem !important;
  }

  .page-home .game-tile .imgbox {
    aspect-ratio: 1 / 1;
  }

  .page-home .game-tile:hover,
  .page-home .game-tile:focus {
    transform: none;
  }

  .game-meta {
    padding: 0.28rem 0.3rem 0.28rem;
  }

  .game-name {
    font-size: 0.62rem;
  }
}

/* ===== Header & footer modern ===== */
body {
  padding-bottom: 0;
}

#topnav.site-header {
  background: color-mix(in srgb, var(--warna_utama, #025d4b) 78%, #000);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
  overflow: visible;
}

#topnav.site-header .navbar-custom {
  min-height: 70px;
  padding: 0;
}

#topnav.site-header .site-nav__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  min-height: 70px;
  padding: 0 15px;
}

#topnav.site-header .site-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 1 !important;
  margin: 0 !important;
}

#topnav.site-header .site-logo img {
  display: block;
  height: 32px;
  width: auto;
}

#topnav.site-header .site-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  line-height: 1 !important;
}

#topnav.site-header .site-nav__toggle .lines {
  position: relative;
  display: block;
  width: 18px;
  height: 12px;
  margin: 0 !important;
  padding: 0 !important;
}

#topnav.site-header .site-nav__toggle span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  margin: 0;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.92);
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease;
}

#topnav.site-header .site-nav__toggle span:first-child {
  top: 0;
}

#topnav.site-header .site-nav__toggle span:nth-child(2) {
  top: 5px;
}

#topnav.site-header .site-nav__toggle span:last-child {
  top: 10px;
}

#topnav.site-header .site-nav__toggle.open span,
#topnav.site-header .site-nav__toggle.open span:first-child,
#topnav.site-header .site-nav__toggle.open span:nth-child(2),
#topnav.site-header .site-nav__toggle.open span:last-child {
  position: absolute;
  visibility: visible;
  width: 100%;
}

#topnav.site-header .site-nav__toggle.open span:first-child {
  top: 5px;
  transform: rotate(45deg);
}

#topnav.site-header .site-nav__toggle.open span:nth-child(2) {
  opacity: 0;
}

#topnav.site-header .site-nav__toggle.open span:last-child {
  top: 5px;
  transform: rotate(-45deg);
}

#topnav.site-header .site-nav__login {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  margin-left: auto;
  height: 38px;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--warna_tombol, #ffc300);
  color: #1a1400;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--warna_tombol, #ffc300) 35%, transparent);
  transition: transform 0.15s ease, filter 0.15s ease;
}

#topnav.site-header .site-nav__login:hover,
#topnav.site-header .site-nav__login:focus {
  color: #1a1400;
  text-decoration: none;
  filter: brightness(1.06);
  transform: translateY(-1px);
}

#topnav.site-header .site-nav__login .mdi {
  font-size: 1.05rem;
}

#topnav.site-header .navigation-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  float: none;
  margin: 0;
  padding: 0;
}

#topnav.site-header .navigation-menu > li {
  float: none;
  display: block;
}

#topnav.site-header .navigation-menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.9rem !important;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.15 !important;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

#topnav.site-header .navigation-menu > li > a i {
  font-size: 1rem;
  margin: 0;
  color: inherit;
}

#topnav.site-header .navigation-menu > li > a:hover,
#topnav.site-header .navigation-menu > li > a:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

#topnav.site-header .navigation-menu > li.active > a,
#topnav.site-header .navigation-menu > li > a.active {
  color: #1a1400;
  background: var(--warna_tombol, #ffc300);
}

@media (min-width: 992px) {
  #topnav.site-header .site-nav__toggle {
    display: none !important;
  }

  #topnav.site-header #navigation {
    display: flex !important;
    flex: 1 1 auto;
    position: static;
    top: auto;
    left: auto;
    width: auto;
    height: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
  }
}

@media (max-width: 991px) {
  #topnav.site-header .navbar-custom {
    height: 70px;
    min-height: 70px;
  }

  #topnav.site-header .site-nav__inner {
    display: flex;
    align-items: center;
    height: 70px;
    min-height: 70px;
    position: relative;
    gap: 0.45rem;
  }

  #topnav.site-header .site-nav__toggle {
    display: inline-flex !important;
    width: 38px;
    height: 38px;
  }

  #topnav.site-header .site-logo {
    flex: 0 0 auto;
  }

  #topnav.site-header .site-nav__login {
    margin-left: auto;
    height: 34px;
    padding: 0 0.8rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  #topnav.site-header #navigation {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    width: auto;
    height: auto;
    display: none;
    margin: 0;
    padding: 0.4rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: color-mix(in srgb, var(--warna_latar, #161616) 88%, black);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    z-index: 40;
  }

  #topnav.site-header #navigation.open {
    display: block !important;
    height: auto !important;
  }

  #topnav.site-header .navigation-menu {
    flex-direction: column;
    align-items: stretch;
    max-height: none;
    text-align: left;
  }

  #topnav.site-header .navigation-menu > li > a {
    width: 100%;
    padding: 0.8rem 0.9rem !important;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.88) !important;
  }

  #topnav.site-header .navigation-menu > li.active > a,
  #topnav.site-header .navigation-menu > li > a.active {
    color: #1a1400 !important;
  }
}

@media (max-width: 575.98px) {
  #topnav.site-header .site-nav__inner {
    padding-left: 12px;
    padding-right: 12px;
  }
}

.footer.site-footer {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  margin-top: 0.4rem;
  padding: 0.85rem 0;
  color: rgba(255, 255, 255, 0.45);
  background: color-mix(in srgb, var(--warna_utama, #025d4b) 62%, #050505);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__copy {
  margin: 0;
  padding: 0;
  border: 0;
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.5;
}

.asf-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.35rem;
}

.asf-bar__logo {
  flex: 0 0 auto;
}

.asf-bar__logo img {
  display: block;
  width: 168px;
  height: auto;
  object-fit: contain;
}

.asf-bar__age {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}

.asf-bar__age svg {
  display: block;
}

@media (min-width: 992px) {
  .asf-bar {
    margin-top: 1.5rem;
    gap: 0.55rem;
  }

  .asf-bar__logo img {
    width: 220px;
  }

  .asf-bar__age {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }
}

/* ===== Shared site modals ===== */
.modal-backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.site-modal {
  background: color-mix(in srgb, var(--warna_latar, #161616) 90%, #000);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  color: #fff;
}

.site-modal__head {
  padding: 0.9rem 1.1rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.site-modal__title {
  margin: 0;
  color: var(--warna_tombol, #ffc300);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

.site-modal__body {
  padding: 0.95rem 1.05rem;
}

.site-modal__hero {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.site-modal__cover {
  position: relative;
  width: 42%;
  max-width: 168px;
  flex: 0 0 auto;
  border-radius: 14px;
}

.site-modal__cover img {
  display: block;
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.site-modal__cover .game-flame {
  top: 6px;
  left: 6px;
  width: 46px;
  height: 52px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  animation: flameFloat 2.4s ease-in-out infinite;
}

.site-modal__cover .game-flame > .mdi {
  font-size: 46px;
  color: #ff1a1a;
  transform-origin: center bottom;
  animation: flameFlicker 1.5s ease-in-out infinite;
}

.site-modal__cover .game-flame > .mdi::before {
  background: linear-gradient(180deg, #ffd36b 0%, #ff6b2b 28%, #ff1a1a 62%, #c40000 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(255, 60, 10, 0.85));
}

.site-modal__cover .game-flame > span {
  font-size: 9px;
}

.site-modal__cover .game-flame::before,
.site-modal__cover .game-flame::after {
  content: "";
  position: absolute;
  bottom: 10px;
  width: 4px;
  height: 7px;
  border-radius: 60% 60% 40% 40%;
  background: #ffb347;
  opacity: 0;
  animation: sparkRise 1.8s ease-out infinite;
}

.site-modal__cover .game-flame::before {
  left: 6px;
}

.site-modal__cover .game-flame::after {
  right: 7px;
  width: 3px;
  height: 5px;
  background: #ff6b3b;
  animation-delay: 0.7s;
}

.site-modal__cover.is-hot {
  box-shadow: 0 0 0 1px rgba(255, 80, 20, 0.35), 0 10px 22px rgba(255, 40, 0, 0.28);
}

.site-modal__cover.is-hot::after {
  content: "";
  position: absolute;
  inset: auto 12% -8px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 70, 0, 0.45), transparent 70%);
  pointer-events: none;
  animation: flameGlow 1.8s ease-in-out infinite;
}

@keyframes flameFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes flameFlicker {
  0%, 100% { transform: scale(1) rotate(0deg); }
  35% { transform: scale(1.08) rotate(-4deg); }
  70% { transform: scale(0.96) rotate(3deg); }
}

@keyframes sparkRise {
  0% { transform: translateY(0) scale(0.8); opacity: 0; }
  18% { opacity: 0.9; }
  100% { transform: translateY(-16px) scale(0.25); opacity: 0; }
}

@keyframes flameGlow {
  0%, 100% { opacity: 0.45; transform: scaleX(0.9); }
  50% { opacity: 0.9; transform: scaleX(1.15); }
}

@media (prefers-reduced-motion: reduce) {
  .site-modal__cover .game-flame,
  .site-modal__cover .game-flame > .mdi,
  .site-modal__cover .game-flame::before,
  .site-modal__cover .game-flame::after,
  .site-modal__cover.is-hot::after {
    animation: none;
  }
}

.site-modal__meta {
  min-width: 0;
  flex: 1;
}

.site-modal__meta p {
  margin: 0 0 0.55rem;
}

.site-modal__meta .lbl {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.12rem;
}

.site-modal__meta .val {
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.site-modal__section {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warna_tombol, #ffc300);
  margin: 0.35rem 0 0.55rem;
}

.site-modal__patterns p {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.88);
}

.site-modal__note {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.site-modal__alert {
  border-radius: 12px;
  border: 1px solid rgba(243, 73, 67, 0.4);
  background: rgba(243, 73, 67, 0.12);
  padding: 0.85rem 0.9rem;
  text-align: center;
}

.site-modal__alert strong {
  display: block;
  color: #ff8a84;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.site-modal__alert p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  line-height: 1.5;
}

.site-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.site-modal__chip {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  padding: 0.65rem 0.7rem;
  text-align: center;
}

.site-modal__chip span {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.48);
}

.site-modal__chip b {
  display: block;
  margin-top: 0.2rem;
  color: var(--warna_tombol, #ffc300);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.site-modal__chip--wide {
  grid-column: 1 / -1;
}

.site-modal__pairs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-top: 0.45rem;
}

.site-modal__pairs em {
  font-style: normal;
  min-width: 2.4rem;
  padding: 0.28rem 0.45rem;
  border-radius: 8px;
  background: color-mix(in srgb, var(--warna_tombol, #ffc300) 16%, transparent);
  color: var(--warna_tombol, #ffc300);
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
}

.site-modal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-modal__opt {
  width: 100%;
  margin: 0 0 0.15rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.site-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 40px;
  padding: 0 1.15rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  border: 0;
  text-decoration: none;
  cursor: pointer;
}

.site-modal__btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.site-modal__btn--ghost:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.14);
}

.site-modal__btn--gold {
  background: var(--warna_tombol, #ffc300);
  color: #1a1400;
}

.site-modal__btn--gold:hover {
  color: #1a1400;
  text-decoration: none;
  filter: brightness(1.06);
}

.popup-content-wrapper {
  width: 100%;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  line-height: 1.55;
}

.popup-content-wrapper img {
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 0.4rem auto;
  border-radius: 12px;
}

.popup-content-wrapper p {
  word-break: break-word;
}

.popup-content-wrapper a {
  color: var(--warna_tombol, #ffc300);
  word-break: break-all;
}

.cc-livechat-outer {
  position: fixed;
  left: -5px;
  bottom: 270px;
  z-index: 99999;
}

.cc-livechat-wrapper {
  font-family: Arial, sans-serif;
  background: rgba(255, 195, 0, 0.12);
  border-radius: 0 12px 12px 0;
  box-shadow: 0 0 14px rgba(255, 195, 0, 0.35);
}

.cc-livechat-bar {
  width: 23px;
  height: 120px;
  background: linear-gradient(180deg, var(--warna_utama, #025d4b), #336c67);
  border-radius: 0 10px 10px 0;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px 4px 8px;
  cursor: pointer;
  border: 1px solid var(--warna_tombol, #ffc300);
  position: relative;
  animation: cc-wiggle 2.2s ease-in-out infinite;
}

.cc-livechat-bar:hover {
  animation: none;
  transform: translateX(3px);
  box-shadow: 0 0 14px rgba(0, 0, 0, 0.6);
}

@keyframes cc-wiggle {
  0% { transform: translateX(0); }
  20% { transform: translateX(4px); }
  40% { transform: translateX(0); }
  60% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}

.cc-livechat-avatar {
  position: absolute;
  top: -17px;
  left: 80%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 2px solid #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

.cc-livechat-avatar img,
.cc-dialog-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cc-livechat-text {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-livechat-text span {
  color: #ffffff;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 1.2px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
}

.cc-livechat-dialog {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(20px);
  width: min(92vw, 360px);
  background: #111827;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 1px solid #1f2937;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 100000;
}

.cc-livechat-dialog.cc-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.cc-dialog-header {
  padding: 10px 14px;
  background: #1f2937;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 14px 14px 0 0;
}

.cc-dialog-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cc-dialog-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid #10b981;
}

.cc-dialog-header-text {
  font-size: 12px;
  line-height: 1.3;
}

.cc-dialog-header-text strong {
  font-size: 13px;
}

.cc-dialog-close {
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding-left: 6px;
}

.cc-dialog-body {
  padding: 12px 14px 4px;
  font-size: 12px;
  background: #111827;
}

.cc-dialog-body p {
  margin: 0 0 6px;
}

.cc-dialog-footer {
  padding: 8px 14px 12px;
  background: #111827;
  border-radius: 0 0 14px 14px;
}

.cc-dialog-button {
  width: 100%;
  border: none;
  background: linear-gradient(90deg, #16a34a, #22c55e);
  color: #ffffff;
  padding: 10px 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center !important;
  display: block;
}

.cc-dialog-button:hover {
  filter: brightness(1.05);
}

@media (max-width: 480px) {
  .cc-livechat-outer { bottom: 285px; }
  .cc-livechat-bar { width: 26px; height: 145px; }
  .cc-livechat-text span { font-size: 8px; letter-spacing: 1px; }
  .cc-livechat-avatar { width: 30px; height: 30px; top: -15px; }
}

@media (min-width: 1024px) {
  .cc-livechat-outer { bottom: 265px; }
}

@media (prefers-reduced-motion: reduce) {
  .cc-livechat-bar { animation: none; }
}
