/* =============================================================
   Regency Casino – Custom CSS
   Deep Sapphire & Antique Gold – UK Royal Theme
   ============================================================= */

/* ------ Reset & Base ------ */
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  word-break: break-word;
}

body {
  overflow-x: hidden;
  word-break: break-word;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* ------ Typography ------ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ------ Prose Styling ------ */
.prose-casino {
  color: #bfcfef;
  line-height: 1.75;
  word-break: break-word;
}

.prose-casino h1,
.prose-casino h2,
.prose-casino h3,
.prose-casino h4,
.prose-casino h5,
.prose-casino h6 {
  font-family: Georgia, Cambria, 'Times New Roman', serif;
  color: #ffffff;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  line-height: 1.3;
  word-break: break-word;
}

.prose-casino h1 { font-size: 2rem; }
.prose-casino h2 { font-size: 1.5rem; }
.prose-casino h3 { font-size: 1.25rem; }

.prose-casino p {
  margin-bottom: 1.25em;
  color: #bfcfef;
}

.prose-casino a {
  color: #ffd700;
  text-decoration: underline;
  transition: color 0.2s;
}

.prose-casino a:hover {
  color: #ffe066;
}

.prose-casino ul {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

.prose-casino ol {
  list-style: decimal;
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

.prose-casino li {
  margin-bottom: 0.5em;
  color: #bfcfef;
}

.prose-casino strong {
  color: #ffffff;
  font-weight: 700;
}

.prose-casino em {
  color: #ffd700;
  font-style: italic;
}

.prose-casino blockquote {
  border-left: 4px solid #ffd700;
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #93afd4;
  font-style: italic;
}

.prose-casino code {
  background: #091c5c;
  color: #ffd700;
  padding: 0.1em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose-casino pre {
  background: #060f38;
  border: 1px solid #1a4fd6;
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.25em;
}

.prose-casino hr {
  border-color: #1a4fd6;
  margin: 2em 0;
}

/* ------ Prose Table Scroll (mandatory) ------ */
.prose-casino .prose-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  margin: 1.5em 0;
  border-radius: 0.5rem;
}

.prose-casino .prose-table-scroll table {
  margin-top: 0;
  margin-bottom: 0;
}

/* Prose tables --  */
.prose-casino table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25em;
  font-size: 0.875em;
}

.prose-casino thead {
  background: #0a2880;
}

.prose-casino th {
  text-align: left;
  padding: 0.75rem 1rem;
  color: #ffd700;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #1a4fd6;
}

.prose-casino td {
  padding: 0.75rem 1rem;
  color: #bfcfef;
  border-bottom: 1px solid #1a4fd650;
}

.prose-casino tr:hover td {
  background: #0e38b130;
}

/* Ensure all tables on the site can scroll --*/
div.overflow-x-auto {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

/* ------ Hero Background ------ */
.hero-bg {
  background: linear-gradient(135deg, #030820 0%, #0a2880 40%, #1a0a2e 70%, #030820 100%);
}

/* ------ Bonus Badge Animation ------ */
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 20px 4px rgba(255, 215, 0, 0.15); }
  50%        { box-shadow: 0 0 40px 10px rgba(255, 215, 0, 0.35); }
}

.bonus-badge {
  animation: badgePulse 3s ease-in-out infinite;
}

/* ------ CTA Primary Glow ------ */
.cta-primary {
  position: relative;
  overflow: hidden;
}

.cta-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-50%) skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}

.cta-primary:hover::after {
  left: 130%;
}

/* ------ Marquee Animation ------ */
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-track {
  display: flex;
  width: max-content;
}

.marquee-outer {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-outer:hover .marquee-track {
  animation-play-state: paused;
}

/* ------ Game Cards ------ */
.game-card {
  cursor: pointer;
}

.game-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ------ Provider Word Cloud ------ */
.provider-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  line-height: 1.4;
}

.provider-tag {
  display: inline-block;
  padding: 0.2em 0;
  transition: color 0.2s;
  cursor: default;
}

.provider-tag:hover {
  color: #ffd700 !important;
}

/* ------ Step Cards ------ */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ------ FAQ Accordion ------ */
.faq-trigger {
  cursor: pointer;
  transition: background-color 0.2s;
}

.faq-trigger:hover {
  background-color: rgba(26, 79, 214, 0.1);
}

.faq-trigger[aria-expanded="true"] {
  background-color: rgba(26, 79, 214, 0.15);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  color: #ffd700;
}

.faq-answer {
  border-top: 1px solid rgba(26, 79, 214, 0.3);
}

/* ------ Parallax Effect ------ */
.parallax-bg {
  will-change: transform;
  transform: translateZ(0);
}

/* ------ Promo Cards ------ */
.promo-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 215, 0, 0.1);
}

/* ------ Gold Divider ------ */
.gold-divider {
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #ffd700 50%, transparent 100%);
  border: none;
  margin: 0 auto;
}

/* ------ Custom Scrollbar ------ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #030820;
}

::-webkit-scrollbar-thumb {
  background: #1a4fd6;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ffd700;
}

/* ------ Selection Colour ------ */
::selection {
  background: #ffd70040;
  color: #ffffff;
}

/* ------ Utility: Velvet texture overlay ------ */
.velvet-overlay {
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(26, 10, 46, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(10, 40, 128, 0.4) 0%, transparent 50%);
}

/* ------ SVG pattern background utility ------ */
.diamond-pattern {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffd700' fill-opacity='0.03'%3E%3Cpath d='M20 0l20 20-20 20L0 20z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ------ Responsive ------ */
@media (max-width: 640px) {
  .prose-casino h1 { font-size: 1.5rem; }
  .prose-casino h2 { font-size: 1.25rem; }
  .prose-casino h3 { font-size: 1.1rem; }

  .bonus-badge {
    padding: 1rem 1.25rem;
  }
}

/* ------ Focus Styles (accessibility) ------ */
:focus-visible {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

/* ------ Smooth transitions ------ */
a, button {
  transition: all 0.2s ease;
}
