/* PROVIDER PAGE HERO */
.provider-hero {
  padding: 34px 0 22px;
}

.provider-hero-box {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    linear-gradient(90deg, rgba(255,216,107,0.06), rgba(90,140,255,0.05));
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
  padding: 28px 26px;
  min-height: 112px;
  display: flex;
  align-items: center;
}

.provider-hero-content {
  position: relative;
  z-index: 2;
}

.provider-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #f6d774;
  text-transform: uppercase;
}

.provider-hero-content h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 10px;
}

.provider-hero-content p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
}

/* GAME LIST */
.game-list-section {
  padding: 0 0 56px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    #101010;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 10px 24px rgba(0,0,0,0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,216,107,0.24);
  box-shadow: 0 14px 30px rgba(0,0,0,0.3), 0 0 14px rgba(255,216,107,0.08);
}

.game-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0f0f0f;
}

.game-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.34));
  transition: background 0.25s ease;
  pointer-events: none;
}

.game-card:hover .game-thumb::after {
  background: linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.50));
}

.game-thumb img:not(.game-badge):not(.game-badge-hot) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.game-card:hover .game-thumb img:not(.game-badge):not(.game-badge-hot) {
  transform: scale(1.05);
}

.game-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  width: 46px;
  max-width: 46px;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
  animation: gameBadgePulse 2s ease-in-out infinite;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  min-width: 120px;
  padding: 10px 14px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03)),
    rgba(12, 18, 26, 0.78);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.game-card:hover .play-btn {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1.03);
}

.play-btn:hover {
  color: #f6d774;
  border-color: rgba(255,216,107,0.40);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35), 0 0 16px rgba(255,216,107,0.16);
}

.game-body {
  padding: 16px;
}

.game-title {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  min-height: 46px;
}

.rtp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.rtp-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #f6d774;
  text-transform: uppercase;
}

.rtp-value {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.rtp-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.05);
}

.rtp-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.35s ease, filter 0.25s ease;
}

.rtp-fill.rtp-red {
  background: linear-gradient(90deg, #ff4d4f 0%, #c1121f 100%);
  box-shadow: 0 0 10px rgba(255, 77, 79, 0.22);
}

.rtp-fill.rtp-orange {
  background: linear-gradient(90deg, #ff9f1c 0%, #f77f00 100%);
  box-shadow: 0 0 10px rgba(255, 159, 28, 0.22);
}

.rtp-fill.rtp-yellow {
  background: linear-gradient(90deg, #ffe066 0%, #f4c430 100%);
  box-shadow: 0 0 10px rgba(255, 224, 102, 0.20);
}

.rtp-fill.rtp-green {
  background: linear-gradient(90deg, #7ae582 0%, #2dc653 100%);
  box-shadow: 0 0 10px rgba(45, 198, 83, 0.22);
}

@keyframes gameBadgePulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.45));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 6px 14px rgba(255,190,0,0.28));
  }
}

/* PROVIDER TOP CONSISTENCY */
.provider-top-shell {
  padding-bottom: 18px;
}

.provider-marquee {
  padding-bottom: 18px;
}

.provider-cta {
  padding-top: 0;
  padding-bottom: 18px;
}

.provider-schedule {
  padding-bottom: 22px;
}

/* GAME SEARCH - LEGACY SAFE */
.game-search-wrap {
  margin-bottom: 18px;
}

.game-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.game-home-btn {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.68);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    #101010;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
  transition: all 0.25s ease;
}

.game-home-btn:hover {
  color: #f6d774;
  border-color: rgba(255,216,107,0.35);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22), 0 0 14px rgba(255,216,107,0.08);
  transform: translateY(-1px);
}

.game-search-box {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.game-search-input {
  width: 100%;
  height: 48px;
  padding: 0 50px 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  outline: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
    #101010;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0,0,0,0.16);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.game-search-input::placeholder {
  color: rgba(255,255,255,0.42);
  font-weight: 600;
}

.game-search-input:focus {
  border-color: rgba(255, 216, 107, 0.28);
  box-shadow: 0 12px 28px rgba(0,0,0,0.22), 0 0 14px rgba(255,216,107,0.08);
}

/* PROVIDER SEARCH */
.provider-search .game-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.provider-search .game-home-btn {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
}

.provider-search .game-search-box--provider {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

.provider-search .game-search-input {
  width: 100%;
  height: 42px;
  padding: 0 48px 0 14px;
  border-radius: 12px;
}

.provider-search .game-search-action {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.provider-search .game-search-action:hover {
  color: #f6d774;
}

.provider-search .game-search-box:focus-within .game-search-action,
.provider-search .game-search-box--provider:focus-within .game-search-action {
  color: #f6d774;
}

.provider-search .search-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.provider-search .search-icon--magnifier {
  opacity: 1;
  transform: scale(1);
}

.provider-search .search-icon--clear {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

.provider-search .game-search-box--provider.is-filled .search-icon--magnifier {
  opacity: 0;
  transform: scale(0.85);
}

.provider-search .game-search-box--provider.is-filled .search-icon--clear {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

/* DESKTOP: search box fixed di kanan */
@media (min-width: 768px) {
  .provider-search .game-search-box,
  .provider-search .game-search-box--provider {
    flex: 0 0 300px;
    width: 300px;
    max-width: 300px;
    margin-left: auto;
  }
}

.game-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 28px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015)),
    #101010;
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .provider-hero {
    padding: 26px 0 18px;
  }

  .provider-hero-box {
    padding: 22px 18px;
    border-radius: 18px;
    min-height: auto;
  }

  .provider-hero-content p {
    font-size: 13px;
  }

  .game-search-wrap {
    margin-bottom: 14px;
  }

  .game-search-row {
    gap: 8px;
  }

  .game-home-btn {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .game-search-input {
    height: 42px;
    padding: 0 42px 0 14px;
    border-radius: 12px;
    font-size: 13px;
  }


  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .game-card {
    border-radius: 14px;
  }

  .game-body {
    padding: 10px;
  }

  .game-title {
    font-size: 14px;
    line-height: 1.25;
    margin-bottom: 8px;
    min-height: 34px;
  }

  .rtp-label {
    font-size: 10px;
  }

  .rtp-value {
    font-size: 12px;
  }

  .rtp-bar {
    height: 9px;
  }

  .game-badge {
    width: 38px;
    max-width: 38px;
    top: 6px;
    left: 6px;
  }

  .play-btn {
    min-width: 92px;
    padding: 8px 10px;
    font-size: 11px;
    border-radius: 10px;
    opacity: 1;
    visibility: visible;
  }

  .provider-top-shell {
    padding-bottom: 14px;
  }

  .provider-marquee {
    padding-bottom: 14px;
  }

  .provider-cta {
    padding-bottom: 14px;
  }

  .provider-schedule {
    padding-bottom: 18px;
  }

  .provider-search .game-search-row {
    gap: 8px;
  }

  .provider-search .game-home-btn {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .provider-search .game-search-input {
    height: 42px;
    padding: 0 42px 0 14px;
    border-radius: 12px;
    font-size: 13px;
  }

  .provider-search .game-search-action {
    right: 12px;
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .game-card {
    border-radius: 12px;
  }

  .game-title {
    font-size: 13px;
    min-height: 32px;
  }

  .game-badge {
    width: 34px;
    max-width: 34px;
    top: 5px;
    left: 5px;
  }

  .play-btn {
    min-width: 82px;
    padding: 7px 8px;
    font-size: 10px;
  }

  .rtp-value {
    font-size: 11px;
  }

  .rtp-bar {
    height: 8px;
  }
}

/* =========================
   PG SOFT OVERRIDE
   ========================= */

.pgsoft-grid .pgsoft-card {
  border-radius: 16px;
  overflow: hidden;
}

.pgsoft-grid .pgsoft-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #0b0b0b;
}

.pgsoft-grid .pgsoft-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.pgsoft-grid .pgsoft-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.pgsoft-grid .pgsoft-card:hover .pgsoft-picture img {
  transform: scale(1.02);
}

.pgsoft-grid .game-body {
  padding: 12px;
}

.pgsoft-grid .game-title {
  font-size: 16px;
  line-height: 1.25;
  min-height: 40px;
  margin-bottom: 10px;
}

.pgsoft-grid .play-btn {
  min-width: 106px;
}

/* =========================
   PG SOFT LABEL + BADGE
   ========================= */

.pgsoft-grid .pgsoft-badge-right {
  left: auto;
  right: 8px;
  top: 8px;
}

.pgsoft-grid .pgsoft-top-label {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 58px);
  min-height: 38px;
  padding: 8px 12px;
  border-bottom-right-radius: 12px;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(0,0,0,0.22);
}

.pgsoft-grid .pgsoft-top-label.label-red {
  background: linear-gradient(180deg, #ff4b4b 0%, #e11d1d 100%);
}

.pgsoft-grid .pgsoft-top-label.label-orange {
  background: linear-gradient(180deg, #ff8a1f 0%, #f05a00 100%);
}

.pgsoft-grid .pgsoft-top-label.label-purple {
  background: linear-gradient(180deg, #b84dff 0%, #7b2cff 100%);
}

.pgsoft-grid .pgsoft-top-label.label-gold {
  background: linear-gradient(180deg, #d7b34d 0%, #b88a17 100%);
}

.pgsoft-grid .pgsoft-top-label.label-blue {
  background: linear-gradient(180deg, #4ea3ff 0%, #216bff 100%);
}

.pgsoft-grid .pgsoft-top-label.label-green {
  background: linear-gradient(180deg, #39c96b 0%, #148f42 100%);
}

.pgsoft-grid .pgsoft-hot-badge {
  width: 42px;
  max-width: 42px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
}

/* MOBILE - PG SOFT ONLY */
@media (max-width: 767px) {
  .pgsoft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .pgsoft-grid .pgsoft-thumb {
    aspect-ratio: 1 / 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pgsoft-grid .pgsoft-picture img {
    object-fit: contain;
    object-position: center;
    padding: 6px;
  }

  .pgsoft-grid .game-title {
    font-size: 13px;
    min-height: 34px;
    margin-bottom: 8px;
  }

  .pgsoft-grid .game-body {
    padding: 10px;
  }

  .pgsoft-grid .play-btn {
    min-width: 92px;
    padding: 8px 10px;
    font-size: 11px;
  }

  .pgsoft-grid .pgsoft-top-label {
    display: none;
  }

  .pgsoft-grid .pgsoft-badge-right {
    right: 6px;
    top: 6px;
  }

  .pgsoft-grid .pgsoft-hot-badge {
    width: 34px;
    max-width: 34px;
  }
}

@media (max-width: 480px) {
  .pgsoft-grid .pgsoft-thumb {
    aspect-ratio: 1 / 1;
  }

  .pgsoft-grid .game-title {
    font-size: 12px;
    min-height: 32px;
  }

  .pgsoft-grid .play-btn {
    min-width: 84px;
    font-size: 10px;
    padding: 7px 8px;
  }

  .pgsoft-grid .pgsoft-badge-right {
    right: 5px;
    top: 5px;
  }

  .pgsoft-grid .pgsoft-hot-badge {
    width: 30px;
    max-width: 30px;
  }
}

/* =========================
   PRAGMATIC IMAGE FIX
   ========================= */

.pragmatic-grid .game-thumb {
  aspect-ratio: 16 / 10;
  background: #0f0f0f;
}

.pragmatic-grid .game-thumb img:not(.game-badge) {
  object-fit: contain;
  object-position: center top;
}

.pragmatic-grid .game-card:hover .game-thumb img:not(.game-badge) {
  transform: scale(1.02);
}
/* =========================
   PRAGMATIC PERFECT FIT
   ========================= */

.pragmatic-grid .game-thumb {
  aspect-ratio: auto;
  height: auto;
  background: transparent;
  overflow: hidden;
}

.pragmatic-grid .game-thumb::after {
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.38));
}

.pragmatic-grid .game-thumb img:not(.game-badge) {
  display: block;
  width: 100%;
  height: auto;
  object-fit: initial;
  background: transparent;
  transform: none;
}

.pragmatic-grid .game-card:hover .game-thumb img:not(.game-badge) {
  transform: scale(1.02);
}

.pragmatic-grid .play-btn {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* =========================
   BACK TO TOP UNIVERSAL
   ========================= */

.back-to-top-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    #101010;
  color: #f6d774;
  box-shadow: 0 10px 24px rgba(0,0,0,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.back-to-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top-btn:hover {
  border-color: rgba(255,216,107,0.35);
  box-shadow: 0 12px 28px rgba(0,0,0,0.34), 0 0 14px rgba(255,216,107,0.12);
}

.back-to-top-btn:active {
  transform: translateY(1px);
}

@media (max-width: 767px) {
  .back-to-top-btn {
    right: 14px;
    bottom: 72px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }
}
/* ================================
   AFB GAMING – HOT BADGE
   ================================ */
.afbgaming-grid .game-badge-hot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 58px;
  height: 58px;
  max-width: 58px;
  object-fit: contain;
  z-index: 4;
  pointer-events: none;
}

@media (max-width: 767px) {
  .afbgaming-grid .game-badge-hot {
    width: 54px;
    height: 54px;
    max-width: 54px;
    top: 5px;
    right: 5px;
  }
}
/* =========================
   AFB GAMING IMAGE FIX
   ========================= */

.afbgaming-grid .game-thumb {
  aspect-ratio: 16 / 10;
  background: #0f0f0f;
}

.afbgaming-grid .game-thumb img:not(.game-badge):not(.game-badge-hot) {
  object-fit: contain;
  object-position: center top;
}

.afbgaming-grid .game-card:hover .game-thumb img:not(.game-badge):not(.game-badge-hot) {
  transform: scale(1.02);
}

/* =========================
   AFB GAMING PERFECT FIT
   ========================= */

.afbgaming-grid .game-thumb {
  aspect-ratio: auto;
  height: auto;
  background: transparent;
  overflow: hidden;
}

.afbgaming-grid .game-thumb::after {
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.38));
}

.afbgaming-grid .game-thumb img:not(.game-badge):not(.game-badge-hot) {
  display: block;
  width: 100%;
  height: auto;
  object-fit: initial;
  background: transparent;
  transform: none;
}

.afbgaming-grid .game-card:hover .game-thumb img:not(.game-badge):not(.game-badge-hot) {
  transform: scale(1.02);
}

.afbgaming-grid .play-btn {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/* =========================
   AFB GAMING – ULTRA FIRE TEXT
   ========================= */

.afbgaming-grid .afb-ultra-fire {
  position: relative;
  display: inline-block;
  color: #ffd36b;
  font-weight: 900;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  text-shadow:
    0 0 2px rgba(255, 220, 120, 0.9),
    0 0 6px rgba(255, 160, 40, 0.9),
    0 0 12px rgba(255, 90, 0, 0.75),
    0 0 12px rgba(255, 40, 0, 0.35);
  animation: afbUltraFireGlow 0.9s ease-in-out infinite alternate;
}

.afbgaming-grid .afb-ultra-fire::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -2px;
  height: 8px;
  background:
    radial-gradient(circle at 10% 100%, rgba(255,210,90,0.95) 0%, rgba(255,210,90,0) 55%),
    radial-gradient(circle at 30% 100%, rgba(255,150,40,0.9) 0%, rgba(255,150,40,0) 60%),
    radial-gradient(circle at 50% 100%, rgba(255,95,20,0.88) 0%, rgba(255,95,20,0) 62%),
    radial-gradient(circle at 70% 100%, rgba(255,180,60,0.9) 0%, rgba(255,180,60,0) 58%),
    radial-gradient(circle at 90% 100%, rgba(255,80,0,0.85) 0%, rgba(255,80,0,0) 60%);
  filter: blur(2px);
  opacity: 0.95;
  transform-origin: center bottom;
  animation: afbUltraFlameWave 0.55s ease-in-out infinite alternate;
  pointer-events: none;
}

.afbgaming-grid .afb-ultra-fire::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 65%;
  height: 12px;
  background:
    radial-gradient(circle at 12% 100%, rgba(255,220,120,0.75) 0%, rgba(255,220,120,0) 52%),
    radial-gradient(circle at 38% 100%, rgba(255,165,50,0.7) 0%, rgba(255,165,50,0) 58%),
    radial-gradient(circle at 63% 100%, rgba(255,100,20,0.68) 0%, rgba(255,100,20,0) 58%),
    radial-gradient(circle at 88% 100%, rgba(255,190,70,0.72) 0%, rgba(255,190,70,0) 54%);
  filter: blur(4px);
  opacity: 0.8;
  transform-origin: center bottom;
  animation: afbUltraFlameTop 0.7s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes afbUltraFireGlow {
  0% {
    color: #ffd76f;
    text-shadow:
      0 0 2px rgba(255, 220, 120, 0.9),
      0 0 5px rgba(255, 160, 40, 0.85),
      0 0 10px rgba(255, 90, 0, 0.65),
      0 0 15px rgba(255, 40, 0, 0.35);
  }
  100% {
    color: #fff3bf;
    text-shadow:
      0 0 3px rgba(255, 235, 150, 1),
      0 0 8px rgba(255, 170, 50, 0.95),
      0 0 14px rgba(255, 100, 20, 0.85),
      0 0 22px rgba(255, 50, 0, 0.48);
  }
}

@keyframes afbUltraFlameWave {
  0% {
    transform: scaleY(1) translateY(0);
    opacity: 0.88;
  }
  100% {
    transform: scaleY(1.35) translateY(-1px);
    opacity: 1;
  }
}

@keyframes afbUltraFlameTop {
  0% {
    transform: scaleY(0.9) translateY(0);
    opacity: 0.55;
  }
  100% {
    transform: scaleY(1.25) translateY(-2px);
    opacity: 0.9;
  }
}
/* =========================
   MIMI GAMING – IMAGE FIX
   ========================= */

.mimigaming-grid .pgsoft-thumb {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mimigaming-grid .pgsoft-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.mimigaming-grid .pgsoft-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  background: #ffffff;
}

.mimigaming-grid .game-card:hover .pgsoft-picture img {
  transform: scale(1.02);
}

@media (max-width: 767px) {
  .mimigaming-grid .pgsoft-thumb {
    aspect-ratio: 1 / 1;
    background: #ffffff;
  }

  .mimigaming-grid .pgsoft-picture img {
    object-fit: contain;
    object-position: center;
    padding: 0;
  }
}
/* =========================
   HABANERO – IMAGE FIX
   ========================= */

.habanero-grid .pgsoft-thumb {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.habanero-grid .pgsoft-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.habanero-grid .pgsoft-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  background: #ffffff;
}

.habanero-grid .game-card:hover .pgsoft-picture img {
  transform: scale(1.02);
}

@media (max-width: 767px) {
  .habanero-grid .pgsoft-thumb {
    aspect-ratio: 1 / 1;
    background: #ffffff;
  }

  .habanero-grid .pgsoft-picture img {
    object-fit: contain;
    object-position: center;
    padding: 0;
  }
}
/* =========================
   JDB – IMAGE FIX
   ========================= */

.jdb-grid .pgsoft-thumb {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.jdb-grid .pgsoft-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.jdb-grid .pgsoft-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  background: #ffffff;
}

.jdb-grid .game-card:hover .pgsoft-picture img {
  transform: scale(1.02);
}

@media (max-width: 767px) {
  .jdb-grid .pgsoft-thumb {
    aspect-ratio: 1 / 1;
    background: #ffffff;
  }

  .jdb-grid .pgsoft-picture img {
    object-fit: contain;
    object-position: center;
    padding: 0;
  }
}
/* =========================
   SPADEGAMING – IMAGE FIX
   ========================= */

.spadegaming-grid .pgsoft-card,
.spadegaming-grid .game-card {
  border-radius: 16px;
  overflow: hidden;
}

.spadegaming-grid .pgsoft-thumb,
.spadegaming-grid .game-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spadegaming-grid .pgsoft-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.spadegaming-grid .pgsoft-picture img,
.spadegaming-grid .game-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
  padding: 0;
}

.spadegaming-grid .game-card:hover .pgsoft-picture img,
.spadegaming-grid .game-card:hover .game-thumb img {
  transform: scale(1.02);
}

.spadegaming-grid .game-body {
  padding: 12px;
}

.spadegaming-grid .game-title {
  font-size: 16px;
  line-height: 1.25;
  min-height: 40px;
  margin-bottom: 10px;
}

.spadegaming-grid .play-btn {
  min-width: 106px;
}

@media (max-width: 767px) {
  .spadegaming-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .spadegaming-grid .pgsoft-thumb,
  .spadegaming-grid .game-thumb {
    aspect-ratio: 1 / 1;
    background: #ffffff;
  }

  .spadegaming-grid .pgsoft-picture img,
  .spadegaming-grid .game-thumb img {
    object-fit: contain;
    object-position: center;
    padding: 0;
  }

  .spadegaming-grid .game-title {
    font-size: 13px;
    min-height: 34px;
    margin-bottom: 8px;
  }

  .spadegaming-grid .game-body {
    padding: 10px;
  }

  .spadegaming-grid .play-btn {
    min-width: 92px;
    padding: 8px 10px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .spadegaming-grid .pgsoft-thumb,
  .spadegaming-grid .game-thumb {
    aspect-ratio: 1 / 1;
  }

  .spadegaming-grid .game-title {
    font-size: 12px;
    min-height: 32px;
  }

  .spadegaming-grid .play-btn {
    min-width: 84px;
    font-size: 10px;
    padding: 7px 8px;
  }
}

/* =========================
   FA CHAI ONLY STYLE
   Scope: .provider-fachai
   Fokus: layout game + badge fachai
========================= */

.provider-fachai #providerGameGrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.provider-fachai .game-card {
  width: 100%;
  min-width: 0;
  height: 100%;
  position: relative;
  overflow: visible;
}

.provider-fachai .game-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  aspect-ratio: 1 / 1;
  background: #0b0b0f;
}

/* gambar utama aja, badge jangan ikut kena */
.provider-fachai .game-thumb img:not(.game-badge-fachai):not(.game-badge-hot) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* badge fachai nongol di luar pojok kanan atas */
.provider-fachai .game-badge-fachai {
  position: absolute;
  top: -10px;
  left: -10px;
  right: auto;
  width: 90px;
  max-width: 90px;
  height: auto;
  object-fit: contain;
  z-index: 20;
  pointer-events: none;
}

/* tombol play tetap di tengah */
.provider-fachai .play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 7;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 767px) {
  .provider-fachai #providerGameGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .provider-fachai .game-card {
    border-radius: 14px;
  }

  .provider-fachai .game-body {
    padding: 10px;
  }

  .provider-fachai .game-title {
    font-size: 14px;
    line-height: 1.25;
    min-height: 34px;
    margin-bottom: 8px;
  }

  .provider-fachai .rtp-label {
    font-size: 10px;
  }

  .provider-fachai .rtp-value {
    font-size: 12px;
  }

  .provider-fachai .rtp-bar {
    height: 9px;
  }

  .provider-fachai .play-btn {
    min-width: 92px;
    padding: 8px 10px;
    font-size: 11px;
    border-radius: 10px;
    opacity: 1;
    visibility: visible;
  }

  .provider-fachai .game-badge-fachai {
    top: -8px;
    left: -8px;
    width: 70px;
    max-width: 70px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .provider-fachai #providerGameGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px 14px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .provider-fachai #providerGameGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .provider-fachai #providerGameGrid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 16px;
  }
}

@media (min-width: 1400px) {
  .provider-fachai #providerGameGrid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 16px;
  }
}
/* =========================
   JILI ONLY STYLE
   Scope: .provider-jili
   Fokus: layout game + badge jili
========================= */

.provider-jili #providerGameGrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.provider-jili .game-card {
  width: 100%;
  min-width: 0;
  height: 100%;
  position: relative;
  overflow: visible;
}

.provider-jili .game-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  aspect-ratio: 1 / 1;
  background: #0b0b0f;
}

.provider-jili .game-thumb img:not(.game-badge-jili):not(.game-badge-hot) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* badge jili di kiri atas, keluar dikit dari card */
.provider-jili .game-badge-jili {
  position: absolute;
  top: -10px;
  left: -10px;
  right: auto;
  width: 90px;
  max-width: 90px;
  height: auto;
  object-fit: contain;
  z-index: 20;
  pointer-events: none;
}

.provider-jili .play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 7;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 767px) {
  .provider-jili #providerGameGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .provider-jili .game-card {
    border-radius: 14px;
  }

  .provider-jili .game-body {
    padding: 10px;
  }

  .provider-jili .game-title {
    font-size: 14px;
    line-height: 1.25;
    min-height: 34px;
    margin-bottom: 8px;
  }

  .provider-jili .rtp-label {
    font-size: 10px;
  }

  .provider-jili .rtp-value {
    font-size: 12px;
  }

  .provider-jili .rtp-bar {
    height: 9px;
  }

  .provider-jili .play-btn {
    min-width: 92px;
    padding: 8px 10px;
    font-size: 11px;
    border-radius: 10px;
    opacity: 1;
    visibility: visible;
  }

  .provider-jili .game-badge-jili {
    top: -8px;
    left: -8px;
    width: 70px;
    max-width: 70px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .provider-jili #providerGameGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px 14px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .provider-jili #providerGameGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .provider-jili #providerGameGrid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 16px;
  }
}

@media (min-width: 1400px) {
  .provider-jili #providerGameGrid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 16px;
  }
}
/* =========================
   YL GAMING ONLY STYLE
   Scope: .provider-ylgaming
   Fokus: layout game
========================= */

.provider-ylgaming #providerGameGrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.provider-ylgaming .game-card {
  width: 100%;
  min-width: 0;
  height: 100%;
}

.provider-ylgaming .game-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  aspect-ratio: 1 / 1;
  background: #0b0b0f;
}

.provider-ylgaming .game-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.provider-ylgaming .play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 7;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 767px) {
  .provider-ylgaming #providerGameGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .provider-ylgaming .game-card {
    border-radius: 14px;
  }

  .provider-ylgaming .game-body {
    padding: 10px;
  }

  .provider-ylgaming .game-title {
    font-size: 14px;
    line-height: 1.25;
    min-height: 34px;
    margin-bottom: 8px;
  }

  .provider-ylgaming .rtp-label {
    font-size: 10px;
  }

  .provider-ylgaming .rtp-value {
    font-size: 12px;
  }

  .provider-ylgaming .rtp-bar {
    height: 9px;
  }

  .provider-ylgaming .play-btn {
    min-width: 92px;
    padding: 8px 10px;
    font-size: 11px;
    border-radius: 10px;
    opacity: 1;
    visibility: visible;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .provider-ylgaming #providerGameGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px 14px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .provider-ylgaming #providerGameGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 16px;
  }
}

@media (min-width: 1200px) and (max-width: 1399px) {
  .provider-ylgaming #providerGameGrid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 16px;
  }
}

@media (min-width: 1400px) {
  .provider-ylgaming #providerGameGrid {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 16px;
  }
}