.rt-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 10, 20, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.rt-overlay.rt-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.rt-modal {
  position: relative;
  width: 100%;
  max-width: 500px;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rt-overlay.rt-active .rt-modal {
  transform: translateY(0) scale(1);
}

.rt-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rt-close:hover {
  background: rgba(255, 255, 255, 0.26);
  transform: rotate(90deg);
}

.rt-state {
  display: none;
}

.rt-state.rt-state-active {
  display: flex;
  flex-direction: column;
  animation: rtSlideFade 0.28s ease both;
}

@keyframes rtSlideFade {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.rt-header {
  position: relative;
  flex-shrink: 0;
  padding: 24px 26px 20px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 52%, #0f172a 100%);
}

.rt-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.18), transparent 56%),
    radial-gradient(circle at 100% 100%, rgba(16, 185, 129, 0.16), transparent 42%);
  pointer-events: none;
}

.rt-header > * {
  position: relative;
  z-index: 1;
}

.rt-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rt-header h2 {
  margin: 0 0 7px;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.rt-header p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  line-height: 1.45;
}

.rt-body {
  padding: 22px 24px 20px;
  overflow-y: auto;
}

.rt-hero-card {
  border: 2px solid #e5e7eb;
  border-radius: 18px;
  padding: 20px 18px;
  text-align: center;
  background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.rt-award-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 auto 14px;
  padding: 7px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #78350f;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  box-shadow: 0 6px 16px rgba(251, 191, 36, 0.34);
}

.rt-award-badge::before {
  content: "🏆";
  font-size: 14px;
}

.rt-hero-logo {
  display: block;
  width: 94px;
  height: 94px;
  object-fit: contain;
  padding: 8px;
  margin: 0 auto 12px;
  border: 1px solid #eeeeee;
  border-radius: 18px;
  background: #ffffff;
}

.rt-hero-card h3 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.rt-hero-bonus {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.28);
}

.rt-hero-bonus span {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.rt-hero-bonus strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
}

.rt-primary,
.rt-secondary,
.rt-review-btn,
.rt-back {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.rt-primary,
.rt-review-btn {
  padding: 14px 18px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.34);
}

.rt-primary:hover,
.rt-review-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(239, 68, 68, 0.44);
}

.rt-secondary {
  margin-top: 10px;
  padding: 13px 18px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

.rt-secondary:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.rt-list {
  display: grid;
  gap: 10px;
}

.rt-casino-card {
  position: relative;
  display: grid;
  grid-template-columns: 34px 58px 1fr 22px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.rt-casino-card:hover {
  border-color: #10b981;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.14);
  transform: translateY(-1px);
}

.rt-card-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.rt-casino-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid #eeeeee;
  background: #ffffff;
}

.rt-casino-content {
  min-width: 0;
}

.rt-casino-content h3 {
  margin: 0 0 3px;
  color: #0f172a;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
}

.rt-casino-content p {
  margin: 0;
  color: #374151;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 650;
}

.rt-card-arrow {
  color: #9ca3af;
  font-size: 20px;
  font-weight: 900;
}

.rt-bonus-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.rt-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font-size: 14px;
  line-height: 1;
}

.rt-bonus-list {
  display: none;
  margin: 9px 0 0;
  padding: 9px 0 0 16px;
  border-top: 1px solid #eef2f7;
  color: #4b5563;
  font-size: 11px;
  line-height: 1.35;
}

.rt-bonus-list li + li {
  margin-top: 5px;
}

.rt-casino-card.rt-expanded {
  align-items: flex-start;
}

.rt-casino-card.rt-expanded .rt-bonus-list {
  display: block;
}

.rt-review-btn {
  margin-top: 16px;
}

.rt-back {
  margin-top: 10px;
  background: transparent;
  color: #6b7280;
  font-size: 12px;
  font-weight: 750;
  text-decoration: underline;
}

.rt-back:hover {
  color: #0f172a;
}

@media (max-width: 540px) {
  .rt-overlay {
    padding: 10px;
    align-items: center;
  }

  .rt-modal {
    max-width: 100%;
    max-height: 94vh;
    border-radius: 16px;
  }

  .rt-header {
    padding: 22px 20px 16px;
  }

  .rt-header h2 {
    font-size: 19px;
  }

  .rt-header p {
    font-size: 12px;
  }

  .rt-body {
    padding: 18px 16px 16px;
  }

  .rt-hero-card {
    padding: 17px 14px;
  }

  .rt-hero-logo {
    width: 78px;
    height: 78px;
  }

  .rt-hero-card h3 {
    font-size: 21px;
  }

  .rt-hero-bonus strong {
    font-size: 16px;
  }

  .rt-casino-card {
    grid-template-columns: 30px 50px 1fr;
    gap: 10px;
    padding: 12px;
  }

  .rt-casino-logo {
    width: 50px;
    height: 50px;
  }

  .rt-card-arrow {
    display: none;
  }

  .rt-casino-content h3 {
    font-size: 15px;
  }

  .rt-casino-content p {
    font-size: 11px;
  }
}

@media (max-width: 380px) {
  .rt-header h2 {
    font-size: 17px;
  }

  .rt-casino-card {
    grid-template-columns: 26px 44px 1fr;
  }

  .rt-casino-logo {
    width: 44px;
    height: 44px;
  }
}