/* Responsible Gaming Modal - bottom-sheet with iframe */

.rg-trigger {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0.4rem 0 0 0;
  font: inherit;
  color: #FFD700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}
.rg-trigger:hover { color: #FFA500; text-shadow: 0 0 8px rgba(255, 215, 0, 0.4); }
.rg-trigger:focus-visible {
  outline: 2px solid #FFD700;
  outline-offset: 3px;
  border-radius: 4px;
}
.rg-trigger i { font-size: 1.05em; line-height: 1; }

.rg-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.rg-modal[hidden] { display: none; }

.rg-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 240ms ease;
  cursor: pointer;
}
.rg-modal.is-open .rg-modal__backdrop { opacity: 1; }

.rg-modal__sheet {
  position: relative;
  width: 100%;
  height: 90vh;
  max-height: 90vh;
  background: #ffffff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.45);
  transform: translateY(100%);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.rg-modal.is-open .rg-modal__sheet { transform: translateY(0); }

.rg-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(20, 20, 30, 0.85);
  color: #FFD700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.rg-modal__close:hover {
  background: #1a1a2e;
  transform: scale(1.06);
  box-shadow: 0 6px 18px rgba(255, 215, 0, 0.35);
}
.rg-modal__close:focus-visible {
  outline: 2px solid #FFD700;
  outline-offset: 3px;
}
.rg-modal__close svg { width: 22px; height: 22px; display: block; }

.rg-modal__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.rg-modal__iframe-wrap {
  flex: 1 1 auto;
  width: 100%;
  background: #ffffff;
  overflow: hidden;
}
.rg-modal__iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #ffffff;
}

@media (min-width: 1024px) {
  .rg-modal { align-items: flex-end; padding: 0 24px 24px; }
  .rg-modal__sheet {
    width: 100%;
    max-width: 960px;
    height: 88vh;
    max-height: 88vh;
    border-radius: 18px 18px 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rg-modal__backdrop,
  .rg-modal__sheet {
    transition: none !important;
  }
  .rg-modal__sheet { transform: none; opacity: 1; }
}
