.deal88-rtp-hub {
  position: relative;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(26, 18, 8, 0.96), rgba(12, 10, 6, 0.98));
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 215, 0, 0.18);
  overflow: hidden;
}

.deal88-rtp-hub::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.12), transparent 45%),
    radial-gradient(circle at 80% 60%, rgba(251, 191, 36, 0.1), transparent 40%);
  pointer-events: none;
  animation: deal88RtpAura 12s ease-in-out infinite alternate;
}

@keyframes deal88RtpAura {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2%, -2%) scale(1.05); }
}

.deal88-rtp-hub__head {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.deal88-rtp-hub__title {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.4px;
  color: #ffd700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.deal88-rtp-hub__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.deal88-rtp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.45);
  text-decoration: none;
}

.deal88-rtp-badge--live span.deal88-rtp-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: deal88RtpPulse 1.4s ease-in-out infinite;
}

@keyframes deal88RtpPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.65; }
}

.deal88-rtp-rotate-note {
  position: relative;
  z-index: 2;
  margin: 12px 0 0;
  font-size: 11px;
  color: rgba(254, 243, 199, 0.78);
  text-align: center;
}

.deal88-rtp-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 520px) {
  .deal88-rtp-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.deal88-rtp-card {
  position: relative;
  border-radius: 14px;
  background: linear-gradient(160deg, #1f1608 0%, #0f0c06 100%);
  border: 1px solid rgba(251, 191, 36, 0.28);
  padding: 10px;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.35s ease, border-color 0.25s ease;
  transform-origin: center bottom;
  animation: deal88RtpCardIn 0.55s ease backwards;
}

.deal88-rtp-card:nth-child(1) { animation-delay: 0.02s; }
.deal88-rtp-card:nth-child(2) { animation-delay: 0.05s; }
.deal88-rtp-card:nth-child(3) { animation-delay: 0.08s; }
.deal88-rtp-card:nth-child(4) { animation-delay: 0.11s; }
.deal88-rtp-card:nth-child(5) { animation-delay: 0.14s; }
.deal88-rtp-card:nth-child(6) { animation-delay: 0.17s; }
.deal88-rtp-card:nth-child(7) { animation-delay: 0.2s; }
.deal88-rtp-card:nth-child(8) { animation-delay: 0.23s; }

@keyframes deal88RtpCardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.deal88-rtp-card:hover,
.deal88-rtp-card:focus-visible,
.deal88-rtp-card.is-pressed {
  transform: scale(1.1) translateY(-6px);
  z-index: 20;
  border-color: rgba(255, 215, 0, 0.75);
  box-shadow: 0 18px 36px rgba(180, 83, 9, 0.35), 0 0 24px rgba(251, 191, 36, 0.35);
}

.deal88-rtp-card.is-top {
  border-color: rgba(74, 222, 128, 0.5);
}

.deal88-rtp-card__rank {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: linear-gradient(135deg, #b45309, #ffd700);
  color: #1a1208;
}

.deal88-rtp-card__img-wrap {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #422006, #1a1208 50%, #78350f);
}

.deal88-rtp-card__img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.75));
  pointer-events: none;
}

.deal88-rtp-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.deal88-rtp-card:hover .deal88-rtp-card__img,
.deal88-rtp-card.is-pressed .deal88-rtp-card__img {
  transform: scale(1.15);
}

.deal88-rtp-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: rgba(251, 191, 36, 0.45);
  letter-spacing: 2px;
}

.deal88-rtp-card__rtp {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(74, 222, 128, 0.45);
  color: #4ade80;
  backdrop-filter: blur(4px);
}

.deal88-rtp-card__rtp.is-hot {
  color: #fef08a;
  border-color: rgba(251, 191, 36, 0.6);
  animation: deal88RtpHot 2s ease-in-out infinite;
}

@keyframes deal88RtpHot {
  0%, 100% { box-shadow: 0 0 8px rgba(251, 191, 36, 0.3); }
  50% { box-shadow: 0 0 16px rgba(251, 191, 36, 0.65); }
}

.deal88-rtp-card__name {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal88-rtp-card__provider {
  font-size: 9px;
  font-weight: 600;
  color: #fcd34d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.deal88-rtp-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.deal88-rtp-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #4ade80, #a3e635);
  background-size: 200% 100%;
  animation: deal88RtpBarShine 2.5s linear infinite;
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes deal88RtpBarShine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.deal88-rtp-grid.is-refreshing .deal88-rtp-card {
  animation: deal88RtpRefresh 0.45s ease;
}

@keyframes deal88RtpRefresh {
  0% { opacity: 0.4; transform: scale(0.96); }
  100% { opacity: 1; transform: scale(1); }
}

.deal88-rtp-card.is-active {
  border-color: rgba(255, 215, 0, 0.85);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.45), 0 12px 28px rgba(180, 83, 9, 0.35);
}

.rtp-progress-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 6px;
  border: 1px solid rgba(255, 215, 0, 0.15);
}

.rtp-progress-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s ease;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}
