/* ============================================================
   bd2222.homes - Core stylesheet (design-5716.css)
   All custom classes use the dynamic prefix "w5716-" to avoid
   namespace collisions. Comments are in English.
   Palette: #CD853F | #F4A460 | #FFE135 | #333333
   Mobile-first, max-width 430px, rem units (root 62.5%).
   ============================================================ */

:root {
  --w5716-primary: #CD853F;
  --w5716-secondary: #F4A460;
  --w5716-accent: #FFE135;
  --w5716-bg: #333333;
  --w5716-bg-deep: #262626;
  --w5716-bg-card: #3c3c3c;
  --w5716-text: #FFF6E5;
  --w5716-text-muted: #D9C9B0;
  --w5716-border: #5a4a36;
  --w5716-success: #4caf50;
  --w5716-danger: #e2574c;
  --w5716-radius: 12px;
  --w5716-radius-sm: 8px;
  --w5716-shadow: 0 4px 18px rgba(0,0,0,.35);
}

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

html { font-size: 62.5%; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Hind Siliguri", "Noto Sans Bengali", "Segoe UI", sans-serif;
  background: var(--w5716-bg);
  color: var(--w5716-text);
  line-height: 1.5rem;
  font-size: 1.5rem;
  max-width: 430px;
  margin: 0 auto;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--w5716-accent); text-decoration: none; }
a:hover, a:focus { color: var(--w5716-secondary); }

.w5716-hidden { display: none !important; }

/* ---------- Header ---------- */
.w5716-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: linear-gradient(135deg, var(--w5716-bg-deep), #1f1a14);
  border-bottom: 2px solid var(--w5716-primary);
  max-width: 430px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.2rem; height: 5.4rem;
}
.w5716-logo { display: flex; align-items: center; gap: .6rem; }
.w5716-logo img { width: 2.8rem; height: 2.8rem; border-radius: 6px; }
.w5716-logo-text {
  font-size: 1.8rem; font-weight: 800; color: var(--w5716-accent);
  letter-spacing: .5px;
}
.w5716-logo-text span { color: var(--w5716-secondary); }
.w5716-header-actions { display: flex; align-items: center; gap: .6rem; }
.w5716-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-size: 1.3rem; font-weight: 700; border: none; border-radius: var(--w5716-radius-sm);
  padding: .7rem 1.2rem; cursor: pointer; transition: transform .15s, background .2s;
  min-height: 38px;
}
.w5716-btn:active { transform: scale(.95); }
.w5716-btn-register {
  background: linear-gradient(135deg, var(--w5716-accent), var(--w5716-secondary));
  color: #2a1d05;
}
.w5716-btn-login {
  background: transparent; color: var(--w5716-accent);
  border: 1.5px solid var(--w5716-accent);
}
.w5716-menu-btn {
  background: transparent; color: var(--w5716-accent);
  border: 1.5px solid var(--w5716-border);
  border-radius: var(--w5716-radius-sm);
  width: 38px; height: 38px; font-size: 1.8rem; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.w5716-menu-btn.w5716-active { background: var(--w5716-primary); color: #2a1d05; }

/* ---------- Mobile dropdown menu ---------- */
.w5716-mobile-menu {
  position: fixed; top: 5.4rem; left: 0; right: 0; z-index: 9999;
  background: var(--w5716-bg-deep);
  border-bottom: 2px solid var(--w5716-primary);
  max-width: 430px; margin: 0 auto;
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.w5716-mobile-menu.w5716-menu-open { max-height: 60rem; }
.w5716-mobile-menu ul { list-style: none; padding: .8rem 1.2rem 1.2rem; }
.w5716-mobile-menu li { border-bottom: 1px solid #4a3a28; }
.w5716-mobile-menu li:last-child { border-bottom: none; }
.w5716-mobile-menu a {
  display: block; padding: 1rem .6rem; color: var(--w5716-text);
  font-size: 1.45rem; font-weight: 600;
}
.w5716-mobile-menu a i { color: var(--w5716-accent); margin-right: .6rem; width: 20px; }

/* ---------- Layout ---------- */
.w5716-main { padding-top: 5.4rem; padding-bottom: 8.5rem; }
.w5716-container { padding: 1.2rem; }
.w5716-section { margin-bottom: 2.4rem; }
.w5716-section-title {
  font-size: 1.9rem; font-weight: 800; color: var(--w5716-accent);
  margin: 0 0 1rem; padding-left: .8rem; border-left: 4px solid var(--w5716-primary);
}
.w5716-section-sub {
  font-size: 1.4rem; color: var(--w5716-text-muted); margin-bottom: 1rem;
}

/* ---------- Hero carousel ---------- */
.w5716-hero { position: relative; margin: 0 0 1.5rem; border-radius: var(--w5716-radius); overflow: hidden; }
.w5716-slides { position: relative; height: 18rem; }
.w5716-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease;
  display: flex; align-items: flex-end; cursor: pointer;
}
.w5716-slide img { width: 100%; height: 100%; object-fit: cover; }
.w5716-slide.w5716-slide-active { opacity: 1; }
.w5716-slide-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  padding: 1.6rem 1.2rem 1rem; color: var(--w5716-accent);
  font-size: 1.5rem; font-weight: 700;
}
.w5716-carousel-dots { position: absolute; bottom: .8rem; right: 1rem; display: flex; gap: .5rem; z-index: 2; }
.w5716-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); cursor: pointer;
}
.w5716-dot.w5716-dot-active { background: var(--w5716-accent); }

/* ---------- Game filter ---------- */
.w5716-filter-bar { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .6rem; margin-bottom: 1rem; }
.w5716-filter-tab {
  flex: 0 0 auto; padding: .6rem 1.2rem; border-radius: 20px;
  background: var(--w5716-bg-card); color: var(--w5716-text-muted);
  font-size: 1.3rem; font-weight: 600; cursor: pointer; border: 1px solid var(--w5716-border);
  white-space: nowrap;
}
.w5716-filter-tab.w5716-filter-tab-active {
  background: linear-gradient(135deg, var(--w5716-primary), var(--w5716-secondary));
  color: #2a1d05; border-color: var(--w5716-accent);
}

/* ---------- Game grid ---------- */
.w5716-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.w5716-game-card {
  background: var(--w5716-bg-card); border-radius: var(--w5716-radius-sm);
  overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .2s;
  border: 1px solid #4a3a28;
}
.w5716-game-card:active { transform: scale(.96); }
.w5716-game-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.w5716-game-name {
  font-size: 1.15rem; padding: .5rem .4rem; text-align: center;
  color: var(--w5716-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: #2c2620;
}

/* ---------- Cards / panels ---------- */
.w5716-card {
  background: var(--w5716-bg-card); border-radius: var(--w5716-radius);
  padding: 1.2rem; border: 1px solid var(--w5716-border); box-shadow: var(--w5716-shadow);
  margin-bottom: 1.2rem;
}
.w5716-card h3 { color: var(--w5716-accent); font-size: 1.5rem; margin-bottom: .6rem; }
.w5716-card p { font-size: 1.35rem; color: var(--w5716-text-muted); margin-bottom: .6rem; }

/* ---------- Promo links ---------- */
.w5716-promo-link {
  color: var(--w5716-accent); font-weight: 800; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.w5716-promo-btn {
  display: inline-flex; align-items: center; gap: .5rem; cursor: pointer;
  background: linear-gradient(135deg, var(--w5716-accent), var(--w5716-secondary));
  color: #2a1d05; font-weight: 800; font-size: 1.4rem;
  padding: .9rem 1.8rem; border-radius: 30px; border: none;
  box-shadow: 0 4px 14px rgba(255,225,53,.35); transition: transform .15s;
}
.w5716-promo-btn:active { transform: scale(.95); }

/* ---------- Feature list / steps ---------- */
.w5716-feature-list { list-style: none; }
.w5716-feature-list li {
  display: flex; gap: .8rem; padding: .8rem 0; border-bottom: 1px dashed #4a3a28;
  font-size: 1.35rem; color: var(--w5716-text);
}
.w5716-feature-list li:last-child { border-bottom: none; }
.w5716-feature-list i { color: var(--w5716-accent); width: 24px; font-size: 1.8rem; }

/* ---------- Testimonials ---------- */
.w5716-testimonial {
  background: #2c2620; border-left: 3px solid var(--w5716-primary);
  padding: 1rem; border-radius: var(--w5716-radius-sm); margin-bottom: .8rem;
}
.w5716-testimonial .w5716-who { color: var(--w5716-accent); font-weight: 700; font-size: 1.3rem; }
.w5716-testimonial p { font-size: 1.3rem; color: var(--w5716-text-muted); margin-top: .3rem; }

/* ---------- Winners / payment ---------- */
.w5716-winner-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .6rem 0; border-bottom: 1px solid #4a3a28; font-size: 1.3rem;
}
.w5716-winner-row .w5716-amt { color: var(--w5716-accent); font-weight: 700; }
.w5716-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.w5716-pay-item {
  background: #2c2620; border-radius: 6px; padding: .8rem; text-align: center;
  font-size: 1.1rem; color: var(--w5716-text-muted);
}
.w5716-pay-item i { font-size: 1.8rem; color: var(--w5716-accent); display: block; margin-bottom: .3rem; }

/* ---------- RTP table ---------- */
.w5716-rtp-table { width: 100%; border-collapse: collapse; font-size: 1.25rem; }
.w5716-rtp-table th, .w5716-rtp-table td { padding: .6rem .4rem; border-bottom: 1px solid #4a3a28; text-align: left; }
.w5716-rtp-table th { color: var(--w5716-accent); font-weight: 700; }
.w5716-rtp-table .w5716-rtp-val { color: var(--w5716-accent); font-weight: 700; }

/* ---------- FAQ ---------- */
.w5716-faq-item { border-bottom: 1px solid #4a3a28; padding: .8rem 0; }
.w5716-faq-item h4 { color: var(--w5716-accent); font-size: 1.35rem; margin-bottom: .3rem; }
.w5716-faq-item p { color: var(--w5716-text-muted); font-size: 1.3rem; }

/* ---------- App download CTA ---------- */
.w5716-app-cta {
  background: linear-gradient(135deg, var(--w5716-primary), var(--w5716-secondary));
  border-radius: var(--w5716-radius); padding: 1.4rem; text-align: center; color: #2a1d05;
}
.w5716-app-cta h3 { font-size: 1.6rem; margin-bottom: .4rem; }
.w5716-app-cta p { font-size: 1.3rem; margin-bottom: .8rem; }

/* ---------- Footer ---------- */
.w5716-footer {
  background: var(--w5716-bg-deep); border-top: 2px solid var(--w5716-primary);
  padding: 1.6rem 1.2rem 2rem; color: var(--w5716-text-muted);
}
.w5716-footer-brand { font-size: 1.3rem; margin-bottom: 1rem; line-height: 1.6rem; }
.w5716-footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-bottom: 1rem; }
.w5716-footer-links a { color: var(--w5716-text); font-size: 1.2rem; }
.w5716-footer-promo { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.w5716-footer-promo button {
  background: var(--w5716-bg-card); color: var(--w5716-accent);
  border: 1px solid var(--w5716-primary); border-radius: 20px;
  padding: .5rem 1rem; font-size: 1.2rem; cursor: pointer; font-weight: 700;
}
.w5716-footer-copy { font-size: 1.1rem; color: #8a7a66; border-top: 1px solid #4a3a28; padding-top: .8rem; }

/* ---------- Bottom navigation ---------- */
.w5716-bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  max-width: 430px; margin: 0 auto; height: 6rem;
  background: linear-gradient(180deg, #2a2218, #1a140d);
  border-top: 2px solid var(--w5716-primary);
  display: flex; justify-content: space-around; align-items: center;
}
.w5716-bottomnav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 60px; min-height: 56px; background: transparent; border: none;
  color: var(--w5716-text-muted); cursor: pointer; transition: transform .15s, color .2s;
  font-size: 1.05rem; gap: .2rem;
}
.w5716-bottomnav-btn i, .w5716-bottomnav-btn .material-icons-outlined,
.w5716-bottomnav-btn .ion { font-size: 2.2rem; line-height: 1; }
.w5716-bottomnav-btn:active { transform: scale(.9); }
.w5716-bottomnav-btn.w5716-bottomnav-active { color: var(--w5716-accent); }
.w5716-bottomnav-btn.w5716-bottomnav-active i { color: var(--w5716-accent); }
.w5716-bottomnav-btn:hover { color: var(--w5716-secondary); }
.w5716-bottomnav-badge {
  position: absolute; top: 4px; right: 18px; background: var(--w5716-danger);
  color: #fff; font-size: .9rem; min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.w5716-bottomnav-btn { position: relative; }

/* ---------- Back to top ---------- */
.w5716-backtop {
  position: fixed; right: 1.2rem; bottom: 7rem; z-index: 999;
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: var(--w5716-primary); color: #2a1d05;
  font-size: 1.8rem; cursor: pointer; box-shadow: var(--w5716-shadow);
  display: none;
}

/* ---------- Desktop: hide bottom nav, widen layout ---------- */
@media (min-width: 769px) {
  body { max-width: 100%; }
  .w5716-header, .w5716-mobile-menu, .w5716-bottomnav, .w5716-footer { max-width: 100%; }
  .w5716-bottomnav { display: none; }
  .w5716-main { padding-bottom: 2rem; }
  .w5716-game-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- Mobile bottom padding clearance ---------- */
@media (max-width: 768px) {
  .w5716-main { padding-bottom: 8rem; }
}
