/* ============================================================
 * bl5555.sbs - Shared Theme (theme-fd16)
 * All custom classes use the prefix "wfd16-".
 * Palette: #DDA0DD (plum) | #1A1A1A (bg) | #999999 | #BDC3C7
 * Mobile-first, max wrapper width 430px.
 * ============================================================ */

:root {
  --wfd16-primary: #DDA0DD;
  --wfd16-primary-dark: #b87fb8;
  --wfd16-accent: #e9bce9;
  --wfd16-bg: #1A1A1A;
  --wfd16-bg-soft: #232023;
  --wfd16-bg-card: #242124;
  --wfd16-text: #BDC3C7;
  --wfd16-text-soft: #999999;
  --wfd16-heading: #ffffff;
  --wfd16-border: #3a343a;
  --wfd16-success: #6bd68a;
  --wfd16-gold: #f3c969;
  --wfd16-radius: 14px;
  --wfd16-shadow: 0 6px 22px rgba(0, 0, 0, .35);
  --wfd16-header-h: 58px;
  --wfd16-bottomnav-h: 62px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wfd16-bg);
  color: var(--wfd16-text);
  font-family: "Be Vietnam Pro", "Segoe UI", Roboto, system-ui, -apple-system, Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.5rem * 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--wfd16-primary); text-decoration: none; }
a:hover, a:focus { color: var(--wfd16-accent); }
button { font-family: inherit; cursor: pointer; }

/* ---- Layout wrappers ---- */
.wfd16-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  position: relative;
}
.wfd16-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}
main.wfd16-main { padding-top: calc(var(--wfd16-header-h) + 8px); padding-bottom: 24px; }

/* ---- Header ---- */
.wfd16-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--wfd16-header-h);
  background: linear-gradient(180deg, #201a20 0%, #1A1A1A 100%);
  border-bottom: 1px solid var(--wfd16-border);
  z-index: 1000;
  display: flex; align-items: center;
}
.wfd16-header-inner {
  width: 100%; max-width: 430px; margin: 0 auto;
  padding: 0 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.wfd16-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wfd16-brand img { width: 30px; height: 30px; border-radius: 8px; }
.wfd16-brand-name {
  font-weight: 800; color: var(--wfd16-heading); font-size: 1.8rem;
  letter-spacing: .3px; white-space: nowrap;
}
.wfd16-brand-name span { color: var(--wfd16-primary); }
.wfd16-header-actions { display: flex; align-items: center; gap: 8px; }
.wfd16-menu-btn {
  background: transparent; border: 0; color: var(--wfd16-text);
  font-size: 2.2rem; padding: 6px 8px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
}
.wfd16-menu-btn:hover { color: var(--wfd16-primary); background: rgba(221, 160, 221, .12); }

/* ---- Buttons ---- */
.wfd16-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 0 16px;
  border-radius: 999px; border: 0;
  font-weight: 700; font-size: 1.4rem;
  background: linear-gradient(135deg, var(--wfd16-primary) 0%, var(--wfd16-primary-dark) 100%);
  color: #1A1A1A;
  box-shadow: 0 4px 14px rgba(221, 160, 221, .35);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.wfd16-btn:hover { transform: translateY(-1px); color: #1A1A1A; }
.wfd16-btn:active { transform: scale(.97); }
.wfd16-btn-outline {
  background: transparent; color: var(--wfd16-primary);
  border: 1.5px solid var(--wfd16-primary);
  box-shadow: none;
}
.wfd16-btn-outline:hover { background: rgba(221, 160, 221, .12); color: var(--wfd16-accent); }
.wfd16-btn-block { width: 100%; min-height: 44px; font-size: 1.6rem; }
.wfd16-text-link { color: var(--wfd16-primary); font-weight: 700; }
.wfd16-text-link:hover { text-decoration: underline; }

/* ---- Mobile expandable menu ---- */
.wfd16-mobile-menu {
  position: fixed; top: var(--wfd16-header-h); left: 0; right: 0;
  max-width: 430px; margin: 0 auto;
  background: #1c181c;
  border-bottom: 1px solid var(--wfd16-border);
  max-height: 0; overflow: hidden; transition: max-height .28s ease;
  z-index: 9999;
}
.wfd16-mobile-menu.wfd16-is-open { max-height: 460px; }
.wfd16-mobile-menu ul { list-style: none; margin: 0; padding: 8px 14px; }
.wfd16-mobile-menu li { border-bottom: 1px solid rgba(255,255,255,.06); }
.wfd16-mobile-menu li:last-child { border-bottom: 0; }
.wfd16-mobile-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 4px; color: var(--wfd16-text); font-size: 1.5rem;
}
.wfd16-mobile-menu a:hover { color: var(--wfd16-primary); }
.wfd16-mobile-menu .wfd16-icon { width: 22px; text-align: center; color: var(--wfd16-primary); }

/* ---- Carousel ---- */
.wfd16-carousel {
  position: relative; overflow: hidden; border-radius: var(--wfd16-radius);
  box-shadow: var(--wfd16-shadow); margin: 14px 0 18px;
}
.wfd16-carousel-track { display: flex; transition: transform .45s ease; }
.wfd16-carousel-slide {
  min-width: 100%; position: relative; cursor: pointer;
}
.wfd16-carousel-slide img { width: 100%; height: 200px; object-fit: cover; }
.wfd16-carousel-cap {
  position: absolute; left: 12px; bottom: 12px; right: 12px;
  color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.7);
}
.wfd16-carousel-cap h2 { margin: 0 0 4px; font-size: 1.7rem; color: #fff; }
.wfd16-carousel-cap p { margin: 0; font-size: 1.25rem; color: var(--wfd16-accent); }
.wfd16-carousel-dots {
  position: absolute; bottom: 8px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.wfd16-carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.45); border: 0; padding: 0;
}
.wfd16-carousel-dot.wfd16-active { background: var(--wfd16-primary); transform: scale(1.25); }

/* ---- Section ---- */
.wfd16-section { margin: 22px 0; }
.wfd16-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.wfd16-section-head h2 { font-size: 1.8rem; color: var(--wfd16-heading); margin: 0; }
.wfd16-section-head .wfd16-more { font-size: 1.25rem; color: var(--wfd16-primary); }
.wfd16-title-accent { color: var(--wfd16-primary); }

/* ---- Headings ---- */
h1, h2, h3, h4 { line-height: 1.3; color: var(--wfd16-heading); }
h1 { font-size: 2.1rem; margin: 0 0 8px; }
h3 { font-size: 1.6rem; margin: 14px 0 6px; }

/* ---- Hero ---- */
.wfd16-hero {
  text-align: center; padding: 6px 4px 4px;
}
.wfd16-hero h1 { font-size: 2.2rem; }
.wfd16-hero h1 span { color: var(--wfd16-primary); }
.wfd16-hero p { color: var(--wfd16-text-soft); font-size: 1.4rem; margin: 0 0 14px; }
.wfd16-hero .wfd16-btn { margin: 0 auto; }

/* ---- Game grid ---- */
.wfd16-cat-title {
  display: flex; align-items: center; gap: 8px;
  margin: 18px 0 10px; padding-bottom: 6px;
  border-bottom: 1px dashed var(--wfd16-border);
  font-size: 1.6rem; color: var(--wfd16-heading); font-weight: 700;
}
.wfd16-cat-title .wfd16-badge {
  background: rgba(221,160,221,.18); color: var(--wfd16-primary);
  padding: 2px 8px; border-radius: 999px; font-size: 1.15rem; font-weight: 600;
}
.wfd16-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.wfd16-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.wfd16-game {
  background: var(--wfd16-bg-card); border: 1px solid var(--wfd16-border);
  border-radius: 12px; padding: 6px; text-align: center;
  cursor: pointer; transition: transform .15s ease, border-color .15s ease;
}
.wfd16-game:hover { transform: translateY(-2px); border-color: var(--wfd16-primary); }
.wfd16-game img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; }
.wfd16-game-name {
  margin-top: 6px; font-size: 1.2rem; color: var(--wfd16-text);
  line-height: 1.3; min-height: 32px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* ---- Cards ---- */
.wfd16-card {
  background: var(--wfd16-bg-card); border: 1px solid var(--wfd16-border);
  border-radius: var(--wfd16-radius); padding: 14px; margin: 10px 0;
  box-shadow: var(--wfd16-shadow);
}
.wfd16-card h3 { margin-top: 0; }
.wfd16-card p { margin: 0 0 8px; }
.wfd16-card ul { margin: 6px 0 0; padding-left: 18px; }
.wfd16-card li { margin-bottom: 6px; }

/* ---- Feature/step grid ---- */
.wfd16-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wfd16-feature {
  background: var(--wfd16-bg-soft); border-radius: 12px; padding: 12px;
  border: 1px solid var(--wfd16-border);
}
.wfd16-feature .wfd16-ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(221,160,221,.15); color: var(--wfd16-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin-bottom: 6px;
}
.wfd16-feature h4 { margin: 0 0 4px; font-size: 1.4rem; }
.wfd16-feature p { margin: 0; font-size: 1.2rem; color: var(--wfd16-text-soft); }

/* ---- Steps ---- */
.wfd16-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.wfd16-steps li {
  position: relative; padding: 8px 8px 8px 46px; margin-bottom: 8px;
  background: var(--wfd16-bg-soft); border-radius: 10px;
  border: 1px solid var(--wfd16-border);
}
.wfd16-steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 8px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--wfd16-primary); color: #1A1A1A;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.3rem;
}

/* ---- FAQ ---- */
.wfd16-faq details {
  background: var(--wfd16-bg-card); border: 1px solid var(--wfd16-border);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 8px;
}
.wfd16-faq summary {
  cursor: pointer; font-weight: 700; color: var(--wfd16-heading);
  list-style: none;
}
.wfd16-faq summary::-webkit-details-marker { display: none; }
.wfd16-faq summary::after { content: "+"; float: right; color: var(--wfd16-primary); font-weight: 800; }
.wfd16-faq details[open] summary::after { content: "-"; }
.wfd16-faq p { margin: 8px 0 0; color: var(--wfd16-text); }

/* ---- Stats / RTP ---- */
.wfd16-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wfd16-stat {
  background: var(--wfd16-bg-soft); border-radius: 10px; padding: 10px 6px; text-align: center;
  border: 1px solid var(--wfd16-border);
}
.wfd16-stat .wfd16-num { font-size: 1.8rem; font-weight: 800; color: var(--wfd16-primary); display: block; }
.wfd16-stat .wfd16-lbl { font-size: 1.1rem; color: var(--wfd16-text-soft); }

/* ---- Testimonials ---- */
.wfd16-testi {
  background: var(--wfd16-bg-soft); border-radius: 12px; padding: 12px;
  border-left: 3px solid var(--wfd16-primary); margin-bottom: 10px;
}
.wfd16-testi .wfd16-stars { color: var(--wfd16-gold); font-size: 1.2rem; }
.wfd16-testi p { margin: 6px 0; }
.wfd16-testi .wfd16-author { font-size: 1.2rem; color: var(--wfd16-text-soft); }

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

/* ---- CTA banner ---- */
.wfd16-cta {
  background: linear-gradient(135deg, rgba(221,160,221,.18), rgba(184,127,184,.08));
  border: 1px solid var(--wfd16-primary); border-radius: var(--wfd16-radius);
  padding: 16px; text-align: center; margin: 18px 0;
}
.wfd16-cta h3 { margin: 0 0 6px; color: var(--wfd16-heading); }
.wfd16-cta p { margin: 0 0 12px; color: var(--wfd16-text); }

/* ---- Winners ---- */
.wfd16-winners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.wfd16-winner {
  background: var(--wfd16-bg-soft); border-radius: 10px; padding: 8px 10px;
  border: 1px solid var(--wfd16-border); font-size: 1.2rem;
}
.wfd16-winner b { color: var(--wfd16-gold); }

/* ---- Footer ---- */
.wfd16-footer {
  margin-top: 22px; padding: 22px 0 30px;
  background: #161216; border-top: 1px solid var(--wfd16-border);
}
.wfd16-footer p { color: var(--wfd16-text-soft); font-size: 1.3rem; }
.wfd16-footer h4 { color: var(--wfd16-heading); font-size: 1.5rem; margin: 12px 0 8px; }
.wfd16-footer-links {
  display: flex; flex-wrap: wrap; gap: 8px 14px; list-style: none; padding: 0; margin: 6px 0;
}
.wfd16-footer-links li a { color: var(--wfd16-text); font-size: 1.25rem; }
.wfd16-footer-links li a:hover { color: var(--wfd16-primary); }
.wfd16-promo-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.wfd16-copy { font-size: 1.15rem; color: var(--wfd16-text-soft); margin-top: 12px; text-align: center; }

/* ---- Bottom navigation ---- */
.wfd16-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--wfd16-bottomnav-h);
  background: linear-gradient(180deg, #201a20 0%, #141114 100%);
  border-top: 1px solid var(--wfd16-border);
  z-index: 1000;
  display: flex; justify-content: space-around; align-items: stretch;
}
.wfd16-bottomnav-link {
  flex: 1 1 0; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--wfd16-text-soft); font-size: 1.05rem;
  background: transparent; border: 0;
  transition: color .15s ease, transform .15s ease;
  text-decoration: none;
}
.wfd16-bottomnav-link .wfd16-ico { font-size: 2.2rem; line-height: 1; }
.wfd16-bottomnav-link .material-icons,
.wfd16-bottomnav-link .bi { font-size: 2.2rem; }
.wfd16-bottomnav-link:active { transform: scale(.92); }
.wfd16-bottomnav-link.wfd16-current { color: var(--wfd16-primary); }
.wfd16-bottomnav-link.wfd16-current::before {
  content: ""; position: absolute; top: 0; width: 28px; height: 3px;
  background: var(--wfd16-primary); border-radius: 0 0 4px 4px;
}
.wfd16-bottomnav-link { position: relative; }

/* ---- Back to top ---- */
#wfd16-to-top {
  position: fixed; right: 14px; bottom: calc(var(--wfd16-bottomnav-h) + 12px);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--wfd16-primary); color: #1A1A1A; border: 0;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  z-index: 999;
}
#wfd16-to-top.wfd16-show { opacity: 1; pointer-events: auto; }

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

/* ---- Bottom padding for fixed nav clearance ---- */
@media (max-width: 768px) {
  main.wfd16-main { padding-bottom: calc(var(--wfd16-bottomnav-h) + 80px); }
  .wfd16-footer { padding-bottom: calc(var(--wfd16-bottomnav-h) + 24px); }
}

/* ---- Desktop: hide mobile bottom nav + show wider layout ---- */
@media (min-width: 769px) {
  .wfd16-bottomnav { display: none; }
  .wfd16-wrapper, .wfd16-container { max-width: 430px; }
  main.wfd16-main { padding-bottom: 30px; }
  .wfd16-footer { padding-bottom: 30px; }
}

/* ---- Helpers ---- */
.wfd16-text-center { text-align: center; }
.wfd16-mt-8 { margin-top: 8px; } .wfd16-mt-16 { margin-top: 16px; }
.wfd16-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wfd16-grow { flex: 1 1 auto; }
.wfd16-pull-right { float: right; }
.wfd16-divider { height: 1px; background: var(--wfd16-border); margin: 14px 0; border: 0; }
