/*!
 * BMW Casino - design-6d30.css
 * Mobile-first casino homepage styles.
 * All custom classes use the s6d3- prefix; CSS variables use --s6d3-* prefix.
 * Palette: #BAE1FF | #BAFFC9 | #CD853F | #2C2C2C | #FFDFBA
 */

:root {
  --s6d3-primary: #CD853F;      /* warm gold accent */
  --s6d3-secondary: #BAE1FF;    /* light sky */
  --s6d3-success: #BAFFC9;      /* mint */
  --s6d3-bg: #2C2C2C;           /* dark background */
  --s6d3-bg-soft: #3a3a3a;
  --s6d3-bg-card: #1f1f1f;
  --s6d3-text: #FFDFBA;         /* warm cream text */
  --s6d3-text-strong: #ffffff;
  --s6d3-muted: #b9b2a3;
  --s6d3-border: rgba(205, 133, 63, 0.35);
  --s6d3-radius: 14px;
  --s6d3-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  --s6d3-header-h: 58px;
  --s6d3-bottomnav-h: 62px;
  font-size: 62.5%;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--s6d3-bg);
  color: var(--s6d3-text);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5rem;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }

a { color: var(--s6d3-secondary); text-decoration: none; }
a:hover { color: var(--s6d3-primary); }

h1, h2, h3 { color: var(--s6d3-text-strong); line-height: 1.4rem; margin: 0 0 .8em; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.65rem; }
p { margin: 0 0 1em; }

/* Layout containers */
.s6d3-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}
.s6d3-container { padding: 18px 14px; }
.s6d3-section { padding: 22px 0; }
.s6d3-section-alt { background: var(--s6d3-bg-soft); }

/* Header */
.s6d3-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--s6d3-header-h);
  background: linear-gradient(180deg, #1a1a1a, #2C2C2C);
  border-bottom: 1px solid var(--s6d3-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.s6d3-header-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.s6d3-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--s6d3-text-strong);
  font-weight: 700;
  font-size: 1.7rem;
}
.s6d3-brand img { width: 30px; height: 30px; border-radius: 6px; }
.s6d3-brand span { color: var(--s6d3-primary); }

.s6d3-actions { display: flex; align-items: center; gap: 6px; }
.s6d3-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 1.35rem;
  font-weight: 700;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.s6d3-btn:active { transform: scale(.96); }
.s6d3-btn-login {
  background: transparent;
  color: var(--s6d3-text);
  border: 1px solid var(--s6d3-border);
}
.s6d3-btn-register {
  background: linear-gradient(135deg, #CD853F, #FFDFBA);
  color: #2C2C2C;
  box-shadow: 0 4px 12px rgba(205, 133, 63, .4);
}
.s6d3-btn-promo {
  background: var(--s6d3-primary);
  color: #2C2C2C;
  padding: 10px 18px;
}
.s6d3-btn-block { display: flex; width: 100%; }

.s6d3-menu-toggle {
  background: transparent;
  border: 1px solid var(--s6d3-border);
  color: var(--s6d3-text);
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}

/* Mobile dropdown menu */
.s6d3-mobile-menu {
  position: fixed;
  top: var(--s6d3-header-h);
  left: 0; right: 0;
  background: #1a1a1a;
  border-bottom: 1px solid var(--s6d3-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  z-index: 9999;
}
.s6d3-mobile-menu.s6d3-menu-open { max-height: 460px; }
.s6d3-mobile-menu-inner {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 8px 14px 14px;
}
.s6d3-mobile-menu a {
  display: block;
  padding: 12px 6px;
  border-bottom: 1px solid rgba(255, 223, 186, .08);
  color: var(--s6d3-text);
  font-size: 1.45rem;
}
.s6d3-mobile-menu a:last-child { border-bottom: none; }
.s6d3-mobile-menu a i { color: var(--s6d3-primary); margin-right: 8px; }

/* Hero / Carousel */
.s6d3-hero { margin-top: var(--s6d3-header-h); }
.s6d3-carousel {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--s6d3-radius);
  box-shadow: var(--s6d3-shadow);
}
.s6d3-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
}
.s6d3-slide img { width: 100%; height: 100%; object-fit: cover; }
.s6d3-slide-active { opacity: 1; }
.s6d3-dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
}
.s6d3-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 223, 186, .4);
  border: none; cursor: pointer;
}
.s6d3-dot-active { background: var(--s6d3-primary); }

/* Section title */
.s6d3-section-title {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.s6d3-section-title i { color: var(--s6d3-primary); font-size: 2.2rem; }
.s6d3-section-title h2 { margin: 0; }

/* Game grid */
.s6d3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.s6d3-card {
  background: var(--s6d3-bg-card);
  border: 1px solid var(--s6d3-border);
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}
.s6d3-card:hover { transform: translateY(-2px); box-shadow: var(--s6d3-shadow); }
.s6d3-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.s6d3-card-name {
  padding: 6px 4px;
  font-size: 1.2rem;
  color: var(--s6d3-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Promo link / inline SEO link */
.s6d3-link-strong {
  color: var(--s6d3-primary);
  font-weight: 700;
}
.s6d3-link-strong:hover { text-decoration: underline; }

/* Feature / info blocks */
.s6d3-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.s6d3-feature {
  background: var(--s6d3-bg-card);
  border: 1px solid var(--s6d3-border);
  border-radius: 12px;
  padding: 14px;
}
.s6d3-feature i { color: var(--s6d3-primary); font-size: 2.4rem; }
.s6d3-feature h3 { margin: 8px 0 4px; font-size: 1.5rem; }
.s6d3-feature p { margin: 0; font-size: 1.3rem; color: var(--s6d3-muted); }

/* Steps */
.s6d3-steps { counter-reset: step; padding: 0; list-style: none; }
.s6d3-steps li {
  position: relative;
  padding: 12px 12px 12px 52px;
  background: var(--s6d3-bg-card);
  border: 1px solid var(--s6d3-border);
  border-radius: 12px;
  margin-bottom: 10px;
  counter-increment: step;
}
.s6d3-steps li::before {
  content: counter(step);
  position: absolute;
  left: 12px; top: 12px;
  width: 30px; height: 30px;
  background: var(--s6d3-primary);
  color: #2C2C2C;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}

/* Testimonials */
.s6d3-testimonial {
  background: var(--s6d3-bg-card);
  border-left: 4px solid var(--s6d3-primary);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.s6d3-testimonial p { margin: 0 0 6px; font-size: 1.35rem; }
.s6d3-testimonial cite { color: var(--s6d3-muted); font-style: normal; font-size: 1.2rem; }

/* Payment chips */
.s6d3-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.s6d3-chip {
  background: var(--s6d3-bg-card);
  border: 1px solid var(--s6d3-border);
  color: var(--s6d3-text);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 1.25rem;
  display: inline-flex; align-items: center; gap: 6px;
}
.s6d3-chip i { color: var(--s6d3-success); }

/* Winners list */
.s6d3-winner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px;
  background: var(--s6d3-bg-card);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 1.3rem;
}
.s6d3-winner span:last-child { color: var(--s6d3-success); font-weight: 700; }

/* RTP table */
.s6d3-table { width: 100%; border-collapse: collapse; font-size: 1.3rem; }
.s6d3-table th, .s6d3-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--s6d3-border);
  text-align: left;
}
.s6d3-table th { color: var(--s6d3-primary); }

/* CTA band */
.s6d3-cta {
  background: linear-gradient(135deg, #CD853F, #BAE1FF);
  color: #2C2C2C;
  border-radius: var(--s6d3-radius);
  padding: 18px;
  text-align: center;
  margin: 18px 0;
}
.s6d3-cta h2 { color: #2C2C2C; }
.s6d3-cta p { color: #2C2C2C; }

/* Footer */
.s6d3-footer {
  background: #1a1a1a;
  border-top: 1px solid var(--s6d3-border);
  padding: 22px 14px 30px;
  color: var(--s6d3-muted);
}
.s6d3-footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 14px;
  margin: 12px 0;
}
.s6d3-footer-links a { color: var(--s6d3-text); font-size: 1.3rem; }
.s6d3-footer-buttons {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 12px 0;
}
.s6d3-footer-buttons .s6d3-btn { flex: 1 1 auto; }
.s6d3-footer-copy { font-size: 1.2rem; text-align: center; margin-top: 12px; }

/* Mobile bottom navigation */
.s6d3-bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--s6d3-bottomnav-h);
  background: #1a1a1a;
  border-top: 1px solid var(--s6d3-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}
.s6d3-bottomnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--s6d3-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: transform .15s ease, color .15s ease;
}
.s6d3-bottomnav-btn i, .s6d3-bottomnav-btn span.material-icons-outlined,
.s6d3-bottomnav-btn ion-icon { font-size: 24px; }
.s6d3-bottomnav-btn ion-icon { font-size: 26px; }
.s6d3-bottomnav-btn:active { transform: scale(.9); }
.s6d3-bottomnav-btn:hover { color: var(--s6d3-primary); }
.s6d3-bottomnav-active { color: var(--s6d3-primary); }

/* Reveal animation */
.s6d3-reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.s6d3-revealed { opacity: 1; transform: translateY(0); }

/* Mobile bottom padding for fixed nav */
@media (max-width: 768px) {
  main, .s6d3-main { padding-bottom: calc(var(--s6d3-bottomnav-h) + 12px); }
  body { padding-bottom: 0; }
}

/* Desktop: hide bottom nav, widen layout */
@media (min-width: 769px) {
  .s6d3-bottomnav { display: none; }
  .s6d3-wrapper, .s6d3-header-inner, .s6d3-carousel,
  .s6d3-mobile-menu-inner { max-width: 430px; }
}
