/*!
 * bmw33.homes theme stylesheet
 * Class prefix: s8fb-
 * Palette: #F08080 (coral) | #1E1E1E (dark) | #FF69B4 (pink) |
 *          #6C757D (gray) | #AD1457 (wine)
 * Mobile-first. Max content width 430px on phones.
 */
:root {
  --s8fb-primary: #F08080;
  --s8fb-secondary: #FF69B4;
  --s8fb-accent: #AD1457;
  --s8fb-bg: #1E1E1E;
  --s8fb-bg-2: #2a2326;
  --s8fb-bg-3: #15110f;
  --s8fb-text: #fff5f5;
  --s8fb-muted: #6C757D;
  --s8fb-card: #2b2225;
  --s8fb-border: rgba(240, 128, 128, 0.18);
  --s8fb-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  --s8fb-radius: 14px;
  --s8fb-radius-sm: 10px;
  --s8fb-grad: linear-gradient(135deg, #F08080 0%, #FF69B4 50%, #AD1457 100%);
  --s8fb-max: 430px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Roboto, system-ui, sans-serif;
  background: radial-gradient(circle at 50% 0%, #2a2326 0%, #15110f 60%, #0e0b0a 100%);
  color: var(--s8fb-text);
  line-height: 1.55;
  font-size: 15px;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--s8fb-primary); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Layout ---------- */
.s8fb-wrapper {
  width: 100%;
  max-width: var(--s8fb-max);
  margin: 0 auto;
  background: var(--s8fb-bg);
  min-height: 100vh;
  position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
}
.s8fb-container {
  width: 100%;
  padding: 0 14px;
}
main { padding-bottom: 96px; }

/* ---------- Header ---------- */
.s8fb-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(30,30,30,0.98), rgba(30,30,30,0.92));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--s8fb-border);
}
.s8fb-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  gap: 8px;
}
.s8fb-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.s8fb-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--s8fb-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(240,128,128,0.4);
}
.s8fb-brand-name {
  font-size: 19px;
  font-weight: 800;
  background: var(--s8fb-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.4px;
}
.s8fb-brand-domain { font-size: 11px; color: var(--s8fb-muted); font-weight: 500; }

.s8fb-header-actions { display: flex; align-items: center; gap: 6px; }
.s8fb-btn {
  border: none;
  cursor: pointer;
  font-weight: 700;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.s8fb-btn:active { transform: scale(0.96); }
.s8fb-btn-primary {
  background: var(--s8fb-grad);
  color: #fff;
  box-shadow: 0 6px 16px rgba(240,128,128,0.4);
}
.s8fb-btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--s8fb-text);
  border: 1px solid var(--s8fb-border);
}
.s8fb-btn-block { width: 100%; justify-content: center; padding: 13px; font-size: 15px; }
.s8fb-menu-btn {
  background: transparent;
  border: 1px solid var(--s8fb-border);
  color: var(--s8fb-text);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Mobile drawer menu ---------- */
.s8fb-mobile-menu {
  position: fixed;
  top: 0;
  right: -85%;
  width: 78%;
  max-width: 320px;
  height: 100vh;
  background: var(--s8fb-bg-2);
  z-index: 9999;
  padding: 22px 18px;
  transform: translateX(0);
  transition: right .28s ease;
  overflow-y: auto;
  border-left: 1px solid var(--s8fb-border);
}
.s8fb-mobile-menu.s8fb-menu-open { right: 0; }
.s8fb-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}
.s8fb-menu-overlay.s8fb-overlay-show { opacity: 1; visibility: visible; }
.s8fb-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.s8fb-menu-title { font-size: 18px; font-weight: 800; color: var(--s8fb-primary); }
.s8fb-menu-close {
  background: transparent; border: none; color: var(--s8fb-text);
  font-size: 22px; cursor: pointer;
}
.s8fb-menu-list li { margin-bottom: 6px; }
.s8fb-menu-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: var(--s8fb-radius-sm);
  color: var(--s8fb-text);
  font-weight: 600;
  background: rgba(255,255,255,0.04);
  border: 1px solid transparent;
  transition: background .15s, border .15s;
}
.s8fb-menu-list a:hover, .s8fb-menu-list a:focus {
  background: rgba(240,128,128,0.14);
  border-color: var(--s8fb-border);
}
.s8fb-menu-list .material-icons,
.s8fb-menu-list i { color: var(--s8fb-secondary); font-size: 20px; }
.s8fb-menu-cta { margin-top: 18px; display: grid; gap: 8px; }

/* ---------- Hero / Carousel ---------- */
.s8fb-hero { position: relative; padding: 14px 0 6px; }
.s8fb-carousel {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--s8fb-shadow);
}
.s8fb-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  cursor: pointer;
}
.s8fb-slide.s8fb-slide-active { opacity: 1; }
.s8fb-slide img { width: 100%; height: 100%; object-fit: cover; }
.s8fb-slide-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.75));
  color: #fff;
  padding: 24px 14px 10px;
  border-radius: 0 0 14px 14px;
}
.s8fb-slide-caption span { font-size: 12px; color: var(--s8fb-secondary); font-weight: 700; }
.s8fb-slide-caption strong { display: block; font-size: 16px; line-height: 1.3; }
.s8fb-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.s8fb-carousel-arrow:hover { background: var(--s8fb-primary); }
.s8fb-arrow-prev { left: 8px; }
.s8fb-arrow-next { right: 8px; }
.s8fb-dots {
  position: absolute;
  bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.s8fb-dot {
  width: 7px; height: 7px;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  cursor: pointer;
  transition: width .2s, background .2s;
}
.s8fb-dot.s8fb-dot-active { background: var(--s8fb-primary); width: 18px; border-radius: 4px; }

/* ---------- Section / Headings ---------- */
.s8fb-section { padding: 22px 0 6px; }
.s8fb-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}
.s8fb-section-title {
  font-size: 19px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.s8fb-section-title i { color: var(--s8fb-secondary); font-size: 22px; }
.s8fb-section-link { font-size: 12px; font-weight: 600; color: var(--s8fb-primary); }
.s8fb-h1 {
  font-size: 24px;
  font-weight: 900;
  line-height: 1.25;
  margin: 8px 0 12px;
  background: var(--s8fb-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.s8fb-lead { color: rgba(255,245,245,0.78); font-size: 14px; margin-bottom: 12px; }
.s8fb-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--s8fb-secondary);
  padding: 4px 10px;
  border: 1px solid var(--s8fb-border);
  border-radius: 999px;
  margin-bottom: 8px;
}
.s8fb-h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 18px 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.s8fb-h2 i { color: var(--s8fb-primary); }
.s8fb-h3 { font-size: 15px; font-weight: 700; margin: 12px 0 6px; color: var(--s8fb-secondary); }
.s8fb-p { font-size: 14px; color: rgba(255,245,245,0.82); margin-bottom: 10px; }
.s8fb-p strong { color: var(--s8fb-primary); font-weight: 700; }

/* ---------- Filter chips ---------- */
.s8fb-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
}
.s8fb-chips::-webkit-scrollbar { display: none; }
.s8fb-chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--s8fb-border);
  color: var(--s8fb-text);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.s8fb-chip.s8fb-chip-active {
  background: var(--s8fb-grad);
  border-color: transparent;
  color: #fff;
}

/* ---------- Game grid ---------- */
.s8fb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.s8fb-game-card {
  background: var(--s8fb-card);
  border-radius: var(--s8fb-radius);
  overflow: hidden;
  border: 1px solid var(--s8fb-border);
  text-align: center;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  position: relative;
}
.s8fb-game-card:hover, .s8fb-game-card:focus {
  transform: translateY(-3px);
  border-color: var(--s8fb-primary);
  box-shadow: 0 8px 20px rgba(240,128,128,0.25);
}
.s8fb-game-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #120e0d;
  object-fit: cover;
}
.s8fb-game-name {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 4px 8px;
  color: var(--s8fb-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s8fb-game-badge {
  position: absolute;
  top: 5px; left: 5px;
  background: var(--s8fb-accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  text-transform: uppercase;
}
.s8fb-game-badge.s8fb-badge-hot { background: var(--s8fb-grad); }
.s8fb-game-badge.s8fb-badge-new { background: #2ecc71; }

/* ---------- Feature / info cards ---------- */
.s8fb-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.s8fb-card {
  background: var(--s8fb-card);
  border: 1px solid var(--s8fb-border);
  border-radius: var(--s8fb-radius);
  padding: 14px;
  position: relative;
}
.s8fb-card-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(240,128,128,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--s8fb-primary);
  font-size: 20px;
  margin-bottom: 8px;
}
.s8fb-card h3 { font-size: 14px; margin-bottom: 4px; color: #fff; }
.s8fb-card p { font-size: 12px; color: rgba(255,245,245,0.7); line-height: 1.45; }

/* ---------- Promo banner ---------- */
.s8fb-promo {
  background: linear-gradient(135deg, rgba(173,20,87,0.85), rgba(255,105,180,0.7));
  border-radius: var(--s8fb-radius);
  padding: 16px;
  margin: 14px 0;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.15);
}
.s8fb-promo h3 { font-size: 16px; color: #fff; margin-bottom: 4px; }
.s8fb-promo p { font-size: 12px; color: rgba(255,255,255,0.9); margin-bottom: 10px; }

/* ---------- Testimonials ---------- */
.s8fb-testimonials { display: grid; gap: 10px; }
.s8fb-testimonial {
  background: var(--s8fb-card);
  border-left: 3px solid var(--s8fb-primary);
  border-radius: var(--s8fb-radius-sm);
  padding: 12px;
}
.s8fb-testimonial-stars { color: #ffd166; font-size: 12px; margin-bottom: 4px; }
.s8fb-testimonial p { font-size: 13px; color: rgba(255,245,245,0.85); margin-bottom: 6px; }
.s8fb-testimonial-author { font-size: 11px; color: var(--s8fb-muted); font-weight: 600; }

/* ---------- Winners ---------- */
.s8fb-winners {
  background: var(--s8fb-card);
  border-radius: var(--s8fb-radius);
  padding: 10px 14px;
}
.s8fb-winner-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.s8fb-winner-row:last-child { border-bottom: none; }
.s8fb-winner-name { font-size: 13px; font-weight: 600; }
.s8fb-winner-name span { display: block; font-size: 10px; color: var(--s8fb-muted); font-weight: 400; }
.s8fb-winner-amount { font-size: 14px; font-weight: 800; color: var(--s8fb-primary); }

/* ---------- Payment ---------- */
.s8fb-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.s8fb-pay-item {
  background: var(--s8fb-card);
  border: 1px solid var(--s8fb-border);
  border-radius: var(--s8fb-radius-sm);
  padding: 10px 4px;
  text-align: center;
}
.s8fb-pay-item i { font-size: 22px; color: var(--s8fb-secondary); }
.s8fb-pay-item span { display: block; font-size: 10px; margin-top: 4px; color: rgba(255,245,245,0.8); }

/* ---------- RTP table ---------- */
.s8fb-rtp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--s8fb-card);
  border-radius: var(--s8fb-radius);
  overflow: hidden;
  font-size: 12px;
}
.s8fb-rtp-table th, .s8fb-rtp-table td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.s8fb-rtp-table th { background: rgba(240,128,128,0.14); color: var(--s8fb-primary); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; }
.s8fb-rtp-table td.s8fb-rtp-value { color: #2ecc71; font-weight: 800; }

/* ---------- FAQ ---------- */
.s8fb-faq-item {
  background: var(--s8fb-card);
  border: 1px solid var(--s8fb-border);
  border-radius: var(--s8fb-radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
}
.s8fb-faq-item h3 { font-size: 14px; color: var(--s8fb-secondary); margin-bottom: 4px; cursor: pointer; }
.s8fb-faq-item p { font-size: 13px; color: rgba(255,245,245,0.78); }

/* ---------- App download CTA ---------- */
.s8fb-app-cta {
  background: linear-gradient(135deg, #2b2225, #15110f);
  border: 1px solid var(--s8fb-border);
  border-radius: var(--s8fb-radius);
  padding: 18px;
  text-align: center;
  margin: 14px 0;
}
.s8fb-app-cta h3 { font-size: 17px; margin-bottom: 6px; }
.s8fb-app-cta p { font-size: 12px; color: rgba(255,245,245,0.7); margin-bottom: 12px; }
.s8fb-app-buttons { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.s8fb-app-buttons .s8fb-btn { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid var(--s8fb-border); }

/* ---------- Footer ---------- */
.s8fb-footer {
  background: var(--s8fb-bg-3);
  padding: 22px 14px 18px;
  border-top: 1px solid var(--s8fb-border);
  margin-top: 20px;
}
.s8fb-footer-brand { font-size: 18px; font-weight: 800; margin-bottom: 6px; color: var(--s8fb-primary); }
.s8fb-footer p { font-size: 12px; color: var(--s8fb-muted); line-height: 1.6; margin-bottom: 12px; }
.s8fb-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-bottom: 14px;
}
.s8fb-footer-links a { font-size: 12px; color: rgba(255,245,245,0.78); }
.s8fb-footer-links a:hover { color: var(--s8fb-primary); }
.s8fb-footer-promos { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.s8fb-footer-promos .s8fb-btn { font-size: 12px; padding: 7px 12px; }
.s8fb-footer-copy { font-size: 11px; color: var(--s8fb-muted); border-top: 1px solid rgba(255,255,255,0.06); padding-top: 10px; }

/* ---------- Bottom nav ---------- */
.s8fb-bnav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--s8fb-max);
  height: 64px;
  background: linear-gradient(180deg, rgba(30,30,30,0.98), rgba(15,11,10,0.98));
  border-top: 1px solid var(--s8fb-border);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.s8fb-bnav-btn {
  flex: 1;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--s8fb-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color .15s, transform .15s;
}
.s8fb-bnav-btn i { font-size: 22px; transition: transform .15s; }
.s8fb-bnav-btn:active { transform: scale(0.92); }
.s8fb-bnav-btn:active i { transform: scale(1.1); }
.s8fb-bnav-current { color: var(--s8fb-primary); }
.s8fb-bnav-current::before {
  content: '';
  position: absolute;
  top: 0;
  width: 28px; height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--s8fb-grad);
}
.s8fb-bnav-current i { color: var(--s8fb-secondary); }
.s8fb-bnav-promo i { color: var(--s8fb-primary); }
.s8fb-bnav-badge {
  position: absolute;
  top: 6px; right: 18%;
  background: var(--s8fb-accent);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 5px;
}

/* ---------- Back to top ---------- */
.s8fb-to-top {
  position: fixed;
  right: 16px;
  bottom: 78px;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--s8fb-grad);
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s;
  z-index: 999;
  box-shadow: var(--s8fb-shadow);
}
.s8fb-to-top.s8fb-to-top-show { opacity: 1; visibility: visible; transform: translateY(0); }

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

/* ---------- Utilities ---------- */
.s8fb-text-center { text-align: center; }
.s8fb-mt-8 { margin-top: 8px; }
.s8fb-mt-14 { margin-top: 14px; }
.s8fb-link-text { font-weight: 700; color: var(--s8fb-primary); }
.s8fb-link-text:hover { text-decoration: underline; }
.s8fb-list { padding-left: 18px; margin-bottom: 10px; }
.s8fb-list li { font-size: 13px; color: rgba(255,245,245,0.8); margin-bottom: 5px; list-style: disc; }
.s8fb-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 16px 0; border: none; }

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
  body { background: #0e0b0a; }
  .s8fb-bnav { display: none; }
  main { padding-bottom: 30px; }
  .s8fb-grid { grid-template-columns: repeat(5, 1fr); }
  .s8fb-cards { grid-template-columns: repeat(3, 1fr); }
  .s8fb-max-desktop { max-width: 760px; margin: 0 auto; }
}
@media (min-width: 992px) {
  .s8fb-grid { grid-template-columns: repeat(6, 1fr); }
}
