/* Wild Dice Casino Site 3 - Prefix: rlx - Font: DM Sans - Layout: C */
:root {
  --rlx-bg: #0A0A14;
  --rlx-header: #1A2050;
  --rlx-surface: #14142A;
  --rlx-surface-alt: #1E1E3A;
  --rlx-border: #2A2A50;
  --rlx-cta: #D82050;
  --rlx-cta-hover: #E84068;
  --rlx-text: #FFFFFF;
  --rlx-text-sec: #B8B8D0;
  --rlx-text-muted: #7878A0;
  --rlx-radius: 6px;
  --rlx-card-radius: 10px;
  --rlx-shadow: 0 1px 8px rgba(0,0,0,0.2);
  --rlx-gap: 28px;
  --rlx-container: 1240px;
  --rlx-btn-radius: 6px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--rlx-bg);
  color: var(--rlx-text);
  line-height: 1.7;
  font-size: 16px;
}

.rlx-container {
  max-width: var(--rlx-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.rlx-top {
  background: var(--rlx-header);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.rlx-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rlx-logo img {
  height: 40px;
  width: auto;
}

.rlx-navigation ul {
  display: flex;
  list-style: none;
  gap: var(--rlx-gap);
}

.rlx-navigation a {
  color: var(--rlx-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.rlx-navigation a:hover,
.rlx-navigation a[aria-current="page"] {
  color: var(--rlx-cta);
}

.rlx-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.rlx-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--rlx-text);
  transition: transform 0.3s;
}

/* Hero */
.rlx-intro {
  background: linear-gradient(135deg, var(--rlx-header), var(--rlx-bg));
  padding: 60px 0 80px;
}

.rlx-intro .rlx-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--rlx-gap);
  align-items: center;
}

.rlx-intro-content h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.rlx-intro-content p {
  color: var(--rlx-text-sec);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.rlx-intro-image img {
  width: 100%;
  height: auto;
  border-radius: var(--rlx-card-radius);
}

/* Sections */
section[class*="rlx-"] {
  padding: 48px 0;
}

section[class*="rlx-"]:nth-child(even) {
  background: var(--rlx-surface);
}

section h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

section h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  margin-top: 24px;
}

section p {
  color: var(--rlx-text-sec);
  margin-bottom: 16px;
  max-width: 800px;
}

.rlx-subsection {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rlx-border);
}

/* Cards */
.rlx-boxes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--rlx-gap);
  margin: 24px 0;
}

.rlx-boxes-item {
  background: var(--rlx-surface-alt);
  border-radius: var(--rlx-card-radius);
  overflow: hidden;
  border: none;
  transition: transform 0.3s;
}

.rlx-boxes-item:hover {
  transform: scale(1.04);
}

.rlx-boxes-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.rlx-boxes-label {
  display: block;
  padding: 12px;
  font-weight: 600;
  text-align: center;
  font-size: 0.9rem;
}

/* Payment Icons */
.rlx-boxes-payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
  align-items: center;
}

.rlx-boxes-payment-icon {
  border: none;
  height: 36px;
  max-width: 80px;
  background: #fff;
  padding: 4px 8px;
  border-radius: 6px;
}

/* Buttons */
.rlx-play-primary {
  display: inline-block;
  background: var(--rlx-cta);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--rlx-btn-radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s;
  margin-top: 28px;
}

.rlx-play-primary:hover {
  background: var(--rlx-cta-hover);
  transform: translateY(-2px);
}

/* Step Guide */
.rlx-walkthrough-list {
  margin: 20px 0 20px 24px;
  counter-reset: step-counter;
  list-style: none;
}

.rlx-walkthrough-list li {
  counter-increment: step-counter;
  padding: 12px 0 12px 48px;
  position: relative;
  color: var(--rlx-text-sec);
  border-bottom: 1px solid var(--rlx-border);
}

.rlx-walkthrough-list li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 12px;
  width: 32px;
  height: 32px;
  background: var(--rlx-cta);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* Data Table */
.rlx-data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}

.rlx-data-table th {
  background: var(--rlx-header);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.rlx-data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--rlx-border);
  color: var(--rlx-text-sec);
}

.rlx-data-table tr:nth-child(even) td {
  background: var(--rlx-surface);
}

/* FAQ */
.rlx-answers {
  padding: 48px 0;
}

.rlx-answers-item {
  border: 1px solid var(--rlx-border);
  border-radius: var(--rlx-radius);
  margin-bottom: 8px;
  overflow: hidden;
}

.rlx-answers-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rlx-answers-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--rlx-cta);
}

.rlx-answers-item[open] summary::after {
  content: "-";
}

.rlx-answers-item summary h3 {
  margin: 0;
  font-size: 1rem;
}

.rlx-answers-item p {
  padding: 0 20px 16px;
  color: var(--rlx-text-sec);
}

/* TOC */
.rlx-summary {
  background: var(--rlx-surface);
  padding: 24px;
  border-radius: var(--rlx-card-radius);
  margin: 24px auto;
  max-width: 600px;
}

.rlx-summary h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.rlx-summary ol {
  margin-left: 20px;
}

.rlx-summary li {
  margin-bottom: 6px;
}

.rlx-summary a {
  color: var(--rlx-cta);
  text-decoration: none;
}

.rlx-summary a:hover {
  text-decoration: underline;
}

/* Author */
.rlx-reviewer-block {
  padding: 48px 0;
  background: var(--rlx-surface);
}

.rlx-reviewer-card {
  display: flex;
  gap: 20px;
  align-items: center;
  background: var(--rlx-surface-alt);
  padding: 24px;
  border-radius: var(--rlx-card-radius);
}

.rlx-reviewer-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.rlx-reviewer-name {
  font-weight: 700;
  font-size: 1.1rem;
  display: block;
}

.rlx-reviewer-role {
  color: var(--rlx-text-muted);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 8px;
}

.rlx-reviewer-info p {
  color: var(--rlx-text-sec);
  font-size: 0.9rem;
  margin: 0;
}

/* Feature Image */
.rlx-feature-img {
  max-width: min(660px, 100%); display: block;
  height: auto;
  border-radius: var(--rlx-card-radius);
  margin: 20px 0;
  box-shadow: var(--rlx-shadow);
}

/* Footer */
.rlx-ending {
  background: var(--rlx-header);
  padding: 40px 0 24px;
  margin-top: 48px;
}

.rlx-ending-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
}

.rlx-ending-links a {
  color: var(--rlx-text-sec);
  text-decoration: none;
  font-size: 0.9rem;
}

.rlx-ending-links a:hover {
  color: var(--rlx-cta);
}

.rlx-ending-license {
  border-top: 1px solid var(--rlx-border);
  padding-top: 20px;
}

.rlx-ending-license p {
  color: var(--rlx-text-muted);
  font-size: 0.8rem;
  margin-bottom: 8px;
  max-width: 100%;
}

/* Breadcrumb */
.rlx-breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
}

.rlx-breadcrumb ol {
  display: flex;
  list-style: none;
  gap: 8px;
}

.rlx-breadcrumb li::after {
  content: ">";
  margin-left: 8px;
  color: var(--rlx-text-muted);
}

.rlx-breadcrumb li:last-child::after {
  content: "";
}

.rlx-breadcrumb a {
  color: var(--rlx-cta);
  text-decoration: none;
}

/* Legal */
.rlx-legal {
  padding: 80px 0 48px;
  min-height: 60vh;
}

.rlx-legal h1 {
  font-size: 1.8rem;
  margin-bottom: 24px;
}

.rlx-legal p {
  color: var(--rlx-text-sec);
  margin-bottom: 16px;
  line-height: 1.8;
}

/* Inner Section */
.rlx-inner-section {
  padding: 48px 0;
}

.rlx-inner-section:nth-child(even) {
  background: var(--rlx-surface);
}

/* Responsive: 320px */
@media (max-width: 480px) {
  .rlx-intro .rlx-container {
    grid-template-columns: 1fr;
  }
  .rlx-boxes-grid {
    grid-template-columns: 1fr;
  }
  .rlx-intro-content h1 {
    font-size: 1.5rem;
  }
  .rlx-navigation {
    display: none;
  }
  .rlx-navigation.open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--rlx-header);
    padding: 20px;
  }
  .rlx-navigation.open ul {
    flex-direction: column;
  }
  .rlx-burger {
    display: flex;
  }
  .rlx-reviewer-card {
    flex-direction: column;
    text-align: center;
  }
}

/* 768px */
@media (min-width: 481px) and (max-width: 768px) {
  .rlx-intro .rlx-container {
    grid-template-columns: 1fr;
  }
  .rlx-boxes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rlx-intro-content h1 {
    font-size: 1.8rem;
  }
}

/* 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .rlx-boxes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 1440px+ */
@media (min-width: 1441px) {
  .rlx-container {
    max-width: calc(var(--rlx-container) + 80px);
  }
}


/* layout fixes */
.rlx-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rlx-subsection { max-width: var(--rlx-container); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.rlx-intro-shot img { width: 100%; height: auto; }

/* Bonus Media Cards (bonus page) */
.rlx-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0 8px;
}

.rlx-promo-tile {
  background: var(--rlx-surface-alt);
  border-radius: var(--rlx-card-radius);
  overflow: hidden;
  border: 1px solid var(--rlx-border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.rlx-promo-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.rlx-promo-tile-media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.rlx-promo-tile-desc {
  padding: 14px 16px;
}

.rlx-promo-tile-desc strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--rlx-text);
}

.rlx-promo-tile-desc span {
  display: block;
  font-size: 0.85rem;
  color: var(--rlx-text-sec);
  line-height: 1.5;
}

/* Bonus fact list */
.rlx-fact-list {
  margin: 20px 0;
  padding-left: 20px;
}

.rlx-fact-list li {
  color: var(--rlx-text-sec);
  margin-bottom: 10px;
  line-height: 1.6;
}

.rlx-fact-list li::marker {
  color: var(--rlx-cta);
}

/* Connexion split layout */
.rlx-split-connect {
  display: flex;
  gap: 40px;
  align-items: center;
  margin: 24px 0;
}

.rlx-split-connect-text {
  flex: 0 0 55%;
}

.rlx-split-connect-shot {
  flex: 0 0 calc(45% - 40px);
}

.rlx-split-connect-shot img {
  width: 100%;
  height: auto;
  border-radius: var(--rlx-card-radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  border: 1px solid var(--rlx-border);
  display: block;
}

@media (max-width: 480px) {
  .rlx-promo-grid {
    grid-template-columns: 1fr;
  }
  .rlx-split-connect {
    flex-direction: column;
  }
  .rlx-split-connect-text,
  .rlx-split-connect-shot {
    flex: 1 1 100%;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .rlx-promo-grid {
    grid-template-columns: 1fr;
  }
  .rlx-split-connect {
    flex-direction: column;
  }
  .rlx-split-connect-text,
  .rlx-split-connect-shot {
    flex: 1 1 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .rlx-split-connect {
    flex-direction: column;
  }
  .rlx-split-connect-text,
  .rlx-split-connect-shot {
    flex: 1 1 100%;
  }
}

.rlx-intro-main { min-width: 0; }
