/* ============================================================
   RiderBet Casino (riderbet1.com) - site overrides
   Road trip look from the RiderBet screenshots: dark burgundy ground,
   amber (#FFB23F) for calls to action, magenta red frames and a dashed
   road line as the divider. Fira Sans Extra Condensed headings over Inter.
   ============================================================ */
:root {
  --font-display: "Fira Sans Extra Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --rb-yellow: #ffb23f;
  --rb-yellow-soft: rgba(255, 178, 63, 0.14);
  --rb-red: #e0284f;
  --rb-checker: repeating-linear-gradient(90deg, #ffb23f 0 18px, transparent 18px 30px);
}

body {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.72;
  letter-spacing: 0;
  background: var(--color-bg);
  font-synthesis: none;
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--color-border); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.7); }
.site-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px; height: 3px;
  background: linear-gradient(90deg, var(--rb-yellow) 0 18%, transparent 18% 100%);
}
.site-header .site-logo img { height: 38px; width: auto; }
.nav-main--desktop a {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nav-main--desktop a:hover { color: var(--rb-yellow); background: var(--color-nav-hover); }
.btn {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 10px;
}
.btn--primary { background: var(--rb-yellow); color: #111; box-shadow: 0 6px 20px rgba(255, 178, 63, 0.22); border: 1px solid var(--rb-yellow); }
.btn--primary:hover { background: var(--color-cta-hover); color: #111; }
.btn--outline { border: 1px solid var(--rb-yellow); color: var(--color-text); background: transparent; }
.btn--outline:hover { background: var(--rb-yellow-soft); color: var(--rb-yellow); border-color: var(--rb-yellow); }

/* ---------- Hero: copy left, offer plate right, yellow track stripe ---------- */
.hero {
  padding: 88px 0 76px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, transparent 0 63%, rgba(224, 40, 79, 0.85) 63% 64.6%, transparent 64.6% 66%, rgba(255, 178, 63, 0.06) 66% 100%),
    radial-gradient(700px 380px at 82% 40%, var(--color-hero-glow), transparent 70%),
    linear-gradient(180deg, var(--color-hero-gradient-start), var(--color-hero-gradient-end));
  border-bottom: 1px solid var(--color-border);
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--rb-checker);
  opacity: 0.5;
}
.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  grid-template-areas:
    "badge badge"
    "title box"
    "sub   box"
    "ctas  box";
  column-gap: 56px;
  row-gap: 18px;
  align-items: start;
  text-align: left;
  max-width: none;
  position: relative;
  z-index: 1;
}
.hero__badge {
  grid-area: badge; justify-self: start;
  color: var(--rb-yellow);
  font-family: var(--font-display); font-style: normal; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid rgba(255, 178, 63, 0.45);
  background: rgba(255, 178, 63, 0.08);
}
.hero__badge::before { background: var(--rb-yellow); box-shadow: 0 0 10px rgba(255, 178, 63, 0.6); }
.hero h1 {
  grid-area: title;
  text-transform: uppercase !important;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1;
  letter-spacing: 0;
  color: var(--color-text);
  margin: 0;
  text-transform: none;
}
.hero__subtitle { grid-area: sub; margin: 0; max-width: 60ch; color: var(--color-text-muted); }
.hero__subtitle p { margin: 0; max-width: 60ch; }
.hero__ctas { grid-area: ctas; justify-content: flex-start; margin-top: 8px; }
.hero__bonus-box {
  grid-area: box;
  align-self: center;
  margin: 0;
  padding: 30px 30px 28px;
  text-align: left;
  background: linear-gradient(160deg, #4a1726 0%, #2c0f19 60%, #1a080e 100%);
  border: 2px solid var(--rb-red);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}
.hero__bonus-box::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--rb-red);
  opacity: 1;
}
.hero__bonus-box .hero__bonus-label {
  display: inline-block;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  background: var(--rb-yellow);
  padding: 3px 12px;
  border-radius: 4px;
  margin-top: 6px;
}
.hero__bonus-box .hero__bonus-value {
  font-family: var(--font-display);
  font-style: normal;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-text);
  margin: 14px 0 12px;
}
.hero__bonus-box .hero__bonus-extra { color: #d8d8d2; font-size: 0.97rem; line-height: 1.55; }
@media (max-width: 960px) {
  .hero { padding: 56px 0 50px; background: radial-gradient(600px 320px at 50% 30%, var(--color-hero-glow), transparent 70%), linear-gradient(180deg, var(--color-hero-gradient-start), var(--color-hero-gradient-end)); }
  .hero__content {
    grid-template-columns: 1fr;
    grid-template-areas: "badge" "title" "sub" "box" "ctas";
    text-align: center;
  }
  .hero__badge { justify-self: center; }
  .hero__subtitle, .hero__subtitle p { margin-left: auto; margin-right: auto; }
  .hero__ctas { justify-content: center; }
  .hero__bonus-box { text-align: center; }
}

/* ---------- Stats band ---------- */
.stats-bar { background: var(--color-surface-alt); border-bottom: 1px solid var(--color-border); padding: 26px 0; }
.stats-bar__inner { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.stats-bar__inner .stat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.3rem;
  padding: 14px 16px; border: 1px solid var(--color-border); border-left: 3px solid var(--rb-red);
  border-radius: 10px; background: var(--color-surface);
}
.stats-bar__inner .stat__value {
  font-family: var(--font-display); font-style: normal; font-size: 1.75rem; font-weight: 800; line-height: 1.05; color: var(--rb-yellow);
}
.stats-bar__inner .stat__label { font-size: 0.8rem; line-height: 1.4; color: var(--color-text-muted); text-transform: none; letter-spacing: 0.01em; }
@media (max-width: 1100px) { .stats-bar__inner { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stats-bar__inner .stat { padding: 12px; }
  .stats-bar__inner .stat__value { font-size: 1.4rem; }
}

/* ---------- Sections and headings ---------- */
.content-section { padding: 78px 0; }
.content-section--alt { background: #1f0b13; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.content-section h2 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  font-size: clamp(1.8rem, 2.9vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--color-text);
  padding: 0 0 26px 0;
  margin: 0 0 30px;
  border: 0;
  position: relative;
  max-width: none;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.content-section h2::before { display: none !important; }
.content-section h2::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 150px; height: 5px;
  background: var(--rb-checker);
  opacity: 1;
  border-left: 40px solid var(--rb-red);
}
.content-section h3 {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--rb-yellow);
  margin: 40px 0 14px;
  padding: 0;
  border: 0;
  text-transform: none;
  letter-spacing: 0;
  clear: none;
}
.content-section h3::before { display: none; }
.content-section p { margin-bottom: 1.05rem; color: var(--color-text-muted); }
.content-section p strong, .content-section li strong { color: var(--color-text); }
.content-section ul, .content-section ol { margin: 0 0 1.2rem 1.2rem; }
.content-section li { margin-bottom: 0.45rem; color: var(--color-text-muted); }
.content-section li::marker { color: var(--rb-yellow); }
.content-section p, .content-section li { max-width: calc(74ch + 330px); }
@media (max-width: 900px) {
  .content-section { padding: 56px 0; }
  .content-section p, .content-section li { max-width: 74ch; }
}

/* ---------- Supplied phone artwork beside the text ---------- */
.content-section .section-illus--transparent {
  max-width: 300px; width: 300px; height: auto;
  background: transparent; box-shadow: none; border-radius: 0;
  filter: drop-shadow(0 0 28px rgba(255, 178, 63, 0.16));
}
.content-section .section-illus--right { float: right; margin: 0 0 22px 36px; }
.content-section .section-illus--left { float: left; margin: 0 36px 22px 0; }
.content-section h3 + .section-illus { clear: both; }
.rb-clear { clear: both; }
@media (max-width: 900px) {
  .content-section .section-illus--transparent,
  .content-section .section-illus--right,
  .content-section .section-illus--left {
    float: none; display: block; width: 260px; max-width: 260px; margin: 12px auto 22px;
  }
}

/* ---------- Designed fact tables ---------- */
.rb-table-wrap {
  clear: both;
  margin: 28px 0 30px;
  border: 1px solid var(--color-border-2);
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.45);
}
.rb-table-wrap .rb-table-title {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
  padding: 14px 20px 14px 22px;
  border-bottom: 1px solid var(--color-border-2);
  border-left: 5px solid var(--rb-yellow);
  background: linear-gradient(90deg, rgba(255, 178, 63, 0.16), rgba(255, 178, 63, 0) 75%);
  margin: 0;
  max-width: none;
}
.rb-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.content-section .rb-table-wrap table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  margin: 0;
  border: 0;
  display: table;
  font-size: 0.96rem;
}
.content-section .rb-table-wrap th,
.content-section .rb-table-wrap td {
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--color-border);
  white-space: normal;
}
.content-section .rb-table-wrap thead th {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #111;
  background: var(--rb-yellow);
  border-color: #d98f1f;
}
.content-section .rb-table-wrap tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.025); }
.content-section .rb-table-wrap tbody tr:hover td { background: rgba(255, 178, 63, 0.07); color: var(--color-text); }
.content-section .rb-table-wrap td:first-child { color: var(--color-text); font-weight: 600; }
.rb-table-note {
  font-size: 0.9rem;
  color: var(--color-text-faint);
  padding: 12px 20px;
  margin: 0 !important;
  border-top: 1px solid var(--color-border);
  max-width: none !important;
}
@media (max-width: 600px) {
  .content-section .rb-table-wrap table { min-width: 520px; font-size: 0.92rem; }
  .content-section .rb-table-wrap th, .content-section .rb-table-wrap td { padding: 10px 12px; }
}

/* ---------- Weekly promotion calendar ---------- */
.rb-week {
  clear: both;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 30px !important;
  padding: 0;
}
.rb-week li {
  margin: 0;
  padding: 14px 12px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--rb-red);
  border-radius: 8px;
  max-width: none !important;
}
.rb-week .rb-day { display: block; font-family: var(--font-display); font-style: normal; font-weight: 800; font-size: 1.05rem; color: var(--rb-yellow); text-transform: uppercase; letter-spacing: 0.02em; }
.rb-week .rb-offer { display: block; color: var(--color-text); font-weight: 600; font-size: 0.93rem; line-height: 1.4; margin: 6px 0 4px; }
.rb-week .rb-rule { display: block; color: var(--color-text-faint); font-size: 0.82rem; line-height: 1.4; }
@media (max-width: 1100px) { .rb-week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rb-week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Game grid with real thumbnails ---------- */
.rb-grid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 34px;
}
.rb-tile {
  position: relative;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.rb-tile img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.rb-tile__info { display: block; padding: 9px 10px 11px; border-top: 2px solid var(--rb-red); }
.rb-tile__name { display: block; color: var(--color-text); font-weight: 600; font-size: 0.86rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-tile__provider { display: block; color: var(--color-text-faint); font-size: 0.75rem; line-height: 1.3; margin-top: 2px; }
.rb-tile:hover { transform: translateY(-3px); border-color: var(--rb-red); box-shadow: 0 10px 26px rgba(255, 178, 63, 0.16); }
.rb-tile:hover .rb-tile__name { color: var(--rb-yellow); }
@media (max-width: 1100px) { .rb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) { .rb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 460px) { .rb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Callout ---------- */
.money-note {
  clear: both;
  border: 1px solid rgba(255, 178, 63, 0.45);
  border-left: 5px solid var(--rb-yellow);
  background: rgba(255, 178, 63, 0.06);
  padding: 18px 22px;
  margin: 28px 0;
  border-radius: 8px;
}
.money-note p { margin-bottom: 0.6rem; }
.money-note p:last-child { margin-bottom: 0; }

/* ---------- Numbered steps ---------- */
.rb-steps { display: flow-root; counter-reset: rbstep; list-style: none; margin: 18px 0 26px !important; padding: 0; }
.rb-steps li { counter-increment: rbstep; position: relative; padding: 3px 0 3px 52px; margin-bottom: 16px; }
.rb-steps li::before {
  content: counter(rbstep);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  font-family: var(--font-display); font-style: normal; font-weight: 800; font-size: 1.1rem;
  color: #111;
  background: var(--rb-yellow);
  border-radius: 6px;
  border-radius: 50%;
}

/* ---------- FAQ accordion ---------- */
.rb-faq { clear: both; margin: 18px 0 8px; }
.rb-faq details {
  border: 1px solid var(--color-border-2);
  border-radius: 8px;
  background: var(--color-surface);
  margin-bottom: 10px;
  overflow: hidden;
}
.rb-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 20px;
  position: relative;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--color-text);
}
.rb-faq summary::-webkit-details-marker { display: none; }
.rb-faq summary::after {
  content: "+";
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--rb-yellow);
}
.rb-faq details[open] summary::after { content: "\2212"; }
.rb-faq details[open] { border-color: rgba(255, 178, 63, 0.5); }
.rb-faq details[open] summary { border-bottom: 1px solid var(--color-border); color: var(--rb-yellow); }
.rb-faq details p { padding: 14px 20px 16px; margin: 0; }

/* ---------- CTA banner, footer, sticky ---------- */
.cta-banner {
  background:
    linear-gradient(115deg, transparent 0 46%, rgba(224, 40, 79, 0.8) 46% 54%, transparent 54%) right 40px top / 120px 100% no-repeat,
    var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.cta-banner h2::after { left: 50%; transform: translateX(-50%); }
.cta-banner p { margin-left: auto; margin-right: auto; max-width: 760px; }
@media (max-width: 1100px) { .cta-banner { background: var(--color-surface-alt); } }
.site-footer { border-top: 3px solid var(--rb-yellow); background: var(--color-bg-2); }
.site-footer h5 { font-family: var(--font-display); font-style: normal; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--rb-yellow); }
.site-footer .site-logo img { height: 36px; width: auto; }
.sticky-cta { border-top: 2px solid var(--rb-red); }
.sticky-cta__text span:first-child { font-family: var(--font-display); font-style: normal; font-weight: 700; }
.sticky-cta__bonus { color: var(--rb-yellow); font-weight: 700; }

/* ---------- Anchor offset, mobile header ---------- */
.content-section[id] { scroll-margin-top: 76px; }
@media (max-width: 640px) {
  .site-header .container { gap: 8px; padding-left: 16px; padding-right: 16px; }
  .site-header .site-logo img { height: 28px; }
  .site-header .site-logo { flex-shrink: 0; margin-right: 6px; }
  .nav-toggle { flex-shrink: 0; margin-left: 6px; }
  .btn--mobile-cta { margin-left: auto; font-size: 0.74rem !important; padding: 0.5rem 0.8rem !important; min-width: 0; max-width: 46vw; flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hero__badge::before { display: none; }
  .sticky-cta__text span:first-child { display: none; }
  .sticky-cta__bonus { font-size: 0.9rem; line-height: 1.3; }
  .sticky-cta .btn { white-space: nowrap; }
}
@media (max-width: 380px) {
  .btn--mobile-cta { font-size: 0.66rem !important; padding: 0.45rem 0.55rem !important; }
}

/* ---------- Tablet and small laptop: hamburger menu up to 1199px ---------- */
@media (max-width: 1199px) {
  .btn--mobile-cta { display: inline-flex; }
  .nav-toggle { display: flex; }
  .nav-main--desktop { display: none; }
  .nav-actions { display: none; }
}
@media (min-width: 769px) and (max-width: 1199px) {
  .nav-mobile.open { display: flex !important; }
}
